.research-page { padding-bottom: 56px; }
.research-hero { max-width: 900px; padding: 48px 0 38px; }
.research-hero h1 { max-width: 850px; margin: 9px 0 15px; color: var(--ink); font: 500 clamp(34px, 5.5vw, 60px)/1.04 Georgia,serif; letter-spacing: -.035em; }
.research-hero > p:not(.eyebrow) { max-width: 720px; color: #c0cdd0; font-size: 15px; line-height: 1.75; }
.research-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:23px; }
.timeline-section { max-width: 1040px; padding: 12px 0 24px; }
.timeline-heading { max-width: 720px; margin-bottom: 28px; }
.timeline-heading h2 { margin: 6px 0 10px; color:var(--ink); font:500 clamp(26px,4vw,40px)/1.12 Georgia,serif; }
.timeline-heading > p:not(.eyebrow) { color:#aebdc1; font-size:13px; line-height:1.7; }
.timeline-list { position:relative; display:grid; gap:19px; margin:0; padding:0; list-style:none; }
.timeline-list::before { position:absolute; top:8px; bottom:10px; left:135px; width:1px; background:linear-gradient(#d7ae71aa,#d7ae7133); content:""; }
.timeline-item { position:relative; display:grid; grid-template-columns:112px minmax(0,1fr); gap:47px; align-items:start; }
.timeline-item::before { position:absolute; top:23px; left:130px; width:11px; height:11px; border:2px solid #0b1823; border-radius:50%; background:#dbb274; box-shadow:0 0 0 1px #dbb27488; content:""; }
.timeline-date { padding-top:19px; color:#e2c28e; font-size:11px; font-weight:850; line-height:1.5; text-align:right; }
.timeline-card { min-width:0; padding:18px 21px 19px; border:1px solid #d7ae7133; border-radius:12px; background:linear-gradient(135deg,#0d1f2b,#091721); }
.timeline-kind { margin:0 0 7px; color:#a8cbb7; font-size:10px; font-weight:900; letter-spacing:.085em; text-transform:uppercase; }
.timeline-card h3 { margin:0 0 9px; color:#f1e6d3; font:500 clamp(19px,2.6vw,25px)/1.22 Georgia,serif; }
.timeline-card > p:not(.timeline-kind) { color:#bcc8cb; font-size:12px; line-height:1.7; }
.timeline-card .timeline-scope { margin:12px 0; padding:10px 12px; border-left:2px solid #d5ae72aa; background:#050d132e; font-size:11px; }
.timeline-card .timeline-scope strong { color:#e7d1ae; }
.timeline-card a { display:inline-flex; margin-top:2px; color:#edcf9e; font-size:11px; font-weight:850; text-underline-offset:4px; }
.timeline-card a:hover { color:#ffe2b8; }
.timeline-item-open .timeline-card { border-style:dashed; background:#0a1821; }
.timeline-item-open::before { background:#9bc9aa; box-shadow:0 0 0 1px #9bc9aa88; }
.roadmap-overview,.roadmap-section { max-width:1040px; padding:12px 0 24px; }
.roadmap-overview h2 { margin:6px 0 18px; color:var(--ink); font:500 clamp(26px,4vw,40px)/1.12 Georgia,serif; }
.roadmap-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.roadmap-status-card { min-width:0; padding:16px; border:1px solid #d7ae7133; border-radius:10px; background:#0b1b26; }
.roadmap-status-card span,.roadmap-state { display:block; margin:0 0 7px; color:#a8cbb7; font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.roadmap-status-card strong { display:block; color:#f1e6d3; font:500 19px/1.2 Georgia,serif; }
.roadmap-status-card p { margin:8px 0 0; color:#b7c5c8; font-size:11px; line-height:1.6; }
.roadmap-status-card.status-open,.roadmap-card .state-blocked,.roadmap-card .state-open { border-color:#d7ae7140; }
.roadmap-status-card.status-staged,.roadmap-card .state-staged { border-color:#80a69e; }
.roadmap-list { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.roadmap-item { display:grid; grid-template-columns:34px minmax(0,1fr); gap:13px; align-items:start; }
.roadmap-number { display:grid; place-items:center; width:31px; height:31px; margin-top:13px; border:1px solid #d7ae7166; border-radius:9px; color:#e7c494; font:600 13px/1 ui-monospace,Consolas,monospace; }
.roadmap-card { min-width:0; padding:17px 20px; border:1px solid #d7ae7133; border-radius:11px; background:linear-gradient(135deg,#0d1f2b,#091721); }
.roadmap-state { display:inline-block; padding:5px 8px; border:1px solid #d7ae7140; border-radius:999px; color:#dfc18f; }
.roadmap-card h3 { margin:3px 0 8px; color:#f1e6d3; font:500 clamp(19px,2.4vw,24px)/1.25 Georgia,serif; }
.roadmap-card > p:not(.roadmap-state) { color:#bcc8cb; font-size:12px; line-height:1.7; }
.roadmap-card details { margin:11px 0; padding:10px 12px; border:1px solid #d7ae7125; border-radius:8px; background:#050d132e; }
.roadmap-card summary { color:#e9cf9f; font-size:11px; font-weight:850; cursor:pointer; }
.roadmap-card details p { margin:9px 0 1px; color:#b9c6c9; font-size:11px; line-height:1.65; }
.roadmap-card a { display:inline-flex; margin:4px 10px 2px 0; color:#edcf9e; font-size:11px; font-weight:850; text-underline-offset:4px; }
.roadmap-card a:hover { color:#ffe2b8; }
.roadmap-formula { padding:8px 10px; border-left:2px solid #d5ae72aa; background:#050d132e; font-size:11px !important; overflow-wrap:anywhere; }
.roadmap-links { display:flex; flex-wrap:wrap; gap:4px 10px; }
.roadmap-card-judging { border-color:#91c7ab66; }
.roadmap-card .state-live { border-color:#91c7ab77; color:#a8d4b6; }
.replay-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:17px 0; }
.replay-summary-card { min-width:0; padding:14px; border:1px solid #d7ae7133; border-radius:10px; background:#0b1b26; }
.replay-summary-card strong { display:block; color:#f1e6d3; font:500 clamp(20px,3vw,27px)/1 Georgia,serif; }
.replay-summary-card span { display:block; margin-top:7px; color:#b7c5c8; font-size:10px; line-height:1.5; }
.replay-boundary { margin:16px 0; padding:14px 16px; border:1px solid #d7ae7144; border-radius:10px; background:#0a1821; color:#c0cdd0; font-size:12px; line-height:1.65; }
.replay-boundary strong { color:#e9d0a6; }
.replay-control-panel { display:grid; grid-template-columns:minmax(0,1fr) 230px; gap:12px; align-items:end; margin:20px 0 12px; }
.replay-control-panel label { display:grid; gap:6px; color:#e8d7b8; font-size:11px; font-weight:850; }
.replay-control-panel input,.replay-control-panel select { width:100%; min-height:43px; min-width:0; padding:10px 12px; border:1px solid #e7c49455; border-radius:8px; background:#07151e; color:var(--ink); font:12px/1.4 ui-sans-serif,system-ui,sans-serif; }
.replay-control-panel input:focus-visible,.replay-control-panel select:focus-visible,.replay-more:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.replay-status { min-height:1.6em; color:#b7c5c8; font-size:11px; line-height:1.55; }
.replay-results { display:grid; gap:8px; }
.replay-row { min-width:0; border:1px solid #d7ae7133; border-radius:9px; background:#081721bb; }
.replay-row summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 14px; align-items:center; padding:13px 15px; color:#e8e2d8; cursor:pointer; list-style:none; }
.replay-row summary::-webkit-details-marker { display:none; }
.replay-module { overflow-wrap:anywhere; color:#f0e4cf; font:500 16px/1.3 Georgia,serif; }
.replay-kind { justify-self:end; color:#a8cbb7; font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.replay-result-note { grid-column:1/-1; color:#b8c6c9; font-size:10px; line-height:1.5; }
.replay-row[open] summary { border-bottom:1px solid #d7ae7125; }
.replay-row-body { display:grid; gap:12px; padding:12px 15px 15px; }
.replay-source-path { margin:0; color:#bdc9cc; font-size:10px; line-height:1.55; overflow-wrap:anywhere; }
.replay-source-path code { color:#e7c494; }
.replay-hash-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.replay-hash { min-width:0; padding:9px 10px; border:1px solid #d7ae7125; border-radius:7px; background:#030c12a8; }
.replay-hash strong { display:block; margin-bottom:5px; color:#e4d0ad; font-size:9px; }
.replay-hash span { display:block; color:#9fbab2; font-size:9px; }
.replay-hash code { display:block; margin-top:3px; color:#d2dcdb; font:9px/1.5 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; word-break:break-word; }
.replay-duration { margin:0; color:#b9c6c9; font-size:10px; line-height:1.55; }
.replay-more { display:block; min-height:42px; margin:12px auto; padding:9px 14px; border:1px solid #e7c49470; border-radius:8px; background:#c8945210; color:#f1dcb9; font-size:11px; font-weight:850; cursor:pointer; }
.replay-more:hover { background:#c8945225; }
.replay-more[hidden] { display:none; }
.replay-failure { padding:13px; border:1px solid #bd857766; border-radius:9px; background:#2a1210; color:#f0c6bc; font-size:12px; line-height:1.6; }
.replay-output-panel { margin:18px 0; padding:14px 16px; border:1px solid #d7ae7144; border-radius:10px; background:#07141d; }
.replay-output-panel > summary { color:#e9cf9f; font-size:12px; font-weight:850; cursor:pointer; }
.replay-output-note { max-width:760px; margin:12px 0; color:#bac8ca; font-size:11px; line-height:1.65; }
.replay-output-text { max-height:620px; margin:12px 0 0; padding:13px; overflow:auto; border:1px solid #d7ae7125; border-radius:8px; background:#02090e; color:#d9e3df; font:10px/1.5 ui-monospace,Consolas,monospace; white-space:pre; }
.record-command { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; }
.replay-output-text:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.replay-boundary code,.file-location code { overflow-wrap:anywhere; word-break:break-word; }
@media(max-width:660px) {
  .research-hero { padding:34px 0 28px; }
  .research-page,
  .research-page > *,
  .research-page .record-section > *,
  .research-page .coefficient-audit-panel,
  .research-page .coefficient-form,
  .research-page .coefficient-result-card { min-width:0; max-width:100%; }
  .research-page .research-hero h1,
  .research-page .research-hero > p,
  .research-page .record-section p,
  .research-page .record-section li { max-width:100%; overflow-wrap:anywhere; }
  .research-page .record-formula { overflow-wrap:anywhere; word-break:normal; }
  .research-hero > p:not(.eyebrow) { font-size:13px; }
  .timeline-list { gap:13px; }
  .timeline-list::before { left:9px; }
  .timeline-item { grid-template-columns:minmax(0,1fr); gap:4px; padding-left:27px; }
  .timeline-item::before { top:7px; left:4px; width:10px; height:10px; }
  .timeline-date { padding-top:0; text-align:left; }
  .timeline-card { padding:15px; }
  .research-actions { display:grid; grid-template-columns:1fr; }
  .research-actions .button { width:100%; }
  .roadmap-status-grid { grid-template-columns:1fr; }
  .roadmap-item { grid-template-columns:26px minmax(0,1fr); gap:8px; }
  .roadmap-number { width:25px; height:25px; font-size:11px; }
  .roadmap-card { padding:14px; }
  .roadmap-links { display:grid; gap:8px; }
  .replay-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .replay-control-panel { grid-template-columns:1fr; }
  .replay-hash-grid { grid-template-columns:1fr; }
}
