:root{--plum:#75627c;--plum-dark:#604c68;--plum-pale:#eee7ef;--ink:#293746;--muted:#586674;--primary:#506980;--pale:#e8edf3;--line:#d8dfe6;--bg:#f5f5f7;--warning:#876748;--shadow:0 3px 18px #26364a08;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit;color:var(--ink)}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px;padding:10px 15px;line-height:1.3;transition:background .13s,border-color .13s}button:hover:not(:disabled){background:var(--pale);border-color:#acb9c6}button:disabled{cursor:not-allowed;opacity:.45}button.primary,.mode-badge{background:var(--primary);color:white;border-color:var(--primary)}button.primary:hover:not(:disabled){background:#40576e}button.subtle{background:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #8a7996;outline-offset:2px}a{color:var(--primary)}[hidden]{display:none!important}
.status-pill{border-radius:20px;background:#e9ebee;padding:7px 12px;white-space:nowrap;font-size:12px}.status-pill.ready{background:var(--pale);color:var(--primary)}.status-pill.failed{color:#9c4c45;background:#f8eeeb}
main{max-width:1488px;margin:auto;padding:30px 24px 10px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:650;margin:0 0 8px}h1{font-size:27px;letter-spacing:-.6px;line-height:1.2;margin:0}h2{font-size:17px;line-height:1.35;margin:0}h3{font-size:14px;margin:0 0 16px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mode-badge{display:inline-block;padding:10px 15px;border-radius:8px;white-space:nowrap}.muted{color:var(--muted);font-size:13px;line-height:1.55}.import-help{color:var(--muted);font-size:12px;margin-bottom:20px}.candidate-list{display:flex;gap:12px;overflow-x:auto;padding:1px 1px 4px;margin-bottom:20px}.candidate-chip{min-width:175px;flex:1;max-width:350px;display:flex;text-align:left;align-items:center;gap:10px;padding:14px 16px}.candidate-chip.active{background:var(--pale);border-color:var(--primary)}.candidate-chip .name{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:235px}.candidate-chip small{display:block;font-size:10px;color:var(--muted);padding-top:4px}.candidate-dot{width:10px;height:10px;background:var(--candidate-color);border-radius:50%;flex:none}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:var(--shadow)}.design-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}.editor{padding:23px 24px}.candidate-name{display:flex;align-items:center;gap:10px;margin-bottom:23px}.candidate-name label{width:70px;flex:none;color:var(--muted)}input,select,textarea{border:1px solid var(--line);background:white;border-radius:7px;padding:10px 12px;min-width:0;width:100%;line-height:1.3}input:focus,textarea:focus{border-color:#9face0}input[type=checkbox]{width:17px;height:17px;accent-color:var(--primary);padding:0}.candidate-name input{flex:1}.candidate-name button{white-space:nowrap;font-size:12px;padding:11px 12px}.icon-button{border:0!important;font-size:22px!important;color:var(--muted);padding:5px!important}.sequence-field{display:grid;grid-template-columns:83px minmax(0,1fr) 46px;gap:10px;align-items:center;margin:13px 0}.sequence-field label{font-size:13px;color:var(--muted)}.sequence-field small{display:block;font-size:10px;margin-top:5px}.sequence-field textarea{resize:vertical;font-family:"SFMono-Regular",Consolas,monospace;letter-spacing:1.15px;font-size:14px;min-height:41px;max-height:95px}.sequence-length{font-size:11px;color:var(--muted);text-align:right}.editor-hint{display:flex;justify-content:space-between;margin-top:24px;font-size:11px;color:var(--muted)}.unsaved{color:var(--warning)}.duplex{margin:8px 0 14px;overflow-x:auto;padding-bottom:4px}.strand-row{display:flex;align-items:flex-end;margin:11px 0 9px;min-width:fit-content}.strand-tag{width:25px;font-size:11px;color:var(--muted);padding-bottom:13px;flex:none}.nucleotide-wrap{position:relative;flex:1;min-width:26px;max-width:44px;display:flex;flex-direction:column;align-items:center;gap:5px}.nt-position{font-size:9px;color:var(--muted);height:12px}.nucleotide{width:calc(100% - 3px);height:39px;padding:0;border-radius:6px;border:1px solid #d8dfe6;background:var(--tile-rna);font-weight:650;font-size:16px;position:relative}.nucleotide.selected{outline:2px solid #6c5c78;outline-offset:-2px}.ps-before{position:absolute;left:-5px;top:16px;width:8px;height:3px;background:#b9875d;z-index:2}.ps-position{position:absolute;bottom:2px;left:50%;width:4px;height:4px;border-radius:50%;background:#b9875d}.terminal-marker{position:absolute;top:3px;right:2px;font-size:7px;color:var(--warning);font-weight:500}.chemistry-legend{display:flex;flex-wrap:wrap;gap:10px 17px;margin:14px 0 19px;font-size:10px;color:var(--muted)}.legend-item{display:flex;align-items:center;gap:5px}.modification-editor{border-top:1px solid var(--line);padding-top:19px}.mod-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.mod-title h2{font-size:14px}.mod-title span{font-size:11px}.mod-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:14px}.mod-grid label,.range-inputs label,.explorer-grid aside>label,.compare-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted)}.mod-search-label{grid-column:1}.mod-select-label{grid-column:2/4}.mod-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px}.mod-footer p{font-size:11px;max-width:55%;margin:0}.mod-footer button{font-size:12px}.coverage{font-size:11px;line-height:1.6;border-left:3px solid #bb9877;background:#faf6ef;color:#806443;padding:10px 12px;margin-top:16px}.coverage p{margin:0 0 5px}.coverage p:last-child{margin:0}.prediction-card{display:flex;flex-direction:column;align-self:start;min-height:500px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.small-status{font-size:10px;color:var(--muted)}.prediction-value{font-size:65px;line-height:1.15;letter-spacing:-2px;font-weight:650;color:var(--primary);margin:17px 0 3px}.prediction-card>p{margin:10px 0}.dose-input{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0;color:var(--muted);font-size:13px}.dose-input span{display:flex;align-items:center;gap:8px;max-width:170px}.dose-input input{font-size:18px}.wide{width:100%;padding:13px}.prediction-detail{font-size:11px;line-height:1.65;color:var(--muted);padding-top:9px}.next-actions{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:23px;margin-top:20px}.next-actions button{display:flex;justify-content:space-between}.view-note{color:var(--muted);font-size:11px;line-height:1.65;margin:17px 0}.notice{padding:12px 16px;border:1px solid #c6d2df;background:#ebeff5;border-radius:8px;margin-bottom:20px;font-size:13px}.notice.error{border-color:#e1bdb4;background:#fff4ef;color:#96513f}.job-progress{display:flex;align-items:center;gap:16px;background:white;border:1px solid var(--line);border-radius:8px;padding:13px 18px;margin-bottom:20px;font-size:12px}.job-progress progress{margin-left:auto;width:180px;height:8px;accent-color:var(--primary)}
.explorer-grid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px}.selection-list{display:flex;flex-direction:column;gap:8px;margin-top:18px}.selection-row{display:flex;align-items:center;gap:10px;padding:9px 0;cursor:pointer}.selection-row .selection-label{font-size:13px;overflow:hidden;text-overflow:ellipsis}.selection-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.divider{height:1px;background:var(--line);margin:20px 0}.range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.explorer-grid aside>label{margin-bottom:18px}.chart-card{min-height:570px;display:flex;flex-direction:column}.chart-container{min-height:370px;display:flex;align-items:center;justify-content:center;flex:1}.chart-container svg{width:100%;height:auto;max-height:470px}.empty-state{padding:60px 25px;text-align:center;color:var(--muted);font-size:14px;line-height:1.8}.empty-state strong{display:block;font-size:18px;color:var(--ink);margin-bottom:8px}.curve-legend{display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:center;font-size:12px;margin:14px 0}.curve-legend span{display:flex;align-items:center;gap:8px}.legend-line{width:24px;height:2px;background:var(--candidate-color)}.chart-note{font-size:11px;line-height:1.6;color:var(--muted);text-align:center;margin:15px 0 0}.compare-controls{display:flex;gap:16px;align-items:flex-end;margin-bottom:28px}.compare-controls label{min-width:260px}.compare-controls>span{margin-left:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:right;padding:18px 15px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:12px;font-weight:500;color:var(--muted)}th:first-child,td:first-child{text-align:left}th:nth-child(2),td:nth-child(2){text-align:left}td:first-child label{display:flex;align-items:center;gap:9px;cursor:pointer}td:first-child small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.highlight{background:#ebeff5;color:var(--primary);font-weight:650}.sugar-pattern{display:flex;align-items:center;gap:2px;margin:4px 0}.sugar-pattern span:first-child{font-size:9px;width:13px;color:var(--muted)}.sugar-bit{width:5px;height:10px;border-radius:2px;background:var(--sugar-fill)}.pending-cell{color:#9ba4b1}.row-status{font-size:10px;color:var(--warning)}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:19px 0;margin-top:27px;color:var(--muted);font-size:10px;line-height:1.7}
.card,.mod-grid>label{min-width:0}.coverage summary{cursor:pointer;font-weight:600}.coverage details[open] summary{margin-bottom:9px}.coverage details[open] p+p{margin-top:9px}
@media(max-width:1120px){.section-heading{align-items:flex-start;flex-direction:column;gap:17px}.design-grid{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.card{padding:20px}.candidate-name{flex-wrap:wrap}.candidate-name label{width:60px}.candidate-name input{min-width:120px}.mod-footer{align-items:flex-start;flex-direction:column}.mod-footer p{max-width:none}.explorer-grid{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:800px){main{padding:22px 14px 10px}h1{font-size:24px}.actions{gap:7px}.actions button,.mode-badge{font-size:12px;padding:9px 11px}.design-grid,.explorer-grid{grid-template-columns:1fr}.prediction-card{min-height:0}.prediction-value{font-size:54px}.candidate-chip{min-width:165px}.candidate-list{margin-bottom:14px}.editor{padding:18px 15px}.sequence-field{grid-template-columns:68px minmax(0,1fr) 32px;gap:7px}.sequence-field textarea{font-size:12px;letter-spacing:.35px}.sequence-length{font-size:9px}.mod-grid{grid-template-columns:1fr 1fr}.mod-grid>label:nth-child(3){grid-column:1/3}.mod-search-label{grid-column:1/3}.mod-select-label{grid-column:1/3}.mod-title span{display:none}.mod-footer{gap:12px}.nucleotide-wrap{min-width:25px}.compare-controls{flex-wrap:wrap}.compare-controls>span{margin:0}.compare-controls label{min-width:0;width:100%}.chart-card{min-height:450px}.chart-container{min-height:270px}.job-progress{flex-wrap:wrap}.job-progress progress{width:120px}.selection-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}footer{flex-direction:column;gap:5px}.mode-badge{display:none}}

/* Interactive dose readout, linked comparison and explicit variant sites. */
.candidate-chip{align-items:flex-start;min-width:210px}.candidate-chip>.candidate-dot{margin-top:6px}.candidate-chip-content{min-width:0;width:100%}.candidate-differences{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0 5px}.difference-badge{display:inline-flex;gap:7px;align-items:center;border:1px solid #cbd4dd;background:#f3f2f6;border-radius:5px;padding:3px 7px;font-size:11px;line-height:1.5;white-space:nowrap;color:var(--ink)}.difference-badge strong{font-weight:650}.difference-count{align-self:center;font-size:11px;color:var(--primary);white-space:nowrap}.variable-position{font-weight:700;color:#806443}.nucleotide.variable-site{border:2px solid #a98356}.mod-footer>.actions{margin-left:auto}.prediction-card .coverage{margin-top:20px}.chart-container{position:relative;flex-direction:column}.chart-canvas{width:100%}.chart-canvas svg{display:block}#dose-hit-area{cursor:crosshair}#dose-hit-area:focus-visible{outline:2px solid #aca0b6;outline-offset:-2px}.dose-tooltip{position:absolute;z-index:4;width:300px;max-width:calc(100% - 16px);padding:15px;background:#fff;border:1px solid #b7b3c4;border-radius:10px;box-shadow:0 6px 25px #29374620;font-size:13px;line-height:1.5}.tooltip-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.tooltip-heading strong{font-size:16px;color:var(--primary);font-variant-numeric:tabular-nums}.tooltip-heading strong span{font-size:12px}.tooltip-heading button{padding:0 5px;border:0;background:transparent;font-size:20px}.tooltip-values{max-height:260px;overflow:auto}.tooltip-values table{font-size:12px;table-layout:auto}.tooltip-values th,.tooltip-values td{padding:7px 0;border-bottom:1px solid var(--line);text-align:right}.tooltip-values th:first-child,.tooltip-values td:first-child{text-align:left}.tooltip-values td:first-child{white-space:normal;overflow-wrap:anywhere;max-width:135px}.tooltip-values th{font-size:10px}.tooltip-values td:last-child{font-weight:650;font-variant-numeric:tabular-nums}.tooltip-values .candidate-dot{display:inline-block;margin-right:7px;width:8px;height:8px}.tooltip-action{width:100%;margin-top:12px;font-size:12px;color:var(--primary);background:var(--pale)}.dose-tooltip[data-pinned=true]{border-color:var(--primary)}.compare-controls{flex-wrap:wrap;align-items:center}.compare-controls label{min-width:195px}.compare-controls>span{margin-left:0}.compare-controls #compare-summary{margin-left:auto}.dose-range-badge{font-size:12px;background:var(--pale);color:var(--primary);padding:8px 11px;border-radius:7px}.comparison-differences .difference-badge{display:flex;width:max-content;max-width:270px;margin:4px 0;white-space:normal}.comparison-differences{min-width:200px}#comparison-table th:first-child,#comparison-table td:first-child{position:sticky;left:0;z-index:1;background:white;min-width:175px;box-shadow:1px 0 var(--line)}#comparison-table th[data-dose],#comparison-table td[data-dose]{min-width:112px;font-variant-numeric:tabular-nums}.table-scroll{max-width:100%}.identical-inputs{font-size:12px;color:var(--muted)}.view{padding-bottom:20px}
@media(max-width:800px){.candidate-chip{min-width:235px}.dose-tooltip{position:static;width:100%;max-width:none;margin-top:12px;box-shadow:none}.tooltip-values{max-height:220px}.compare-controls label{min-width:0}.compare-controls #compare-summary{margin-left:0}#comparison-table th:first-child,#comparison-table td:first-child{min-width:140px;padding-left:10px;padding-right:10px}.comparison-differences{min-width:190px}.dose-range-badge{white-space:normal}.chart-container{min-height:200px}.chart-card{min-height:350px}}

.dose-tooltip[data-pinned=false]{pointer-events:none}

#dose-hit-area:focus{outline:none}#dose-hit-area:focus-visible{outline:2px solid #aca0b6;outline-offset:-2px}#comparison-table th:first-child,#comparison-table td:first-child{min-width:235px;width:235px;max-width:235px}.comparison-differences{min-width:0;margin-top:10px}.comparison-differences .difference-badge{max-width:205px}#comparison-table th[data-dose],#comparison-table td[data-dose]{text-align:right}@media(max-width:800px){#comparison-table th:first-child,#comparison-table td:first-child{min-width:155px;width:155px;max-width:155px}#comparison-table th:first-child{white-space:normal}.comparison-differences .difference-badge{max-width:135px;padding:3px 5px;font-size:10px;gap:5px}.identical-inputs{white-space:normal}}

/* Unified Results workspace. */
.results-sidebar{align-self:start}.results-sidebar>label,#range-controls>label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted);margin-bottom:18px}.results-sidebar textarea{resize:vertical;min-height:80px}.results-main{min-width:0;display:flex;flex-direction:column;gap:22px}.results-data-card{min-height:520px}.results-data-card>.card-heading{margin-bottom:16px}.view-switch{display:flex;gap:3px;padding:3px;background:#eef0f5;border-radius:8px}.view-switch button{padding:8px 18px;border-color:transparent;background:transparent;font-size:12px}.view-switch button.active{background:white;border-color:#c6ced9;color:var(--primary);font-weight:650}.results-data-card .chart-container{min-height:330px}.results-data-card .chart-container svg{max-height:400px}.results-data-card #results-table-panel{max-height:550px;overflow:auto}.results-data-card .table-scroll{overflow:auto}.table-candidate{display:flex;align-items:center;gap:9px}.table-candidate strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}.results-data-card #comparison-table th:first-child,.results-data-card #comparison-table td:first-child{min-width:185px;width:185px;max-width:185px}.results-data-card #comparison-table th[data-dose] button{padding:6px 2px;background:transparent;border:0;color:inherit;white-space:nowrap}.results-data-card #comparison-table td[data-dose]{padding:14px 12px}.results-data-card .comparison-differences .difference-badge{font-size:10px}.dose-comparison{scroll-margin-top:20px}.dose-comparison>.card-heading{margin-bottom:22px}.dose-comparison>.card-heading>button{font-size:12px}.comparison-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:23px}.comparison-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted)}.comparison-controls label:first-child{width:150px}.comparison-controls label:nth-child(2){width:205px}.comparison-controls button{font-size:12px;min-height:39px}.comparison-controls .dose-range-badge{margin-bottom:2px}.comparison-selection-heading{display:flex;align-items:center;gap:15px;justify-content:space-between;margin-bottom:12px}.comparison-selection-heading h3{margin:0}.comparison-selection-heading>span{font-size:11px;color:var(--muted)}.comparison-selection{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.comparison-choice{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:7px;font-size:11px;cursor:pointer}.comparison-choice.checked{background:var(--pale);border-color:#c8bbd0}.comparison-choice input{width:14px;height:14px}.comparison-choice .candidate-dot{width:8px;height:8px}.comparison-cards{display:grid;grid-template-columns:repeat(var(--comparison-count,4),minmax(0,1fr));gap:12px}.comparison-card{padding:17px 14px;border:1px solid var(--line);border-radius:10px;min-width:0;background:white}.comparison-card.is-reference{border-color:#b5a3bd;background:#f7f4f8}.comparison-card-heading{display:flex;align-items:center;gap:7px}.comparison-card-heading h3{font-size:12px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.comparison-card-heading>.candidate-dot{width:8px;height:8px}.comparison-card-heading button{margin-left:auto;padding:4px 5px;font-size:10px;border:0;background:transparent;color:var(--primary)}.comparison-status{display:block;font-size:10px;color:var(--muted);margin:9px 0 17px;min-height:15px}.is-reference .comparison-status{color:var(--primary);font-weight:650}.comparison-value{font-size:28px;letter-spacing:-1px;font-weight:650;line-height:1.25;color:var(--ink);font-variant-numeric:tabular-nums}.metric-label{display:block;font-size:10px;color:var(--muted);margin:5px 0 16px}.comparison-delta{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;padding:10px 0 15px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.comparison-delta strong{font-size:17px;font-weight:600}.comparison-delta span{font-size:9px;color:var(--muted)}.comparison-delta.positive strong{color:var(--primary)}.comparison-delta.negative strong{color:#956e55}.site-comparison{margin-top:14px}.site-comparison-row{display:grid;grid-template-columns:1fr;gap:5px;margin-bottom:9px;padding:8px;border-radius:6px;overflow-wrap:anywhere;background:#f3f3f7}.site-comparison-row.changed{background:#faf1e7}.site-comparison-row>span{font-size:10px;color:var(--muted)}.site-comparison-row>strong{font-size:12px;font-weight:600}.site-comparison-row>small{font-size:9px;color:#8d7052}.candidate-sequences{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;font-size:11px}.candidate-sequences summary{cursor:pointer;color:var(--primary)}.candidate-sequences>span{display:block;font-size:10px;color:var(--muted);margin-top:11px}.candidate-sequences code{display:block;overflow-wrap:anywhere;white-space:normal;font-size:10px;line-height:1.7;margin-top:4px}.results-main .empty-state{padding:40px 20px}.results-data-card .identical-inputs{white-space:normal}
@media(max-width:1100px){.comparison-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-controls label{flex:1;min-width:130px}.comparison-controls label:nth-child(2){width:auto}.comparison-value{font-size:27px}.comparison-controls{gap:12px}}
@media(max-width:800px){.results-data-card{min-height:360px}.results-data-card .chart-container{min-height:180px}.results-data-card .card-heading h2{font-size:16px}.view-switch button{padding:7px 12px}.results-data-card #comparison-table th:first-child,.results-data-card #comparison-table td:first-child{min-width:140px;width:140px;max-width:140px}.comparison-controls label:first-child,.comparison-controls label:nth-child(2){width:auto;flex:1;min-width:120px}.dose-comparison>.card-heading{flex-wrap:wrap}.results-main{gap:16px}.comparison-controls .dose-range-badge{margin:0}.comparison-choice{font-size:11px}.comparison-card{padding:18px}.results-sidebar .selection-list{margin-top:15px}.results-data-card #results-table-panel{max-height:450px}}
@media(max-width:600px){.comparison-cards{grid-template-columns:1fr}.comparison-value{font-size:32px}.comparison-card-heading h3{font-size:14px}.site-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-comparison-row{margin:0}.comparison-status{margin-bottom:12px}.comparison-controls button{flex:1}.comparison-delta span{font-size:11px}.candidate-sequences code{font-size:12px}}

/* Readable precision, explicit reference differences, and candidate focus. */
.chart-controls{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:6px 0 20px}.chart-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:150px;flex:1}.chart-controls label:first-child{flex:1.4}.chart-controls select{font-size:12px}.chart-controls>button{font-size:11px;padding:10px 12px;min-height:37px}.curve-legend button{display:flex;align-items:center;gap:8px;border-color:transparent;background:transparent;font-size:12px;padding:7px 9px;color:var(--muted)}.curve-legend button.highlighted{border-color:#c0b5c8;background:var(--pale);color:var(--ink);font-weight:650}.curve-legend .highlighted .legend-line{height:3px}.tooltip-reference{font-size:11px;color:var(--primary);margin:4px 0 10px}.comparison-delta.positive strong,.comparison-delta.negative strong{color:var(--ink)}.difference-help{margin:-6px 0 20px;font-size:11px;color:var(--primary)}.difference-help summary{cursor:pointer;width:fit-content}.difference-help p{max-width:700px;line-height:1.65;color:var(--ink);padding:10px 12px;background:var(--pale);border-radius:6px}.curve-legend{gap:8px 16px}
@media(max-width:800px){.chart-controls{gap:10px}.chart-controls label{min-width:135px}.chart-controls label:first-child{flex-basis:100%}.chart-controls>button{flex:1}.results-data-card .chart-container{min-height:230px}.curve-legend{gap:6px}.curve-legend button{font-size:11px;padding:6px}}

/* Show the absolute response and reference differences together. */
.curve-plots{width:100%;min-width:0}.curve-plots.paired{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.curve-panel{min-width:0}.curve-panel h3{font-size:13px;text-align:center;margin:3px 0 10px}.curve-panel .chart-canvas{width:100%}.results-data-card .chart-container{display:block}.curve-panel svg{display:block}.curve-spread{flex-basis:100%;text-align:center;font-size:12px;color:var(--ink);padding:3px}.legend-symbol{flex:none;overflow:visible}.tooltip-values th{white-space:nowrap}.curve-end-label{pointer-events:none}.curve-legend{margin-bottom:4px}
@media(max-width:800px){.curve-plots.paired{grid-template-columns:1fr;gap:22px}.curve-plots.paired .curve-panel+ .curve-panel{padding-top:15px;border-top:1px solid var(--line)}.curve-panel h3{font-size:13px}.tooltip-values th{font-size:10px}.tooltip-values td{padding:8px 5px}.curve-spread{font-size:11px}.results-data-card .chart-container svg{max-height:none}}

/* Restricted, single-site chemistry exploration. */
.explore-builder{margin-top:22px;scroll-margin-top:20px}.explore-builder>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none}.explore-builder>summary::-webkit-details-marker{display:none}.explore-builder>summary strong{display:block;font-size:18px}.explore-builder>summary small{display:block;color:var(--muted);font-size:12px;margin-top:7px;line-height:1.6}.rule-badge,.explore-locked span,.scan-tags>span{font-size:11px;border-radius:5px;background:#eee9f0;color:#685872;padding:7px 10px}.rule-badge{white-space:nowrap}.explore-builder-body{border-top:1px solid var(--line);padding-top:23px;margin-top:22px}.explore-controls,.scan-controls{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:16px}.explore-controls label,.scan-controls label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted)}.explore-controls input[readonly]{background:#f3f1f5;color:var(--ink)}.explore-locked{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 25px}.explore-locked span{background:#f3f5f5;color:var(--muted)}.explore-strand+.explore-strand{margin-top:24px}.explore-strand-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.explore-strand-heading strong{font-size:13px}.explore-strand-heading strong small{font-size:10px;font-weight:400;color:var(--muted);margin-left:10px}.explore-strand-heading button{font-size:11px;padding:7px 10px}.explore-position-row{display:flex;gap:5px;overflow-x:auto;padding:2px 2px 10px}.explore-site{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:44px;flex:1;padding:9px 3px;border-radius:7px;background:#fafafb;color:var(--muted);border:1px solid var(--line)}.explore-site small{font-size:9px}.explore-site strong{font-size:17px;font-weight:600}.explore-site span{font-size:9px;white-space:nowrap}.explore-site.allowed{background:#e9e4ed;border:2px solid var(--primary);color:var(--ink);padding:8px 2px}.explore-site:disabled{opacity:.48;background:#f0f2f2;cursor:not-allowed}.explore-range{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted);max-width:400px;margin-top:4px}.explore-range input{flex:1;font-size:12px}.explore-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.explore-actions>span{font-size:12px;color:var(--muted);line-height:1.6}.explore-actions button{white-space:nowrap}.inline-error{font-size:12px;color:#96513f;line-height:1.6;margin:14px 0 0}.scan-controls{grid-template-columns:minmax(160px,1.8fr) minmax(100px,1fr) minmax(150px,1.4fr);margin:8px 0 23px}.scan-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.scan-heading strong{display:block;font-size:13px}.scan-heading span{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px}.scan-heading button{white-space:nowrap;font-size:12px}.scan-status{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:18px}.heatmap-key{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:10px;color:var(--muted);margin:20px 0 10px}.heatmap-scale{width:90px;height:8px;border-radius:3px;background:linear-gradient(90deg,#957c96,#f7f6f8,#687f97)}.heatmap-key>span:last-child{margin-left:auto}.scan-table-scroll{max-height:540px;overflow:auto;border:1px solid var(--line);border-radius:8px}#scan-table{font-size:12px}#scan-table th{padding:10px 12px;font-size:11px;position:sticky;top:0;z-index:2;background:#f5f5f7}#scan-table td{padding:7px 10px}#scan-table td:first-child,#scan-table th:first-child{text-align:center;width:65px;min-width:65px}#scan-table td:nth-child(2),#scan-table th:nth-child(2){min-width:150px;background:white;position:sticky;left:0;z-index:1}#scan-table th:nth-child(2){z-index:3;background:#f5f5f7}#scan-table td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}#scan-table th button{background:transparent;border:0;color:inherit;padding:4px;font-size:11px}#scan-table .selected-scan-dose{background:#efeaf2}#scan-table .heat-cell{border:1px solid transparent;padding:10px 13px;min-width:75px;width:100%;font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}#scan-table .heat-cell.focused{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.scan-detail{padding:20px;margin-top:18px;border:1px solid #d2c9d7;border-radius:9px;background:#faf9fb}.scan-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.scan-detail-heading>span{font-size:12px;color:var(--muted)}.scan-readings{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:16px;margin:22px 0}.scan-readings small{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}.scan-readings strong{font-size:27px;font-weight:600;font-variant-numeric:tabular-nums}.scan-readings strong span{font-size:14px;font-weight:400}.scan-tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.scan-tags button{margin-left:auto;font-size:11px;padding:7px 9px;background:white}.scan-detail details{margin-top:17px;padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.7}.scan-detail summary,.scan-help summary{cursor:pointer;color:var(--primary);width:fit-content}.scan-detail details p{margin:10px 0 0}.seed-values{display:flex;flex-wrap:wrap;gap:12px;margin:13px 0}.seed-values>span{padding:10px 12px;background:white;border-radius:6px}.seed-values strong{display:block;color:var(--ink);font-size:14px}.scan-export-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:23px}.scan-export-actions button{font-size:12px}.scan-export-actions>span{font-size:11px;color:var(--muted)}.scan-help{font-size:11px;margin-top:20px;line-height:1.7}.scan-help p{max-width:680px;color:var(--muted)}.explore-builder button:focus-visible,.heat-cell:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:1100px){.scan-controls{grid-template-columns:1fr 1fr}.scan-controls>label:first-child{grid-column:1/-1}.results-data-card>.card-heading{flex-wrap:wrap}.scan-readings strong{font-size:24px}.heatmap-key>span:last-child{margin-left:0}}
@media(max-width:800px){.explore-controls{grid-template-columns:1fr}.explore-builder>summary{align-items:flex-start;flex-wrap:wrap}.explore-builder{padding:19px}.explore-actions{align-items:stretch;flex-direction:column}.explore-site{min-width:43px}.scan-heading{align-items:flex-start;flex-direction:column}.scan-heading button{width:100%}.scan-readings{grid-template-columns:1fr 1fr;gap:18px}.scan-readings>div:last-child{grid-column:1/-1}.scan-detail{padding:15px}.scan-detail-heading{flex-wrap:wrap}.scan-tags button{margin-left:0}.scan-controls{gap:12px}.scan-export-actions>button{flex:1;min-width:160px}.view-switch button{padding:8px 10px}.scan-table-scroll{max-height:420px}#scan-table td:nth-child(2),#scan-table th:nth-child(2){min-width:120px}.explore-range{max-width:none}.explore-strand-heading{gap:6px}.explore-strand-heading .actions{gap:5px}.explore-strand-heading button{padding:6px 8px}.explore-builder>summary strong{font-size:17px}}
.modification-mode .explorer-grid{grid-template-columns:minmax(0,1fr)}.modification-mode .results-sidebar,.modification-mode .dose-comparison{display:none}.modification-mode .results-data-card{max-width:1200px;width:100%;margin:0 auto}.test-list-entries{display:flex;flex-wrap:wrap;gap:8px;max-height:170px;overflow:auto;margin-top:20px}.test-entry{display:inline-flex;align-items:center;border:1px solid #d2c9d7;border-radius:6px;background:#f4f1f6}.test-entry button{font-size:11px;padding:8px 10px;background:transparent;border:0}.test-entry button+button{border-left:1px solid #dfd9e4;border-radius:0;font-size:16px;padding:5px 10px}.test-list-entries:empty{display:none}

/* Shared navigation and the two accent families. */




.status-pill.ready { color: var(--primary); background: var(--pale); }
#explore-open, .rule-badge { color: var(--plum-dark); background: var(--plum-pale); border-color: #d5cad9; }
#explore-builder, .dose-comparison { border-top: 3px solid #ad9bb2; }
#generate-variants, #run-exploration, #export-shortlist { background: var(--plum); border-color: var(--plum); }
#generate-variants:hover:not(:disabled), #run-exploration:hover:not(:disabled), #export-shortlist:hover:not(:disabled) { background: var(--plum-dark); }
input[type="checkbox"] { accent-color: var(--primary); }

.example-page { max-width: 1250px; margin-inline: auto; }
.home-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border-radius: 7px; padding: 13px 17px; font-size: 14px; font-weight: 650; line-height: 1.25; text-decoration: none; }
.primary-link { background: var(--primary); border: 1px solid var(--primary); color: white; }
.primary-link:hover { background: #40576e; }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank-table :is(td,th) { text-align: left; padding: 12px 6px; border: 0; border-bottom: 1px solid #cbbfce; background: transparent; white-space: normal; }
.rank-table :is(td,th):first-child { padding-left: 0; }
.rank-table :is(td,th):last-child { padding-right: 0; }
.rank-table :is(td,th):nth-child(n+3) { text-align: right; }
.rank-table thead th { font-size: 12px; font-weight: 550; color: #5b5062; }
.rank-table tbody :is(td,th) { color: #3a3342; font-size: 15px; }
.rank-table tbody th { font-weight: 580; }
.rank-table tbody td:first-child { width: 14%; color: #675b6f; }
.rank-table tbody td:nth-child(3) { font-weight: 650; }

.example-page { padding: 12px 0 30px; }
.example-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.example-head>div>a { color: var(--plum-dark); font-size: 13px; }
.example-head h1 { font-size: clamp(30px,3vw,46px); letter-spacing: -.04em; margin: 16px 0 8px; }
.example-head p,.example-note { color: var(--muted); margin: 0; line-height: 1.5; }
.example-controls,.example-content { border: 1px solid var(--line); }
.example-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; background: #e9e3ec; border-radius: 12px 12px 0 0; }
.example-switch { display: flex; gap: 5px; flex-wrap: wrap; }
.example-switch button { background: transparent; font-size: 13px; padding: 9px 13px; color: #4f4358; border-color: transparent; }
.example-switch button[aria-pressed="true"] { background: var(--plum-dark); color: white; border-color: var(--plum-dark); }
.example-controls label,.example-field { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.example-controls select, .example-field select { width: auto; max-width: 100%; }
.example-content { background: #fff; padding: clamp(16px,2.5vw,35px); border-top: 0; border-radius: 0 0 12px 12px; }
.example-content h2 { margin: 0 0 18px; font-size: 22px; }
.example-content .rank-table :is(td,th) { border-color: var(--line); }
.example-chart { width: 100%; max-width: 880px; height: auto; display: block; margin: 15px auto; }
#example-curve-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; font-size: 13px; }
#example-curve-values span { display: inline-flex; gap: 6px; align-items: center; }
#example-curve-values i { width: 9px; height: 9px; border-radius: 50%; }
.example-pair-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 760px; }
.example-pair-grid>div { background: var(--pale); padding: 16px; border-radius: 8px; display: grid; gap: 6px; }
.example-pair-grid>div+div { background: var(--plum-pale); }
.example-pair-grid b { font-size: 25px; }
.example-difference { line-height: 1.6; margin-bottom: 0; }
.example-note { font-size: 12px; margin-top: 14px; }
@media(max-width:660px) {
 .home-link { padding: 11px 13px; }
 .example-head { flex-wrap: wrap; }
 .example-controls { padding: 13px; }
 .example-switch button { padding: 8px; }
 .example-content .rank-table :is(td,th) { padding: 9px 4px; font-size: 12px; }
}

.example-switch button { transition: none; }
.example-switch button[aria-pressed="true"]:hover:not(:disabled) { background: var(--plum-dark); color: white; border-color: var(--plum-dark); }

/* Keep the masthead aligned when switching to a page with a scrollbar. */
html { overflow-y: scroll; }
.app-header {
 display: flex; align-items: center; justify-content: space-between;
 min-height: 70px; padding: 0 clamp(24px,6vw,110px); gap: 24px;
 background: #151e2b; border-bottom: 1px solid #39414f;
}
.app-header .brand { display: inline-flex; align-items: center; gap: 10px; color: #f5f4f8; font-weight: 700; text-decoration: none; }
.brand-name { font-size: 23px; line-height: 1.05; letter-spacing: -.045em; }
.app-header .logo { font-size: 37px; line-height: 1; color: #c4b4c9; }
.app-header nav { display: flex; align-self: stretch; gap: clamp(12px,2.7vw,42px); }
.app-header .tab {
 display: inline-flex; align-items: center; padding: 0 2px; color: #b9c1d0;
 border-bottom: 2px solid transparent; font-size: 14px; font-weight: 550; line-height: 1.2; text-decoration: none;
}
.app-header .tab:hover, .app-header .tab.active { color: white; }
.app-header .tab.active { border-color: #c4b4c9; }
#service-status { display: inline-block; margin-bottom: 12px; }
#service-status.ready, body:is([data-page="home"],[data-page="example"]) #service-status:not(.failed) { display: none; }
body[data-page="home"] {
 display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: #17212e;
}
body[data-page="home"] main { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 0; max-width: none; }
body[data-page="home"] :is(#notice,#job-progress,#service-status.failed):not([hidden]) { margin: 8px clamp(18px,6vw,110px); }
.landing { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 0; }
.launch-hero {
 display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr);
 grid-template-areas: "copy duplex"; align-items: center; gap: clamp(12px,2vw,40px);
 padding-inline: clamp(22px,5vw,110px); flex: 1; min-height: 485px;
 background: radial-gradient(ellipse at 80% 40%,rgba(81,109,119,.27),transparent 46%),
  radial-gradient(ellipse at 60% 100%,rgba(86,70,94,.19),transparent 58%),
  linear-gradient(118deg,#101924,#172331 57%,#202d3a);
}
.launch-art {
 grid-area: duplex; width: 100%; height: auto; max-width: 780px; justify-self: center;
 display: block; pointer-events: none; font-family: inherit;
}
.launch-copy { grid-area: copy; margin: 0; padding-block: 64px; color: white; }
.launch-copy h1 {
 margin: 0; color: #f4f3f5; font-size: clamp(38px,4.35vw,76px); font-weight: 560;
 line-height: 1.035; letter-spacing: -.055em;
}
.launch-copy h1 span { display: block; color: #d5cbdc; }
.launch-copy p {
 color: #e1e4eb; font-size: clamp(18px,1.5vw,23px); font-weight: 420;
 line-height: 1.45; margin: 18px 0 33px;
}
.launch-actions { display: flex; align-items: center; gap: 13px 24px; flex-wrap: wrap; }
.launch-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 45px; font-size: 14px; font-weight: 620; text-decoration: none; }
.launch-primary { color: #1c293a; background: #dce5ef; padding: 12px 21px; border-radius: 24px; }
.launch-primary:hover { background: #eef2f7; }
.launch-secondary { color: #f4edf7; padding: 7px 0; text-decoration-thickness: 1px; }
.launch-secondary:hover { text-decoration: underline; text-underline-offset: 5px; }
.launch-actions a:focus-visible, .app-header a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media(max-width:760px) {
 .app-header { min-height: 65px; padding-inline: 20px; gap: 12px; }
 .app-header nav { gap: 15px; }
 .launch-hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "duplex" "copy";
  align-content: center; gap: 15px; min-height: 420px; padding: 16px 24px 32px; }
 .launch-art { max-width: 440px; }
 .launch-copy { padding: 0; }
 .launch-copy h1 { font-size: clamp(41px,7.7vw,62px); }
 .launch-copy p { font-size: 17px; margin: 14px 0 23px; }
 .launch-actions { gap: 8px 18px; }
}
@media(max-width:380px) {
 .app-header { padding-inline: 14px; gap: 10px; }
 .app-header nav { gap: 10px; }
 .brand-name { font-size: 20px; }
 .launch-hero { padding-inline: 18px; }
 .launch-primary { padding-inline: 15px; }
 .launch-actions a { font-size: 13px; }
}

@media (min-width: 761px) and (max-height: 550px) {
 .launch-hero {min-height: 215px;}
 .launch-copy {padding-block: 20px 22px;}
 .launch-copy h1 {font-size: clamp(40px, 4.6vw, 56px);}
 .launch-copy p {margin: 8px 0 14px;}
}

@media (min-width: 500px) and (max-width: 760px) and (max-height: 480px) {
 .launch-hero {min-height: 186px;grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  grid-template-areas: "copy duplex"; padding: 16px 20px; gap: 10px;}
 .launch-copy {padding: 0;}
 .launch-copy h1 {font-size: clamp(28px,5vw,36px);}
 .launch-copy p {font-size: 15px;margin: 6px 0 10px;}
 .launch-actions a {min-height: 34px;padding-block: 6px;}
}

/* A fill marks sugar chemistry. Independent glyphs keep other modifications visible. */
#view-design { --tile-rna:#f8fafb; --tile-sugar:#c0e3d8; --mark-base:#765490; --mark-backbone:#925210; --mark-terminal:#246181; }
.nucleotide.modified-sugar, .key-sugar { background:var(--tile-sugar); }
.nucleotide.variable-site { border:1.5px dashed #727e83; }
.nucleotide.selected { outline:2px solid #3d536e; outline-offset:-2px; }
.nucleotide:focus-visible { outline:2px solid #234a78; outline-offset:1px; }
.ps-before { background:var(--mark-backbone); height:3px; }
.ps-position { background:var(--mark-backbone); left:3px; bottom:3px; width:5px; height:5px; }
.base-marker,.key-base { background:var(--mark-base); width:6px; height:6px; transform:rotate(45deg); }
.base-marker { position:absolute; right:4px; top:4px; }
.terminal-marker,.key-terminal { width:0; height:0; border-top:8px solid var(--mark-terminal); border-right:8px solid transparent; }
.terminal-marker { position:absolute; top:2px; left:2px; right:auto; }
.chemistry-legend { gap:5px 13px; margin:9px 0 4px; font-size:11px; }
.chem-key { display:inline-block; flex:none; }
.key-rna,.key-sugar { width:12px; height:12px; border:1px solid #9eb3ac; border-radius:3px; }
.key-rna { background:var(--tile-rna); }
.key-backbone { position:relative; width:16px; height:3px; background:linear-gradient(to right,var(--mark-backbone) 0 8px,transparent 8px); }
.key-backbone::after { content:""; position:absolute; right:0; top:-1px; width:5px; height:5px; border-radius:50%; background:var(--mark-backbone); }

/* Support pages and small help links; existing workspace layout is retained. */
.nav-short { display:none; }
.help-dot { display:inline-flex; width:18px; height:18px; align-items:center; justify-content:center; border:1px solid #a7a0ad; border-radius:50%; font-size:11px; font-weight:600; line-height:1; text-decoration:none; color:#65586c; vertical-align:middle; margin-left:5px; flex-shrink:0; }
.help-dot:hover,.help-dot:focus-visible { background:#eee9f1; outline:2px solid #c4b4c9; outline-offset:2px; }
.task-receipt { display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px; margin:0 0 16px; }
.task-receipt button { padding:5px 9px; font-size:11px; }
.link-copy-field { width:100%; max-width:720px; font-size:12px; margin-top:8px; }
.support-page { max-width:1250px; margin:0 auto; padding:12px 0 30px; }
.support-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:18px; }
.support-heading h1 { margin:12px 0; }
.support-heading h2 { margin:0; }
.support-heading p { color:var(--muted); margin-bottom:0; }
.support-page a,.example-links a,.task-receipt a { color:#67516f; }
.support-page .help-dot { color:#65586c; }
.support-card { padding:24px; margin-bottom:20px; }
.support-card h2 { font-size:18px; }
.support-card summary { cursor:pointer; font-weight:600; }
.support-actions,.support-controls,.example-links,.doc-index { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.example-links { font-size:13px; margin:12px 0 18px; }
.example-links [aria-current="page"] { font-weight:700; text-decoration:none; }
.support-controls { align-items:flex-end; margin-bottom:20px; }
.support-controls label { display:flex; flex-direction:column; gap:6px; font-size:12px; }
.support-controls select { min-width:130px; max-width:280px; }
.support-actions button,.support-download { font-size:12px; }
.support-download { padding:9px 12px; border:1px solid var(--line); border-radius:6px; text-decoration:none; }
.support-note { font-size:12px; line-height:1.65; color:var(--muted); }
.support-result-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:24px; align-items:start; }
.support-table { overflow:auto; max-width:100%; }
.support-table table,.doc-body table { width:100%; border-collapse:collapse; font-size:12px; text-align:left; }
.support-table th,.support-table td,.doc-body th,.doc-body td { padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.support-table th { font-weight:600; }
.support-table td { font-variant-numeric:tabular-nums; }
.support-table .case-selected { background:#f3eff5; }
.support-plot svg { display:block; width:100%; height:auto; font-family:inherit; font-size:12px; fill:#4c4f56; }
.wide-case-plot { overflow:auto; margin:14px 0 8px; }
.wide-case-plot svg { min-width:780px; }
.task-metadata { display:grid; grid-template-columns:85px minmax(0,1fr); gap:7px 16px; font-size:12px; margin:18px 0; }
.task-metadata dt { color:var(--muted); }.task-metadata dd { margin:0; overflow-wrap:anywhere; }
.sequence-text { font-family:monospace; overflow-wrap:anywhere; }
#task-page-progress { width:100%; }
.doc-index { padding:16px 0; border-block:1px solid var(--line); font-size:13px; }
.doc-body { max-width:880px; line-height:1.7; font-size:14px; }
.doc-body section { scroll-margin-top:20px; padding-top:20px; }
.doc-body h2 { font-size:19px; margin:10px 0 12px; }.doc-body p { margin:12px 0; }
.doc-body li { margin-bottom:9px; }.doc-body code { overflow-wrap:anywhere; }
.doc-body table { margin-bottom:20px; }
@media (max-width:700px) {
 .nav-full { display:none; }.nav-short { display:inline; }
 .support-card { padding:17px; }.support-result-grid { grid-template-columns:1fr; gap:12px; }
 .support-heading { align-items:flex-start; gap:12px; }.support-heading h1 { font-size:24px; }
 .support-controls select { max-width:220px; }.support-actions { gap:8px; }
 .doc-body { font-size:13px; }
}
@media (max-width:420px) {
 .app-header nav { gap:7px; }.app-header .tab { font-size:12px; }
 .app-header .brand { gap:6px; }.app-header .logo { font-size:30px; }
 .support-controls select { min-width:100px; }.support-card { padding:14px; }
}


/* v22: keep workspace actions and candidate buttons on one horizontal line. */
#view-design > .section-heading {
 display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center;
 justify-content:space-between; gap:20px; min-width:0;
}
#view-design > .section-heading > div:first-child { flex:0 0 auto; }
#view-design > .section-heading h1 { white-space:nowrap; }
#view-design > .section-heading > .actions {
 display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center;
 justify-content:flex-start; gap:8px; min-width:0; max-width:100%;
 margin-left:auto; overflow-x:auto; padding:3px 0 7px;
}
#view-design > .section-heading > .actions > * { flex:0 0 auto; white-space:nowrap; }
#view-design > .section-heading > .actions button { white-space:nowrap; }
#candidate-list {
 display:flex; flex-flow:row nowrap; align-items:stretch; gap:12px;
 width:100%; max-width:100%; min-width:0; overflow-x:scroll; overflow-y:hidden;
 padding:3px 3px 12px; margin-bottom:20px; scroll-snap-type:x proximity;
 scrollbar-width:auto; scrollbar-color:#9aa9b8 #e6ebf0;
}
#candidate-list > .candidate-chip {
 flex:0 0 236px; width:236px; min-width:236px; max-width:236px;
 scroll-snap-align:start;
}
#candidate-list:focus-visible { outline:2px solid #8a7996; outline-offset:2px; }
#candidate-list::-webkit-scrollbar,
#view-design > .section-heading > .actions::-webkit-scrollbar { height:10px; }
#candidate-list::-webkit-scrollbar-track,
#view-design > .section-heading > .actions::-webkit-scrollbar-track { background:#e6ebf0; border-radius:6px; }
#candidate-list::-webkit-scrollbar-thumb,
#view-design > .section-heading > .actions::-webkit-scrollbar-thumb { background:#9aa9b8; border-radius:6px; border:2px solid #e6ebf0; }
@media(max-width:960px) {
 #view-design > .section-heading { flex-direction:column; align-items:stretch; gap:12px; }
 #view-design > .section-heading > .actions { margin-left:0; width:100%; }
}


/* v23: compact dose table, two modification badges per row, purple knit mark. */
.app-header .logo { display:block; flex:0 0 38px; width:38px; height:38px; line-height:0; }
.app-header .logo svg { display:block; width:100%; height:100%; }
#view-results > .section-heading {
 display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center;
 justify-content:space-between; gap:20px; min-width:0;
}
#view-results > .section-heading > div:first-child { flex:0 0 auto; }
#view-results > .section-heading > .actions {
 display:flex; flex-flow:row nowrap; align-items:center; gap:8px;
 min-width:0; max-width:100%; margin-left:auto; overflow-x:auto; padding:3px 0 7px;
}
#view-results > .section-heading > .actions > * { flex:0 0 auto; white-space:nowrap; }
.results-data-card #comparison-table { table-layout:auto; min-width:610px; }
.results-data-card #comparison-table th:first-child,
.results-data-card #comparison-table td:first-child {
 width:auto; min-width:320px; max-width:none; padding:10px 12px; text-align:left; white-space:normal;
}
.results-data-card #comparison-table th[data-dose],
.results-data-card #comparison-table td[data-dose] {
 width:86px; min-width:86px; max-width:86px; padding:10px 9px;
 vertical-align:middle; white-space:nowrap; text-align:right;
}
.results-data-card #comparison-table .comparison-differences {
 display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 6px;
 width:320px; max-width:100%; min-width:0; margin-top:6px;
}
.results-data-card #comparison-table .comparison-differences .difference-badge {
 display:flex; align-items:center; justify-content:space-between; gap:7px;
 width:auto; min-width:0; max-width:none; margin:0; padding:3px 7px;
 font-size:11px; line-height:1.4; white-space:normal;
}
.results-data-card #comparison-table .difference-badge > span { white-space:nowrap; }
.results-data-card #comparison-table .difference-badge > strong { overflow-wrap:anywhere; }
.results-data-card #comparison-table .difference-count { grid-column:1 / -1; font-size:10px; line-height:1.3; }
@media(max-width:640px) {
 #view-results > .section-heading { flex-direction:column; align-items:stretch; gap:10px; }
 #view-results > .section-heading > .actions { width:100%; margin-left:0; }
 .app-header .logo { flex-basis:32px; width:32px; height:32px; }
 /* A wide dose grid scrolls without covering dose values with the candidate column. */
 .results-data-card #comparison-table th:first-child,
 .results-data-card #comparison-table td:first-child { position:static; }
}

/* v31: move the brand slightly toward the left edge, keeping navigation aligned. */
.app-header .brand { margin-left:-16px; }
@media(max-width:760px) { .app-header .brand { margin-left:-6px; } }

/* v32: axial duplex rotation with stationary SVG callout labels. */
.launch-art-frame { grid-area:duplex; position:relative; width:100%; max-width:780px; justify-self:center; }
.launch-art-frame .launch-art { position:relative; width:100%; max-width:none; }
.duplex-canvas { display:none; position:absolute; inset:0; width:100%; height:100%; pointer-events:none; filter:drop-shadow(1px 4px 3px #050b1447); }
.launch-art-frame[data-animated=true] .duplex-canvas { display:block; }
.launch-art-frame[data-animated=true] .duplex-scene { visibility:hidden; }
@media(max-width:760px) { .launch-art-frame { max-width:440px; } }

/* v33: terminal labels remain legible while their attachment points rotate. */
.duplex-ends { paint-order:stroke; stroke:#172331; stroke-width:2.5px; stroke-linejoin:round; }

/* Home and its collapsible masthead. */

  :is(#dk-masthead, #view-home) {
    --night: #151e2b;
    --header-space: clamp(12px, 1.25vw, 20px);
    --navy: #172331;
    --ink: #293746;
    --lilac: #d5cbdc;
    --plum: #604c68;
    --mint: #9ccdc5;
    --lavender: #bbaac7;
    --sand: #dbbd85;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--navy);
    line-height: 1.45;
    color-scheme: light;
    text-align: left;
  }
  :is(#dk-masthead, #view-home) *, :is(#dk-masthead, #view-home) *::before, :is(#dk-masthead, #view-home) *::after { box-sizing: border-box; }
  :is(#dk-masthead, #view-home) :is(h1,h2,p,dl,dd,figure) { margin: 0; }
  :is(#dk-masthead, #view-home) button {
    appearance: none;
    padding: 0;
    margin: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    text-transform: none;
  }
  :is(#dk-masthead, #view-home) :is(button,textarea):focus-visible { outline: 3px solid #ab92c0; outline-offset: 3px; }
  :is(#dk-masthead, #view-home) [hidden] { display: none !important; }
  :is(#dk-masthead, #view-home) .dk-wrap { width: min(1120px, calc(100% - clamp(44px, 12vw, 152px))); margin-inline: auto; }
  :is(#dk-masthead, #view-home) .dk-header {
    --mark: 88px; --brand-gap: 15px; --nav-gap: clamp(40px, 5vw, 76px);
    position: relative; z-index: 1; background: #2b3546; color: #f5f4f8;
  }
  :is(#dk-masthead, #view-home) .dk-bar {
    display: grid; grid-template-columns: minmax(max-content, .74fr) minmax(0, 1.26fr);
    grid-template-areas: "brand composer" ". error" ". hints" "nav nav";
    column-gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: calc(16px + var(--header-space)) 0;
  }
  :is(#dk-masthead, #view-home) .dk-brand {
    grid-area: brand; display: inline-flex; align-items: center; justify-self: start; gap: var(--brand-gap);
    color: #f6f5f8; font-size: clamp(35px, 3.55vw, 50px); font-weight: 650; letter-spacing: -.055em; line-height: 1.1;
  }
  :is(#dk-masthead, #view-home) .dk-brand img { display: block; width: var(--mark); height: var(--mark); filter: drop-shadow(0 3px 7px #10152129); }
  :is(#dk-masthead, #view-home) .dk-bar nav {
    grid-area: nav; display: flex; align-items: stretch; justify-content: flex-start;
    padding-inline-start: 0; gap: var(--nav-gap);
    height: calc(38px + var(--header-space)); margin-top: calc(5px + var(--header-space));
  }
  :is(#dk-masthead, #view-home) nav a {
    position: relative; display: inline-flex; align-items: center; justify-content: flex-start;
    padding: 0; border: 0; background: transparent; line-height: 1.3;
    color: #e0e5ed; font-size: 18px; font-weight: 500; white-space: nowrap;
  }
  :is(#dk-masthead, #view-home) nav a:hover { color: #fff; }
  :is(#dk-masthead, #view-home) nav a + a::before {
    content: ""; position: absolute; top: 50%; left: calc(var(--nav-gap) / -2);
    width: 1px; height: 11px; transform: translate(-50%, -50%); background: #738093; pointer-events: none;
  }
  :is(#dk-masthead, #view-home) nav [aria-current="page"]::after {
    content: ""; position: absolute; bottom: -1px; left: 0;
    width: min(100%, 4ch); height: 2px; pointer-events: none;
    border-radius: 1px; background: #dac6e2;
  }
  :is(#dk-masthead, #view-home) .dk-short { display: none; }
  :is(#dk-masthead, #view-home) .dk-hero {
    background: radial-gradient(ellipse at 78% 62%, #293a46 0, transparent 49%), linear-gradient(110deg, #101924, #172331 61%, #202d3a);
    padding-block: clamp(14px, 1.5vw, 22px) clamp(32px, 3.6vw, 50px);
    color: #f6f5f8;
  }
  :is(#dk-masthead, #view-home) .dk-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    grid-template-areas: "intro duplex";
    column-gap: clamp(24px, 4.2vw, 64px);
    row-gap: clamp(14px, 1.5vw, 22px);
    align-items: center;
  }
  :is(#dk-masthead, #view-home) .dk-heading { grid-area: intro; min-width: 0; container-type: inline-size; text-align: left; }
  :is(#dk-masthead, #view-home) .dk-copy { width: max-content; max-width: 100%; margin-inline: auto; }
  :is(#dk-masthead, #view-home) h1 { font-size: clamp(32px, 12.1cqi, 64px); font-weight: 560; line-height: 1.04; letter-spacing: -.052em; color: #f6f5f8; }
  :is(#dk-masthead, #view-home) h1 span { display: block; color: var(--lilac); }
  :is(#dk-masthead, #view-home) .dk-heading p { color: #dce2ea; margin-top: 10px; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.42; letter-spacing: -.018em; }
  :is(#dk-masthead, #view-home) .dk-features {
    position: relative; margin: 25px 0 0; padding: 0; padding-inline-start: 16px;
    list-style: none; color: #c4cdd6;
    font-size: clamp(13px, 1vw, 15px); line-height: 1.6;
  }
  :is(#dk-masthead, #view-home) .dk-features::before {
    content: ""; position: absolute; inset-inline-start: 0; inset-block: .34em;
    width: 2px; border-radius: 1px; background: #a494af;
  }
  :is(#dk-masthead, #view-home) .dk-figure { grid-area: duplex; justify-self: center; width: min(100%, 490px); }
  :is(#dk-masthead, #view-home) .dk-plate {
    position: relative; isolation: isolate;
    display: grid; place-items: center;
    background: radial-gradient(ellipse at 50% 65%, #cfc0e412, transparent 65%);
  }
  :is(#dk-masthead, #view-home) .dk-plate::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(circle, #a7bdcb57 .8px, transparent 1px);
    background-size: 16px 16px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
  }
  :is(#dk-masthead, #view-home) .dk-duplex { position: relative; width: min(var(--figure-scale, 91%), 420px); }
  :is(#dk-masthead, #view-home) .dk-duplex img { display: block; width: 100%; height: auto; }
  :is(#dk-masthead, #view-home) .dk-duplex canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
  :is(#dk-masthead, #view-home) .dk-ends { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  :is(#dk-masthead, #view-home) .dk-end-guide { color: #ace0d7; }
  :is(#dk-masthead, #view-home) .dk-end-passenger { color: #dfc9e5; }
  :is(#dk-masthead, #view-home) .dk-ends text { fill: currentColor; font: 600 18px Inter, Arial, sans-serif; dominant-baseline: central; }
  :is(#dk-masthead, #view-home) .dk-ends line { stroke: currentColor; stroke-width: 1; opacity: .76; }
  :is(#dk-masthead, #view-home) .dk-duplex[data-ready] canvas { display: block; }
  :is(#dk-masthead, #view-home) .dk-duplex[data-ready] img { opacity: 0; }
  :is(#dk-masthead, #view-home) figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 16px; margin-top: 2px; align-items: center; }
  :is(#dk-masthead, #view-home) figcaption span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #d6dde5; white-space: nowrap; }
  :is(#dk-masthead, #view-home) figcaption i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
  :is(#dk-masthead, #view-home) .dk-guide { background: var(--mint); }
  :is(#dk-masthead, #view-home) .dk-passenger { background: var(--lavender); }
  :is(#dk-masthead, #view-home) figcaption .dk-sugar { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--sand); }
  :is(#dk-masthead, #view-home) .dk-form { display: contents; }
  :is(#dk-masthead, #view-home) .dk-field-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  :is(#dk-masthead, #view-home) .dk-format { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d3c9da; min-height: 27px; }
  :is(#dk-masthead, #view-home) .dk-format span { border: 1px solid #b5a6c1; font: 600 11px/14px Arial,sans-serif; border-radius: 100%; width: 15px; height: 15px; text-align: center; }
  :is(#dk-masthead, #view-home) .dk-format:hover, :is(#dk-masthead, #view-home) .dk-sample:hover { color: white; }
  :is(#dk-masthead, #view-home) .dk-composer { grid-area: composer; min-width: 0; display: flex; align-items: center; gap: 10px; background: #627186; color: #fcfdff; border: 1px solid transparent; border-radius: 10px; padding: 7px 8px; box-shadow: 0 6px 18px #08111e33; }
  :is(#dk-masthead, #view-home) .dk-composer:focus-within { box-shadow: 0 0 0 3px #ac98bd, 0 6px 18px #08111e33; }
  :is(#dk-masthead, #view-home) .dk-lines { min-width: 34px; padding: 0 10px 0 4px; text-align: center; }
  :is(#dk-masthead, #view-home) .dk-lines span { display: block; color: #f3f6fa; font: 12px/22px ui-monospace, Consolas, monospace; }
  :is(#dk-masthead, #view-home) textarea {
    min-width: 0; flex: 1; height: 44px; padding: 0; margin: 0;
    border: 0; border-radius: 0; background: transparent; color: #fcfdff; caret-color: #fcfdff;
    font: 15px/22px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    resize: none; outline: none; box-shadow: none;
  }
  :is(#dk-masthead, #view-home) textarea:focus-visible { outline: none; }
  :is(#dk-masthead, #view-home) textarea::placeholder { opacity: 1; color: #f5f7fb; }
  :is(#dk-masthead, #view-home) .dk-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 44px; padding: 0 15px; border-radius: 7px;
    background: #baa8c5; color: #241e2d; font-size: 15px; font-weight: 620;
  }
  :is(#dk-masthead, #view-home) .dk-submit:hover { background: #d0c0d9; }
  :is(#dk-masthead, #view-home) .dk-submit span { font-size: 20px; font-weight: 400; line-height: 1; }
  :is(#dk-masthead, #view-home) .dk-hints { grid-area: hints; display: flex; align-items: center; flex-wrap: wrap; gap: 0 13px; margin-top: -4px; min-height: 27px; }
  :is(#dk-masthead, #view-home) .dk-hints p { color: #c4cdd6; font-size: 13px; }
  :is(#dk-masthead, #view-home) .dk-sample { display:inline-flex; align-items:center; font-size: 13px; color: #e4d9ea; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9985a5; min-height: 27px; }
  :is(#dk-masthead, #view-home) .dk-error { grid-area: error; margin-top: 9px; color: #ffd3c9; font-size: 14px; }
  :is(#dk-masthead, #view-home) .dk-detail { font-size: 15px; line-height: 1.55; color: #526270; }
  @media (min-width: 681px) {
    :is(#dk-masthead, #view-home) .dk-hero {
      display: grid;
      padding-top: calc(clamp(14px, 1.5vw, 22px) - var(--header-space));
      padding-bottom: calc(10px + 2 * var(--header-space));
    }
    :is(#dk-masthead, #view-home) .dk-hero-grid { grid-template-rows: minmax(min-content, 1fr); align-self: stretch; }
  }
  @media (min-width: 941px) {
    :is(#dk-masthead, #view-home) .dk-wrap { width: min(1240px, calc(100% - clamp(80px, 11vw, 160px))); }
    :is(#dk-masthead, #view-home) .dk-figure { width: min(100%, 630px); margin-block-start: clamp(0px, 5vh, 48px); }
    :is(#dk-masthead, #view-home) .dk-duplex { width: var(--figure-scale, 91%); }
    :is(#dk-masthead, #view-home) h1 { font-size: clamp(42px, 12.2cqi, 70px); }
    :is(#dk-masthead, #view-home) .dk-features { margin-top: 30px; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.7; }
    :is(#dk-masthead, #view-home) figcaption { margin-top: 8px; }
  }
  @media (max-width: 1150px) {
    :is(#dk-masthead, #view-home) .dk-bar {
      grid-template-columns: max-content minmax(0,1fr);
      grid-template-areas: "brand composer" ". error" "hints hints" "nav nav";
      column-gap: clamp(16px, 3vw, 34px);
    }
    :is(#dk-masthead, #view-home) .dk-hints { justify-content: flex-end; }
  }
  @media (min-width: 681px) and (max-width: 940px) {
    :is(#dk-masthead, #view-home) .dk-hero-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); column-gap: 22px; }
    :is(#dk-masthead, #view-home) .dk-heading p { font-size: 17px; }
    :is(#dk-masthead, #view-home) .dk-composer { gap: 8px; padding: 7px; }
    :is(#dk-masthead, #view-home) .dk-submit { padding-inline: 13px; gap: 8px; }
    :is(#dk-masthead, #view-home) .dk-lines { min-width: 25px; padding-inline: 3px 7px; }
  }
  @media (max-width: 680px) {
    :is(#dk-masthead, #view-home) { --header-space: 4px; }
    :is(#dk-masthead, #view-home) .dk-hero { padding-top: calc(16px - 3 * var(--header-space)); }
    :is(#dk-masthead, #view-home) .dk-brand { font-size: 30px; }
    :is(#dk-masthead, #view-home) .dk-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "duplex" "intro"; row-gap: 16px; }
  }
  @media (max-width: 760px) {
    :is(#dk-masthead, #view-home) .dk-wrap { width: calc(100% - 44px); }
    :is(#dk-masthead, #view-home) figcaption { gap: 4px 8px; }
    :is(#dk-masthead, #view-home) figcaption span { font-size: 11px; }
  }
  @media (max-width: 600px) {
    :is(#dk-masthead, #view-home) .dk-wrap { width: calc(100% - 36px); }
    :is(#dk-masthead, #view-home) .dk-header { --mark: 64px; --brand-gap: 6px; --nav-gap: clamp(16px, 5.2vw, 28px); }
    :is(#dk-masthead, #view-home) .dk-brand { font-size: 24px; }
    :is(#dk-masthead, #view-home) .dk-bar { column-gap: 10px; padding-block: calc(12px + var(--header-space)) 0; }
    :is(#dk-masthead, #view-home) .dk-bar nav { height: calc(47px + var(--header-space)); margin-top: var(--header-space); }
    :is(#dk-masthead, #view-home) nav a { font-size: 15px; min-width: 36px; }
    :is(#dk-masthead, #view-home) .dk-long { display: none; }
    :is(#dk-masthead, #view-home) .dk-short { display: inline; }
    :is(#dk-masthead, #view-home) .dk-hero { padding-block: calc(22px - 3 * var(--header-space)) 24px; }
    :is(#dk-masthead, #view-home) .dk-heading p { font-size: 18px; margin-top: 6px; }
    :is(#dk-masthead, #view-home) .dk-figure { width: min(100%, 350px); }
    :is(#dk-masthead, #view-home) .dk-duplex { width: min(var(--figure-scale, 91%), 310px); }
    :is(#dk-masthead, #view-home) .dk-ends text { font-size: 21px; }
    :is(#dk-masthead, #view-home) .dk-format, :is(#dk-masthead, #view-home) .dk-sample { min-height: 44px; }
    :is(#dk-masthead, #view-home) .dk-format { font-size: 12px; }
    :is(#dk-masthead, #view-home) .dk-composer { gap: 5px; padding: 3px 7px; border-radius: 9px; }
    :is(#dk-masthead, #view-home) .dk-lines { min-width: 20px; padding: 0 5px 0 1px; }
    :is(#dk-masthead, #view-home) textarea { font-size: 16px; }
    :is(#dk-masthead, #view-home) .dk-submit { min-height: 46px; padding: 0 11px; gap: 5px; font-size: 14px; }
    :is(#dk-masthead, #view-home) .dk-hints { margin-top: 6px; gap: 0 12px; justify-content: flex-start; }
  }
  @media (max-width: 540px) {
    :is(#dk-masthead, #view-home) .dk-lines { display: none; }
  }
  @media (max-width: 440px) {
    :is(#dk-masthead, #view-home) textarea { font: 16px/22px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
    :is(#dk-masthead, #view-home) .dk-submit span { display: none; }
  }
  @media (max-width: 365px) {
    :is(#dk-masthead, #view-home) .dk-bar { column-gap: 4px; }
    :is(#dk-masthead, #view-home) .dk-composer { gap: 3px; padding-inline: 4px; }
    :is(#dk-masthead, #view-home) .dk-submit { padding-inline: 4px; font-size: 13px; }
    :is(#dk-masthead, #view-home) .dk-header { --brand-gap: 5px; }
    :is(#dk-masthead, #view-home) .dk-brand { font-size: 20.5px; }
    :is(#dk-masthead, #view-home) .dk-wrap { width: calc(100% - 24px); }
    :is(#dk-masthead, #view-home) .dk-sample { min-height: 40px; }
    :is(#dk-masthead, #view-home) figcaption { column-gap: 10px; }
    :is(#dk-masthead, #view-home) figcaption span { gap: 4px; }
  }
  :is(#dk-masthead, #view-home) .dk-brand img, :is(#dk-masthead, #view-home) .dk-brand span { transform-origin: top left; }
  :is(#dk-masthead, #view-home) nav a { transform-origin: left center; }
  :is(#dk-masthead, #view-home) .dk-header { flex: none; }
  #dk-masthead[data-compact] .dk-header {
    --mark: 38px; --brand-gap: 10px; --nav-gap: clamp(15px, 3vw, 46px);
    --side: clamp(24px, 6vw, 110px); --inset: 16px; --bar-height: 70px;
    background: var(--night);
  }
  #dk-masthead[data-compact] .dk-bar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: var(--bar-height); padding: 0 var(--side) 0 calc(var(--side) - var(--inset)); gap: 10px;
  }
  #dk-masthead[data-compact] .dk-brand { font-size: 23px; font-weight: 700; letter-spacing: -.045em; }
  #dk-masthead[data-compact] nav { margin: 0; padding: 0; height: 100%; gap: var(--nav-gap); }
  #dk-masthead[data-compact] nav a { padding: 0 2px; min-width: 0; font-size: 16px; font-weight: 550; }
  #dk-masthead[data-compact] nav a + a::before { opacity: .55; }
  @media (max-width:760px) {
    #dk-masthead[data-compact] .dk-header { --bar-height: 65px; --side: 20px; --inset: 6px; --nav-gap: 18px; }
  }
  @media (max-width:700px) {
    #dk-masthead[data-compact] .dk-long { display:none; }
    #dk-masthead[data-compact] .dk-short { display:inline; }
  }
  @media (max-width:640px) {
    #dk-masthead[data-compact] .dk-header { --mark: 32px; }
  }
  @media (max-width:420px) {
    #dk-masthead[data-compact] .dk-header { --nav-gap: 9px; --brand-gap: 6px; }
    #dk-masthead[data-compact] nav a { font-size: 14px; }
  }
  @media (max-width:350px) {
    #dk-masthead[data-compact] nav a { padding-inline: 0; font-size: 13px; }
  }
  @media (max-width:380px) {
    #dk-masthead[data-compact] .dk-header { --side: 14px; }
    #dk-masthead[data-compact] .dk-brand { font-size: 20px; }
  }

#dk-masthead a { text-decoration: none; }
#dk-masthead .dk-hints { font-weight: 400; }
#dk-masthead .dk-submit:disabled { cursor: wait; opacity: .7; }
#view-home .dk-hero { flex: 1; }
#candidate-empty, #results-empty { color: var(--muted); padding-block: 12px; }

.modification-mode #calculated-readings { display:none; }
#explore-eligibility { margin:12px 0; }
#calculated-readings { padding:12px 0 18px; }
#calculated-readings h3 { margin:0; }
#calculated-readings .table-scroll { max-height:21rem; overflow:auto; }
#calculated-readings td { font-variant-numeric:tabular-nums; }

#dk-masthead .dk-format-help { position:relative;display:inline-flex;align-items:center; }
#dk-format-note { position:absolute;top:100%;z-index:8;box-sizing:border-box;width:min(280px,calc(100vw - 20px));padding:10px 12px;border:1px solid #d4d6de;border-radius:7px;background:#f8f7fa;color:#343646;font:13px/1.5 Inter,Arial,sans-serif;box-shadow:0 4px 12px #10192428; }

#inline-comparison {margin-top:18px;padding-top:17px;border-top:1px solid #d6dcdf;}
.inline-comparison-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.inline-comparison-head h3 {margin:0;font-size:17px;}
.inline-comparison-head label {display:flex;align-items:center;gap:8px;font-size:13px;}
#inline-dose {width:auto;min-width:90px;}
#inline-comparison table {width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums;}
#inline-comparison :is(th,td) {padding:9px 10px;text-align:right;white-space:nowrap;border-bottom:1px solid #e3e7eb;}
#inline-comparison :is(th,td):nth-child(-n+2) {text-align:left;}
#inline-comparison thead {background:#f1f4f5;}
#inline-comparison td:last-child {font-weight:650;}
#inline-details {margin:10px 0 0;padding:3px 0;border:0;background:none;color:#55455f;font-size:13px;}

#view-home .dk-home-footer {
  display: block;
  margin: 0;
  padding: 0;
  border-top: 1px solid #394755;
  background: var(--night);
  color: #d0d8df;
  font-size: .875rem;
  line-height: 1.5;
}
.dk-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem 1.5rem;
  padding-block: .875rem;
}
.dk-footer-address, .dk-footer-rights { display: grid; gap: .125rem; }
.dk-footer-address { font-style: normal; }
.dk-footer-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.dk-footer-rights { margin-inline-start: auto; max-width: 100%; text-align: end; }
.dk-footer-inner a {
  justify-self: start;
  color: #b8e1da;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.dk-footer-inner a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 1020px) {
  .dk-footer-inner { flex-direction: column; align-items: start; }
}
.prediction-card #run-ready-predictions { margin-top: 8px; }
.prediction-card #ready-prediction-help { font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
@media (max-width: 380px) {
  #dk-masthead[data-compact] .dk-header { --mark: 26px; --brand-gap: 4px; --nav-gap: 6px; --side: 10px; --inset: 2px; }
  #dk-masthead[data-compact] .dk-bar { gap: 5px; }
}
.dk-tutorial {
      --t-ink: #293746; --t-muted: #515e6b; --t-accent: #635071;
      --t-line: #d8dfe6; --t-pale: #f5f3f7;
      box-sizing: border-box; max-width: 1140px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 52px) 52px;
      color: var(--t-ink); font: 16px/1.8 Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Droid Sans Fallback", sans-serif;
      text-align: left; overflow-wrap: anywhere;
    }
    .dk-tutorial *, .dk-tutorial *::before { box-sizing: border-box; }
    .dk-tutorial a { color: var(--t-accent); text-decoration: underline; text-underline-offset: .19em; }
    .dk-tutorial a:focus-visible, .dk-tutorial summary:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; }
    .dk-tutorial header.tut-intro { display: block; position: static; height: auto; margin: 0 0 24px; padding: 12px 0 22px; background: transparent; border: 0; border-bottom: 2px solid var(--t-accent); }
    .dk-tutorial h1, .dk-tutorial h2, .dk-tutorial h3 { color: var(--t-ink); line-height: 1.4; letter-spacing: normal; }
    .dk-tutorial h1 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 41px); font-weight: 700; }
    .dk-tutorial h2 { margin: 0 0 12px; font-size: clamp(21px, 2.4vw, 26px); font-weight: 650; }
    .dk-tutorial h3 { margin: 20px 0 6px; font-size: 18px; }
    .dk-tutorial p, .dk-tutorial ul, .dk-tutorial ol { margin: 8px 0 12px; }
    .dk-tutorial .tut-intro p { max-width: 52em; }
    .dk-tutorial .tut-grid { display: grid; grid-template-columns: minmax(158px, 202px) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 55px); }
    .dk-tutorial .tut-toc { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; padding: 4px 14px 10px 0; }
    .dk-tutorial .tut-toc h2 { font-size: 15px; margin: 0 0 8px; }
    .dk-tutorial .tut-toc a { display: block; padding: 4px 0; font-size: 14px; line-height: 1.5; text-decoration: none; }
    .dk-tutorial .tut-toc a:hover { text-decoration: underline; }
    .dk-tutorial .tut-content { min-width: 0; }
    .dk-tutorial .tut-content > section { margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid var(--t-line); }
    .dk-tutorial :is(section, h3)[id] { scroll-margin-top: 18px; }
    .dk-tutorial :is(ol, ul) { padding-inline-start: 1.5em; }
    .dk-tutorial li { padding-inline-start: .12em; margin-bottom: 6px; }
    .dk-tutorial li::marker { font-weight: 650; color: var(--t-accent); }
    .dk-tutorial code { color: inherit; background: var(--t-pale); border-radius: 3px; padding: .05em .24em; font: .89em ui-monospace, monospace; }
    .dk-tutorial figure { margin: 18px 0 0; }
    .dk-tutorial .tut-shot { display: grid; gap: 5px; min-height: 108px; align-content: center; padding: 16px 20px; background: var(--t-pale); border: 1px dashed #988da1; border-radius: 6px; }
    .dk-tutorial .tut-shot b { font-size: 14px; color: var(--t-accent); }
    .dk-tutorial .tut-shot span { font-size: 14px; line-height: 1.6; color: var(--t-muted); }
    .dk-tutorial figure img { display: block; max-width: 100%; height: auto; }
    .dk-tutorial figcaption { display: block; margin: 7px 0 0; color: var(--t-muted); font-size: 14px; line-height: 1.65; }
    .dk-tutorial table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 14px; line-height: 1.65; text-align: left; }
    .dk-tutorial th, .dk-tutorial td { padding: 9px 10px; border-bottom: 1px solid var(--t-line); vertical-align: top; white-space: normal; text-align: left; }
    .dk-tutorial thead { background: var(--t-pale); }
    .dk-tutorial .tut-note { padding: 7px 14px; border-left: 3px solid #97829f; background: var(--t-pale); }
    .dk-tutorial details { margin: 12px 0; }
    .dk-tutorial summary { color: var(--t-accent); cursor: pointer; font-weight: 600; }
    .dk-tutorial .tut-sources { font-size: 14px; color: var(--t-muted); }
    @media (max-width: 720px) {
      .dk-tutorial { padding: 16px 12px 30px; font-size: 15px; }
      .dk-tutorial .tut-grid { display: block; }
      .dk-tutorial .tut-toc { position: static; max-height: none; margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--t-line); }
      .dk-tutorial .tut-toc div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
      .dk-tutorial th, .dk-tutorial td { padding-inline: 6px; }
    }
    @media print {
      .dk-tutorial { margin: 0; padding: 0; max-width: none; font-size: 10.5pt; }
      .dk-tutorial .tut-toc, .dk-tutorial .tut-enter { display: none; }
      .dk-tutorial .tut-grid { display: block; }
      .dk-tutorial figure, .dk-tutorial tr { break-inside: avoid; }
      .dk-tutorial h2, .dk-tutorial h3 { break-after: avoid; }
    }

#view-tutorial { max-width: 1440px; }
#view-tutorial .tut-content figure { margin-block: 1.4rem 2rem; }
#view-tutorial figure img { width: 100%; border: 1px solid var(--t-line); }
#view-tutorial .keys { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .25rem; }
#view-tutorial .key b { color: #9d2a1b; }
#view-tutorial .faq dt { font-weight: 650; margin-top: 1rem; }
#view-tutorial .faq dd { margin-inline: 0; }
#view-tutorial .nums { font-variant-numeric: tabular-nums; }
#view-tutorial .nums :is(th,td):not(:first-child) { text-align: right; }
#view-tutorial .note { border-left: 3px solid #97829f; background: var(--t-pale); padding: .6rem .9rem; }

/* v45: limited submission-readiness edits, retaining the established layout. */
.tut-example-entry { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-top:20px; }
.dk-tutorial a.tut-example-button { display:inline-block; padding:10px 16px; border:1px solid #b5a5bd; border-radius:7px; color:#4f3d5d; background:#eee8f2; text-decoration:none; font-weight:600; white-space:normal; }
.tut-example-entry > span { flex:1 1 280px; max-width:40em; font-size:14px; line-height:1.6; color:var(--t-muted); }
.dk-terms { max-width:960px; margin:0 auto; padding:28px 16px 44px; color:var(--ink); font-size:16px; line-height:1.75; }
.dk-terms h1 { font-size:32px; line-height:1.3; }
.dk-terms h2 { font-size:23px; margin:0 0 12px; }
.dk-terms h3 { font-size:17px; margin:20px 0 6px; }
.dk-terms p { margin:8px 0 14px; }
.dk-terms a { color:#67516f; text-underline-offset:3px; }
.terms-heading { border-bottom:2px solid #97829f; margin-bottom:16px; }
.terms-heading p { color:var(--muted); }
.terms-nav { display:flex; flex-wrap:wrap; gap:12px 24px; margin:16px 0 30px; }
.dk-terms > section { margin-bottom:30px; padding-bottom:22px; border-bottom:1px solid var(--line); scroll-margin-top:18px; }
.dk-terms > section:focus { outline:none; }
.license-text { padding:12px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.license-text summary { cursor:pointer; font-weight:600; }
.license-text pre { white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.65 ui-monospace,monospace; }
.terms-contact { color:var(--muted); }
@media(max-width:600px) {
 #view-design > .section-heading > .actions { flex-wrap:wrap; overflow:visible; gap:8px; padding-bottom:0; }
 .dk-terms { padding:18px 0 32px; }
 .dk-terms h1 { font-size:27px; }
}

/* Submission review additions. */
#dk-masthead .dk-example-results {
 display:inline-flex; align-items:center; min-height:27px; font-size:13px;
 color:#e4d9ea; text-decoration:underline; text-underline-offset:3px;
 text-decoration-color:#9985a5;
}
#dk-masthead .dk-example-results:hover { color:white; }
#dk-masthead { position:relative; }
#workspace-connection {
 position:absolute; top:calc(100% + 12px); left:50%; transform:translateX(-50%); z-index:1000;
 display:flex; align-items:center; justify-content:space-between; gap:16px;
 width:min(1120px,calc(100% - 32px)); min-height:56px; box-sizing:border-box; margin:0;
 padding:10px 18px; border:1px solid var(--line); background:#fff; border-radius:8px;
 box-shadow:0 4px 16px #10192426;
}
#workspace-connection[hidden] { display:none; }
#workspace-connection #service-status {
 display:inline; margin:0; padding:0; background:none;
 color:var(--ink); font-size:14px; white-space:normal;
}
#workspace-connection #retry-connection { flex-shrink:0; padding:7px 12px; font-size:14px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
@media(max-width:720px) {
 #dk-masthead .dk-example-results { min-height:40px; }
 #workspace-connection { align-items:flex-start; flex-wrap:wrap; }
}
