.plasmid-assistant-page .product-sidebar {
    min-height: 645px;
}

.plasmid-assistant-page .product-sidebar__group + .product-sidebar__group {
    margin-top: 24px;
}

.plasmid-layout {
    align-items: start;
}

.plasmid-main {
    width: 848px;
}

.plasmid-head {
    gap: 16px;
}

.plasmid-head h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-back-link {
    flex: 0 0 auto;
    color: #10bf73;
    font-size: 14px;
    line-height: 20px;
}

.plasmid-grid {
    align-items: start;
}

.plasmid-card__image {
    background: #fbfffc;
}

.plasmid-card__image img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.plasmid-card__image span {
    color: #8a8f98;
    font-size: 14px;
}

.plasmid-card__body p {
    white-space: normal;
}

.plasmid-list-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 8px;
    background: #fff;
    color: #777;
    font-size: 15px;
}

.plasmid-detail {
    margin-top: 20px;
}

.plasmid-detail-hero {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.plasmid-detail-map,
.plasmid-sequence-panel,
.plasmid-detail-section {
    border-radius: 8px;
    background: #fff;
}

.plasmid-detail-map {
    padding: 14px;
}

.plasmid-detail-map__stage {
    position: relative;
    width: 100%;
    height: 292px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #f7f7f7;
}

.plasmid-detail-map__stage > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plasmid-vector-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.plasmid-vector-viewer__status,
.plasmid-empty-map {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    text-align: center;
}

.plasmid-empty-map {
    flex-direction: column;
    gap: 8px;
}

.plasmid-empty-map strong {
    max-width: 220px;
    overflow: hidden;
    color: #333;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.plasmid-detail-actions button {
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #555;
    background: #d9d9d9;
    font-size: 15px;
    line-height: 20px;
    cursor: not-allowed;
}

.plasmid-sequence-panel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 346px;
    overflow: hidden;
    background: #dedede;
}

.plasmid-sequence-panel__rail {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #a9a9a9;
    color: #333;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    writing-mode: vertical-rl;
}

.plasmid-sequence-panel__body {
    min-width: 0;
    padding: 24px 24px 20px;
}

.plasmid-sequence-panel__body h3 {
    margin: 0 0 14px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
}

.plasmid-sequence-meta,
.plasmid-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plasmid-sequence-meta span,
.plasmid-feature-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #333;
    font-size: 12px;
    line-height: 18px;
}

.plasmid-feature-chips {
    margin-top: 12px;
}

.plasmid-feature-chips span {
    background: #edf2ff;
    color: #4f63c6;
}

.plasmid-sequence-box {
    height: 142px;
    margin-top: 16px;
    padding: 12px;
    overflow: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, .76);
    color: #444;
    font-size: 12px;
    line-height: 20px;
}

.plasmid-sequence-box code {
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.plasmid-sequence-toggle {
    height: 32px;
    margin-top: 10px;
    padding: 0 14px;
    border: 1px solid #10bf73;
    border-radius: 6px;
    color: #10bf73;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.plasmid-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
}

.plasmid-detail-tabs button {
    position: relative;
    height: 34px;
    padding: 0;
    border: 0;
    color: #333;
    background: transparent;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
}

.plasmid-detail-tabs button.is-active {
    color: #10bf73;
}

.plasmid-detail-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #10bf73;
}

.plasmid-detail-section {
    min-height: 260px;
    margin-top: 10px;
    padding: 24px 26px 28px;
    background: #d9d9d9;
}

.plasmid-detail-section h3 {
    margin: 0 0 18px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
}

.plasmid-basic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 0;
}

.plasmid-basic-list div {
    min-width: 0;
}

.plasmid-basic-list dt {
    color: #555;
    font-size: 14px;
    line-height: 20px;
}

.plasmid-basic-list dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.plasmid-copy {
    margin-top: 18px;
    color: #333;
    font-size: 14px;
    line-height: 24px;
}

.plasmid-data-table {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border-radius: 6px;
    background: #c8c8c8;
}

