/* Anvesha design system: one stylesheet for the dashboard, the brief pages and the unlock page.
   Base: Radix Colors (light scales: slate neutrals, blue accent, step 3 / step 11 pastel tones) and a
   Stripe-style dashboard layout: light canvas, white surfaces, hairline borders, clean sans type (Geist),
   serif (Newsreader) only for quotes in briefs. Light colours only. Icons: Phosphor (bold), assets/icons.svg. */

:root {
  color-scheme: light;
  /* Radix Colors v3, light: slate (neutrals) and blue (accent). https://www.radix-ui.com/colors */
  --slate-1: #fcfcfd; --slate-2: #f9f9fb; --slate-3: #f0f0f3; --slate-4: #e8e8ec; --slate-5: #e0e1e6; --slate-6: #d9d9e0;
  --slate-7: #cdced6; --slate-8: #b9bbc6; --slate-9: #8b8d98; --slate-11: #60646c; --slate-12: #1c2024;
  --blue-2: #f4faff; --blue-3: #e6f4fe; --blue-4: #d5efff; --blue-6: #acd8fc; --blue-7: #8ec8f6; --blue-9: #0090ff; --blue-11: #0d74ce; --blue-12: #113264;
  /* surfaces */
  --canvas: var(--slate-2);
  --bg: var(--canvas);
  --surface: #ffffff;
  --paper: var(--slate-2);
  --soft: var(--slate-3);
  --hover: #f7f9fc;
  /* text (AA on white and on the canvas) */
  --ink: var(--slate-12);
  --body: #2f3237;
  --muted: var(--slate-11);
  --faint: var(--slate-9);
  /* lines */
  --line: var(--slate-4);
  --line-strong: var(--slate-6);
  /* accent: soft blue */
  --accent: var(--blue-9);
  --accent-ink: var(--blue-11);
  --accent-soft: var(--blue-3);
  --accent-line: var(--blue-6);
  /* states (Radix grass, red, amber, blue: step 3 background, step 11 text) */
  --pos: #2a7e3b;  --pos-bg: #e9f6e9;
  --neg: #ce2c31;  --neg-bg: #feebec;
  --amber: #ab6400; --amber-bg: #fff7c2;
  --info: var(--blue-11); --info-bg: var(--blue-3);
  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* shape and depth */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 32, 36, .05);
  --shadow: 0 1px 2px rgba(28, 32, 36, .05), 0 8px 24px rgba(28, 32, 36, .06);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1320px;
  --gutter: 28px;
}

