/* Noise2Signal
   Palette: White (primary) · Aubergine (ink/structure) · Pure black (interactive - Tanim: "NO red") · Gold (accent only)
   One corner radius everywhere: --radius. Circles (50%) only for dots and avatars. Light mode only. */
:root {
  --white: #FFFFFF; --ground: #F3F1F6; --ink: #25182E; --ink2: #5A4D66; --ink3: #8C8197;
  --line: #E7E2ED; --line2: #D8D0E0; --hover: #F8F6FA;
  --action: #000000; --action-d: #2B2B2B; --action-t: #F1F1F1;  /* buttons, links, selected states: pure black, no red */
  --gold: #FFBE00; --gold-t: #FFF5D6;
  --good: #1D7A4C; --good-t: #E4F3EA; --warn: #8F6512; --warn-t: #F6EEDC; --bad: #C2410C; --bad-t: #FCEBE1;
  --night: #0A0B0D;  /* glyph-ball panel: black, to match the Ball Study reference */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(37, 24, 46, .05), 0 6px 24px rgba(37, 24, 46, .05);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
svg[aria-hidden="true"] { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }  /* default icon size; components override */

/* ---------- brand (sign-in panel, wizard) ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand .logo { width: 28px; height: 28px; display: block; flex: none; border-radius: var(--radius); }
.brand.big { font-size: 20px; gap: 12px; }
.brand.big .logo { width: 44px; height: 44px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 3px; }
.seg button { border: 0; background: transparent; color: rgba(255, 255, 255, .7); padding: 5px 12px; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button.on { background: #fff; color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--action); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; }

/* ---------- sidebar: flat 2D glass, black / white / grey only ---------- */
:root { --sb-w: 84px; --sb-wide: 268px; --sb-gap: 12px; --sb-ease: 240ms cubic-bezier(.2, .7, .2, 1); }
.sb { position: fixed; z-index: 40; top: var(--sb-gap); bottom: var(--sb-gap); left: var(--sb-gap); width: var(--sb-w);
  display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; color: #fff;
  /* glass: low tint + light sheen + bright thin edge + lift shadow, so it reads as a pane standing in front */
  background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .02) 100%), rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .06);
  transition: width var(--sb-ease), transform var(--sb-ease); }
body.sb-wide .sb { width: var(--sb-wide); }
#main { padding-left: calc(var(--sb-w) + var(--sb-gap)); }  /* expanded glass slides over the page: content never shifts */
.sb-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 2px 0 10px; }
.sb-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0 6px; color: #fff; text-align: left;
  background: transparent; border: 0; border-radius: var(--radius); font: inherit; cursor: pointer; }
.sb-brand .logo { width: 36px; height: 36px; flex: none; border-radius: var(--radius); }
.sb-brand b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sb-brand small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; }
body.sb-wide .sb-nav { display: grid; gap: 6px; }
.sb-item, .sb-me { position: relative; display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 17px; color: rgba(255, 255, 255, .95);
  border: 1px solid transparent; border-radius: var(--radius); font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background 140ms, border-color 140ms, color 140ms; }
.sb-item:hover, .sb-me:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.sb-item.on, .sb-me.on { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .24); color: #fff; }
.sb-item svg { width: 22px; height: 22px; stroke-width: 1.6; flex: none; }
.sb :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sb-label { min-width: 0; }
body.sb-wide .sb { overflow: hidden; }  /* labels never spill out while the panel widens */
body.sb-wide .sb-label { animation: sb-in 180ms 140ms both; }
@keyframes sb-in { from { opacity: 0; } to { opacity: 1; } }
.sb-badge { margin-left: auto; min-width: 30px; height: 24px; padding: 0 8px; display: grid; place-items: center; background: #fff; color: #000;
  font-size: 12.5px; font-weight: 700; border-radius: var(--radius); }
