:root {
  --ink: #203e40; --muted: #597476; --paper: #f3faf8; --card: #ffffff;
  --line: #dbece7; --green: #147d73; --mint: #d6f1e7; --acid: #e6f0fc;
  --orange: #cf8b50; --red: #ad5347; --blue: #729dcc; --shadow: 0 12px 35px rgba(30, 100, 90, .045);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.6; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
.site-header { height: 72px; padding: 0 max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,35,31,.12); }
.brand { color: var(--ink); font: 700 20px Georgia, serif; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--muted); font: 500 12px Inter, sans-serif; margin-left: 8px; letter-spacing: .08em; }
.header-meta { color: var(--muted); font-size: 12px; }
.offline-dot { display: inline-block; width: 7px; height: 7px; background: #4a9b71; border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 4px rgba(74,155,113,.12); }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 330px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 50px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font: 500 clamp(38px, 5vw, 68px)/1.12 Georgia, "Noto Serif SC", serif; letter-spacing: -.04em; max-width: 820px; margin: 0 0 20px; }
.hero-copy { color: var(--muted); max-width: 690px; font-size: 16px; margin: 0; }
.hero-mark { height: 200px; position: relative; }
.hero-mark span { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--ink); border-radius: 50%; font: 600 19px Georgia, serif; background: var(--paper); }
.hero-mark span:nth-child(1) { left: 2%; top: 65px; background: var(--acid); }
.hero-mark span:nth-child(2) { left: 25%; top: 15px; }
.hero-mark span:nth-child(3) { left: 48%; top: 78px; background: var(--mint); }
.hero-mark span:nth-child(4) { left: 70%; top: 30px; }
.hero-mark span:nth-child(5) { left: 87%; top: 105px; background: #f3cbb2; }
.hero-mark::before { content: ""; position: absolute; width: 92%; height: 1px; background: var(--ink); top: 98px; left: 2%; transform: rotate(4deg); opacity: .5; }
.input-card, .panel { background: var(--card); border: 1px solid rgba(23,35,31,.14); box-shadow: var(--shadow); }
.input-card { padding: clamp(24px, 4vw, 48px); border-radius: 5px; }
.input-card > label { display: flex; justify-content: space-between; font-weight: 750; margin-bottom: 10px; }
.input-card label small { color: var(--muted); font-weight: 400; }
textarea { width: 100%; resize: vertical; padding: 18px; border: 1px solid #bfc5bf; background: #fbfcf8; border-radius: 3px; font: 600 23px/1.55 "Cascadia Mono", Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; color: var(--green); outline: none; transition: .2s; }
textarea:focus, input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,94,74,.1); outline: none; }
.validation { min-height: 24px; color: var(--red); font-size: 13px; padding-top: 4px; }
.input-toolbar { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-top: 16px; }
.field-group { display: grid; gap: 6px; min-width: 165px; }
.field-group.compact { min-width: 100px; }
.field-group label, .window-control label { color: var(--muted); font-size: 12px; font-weight: 700; }
select, input[type=number] { height: 45px; border: 1px solid #c8ccc7; border-radius: 3px; padding: 0 12px; background: #fff; color: var(--ink); }
.primary-button { height: 47px; border: 0; background: var(--green); color: #fff; padding: 0 24px; border-radius: 2px; font-weight: 700; margin-left: auto; }
.primary-button:hover { background: #184836; }
.primary-button span { margin-left: 28px; }
.examples { color: var(--muted); font-size: 12px; margin-top: 18px; }
.text-button { border: 0; padding: 2px 6px; background: none; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.report { margin-top: 90px; }
.hidden { display: none !important; }
.report-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
h2 { font: 500 40px/1.15 Georgia, serif; margin: 0; }
.secondary-button { border: 1px solid var(--ink); background: transparent; padding: 9px 15px; border-radius: 2px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 52px; }
.summary-card { padding: 22px; min-height: 148px; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.summary-card:nth-child(2) { background: var(--green); }
.summary-card:nth-child(3) { color: var(--ink); background: var(--acid); }
.summary-card:nth-child(4) { color: var(--ink); background: var(--mint); }
.summary-label { font-size: 11px; opacity: .72; letter-spacing: .08em; text-transform: uppercase; }
.summary-value { font: 500 34px/1 Georgia, serif; }
.summary-detail { font-size: 12px; opacity: .7; }
.panel { padding: clamp(22px, 3.4vw, 42px); margin-bottom: 18px; border-radius: 4px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.panel-heading h3 { font: 500 25px/1.2 Georgia, "Noto Serif SC", serif; margin: 0; }
.section-number { color: var(--green); font: 700 10px Inter, sans-serif; letter-spacing: .16em; margin: 0 0 7px; text-transform: uppercase; }
.legend { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot.hydrophobic, .residue.hydrophobic { background: #f3c19f; }
.dot.polar, .residue.polar { background: var(--mint); }
.dot.charged, .residue.charged { background: #b9d8e6; }
.dot.other, .residue.other { background: #deddd3; }
.sequence-map { display: flex; flex-wrap: wrap; gap: 6px; }
.residue { position: relative; width: 43px; height: 51px; display: grid; place-items: center; border-radius: 2px; font: 700 16px Consolas, monospace; }
.residue small { position: absolute; right: 4px; bottom: 1px; font: 500 8px Inter, sans-serif; opacity: .55; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.property-row { display: grid; grid-template-columns: 1.25fr 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.property-row:last-child { border: 0; }
.property-name { color: var(--muted); font-size: 13px; }
.property-value { text-align: right; font-weight: 700; }
.property-value small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.composition-row { margin-bottom: 17px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.bar-track { height: 9px; background: #ecece6; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green); }
.composition-row:nth-child(2) .bar-fill { background: var(--orange); }
.composition-row:nth-child(3) .bar-fill { background: var(--blue); }
.composition-row:nth-child(4) .bar-fill { background: #a9aaa1; }
details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: var(--green); font-size: 12px; font-weight: 700; }
.aa-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 14px; }
.aa-item { padding: 8px; border: 1px solid var(--line); text-align: center; font-size: 11px; }
.aa-item strong { display: block; font: 700 15px Consolas, monospace; }
.panel-note { color: var(--muted); font-size: 12px; max-width: 450px; text-align: right; margin: 0; }
.chart-wrap { position: relative; width: 100%; overflow: hidden; }
canvas { width: 100%; display: block; }
.charge-points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.charge-point { background: #f1f3ee; padding: 10px; text-align: center; font-size: 11px; }
.charge-point strong { display: block; font-size: 16px; color: var(--green); }
.window-control { display: flex; align-items: center; gap: 9px; }
input[type=range] { accent-color: var(--green); width: 130px; }
.window-control output { font-weight: 800; min-width: 15px; }
.figure-caption, .caveat { color: var(--muted); font-size: 11px; margin: 12px 0 0; }
.status-badge { padding: 7px 12px; border-radius: 100px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-low { background: #dbeade; color: #24613f; }
.status-medium { background: #f4dfb4; color: #7b4d13; }
.status-high { background: #f2c9c2; color: #8b3428; }
.verdict-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 50px; align-items: start; }
.risk-gauge { height: 12px; background: linear-gradient(90deg, #8cc69d 0 33%, #efd177 33% 66%, #d77b6b 66%); position: relative; margin: 14px 0 24px; }
.risk-gauge span { position: absolute; top: -6px; width: 4px; height: 24px; background: var(--ink); transform: translateX(-2px); }
.verdict-text { font: 500 21px/1.5 Georgia, serif; }
.verdict-grid h4, .recommendation-card h4 { margin: 0 0 12px; font-size: 13px; }
.factor-list { margin: 0; padding: 0; list-style: none; }
.factor-list li { display: flex; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 12px; }
.factor-score { min-width: 26px; color: var(--red); font-weight: 800; }
.recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recommendation-card { border: 1px solid var(--line); padding: 18px; background: #fafbf7; }
.recommendation-card p { color: var(--muted); font-size: 12px; margin: 0; }
.recommendation-icon { font: 600 24px Georgia, serif; color: var(--green); margin-bottom: 14px; }
.variants { margin-top: 22px; }
.variant { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.variant code { color: var(--green); font: 700 15px Consolas, monospace; word-break: break-all; }
.variant small { grid-column: 1; color: var(--muted); }
.variant button { grid-row: 1 / 3; grid-column: 2; align-self: center; border: 0; background: #e8eee9; color: var(--green); padding: 7px 10px; }
.assembly-panel { background: #1f332b; color: #f7f7f1; }
.assembly-panel .section-number { color: var(--acid); }
.assembly-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.assembly-metric { border: 1px solid rgba(255,255,255,.18); padding: 16px; }
.assembly-metric span { display: block; color: rgba(255,255,255,.62); font-size: 10px; margin-bottom: 8px; }
.assembly-metric strong { font: 500 25px Georgia, serif; }
.assembly-note { color: rgba(255,255,255,.72); font-size: 12px; margin-top: 20px; }
.deferred { border-left: 3px solid var(--orange); padding: 6px 0 6px 18px; color: rgba(255,255,255,.75); }
.methods-panel { box-shadow: none; background: transparent; }
.methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.methods-grid p { color: var(--muted); font-size: 11px; margin: 0; }
.methods-grid strong { color: var(--ink); display: block; font-size: 12px; margin-bottom: 5px; }
.source-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.source-links a { color: var(--green); font-size: 11px; }
footer { text-align: center; color: var(--muted); font-size: 11px; padding: 65px 20px 35px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 65px 0 50px; }
  .hero-mark { display: none; }
  .summary-grid, .assembly-metrics { grid-template-columns: repeat(2, 1fr); }
  .two-column, .verdict-grid { grid-template-columns: 1fr; }
  .recommendations, .methods-grid { grid-template-columns: 1fr; }
  .primary-button { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  main { width: min(100% - 24px, 1180px); }
  .site-header { padding: 0 14px; }
  .header-meta, .brand span { display: none; }
  .hero { min-height: 280px; }
  .input-card { padding: 20px; }
  .input-card > label { display: block; }
  .input-card label small { display: block; margin-top: 4px; }
  .field-group { width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { min-height: 120px; padding: 16px; }
  .summary-value { font-size: 27px; }
  .panel-heading.responsive { display: block; }
  .panel-note { text-align: left; margin-top: 12px; }
  .charge-points { grid-template-columns: repeat(3, 1fr); }
  .aa-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Fresh mint / sky palette with a focused teal primary action. */
.cap-note { margin: 18px 0 0; padding: 13px 16px; border-radius: 10px; background: #eef7f3; color: #3c6c60; font-size: 12px; }
.cap-note a { color: #147d73; }
.activity-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.activity-summary { padding: 14px; background: #e8f5ef; border-radius: 10px; font-size: 14px; }
.activity-table { min-width: 640px; }
.activity-table th small,.activity-table td small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 5px; }
.activity-table .feature-hit { background: #ecf8f3; }
.input-toolbar .field-group:first-child { min-width: 265px; }
body { background: radial-gradient(ellipse at top right, #e4f4f6 0, transparent 45%), var(--paper); }
.site-header { background: #ffffffcf; border-color: var(--line); }
.hero { min-height: 290px; }
h1 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.25; }
.input-card,.panel { border-color: var(--line); border-radius: 18px; }
.input-card { border-top: 4px solid #39ab99; }
.primary-button { background: var(--green); border-radius: 10px; box-shadow: 0 5px 12px #147d7319; }
.primary-button:hover { background: #09685f; }
.secondary-button { border-color: #bcd8d0; border-radius: 9px; color: var(--green); background: white; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #79b9e0; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: not-allowed; }
textarea { border-color: #c9e2d9; background: #f8fcfa; border-radius: 10px; }
select,input[type=number],input[type=search] { border: 1px solid #c9ded9; border-radius: 9px; background: #fff; padding: 10px 12px; color: var(--ink); min-width: 0; width: 100%; }
.summary-card { border-radius: 15px; border: 1px solid #cbe4da; background: #e1f3eb; color: var(--ink); }
.summary-card:nth-child(2) { background: #e7f1fb; color: #284c72; border-color: #d5e6f7; }
.summary-card:nth-child(3) { background: #eeebfa; color: #534873; border-color: #e2dcf3; }
.summary-card:nth-child(4) { background: #147d73; color: white; border-color: #147d73; }
.summary-label { font-weight: 700; opacity: .9; }
.summary-detail { opacity: .9; }
.property-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.property-value { overflow-wrap: anywhere; }
.two-column > *, .verdict-grid > *, .summary-grid > * { min-width: 0; }
.verdict-panel { border-left: 4px solid #4ab19b; }
.assembly-panel { background: linear-gradient(135deg,#eaf7f2,#edf5ff); color: var(--ink); }
.assembly-panel .section-number { color: var(--green); }
.assembly-metric { background: #ffffffb5; border: 1px solid #cde4dc; border-radius: 12px; }
.assembly-metric span,.assembly-note,.deferred { color: var(--muted); }
.methods-panel { background: #ffffff70; }
.search-panel { padding: 30px; margin-bottom: 24px; }
.search-panel h2 { font: 650 25px/1.3 "Segoe UI","Microsoft YaHei",sans-serif; }
.search-intro { color: var(--muted); font-size: 14px; margin: 10px 0 20px; }
.search-controls { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; gap: 14px; align-items: end; }
.search-field { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.search-controls .primary-button { margin: 0; }
.search-status { font-size: 13px; color: var(--green); margin: 20px 0 12px; }
.protein-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.protein-card { border: 1px solid var(--line); border-radius: 12px; background: #f8fcfb; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.protein-kicker { font-size: 10px; color: var(--green); letter-spacing: .04em; }
.protein-card h3 { font-size: 15px; margin: 9px 0; line-height: 1.5; }
.protein-card p { margin: 0 0 7px; font-size: 12px; color: var(--muted); }
.protein-card a,.comparison-table a,#comparisonContent a { color: var(--green); font-size: 12px; }
.protein-card .protein-note { margin: 10px 0 15px; }
.protein-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.protein-actions button { border: 1px solid #acd6ca; border-radius: 8px; color: #166c60; background: #e4f4ec; padding: 7px 10px; font-size: 12px; }
.protein-actions button+button { background: white; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.comparison-table th,.comparison-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 14px; }
.comparison-table thead { background: #edf7f3; }
.comparison-table td:nth-child(2) { font-weight: 650; color: #127467; }
.alignment-stats { display:flex; flex-wrap:wrap; gap:10px; }
.alignment-stats span { padding: 9px 12px; border-radius: 8px; background: #edf5fb; font-size: 12px; }
.alignment-stats strong { margin-left: 8px; }
.alignment { overflow-x: auto; max-width: 100%; padding: 16px; background: #f4f8fa; border: 1px solid #dce7eb; border-radius: 10px; line-height: 1.8; font: 13px/1.8 Consolas,monospace; }
.structure-heading { border-top: 1px solid #c9dfda; margin-top: 30px; padding-top: 28px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.structure-heading h3 { margin: 0; font-size: 21px; }
.concept-tag { border-radius: 20px; padding: 5px 10px; background: #ffffffb0; color: #56736e; font-size: 11px; }
.structure-intro { font-size: 13px; color: var(--muted); }
.structure-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.structure-card { margin: 0; border: 1px solid #d0e3dd; background: #ffffffd9; border-radius: 14px; padding: 16px; }
.structure-card.candidate { border: 2px solid #269f8a; background: #f6fffa; box-shadow: 0 4px 20px #269f8a12; }
.structure-card svg { width: 100%; height: auto; display: block; }
.structure-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; font-size: 14px; }
.structure-label span { color: #fff; background: #147d73; padding: 3px 7px; font-size: 10px; border-radius: 10px; }
.structure-card figcaption { font-size: 12px; color: var(--muted); }
@media(max-width:860px) {
 .protein-results,.structure-grid { grid-template-columns: 1fr; }
 .structure-card svg { max-height: 180px; }
 .search-controls { grid-template-columns: 1fr 1fr; }
 .search-controls .primary-button { grid-column: 1/-1; }
}
@media(max-width:560px) {
 .search-panel { padding: 20px; }
 .search-controls { grid-template-columns: 1fr; }
 .structure-heading { flex-direction: column; }
 .panel-heading { flex-wrap: wrap; }
 .summary-value { font-size: 25px; }
}
/* Mobile/WeChat webview: readable inputs and large touch targets. */
.offline-reference { margin: 18px 0; }
.offline-reference textarea { width:100%; box-sizing:border-box; }
@media (max-width:600px) {
  input,select,textarea { font-size:16px; }
  button,summary { min-height:44px; }
  .site-header { flex-wrap:wrap; gap:10px; }
}
.topology-input { margin:16px 0; padding:16px; background:#eff8f5; border-radius:12px; }
.topology-input p { color:#52605a; font-size:13px; }
.topology-input textarea { width:100%; box-sizing:border-box; margin-top:8px; }
.figure-summary { padding:10px 14px; border-left:3px solid #139b8c; background:#f1f8f6; color:#315b52; font-size:13px; line-height:1.7; }
.scope-notice { padding:16px 20px; border-left:4px solid #139b8c; background:#edf7f3; color:#24564a; line-height:1.8; border-radius:8px; }
.comparison-switch { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; }
#proteinSearchBody[hidden] { display:none; }
.solvent-panel { margin-top:24px; }
