/* Interactive figures. One light theme: white and soft grey surfaces, dark ink, a single blue accent. */
:root {
  --s-bg: #f6f7f9; --s-panel: #ffffff; --s-line: #e1e5ea; --s-ink: #1d232c; --s-mute: #5f6b7a;
  --s-acc: #2f5fb3; --s-acc-soft: #eaf0fa; --s-base: #8a94a3; --s-film: #2b2f36;
}
.stage {
  position: relative; background: var(--s-bg); color: var(--s-ink); border: 1px solid var(--s-line); border-radius: 12px;
  padding: clamp(16px, 2.6vw, 30px); font-family: inherit; overflow: hidden;
}
.stage + .stage, .stage-gap { margin-top: 22px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.stage h2.stage-title, .stage h3.stage-title { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; line-height: 1.25; margin: 0; color: var(--s-ink); text-align: left; }
.stage-title .n { color: var(--s-acc); margin-right: 8px; }
.stage-sub { color: var(--s-mute); font-size: 15px; margin: 4px 0 0; }
.stage .note { color: var(--s-mute); font-size: 14px; margin-top: 12px; }

/* controls */
.ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.sbtn {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--s-ink); background: var(--s-panel); border: 1px solid #cfd5dd;
  border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.sbtn:hover { border-color: var(--s-acc); }
.sbtn[aria-pressed="true"], .sbtn.on { background: var(--s-acc); border-color: var(--s-acc); color: #fff; }
.sbtn:disabled { opacity: .4; cursor: default; }
.sbtn svg { width: 14px; height: 14px; }
.sbtn:focus-visible, .stage input:focus-visible, .ed-poster:focus-visible, .tab:focus-visible, .card:focus-visible { outline: 3px solid var(--s-acc); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--s-panel); border-radius: 999px; padding: 3px; border: 1px solid #cfd5dd; }
.seg .sbtn { border: 0; background: none; min-height: 34px; }
.seg .sbtn[aria-pressed="true"] { background: var(--s-acc); color: #fff; }
.stage input[type=range] { accent-color: var(--s-acc); width: 100%; height: 30px; margin: 0; }
.rng { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; font-size: 14px; color: var(--s-mute); }
.rng b { color: var(--s-ink); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
#m-run { white-space: nowrap; }

/* 1. hero: layers <-> frames */
.h-stage { position: relative; height: clamp(300px, 36vw, 430px); }
.h-card { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; }
.h-card svg { display: block; width: 100%; height: 100%; border-radius: 3px; outline: 2px solid var(--c); outline-offset: -1px; box-shadow: 0 6px 18px rgba(29,35,44,.14); }
.h-lab { position: absolute; left: 0; top: 0; font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; color: var(--s-ink); }
.h-film { position: absolute; left: -40px; right: -40px; background: var(--s-film); opacity: 0; }
.h-film::before, .h-film::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 8px, #e9ecf0 8px 18px, transparent 18px 26px); }
.h-film::before { top: 4px; } .h-film::after { bottom: 4px; }
.h-axis { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--s-mute); pointer-events: none; }
.h-axis i { flex: 1; height: 1px; background: #b8c0cb; position: relative; }
.h-axis i.arr::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid #b8c0cb; border-right: 0; }
.h-cap { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 15px; color: var(--s-mute); }
.h-cap b { color: var(--s-ink); }

/* 2. editor */
.ed { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.ed-poster { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; box-shadow: 0 10px 30px rgba(29,35,44,.16); touch-action: none; user-select: none; cursor: grab; }
.ed-poster.drag { cursor: grabbing; }
.ed-poster svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-poster .l4, .ed-stack .l4 { transition: opacity .45s; }
.ed.no4 .l4 { opacity: 0; }
.ed.flat .ed-poster { cursor: not-allowed; outline: 2px dashed #b8c0cb; outline-offset: 6px; }
.ed-poster.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ed-msg { margin: 18px 0 0; font-size: 15px; color: var(--s-mute); min-height: 1.5em; text-align: center; }
.ed.flat .ed-msg { color: var(--s-ink); font-weight: 600; }
.ed-acts { display: grid; gap: 10px; }
.ed-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 10px; padding: 12px 14px; transition: opacity .3s; }
.ed-act h4 { margin: 0; font-size: 16px; color: var(--s-ink); }
.ed-act p { margin: 0; font-size: 14px; color: var(--s-mute); grid-column: 1; }
.ed-act .act { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ed-act .sbtn { min-height: 36px; }
.ed.flat .ed-act { opacity: .4; pointer-events: none; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfd5dd; cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--s-acc); }
.ed-stack { position: relative; height: 200px; margin-top: 8px; }
.ms { position: absolute; left: 50%; top: 50%; width: 150px; height: 94px; margin: -47px 0 0 -75px; transition: transform .6s cubic-bezier(.5,0,.2,1), opacity .3s; }
.ms svg { width: 100%; height: 100%; display: block; outline: 1.5px solid var(--c); outline-offset: -1px; border-radius: 2px; }
.ms-cap { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--s-mute); }
.ms.comp { opacity: 0; }
.ed.flat .ms.comp { opacity: 1; transition-delay: 0s, .35s; }
.ed.flat .ms:not(.comp) { opacity: 0; transition: transform .6s, opacity .2s .4s; }

/* 3. probe */
.pill { display: inline-block; background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--s-mute); margin-bottom: 18px; }
.pill span { color: var(--s-ink); font-style: italic; }
.pr { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.6fr); gap: clamp(12px, 2vw, 26px); align-items: center; }
.pr-in img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pr-lab { font-size: 13.5px; color: var(--s-mute); margin-bottom: 6px; text-align: center; }
.pr-model { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 10px; padding: 12px 14px; text-align: center; font-weight: 600; font-size: 14px; }
.pr-model small { display: block; color: var(--s-mute); font-weight: 400; margin-top: 4px; }
.pr-model::after { content: "→"; display: block; color: var(--s-mute); font-size: 22px; }
.pr-big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pr-view { position: relative; aspect-ratio: 230 / 322; margin: 0; }
.pr-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; opacity: 0; transition: opacity .35s; }
.pr-view img.on { opacity: 1; }
.pr-txt .fr { font-size: 14px; color: var(--s-mute); }
.pr-txt h4 { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 6px; color: var(--s-acc); line-height: 1.1; }
.pr-txt p { margin: 0; font-size: 16px; }
.pr-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pr-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; position: relative; }
.pr-thumbs button[aria-pressed="true"] { border-color: var(--s-acc); }
.pr-thumbs img { display: block; width: 100%; height: 70px; object-fit: cover; border-radius: 4px; }
.pr-thumbs span { position: absolute; left: 4px; bottom: 4px; font-size: 12px; background: rgba(255,255,255,.92); padding: 1px 6px; border-radius: 4px; color: var(--s-ink); }
.banner { margin-top: 22px; border-top: 1px solid var(--s-line); padding-top: 18px; text-align: center; font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.4; }
.banner mark { background: none; color: var(--s-acc); font-weight: 700; padding: 0; }
.banner small { display: block; font-size: 14.5px; font-weight: 400; color: var(--s-mute); margin-top: 4px; }

