/* Task-driven fingertip design: project page. Studio page with glass controls; analysis figures sit on white cards
   in both themes. Visual language follows the HandCDO project page (aminmirzaee.com/HandCDO).
   Theme: every colour is a custom property below. <head> sets html[data-theme] to "light" or "dark" before first
   paint (stored choice, else light); without JS the media query picks the theme. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161618;
  --bg2: #1d1d20;
  --ink: #ededef;
  --ink2: rgba(237, 237, 239, .76);
  --ink3: rgba(237, 237, 239, .56);
  --line: rgba(255, 255, 255, .11);
  --accent: #ff7d4d;
  --accent-soft: rgba(255, 125, 77, .16);
  --pad: #e8b77c;
  --hero-glow: rgba(232, 183, 124, .20);
  --link-line: rgba(255, 255, 255, .35);
  --code-bg: rgba(255, 255, 255, .08);
  --card: #ffffff;
  --card-ink: #1a1a1a;
  --card-cap: #555555;
  --card-edge: transparent;
  --video-bg: #000000;
  --thumb-bg: #e9e9e9;
  --glass-1: rgba(255, 255, 255, .09);
  --glass-2: rgba(255, 255, 255, .035);
  --glass-hover-1: rgba(255, 255, 255, .16);
  --glass-hover-2: rgba(255, 255, 255, .06);
  --glass-inset: rgba(255, 255, 255, .14);
  --glass-shadow: rgba(0, 0, 0, .25);
  --rim-1: rgba(255, 255, 255, .7);
  --rim-2: rgba(255, 255, 255, .18);
  --rim-3: rgba(255, 255, 255, .04);
  --rim-4: rgba(255, 255, 255, .1);
  --rim-5: rgba(255, 255, 255, .38);
  --nav-bg: rgba(24, 24, 27, .74);
  --on-bg: rgba(255, 255, 255, .92);
  --on-ink: #141416;
  --chip-bg: rgba(255, 255, 255, .05);
  --chip-hover: rgba(255, 255, 255, .3);
  --f-freq: #fdae61;
  --f-sens: #f4a3a3;
  /* charts (inline SVG in app.js) */
  --ch-bg: #1d1d20;
  --ch-ink: #ededef;
  --ch-mute: rgba(237, 237, 239, .62);
  --ch-grid: rgba(255, 255, 255, .08);
  --ch-axis: rgba(255, 255, 255, .42);
  --ch-dot: rgba(237, 237, 239, .45);
  --ch-dot-out: rgba(237, 237, 239, .14);
  --ch-best: #ff7d4d;
  --ch-good: #2fc46a;
  --ch-nb: #ededef;
  --ch-ft: #ff7d4d;
  --ch-zs: #a3a3aa;
  --ch-range: rgba(255, 255, 255, .2);
  --ch-sel: rgba(255, 125, 77, .15);
  --r: 8px;                               /* 2026-11-25 user: all figures/clips use the loft-walk rounding (was 22px) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --w: 1180px;
}
/* light tokens: explicit choice, or no data-theme (no JS) with a light system preference */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4f1;
  --bg2: #ffffff;
  --ink: #1b1b1d;
  --ink2: #45454a;
  --ink3: #67676d;
  --line: rgba(0, 0, 0, .1);
  --accent: #b8451a;
  --accent-soft: rgba(226, 98, 46, .13);
  --pad: #8f5a22;
  --hero-glow: rgba(232, 183, 124, .32);
  --link-line: rgba(0, 0, 0, .3);
  --code-bg: rgba(0, 0, 0, .06);
  --card: #ffffff;
  --card-ink: #1a1a1a;
  --card-cap: #555555;
  --card-edge: rgba(0, 0, 0, .09);
  --video-bg: #000000;
  --thumb-bg: #e9e9e9;
  --glass-1: rgba(255, 255, 255, .9);
  --glass-2: rgba(255, 255, 255, .66);
  --glass-hover-1: rgba(255, 255, 255, 1);
  --glass-hover-2: rgba(240, 240, 238, .9);
  --glass-inset: rgba(255, 255, 255, .9);
  --glass-shadow: rgba(0, 0, 0, .08);
  --rim-1: rgba(0, 0, 0, .16);
  --rim-2: rgba(0, 0, 0, .08);
  --rim-3: rgba(0, 0, 0, .06);
  --rim-4: rgba(0, 0, 0, .08);
  --rim-5: rgba(0, 0, 0, .14);
  --nav-bg: rgba(255, 255, 255, .8);
  --on-bg: #1b1b1d;
  --on-ink: #ffffff;
  --chip-bg: rgba(0, 0, 0, .03);
  --chip-hover: rgba(0, 0, 0, .3);
  --f-freq: #a85a00;
  --f-sens: #b0353f;
  --ch-bg: #ffffff;
  --ch-ink: #1a1a1a;
  --ch-mute: #6b6b70;
  --ch-grid: #ececec;
  --ch-axis: #8a8a8a;
  --ch-dot: #b3b3b3;
  --ch-dot-out: #e3e3e3;
  --ch-best: #e2622e;
  --ch-good: #1f9d55;
  --ch-nb: #1b1b1d;
  --ch-ft: #e2622e;
  --ch-zs: #8f8f8f;
  --ch-range: #d6d6d6;
  --ch-sel: #fff3ec;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f5f4f1; --bg2: #ffffff; --ink: #1b1b1d; --ink2: #45454a; --ink3: #67676d; --line: rgba(0, 0, 0, .1);
    --accent: #b8451a; --accent-soft: rgba(226, 98, 46, .13); --pad: #8f5a22; --hero-glow: rgba(232, 183, 124, .32);
    --link-line: rgba(0, 0, 0, .3); --code-bg: rgba(0, 0, 0, .06); --card-edge: rgba(0, 0, 0, .09);
    --glass-1: rgba(255, 255, 255, .9); --glass-2: rgba(255, 255, 255, .66); --glass-hover-1: #fff; --glass-hover-2: rgba(240, 240, 238, .9);
    --glass-inset: rgba(255, 255, 255, .9); --glass-shadow: rgba(0, 0, 0, .08);
    --rim-1: rgba(0, 0, 0, .16); --rim-2: rgba(0, 0, 0, .08); --rim-3: rgba(0, 0, 0, .06); --rim-4: rgba(0, 0, 0, .08); --rim-5: rgba(0, 0, 0, .14);
    --nav-bg: rgba(255, 255, 255, .8); --on-bg: #1b1b1d; --on-ink: #fff; --chip-bg: rgba(0, 0, 0, .03); --chip-hover: rgba(0, 0, 0, .3);
    --f-freq: #a85a00; --f-sens: #b0353f;
    --ch-bg: #fff; --ch-ink: #1a1a1a; --ch-mute: #6b6b70; --ch-grid: #ececec; --ch-axis: #8a8a8a; --ch-dot: #b3b3b3; --ch-dot-out: #e3e3e3;
    --ch-best: #e2622e; --ch-good: #1f9d55; --ch-nb: #1b1b1d; --ch-ft: #e2622e; --ch-zs: #8f8f8f; --ch-range: #d6d6d6; --ch-sel: #fff3ec;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration-color: var(--link-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
