.protein-page { line-height: 1.6; }
.protein-page [hidden] { display: none !important; }
.protein-page h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 16px; }
.protein-page h3 { font-size: 19px; }
.protein-page p { color: #aec1ba; font-size: 14px; }
.protein-page a { color: var(--green-soft); text-underline-offset: 4px; }
.program-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.program-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.program-nav a[aria-current] { color: var(--green-soft); }
.protein-hero { padding: 72px 0 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.protein-hero h1 { font-size: clamp(56px, 6vw, 80px); }
.protein-hero > div > p { max-width: 590px; font-size: 17px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--muted); }
.hero-tags span { display: flex; gap: 7px; align-items: center; }
.program-brief { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: linear-gradient(130deg, #10271f, #101b28); }
.program-brief .eyebrow { font-size: 10px; }
.program-brief h2 { font-size: 30px; margin-top: 18px; }
.brief-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.brief-stats strong { display: block; font-size: 30px; color: var(--green-soft); }
.brief-stats span { color: var(--muted); font-size: 11px; }
.method-banner { display: flex; gap: 25px; padding: 20px 24px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: #0e201a; font-size: 13px; }
.method-banner strong { color: var(--green-soft); white-space: nowrap; }
.method-banner span { color: #aec1ba; }
.design-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); align-items: start; gap: 24px; }
.design-panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 30, 25, .82); margin-bottom: 24px; min-width: 0; }
.section-kicker { color: var(--green); font-size: 10px; letter-spacing: .13em; font-weight: 700; margin-bottom: 10px; }
.protein-page label, .protein-page legend { display: block; color: #d8e8e1; font-size: 12px; font-weight: 600; margin: 18px 0 7px; }
.protein-page input:not([type="checkbox"]):not([type="range"]), .protein-page select, .protein-page textarea { width: 100%; min-width: 0; border: 1px solid #2a443a; background: #071710; border-radius: 8px; color: var(--text); font: inherit; font-size: 12px; padding: 10px 11px; }
.protein-page textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.protein-page :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.protein-page input[type="range"] { width: 100%; accent-color: var(--green); }
.protein-page output { float: right; color: var(--green-soft); }
.field-note { font-size: 11px !important; color: var(--muted) !important; margin: 8px 0 14px; line-height: 1.6; }
.example-buttons, .export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.example-buttons button, .small-button { display: inline-block; color: var(--green-soft); background: #152d24; border: 1px solid #2d493e; padding: 7px 10px; border-radius: 7px; font-size: 11px; text-decoration: none; }
.example-buttons button:hover, .small-button:hover { background: #204637; }
.protein-page button:disabled { opacity: .4; cursor: not-allowed; }
.protein-page fieldset { border: 0; padding: 0; margin: 20px 0; }
.protein-page legend { margin: 0 0 8px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 5px; }
.partner-grid label { margin: 0; font-size: 10px; font-weight: 400; display: flex; gap: 4px; align-items: center; }
.partner-grid input { accent-color: var(--green); }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.protein-page .primary-button { width: 100%; margin-top: 16px; font-size: 12px; }
.primary-button span { float: right; }
#runStatus { font-size: 12px; margin: 12px 0 0; overflow-wrap: anywhere; }
#runStatus.error { color: #ffb497; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-title h2 { margin-bottom: 18px; overflow-wrap: anywhere; }
.live-badge, .stored-badge { color: var(--green-soft); background: #1d3b2e; padding: 5px 10px; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.stored-badge { background: #222c44; color: #bcc8ff; }
.score-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.score-cards > div { background: #091b13; border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.score-cards span { display: block; font-size: 10px; color: var(--muted); }
.score-cards strong { font-size: 30px; font-weight: 500; }
.register-status { border-left: 2px solid var(--green); padding: 9px 12px; margin: 20px 0; font-size: 12px; background: #132b21; }
.register-status.warning { border-color: #ffbc85; }
.table-scroll { overflow-x: auto; margin-bottom: 18px; }
.protein-page table { border-collapse: collapse; width: 100%; font-size: 11px; white-space: nowrap; }
.protein-page caption { text-align: left; color: #ccded5; font-weight: 600; padding: 8px 0; }
.protein-page th, .protein-page td { padding: 10px 9px; text-align: right; border-bottom: 1px solid var(--line); }
.protein-page th { font-weight: 400; color: var(--muted); background: #10241c; font-size: 10px; }
.protein-page th:first-child, .protein-page td:first-child { text-align: left; }
.protein-page td.positive { color: var(--green-soft); }
.protein-page td.negative { color: #ffb497; }
.protein-page tr.inspected { background: #1c382b; }
.rank-link { border: 0; background: none; padding: 0; color: var(--green-soft); font-size: 11px; font-family: ui-monospace, monospace; text-align: left; }
.rank-link:hover { text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.contact { padding: 10px 7px; border-radius: 8px; border: 1px solid #31443b; background: #14231c; text-align: center; font-size: 10px; }
.contact span { display: block; color: var(--muted); font-size: 9px; }
.contact strong { display: block; font-size: 16px; margin: 4px 0; }
.contact.attractive { border-color: #346c54; color: #99f7da; background: #163225; }
.contact.repulsive { border-color: #80534d; color: #ffb497; background: #332520; }
.contact-legend { display: flex; gap: 16px; font-size: 10px; color: var(--muted); }
.contact-legend span:first-child { color: var(--green-soft); }
.contact-legend span:last-child { color: #ffb497; }
.empty-state { min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.analysis-column { min-width: 0; }
.structure-section { margin-top: 20px; }
.structure-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
.structure-layout > div { min-width: 0; }
#structureCanvas { width: 100%; height: 360px; display: block; background: radial-gradient(ellipse at center, #152c25, #06110c); border-radius: 12px; margin-top: 14px; touch-action: pan-y; cursor: grab; }
.viewer-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.chain-a { color: var(--green-soft); }
.chain-b { color: #aab8ff; }
.structure-notes { padding-top: 22px; }
.structure-metric { display: flex; align-items: center; gap: 18px; margin: 12px 0; }
.structure-metric strong { font-size: 38px; font-weight: 500; }
.structure-metric span { font-size: 11px; color: var(--muted); max-width: 160px; }
.caution { padding: 16px; background: #33291c; border: 1px solid #574b30; border-radius: 10px; margin-top: 18px; color: #ffcd96; font-size: 12px; }
.caution p { font-size: 12px; margin: 8px 0 0; color: #c7b79f; }
.protein-page details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; font-size: 12px; }
.protein-page summary { cursor: pointer; color: var(--green-soft); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.evidence-grid h2 { font-size: 21px; }
.evidence-grid p, .evidence-grid a { font-size: 12px; }
.source-links { list-style: none; padding: 0; }
.source-links li { margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) {
  .protein-hero { gap: 30px; }
  .design-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
  .design-panel { padding: 20px; }
  .score-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: 1fr; gap: 0; }
  .panel-title { flex-wrap: wrap; margin-bottom: 12px; }
}
@media (max-width: 720px) {
  .protein-hero, .design-layout, .structure-layout { grid-template-columns: 1fr; }
  .protein-hero { padding-top: 38px; gap: 20px; }
  .program-brief { padding: 22px; }
  .topbar { padding: 0 16px; }
  .brand { font-size: 14px; gap: 7px; }
  .program-nav { gap: 12px; font-size: 11px; }
  .method-banner { display: block; padding: 18px; }
  .method-banner strong { display: block; margin-bottom: 8px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-layout { gap: 12px; }
  .stored-badge { white-space: normal; }
  .viewer-tools { flex-wrap: wrap; }
}