/* sector tones: Radix Colors light, step 3 background with step 11 text */
.t-blue   { --t-bg: #e6f4fe; --t-fg: #0d74ce; }
.t-violet { --t-bg: #f4f0fe; --t-fg: #6550b9; }
.t-teal   { --t-bg: #e0f8f3; --t-fg: #008573; }
.t-sky    { --t-bg: #e1f6fd; --t-fg: #00749e; }
.t-slate  { --t-bg: #f0f0f3; --t-fg: #60646c; }
.t-yellow { --t-bg: #fff7c2; --t-fg: #ab6400; }
.t-orange { --t-bg: #ffefd6; --t-fg: #cc4e00; }
.t-red    { --t-bg: #feebe7; --t-fg: #d13415; }
.t-green  { --t-bg: #e9f6e9; --t-fg: #2a7e3b; }
.t-pink   { --t-bg: #fee9f5; --t-fg: #c2298a; }
.t-stone  { --t-bg: #f1f0ef; --t-fg: #63635e; }
.t-lime   { --t-bg: #eef6d6; --t-fg: #5c7c2f; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 15px/1.55 var(--sans); font-feature-settings: "ss01", "cv11"; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* icons (Phosphor sprite) */
.ic { width: 16px; height: 16px; flex: none; fill: currentColor; vertical-align: -3px; }
.ic.s14 { width: 14px; height: 14px; }
.ic.s18 { width: 18px; height: 18px; }
.ic.s20 { width: 20px; height: 20px; }

/* sector monogram tile */
.mono { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--t-bg, var(--soft)); color: var(--t-fg, var(--muted)); }
.mono .ic { width: 17px; height: 17px; }
.mono.m-sm { width: 26px; height: 26px; border-radius: 7px; }
.mono.m-sm .ic { width: 14px; height: 14px; }
.mono.m-lg { width: 48px; height: 48px; border-radius: 12px; }
.mono.m-lg .ic { width: 24px; height: 24px; }
.who-cell { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.who-cell > div { min-width: 0; }

/* pills, chips, tags */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.pos { background: var(--pos-bg); color: var(--pos); }
.pill.neg { background: var(--neg-bg); color: var(--neg); }
.pill.trk { background: var(--amber-bg); color: var(--amber); }
.pill:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.yes { background: var(--pos-bg); color: var(--pos); }
.chip.no { background: var(--neg-bg); color: var(--neg); }
.chip.via { background: var(--accent-soft); color: var(--accent-ink); }
.sector-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--t-bg, var(--soft)); color: var(--t-fg, var(--muted)); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.sector-tag .ic { width: 12px; height: 12px; }
.tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.tag.res { background: var(--accent-soft); color: var(--accent-ink); }
.tag.due { background: var(--soft); color: var(--muted); }
.tag.meet { background: var(--pos-bg); color: var(--pos); }
.tag.fil { background: var(--info-bg); color: var(--info); }
.tag.new { background: var(--ink); color: #fff; }
.faint { color: var(--faint); }
.note { color: var(--muted); font-size: 13.5px; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #33312c; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn .muted { color: var(--muted); font-weight: 400; }
.act { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; text-decoration: none; cursor: pointer; transition: border-color .15s; }
.act:hover { border-color: var(--ink); }
.xref { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.xref:hover { text-decoration-color: var(--accent); }

/* app bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(249, 249, 251, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { display: block; width: 96px; height: auto; }
.brand-sep { width: 1px; height: 26px; background: var(--line-strong); }
.title { min-width: 0; }
.title h1 { margin: 0; color: var(--ink); font: 600 21px/1 var(--display); letter-spacing: -.02em; }
.title p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.asof { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.asof::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30a46c; box-shadow: 0 0 0 3px #e9f6e9; }

/* tabs */
.tabs-wrap { border-bottom: 1px solid var(--line); background: var(--canvas); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 13px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s; }
.tabs a .ic { color: var(--faint); transition: color .15s; }
.tabs a small { padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.6; }
.tabs a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs a.on { color: var(--ink); }
.tabs a.on .ic { color: var(--accent); }
.tabs a.on::after { transform: scaleX(1); }
.tabs a.on small { background: var(--accent-soft); color: var(--accent-ink); }
.tabs a:hover { color: var(--ink); }
.sm { display: none; }

/* section head + controls */
.tabp { animation: rise .45s var(--ease) both; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 4px; }
.head h2 { margin: 0; color: var(--ink); font: 600 28px/1.2 var(--display); letter-spacing: -.025em; }
.lede { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 760px; }
.lede b { color: var(--ink); font-weight: 500; }
.bar { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; }
.search { position: relative; flex: 0 1 400px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 14.5px; outline: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sort, .filters { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sort select, .filters select { height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2369655d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 220px; box-shadow: var(--shadow-sm); }
.sort select:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* table surface */
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
table.ov, table.gl, table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov th, .gl th, .list th { padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ov td, .gl td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.ov tbody tr:last-child td, .gl tbody tr:last-child td { border-bottom: 0; }
.ov tr.orow, .gl tr.grow { cursor: pointer; transition: background .12s; }
.ov tr.orow:hover td, .gl tr.grow:hover td { background: var(--hover); }
.ov .o-co { width: 17%; }
.ov .o-what { width: 24%; color: var(--body); }
.ov .o-ind { width: 12%; }
.ov .o-comp { width: 14%; }
.ov .o-fdr { width: 13%; }
.ov .o-con, .ov .o-meet { width: 8%; }
.ov .o-pill { display: none; }
.name { padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; letter-spacing: -.005em; }
.name:hover { color: var(--accent-ink); }
.sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.gl .g-rk { width: 52px; color: var(--faint); font: 500 13px/1.9 var(--mono); }
.gl .g-co { width: 22%; }
.gl .g-an { color: var(--muted); }
.gl .g-k { white-space: nowrap; font-size: 13px; }
.gl .g-k span { color: var(--muted); }

/* research reports list */
.list td { padding: 0 14px; vertical-align: top; }
.list tbody { border-bottom: 1px solid var(--line); transition: background .12s; }
.list tbody:last-of-type { border-bottom: 0; }
.list tr.main td { padding-top: 16px; padding-bottom: 6px; }
.list tr.docs td { padding-bottom: 16px; }
.list tbody:hover { background: var(--hover); }
.list tr.main { cursor: pointer; }
.c-name { width: 34%; }
.c-report, .c-latest, .c-next { white-space: nowrap; font-size: 14px; }
.c-latest b, .c-next b { color: var(--ink); font-weight: 600; }
.c-act { text-align: right; white-space: nowrap; }
.due { color: var(--muted); }
.docrow, .since { display: grid; grid-template-columns: 150px 1fr; column-gap: 12px; align-items: baseline; font-size: 13.5px; padding-left: 46px; }
.docrow .items, .since .items { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; min-width: 0; }
.since { margin-top: 8px; }
.docrow .lbl, .since .lbl { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.doc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--body); font-size: 13px; text-decoration: none; transition: border-color .15s, background .15s; }
a.doc:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.doc .ic { color: var(--accent-ink); width: 14px; height: 14px; }
.doc:hover span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.doc.na { color: var(--faint); cursor: help; background: none; border-style: dashed; }
.doc.na .ic { color: #cfc9bd; }
.na-note { display: none; flex-basis: 100%; color: var(--faint); font-size: 13px; }
.since a { text-decoration: none; color: var(--body); }
.since a time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.since a:hover span { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; box-shadow: var(--shadow-sm); }
.upcoming .lbl { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.upcoming button { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.upcoming button b { color: var(--ink); font-weight: 600; }
.upcoming button span { color: var(--muted); font-size: 12.5px; }
.upcoming button:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* briefs */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card, .gcard { min-width: 0; }
.card { position: relative; display: flex; flex-direction: column; padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card .k { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card h3 { margin: 0 0 8px; color: var(--ink); font: 600 19px/1.25 var(--display); letter-spacing: -.015em; }
.card .hook { margin: 0 0 16px; color: var(--body); font: 400 italic 16px/1.5 var(--serif); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.card .ft b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.card .ft b .ic { transition: transform .2s var(--ease); }
.card:hover .ft b .ic { transform: translateX(3px); }
.card.soon { cursor: default; background: var(--paper); box-shadow: none; }
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* calendar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; }
.stats div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.stats div b { display: block; color: var(--ink); font: 500 28px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.stats div span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.cover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.cover .lbl { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-right: 4px; }
.cover button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border: 1px solid transparent; border-radius: 999px; background: var(--t-bg, var(--soft)); color: var(--t-fg, var(--body)); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, transform .15s; }
.cover button:hover { border-color: currentColor; }
.cover button b { font-weight: 700; margin-left: 2px; }
.cal { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 24px; }
.panel { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.cal h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; color: var(--ink); font: 600 18px/1.3 var(--display); letter-spacing: -.015em; }
.cal h2 .ic { color: var(--accent); }
.cal h2 + p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.cal h3 { margin: 18px 0 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ev { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.ev:last-child { border-bottom: 0; }
.ev time { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev time b { color: var(--ink); font-weight: 600; }
.ev .who { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; cursor: pointer; text-align: left; }
.ev .who:hover { color: var(--accent-ink); }
.ev .what { color: var(--muted); }
.ev a.what { text-decoration: none; }
.ev a.what:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }

/* footer */
.foot { margin-top: 56px; padding-top: 22px; padding-bottom: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot p { margin: 0 0 4px; max-width: 900px; }

/* viewer */
html.open, html.open body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--surface); animation: fade .25s ease both; }
.v-bar { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.v-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color .15s; }
.v-back:hover { border-color: var(--ink); }
.v-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v-id b { color: var(--ink); font: 600 18px/1.2 var(--display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-docs { display: flex; align-items: center; gap: 14px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; }
.v-docs .per { color: var(--muted); font-size: 12px; }
.v-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.v-more { position: relative; display: none; }
.v-more summary { list-style: none; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-size: 13.5px; }
.v-more summary::-webkit-details-marker { display: none; }
.v-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; display: flex; flex-direction: column; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: 0 12px 32px rgba(29, 28, 25, .12); }
.v-menu a, .v-menu button, .v-menu span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.v-menu a:hover, .v-menu button:hover { background: var(--paper); }
.v-menu .na { flex-wrap: wrap; color: var(--faint); cursor: default; }
.v-menu .na small { display: block; margin-top: 1px; color: var(--faint); font-size: 12px; line-height: 1.35; }
.v-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.v-switch { display: inline-flex; margin-left: 4px; padding: 3px; border-radius: 9px; background: var(--soft); }
.v-switch button { padding: 5px 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; }
.v-switch button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 28, 25, .08); }
.viewer iframe { flex: 1; width: 100%; border: 0; background: var(--surface); }

/* ---------- AI layer (light only) ----------
   Marks what AI wrote or is doing: an iridescent hairline edge, a spark identifier, source chips.
   The iridescent colours never carry text. Research figures and links stay in the plain system. */
:root {
  --ai-1: #c4b5fd;  /* lavender */
  --ai-2: #93c5fd;  /* sky */
  --ai-3: #86efac;  /* mint */
  --ai-4: #fdba74;  /* peach */
  --ai-ink: #6550b9; /* Radix violet 11, for AI labels only */
  --ai-soft: #f6f3ff;
  --ai-grad: linear-gradient(120deg, #f4f0ff 0%, #eef6ff 40%, #effbf4 75%, #fff6ec 100%);
}
@property --ai-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ai-card { position: relative; isolation: isolate; padding: 18px 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ai-card::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--ai-angle), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-4), var(--ai-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ai-card::after { content: ""; position: absolute; inset: 6px; z-index: -2; border-radius: inherit; background: var(--ai-grad); filter: blur(18px); opacity: .55; }
.ai-card.thinking::before { animation: ai-spin 3.2s linear infinite; }
.ai-card.thinking::after { animation: ai-breathe 2.4s ease-in-out infinite; }
@keyframes ai-spin { to { --ai-angle: 360deg; } }
@keyframes ai-breathe { 50% { opacity: .9; } }
.ai-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ai-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ai-label .ic { width: 14px; height: 14px; color: var(--ai-ink); }
.spark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ai-grad); color: var(--ai-ink); box-shadow: inset 0 0 0 1px rgba(101, 80, 185, .12); }
.spark .ic { width: 13px; height: 13px; }
.src-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
a.src-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.src-chip .ic { width: 12px; height: 12px; }
.asof-chip { color: var(--faint); font-size: 11.5px; }
.reveal > * { animation: rise .55s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .08s; } .reveal > *:nth-child(3) { animation-delay: .16s; }
.reveal > *:nth-child(4) { animation-delay: .24s; } .reveal > *:nth-child(5) { animation-delay: .32s; }
.shimmer { background: linear-gradient(90deg, var(--soft) 0%, #fafbfd 40%, var(--soft) 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* aurora: a faint pastel light behind the header only */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 120px at 12% 0%, rgba(196, 181, 253, .22), transparent 70%),
              radial-gradient(520px 120px at 55% 0%, rgba(147, 197, 253, .18), transparent 70%),
              radial-gradient(520px 120px at 92% 0%, rgba(134, 239, 172, .14), transparent 70%); }

/* segmented control (view toggles) */
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--soft); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 32, 36, .08); }

/* brief cards: KPI pair */
.card .kp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0 0 14px; }
.card .kp div { min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.card .kp small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .kp b { display: block; margin-top: 2px; color: var(--ink); font: 600 15px/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minbadge { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.minbadge .ic { width: 13px; height: 13px; }

/* global cards view */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.gcard { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.gcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard .rk { color: var(--faint); font: 500 12px/1 var(--mono); }
.gcard h3 { margin: 0; color: var(--ink); font: 600 17px/1.25 var(--display); letter-spacing: -.015em; }
.gcard p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .gk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.gcard .gk span { color: var(--muted); }

/* phone bottom tab bar */
.bnav { display: none; }

/* ---------- Overview top strip: at a glance + ask bar ---------- */
kbd { display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--paper); color: var(--muted); font: 500 11px/1.4 var(--mono); }
.kbtn { gap: 8px; color: var(--muted); }
.kbtn kbd { margin-left: 4px; }
.briefme { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; margin: 22px 0 6px; }
.glance { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.glance .ai-head { margin-bottom: 6px; }
.glance .ai-head b { color: var(--ink); font-weight: 600; }
.glance .asof-chip { margin-left: auto; }
.glance ul { margin: 0; padding: 0; list-style: none; }
.glance li { position: relative; padding-left: 16px; margin: 6px 0; font-size: 14px; line-height: 1.55; }
.glance li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.glance.ai-card li::before { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); }
.glance li b { color: var(--ink); }
.spark.plain { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.askbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r-lg); background: var(--ai-grad); }
.ask-in { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 10px; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px rgba(101, 80, 185, .16), var(--shadow-sm); transition: box-shadow .2s; }
.ask-in:focus-within { box-shadow: 0 0 0 2px var(--ai-1), 0 6px 20px rgba(101, 80, 185, .12); }
.ask-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 15px; }
.ask-in input::placeholder { color: var(--faint); }
.askbar .btn { height: 46px; border-radius: 10px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-q { padding: 5px 12px; border: 1px solid rgba(101, 80, 185, .16); border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--body); font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.chip-q:hover { background: #fff; border-color: rgba(101, 80, 185, .35); transform: translateY(-1px); }
#oview { margin-left: 4px; }

/* ---------- KPI view ---------- */
.kpiv { overflow: hidden; }
.kpiv-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--ai-soft); color: var(--ai-ink); font-size: 12.5px; }
.kpiv-scroll { overflow-x: auto; }
.kt { min-width: 760px; }
.kt th { white-space: nowrap; }
.kh { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.kh:hover, .kh.on { color: var(--accent-ink); }
.kc b { display: block; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc small { color: var(--faint); font-size: 11.5px; }
.ko-cell { min-width: 220px; }
.ko { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 6px; background: var(--paper); font-size: 12.5px; }
.ko small { color: var(--muted); }

/* ---------- company drawer ---------- */
html.dopen, html.dopen body, html.popen, html.popen body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 45; }
.d-scrim, .pal-scrim { position: absolute; inset: 0; background: rgba(28, 32, 36, .18); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .2s ease both; }
.d-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; padding: 26px 26px 40px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(28, 32, 36, .1); animation: slidein .32s var(--ease) both; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.d-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.d-x:hover { border-color: var(--ink); }
.d-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.d-head h2 { margin: 0; color: var(--ink); font: 650 24px/1.15 var(--display); letter-spacing: -.025em; }
.d-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.d-what { margin: 14px 0 0; color: var(--body); font-size: 15px; line-height: 1.6; }
.d-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.d-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.d-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.d-sec h3 .k-src { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.dks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.dk { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.dk small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.dk b { display: block; margin-top: 3px; color: var(--ink); font: 600 17px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.dk span { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--faint); font-size: 11.5px; }
.dk em { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10.5px; font-style: normal; font-weight: 600; }
.d-docs { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.d-sec .note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.d-up { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 7px 0; color: var(--body); font-size: 13.5px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.d-up:last-child { border-bottom: 0; }
.d-up time { color: var(--muted); font-variant-numeric: tabular-nums; }
.d-up:hover span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.d-dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.d-dl dt { color: var(--muted); }
.d-dl dd { margin: 0; color: var(--ink); }
.d-sec p { margin: 0; }

/* ---------- palette ---------- */
.pal { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pal-box { position: relative; width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; animation: palin .22s var(--ease) both; }
@keyframes palin { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--ink); font-size: 16px; }
.pal-list { overflow-y: auto; padding: 6px; }
.pal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.pal-item b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.pal-item small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .pk { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.pal-item.on, .pal-item:hover { background: var(--accent-soft); }
.pal-item.ask { background: var(--ai-grad); }
.pal-item.ask.on { box-shadow: inset 0 0 0 1px rgba(101, 80, 185, .25); }
.pal-empty { padding: 20px; text-align: center; }
.pal-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--paper); color: var(--faint); font-size: 12px; }
.pal-foot kbd { margin-right: 3px; }

/* ---------- Ask Anvesha answer (in the drawer) ---------- */
.ask-pane { display: grid; gap: 14px; }
.ask-prev { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; }
.ask-q { margin: 0; padding-right: 44px; color: var(--ink); font: 650 21px/1.25 var(--display); letter-spacing: -.02em; }
.ask-body { color: var(--body); font-size: 15px; line-height: 1.65; }
.ask-body p { margin: 0 0 10px; }
.ask-body ul { margin: 0 0 10px; padding: 0; list-style: none; }
.ask-body li { position: relative; margin: 6px 0; padding-left: 16px; }
.ask-body li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); }
.ask-body b { color: var(--ink); font-weight: 600; }
.cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin: 0 1px 0 3px; padding: 0 4px; border-radius: 5px; background: var(--ai-soft); color: var(--ai-ink); font: 600 10.5px/1 var(--sans); text-decoration: none; vertical-align: 2px; }
.cite:hover { background: var(--ai-ink); color: #fff; }
.cite.web { gap: 2px; display: inline-flex; align-items: center; background: #eef6ff; color: #0d74ce; }
.cite.web .ic { width: 10px; height: 10px; }
.cite.web:hover { background: #0d74ce; color: #fff; }
#ask-wchips { display: flex; flex-wrap: wrap; gap: 6px; }
#ask-wchips .src-chip b { color: #0d74ce; }
.ask-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai-1); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { background: var(--ai-2); animation-delay: .15s; } .dots i:nth-child(3) { background: var(--ai-3); animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; border-radius: 2px; background: var(--ai-ink); opacity: .55; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-err { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.ask-src { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ask-src h3 { margin: 0 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
#ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#ask-chips .src-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#ask-chips .src-chip b { color: var(--ai-ink); }
.ask-act { display: flex; gap: 8px; margin-top: 10px; }
.ask-act .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.ask-follow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ask-follow .btn { height: 46px; border-radius: 10px; }
.ask-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; }
.ask-note .ic { flex: none; margin-top: 2px; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* large screens */
@media (min-width: 1700px) {
  :root { --wrap: 1480px; }
  body { font-size: 15.5px; }
}
/* laptops and tablets landscape */
@media (max-width: 1100px) {
  .v-docs { display: none; }
  .v-more { display: block; }
  .v-act .tab, .v-act .prt { display: none; }
  .cal { grid-template-columns: 1fr; }
  .gl .g-an { display: none; }
  .ov .o-fdr .sub { display: none; }
}
/* tablets portrait and phones: tables become cards */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .top-in { height: 58px; gap: 12px; }
  .brand img { width: 84px; }
  .brand-sep { height: 22px; }
  .title h1 { font-size: 19px; }
  .title p, .asof { display: none; }
  .top-r .btn .lbl { display: none; }
  .top-r .btn { padding: 8px 10px; }
  .tabs a { padding: 13px 10px 12px; font-size: 13.5px; }
  .tabs a small { display: none; }
  .lg { display: none; }
  .sm { display: inline; }
  .head { margin-top: 22px; }
  .head h2 { font-size: 24px; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .search { flex: 1 1 100%; }
  .search input { font-size: 16px; }
  .count { order: 3; }
  .sort, .filters { margin-left: 0; flex: 1 1 100%; }
  .filters, .sort { flex-wrap: wrap; }
  .filters label, .sort label { flex: 1 1 140px; min-width: 0; }
  .filters select, .sort select { width: 100%; max-width: none; }
  .tcard { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .ov thead, .gl thead, .list thead { display: none; }
  .ov, .ov tbody, .ov tr, .ov td, .gl, .gl tbody, .gl tr, .gl td { display: block; width: auto !important; }
  .ov tr.orow, .gl tr.grow { margin-bottom: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
  .ov tr.orow:hover td, .gl tr.grow:hover td { background: none; }
  .ov td, .gl td { padding: 2px 0; border: 0; }
  .ov td[data-l]::before, .gl td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .ov .o-co { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
  .ov .o-co .sub { display: none; }
  .ov .o-what { color: var(--ink); margin-bottom: 6px; }
  .ov .o-con, .ov .o-meet { display: inline-block !important; margin-right: 14px; }
  .ov .o-verd { display: none !important; }
  .ov .o-pill { display: inline-flex; }
  .gl .g-rk { display: inline-block !important; margin-right: 6px; }
  .gl .g-co { display: inline-block !important; }
  .gl .g-an { display: block !important; margin: 6px 0; }
  .gl .g-k { white-space: normal; }
  .list, .list tbody, .list tr, .list td { display: block; width: auto; }
  .list tbody { margin-bottom: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
  .list tbody:hover { background: var(--surface); }
  .list tr.main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .sub, .name, .docrow, .since { overflow-wrap: anywhere; }
  .list tr.main td, .list tr.docs td { padding: 0; }
  .c-name { grid-column: 1 / -1; }
  .c-verdict { grid-column: 1; }
  .c-report { grid-column: 2; text-align: right; color: var(--muted); font-size: 12.5px; }
  .c-report::before { content: "Report "; }
  .c-latest, .c-next { font-size: 13.5px; white-space: normal; grid-column: 1 / -1; }
  .c-latest::before { content: "Latest results: "; color: var(--muted); }
  .c-next::before { content: "Next results: "; color: var(--muted); }
  .c-latest .sub, .c-next .sub { display: inline; margin-left: 0; }
  .c-latest .sub::before, .c-next .sub::before { content: " · "; }
  .c-next.blank { display: none; }
  .c-act { grid-column: 1 / -1; text-align: left; }
  .c-act .act { margin: 2px 6px 0 0; }
  .list tr.docs td { padding-top: 12px; }
  .docrow, .since { grid-template-columns: 1fr; row-gap: 6px; padding-left: 0; }
  .docrow .items, .since .items { gap: 8px 14px; }
  .docrow .doc.na { display: none; }  /* touch has no tooltips: one plain line says what is missing */
  .na-note { display: block; }
  .since .items a { flex-basis: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .upcoming { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .upcoming::-webkit-scrollbar { display: none; }
  .upcoming > * { flex: none; }
  .panel { padding: 16px; }
  .ev { grid-template-columns: 74px 1fr; }
  .v-bar { gap: 8px; padding: 8px 10px; min-height: 52px; }
  .v-back { padding: 0 8px; }
  .v-back span { display: none; }
  .v-id b { font-size: 16px; }
  .v-id .pill { display: none; }
  .v-act .btn .lbl { display: none; }
  .v-act .btn { padding: 8px 10px; }
  .v-switch:not([hidden]) ~ .v-act .btn.ghost { display: none; }
  .v-switch button { padding: 5px 9px; white-space: nowrap; }
}
@media (max-width: 520px) {
  .tabs { gap: 0; justify-content: space-between; }
  .tabs a { padding: 13px 7px 12px; gap: 6px; }
  .tabs a .ic { display: none; }
}
@media (max-width: 860px) {
  .tabs-wrap { display: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; color: var(--muted); font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .bnav a .ic { width: 21px; height: 21px; }
  .bnav a.on { color: var(--accent-ink); background: var(--accent-soft); }
  html.open .bnav { display: none; }
  .card .kp b { font-size: 14px; }
}
@media (max-width: 1100px) {
  .briefme { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .kbtn .lbl { display: none; }
  .askbar { padding: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-q { flex: none; }
  .d-panel { top: auto; left: 0; width: 100%; max-height: 88vh; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); border-left: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 48px rgba(28, 32, 36, .14); animation-name: sheetin; }
  .d-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 2px; background: var(--line-strong); }
  @keyframes sheetin { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
  .d-dl { grid-template-columns: 1fr; gap: 2px; }
  .d-dl dd { margin-bottom: 8px; }
  .pal { padding: 0; align-items: stretch; }
  .pal-box { max-height: none; height: 100%; border-radius: 0; }
  html.dopen .bnav, html.popen .bnav { display: none; }
}
@media (max-width: 380px) {
  .brand-sep, .title { display: none; }
  .tabs a { font-size: 13px; padding: 13px 5px 12px; }
}
@media print {
  .top, .tabs-wrap, .bar, .upcoming, .c-act, .viewer { display: none !important; }
  body { background: #fff; }
  .tcard, .card, .panel, .stats div { box-shadow: none; }
}