.sb-sep { height: 1px; margin: 10px 8px; }  /* spacer only: keeps the profile at the bottom, no visible line */
.sb-nav + .sb-sep { margin-top: auto; }  /* profile stays anchored at the bottom */
.sb-me { height: 64px; padding: 0 10px; gap: 12px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.sb-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; font-weight: 700; font-size: 14px; }
.sb-who { flex: 1; overflow: hidden; }
.sb-who b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sb-who small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; }
.sb-more svg { width: 20px; height: 20px; stroke-width: 2.6; color: rgba(255, 255, 255, .9); }
/* collapsed: icons only, same order, active state, badge (as a dot), divider and profile */
body:not(.sb-wide) .sb { background: linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .02) 100%), rgba(255, 255, 255, .08); }
/* ponytail: .48 is the floor - lighter and white icons drop below 3:1 contrast on the light page */
body:not(.sb-wide) .sb-label { display: none; }  /* gone, not just invisible: nothing pushes the icons off-centre */
body:not(.sb-wide) .sb-head { flex-direction: column; align-items: center; gap: 10px; }
body:not(.sb-wide) .sb-brand { flex: none; padding: 0; gap: 0; justify-content: center; }
body:not(.sb-wide) .sb-item, body:not(.sb-wide) .sb-me { padding: 0; gap: 0; justify-content: center; }
body:not(.sb-wide) .sb-me { background: transparent; border-color: transparent; }
body:not(.sb-wide) .sb-me.on { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); }
body:not(.sb-wide) .sb-badge { position: absolute; top: 9px; left: 36px; min-width: 0; width: 9px; height: 9px; padding: 0; font-size: 0; border-radius: 50%; }
/* tooltips for icon-only items (the accessible name is the aria-label) */
body:not(.sb-wide) [data-tip]:not([data-tip=""]):hover::after, body:not(.sb-wide) [data-tip]:not([data-tip=""]):focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); z-index: 50; white-space: nowrap;
  padding: 6px 10px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(22, 22, 24, .92); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); pointer-events: none; }
.sb-brand[data-tip] { position: relative; }

.sb-burger, .sb-scrim { display: none; }
@media (prefers-reduced-motion: reduce) { .sb { transition: none; } body.sb-wide .sb-label { animation: none; } }

/* ---------- layout ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 24px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--ink2); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rail { position: sticky; top: 24px; display: grid; gap: 16px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.card-h h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-h h2 svg { width: 18px; height: 18px; flex: none; }
.ptile { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; margin-right: 10px; vertical-align: middle; color: #fff;
  background: linear-gradient(145deg, #34343a 0%, #111113 60%, #050506 100%); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ptile svg { width: 22px; height: 22px; stroke-width: 1.8; }
#sec-attention .ptile svg, #sec-red .ptile svg { color: #FF7A45; }
#sec-red { border-color: var(--bad); }
.card-b { padding: 4px 18px 16px; }
.count { background: var(--gold-t); color: var(--ink); font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: var(--radius); line-height: 20px; }
.count.hot { background: var(--gold); }

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; border-radius: var(--radius); padding: 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; overflow: hidden; position: relative; margin-bottom: 20px; }
.hero .date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.hero h1 { font: 500 36px/1.15 var(--serif); margin: 6px 0 6px; letter-spacing: -.01em; }
.hero .lead { font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 720px; margin: 0 0 16px; }
.hero-ask { display: flex; gap: 8px; margin: 0 0 16px; max-width: 640px; }
.hero-ask input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
.hero-ask input::placeholder { color: rgba(255, 255, 255, .5); }
.hero-ask input:focus { outline: none; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); }
.hero-ask input { transition: flex-basis .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, padding .35s; }
.hero-ask:not(.open) input { flex: 0 0 0; width: 0; padding-left: 0; padding-right: 0; border-width: 0; opacity: 0; }
.hero-ask:not(.open) { gap: 0; }
.hero-ask button { min-height: 46px; background: #fff; color: #000; border: 0; border-radius: var(--radius); padding: 0 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hero-ask button:hover { background: #E9E9E9; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hchip { background: rgba(255, 255, 255, .1); color: #fff; padding: 6px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; border: 0; cursor: pointer; }
.hchip b { color: var(--gold); font-weight: 700; }
.hchip:hover { background: rgba(255, 255, 255, .16); }
.meta { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.meta button { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0; font-weight: 600; font-size: 12px; }
.orb { width: 100%; aspect-ratio: 1; display: block; cursor: pointer; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-height: 148px; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: var(--line2); transform: translateY(-1px); }
.kpi .lbl { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.kpi .val { font-size: 25px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .val.na { font-size: 17px; color: var(--ink3); font-weight: 600; }
.kpi .sub { font-size: 12.5px; color: var(--ink2); }
.kpi .delta { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 4px; }
.kpi .delta svg { width: 13px; height: 13px; }
.kpi .fx { font-size: 11px; color: var(--ink3); margin-top: auto; line-height: 1.35; }
.kpi svg.spark { width: 100%; height: 26px; }

/* status pill: icon + word, never colour alone */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius); width: fit-content; }
.st svg { width: 12px; height: 12px; }
.st.verified { background: var(--good-t); color: var(--good); }
.st.conflicting, .st.unreconciled, .st.flagged { background: var(--bad-t); color: var(--bad); }
.st.stale { background: var(--warn-t); color: var(--warn); }
.st.unavailable { background: var(--ground); color: var(--ink3); }