.plasmid-data-table__head,
.plasmid-data-table__row {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.2fr .7fr;
    gap: 1px;
}

.plasmid-data-table--primers .plasmid-data-table__head,
.plasmid-data-table--primers .plasmid-data-table__row {
    grid-template-columns: 1.2fr 2.4fr 1fr;
}

.plasmid-data-table span {
    min-width: 0;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    background: #f7f7f7;
    color: #333;
    font-size: 13px;
    line-height: 20px;
}

.plasmid-data-table__head span {
    background: #efefef;
    font-weight: 600;
}

.plasmid-empty-text {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 24px;
}

@media (max-width: 1180px) {
    .product-list-layout.plasmid-layout {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        row-gap: 22px;
    }

    .plasmid-sidebar,
    .plasmid-main {
        width: 100%;
    }

    .plasmid-sidebar {
        position: static;
        min-height: 0;
    }

    .plasmid-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .plasmid-card,
    .plasmid-card__image {
        width: 100%;
    }

    .plasmid-card {
        height: auto;
        min-height: 318px;
    }

    .plasmid-card__image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 760px) {
    .plasmid-assistant-page {
        padding-top: 72px;
    }

    .plasmid-detail-hero {
        grid-template-columns: 1fr;
    }

    .plasmid-sequence-panel {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .plasmid-sequence-panel__body {
        padding: 18px 16px;
    }

    .plasmid-basic-list,
    .plasmid-data-table__head,
    .plasmid-data-table__row,
    .plasmid-data-table--primers .plasmid-data-table__head,
    .plasmid-data-table--primers .plasmid-data-table__row {
        grid-template-columns: 1fr;
    }

    .plasmid-detail-tabs {
        gap: 14px;
    }

    .plasmid-detail-tabs button {
        font-size: 14px;
    }

    .plasmid-detail-actions {
        grid-template-columns: 1fr;
    }
}

.product-list-layout.plasmid-layout--detail {
    display: block;
    width: min(1480px, calc(100% - 64px));
}

.plasmid-main.plasmid-main--detail {
    width: 100%;
    padding-top: 0;
}

.plasmid-detail--full {
    margin-top: 0;
}

.plasmid-detail-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
    margin-bottom: 16px;
}

.plasmid-detail-title {
    min-width: 0;
}

.plasmid-detail-title span {
    display: block;
    margin-bottom: 4px;
    color: #10bf73;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-detail-title h2 {
    margin: 0;
    overflow: hidden;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    line-height: 31px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-detail-title p {
    margin: 5px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-detail-actions--toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
}

.plasmid-detail-actions--toolbar .plasmid-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #10bf73;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
}

.plasmid-detail-actions--toolbar button {
    width: auto;
    min-width: 112px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: #666;
    background: #dcdcdc;
    font-size: 14px;
    line-height: 20px;
}

.plasmid-detail-actions--toolbar .plasmid-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 112px;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border: 1px solid #10bf73;
    color: #10bf73;
    background: #fff;
    cursor: pointer;
}

.plasmid-detail-actions--toolbar .plasmid-action-button:hover {
    background: #f0fff8;
}

.plasmid-detail-actions--toolbar .plasmid-action-button--primary {
    color: #fff;
    background: #10bf73;
}

.plasmid-detail-actions--toolbar .plasmid-action-button--primary:hover {
    background: #0da764;
}

.plasmid-detail-actions--toolbar button:disabled {
    border-color: transparent;
    color: #666;
    background: #dcdcdc;
    cursor: not-allowed;
}

body.plasmid-gibson-open {
    overflow: hidden;
}

.plasmid-gibson-modal[hidden] {
    display: none;
}

.plasmid-gibson-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.plasmid-gibson-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
}

