.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-editor-panel {
    position: relative;
    height: min(72vh, 780px);
    min-height: 560px;
    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(360px, .94fr) minmax(0, 1.06fr);
    gap: 18px;
    width: 100%;
    height: 100%;
    min-height: 560px;
    padding: 20px;
    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-vector-viewer--panel,
    .plasmid-editor-panel__fallback,
    .plasmid-empty-map--full,
    .plasmid-vector-fallback {
        min-height: 600px;
    }

    .plasmid-editor-panel {
        height: 660px;
    }

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

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

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

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

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

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

@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 button {
        width: 100%;
    }

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

    .plasmid-editor-panel {
        height: 560px;
    }

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

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

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

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

    .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;
    }
}