/* ---------- brief layout ---------- */
.briefbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.briefbar h2 { font-size: 20px; margin-bottom: 2px; }
.seg.light { background: var(--white); border: 1px solid var(--line2); }
.seg.light button { color: var(--ink2); }
.seg.light button.on { background: var(--action); color: #fff; }
.why { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; display: grid; gap: 6px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.minibar { position: relative; height: 8px; background: var(--ground); margin-top: 8px; max-width: 360px; }
.minibar .f { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.minibar .m { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink3); }

/* ---------- list items ---------- */
.items { list-style: none; margin: 0; padding: 0; }
.it { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); align-items: start; }
.it:first-child { border-top: 0; }
.it .sev { width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; }
.it .sev svg { width: 16px; height: 16px; }
.sev.critical { color: var(--bad); } .sev.high { color: var(--action); } .sev.medium { color: var(--warn); } .sev.low { color: var(--ink3); }
.sev.good { color: var(--good); } .sev.poor { color: var(--bad); } .sev.ok { color: var(--ink3); }
.it .t { font-weight: 550; cursor: pointer; overflow-wrap: anywhere; }
.it .t:hover { color: var(--action); }
.it .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.it .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.when { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius); background: var(--ground); color: var(--ink2); white-space: nowrap; }
.when.late { background: var(--bad-t); color: var(--bad); }
.when.soon { background: var(--warn-t); color: var(--warn); }
.owner { font-size: 12px; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.owner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.owner.confirmed .dot { background: var(--good); } .owner.evidenced .dot { background: var(--gold); } .owner.unverified .dot { background: var(--bad); }
.more { margin-top: 6px; font-size: 13px; }
.empty { color: var(--ink3); font-size: 14px; padding: 8px 0; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--white); padding: 8px 14px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-d); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--ground); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line2); background: var(--white); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(37, 24, 46, .08); }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 6px; border-radius: var(--radius); cursor: pointer; color: var(--ink2); display: grid; }
.pw button:hover { background: var(--ground); }
.pw svg { width: 18px; height: 18px; }
.hint { font-size: 12.5px; font-weight: 500; color: var(--ink3); }
.hint.ok { color: var(--good); } .hint.bad { color: var(--bad); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--action); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--action); }
.chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line2); background: var(--white); padding: 5px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius); background: var(--ground); color: var(--ink2); }
.tag.gold { background: var(--gold-t); color: var(--ink); }
.tag.red { background: var(--bad-t); color: var(--bad); }
.tag.green { background: var(--good-t); color: var(--good); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(37, 24, 46, .32); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--white); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(37, 24, 46, .12); }
.drawer.on { transform: none; }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer-h h2 { font-size: 19px; line-height: 1.3; }
.drawer-b { padding: 18px 22px 40px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--ground); border-radius: var(--radius); padding: 10px 12px; }
.fact .k { font-size: 11.5px; color: var(--ink3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact .v { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.section-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 700; margin-bottom: 8px; }
.ev { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; }
.ev + .ev { margin-top: 8px; }
.ev .src { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink3); margin-bottom: 4px; }
.ev .ex { color: var(--ink); overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 14px 16px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--line2); }
.timeline li.user::before { border-color: var(--action); }
.timeline li.agent::before { border-color: var(--gold); }
.timeline .when2 { font-size: 11.5px; color: var(--ink3); }
.nextbox { background: var(--gold-t); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.nextbox svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 10px; background: var(--ground); position: relative; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.bar .fill.poor { background: var(--bad); }
.bar .ref { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink3); }