code { font: .88em var(--mono); background: var(--code-bg); padding: .08em .35em; border-radius: 5px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--w), calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 50; padding: 10px 14px; background: var(--bg2); color: var(--ink); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------ glass */
.glass {
  position: relative; isolation: isolate; border-radius: 999px;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-inset), 0 6px 22px var(--glass-shadow);
}
.glass.panel { border-radius: 20px; }
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--rim-1), var(--rim-2) 24%, var(--rim-3) 52%, var(--rim-4) 76%, var(--rim-5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 0; color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { background: linear-gradient(180deg, var(--glass-hover-1), var(--glass-hover-2)); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 15px; min-height: 38px; border-radius: 999px; color: var(--ink2);
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s, background .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--on-ink); background: var(--on-bg); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ------------------------------------------------------------ top nav */
.topnav { position: fixed; z-index: 30; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  font-size: 13.5px; font-weight: 600; max-width: calc(100% - 24px); background: var(--nav-bg); }
.nav-links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.topnav a { padding: 6px 12px; border-radius: 999px; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.topnav a i { font-style: normal; font-size: 11px; opacity: .7; margin-right: 5px; font-variant-numeric: tabular-nums; }
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--on-ink); background: var(--on-bg); }
.topnav .brand { color: var(--ink); letter-spacing: .02em; }
.topnav .brand::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.theme-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--chip-bg); color: var(--ink2); transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--ink); border-color: var(--chip-hover); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the icon shows the theme you switch TO */
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: 96px 20px 34px; background:
  radial-gradient(60% 70% at 50% 0%, var(--hero-glow), transparent 70%), var(--bg); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.title { margin: 0 auto 22px; max-width: 1060px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin: 0; font-size: 18px; }