/* 4. method */
.m-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.m-steps .sbtn { min-height: 34px; min-width: 34px; padding: 0 12px; font-size: 13px; justify-content: center; }
.m-wrap { overflow-x: auto; }
.m-svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: "Noto Sans", system-ui, sans-serif; }
.m-svg .g { transition: opacity .55s; }
.m-svg .fr { opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .5s; }
.m-svg.s1up .fr { opacity: 1; transform: none; }
.m-svg text { fill: var(--s-ink); }
.m-svg .mu { fill: var(--s-mute); }
.m-svg .ac { fill: var(--s-acc); }
.m-svg .fan { stroke: #a7b0bd; stroke-width: 1; fill: none; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .9s; }
.m-svg.s2up .fan { stroke-dashoffset: 0; }
.m-svg .bus-flow { stroke: #9db5df; stroke-width: 3; stroke-dasharray: 3 22; fill: none; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -25; } }
.m-cap { margin-top: 14px; min-height: 52px; }
.m-cap p { margin: 0; font-size: 16px; }
.m-ctl { display: none; }
.m-ctl.on { display: flex; }

/* 4b. triangulation matting */
.tm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.tm figure { margin: 0; position: relative; }
.tm canvas { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--s-line); }
.tm figcaption { color: var(--s-mute); font-size: 14px; margin-top: 6px; text-align: center; }
.tm figcaption b { color: var(--s-ink); }
.tm .op { position: absolute; right: -13px; top: 40%; color: var(--s-mute); font-size: 18px; font-weight: 700; }
.tm-eq { text-align: center; font-family: "Noto Serif", Georgia, serif; font-size: 17px; margin-top: 14px; }
.stage input[type=color] { width: 44px; height: 32px; border: 1px solid #cfd5dd; border-radius: 6px; padding: 2px; background: #fff; }

/* 5. prior vs ours */
.pv { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: center; gap: 10px; }
.pv-img { width: 130px; }
.pv-img svg { display: block; width: 100%; border-radius: 3px; box-shadow: 0 4px 12px rgba(29,35,44,.12); }
.pv-arrow { color: var(--s-mute); font-size: 22px; }
.pv-box { perspective: 600px; width: 132px; height: 74px; }
.pv-box .flip { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.5,0,.2,1); transform-style: preserve-3d; }
.pv-box .face { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 6px; transition: opacity 0s linear .33s; }
.pv-box .face small { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; color: var(--s-mute); }
.pv-box .a { background: var(--s-panel); border: 1.5px solid #b8c0cb; color: var(--s-ink); }
.pv-box .b { background: var(--s-acc-soft); border: 1.5px solid var(--s-acc); color: var(--s-acc); transform: rotateY(180deg); opacity: 0; }
.ours .pv-box .flip { transform: rotateY(180deg); }
.ours .pv-box .a { opacity: 0; }
.ours .pv-box .b { opacity: 1; }
.pv-out { width: 170px; height: 100px; position: relative; }
.pv-out > div { position: absolute; inset: 0; transition: opacity .5s; }
.pv-out .o-b, .ours .pv-out .o-a { opacity: 0; }
.ours .pv-out .o-b { opacity: 1; }
.pv-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pv-tag { text-align: center; }
.pv-tag b { display: inline-block; font-size: 13.5px; padding: 4px 10px; border-radius: 4px; color: var(--s-ink); background: #e6e9ee; transition: background .4s, color .4s; }
.pv-tag p { margin: 6px 0 0; font-size: 14px; color: var(--s-mute); }
.pv-tag .t-b, .ours .pv-tag .t-a { display: none; }
.ours .pv-tag .t-b { display: inline; }
.ours .pv-tag b { background: var(--s-acc); color: #fff; }
.pv-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 16px; margin-top: 18px; border-top: 1px solid var(--s-line); padding-top: 16px; }
.pv-foot .big { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--s-base); font-variant-numeric: tabular-nums; transition: color .4s; }
.ours .pv-foot .big { color: var(--s-acc); }
.pv-foot span { color: var(--s-mute); }
.rep { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.rep th { text-align: left; font-size: 13.5px; color: var(--s-mute); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #b8c0cb; }
.rep td { padding: 9px 10px; border-bottom: 1px solid var(--s-line); transition: color .4s; }
.rep td:first-child { font-weight: 600; }
.ours .rep td.o { color: var(--s-acc); font-weight: 600; }
.prior .rep td.p { color: var(--s-ink); font-weight: 600; }
.prior .rep td.o, .ours .rep td.p { color: #a3acb8; }

/* 6. stat cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 12px; padding: 16px 18px; color: var(--s-ink); cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; font: inherit; }
.card:hover { border-color: var(--s-acc); transform: translateY(-2px); }
.card .k { font-size: 13.5px; font-weight: 600; color: var(--s-mute); }
.card .v { font-size: clamp(34px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; color: var(--s-acc); }
.card .d { font-size: 14.5px; line-height: 1.4; }
.card .vs { font-size: 13.5px; color: var(--s-mute); border-top: 1px solid var(--s-line); margin-top: 10px; padding-top: 8px; }
.card.static { cursor: default; }
.card.static:hover { transform: none; border-color: var(--s-line); }
.tbl td.flash { animation: flash 1.6s; }
@keyframes flash { 0%, 60% { background: #cfe0fb; } 100% { background: transparent; } }

/* 7. comparison viewers */
.cv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: 14px; align-items: start; }
.cv-in img { display: block; width: 100%; border-radius: 4px; }
.cv-hd { display: grid; gap: 4px; margin-bottom: 6px; font-size: 13.5px; color: var(--s-mute); text-align: center; }
.cv-hd span { background: #e9ecf0; border-radius: 4px; padding: 2px 0; }
.cv-view { position: relative; background: #fff; border-radius: 6px; padding: 4px; outline: 2px solid var(--rc, #1d232c); transition: outline-color .3s; }
.cv-view img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .35s; }
.cv-view img:first-child { position: relative; }
.cv-view img + img { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); }
.cv-view img.on { opacity: 1; }
.cv-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.tab { background: var(--s-panel); border: 1.5px solid var(--s-line); border-radius: 10px; color: var(--s-ink); text-align: left; padding: 10px 12px; cursor: pointer; font: inherit; }
.tab .nm { font-size: 14px; font-weight: 600; }
.tab .sc { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--rc); line-height: 1.25; }
.tab .bar { height: 5px; background: #e6e9ee; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.tab .bar i { display: block; height: 100%; background: var(--rc); border-radius: 3px; }
.tab[aria-pressed="true"] { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc); }

/* 8. race and data scale */
.race { display: grid; grid-template-columns: max-content minmax(0, 1fr) 7.5em; gap: 12px 14px; align-items: center; }
.race .nm { font-weight: 600; font-size: 14.5px; }
.race .tr { height: 24px; background: #e9ecf0; border-radius: 5px; overflow: hidden; position: relative; }
.race .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: var(--rc); }
.race .tr i.run { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); background-size: 22px 22px; animation: stripes .6s linear infinite; }
@keyframes stripes { to { background-position: 22px 0; } }
.race .t { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.race .t em { font-style: normal; color: var(--s-acc); font-size: 13px; margin-left: 6px; }
.dv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.dv-sq { position: relative; width: 230px; height: 230px; }
.dv-sq div { position: absolute; left: 0; bottom: 0; border-radius: 2px; }
.dv-sq .a { width: 100%; height: 100%; border: 1.5px solid #b8c0cb; background: repeating-linear-gradient(45deg, #eef0f3 0 6px, #f6f7f9 6px 12px); }
.dv-sq .b { border: 1.5px dashed #9aa3af; }
.dv-sq .c { background: var(--s-acc); box-shadow: 0 0 0 4px rgba(47,95,179,.2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(47,95,179,.08); } }
.dv-sq span { position: absolute; font-size: 13px; color: var(--s-mute); white-space: nowrap; }
.dv-sq .lc { color: var(--s-acc); font-weight: 700; }
.dv-k { font-size: clamp(40px, 5.5vw, 58px); font-weight: 700; color: var(--s-acc); line-height: 1; }
.dv .lead2 { font-size: 17px; margin: 8px 0 0; }
.dv p { margin: 8px 0 0; color: var(--s-mute); }

@media (max-width: 800px) {
  .ed { grid-template-columns: minmax(0, 1fr); }
  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr-in { display: none; }
  .pr-model::after { content: "↓"; }
  .pv { grid-template-columns: auto auto auto; row-gap: 14px; }
  .pv .pv-arrow:nth-of-type(3) { display: none; }
  .pv-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .cv-in { max-width: 200px; }
  .tm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm .op { display: none; }
  .dv { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 520px) {
  .race { grid-template-columns: minmax(0, 1fr) 6.5em; }
  .race .nm { grid-column: 1 / -1; margin-bottom: -6px; }
  .dv-sq { width: 190px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms, .pv-box .flip, .m-svg .g, .m-svg .fr, .m-svg .fan, .cv-view img, .pr-view img { transition: none; }
  .bus-flow, .dv-sq .c, .race .tr i.run { animation: none; }
}

/* page structure */
.topnav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 22px; padding: 10px 16px; margin-top: 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--s-line); font-size: 15px; font-weight: 600; }
.topnav a { color: var(--s-ink); text-decoration: none; padding: 4px 0; }
.topnav a:hover { color: var(--s-acc); }
html { scroll-padding-top: 64px; }
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 8px; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--s-ink); background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14.5px; font-weight: 600; }
.subnav a:hover { border-color: var(--s-acc); }
.subnav span, .rh span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--s-acc); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.rsec { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--s-line); }
.rsec:first-of-type { border-top: 0; padding-top: 8px; }
h3.rh { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 21px; margin: 0 0 18px; }
.h4 { font-size: 17px; margin: 0 0 10px; }
.gap-sm { margin-top: 14px; }
.lead-c { text-align: center; max-width: 760px; margin: -6px auto 22px; color: var(--s-mute); font-size: 17px; }
.lead-c b { color: var(--s-ink); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kv { display: grid; gap: 10px; align-content: start; }
.kvi { background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 10px; padding: 12px 16px; }
.kvi b { display: block; font-size: 22px; color: var(--s-acc); font-variant-numeric: tabular-nums; }
.kvi span { font-size: 14.5px; color: var(--s-mute); }
.dpane { margin: 0; }
.dpane img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }

/* charts */
.chart2 { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(230px, 1fr); gap: 22px; align-items: center; }
.fig { position: relative; height: 340px; }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.fig text.tk, .fig text.ax { font-size: 13px; fill: var(--s-mute); }
.fig text.sl { font-size: 13.5px; font-weight: 700; }
.side { display: grid; gap: 14px; }
.side .rng { flex: none; }
.read { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 10px; padding: 14px 16px; }
.read .rk { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.read .rr { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14.5px; }
.read .rr i { width: 12px; height: 12px; border-radius: 3px; }
.read .rr b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.read .sx { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--s-line); font-size: 14.5px; color: var(--s-mute); }
.read .sx b { color: var(--s-acc); }
#de-btns .sbtn { min-width: 48px; justify-content: center; }
@media (max-width: 800px) {
  .chart2 { grid-template-columns: minmax(0, 1fr); }
  .fig { height: 290px; }
}

.kv { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tbl.wide { width: 100%; }
.tbl.compact th, .tbl.compact td { padding: 5px 7px; font-size: 14px; }
.cols.dom { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.side .rng span { white-space: nowrap; }
@media (max-width: 800px) { .cols.dom { grid-template-columns: minmax(0, 1fr); } }
.h4.gap-top { margin-top: 30px; }
.side .rng { gap: 14px; }
