/* Sequence-first workspace. Detail stays in the inspection dock. */
.bt-workspace{--bt-line:#dce3eb;--bt-ink:#253747;--bt-muted:#566775;--bt-purple:#4b4ea8;--bt-green:#146e55;max-width:1540px;margin:auto;padding:32px 3% 36px;color:var(--bt-ink)}
.bt-workspace h1{font-size:30px;letter-spacing:-.8px}.bt-workspace h2{font-size:14px;letter-spacing:0;display:flex;align-items:center;gap:12px;color:#566775}.bt-workspace h2 span{font-size:17px;color:var(--bt-ink)}.bt-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.bt-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#536478;margin-bottom:7px}.bt-header-actions{display:flex;align-items:center;gap:16px}.bt-layout{display:grid;grid-template-columns:325px minmax(0,1fr);gap:22px;align-items:start}.bt-controls,.bt-main{min-width:0}.bt-controls{display:grid;gap:18px}.bt-input-panel,.bt-editor-panel,.bt-stage,.bt-outcome,.bt-checks{border:1px solid var(--bt-line);border-radius:15px;background:#fff;overflow:hidden}.bt-input-panel,.bt-editor-panel{padding:21px}.bt-input-panel h2,.bt-editor-panel h2{margin-bottom:20px}.bt-workspace button,.bt-dialog button{transition:background .15s,border-color .15s}.bt-workspace button:focus-visible,.bt-workspace [tabindex]:focus-visible{outline:3px solid #5a61b9;outline-offset:3px}.bt-text{color:#454a9d;font-size:13px;font-weight:600;padding:5px 0;min-height:36px;text-decoration:none}.bt-text:hover{color:#2e337d;text-decoration:underline}.bt-text:disabled{background:transparent;color:#64727f;opacity:.6;text-decoration:none}.bt-primary,.bt-secondary{padding:10px 16px;border-radius:9px;font-size:14px;font-weight:600;min-height:42px}.bt-primary{background:#494daa;color:white;border:1px solid #494daa}.bt-primary:hover{background:#393d90}.bt-secondary{background:#fff;border:1px solid #aeb9c9}.bt-secondary:hover{background:#f1f3fb}.bt-icon-button{width:36px;min-width:36px;min-height:36px;border-radius:7px;font-size:19px;border:1px solid transparent;padding:0}.bt-icon-button:hover{background:#edf0f7}.bt-icon-button:disabled{opacity:.4;background:transparent}.bt-reference-head{display:flex;flex-direction:column;gap:2px;font-size:13px}.bt-reference-head>span{font-weight:600;overflow-wrap:anywhere}.bt-reference-head small{font-size:11px;font-weight:400;color:var(--bt-muted);margin-left:7px}.bt-reference-head>div{display:flex;gap:14px}.bt-reference{display:flex;align-items:center;gap:5px;margin:15px -6px 11px;min-width:0}.bt-direction{font-size:10px;color:var(--bt-muted)}.bt-base-strip{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;flex:1;min-width:0}.bt-base{padding:7px 0 5px;border:1px solid transparent;border-radius:6px;background:#f3f5f8;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px}.bt-base b{font:600 14px ui-monospace,SFMono-Regular,monospace}.bt-base small{font-size:9px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.bt-base:hover{background:#e6e9f3;border-color:#959cbc}.bt-base.is-target{background:#e0efeb;border-color:#157357;color:#105b46;box-shadow:inset 0 -2px #157357}.bt-reference-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;font-size:11px;color:var(--bt-muted)}.bt-reference-foot>div{display:flex;align-items:center;justify-content:space-between;width:100%;gap:5px}.bt-reference-foot label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:400;margin:0}.bt-reference-foot input{width:65px;padding:7px 5px;font-size:12px;text-align:center}.bt-editor-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}.bt-editor-card{border:1px solid #d3dce6;padding:13px 6px 11px;border-radius:11px;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff}.bt-editor-card.selected{border-color:#6371b5;background:#f4f5ff;box-shadow:inset 0 0 0 1px #6371b5}.bt-editor-card:hover{background:#f4f5fb}.bt-editor-card strong{font-size:12px;font-weight:650}.bt-editor-card small{font-size:11px;color:var(--bt-muted)}.bt-conversion{display:flex;gap:10px;align-items:center;margin-bottom:6px;font:600 23px ui-monospace,SFMono-Regular,monospace}.bt-conversion i{font-style:normal;font-weight:400;font-size:17px;color:#6d7b8c}.bt-conversion b:last-child{color:#146e55}.bt-profile-note{display:flex;align-items:center;gap:10px;font-size:10px;color:#536476;margin:14px 0 23px}.bt-profile-note span{border-bottom:1px dotted #98a7b8;padding-bottom:2px}.bt-guide-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:13px}.bt-guide-heading strong>span{margin-left:6px;border-radius:9px;background:#f0f2f7;padding:2px 6px;font-size:11px}.bt-guides{display:grid;gap:8px;max-height:300px;overflow:auto;padding:2px}.bt-guide{text-align:left;border:1px solid #d5dce8;border-radius:9px;padding:12px 10px;display:flex;flex-direction:column;gap:10px;width:100%;background:#fff}.bt-guide.selected{border-color:#686ab6;background:#f8f8ff;box-shadow:inset 3px 0 #686ab6}.bt-guide:hover{background:#f3f4fc}.bt-guide-title{display:flex;justify-content:space-between;font-size:12px;font-weight:600}.bt-guide-title small{color:var(--bt-muted);font-weight:400;font-size:10px}.bt-mini-guide{display:flex;align-items:center;gap:1px;font:11px ui-monospace,SFMono-Regular,monospace;white-space:nowrap}.bt-mini-guide i{font-style:normal;min-width:8px;text-align:center;border-radius:2px;padding:3px 0}.bt-mini-guide .window{background:#e1e7f2}.bt-mini-guide .target{background:#176e56;color:#fff}.bt-mini-guide em{font-style:normal;color:#785416;background:#faf0d6;padding:3px 2px;margin-left:3px;border-radius:3px}.bt-guide-meta{font-size:11px;color:var(--bt-muted)}.bt-no-guide{border-radius:10px;background:#f7f8fa;padding:19px 14px;display:flex;flex-direction:column;gap:9px}.bt-no-guide>span{font-size:27px;color:#8799aa}.bt-no-guide strong{font-size:13px}.bt-no-guide p{font-size:12px;color:var(--bt-muted);line-height:1.6}.bt-stage-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 22px 10px}.bt-stage-heading>div:first-child{display:flex;flex-direction:column;gap:5px}.bt-stage-heading strong{font:600 26px ui-monospace,SFMono-Regular,monospace}.bt-arrow{padding:0 12px;color:#7a8794;font-weight:400}.bt-stage-heading small{font-size:11px;color:var(--bt-muted)}.bt-stage-actions{display:flex;align-items:center;gap:14px}.bt-segmented{display:flex;gap:3px;background:#f2f4f8;border-radius:8px;padding:3px}.bt-segmented button{border-radius:6px;padding:5px 10px;min-height:30px;font-size:11px;color:#526072;white-space:nowrap}.bt-segmented [aria-pressed=true]{background:#fff;color:#333d6a;box-shadow:0 1px 3px #1e35551a;font-weight:650}.bt-segmented button:hover{background:#fff}.bt-play{font-size:12px;border:1px solid #c6cfdd;border-radius:8px;padding:7px 11px;min-height:36px;white-space:nowrap;background:#fff}.bt-play:hover{background:#f1f3f8}.bt-stage-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;touch-action:pan-x pan-y;padding:15px 0 8px}.bt-mechanism-svg{display:block;width:100%;min-width:680px;height:auto}.bt-mechanism-svg text{font-family:'DM Sans',sans-serif;fill:#334559;font-size:16px;font-weight:600;pointer-events:none}.bt-mechanism-svg [role=button]{cursor:help}.bt-mechanism-svg [role=button]:hover{filter:brightness(.93)}.bt-mechanism-svg [role=button]:focus-visible{outline:none;filter:drop-shadow(0 0 3px #535eae)}.bt-mechanism-svg [data-help=window] path{fill:none;stroke:#627c9b;stroke-width:1.5}.bt-mechanism-svg [data-help=window] text{fill:#49667e;font-size:14px}.bt-window-band{fill:#eef5f5;stroke:#dce8e8;stroke-width:1}.bt-cas path{stroke:#8b9fc5;stroke-width:1.5}.bt-enzyme{stroke:#5fa389;stroke-width:1.5}.bt-fusion-link{fill:none;stroke:#8596b6;stroke-width:4;stroke-linecap:round}.bt-recruit-line{fill:none;stroke:#765991;stroke-width:3;stroke-dasharray:5 4}.bt-adapter{fill:#efdef7;stroke:#9676af;stroke-width:1.5}.bt-mechanism-svg [data-help=adapter] text{font-size:12px;fill:#654e7d}.bt-reaction-path{fill:none;stroke:#3e8e74;stroke-width:2;opacity:.35}.bt-reaction-path.active{opacity:1;animation:bt-flow 1s linear infinite}.bt-dna-backbone{stroke:#7895a7;stroke-width:3;fill:none}.bt-pair rect{fill:#fff;stroke:#bacbd8;stroke-width:1}.bt-pair text{font:600 18px ui-monospace,SFMono-Regular,monospace;fill:#3e5564}.bt-pair line{stroke:#c6d1d8;stroke-width:1;stroke-dasharray:2 2}.bt-pair.bystander rect:first-child{fill:#fff4df;stroke:#b38236;stroke-width:1.5}.bt-pair.target rect:first-child{fill:#e0f1e9;stroke:#176d53;stroke-width:2}.bt-pair.target text{fill:#105d46}.bt-pair.edited rect{fill:#dff1e8;stroke:#318366}.bt-pair.pam rect{fill:#fcf0d7;stroke:#b38b49}.bt-pair.pam text{fill:#745015}.bt-mechanism-svg .bt-guide-coordinate{font:10px 'DM Sans',sans-serif;fill:#657987}.bt-mechanism-svg .bt-end{font:14px 'DM Sans',sans-serif;fill:#6a7c89}.bt-pam-bracket{fill:none;stroke:#9b742e;stroke-width:1.5}.bt-mechanism-svg [data-help=pam]>text{fill:#795719;font-size:14px}.bt-rna,.bt-aptamer{fill:none;stroke:#8970ad;stroke-width:4;stroke-linecap:round}.bt-rna.active{stroke-dasharray:8 3;animation:bt-flow 1s linear infinite}.bt-mechanism-svg [data-help=guide]>text{font-size:13px;fill:#6a4c88}.bt-nick-mark{stroke:#ac5a42;stroke-width:2;fill:none}.bt-nick-hit{fill:transparent}.bt-stage-empty{min-height:340px;display:grid;align-content:center;justify-items:center;color:var(--bt-muted);font-size:14px;padding:30px}.bt-stage-empty svg{max-width:350px;width:80%}.bt-phase-bar{display:flex;align-items:center;gap:12px;padding:14px 22px 16px;font-size:11px;color:#647385}.bt-phase-bar>span{padding:5px 9px;border-radius:6px;white-space:nowrap}.bt-phase-bar>span.active{background:#eff3fa;color:#334b73;font-weight:650}.bt-phase-bar i{height:1px;background:#dce3eb;width:30px;flex-shrink:1}.bt-phase-bar small{margin-left:auto;font-size:10px}.bt-help{display:flex;align-items:flex-start;gap:13px;padding:18px 20px;margin:14px 0;border-radius:12px;min-height:106px;background:#f0f4f7;border:1px solid #dce5ec;color:#3c576b;--help-color:#3c576b}.bt-help[data-tone=target],.bt-help[data-tone=deaminase],.bt-help[data-tone=editor],.bt-help[data-tone=outcome]{background:#eef7f1;border-color:#d3e6db;color:#226447;--help-color:#226447}.bt-help[data-tone=bystander],.bt-help[data-tone=pam]{background:#fff8e9;border-color:#eadcba;color:#785019;--help-color:#785019}.bt-help[data-tone=guide],.bt-help[data-tone=rna],.bt-help[data-tone=assembly]{background:#f5f0fb;border-color:#e0d6ef;color:#684888;--help-color:#684888}.bt-help>span{font-size:23px;line-height:1.1;width:26px;flex-shrink:0}.bt-help>div{flex:1;min-width:0}.bt-help strong{font-size:14px}.bt-help p{font-size:12px;line-height:1.7;margin-top:5px;color:var(--help-color)}.bt-help>.bt-icon-button{margin:-6px -7px 0 0;font-size:16px;color:inherit}.bt-outcome{padding:20px 22px}.bt-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.bt-change-row{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.bt-change{padding:10px 15px;display:flex;flex-direction:column;gap:6px;border:1px solid #b6d3c7;background:#f1f8f4;border-radius:9px;color:#205d46}.bt-change>span{display:flex;gap:13px;align-items:center;font:600 23px ui-monospace,SFMono-Regular,monospace}.bt-change i{font-style:normal;font-size:17px;font-weight:400}.bt-change small{font-size:10px}.bt-change.bystander{border-color:#dec99f;background:#fff8eb;color:#77571e}.bt-bystander-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #e7ecf1;font-size:12px}.bt-bystander-row>span{margin-right:6px}.bt-bystander-row button{border:1px solid #dcc79f;background:#fffaf0;color:#785019;border-radius:7px;padding:6px 10px;font:12px ui-monospace,SFMono-Regular,monospace}.bt-bystander-row button.selected{background:#f2ddb5;border-color:#936719;box-shadow:inset 0 0 0 1px #936719}.bt-result-footer{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.bt-result-footer>span{font-size:11px;color:var(--bt-muted);margin-left:auto;border-bottom:1px dotted #aaa}.bt-codon-effects{margin-top:14px;border-top:1px solid #e5ebf1;padding-top:14px}.bt-codon-effects>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.bt-codon{font:600 19px ui-monospace,SFMono-Regular,monospace;letter-spacing:3px;color:#536578}.bt-codon.changed{color:#21614b}.bt-codon-effects small{font-size:11px;color:#576877;background:#f0f3f7;border-radius:6px;padding:5px 8px}.bt-checks{margin-top:14px;padding:0 21px;font-size:12px}.bt-checks summary{padding:14px 0;font-weight:600}.bt-checks summary span{float:right;font-size:11px;font-weight:400;color:var(--bt-muted)}.bt-checks>div{display:flex;gap:20px;padding:10px 0 7px}.bt-checks p{font-size:11px;color:var(--bt-muted);margin:0 0 14px}.bt-footer-note{margin:21px 0 0;text-align:right;font-size:10px;color:#61707f}.bt-notice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border:1px solid #dccbad;background:#fff9ed;border-radius:9px;margin-bottom:20px;font-size:13px;color:#78581f}.bt-notice button{font-size:24px}.bt-muted{font-size:12px;color:var(--bt-muted,#566775)}
.bt-dialog{padding:26px;max-width:690px;width:calc(100% - 28px);max-height:88vh;border:1px solid #cbd5e2;border-radius:17px;color:#253747;box-shadow:0 24px 100px #192c4933}.bt-dialog::backdrop{background:#24354b55;backdrop-filter:blur(3px)}.bt-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:21px}.bt-dialog-head h2{font-size:23px}.bt-dialog p{font-size:13px}.bt-dialog label{font-size:13px}.bt-dialog input,.bt-dialog select,.bt-dialog textarea{font-size:14px;margin-top:7px}.bt-dialog textarea{font-family:ui-monospace,SFMono-Regular,monospace;line-height:1.7;resize:vertical}.bt-dialog .bt-primary{margin-top:18px}.bt-dialog .bt-form-error{color:#a23932;margin-top:15px}.bt-dialog-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px}.bt-dialog-actions .bt-primary{margin:0}.bt-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.bt-file{border:1px dashed #aeb9cc;border-radius:8px;padding:12px;color:#4e56a2}.bt-file input{font-size:12px}.bt-examples{display:grid;gap:11px}.bt-examples button{border:1px solid #d9e0eb;border-radius:12px;padding:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;background:#fff}.bt-examples button:hover{background:#f4f6fc;border-color:#8b97bd}.bt-examples strong{font-size:15px}.bt-examples span{font:600 20px ui-monospace,SFMono-Regular,monospace;color:#176b51}.bt-sequence-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;background:#f5f7fa;border:1px solid #e1e6ee;border-radius:9px;padding:15px;font:13px/1.8 ui-monospace,SFMono-Regular,monospace;max-height:25vh;overflow:auto;font-weight:400}.bt-research-plan{display:grid;gap:12px;margin-bottom:25px}.bt-research-plan article,.bt-references article{display:flex;gap:14px;align-items:flex-start;padding:15px;border-radius:10px;border:1px solid #e0e6ee}.bt-research-plan article>span,.bt-references article>span{font-size:11px;background:#eef1f7;padding:3px 7px;border-radius:50%;color:#59667d}.bt-research-plan h3{font-size:15px;margin-bottom:8px}.bt-research-plan small{color:#556284;font-size:11px;display:block;margin-top:8px}.bt-references summary{font-size:14px;font-weight:600;margin-bottom:15px}.bt-references article{margin-bottom:10px;border:0;border-top:1px solid #e4eaf0;border-radius:0;padding:15px 0}.bt-references a{font-size:13px;font-weight:600;line-height:1.5;display:block}.bt-references small{display:block;color:#627084;font-size:10px;margin:6px 0}.bt-references p{font-size:12px;line-height:1.65}
@keyframes bt-flow{to{stroke-dashoffset:-26}}
@media(min-width:1600px){.bt-layout{grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:1150px){.bt-workspace{padding:26px 2%}.bt-layout{grid-template-columns:295px minmax(0,1fr);gap:16px}.bt-input-panel,.bt-editor-panel{padding:17px}.bt-stage-heading{padding:18px 16px 5px;align-items:flex-start}.bt-stage-actions{flex-direction:column-reverse;gap:7px;align-items:flex-end}.bt-panel-title{align-items:flex-start;flex-direction:column}.bt-help{min-height:120px}}
@media(max-width:900px){.bt-layout{display:flex;flex-direction:column}.bt-controls{grid-template-columns:1fr 1fr;width:100%;gap:14px}.bt-main{width:100%}.bt-editor-panel h2{margin-bottom:14px}.bt-profile-note{margin:11px 0 10px}.bt-guides{max-height:130px}.bt-stage-actions{flex-direction:row;align-items:center}.bt-stage-heading{align-items:center}.bt-panel-title{flex-direction:row;align-items:center}.bt-help{min-height:105px}.bt-mechanism-svg{min-width:680px}.bt-footer-note{text-align:center}}
@media(max-width:560px){.bt-workspace{padding:22px 12px 28px}.bt-header{align-items:flex-start;gap:10px;margin-bottom:20px}.bt-workspace h1{font-size:25px}.bt-eyebrow{font-size:8px;letter-spacing:1.3px}.bt-header-actions{gap:8px;flex-direction:column-reverse;align-items:flex-end}.bt-header-actions .bt-secondary{font-size:12px;padding:7px 10px;min-height:35px}.bt-header-actions .bt-text{font-size:11px;min-height:26px}.bt-controls{grid-template-columns:1fr}.bt-input-panel,.bt-editor-panel{padding:18px}.bt-reference-head{flex-direction:row;justify-content:space-between;gap:10px;align-items:center}.bt-reference-head>div{gap:10px;flex-shrink:0}.bt-reference-head>span{max-width:45%;font-size:12px}.bt-reference-head small{display:block;margin:3px 0 0}.bt-base-strip{gap:4px}.bt-base b{font-size:16px}.bt-base small{font-size:10px}.bt-reference-foot{flex-wrap:nowrap}.bt-reference-foot>div{width:auto;gap:2px}.bt-reference-foot label{gap:5px}.bt-reference-foot input{width:52px}.bt-editor-cards{gap:12px}.bt-editor-card{flex-direction:row;justify-content:center;flex-wrap:wrap;column-gap:14px;padding:12px 8px}.bt-editor-card small{flex-basis:100%}.bt-conversion{font-size:21px;margin:0;gap:8px}.bt-editor-card strong{font-size:12px}.bt-profile-note{font-size:11px;margin:15px 0}.bt-guides{max-height:210px}.bt-mini-guide{font-size:12px;gap:2px}.bt-mini-guide i{min-width:9px}.bt-stage-heading{padding:17px 14px 10px;gap:10px;align-items:flex-start}.bt-stage-heading strong{font-size:24px}.bt-stage-heading small{max-width:120px;font-size:10px}.bt-stage-actions{flex-direction:column-reverse;gap:9px}.bt-stage-scroll:after{content:'Swipe to inspect the full DNA →';display:block;font-size:10px;color:#637484;position:sticky;left:0;padding:12px 15px 0;width:260px}.bt-mechanism-svg{min-width:760px}.bt-phase-bar{padding:9px 12px 13px;gap:5px;font-size:10px}.bt-phase-bar>span{padding:5px 7px}.bt-phase-bar i{width:14px}.bt-phase-bar small{font-size:9px}.bt-help{padding:16px 14px;gap:9px;min-height:126px}.bt-help p{font-size:12px}.bt-help strong{font-size:13px}.bt-outcome{padding:18px 15px}.bt-panel-title{align-items:flex-start;flex-direction:column;gap:13px}.bt-workspace h2 span{font-size:16px}.bt-result-footer{gap:13px}.bt-result-footer>span{margin-left:0;flex-basis:100%}.bt-checks{padding:0 15px}.bt-checks summary span{font-size:10px}.bt-checks>div{flex-direction:column;gap:8px}.bt-dialog{padding:21px 18px}.bt-dialog-head h2{font-size:21px}.bt-form-grid{grid-template-columns:1fr 1fr}.bt-form-grid label:last-child{grid-column:1/-1}.bt-footer-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){.bt-workspace *, .bt-workspace *:before, .bt-workspace *:after{animation:none!important;transition:none!important}}
.bt-assembly{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.bt-assembly>small{font-size:9px;color:#677688}.bt-mechanism-svg .bt-rna-base{fill:#76539a;font-size:15px}.bt-mechanism-svg .bt-rna-bond{stroke:#8c76ab;stroke-dasharray:2 2}