.plasmid-gibson-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100vw - 32px));
    max-height: min(860px, calc(100vh - 32px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.plasmid-gibson-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.plasmid-gibson-modal__head span {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: #10bf73;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-gibson-modal__head h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.plasmid-gibson-modal__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #4b5563;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.plasmid-gibson-modal__close:hover {
    border-color: #10bf73;
    color: #0da764;
}

.plasmid-gibson-modal__body {
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    min-height: 0;
    overflow: auto;
    background: #f8fafc;
}

.plasmid-gibson-form,
.plasmid-gibson-result {
    min-width: 0;
    padding: 18px;
}

.plasmid-gibson-form {
    display: grid;
    align-content: start;
    gap: 14px;
    border-right: 1px solid #e5e7eb;
    background: #fff;
}

.plasmid-gibson-mode {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.plasmid-gibson-mode button {
    min-width: 0;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}

.plasmid-gibson-mode button.is-active {
    background: #10bf73;
    color: #fff;
    font-weight: 600;
}

.plasmid-gibson-mode-panel,
.plasmid-gibson-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plasmid-gibson-mode-panel[hidden] {
    display: none;
}

.plasmid-gibson-mode-panel label,
.plasmid-gibson-form__row label,
.plasmid-gibson-insert-name,
.plasmid-gibson-insert {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.plasmid-gibson-mode-panel label > span,
.plasmid-gibson-form__row label > span,
.plasmid-gibson-insert-name > span,
.plasmid-gibson-insert > span {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.plasmid-gibson-mode-panel select,
.plasmid-gibson-mode-panel input,
.plasmid-gibson-form__row select,
.plasmid-gibson-form__row input,
.plasmid-gibson-insert-name input,
.plasmid-gibson-insert textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 20px;
}

.plasmid-gibson-mode-panel select,
.plasmid-gibson-mode-panel input,
.plasmid-gibson-form__row select,
.plasmid-gibson-form__row input,
.plasmid-gibson-insert-name input {
    height: 38px;
    padding: 0 10px;
}

.plasmid-gibson-enzyme-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.plasmid-gibson-select2 {
    position: relative;
    min-width: 0;
}

.plasmid-gibson-select2__trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0 34px 0 10px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
}

.plasmid-gibson-select2__trigger::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #475569;
    border-bottom: 1.5px solid #475569;
    transform: rotate(45deg);
}

.plasmid-gibson-select2__trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-gibson-select2__trigger.is-placeholder {
    color: #64748b;
}

.plasmid-gibson-select2__trigger:focus,
.plasmid-gibson-select2.is-open .plasmid-gibson-select2__trigger {
    border-color: #10bf73;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(16, 191, 115, .12);
}

.plasmid-gibson-select2__trigger:disabled {
    background: #f3f4f6;
    color: #94a3b8;
    cursor: not-allowed;
}

.plasmid-gibson-select2__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.plasmid-gibson-select2__search {
    width: calc(100% - 12px) !important;
    height: 32px !important;
    margin: 6px;
    padding: 0 8px !important;
    border: 1px solid #93c5fd !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.plasmid-gibson-select2__search:focus {
    border-color: #6366f1 !important;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, .12);
}

.plasmid-gibson-select2__options {
    max-height: 240px;
    overflow: auto;
}

.plasmid-gibson-select2__option {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 18px;
    text-align: left;
    cursor: pointer;
}

.plasmid-gibson-select2__option:hover,
.plasmid-gibson-select2__option.is-selected {
    background: #eaf0f4;
}

.plasmid-gibson-select2__empty {
    padding: 10px 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-gibson-insert textarea {
    min-height: 156px;
    padding: 10px 12px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.plasmid-gibson-check {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.plasmid-gibson-check input {
    width: 16px;
    height: 16px;
}

.plasmid-gibson-form__actions {
    display: flex;
    justify-content: flex-end;
}

.plasmid-gibson-form__actions .plasmid-action-button {
    min-width: 116px;
}

.plasmid-gibson-form__actions .plasmid-action-button:disabled {
    border-color: #d1d5db;
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.plasmid-gibson-result {
    display: grid;
    align-content: start;
    gap: 14px;
    overflow: auto;
}

.plasmid-gibson-result__empty,
.plasmid-gibson-alert,
.plasmid-gibson-summary,
.plasmid-gibson-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.plasmid-gibson-result__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.plasmid-gibson-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: #e5e7eb;
}

.plasmid-gibson-summary span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.plasmid-gibson-summary small {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.plasmid-gibson-alert {
    padding: 11px 12px;
}

.plasmid-gibson-alert--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.plasmid-gibson-alert--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.plasmid-gibson-alert strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-gibson-alert ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 20px;
}

.plasmid-gibson-table-actions {
    display: flex;
    justify-content: flex-end;
}

.plasmid-gibson-copy {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #10bf73;
    border-radius: 6px;
    background: #fff;
    color: #10bf73;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}

.plasmid-gibson-copy:hover {
    background: #f0fff8;
}

.plasmid-gibson-copy:disabled {
    border-color: #d1d5db;
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.plasmid-gibson-table-wrap {
    overflow: auto;
}

.plasmid-gibson-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.plasmid-gibson-table th,
.plasmid-gibson-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    vertical-align: top;
}

.plasmid-gibson-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.plasmid-gibson-table td:nth-child(2) {
    max-width: 360px;
    color: #0f766e;
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.plasmid-gibson-table td:last-child {
    width: 86px;
}

.plasmid-gibson-page {
    min-height: calc(100vh - 80px);
    padding: 28px 0 58px;
    background: #f5f7f8;
}

.plasmid-gibson-workbench {
    display: grid;
    gap: 16px;
    width: min(1440px, calc(100vw - 48px));
    margin: 0 auto;
}

.plasmid-gibson-workbench__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 43, 37, .05);
}

.plasmid-gibson-workbench__head span {
    display: block;
    margin-bottom: 5px;
    color: #10bf73;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-gibson-workbench__head h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.plasmid-gibson-workbench__head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 18px;
}

.plasmid-gibson-workbench__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.plasmid-gibson-workbench__actions .plasmid-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #10bf73;
    border-radius: 6px;
    color: #10bf73;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

.plasmid-gibson-workbench__actions .plasmid-action-button--primary {
    color: #fff;
    background: #10bf73;
}

.plasmid-gibson-workbench__actions .plasmid-action-button:hover {
    background: #f0fff8;
}

.plasmid-gibson-workbench__actions .plasmid-action-button--primary:hover {
    background: #0da764;
}

.plasmid-gibson-workbench__actions .plasmid-action-button:disabled {
    border-color: #d1d5db;
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.plasmid-gibson-workbench__shell {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.plasmid-gibson-workbench__form {
    position: sticky;
    top: 72px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(28, 43, 37, .05);
}

.plasmid-gibson-preview {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.plasmid-gibson-preview__head,
.plasmid-gibson-sequence,
.plasmid-gibson-preview__map {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 43, 37, .05);
}

.plasmid-gibson-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.plasmid-gibson-preview__head span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 16px;
}

.plasmid-gibson-preview__head strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plasmid-gibson-preview__map {
    height: clamp(560px, calc(100vh - 300px), 760px);
    min-height: 560px;
    overflow: hidden;
}

.plasmid-vector-viewer--workbench {
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.plasmid-gibson-sequence {
    overflow: hidden;
}

.plasmid-gibson-sequence header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.plasmid-gibson-sequence header span {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.plasmid-gibson-sequence header small {
    color: #64748b;
    font-size: 12px;
    line-height: 16px;
}

.plasmid-gibson-sequence pre {
    max-height: 220px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    color: #0f766e;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 20px;
    white-space: pre-wrap;
    word-break: break-all;
}

.plasmid-gibson-workbench__result {
    padding: 0;
    overflow: visible;
}

.plasmid-editor-panel {
    position: relative;
    height: clamp(600px, calc(100vh - 230px), 760px);
    min-height: 600px;
    overflow: hidden;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 43, 37, .06);
}

.plasmid-vector-split {
    display: grid;
    grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr);
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 18px;
    background: #fff;
}

.plasmid-vector-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.plasmid-vector-card--circular {
    background: #f8fafc;
}

.plasmid-vector-viewer--full {
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: #fff;
}

.plasmid-vector-viewer--panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.plasmid-vector-viewer--full > *:not(script) {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.plasmid-vector-viewer--panel > *:not(script) {
    width: 100%;
    height: 100%;
}

.plasmid-vector-viewer--full .veEditor,
.plasmid-vector-viewer--full .tg-veEditor,
.plasmid-vector-viewer--full [class*="veEditor"],
.plasmid-vector-viewer--panel .veEditor,
.plasmid-vector-viewer--panel .tg-veEditor,
.plasmid-vector-viewer--panel [class*="veEditor"] {
    min-height: 100%;
}

.plasmid-vector-fallback {
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
    min-height: 560px;
    padding: 24px;
    overflow: auto;
    background: #fff;
}

.plasmid-vector-fallback--circular,
.plasmid-vector-fallback--sequence {
    grid-template-columns: 1fr;
}

.plasmid-vector-viewer--panel .plasmid-vector-fallback {
    min-height: 100%;
    padding: 14px;
}

.plasmid-vector-viewer--panel .plasmid-vector-fallback__map {
    min-height: 100%;
}

.plasmid-vector-fallback__map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 320px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.plasmid-vector-fallback__map svg {
    display: block;
    width: min(100%, 560px);
    height: auto;
}

.plasmid-vector-fallback__side {
    min-width: 0;
}

.plasmid-vector-fallback__notice {
    margin-bottom: 12px;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    background: #fff7ed;
    color: #c2410c;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 20px;
}

.plasmid-vector-fallback__side h3 {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 20px;
    line-height: 28px;
}

.plasmid-vector-fallback__meta,
.plasmid-vector-fallback__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plasmid-vector-fallback__meta span,
.plasmid-vector-fallback__features span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.plasmid-vector-fallback__meta span {
    background: #f1f5f9;
    color: #475569;
}

.plasmid-vector-fallback__features {
    margin-top: 14px;
}

.plasmid-vector-fallback__features span {
    max-width: 100%;
    overflow: hidden;
    background: #eef2ff;
    color: #3730a3;
    text-overflow: ellipsis;
}

.plasmid-vector-fallback__sequence {
    max-height: 260px;
    margin: 16px 0 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
    overflow: auto;
    color: #334155;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 20px;
    white-space: pre-wrap;
    word-break: break-all;
}

.plasmid-editor-panel__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: #fff;
}

.plasmid-editor-panel__fallback img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.plasmid-empty-map--full {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.plasmid-detail--full .plasmid-detail-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: flex-end;
    gap: 30px;
    min-height: 54px;
    margin-top: 22px;
    padding: 8px 2px 0;
    border-bottom: 1px solid #e5e7eb;
    background: #f3f3f3;
}

.plasmid-detail--full .plasmid-detail-tabs button {
    height: 46px;
    white-space: nowrap;
}

.plasmid-detail--full .plasmid-detail-section {
    margin-top: 14px;
    padding: 24px 28px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 43, 37, .04);
}

.plasmid-detail--full .plasmid-basic-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 32px;
}

.plasmid-detail--full .plasmid-data-table {
    overflow: auto;
    max-height: 520px;
}

@media (max-width: 1180px) {
    .product-list-layout.plasmid-layout--detail {
        width: calc(100% - 32px);
    }

    .plasmid-detail-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .plasmid-detail-actions--toolbar {
        justify-content: flex-start;
    }

    .plasmid-editor-panel,
    .plasmid-vector-viewer--full,
    .plasmid-editor-panel__fallback,
    .plasmid-empty-map--full,
    .plasmid-vector-fallback {
        min-height: 600px;
    }

    .plasmid-editor-panel {
        height: auto;
    }

    .plasmid-editor-panel--split {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .plasmid-vector-split {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
    }

    .plasmid-vector-card {
        min-height: 0;
        height: 420px;
    }

    .plasmid-vector-card--sequence {
        height: 520px;
    }

    .plasmid-vector-card .plasmid-vector-viewer--panel {
        min-height: 100%;
    }

    .plasmid-detail--full .plasmid-basic-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plasmid-vector-fallback {
        grid-template-columns: 1fr;
    }

    .plasmid-gibson-modal__body {
        grid-template-columns: 1fr;
    }

    .plasmid-gibson-form {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .plasmid-gibson-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plasmid-gibson-workbench {
        width: calc(100% - 32px);
    }

    .plasmid-gibson-workbench__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .plasmid-gibson-workbench__actions {
        justify-content: flex-start;
    }

    .plasmid-gibson-workbench__shell {
        grid-template-columns: 1fr;
    }

    .plasmid-gibson-workbench__form {
        position: static;
    }
}

@media (max-width: 760px) {
    .product-list-layout.plasmid-layout--detail {
        width: calc(100% - 20px);
    }

    .plasmid-detail-title h2 {
        font-size: 20px;
        line-height: 28px;
        white-space: normal;
    }

    .plasmid-detail-actions--toolbar {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .plasmid-detail-actions--toolbar .plasmid-back-link,
    .plasmid-detail-actions--toolbar a.plasmid-action-button,
    .plasmid-detail-actions--toolbar button {
        width: 100%;
    }

    .plasmid-editor-panel,
    .plasmid-vector-viewer--full,
    .plasmid-editor-panel__fallback,
    .plasmid-empty-map--full,
    .plasmid-vector-fallback {
        min-height: 520px;
    }

    .plasmid-editor-panel {
        height: auto;
        min-height: 0;
    }

    .plasmid-editor-panel--split {
        height: auto;
    }

    .plasmid-vector-split {
        gap: 12px;
        padding: 10px;
    }

    .plasmid-vector-card {
        height: 340px;
        min-height: 0;
    }

    .plasmid-vector-card--sequence {
        height: 500px;
    }

    .plasmid-vector-card .plasmid-vector-viewer--panel {
        min-height: 100%;
    }

    .plasmid-detail--full .plasmid-detail-tabs {
        position: static;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 0;
    }

    .plasmid-detail--full .plasmid-detail-tabs button {
        flex: 0 0 auto;
    }

    .plasmid-detail--full .plasmid-basic-list {
        grid-template-columns: 1fr;
    }

    .plasmid-vector-fallback {
        padding: 14px;
    }

    .plasmid-vector-fallback__map {
        min-height: 260px;
    }

    .plasmid-gibson-modal {
        align-items: stretch;
        padding: 10px;
    }

    .plasmid-gibson-modal__panel {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .plasmid-gibson-modal__head {
        min-height: 64px;
        padding: 14px 14px 12px;
    }

    .plasmid-gibson-modal__body {
        display: block;
    }

    .plasmid-gibson-form,
    .plasmid-gibson-result {
        padding: 14px;
    }

    .plasmid-gibson-mode {
        grid-template-columns: 1fr;
    }

    .plasmid-gibson-mode-panel,
    .plasmid-gibson-form__row,
    .plasmid-gibson-summary {
        grid-template-columns: 1fr;
    }

    .plasmid-gibson-form__actions {
        display: grid;
    }

    .plasmid-gibson-form__actions .plasmid-action-button {
        width: 100%;
    }

    .plasmid-gibson-page {
        padding: 18px 0 36px;
    }

    .plasmid-gibson-workbench {
        width: calc(100% - 20px);
    }

    .plasmid-gibson-workbench__head,
    .plasmid-gibson-workbench__form,
    .plasmid-gibson-preview__head,
    .plasmid-gibson-preview__map,
    .plasmid-gibson-sequence {
        border-radius: 8px;
    }

    .plasmid-gibson-workbench__head {
        padding: 14px;
    }

    .plasmid-gibson-workbench__head h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .plasmid-gibson-workbench__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .plasmid-gibson-workbench__actions .plasmid-action-button,
    .plasmid-gibson-preview__head .plasmid-gibson-copy {
        width: 100%;
    }

    .plasmid-gibson-preview__head {
        align-items: stretch;
        flex-direction: column;
    }

    .plasmid-gibson-preview__map,
    .plasmid-vector-viewer--workbench {
        height: 520px;
        min-height: 520px;
    }

    .plasmid-gibson-workbench__result {
        padding: 0;
    }
}
