.co-app { max-width: 1160px; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
.co-hero { margin: 6px 0 26px 52px; }
.co-hero .tool-title { margin-bottom: 9px; font-size: 1.65rem; }
.co-hero .tool-title { text-wrap: balance; }
.co-hero .tool-desc { max-width: 720px; margin: 0; font-size: .96rem; text-wrap: pretty; }
.co-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.co-task-switch { margin: 20px 0 0; padding: 0; border: 0; }
.co-task-switch .co-mode-card { align-items: center; min-height: 48px; padding: 10px 0 11px; border-left: 0; border-bottom-width: 2px; }
.co-task-switch .co-mode-card strong { font-size: .98rem; line-height: 1.25; }
.co-task-switch .co-mode-card:has(input:checked) { border-bottom-color: var(--magenta); background: transparent; }
.co-task-switch .co-mode-card:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }
.co-task-switch .co-mode-card:hover { background: transparent; }
.co-step-number { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 800; }
.co-method-details { margin: 10px 0 0; color: #64748b; font-size: .74rem; }
.co-method-details summary { width: max-content; color: #64748b; font-weight: 700; cursor: pointer; transition: color .15s ease; }
.co-method-details summary:hover { color: var(--magenta); }
.co-method-details p { max-width: 900px; margin: 8px 0 0; padding: 10px 0 10px 13px; border-left: 2px solid var(--magenta); background: transparent; line-height: 1.55; }
.co-method-details a { color: var(--magenta); font-weight: 700; }
.co-disclaimer { display: flex; gap: 13px; margin: 0 0 22px; padding: 15px 17px; border: 1px solid #efbfd4; border-left: 4px solid var(--magenta); border-radius: 10px; background: #fff8fb; color: #334155; }
.co-disclaimer-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: var(--magenta); color: #fff; font-size: .78rem; font-weight: 800; }
.co-disclaimer strong { display: block; margin-bottom: 3px; color: var(--brand-dark); font-size: .84rem; }
.co-disclaimer p { margin: 0; color: #475569; font-size: .8rem; line-height: 1.6; }
.co-disclaimer p strong { display: inline; font-size: inherit; }
.co-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); margin-top: 0; padding: 28px 0 32px; border: 0; border-top: 1px solid #dbe3ec; border-radius: 0; background: transparent; }
.co-step[hidden] { display: none; }
.co-step > :not(.co-step-head) { grid-column: 2; }
.co-step-head { grid-column: 1 / -1; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 0; margin-bottom: 20px; }
.co-settings-step .co-step-head { margin-bottom: 38px; }
.co-step-number { align-items: flex-start; justify-content: flex-start; width: auto; height: auto; margin-top: -2px; border-radius: 0; background: transparent; color: var(--magenta); font-size: 1.22rem; line-height: 1; font-variant-numeric: tabular-nums; }
.co-step-number::before { content: '0'; color: #cbd5e1; }
.co-section-title { margin: 0 0 3px; color: var(--brand-dark); font-size: 1.08rem; text-wrap: balance; }
.co-step-head p, .co-help { margin: 0; color: #64748b; font-size: .82rem; line-height: 1.5; }
.co-step-head-actions > div:nth-child(2) { flex: 1; }
.co-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.co-select { position: relative; width: 100%; }
.co-select-native { display: none; }
.co-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 40px; padding: 0 12px; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: var(--brand-dark); font: 500 .95rem/1.2 var(--font-main), sans-serif; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.co-select-trigger:hover { border-color: #94a3b8; background: #fdfdfd; }
.co-select-trigger:focus-visible, .co-select.is-open .co-select-trigger { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(236, 0, 140, .1); }
.co-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-select-trigger svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: var(--magenta); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.co-select.is-open .co-select-trigger svg { transform: rotate(180deg); }
.co-select-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: none; width: 100%; max-height: 290px; overflow-y: auto; padding: 5px; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; box-shadow: 0 16px 35px rgba(15, 23, 42, .14); }
.co-select.is-open .co-select-menu { display: grid; }
.co-select-option { width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #475569; font: 500 .84rem/1.35 var(--font-main), sans-serif; text-align: left; cursor: pointer; }
.co-select-option:hover, .co-select-option:focus-visible { outline: none; background: #f8fafc; color: var(--magenta); }
.co-select-option.is-selected { background: #fff4f9; color: var(--brand-dark); font-weight: 700; }
.co-select-option.is-selected::after { float: right; color: var(--magenta); content: '✓'; }
.co-optional { color: #94a3b8; font-size: .7rem; font-weight: 600; }
.co-source-note { margin-top: 8px; color: #64748b; font-size: .74rem; line-height: 1.45; }
.co-source-note strong { color: #475569; }
.co-mode-fieldset, .co-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.co-mode-fieldset legend, .co-fieldset legend { margin-bottom: 8px; color: var(--brand-dark); font-size: .84rem; font-weight: 800; }
.co-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; }
.co-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#co-optimization-settings { margin-top: 0; }
.co-mode-card { position: relative; display: flex; gap: 11px; min-height: 72px; padding: 13px 16px 13px 14px; box-sizing: border-box; border: 0; border-bottom: 1px solid #dbe3ec; border-left: 3px solid transparent; border-radius: 0; background: transparent; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.co-mode-card:hover { border-bottom-color: #94a3b8; background: #f8fafc; }
.co-mode-card:has(input:checked) { border-left-color: var(--magenta); background: #fff7fb; box-shadow: none; }
.co-mode-card input { align-self: flex-start; flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--magenta); }
.co-task-switch .co-mode-card input,
#co-optimization-settings .co-mode-card input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#co-optimization-settings .co-mode-fieldset .co-mode-card { padding-left: 0; border-left: 0; border-bottom-width: 2px; background: transparent; }
#co-optimization-settings .co-mode-fieldset .co-mode-card:hover { background: transparent; }
#co-optimization-settings .co-mode-fieldset .co-mode-card:has(input:checked) { border-bottom-color: var(--magenta); background: transparent; }
#co-optimization-settings .co-mode-card:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }
.co-mode-card span { display: grid; gap: 4px; }
.co-mode-card strong { color: var(--brand-dark); font-size: .86rem; }
.co-mode-card small { color: #64748b; font-size: .76rem; line-height: 1.45; }
.co-mode-card > b { position: absolute; top: 9px; right: 10px; color: var(--magenta); font-size: .64rem; text-transform: uppercase; }
.co-mode-fieldset .co-help { margin-top: 7px; }
.co-fieldset { padding-top: 16px; border-top: 1px dashed #e2e8f0; }
.co-fieldset-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #64748b; font-size: .78rem; }
.co-text-btn { padding: 0; border: 0; background: transparent; color: var(--magenta); font: inherit; font-weight: 800; cursor: pointer; }
.co-chip-grid { display: grid; gap: 7px; }
.co-enzyme-group { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.co-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #475569; font-size: .77rem; cursor: pointer; }
.co-chip input { margin: 0; accent-color: var(--magenta); }
.co-chip:has(input:checked) { border-color: var(--magenta); background: #fff4f9; color: var(--brand-dark); font-weight: 700; }
.co-chip abbr { color: var(--magenta); font-size: .64rem; text-decoration: none; }
.co-enzyme-extra-group { display: none; flex-wrap: wrap; overflow-x: visible; padding-top: 2px; }
.co-chip-grid.is-expanded .co-enzyme-extra-group { display: flex; }
.co-custom-site { display: grid; grid-template-columns: 175px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 11px; color: #475569; font-size: .77rem; font-weight: 700; }
.co-custom-site small { display: block; color: #94a3b8; font-size: .67rem; font-weight: 600; }
.co-template-actions { display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: 8px; }
.co-template-actions .site-file-action { min-width: 148px; }
.co-secondary-btn, .co-add-row { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 0 13px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: var(--brand-dark); font: inherit; font-size: .77rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.co-secondary-btn:hover, .co-add-row:hover { border-color: var(--magenta); color: var(--magenta); }
.co-upload-btn { background: #f8fafc; }
.co-sequence-list { display: grid; gap: 0; }
.co-sequence-card { padding: 18px 0 20px; border: 0; border-top: 1px solid #dbe3ec; border-radius: 0; background: transparent; }
.co-sequence-card:first-child { border-top: 0; }
.co-sequence-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.co-sequence-index { color: var(--magenta); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.co-remove { width: 40px; height: 40px; margin: -8px; border: 0; border-radius: 0; background: transparent; color: #94a3b8; cursor: pointer; font-size: 1.1rem; }
.co-remove:hover { background: #fee2e2; color: #b42318; }
.co-sequence-fields { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(260px, .9fr) minmax(360px, 2.1fr); gap: 12px; align-items: start; }
.co-sequence-fields > *, .co-sequence-fields .co-select, .co-sequence-fields .co-select-trigger { min-width: 0; }
.co-sequence-card label, .co-sequence-card .co-field { display: grid; gap: 5px; color: #64748b; font-size: .76rem; font-weight: 700; }
.co-type-note { display: block; min-height: 32px; color: #64748b; font-size: .68rem; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
.co-sequence { min-height: 88px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: .79rem !important; }
.co-sequence-counter { display: block; min-height: 17px; margin-top: 5px; color: #64748b; font-size: .73rem; font-weight: 700; }
.co-sequence-counter.is-valid { color: #15803d; }
.co-sequence-counter.is-invalid { color: #b42318; }
.co-sequence-counter .co-site-warning { color: #b45309; }
.co-sequence-counter .co-site-clear { color: #64748b; }
.co-add-row { width: max-content; min-height: 32px; margin-top: 12px; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: var(--magenta); }
.co-add-row:disabled { border-color: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.co-run-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #dbe3ec; }
.co-advanced { min-width: 240px; color: #64748b; font-size: .75rem; }
.co-advanced summary { color: #64748b; font-weight: 700; cursor: pointer; }
.co-seed { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.co-seed .tool-input { width: 135px; }
.co-run-btn { min-width: 330px; height: 44px; gap: 18px; }
.co-run-btn b { font-size: 1rem; }
.co-message { min-height: 22px; margin-top: 9px; color: #475569; font-size: .78rem; }
.co-message.is-error { color: #b42318; }
.co-results { display: grid; gap: 12px; }
.co-result { padding: 18px 0 24px; border: 0; border-top: 1px solid #dbe3ec; border-radius: 0; background: transparent; }
.co-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.co-result-head h3 { margin: 0; color: var(--brand-dark); font-size: .98rem; }
.co-status { display: inline-block; margin-right: 6px; padding: 4px 7px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .68rem; font-weight: 800; }
.co-status.error { background: #fee2e2; color: #b42318; }
.co-copy { min-height: 30px; }
.co-output { width: 100%; min-height: 105px; padding: 12px; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 7px; background: #f8fafc; color: #172033; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .79rem; line-height: 1.55; word-break: break-all; resize: vertical; }
.co-nucleotide-changes { margin-top: 10px; padding: 10px 0 10px 12px; border: 0; border-left: 3px solid #dbe4ef; border-radius: 0; background: transparent; color: #475569; font-size: .73rem; }
.co-nucleotide-changes strong { display: block; margin-bottom: 6px; color: var(--brand-dark); }
.co-nucleotide-changes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.co-change-item { display: grid; gap: 3px; padding: 7px 9px; border-left: 2px solid var(--magenta); background: #f8fafc; color: #334155; }
.co-change-item code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; font-weight: 700; }
.co-change-item mark { padding: 1px 2px; background: var(--magenta); color: #fff; }
.co-change-item small { color: #64748b; font-family: var(--font-main), sans-serif; font-size: .64rem; font-weight: 700; }
.co-result-note { margin: 8px 0 0; color: #64748b; font-size: .72rem; line-height: 1.45; }
.co-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 9px; margin-top: 11px; }
.co-metric { padding: 11px 0 11px 13px; border: 0; border-left: 2px solid #dbe3ec; border-radius: 0; background: transparent; color: #475569; font-size: .74rem; }
.co-metric-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 8px; color: #334155; font-weight: 700; }
.co-metric-title span { color: #94a3b8; font-size: .68rem; font-weight: 600; }
.co-bars { display: grid; grid-template-columns: 112px 1fr 36px; gap: 6px; align-items: center; margin-top: 6px; }
.co-bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.co-bar { display: block; height: 100%; background: #94a3b8; }
.co-bar.after { background: var(--magenta); }
.co-rare-codons { margin-top: 8px; }
.co-result-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; color: #64748b; font-size: .7rem; }
.co-result-meta > div { display: flex; gap: 5px; padding: 3px 10px 3px 0; border: 0; border-right: 1px solid #dbe3ec; border-radius: 0; background: transparent; }
.co-result-meta dt { font-weight: 600; }
.co-result-meta dd { margin: 0; color: var(--brand-dark); font-weight: 800; }
.co-bsa-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 14px 16px; border: 1px solid #f59e0b; border-left: 4px solid #f59e0b; border-radius: 10px; background: #fffbeb; }
.co-bsa-notice[hidden] { display: none; }
.co-bsa-notice strong { color: #92400e; font-size: .84rem; }
.co-bsa-notice p { margin: 4px 0 0; color: #78350f; font-size: .74rem; line-height: 1.45; }
.co-transfer-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 20px; border: 0; border-left: 4px solid var(--magenta); border-radius: 0; background: var(--brand-dark); color: #fff; }
.co-transfer-box strong { display: block; color: #fff; font-size: .88rem; }
.co-transfer-box p { margin: 4px 0 0; color: #cbd5e1; font-size: .75rem; }
.co-transfer-box .tool-btn-primary { border: 1px solid rgba(255, 255, 255, .45); background: #fff; color: var(--brand-dark); }
.co-transfer-box .tool-btn-primary:hover { border-color: var(--magenta); background: var(--magenta); color: #fff; }
.co-transfer-actions { display: grid; min-width: 230px; gap: 6px; }
.co-transfer-message { min-height: 18px; margin: 0 !important; color: #b42318; font-size: .72rem !important; line-height: 1.35; }
.co-format-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #fbcfe8; color: #9d174d; font-size: .7rem; font-weight: 800; }
.co-footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin: 14px 2px 0; color: #94a3b8; font-size: .68rem; }
.co-footer-note a { color: #64748b; font-weight: 700; }

@media (max-width: 900px) {
    .co-step-head-actions { flex-wrap: wrap; }
    .co-step-head-actions .co-template-actions { width: 100%; padding-left: 35px; }
    .co-sequence-fields { grid-template-columns: 1fr 1fr; }
    .co-sequence-fields label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .co-app { padding: 20px 16px; }
    .co-hero { margin-left: 0; }
    .co-task-switch .co-task-grid { grid-template-columns: 1fr; }
    .co-hero .tool-title { font-size: 1.35rem; }
    .co-disclaimer { padding: 13px; }
    .co-step { grid-template-columns: 38px minmax(0, 1fr); padding: 22px 0 26px; }
    .co-step-head { grid-template-columns: 38px minmax(0, 1fr); }
    .co-step-head-actions .co-template-actions { grid-column: 2; }
    .co-step > :not(.co-step-head) { grid-column: 2; }
    .co-settings-grid, .co-mode-grid, .co-sequence-fields { grid-template-columns: 1fr; }
    .co-sequence-fields label:last-child { grid-column: auto; }
    .co-fieldset-intro { align-items: flex-start; flex-direction: column; }
    .co-custom-site { grid-template-columns: 1fr; }
    .co-step-head-actions .co-template-actions { padding-left: 0; }
    .co-template-actions, .co-template-actions > * { width: 100%; }
    .co-run-panel, .co-transfer-box, .co-bsa-notice { align-items: stretch; flex-direction: column; }
    .co-transfer-actions { min-width: 0; }
    .co-run-btn { width: 100%; min-width: 0; }
    .co-result-head { align-items: flex-start; flex-direction: column; }
    .co-result-head > div { display: flex; flex-wrap: wrap; gap: 5px; }
}