/* ---------- ask ---------- */
.ask { display: flex; gap: 8px; }
.ask .input { flex: 1; }
.askbar { padding: 10px; margin-top: 16px; position: sticky; bottom: 16px; }
.answer { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; }
.cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cite { border: 1px solid var(--line2); background: var(--white); border-radius: var(--radius); padding: 3px 9px; font-size: 12px; cursor: pointer; color: var(--ink2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cite:hover { border-color: var(--action); color: var(--action); }
.chat { display: grid; gap: 14px; }
.q { justify-self: end; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); max-width: 80%; }
.a { background: var(--white); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); }
.warnline { background: var(--warn-t); color: var(--warn); padding: 8px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 600; margin-top: 10px; }
.okline { color: var(--good); font-size: 12.5px; font-weight: 600; margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--hover); }
.matrix td.c { text-align: center; }
.cell { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius); }
.cell.fresh { background: var(--good-t); color: var(--good); }
.cell.stale { background: var(--warn-t); color: var(--warn); }
.cell.missing { background: var(--bad-t); color: var(--bad); }
.drop { border: 2px dashed var(--line2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--ink2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--action); background: var(--action-t); }

/* ---------- auth / onboarding ---------- */
/* one screen, no scrolling: the black panel keeps the full-size globe but gives its spare width to the form */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(540px, .85fr) minmax(0, 1.15fr); }
.auth-art { background: var(--night); color: #fff; padding: 24px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.auth-art h1 { font: 500 40px/1.08 var(--serif); max-width: 520px; }
.auth-art p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 460px; font-size: 15px; }
.auth-art .orb { max-width: 460px; align-self: center; }
.auth-art .brand { align-self: center; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 20px 48px; background: var(--white); }
.auth-form form { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 16px; }
.auth-form form.wide { max-width: 660px; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.auth-form form.wide ~ .foot { max-width: 660px; margin-top: 14px; }
.auth-form h2 { font-size: 26px; }
.foot { font-size: 12px; color: var(--ink3); max-width: 400px; margin: 32px auto 0; line-height: 1.6; width: 100%; }
.foot address { font-style: normal; }
.wizard { max-width: 720px; margin: 40px auto; padding: 0 20px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; background: var(--line); }
.steps i.on { background: var(--action); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.opt { border: 1.5px solid var(--line2); border-radius: var(--radius); padding: 14px; cursor: pointer; background: var(--white); text-align: left; }
.opt b { display: block; font-size: 16px; }
.opt span { font-size: 13px; color: var(--ink2); }
.opt.on { border-color: var(--action); background: var(--action-t); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); z-index: 60; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr) 240px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page { padding: 8px 16px 40px; }
  .brand small { display: none; }
  .seg button { padding: 5px 9px; }
  /* phone: the sidebar hides behind a burger and opens over the page; content never shifts */
  #main, body.sb-wide #main { padding-left: 0; padding-top: 60px; }
  .sb { transform: translateX(calc(-100% - 2 * var(--sb-gap))); }
  body.sb-mobile-open .sb { transform: none; }
  .sb-burger { display: grid; place-items: center; position: fixed; z-index: 35; top: 10px; left: 12px; width: 44px; height: 44px; color: #fff;
    background: rgba(22, 22, 24, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); cursor: pointer; }
  .sb-burger svg { width: 22px; height: 22px; }
  body.sb-mobile-open .sb-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .32); }
  .askbar { bottom: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .hero .orbwrap { order: -1; width: 100%; max-width: 260px; margin: -12px auto -8px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15.5px; }
  .hero-ask button { padding: 0 12px; }
  .briefbar { margin-top: 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 132px; padding: 12px; }
  .kpi .val { font-size: 20px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 20px; }
  .auth-art h1 { font-size: 32px; }
  .auth-art .orb { max-width: 260px; }
  .auth-form { padding: 28px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .drawer-h, .drawer-b { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Black page: text that sits straight on it turns light; cards keep their own colours */
#main > * > .page-head h1, .page-head h1 { color: #fff; }
.page-head p { color: rgba(255, 255, 255, .62); }

/* Key numbers: one icon holds the 8 cards */
.kpi-key { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 8px 14px 8px 8px; background: transparent; border: 0; color: #fff; font: 600 15px var(--font); cursor: pointer; border-radius: var(--radius); }
.kpi-key:hover, .kpi-key:focus-visible { background: rgba(255, 255, 255, .08); }
.kpi-key svg { width: 52px; height: 52px; fill: #fff; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.kpi-key[aria-expanded="true"] svg { transform: rotate(45deg); }
.keys { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.keys .kpi-key { margin: 0; }
.fold:not(.open) { display: none; }
.fold.open > * { animation: kpi-out .42s calc(var(--n) * 45ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes kpi-out { from { opacity: 0; transform: translateY(-18px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .fold.open > *, .kpi-key svg { animation: none; transition: none; } }
.briefbar h2 { color: #fff; } .briefbar .muted, .briefbar .small { color: rgba(255, 255, 255, .62); }
.alert-a { fill: #E5322D; stroke: none; font: 700 150px/1 var(--font); }
.fold.stack { margin-bottom: 20px; }
.kpi-key svg.line { fill: none; stroke: #fff; stroke-width: 1.6; width: 40px; height: 40px; margin: 6px; }
.kpi-key[aria-expanded="true"] svg.line { transform: none; }
.kpi-key[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.opened { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.tile-wrap { position: relative; display: inline-grid; flex: none; }
.knum { position: absolute; top: -7px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 50%;
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #000; box-shadow: 0 0 0 2px #000; }
.tile-wrap { width: 54px; align-self: center; }
.knum { top: -24px; box-shadow: none; } .knum.red { left: calc(100% - 2px); } .knum.gold { left: calc(100% + 22px); }  /* from the top-right corner outward */  /* above the tile, right-aligned, red then gold, never touching it */
.knum.red { background: #FF5A4E; color: #fff; }
.knum.gold { background: var(--gold); }
.kpi-key svg.roo { fill: initial; }
.kpi-key[aria-expanded="true"] svg.roo { transform: none; }
.brief-sum { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.keys .kpi-key { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.kpi-key.dragging { background: rgba(255, 255, 255, .18); outline: 1px dashed rgba(255, 255, 255, .5); cursor: grabbing; touch-action: none; }
.kpi-key svg { pointer-events: none; }

/* ---------- top-hanging menu + centred hero (9 Oct): menu hangs from the top edge, page stacks centred below ---------- */
.sb { top: 0; bottom: auto; left: 50%; transform: translateX(-50%); width: auto; max-width: calc(100vw - 16px);
  flex-direction: row; align-items: center; gap: 4px; padding: 8px 12px; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
body.sb-wide .sb { width: auto; }
.sb-head, body:not(.sb-wide) .sb-head { flex-direction: row; min-height: 0; padding: 0; gap: 0; }
.sb-nav, body.sb-wide .sb-nav { display: flex; flex-direction: row; gap: 4px; }
.sb-sep { display: none; }
.sb-item, .sb-me { height: 48px; }
body:not(.sb-wide) .sb-item, body:not(.sb-wide) .sb-me { width: 52px; }
.sb-me { background: transparent; border-color: transparent; padding: 0 6px; }
.sb-avatar { width: 38px; height: 38px; }
body:not(.sb-wide) [data-tip]:not([data-tip=""]):hover::after, body:not(.sb-wide) [data-tip]:not([data-tip=""]):focus-visible::after {
  left: 50%; top: calc(100% + 12px); transform: translateX(-50%); }
#main, body.sb-wide #main { padding-left: 0; padding-top: 72px; }
.sb-burger, body.sb-mobile-open .sb-scrim { display: none; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; background: transparent; padding: 8px 0 0; gap: 8px; overflow: visible; }
.hero-ask { justify-content: center; margin: 4px auto 0; }
.hero-ask.open { width: min(640px, 100%); }
.hero .orbwrap { order: 0; width: min(420px, 90vw); margin: 0 auto; }
.keys { justify-content: center; }
@media (max-width: 760px) {
  .sb, body.sb-mobile-open .sb { transform: translateX(-50%); padding: 6px 8px; }
  body.sb-wide .sb-label { display: none; }
  body:not(.sb-wide) .sb-item, body:not(.sb-wide) .sb-me, .sb-item, .sb-me { width: 42px; padding: 0; justify-content: center; }
  .sb-brand .logo { width: 30px; height: 30px; }
  #main, body.sb-wide #main { padding-top: 66px; }
  .hero .orbwrap { order: 0; max-width: 300px; margin: 0 auto; }
}
/* hanging: floats free below the top edge, drops in and settles with a small swing */
.sb { top: 22px; border-top: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius); overflow: visible; transform-origin: 50% -22px; animation: sb-hang 900ms cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes sb-hang { 0% { transform: translateX(-50%) translateY(-90px); } 60% { transform: translateX(-50%) translateY(4px) rotate(.6deg); } 80% { transform: translateX(-50%) rotate(-.3deg); } 100% { transform: translateX(-50%); } }
#main, body.sb-wide #main { padding-top: 96px; }
@media (max-width: 760px) { .sb { top: 16px; } #main, body.sb-wide #main { padding-top: 86px; } }
@media (prefers-reduced-motion: reduce) { .sb { animation: none; } }
body.sb-wide .sb { overflow: visible; }
.backbtn { position: fixed; z-index: 41; top: 22px; left: 20px; width: 60px; height: 60px; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius); }
.backbtn:hover { background: rgba(255, 255, 255, .18); }
.backbtn svg { width: 30px; height: 30px; stroke-width: 2; }
@media (max-width: 760px) { .backbtn { top: 86px; left: 12px; width: 48px; height: 48px; } .backbtn svg { width: 24px; height: 24px; } }
.tabs { border-bottom-color: rgba(255, 255, 255, .25); }
.tabs button { color: rgba(255, 255, 255, .55); }
.tabs button.on { color: #fff; border-bottom-color: #fff; }
.fold { position: relative; }
.fold-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--ground); color: var(--ink); border-radius: var(--radius); animation: none !important; }
.fold-x:hover { background: #E4E0EA; }
.fold-x svg { width: 18px; height: 18px; }
.fold > .card:first-child > .card-h, .fold > :first-child > .card:first-child > .card-h { padding-right: 56px; }
.items .group-h { list-style: none; margin: 14px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.kpi-key img.kimg { width: 44px; height: 44px; margin: 4px; pointer-events: none; -webkit-user-drag: none; }
.ptile img.tile-img { width: 24px; height: 24px; object-fit: contain; }
.it.pv { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.no-anim .fold.open > *, .no-anim .sb { animation: none !important; }
.task-say { flex-wrap: nowrap; margin-bottom: 10px; }
.task-say .input { flex: 1; min-width: 0; }
.task-form { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; background: var(--ground); border-radius: var(--radius); }
.btn.on { background: #E5322D; color: #fff; }
.it.done b { text-decoration: line-through; color: var(--ink3); }
.it.rep { display: block; }
.pts { margin: 6px 0 4px; padding-left: 18px; }
.pts li { margin: 2px 0; font-size: 14px; }
.pf-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pf-total > div { background: var(--ground); border-radius: var(--radius); padding: 10px 12px; }
.pf-total small { display: block; font-size: 12px; color: var(--ink3); }
.pf-total b { font-size: 17px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--ink3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: #1F8A4C; font-weight: 600; } .down { color: #C2361F; font-weight: 600; }
.kpi-key img.kimg-glass { width: 54px; height: 54px; margin: 0; filter: drop-shadow(0 4px 10px rgba(255, 255, 255, .08)); }
/* premium glass tile, copied from the TaskChaser artwork: dark gradient glass, silver glow top-right, top reflection, bright rim */
.gtile { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--radius); position: relative; overflow: hidden;
  background: radial-gradient(circle at 91% 8%, rgba(210, 210, 210, .40), rgba(141, 141, 141, .22) 23%, rgba(54, 54, 54, .05) 60%, transparent 100%),
    linear-gradient(135deg, #010101 0%, #080808 35%, #242424 72%, #070707 100%);
  border: 1px solid rgba(220, 220, 220, .55); box-shadow: inset 0 0 0 1px rgba(62, 62, 62, .9), inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px rgba(255, 255, 255, .08); }
.gtile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .03) 35%, transparent 60%); }
.kpi-key .gtile > svg, .kpi-key .gtile > img { width: 41px; height: 41px; margin: 0; }  /* 20% bigger than 34px (Tanim 9 Oct) */
.kpi-key .gtile > svg.line { stroke-width: 1.8; }
/* labels under the home icons, centred, up to 2 lines */
.keys .kpi-key { flex-direction: column; gap: 8px; width: 112px; padding: 8px 4px; text-align: center; }
.keys .kpi-key > span:last-child { font-size: 13.5px; line-height: 1.25; max-width: 104px; }
/* home icons in the top menu: glyph only */
.sb-keys { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 6px; margin-left: 2px; }
.sb-glyph { width: 24px; height: 24px; flex: none; fill: #fff; }
svg.sb-glyph.line { fill: none; stroke: #fff; }
@media (max-width: 760px) { .sb { overflow-x: auto; scrollbar-width: none; } .sb::-webkit-scrollbar { display: none; } }
/* menu: button items look like link items; label under the icon (Tanim 10 Oct) */
button.sb-item { background: transparent; border: 1px solid transparent; color: rgba(255, 255, 255, .95); font: inherit; cursor: pointer; }
body.sb-wide .sb-item { flex-direction: column; justify-content: center; gap: 3px; height: 58px; padding: 4px 8px; font-size: 11.5px; line-height: 1.15; text-align: center; white-space: normal; max-width: 96px; }
.keys { align-items: flex-start; padding-top: 22px; }
.sb-item svg, .sb-glyph { width: 32px !important; height: 32px !important; object-fit: contain; }  /* menu icons: one size for all (24 -> 29 -> 32) */
.sb-glyph { width: 40px !important; height: 40px !important; }  /* every home glyph in the menu at the size of the biggest (the M at 1.25x) */
.sb-item:has(.sb-glyph) { width: 56px; }
.kpi-key .gtile > svg, .kpi-key .gtile > img { width: 44px; height: 44px; object-fit: contain; }  /* every home glyph the same box, matched to the biggest (like the menu) */
/* logo-only when collapsed; icons slide out smoothly when opened */
.sb { gap: 0; }
.sb-nav { max-width: 1000px; opacity: 1; overflow: hidden; transition: max-width 450ms cubic-bezier(.2, .8, .2, 1), opacity 300ms ease, padding 450ms, margin 450ms; }
body:not(.sb-open) .sb-nav { max-width: 0; opacity: 0; padding-left: 0; margin-left: 0; border-left-color: transparent; }
body.sb-open .sb-nav { margin-left: 4px; }
body:not(.sb-open) .sb { padding: 8px; }
/* ultra-premium 2D glass buttons for every icon button (Tanim 10 Oct): no grey hover box */
.kpi-key, .sb-item, .sb-brand, .backbtn {
  background: rgba(14, 14, 16, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 2px 6px rgba(0, 0, 0, .35);
  transition: background 190ms cubic-bezier(.2, .8, .2, 1), border-color 190ms cubic-bezier(.2, .8, .2, 1), transform 190ms cubic-bezier(.2, .8, .2, 1), box-shadow 190ms cubic-bezier(.2, .8, .2, 1); }
.kpi-key:hover, .kpi-key:focus-visible, .sb-item:hover, .sb-brand:hover, .backbtn:hover {
  background: rgba(36, 36, 40, .62); border-color: rgba(255, 255, 255, .26); transform: translateY(-1px); color: #fff; }
.kpi-key:active, .sb-item:active, .sb-brand:active, .backbtn:active {
  transform: none; background: rgba(8, 8, 10, .70); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55); }
.kpi-key[aria-expanded="true"], .sb-item.on, .sb-me.on {
  background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .35); }
.kpi-key:focus-visible, .sb-item:focus-visible, .sb-brand:focus-visible, .backbtn:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; }
.kpi-key:disabled, .sb-item:disabled { opacity: .45; transform: none; pointer-events: none; }
.keys .kpi-key.dragging { background: rgba(255, 255, 255, .14); }
@media (prefers-reduced-motion: reduce) { .kpi-key, .sb-item, .sb-brand, .backbtn { transition: none; } .kpi-key:hover, .sb-item:hover { transform: none; } }
/* home icons: no outer box - the glass tile itself is the button face (Tanim 10 Oct) */
.keys .kpi-key, .keys .kpi-key:hover, .keys .kpi-key:active, .keys .kpi-key[aria-expanded="true"], .keys .kpi-key:focus-visible {
  background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.keys .kpi-key .gtile, .keys .kpi-key .kimg-glass { transition: transform 190ms cubic-bezier(.2, .8, .2, 1), border-color 190ms, box-shadow 190ms; }
.keys .kpi-key:hover .gtile, .keys .kpi-key:hover .kimg-glass { transform: translateY(-1px); border-color: rgba(255, 255, 255, .8); }
.keys .kpi-key:active .gtile { transform: none; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
.keys .kpi-key[aria-expanded="true"] .gtile { border-color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, .25); }
/* top menu: no box behind any icon or the logo; hover = slight lift + brighter icon only (Tanim 10 Oct) */
.sb .sb-item, .sb .sb-item:hover, .sb .sb-item:active, .sb .sb-item.on, .sb .sb-brand, .sb .sb-brand:hover, .sb .sb-brand:active {
  background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sb .sb-item { opacity: .82; } .sb .sb-item:hover, .sb .sb-item.on { opacity: 1; }
.sb-brand[data-tip]:focus-visible::after { content: none; }  /* "Expand menu" only on mouse hover */
/* eight buttons stored inside the sphere */
.hero .orbwrap { position: relative; cursor: pointer; outline: none; }
.hero .orbwrap:focus-visible { box-shadow: 0 0 0 1.5px #fff; border-radius: 50%; }
.orb { position: relative; z-index: 2; }
.orbit-keys { position: absolute; left: 50%; top: 50%; width: 0; height: 0; padding: 0; margin: 0; display: block; }
.orbit-keys > .kpi-key { position: absolute; left: -56px; top: -46px; z-index: 1; opacity: 0; pointer-events: none; }
.orbit-keys.out > .kpi-key { pointer-events: auto; }
.orbit-keys > .kpi-key.front { z-index: 3; }
.orbwrap:not(.moving) .orbit-keys.out > .kpi-key { opacity: 1; animation: dangle 5.6s ease-in-out infinite; }
.orbit-keys > .kpi-key:nth-child(2n) { animation-duration: 6.3s !important; animation-delay: -1.7s; }
.orbit-keys > .kpi-key:nth-child(3n) { animation-duration: 7.1s !important; animation-delay: -3.2s; }
@keyframes dangle { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(1.5px) rotate(.35deg); } }
@media (prefers-reduced-motion: reduce) { .orbwrap .orbit-keys > .kpi-key { animation: none !important; } }
@media (max-width: 759px) { .hero { margin-bottom: 260px; } }
/* collapsed menu: no glass box - just the logo + app name; opening brings the glass bar back (Tanim 10 Oct) */
body:not(.sb-open) .sb { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sb .sb-brand .sb-label { display: block !important; white-space: nowrap; }
.sb .sb-brand { gap: 10px; padding: 0 8px 0 0; }
.sb { transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease; }
/* ring needs air: greeting above, nothing below covers it */
@media (min-width: 760px) {
  .hero .orbwrap { margin: 120px auto 150px; }
  .hero-ask.on-ring { position: absolute; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 4; }
}
@media (max-width: 759px) { .hero-ask.on-ring { margin-top: 12px; } }
/* tighter header so the ring fits one screen */
@media (min-width: 760px) {
  #main, body.sb-wide #main { padding-top: 64px; }
  .hero { gap: 2px; padding-top: 0; }
  .hero h1 { font-size: 28px; margin: 2px 0 0; }
  .hero .date { font-size: 12px; }
}