.authors a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--link-line); }
.authors a:hover { border-color: var(--accent); }
.affil { margin: 8px 0 0; color: var(--ink3); font-size: 15px; }
.hero-lede { margin: 0 auto 24px; max-width: 820px; }
.roadmap { list-style: none; margin: 0 auto 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; }
.roadmap a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--chip-bg); color: var(--ink2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s; }
.roadmap a:hover { color: var(--ink); border-color: var(--chip-hover); }
.roadmap b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stats { display: flex; gap: 30px; margin: 0; }
.stats dt { font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ------------------------------------------------------------ type */
section.wrap { padding: 72px 0 8px; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-title { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.section-sub { margin: 0 0 26px; font-size: 18px; color: var(--ink2); }
.section-sub em { font-style: normal; color: var(--ink); font-weight: 600; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.lede em { font-style: normal; color: var(--pad); }
.fine { font-size: 13.5px; color: var(--ink3); margin: 16px 0 0; }
.fine.cap { margin: 8px 0 18px; }
.sub { margin: 46px 0 6px; font-size: 22px; letter-spacing: -.01em; }
.sub-text { margin: 0 0 18px; color: var(--ink2); font-size: 16px; }

/* ------------------------------------------------------------ cards */
.card { border-radius: var(--r); overflow: hidden; }
.card.light { background: var(--card); color: var(--card-ink); box-shadow: 0 0 0 1px var(--card-edge); }
.card.light figcaption { padding: 10px 18px 14px; font-size: 14px; color: var(--card-cap); }
.card.light img { width: 100%; }
figure.card + figure.card, .fine.cap + figure.card { margin-top: 16px; }

/* ------------------------------------------------------------ tasks */
.task-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.task { border-radius: 8px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.task .vid { position: relative; aspect-ratio: 16 / 9; background: var(--thumb-bg); }
.task video { width: 100%; height: 100%; object-fit: cover; }
.task .body { order: -1; padding: 6px 10px; }   /* 2026-11-25 user: name above the clip, tight */
.task h3 { margin: 0; font-size: 15px; }
.task p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.task .tag { margin-top: 8px; font-size: 12px; color: var(--ink3); }

/* ------------------------------------------------------------ contact (steps 3 and 6) */
.ds-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.ctime .ds-top { gap: 10px; margin-bottom: 14px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ct-video, .mv-video { background: transparent; display: block; line-height: 0; }
.ct-video video, .mv-video video { width: 100%; height: auto; }
.ct-map { display: flex; align-items: center; justify-content: center; padding: 10px; }
.ct-map img { width: 100%; max-height: 520px; object-fit: contain; }

/* ------------------------------------------------------------ generative-model clips (inside <details>) */
.ds-panel { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 16px; }
.morph video { width: 100%; aspect-ratio: 1480 / 842; background: #fff; }
/* 2026-11-25 user: sensitivity and weight maps side by side */
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fig-pair figure { margin: 0; }
@media (max-width: 900px) { .fig-pair { grid-template-columns: 1fr; } }
.ds-cap { margin: 0; color: var(--ink2); font-size: 16px; }
.ds-cap b { color: var(--ink); }

/* ------------------------------------------------------------ charts + details */
.card.chart { padding: 14px 16px 10px; background: var(--ch-bg); color: var(--ch-ink); border: 1px solid var(--line); }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.chart .c-ink { fill: var(--ch-ink); }
.chart .c-mute { fill: var(--ch-mute); }
.chart .c-grid { stroke: var(--ch-grid); }
.chart .c-axis { stroke: var(--ch-axis); }
.chart .c-dot { fill: var(--ch-dot); }
.chart .c-dot-out { fill: var(--ch-dot-out); }
.chart .c-best { stroke: var(--ch-best); }
.chart .c-good { fill: var(--ch-good); }
.chart .c-nb { fill: var(--ch-nb); stroke: var(--ch-bg); }
.chart .c-ft { fill: var(--ch-ft); }
.chart .c-ft-dot { stroke: var(--ch-bg); }
.chart .c-zs { fill: none; stroke: var(--ch-zs); }
.chart .c-zs-dot { fill: var(--ch-bg); }
.chart .c-range { stroke: var(--ch-range); }
.chart .c-sel { fill: var(--ch-sel); }
.more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; color: var(--ink2); font-weight: 600; font-size: 15px; }
.more[open] summary { margin-bottom: 14px; }
.more summary:hover { color: var(--accent); }
.plain { margin: 0 0 16px; padding-left: 20px; color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 860px; }
.plain li + li { margin-top: 4px; }

/* ------------------------------------------------------------ step 4 */
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 16px 22px; margin: 22px 0;
  font-size: 18px; font-weight: 600; color: var(--ink2); }
.formula span { color: var(--ink); }
.formula .f-freq { color: var(--f-freq); } .formula .f-sens { color: var(--f-sens); }

/* ------------------------------------------------------------ step 5 */
.sel-pad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 0 22px; }
.sel-pad figure { padding: 18px; }
.sel-txt h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.015em; }
.sel-txt .stats { margin: 0 0 14px; }
.sel-txt p:last-child { margin: 0; color: var(--ink2); font-size: 15.5px; }
.mv-video { border-radius: var(--r); overflow: hidden; }

/* ------------------------------------------------------------ findings */
.bigstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 22px; }
.bigstats div { padding: 16px 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.bigstats dt { font-size: 12.5px; color: var(--ink3); line-height: 1.35; }
.bigstats dd { margin: 4px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.find-list { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 12px; max-width: 900px; }
.find-list li { position: relative; padding: 16px 20px 16px 58px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink2); }
.find-list li::before { counter-increment: f; content: counter(f); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13.5px; }
.find-list b { color: var(--ink); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 60px 0 40px; color: var(--ink3); font-size: 14px; border-top: 1px solid var(--line); margin-top: 70px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-grid { grid-template-columns: 1fr; }
  .bigstats { grid-template-columns: repeat(3, 1fr); }
  .ds-panel { grid-template-columns: 1fr; }
  .sel-pad { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .br-wide { display: none; }
  .task-grid { grid-template-columns: 1fr; }
  .bigstats { grid-template-columns: repeat(2, 1fr); }
  .section-sub { font-size: 16.5px; }
  .stats { gap: 18px; flex-wrap: wrap; }
  .stats dd { font-size: 22px; }
  .roadmap a { font-size: 13px; }
  .bigstats dd { font-size: 24px; }
  /* wide bar charts: keep labels legible, scroll inside the card instead of shrinking */
  #s2-chart, #merged-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #s2-chart svg, #merged-chart svg { min-width: 680px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 2026-11-25 user: layout pass 3 -------------------------------------------------- */
:root { --rv: 8px; }                                   /* video boxes: less rounding */
.ct-video, .mv-video, .morph, .task { border-radius: var(--rv) !important; }
.objs { margin-top: 16px; }
.s1-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; align-items: start; margin-bottom: 16px; }
.s1-top figure.card, .s1-top figure.card + figure.card { margin: 0; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.op-grid figure.card, .op-grid figure.card + figure.card { margin: 0; }

.op-right .sel-pad { margin: 0 0 14px; gap: 18px; }
.op-right .sel-txt h3 { font-size: 22px; }
@media (max-width: 980px) { .s1-top, .op-grid { grid-template-columns: 1fr; } }

/* 2026-11-25 user: pass 4 ------------------------------------------------------------- */
.leg { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; white-space: nowrap; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }
.sw.fin { background: #7ccf8f; } .sw.thb { background: #d4786c; }
.eq { align-items: start; }
.tbl-card { padding: 10px 10px 8px; }
.tbl-wrap { overflow: visible; }
table.loss { border-collapse: separate; border-spacing: 0; width: 100%; font-family: "Times New Roman", "Liberation Serif", Times, serif;
  font-size: 12px; color: #222; }
table.loss th { font-weight: 400; padding: 2px 3px 5px; text-align: center; vertical-align: bottom; line-height: 1.1; font-size: 11.5px; }
table.loss td { text-align: center; padding: 0 2px; height: 27px; }
table.loss td.sep { border-left: 4px solid var(--card); }
table.loss th.rh, table.loss td.rh { text-align: left; white-space: nowrap; padding-right: 8px; background: none; }
table.loss tr.sel td.rh { font-weight: 700; }
.pad-th { position: relative; display: inline-block; vertical-align: middle; margin-right: 6px; }
.pad-th img.s { height: 25px; width: auto; max-width: none; display: block; }
.pad-th img.l { display: none; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: 300px;
  max-width: none; background: #fff; border-radius: 8px; box-shadow: 0 6px 28px rgba(0,0,0,.25); padding: 8px; z-index: 30; }
.pad-th:hover img.l, .pad-th:focus img.l { display: block; }
.tcap { margin: 8px 6px 0; font-size: 13px; color: var(--card-cap); line-height: 1.5; }
.op-grid { align-items: start !important; }
.eq .ct-map { padding: 0; }
.eq .ct-map img { max-height: none; }
.eq > * { margin: 0 !important; }
.eq .morph video { aspect-ratio: auto; }
.fine.tcap { margin: 10px 0 0; color: var(--ink3); }
#pad-pop { display: none; position: fixed; z-index: 60; pointer-events: none; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.28); padding: 10px; max-width: none; }
.pad-th { cursor: zoom-in; }
.objs { padding: 0; }                                    /* margins are in the PNG itself (2026-11-26) */

/* 2026-11-26 user: loss table styled after RSS figs/merge_table.png; fits its column (no horizontal scroll) */
table.loss { table-layout: fixed; border-spacing: 2px; font-size: 12.5px; }
table.loss col.c-rh { width: 31%; }
table.loss tr.grp th { font-weight: 700; font-size: 13px; padding: 0 2px 6px; vertical-align: bottom; }
table.loss tr.grp th span { display: block; padding-bottom: 3px; border-bottom: 2px solid #555; white-space: nowrap; }
table.loss tr.grp th.rh span { text-align: center; }
table.loss tr.cols th { font-size: 12px; padding: 2px 0 4px; }
table.loss { --rowh: 30px; }
table.loss td { height: var(--rowh); padding: 0; font-variant-numeric: tabular-nums; }
table.loss td.sep, table.loss th.sep { border-left: 0; padding-left: 0; }
table.loss col.c-gap { width: 6px; }
table.loss td.gap, table.loss th.gap { padding: 0; background: none !important; }   /* spacer between (B) and (C); was a box-shadow that covered the Cap column */
table.loss col.c-a:first-of-type { }
table.loss td.rh { text-align: right; white-space: nowrap; padding: 0 2px 0 0; }
table.loss td.rh .nm { vertical-align: middle; font-size: 13px; }
table.loss td.rh .pad-th { margin: 0 0 0 6px; }
table.loss .pad-th img.s { height: 26px; }
@media (max-width: 700px) { .tbl-wrap { overflow-x: auto; } table.loss { min-width: 560px; } }
.op-grid > figure { display: flex; flex-direction: column; justify-content: center; }   /* media centred when its card is stretched to the table */
/* 2026-11-26 user: numbers overflowed narrow cells (e.g. Cap) -- narrower name column, slightly smaller numbers */
table.loss col.c-rh { width: 27%; }
table.loss td { font-size: 11.5px; letter-spacing: -0.01em; }
table.loss td.rh .nm { font-size: 12px; }
table.loss .pad-th img.s { height: 22px; }
table.loss td.rh .pad-th { margin-left: 4px; }
table.loss td:not(.rh):not(.gap) { text-align: center; }

/* 2026-11-26 user: step 5 (tactile sensing design) placeholder */
.card.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px;
  padding: 28px 20px; text-align: center; border: 1.5px dashed var(--ink3); background: transparent; box-shadow: none; }
.card.soon p { margin: 0; color: var(--ink2); }
.soon-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; }
