:root {
  --dv-ink: #172b35;
  --dv-muted: #6c7f86;
  --dv-teal: #087f78;
  --dv-teal-dark: #08635f;
  --dv-mint: #dff2ed;
  --dv-coral: #ed795f;
  --dv-gold: #e4ad4b;
  --dv-line: #dce7e5;
  --dv-paper: #f4f8f7;
}
.dengue-page { background: var(--dv-paper); color: var(--dv-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; padding: 24px 0 64px; line-height: 1.65; }
.dengue-page * { box-sizing: border-box; }
.dengue-page button, .dengue-page a { -webkit-tap-highlight-color: transparent; }
.dengue-page button { font: inherit; }
.dengue-shell { width: min(1400px, calc(100% - 56px)); margin: 0 auto; }
.dengue-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #849399; margin: 0 0 30px; }
.dengue-breadcrumb a { color: #63777e; text-decoration: none; }
.dengue-breadcrumb a:hover { color: var(--dv-teal); }
.dengue-breadcrumb strong { color: var(--dv-ink); font-weight: 500; }
.dengue-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.dengue-eyebrow { color: var(--dv-teal); font-size: 11px; letter-spacing: 2.4px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.dengue-eyebrow span { width: 24px; height: 2px; background: var(--dv-teal); }
.dengue-hero h1 { margin: 0; color: var(--dv-ink); font-size: clamp(30px, 3vw, 46px); line-height: 1.2; letter-spacing: -1.4px; font-weight: 720; }
.dengue-hero h1 em { font-style: normal; color: var(--dv-teal); font-weight: 450; }
.dengue-hero p { margin: 12px 0 0; color: var(--dv-muted); font-size: 15px; }
.dengue-taxonomy { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: rgba(255,255,255,.72); border: 1px solid var(--dv-line); min-width: 248px; }
.taxonomy-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dv-teal); box-shadow: 0 0 0 5px var(--dv-mint); flex: 0 0 auto; }
.dengue-taxonomy strong { display: block; font-family: Georgia, serif; font-style: italic; font-size: 16px; font-weight: 500; }
.dengue-taxonomy small { display: block; color: var(--dv-muted); margin-top: 2px; font-size: 11px; letter-spacing: .4px; }
.virus-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--dv-line); border-bottom: 0; }
.virus-facts > div { padding: 20px 26px; position: relative; }
.virus-facts > div + div:before { content: ""; position: absolute; left: 0; top: 21px; bottom: 21px; width: 1px; background: var(--dv-line); }
.virus-facts small { display: block; color: var(--dv-muted); font-size: 11px; letter-spacing: .8px; margin-bottom: 2px; }
.virus-facts strong { display: block; font-size: 28px; font-weight: 600; line-height: 1.35; color: var(--dv-ink); font-variant-numeric: tabular-nums; }
.virus-facts strong span { font-size: 12px; color: var(--dv-teal); font-weight: 600; margin-left: 3px; }
.virus-facts p { margin: 2px 0 0; font-size: 12px; color: #849399; }
.virus-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: #fff; border: 1px solid var(--dv-line); min-height: 680px; }
.viewer-panel { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--dv-line); }
.viewer-topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 20px; border-bottom: 1px solid var(--dv-line); }
.viewer-modes { display: flex; gap: 4px; }
.viewer-modes button { border: 0; background: transparent; color: var(--dv-muted); padding: 8px 14px; cursor: pointer; font-size: 13px; border-radius: 3px; }
.viewer-modes button:hover { background: #f0f6f4; color: var(--dv-teal); }
.viewer-modes button.active { background: var(--dv-mint); color: var(--dv-teal-dark); font-weight: 600; }
.model-status { color: #7a8e91; font-size: 11px; display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.model-status i { display: block; width: 6px; height: 6px; background: #64aa94; border-radius: 50%; }
.virus-stage { height: 550px; min-height: 420px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 44%, #ffffff 0, #f8fbfa 45%, #edf4f2 100%); }
#virus-canvas { position: absolute; inset: 0; z-index: 2; }
#virus-canvas canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
#virus-canvas canvas:active { cursor: grabbing; }
.stage-grid { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 38px; height: 90px; opacity: .28; transform: perspective(220px) rotateX(62deg); transform-origin: bottom; background-image: linear-gradient(#b6cbc5 1px, transparent 1px), linear-gradient(90deg, #b6cbc5 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); }
.stage-corner { position: absolute; z-index: 3; width: 17px; height: 17px; opacity: .5; pointer-events: none; }
.stage-corner.top-left { left: 19px; top: 19px; border-left: 1px solid #8aa59e; border-top: 1px solid #8aa59e; }
.stage-corner.top-right { right: 19px; top: 19px; border-right: 1px solid #8aa59e; border-top: 1px solid #8aa59e; }
.stage-corner.bottom-left { left: 19px; bottom: 19px; border-left: 1px solid #8aa59e; border-bottom: 1px solid #8aa59e; }
.stage-corner.bottom-right { right: 19px; bottom: 19px; border-right: 1px solid #8aa59e; border-bottom: 1px solid #8aa59e; }
.stage-hint { position: absolute; z-index: 4; bottom: 17px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; white-space: nowrap; color: #82968f; font-size: 10px; letter-spacing: .3px; pointer-events: none; }
.stage-hint b { font-weight: 400; color: #b1c0bc; }
.stage-axis { position: absolute; z-index: 4; right: 30px; bottom: 45px; width: 48px; height: 48px; font: 9px/1 monospace; color: #7c928c; pointer-events: none; }
.stage-axis i { position: absolute; left: 21px; top: 24px; width: 5px; height: 5px; background: #7c928c; border-radius: 50%; }
.stage-axis:before, .stage-axis:after { content: ""; position: absolute; left: 23px; top: 5px; width: 1px; height: 22px; background: #7c928c; transform-origin: bottom; }
.stage-axis:after { transform: rotate(120deg); }
.stage-axis span { position: absolute; }
.axis-y { left: 21px; top: -4px; }.axis-x { right: 0; bottom: 7px; }.axis-z { left: 0; bottom: 7px; }
.structure-label { position: absolute; z-index: 4; display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .25s; pointer-events: none; transform: translate(12px, -50%); }
.structure-label.visible { opacity: 1; }
.structure-label i { display: block; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--dv-teal); box-shadow: 0 0 0 1px var(--dv-teal); }
.structure-label[data-label="e"] i { background: var(--dv-coral); box-shadow: 0 0 0 1px var(--dv-coral); }
.structure-label span { background: rgba(255,255,255,.9); border: 1px solid rgba(195,214,208,.85); padding: 4px 8px; font-size: 10px; color: #405e58; box-shadow: 0 2px 8px rgba(25,55,45,.04); white-space: nowrap; }
.model-loader { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f5f9f8; transition: opacity .35s; }
.model-loader.done { opacity: 0; pointer-events: none; }
.model-loader span { width: 34px; height: 34px; border: 2px solid #d8e8e3; border-top-color: var(--dv-teal); border-radius: 50%; animation: dv-spin .8s linear infinite; }
.model-loader p { color: var(--dv-muted); font-size: 12px; margin-top: 14px; }
.model-error { position: absolute; z-index: 8; inset: 0; padding: 40px; background: #f5f9f8; text-align: center; align-content: center; }
.model-error strong { font-size: 17px; }.model-error p { color: var(--dv-muted); max-width: 420px; margin: 10px auto; font-size: 13px; }
@keyframes dv-spin { to { transform: rotate(360deg); } }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 20px; border-top: 1px solid var(--dv-line); margin-top: auto; }
.explode-control { flex: 1; max-width: 360px; }
.explode-control label { display: flex; justify-content: space-between; color: #536b70; font-size: 11px; }
.explode-control output { color: var(--dv-teal); font-variant-numeric: tabular-nums; }
.explode-control input { width: 100%; height: 3px; margin: 10px 0 4px; display: block; accent-color: var(--dv-teal); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 9px; color: #98a7aa; }
.viewer-actions { display: flex; gap: 4px; }
.viewer-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 46px; height: 44px; border: 0; background: transparent; color: #6d8185; cursor: pointer; border-radius: 3px; }
.viewer-actions button:hover, .viewer-actions button[aria-pressed="true"] { color: var(--dv-teal); background: #eff7f4; }
.viewer-actions button i { font-size: 14px; }.viewer-actions button span { font-size: 9px; }
.structure-panel { background: #fff; min-width: 0; }
.panel-heading { padding: 23px 24px 18px; }
.panel-heading > span, .section-heading > div > span { color: var(--dv-teal); font-size: 9px; letter-spacing: 2px; font-weight: 700; }
.panel-heading h2 { margin: 3px 0 2px; font-size: 20px; font-weight: 650; }
.panel-heading p { margin: 0; font-size: 11px; color: var(--dv-muted); }
.layer-list { padding: 0 14px; }
.layer-button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-top: 1px solid #edf2f1; background: transparent; padding: 11px 10px; cursor: pointer; color: var(--dv-ink); position: relative; }
.layer-button:before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 2px; background: transparent; }
.layer-button:hover { background: #f6faf9; }
.layer-button.active { background: #f0f8f5; }
.layer-button.active:before { background: var(--dv-teal); }
.layer-button > span { flex: 1; min-width: 0; }
.layer-button strong { display: block; font-size: 12px; font-weight: 600; }
.layer-button small { display: block; color: #87979b; font-size: 9px; line-height: 1.5; }
.layer-button > b { color: #a2b0b3; font-size: 9px; font-weight: 400; font-variant-numeric: tabular-nums; }
.layer-symbol { display: block; width: 26px; height: 26px; flex: 0 0 26px; position: relative; }
.symbol-all { border: 1px solid #78a79e; border-radius: 50%; background: radial-gradient(circle, #b8d8d0 1px, transparent 1px); background-size: 5px 5px; }
.symbol-e:before, .symbol-e:after { content: ""; position: absolute; width: 7px; height: 22px; top: 2px; background: var(--dv-coral); border-radius: 5px; transform: rotate(25deg); }
.symbol-e:before { left: 5px; }.symbol-e:after { right: 5px; transform: rotate(-25deg); }
.symbol-envelope { border: 3px double #73aa9d; border-radius: 50%; }
.symbol-m:before { content: ""; position: absolute; inset: 5px 3px; border-top: 4px dotted var(--dv-gold); border-bottom: 4px dotted var(--dv-gold); }
.symbol-capsid { background: #8b9dc4; clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); }
.symbol-rna:before { content: "∿"; color: #7970ac; font-size: 34px; line-height: 24px; position: absolute; left: 2px; top: -2px; font-weight: bold; }
.structure-detail { margin: 17px 20px 20px; padding: 17px; background: #f4f8f7; border-left: 2px solid var(--dv-teal); min-height: 160px; }
.detail-kicker { font-size: 8px; color: var(--dv-teal); letter-spacing: 1.1px; font-weight: 700; }
.structure-detail h3 { margin: 5px 0 7px; font-size: 15px; font-weight: 650; }
.structure-detail > p { font-size: 11px; line-height: 1.75; color: #61767b; margin: 0 0 9px; }
.structure-detail dl { margin: 0; font-size: 10px; }
.structure-detail dl > div { display: grid; grid-template-columns: 58px 1fr; gap: 7px; padding-top: 6px; }
.structure-detail dt { color: #87999b; font-weight: 400; }.structure-detail dd { margin: 0; color: #415d62; }
.genome-section { margin-top: 24px; padding: 30px; background: #fff; border: 1px solid var(--dv-line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading h2 { margin: 5px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -.3px; }
.section-heading > p { max-width: 490px; margin: 0; color: var(--dv-muted); font-size: 11px; }
.genome-map { display: flex; align-items: stretch; min-height: 60px; gap: 2px; }
.genome-utr { width: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: center; border: 1px dashed #a6b9b4; color: #748c86; font-size: 10px; }
.gene { border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; min-width: 0; padding: 8px 3px; }
button.gene { cursor: pointer; }button.gene:hover { filter: brightness(.95); }
.gene strong { font-size: 12px; font-weight: 700; }.gene small { font-size: 8px; opacity: .8; white-space: nowrap; }
.gene.structural { background: #d9eee8; color: #136b62; border-bottom: 3px solid #49a08e; }
.gene.nonstructural { background: #edf0f3; color: #637582; border-bottom: 3px solid #a7b2bb; }
.gene-ns1 { flex: 1.35; }.gene-ns3 { flex: 2; }.gene-ns5 { flex: 2.1; }
.genome-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 14px; color: #718389; font-size: 10px; }
.genome-legend > span { display: flex; align-items: center; gap: 7px; }.genome-legend i { width: 8px; height: 8px; display: inline-block; }
.legend-structural { background: #49a08e; }.legend-nonstructural { background: #a7b2bb; }
.genome-legend small { margin-left: auto; color: #98a5a8; font-size: 9px; }
button.gene { transition: filter .18s, transform .18s; }
button.gene:hover { transform: translateY(-2px); }
button.gene:focus-visible, .protein-card:focus-visible { outline: 2px solid var(--dv-teal); outline-offset: 2px; }
.protein-library { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--dv-line); }
.protein-group-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.protein-group-heading span { color: var(--dv-teal); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.protein-group-heading h3 { margin: 4px 0 0; color: var(--dv-ink); font-size: 17px; font-weight: 650; }
.protein-group-heading > p { max-width: 460px; margin: 0; color: var(--dv-muted); font-size: 10px; line-height: 1.7; }
.nonstructural-heading { margin-top: 30px; padding-top: 25px; border-top: 1px dashed #d9e4e1; }
.structural-protein-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nonstructural-protein-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.protein-card { min-width: 0; padding: 18px 19px; background: #f7faf9; border: 1px solid #e1ebe8; border-top: 2px solid #68a998; transition: border-color .25s, box-shadow .25s, background .25s; scroll-margin-top: 90px; }
.nonstructural-card { background: #f7f8fa; border-top-color: #97a7b4; }
.protein-card.is-highlighted { border-color: var(--dv-teal); background: #eff8f5; box-shadow: 0 0 0 3px rgba(8,127,120,.1); }
.protein-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.protein-badge { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 38px; background: #dcefe9; color: #147267; font-size: 13px; font-weight: 750; letter-spacing: -.2px; }
.nonstructural-card .protein-badge { background: #e6ebef; color: #596e7b; }
.protein-card-title > div { flex: 1; min-width: 0; }
.protein-card-title h4 { margin: 0; color: var(--dv-ink); font-size: 13px; font-weight: 650; line-height: 1.4; }
.protein-card-title small { display: block; margin-top: 1px; color: #8a999d; font-size: 8px; line-height: 1.4; }
.protein-card-title > b { align-self: flex-start; flex: 0 0 auto; padding: 2px 5px; color: #648078; background: #e9f2ef; font-size: 8px; font-weight: 500; white-space: nowrap; }
.nonstructural-card .protein-card-title > b { color: #6f7f89; background: #ebeff2; }
.protein-card > p { min-height: 45px; margin: 0 0 10px; color: #5f7379; font-size: 11px; line-height: 1.8; }
.protein-card ul { margin: 0; padding: 9px 0 0; border-top: 1px solid #e2ebe8; list-style: none; }
.protein-card li { position: relative; padding-left: 12px; color: #728489; font-size: 10px; line-height: 1.75; }
.protein-card li + li { margin-top: 3px; }
.protein-card li:before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #78a99c; }
.nonstructural-card li:before { background: #9caab4; }
.protein-caveat { margin: 16px 0 0; padding: 12px 15px; background: #edf4f2; color: #687e7b; font-size: 10px; line-height: 1.8; }
.protein-caveat strong { color: #3f615a; font-weight: 650; }
.science-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 20px 25px; border: 1px solid var(--dv-line); background: #edf4f2; }
.science-note > div { display: flex; gap: 13px; align-items: flex-start; max-width: 900px; }
.note-icon { flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #82a59c; border-radius: 50%; text-align: center; line-height: 19px; color: #52786e; font: italic 13px Georgia, serif; }
.science-note h2 { font-size: 12px; margin: 0 0 3px; font-weight: 650; }
.science-note p { color: #6c807e; font-size: 10px; line-height: 1.7; margin: 0; }
.science-note a { flex: 0 0 auto; color: var(--dv-teal); font-size: 10px; text-decoration: none; }
.science-note a:hover { text-decoration: underline; }
.science-note > .science-sources { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; max-width: none; }
.science-sources > span { color: #879a96; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.science-sources a { margin: 0; }
.virus-workspace:fullscreen { background: #fff; width: 100vw; height: 100vh; grid-template-columns: minmax(0,1fr) 340px; }
.virus-workspace:fullscreen .virus-stage { height: calc(100vh - 132px); }
@media (max-width: 1100px) {
  .virus-workspace { grid-template-columns: minmax(0,1fr) 300px; }
  .dengue-shell { width: calc(100% - 36px); }
  .virus-facts > div { padding: 17px 20px; }
  .structure-label { display: none; }
  .genome-section { padding: 24px 20px; }
  .gene small { display: none; }
  .protein-card-title > b { display: none; }
  .protein-card { padding: 16px; }
}
@media (max-width: 860px) {
  .dengue-page { padding-top: 16px; }
  .dengue-hero { align-items: flex-start; }
  .dengue-taxonomy { display: none; }
  .virus-facts { grid-template-columns: repeat(2,1fr); }
  .virus-facts > div:nth-child(3):before { display: none; }
  .virus-facts > div:nth-child(n+3) { border-top: 1px solid var(--dv-line); }
  .virus-workspace { grid-template-columns: 1fr; }
  .viewer-panel { border-right: 0; border-bottom: 1px solid var(--dv-line); }
  .virus-stage { height: 500px; }
  .structure-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-heading { grid-column: 1 / -1; }
  .layer-list { padding-bottom: 18px; }
  .structure-detail { align-self: start; margin-top: 0; }
  .section-heading { display: block; }.section-heading > p { margin-top: 10px; }
  .genome-map { overflow-x: auto; padding-bottom: 6px; }.genome-map > * { min-width: 68px; }
  .protein-group-heading { display: block; }.protein-group-heading > p { margin-top: 7px; }
  .structural-protein-grid { grid-template-columns: 1fr; }
  .protein-card > p { min-height: 0; }
  .science-note { display: block; }.science-note > .science-sources { align-items: flex-start; margin: 14px 0 0 34px; }
}
@media (max-width: 560px) {
  .dengue-shell { width: calc(100% - 24px); }
  .dengue-breadcrumb { margin-bottom: 22px; font-size: 11px; gap: 7px; }
  .dengue-hero h1 { font-size: 29px; letter-spacing: -.8px; }.dengue-hero h1 em { display: block; margin-top: 4px; }
  .dengue-hero p { font-size: 12px; }
  .virus-facts > div { padding: 14px 16px; }.virus-facts strong { font-size: 23px; }
  .viewer-topbar { padding: 8px; display: block; }.viewer-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 3px; }.viewer-modes button { padding: 8px 4px; font-size: 11px; white-space: nowrap; }
  .model-status { display: none; }
  .virus-stage { height: 400px; min-height: 380px; }
  .stage-axis { display: none; }.stage-hint { font-size: 9px; }
  .viewer-controls { display: block; padding: 12px; }.explode-control { max-width: none; }
  .viewer-actions { justify-content: space-around; margin-top: 10px; }.viewer-actions button { flex-direction: row; min-width: 65px; height: 32px; }
  .structure-panel { display: block; }.structure-detail { margin-top: 0; }
  .genome-section { padding: 22px 14px; }.section-heading h2 { font-size: 18px; }
  .genome-legend { display: block; }.genome-legend > span { margin-top: 6px; }.genome-legend small { display: block; margin: 8px 0 0; }
  .protein-library { margin-top: 22px; padding-top: 22px; }
  .nonstructural-protein-grid { grid-template-columns: 1fr; }
  .protein-card { padding: 16px 14px; }
  .protein-card-title h4 { font-size: 12px; }
  .science-note { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dengue-page *, .dengue-page *:before, .dengue-page *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
