/* ==========================================================================
   Theme: the "Obsidian & Porcelain" restyle of the shell and components.
   Design tokens live in style.css. This file loads after style.css and social.css, so its rules win over
   theirs where both apply; keep that order (the pages that re-link social.css late rely on it).
   Principles: floating spatial shell, layered surfaces lit from above, one luminous
   accent (ultraviolet) with one warm signal (ember), big confident numerals.
   ========================================================================== */


/* ---- ambient field: soft light behind everything ------------------------- */
body { background: var(--bg); position: relative; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(110, 92, 255, .22), transparent 62%),
    radial-gradient(700px 520px at -6% 108%, rgba(255, 106, 61, .14), transparent 60%),
    radial-gradient(600px 420px at 40% 40%, rgba(18, 184, 134, .06), transparent 70%); }
:root[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(110, 92, 255, .32), transparent 62%),
    radial-gradient(700px 520px at -8% 110%, rgba(255, 106, 61, .14), transparent 60%),
    radial-gradient(500px 400px at 45% 35%, rgba(60, 40, 200, .12), transparent 70%); }

/* ---- type ---------------------------------------------------------------- */
h1 { font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.035em; margin-bottom: 6px; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 34px 0 12px; display: flex; align-items: center; gap: 8px; }
h2 .meta { font-weight: 500; }
h3 { letter-spacing: -.015em; }
.sub { font-size: 15px; line-height: 1.55; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.num-xl { font-size: 46px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---- floating shell ------------------------------------------------------ */
.shell { padding: 0; gap: 0; }
nav.side { margin: 12px 0 12px 12px; height: calc(100vh - 24px); top: 12px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--sidebar); backdrop-filter: blur(22px) saturate(1.4); box-shadow: var(--lift); padding: 14px 10px 12px; align-self: start; }
.brand { padding: 4px 8px 16px; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; border-radius: 12px; background: var(--grad-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -6px 10px rgba(30, 10, 120, .35), 0 8px 18px -6px rgba(90, 71, 245, .7); }
nav.side a.nav, nav.side .nav { border-radius: 14px; padding: 8px 12px; font-weight: 500; letter-spacing: -.005em; transition: background .16s, color .16s, transform .16s var(--ease); }
nav.side a.nav:hover { background: var(--accent-soft); color: var(--accent-text); transform: translateX(2px); }
nav.side a.nav.on { background: var(--grad-accent); color: var(--on-accent); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(90, 71, 245, .85); }
nav.side .group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; margin-top: 18px; }
html[data-side="collapsed"] nav.side a.nav:hover { transform: none; }
.side-foot { border-top: 1px solid var(--line); }
.badge { background: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 25%, transparent); }

.topbar { position: sticky; top: 12px; margin: 12px 24px 0; height: var(--top-h); border: 1px solid var(--line); border-radius: 20px;
  background: var(--sidebar); backdrop-filter: blur(22px) saturate(1.4); box-shadow: var(--lift); padding: 0 12px 0 20px; }
.search-btn { border-radius: 14px; height: 38px; background: var(--surface-2); border-color: var(--line); min-width: 240px; }
.search-btn:hover { border-color: var(--accent); color: var(--accent-text); box-shadow: var(--focus); }
.icon-btn { border-radius: 12px; width: 38px; height: 38px; transition: background .15s, transform .15s var(--ease); }
.icon-btn:hover { transform: translateY(-1px); background: var(--accent-soft); color: var(--accent-text); }
.avatar { background: var(--grad-accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.menu-panel { border-radius: var(--radius-m); box-shadow: var(--shadow-m); padding: 8px; background: var(--surface); }
.menu-panel a, .menu-panel button { border-radius: 10px; }
kbd { border-radius: 6px; background: var(--surface); }
.crumbs .cur { font-weight: 600; letter-spacing: -.01em; }
main { padding: 28px 36px 80px; max-width: 1360px; }

.claude { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--lift); padding: 9px 16px; }
.claude .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.claude.stale { background: var(--warn-soft); color: var(--warn-text); }
.claude.stale .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); }

/* ---- surfaces ------------------------------------------------------------ */
.panel, .pcard, .agent-card, .scard, .flow .step, details.sec { border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--lift); }
.panel, .pcard { padding: 20px 22px; }
.agent-card, .scard, .flow .step { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.agent-card:hover, .scard:hover, a.step:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.empty { border-radius: var(--radius-m); background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1.5px dashed var(--line-strong); }
table.t { border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--lift); background: var(--surface); }
.t th { background: var(--surface-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 12px 14px; }
.t td { padding: 13px 14px; border-bottom-color: var(--line); }
.t tbody tr { transition: background .15s; }
.t tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.kpis { border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--lift); background: var(--surface); }
.kpi b { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.kpi span { font-size: 12.5px; }
form.filters { border-radius: var(--radius-m); box-shadow: var(--lift); border: 1px solid var(--line); padding: 14px 16px; }
.warn { border-radius: 14px; border-left-width: 4px; }
pre.md, .log, .cvpage { border-radius: var(--radius-m); }
details.sec > summary { padding: 14px 20px; }
dialog { border-radius: var(--radius-l); box-shadow: var(--shadow-l); border: 1px solid var(--line-strong); }
dialog::backdrop { background: rgba(10, 6, 40, .55); backdrop-filter: blur(6px); }
.toast { border-radius: 16px; box-shadow: var(--shadow-m); }

/* ---- controls ------------------------------------------------------------ */
button, .btn { border-radius: 13px; min-height: 38px; padding: 7px 18px; font-weight: 600; letter-spacing: -.005em; border: 0;
  background: var(--grad-accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(90, 71, 245, .9);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .15s; }
button:hover, .btn:hover { background: var(--grad-accent); filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 16px 28px -10px rgba(90, 71, 245, 1); }
button:active, .btn:active { transform: translateY(0) scale(.98); }
button.ghost, .btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--lift); }
button.ghost:hover, .btn.ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-text); filter: none; }
button.danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger); box-shadow: none; }
button.sm, .btn.sm { min-height: 30px; padding: 3px 12px; border-radius: 10px; }
input, select, textarea { border-radius: 12px; min-height: 38px; padding: 7px 12px; border-color: var(--line-strong); background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.pill { border-radius: 999px; padding: 2px 11px; font-weight: 550; letter-spacing: -.005em; }
.chip { border-radius: 999px; padding: 6px 15px; background: var(--surface); box-shadow: var(--lift); border-color: var(--line); }
.chip.on { background: var(--grad-accent); color: var(--on-accent); border-color: transparent; }
.tabs { border-bottom: 0; gap: 6px; padding: 5px; background: var(--sunken); border-radius: 16px; width: fit-content; max-width: 100%; margin: 14px 0 20px; flex-wrap: wrap; }   /* wide screens: a long set wraps, so no tab is ever hidden off the end */
.tabs a, .tabs button { border: 0; border-radius: 12px; padding: 8px 18px; margin: 0; }
.tabs button { background: transparent; color: var(--muted); box-shadow: none; transform: none; filter: none; min-height: 0; letter-spacing: normal; }
.tabs button:hover { background: transparent; color: var(--text); box-shadow: none; transform: none; filter: none; }
.tabs button:active { transform: none; }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--lift); }
.tabs button[aria-selected="true"]:hover { background: var(--surface); box-shadow: var(--lift); }
/* theme toggle icons: the sun shows in dark mode (to go light), the moon in light mode. Pure CSS, so there is no flash and no inline style to set. */
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline; }
[data-theme="dark"] .i-moon { display: none; }
.score { border-radius: 10px; }
.score.hi { background: var(--grad-accent); box-shadow: 0 6px 14px -6px rgba(90, 71, 245, .8); }
.runway .bar, .meter { height: 7px; border-radius: 999px; }
.runway .bar i, .meter i { background: var(--grad-accent); border-radius: 999px; }
.runway.soon .bar i { background: linear-gradient(90deg, #f4b04a, #e08a12); }
.runway.urgent .bar i { background: linear-gradient(90deg, #ff8a5f, #e5484d); }
.agent-avatar { border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }

/* ---- depth-aware tilt (JS sets --rx/--ry on [data-tilt]) ------------------- */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
[data-tilt].tilting { transition: transform .06s linear, box-shadow .25s; }
[data-tilt] .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px 200px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 70%); }
[data-tilt]:hover .glare { opacity: 1; }

/* ==========================================================================
   Dashboard (overview.html)
   ========================================================================== */
.hero { position: relative; border-radius: 32px; padding: 40px 44px; margin-bottom: 22px; color: #f4f1ff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(520px 340px at 82% 20%, rgba(255, 106, 61, .38), transparent 64%),
    radial-gradient(640px 420px at 70% 100%, rgba(120, 90, 255, .55), transparent 62%),
    linear-gradient(145deg, #1b1546 0%, #251a63 48%, #321a78 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 4px rgba(20, 10, 80, .25), 0 40px 70px -28px rgba(60, 40, 200, .65); min-height: 300px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 20px; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero .eyebrow { color: rgba(226, 220, 255, .65); }
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 14px; color: #fff; font-weight: 600; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ffd0bd, #ff8a5f 55%, #ffb39a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: rgba(231, 226, 255, .78); font-size: 16px; max-width: 46ch; margin: 0 0 22px; line-height: 1.55; }
.hero p b { color: #fff; font-weight: 600; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta button { background: #fff; color: #231a66; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(90, 71, 245, .15); }
.hero .cta button:hover { background: #fff; filter: none; transform: translateY(-2px); }
.hero .cta button:disabled { opacity: .7; }
.hero .cta .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); box-shadow: none; }
.hero .cta .btn.ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero .find-msg { flex-basis: 100%; font-size: 12.5px; color: rgba(226, 220, 255, .68); min-height: 18px; }

/* the 3D scene: stacked plates in perspective + a lit orb. Pure CSS, GPU-transformed. */
.scene { position: relative; height: 270px; perspective: 1100px; perspective-origin: 50% 30%; --mx: 0; --my: 0; }
.scene .stage { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--my) * -5deg)) rotateZ(calc(-32deg + var(--mx) * 7deg)); transition: transform .35s var(--ease); }
.plate { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 34px; transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 30px 40px -18px rgba(8, 4, 40, .7); animation: bob 7s ease-in-out infinite; }
.plate.p1 { transform: translateZ(0); background: linear-gradient(145deg, rgba(120, 100, 255, .55), rgba(60, 40, 180, .55)); }
.plate.p2 { transform: translateZ(52px); background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); animation-delay: -1.4s; }
.plate.p3 { transform: translateZ(104px); background: linear-gradient(145deg, rgba(255, 150, 110, .75), rgba(255, 90, 60, .55)); animation-delay: -2.8s; }
.plate::before { content: ""; position: absolute; inset: 22px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .3); }
.plate .bar { position: absolute; left: 30px; right: 30px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.plate .bar:nth-child(1) { top: 44px; right: 90px; } .plate .bar:nth-child(2) { top: 66px; right: 56px; opacity: .6; } .plate .bar:nth-child(3) { top: 88px; right: 110px; opacity: .4; }
@keyframes bob { 50% { translate: 0 0 14px; } }
.orb { position: absolute; right: 8%; top: 4%; width: 112px; height: 112px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #fff 0, #ffd8c8 14%, #ff8a5f 42%, #c8365a 78%, #6b1a6e 100%);
  box-shadow: inset -10px -14px 26px rgba(70, 10, 70, .55), 0 30px 50px -14px rgba(255, 106, 61, .6), 0 0 80px rgba(255, 138, 95, .35);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0); transition: transform .35s var(--ease); animation: float 6s ease-in-out infinite; }
.orb.small { width: 44px; height: 44px; right: auto; left: 6%; top: 62%; background: radial-gradient(circle at 32% 28%, #fff, #b9afff 40%, #5a47f5 85%); box-shadow: inset -5px -7px 12px rgba(20, 10, 110, .5), 0 18px 26px -10px rgba(90, 71, 245, .8); animation-delay: -2s; transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -14px), 0); }
@keyframes float { 50% { translate: 0 -12px; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.stat { position: relative; border-radius: var(--radius-m); padding: 20px 22px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift); overflow: hidden; color: var(--text); display: block; }
.stat:hover { text-decoration: none; box-shadow: var(--lift-hi); }
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .lbl .ico { color: var(--accent); }
.stat .v { margin-top: 14px; }
.stat .foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone, var(--accent)) 26%, transparent), transparent 70%); pointer-events: none; }
.stat.t-ember { --tone: var(--ember); } .stat.t-ember .lbl .ico { color: var(--ember); }
.stat.t-mint { --tone: var(--mint); } .stat.t-mint .lbl .ico { color: var(--mint); }
.stat.t-info { --tone: var(--info); } .stat.t-info .lbl .ico { color: var(--info); }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.rank { display: flex; flex-direction: column; gap: 10px; }
.rank-item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.rank-item:hover { transform: translateY(-2px) translateX(2px); box-shadow: var(--lift-hi); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); text-decoration: none; }
.ring { --v: 50; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--sunken) 0); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 3px rgba(33, 27, 66, .12); }
.ring b { position: relative; font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.ring.hi { background: conic-gradient(#ff8a5f 0, #5a47f5 calc(var(--v) * 1%), var(--sunken) 0); }
.rank-item .t { font-weight: 600; letter-spacing: -.015em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item .m { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.due { display: grid; place-items: center; min-width: 62px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; line-height: 1.1; }
.due b { font-size: 20px; font-weight: 600; letter-spacing: -.04em; display: block; }
.due span { font-size: 10.5px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.due.soon { background: var(--warn-soft); border-color: transparent; } .due.soon b { color: var(--warn-text); }
.due.urgent { background: var(--ember-soft); border-color: transparent; } .due.urgent b { color: var(--danger-text); }
.due.none b { font-size: 16px; color: var(--faint); }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.mini-list { display: flex; flex-direction: column; }
.mini-list a, .mini-list div.r { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mini-list > :last-child { border-bottom: 0; }
.mini-list .d { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; letter-spacing: -.03em; line-height: 1; text-align: center; }
.mini-list .d.soon { background: var(--warn-soft); color: var(--warn-text); border-color: transparent; }
.mini-list .d.urgent { background: var(--ember-soft); color: var(--danger-text); border-color: transparent; }
.mini-list .tx { min-width: 0; flex: 1; } .mini-list .tx b { display: block; font-weight: 600; letter-spacing: -.01em; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .tx span { font-size: 12.5px; color: var(--muted); }
.bars .bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; font-size: 14px; }
.bars .bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.bars .bar-row .track i { display: block; height: 100%; border-radius: 999px; background: var(--grad-accent); }
.bars .bar-row b { font-weight: 600; }

@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  nav.side { margin: 0; height: 100vh; top: 0; border-radius: 0 var(--radius-l) var(--radius-l) 0; background: var(--surface); }
  .topbar { margin: 8px 12px 0; top: 8px; } main { padding: 20px 16px 56px; }
  .hero { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 26px; } .scene { height: 190px; order: -1; margin: -8px 0 -10px; }
  .plate { width: 150px; height: 150px; margin: -75px 0 0 -75px; } .orb { width: 80px; height: 80px; }
  .rank-item { grid-template-columns: 48px minmax(0, 1fr); } .rank-item .due { grid-column: 2; justify-self: start; display: inline-flex; gap: 6px; padding: 4px 12px; }
  .tabs { width: auto; flex-wrap: nowrap; }   /* narrow screens: one swipeable row that runs off the edge, which shows it scrolls */
}
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .num-xl { font-size: 36px; } h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .plate, .orb { animation: none; } [data-tilt] { transform: none !important; } }
@media print { body::before { display: none; } }

/* polish */
.brand { font-size: 13.5px; gap: 9px; } .brand small { font-size: 11px; letter-spacing: 0; }
.hero .find-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }

/* ---- data-driven classes (generated) ---------------------------------------------------------------------------------
   pct-N sets a bar fill's width, v-N sets the ring's --v: one rule per whole percent, so templates need no inline style="".
   (The fill rules are not !important: apply_agent.js still updates a live bar through el.style.width.) -------------------------------- */
.pct-0 { width: 0%; }
.pct-1 { width: 1%; }
.pct-2 { width: 2%; }
.pct-3 { width: 3%; }
.pct-4 { width: 4%; }
.pct-5 { width: 5%; }
.pct-6 { width: 6%; }
.pct-7 { width: 7%; }
.pct-8 { width: 8%; }
.pct-9 { width: 9%; }
.pct-10 { width: 10%; }
.pct-11 { width: 11%; }
.pct-12 { width: 12%; }
.pct-13 { width: 13%; }
.pct-14 { width: 14%; }
.pct-15 { width: 15%; }
.pct-16 { width: 16%; }
.pct-17 { width: 17%; }
.pct-18 { width: 18%; }
.pct-19 { width: 19%; }
.pct-20 { width: 20%; }
.pct-21 { width: 21%; }
.pct-22 { width: 22%; }
.pct-23 { width: 23%; }
.pct-24 { width: 24%; }
.pct-25 { width: 25%; }
.pct-26 { width: 26%; }
.pct-27 { width: 27%; }
.pct-28 { width: 28%; }
.pct-29 { width: 29%; }
.pct-30 { width: 30%; }
.pct-31 { width: 31%; }
.pct-32 { width: 32%; }
.pct-33 { width: 33%; }
.pct-34 { width: 34%; }
.pct-35 { width: 35%; }
.pct-36 { width: 36%; }
.pct-37 { width: 37%; }
.pct-38 { width: 38%; }
.pct-39 { width: 39%; }
.pct-40 { width: 40%; }
.pct-41 { width: 41%; }
.pct-42 { width: 42%; }
.pct-43 { width: 43%; }
.pct-44 { width: 44%; }
.pct-45 { width: 45%; }
.pct-46 { width: 46%; }
.pct-47 { width: 47%; }
.pct-48 { width: 48%; }
.pct-49 { width: 49%; }
.pct-50 { width: 50%; }
.pct-51 { width: 51%; }
.pct-52 { width: 52%; }
.pct-53 { width: 53%; }
.pct-54 { width: 54%; }
.pct-55 { width: 55%; }
.pct-56 { width: 56%; }
.pct-57 { width: 57%; }
.pct-58 { width: 58%; }
.pct-59 { width: 59%; }
.pct-60 { width: 60%; }
.pct-61 { width: 61%; }
.pct-62 { width: 62%; }
.pct-63 { width: 63%; }
.pct-64 { width: 64%; }
.pct-65 { width: 65%; }
.pct-66 { width: 66%; }
.pct-67 { width: 67%; }
.pct-68 { width: 68%; }
.pct-69 { width: 69%; }
.pct-70 { width: 70%; }
.pct-71 { width: 71%; }
.pct-72 { width: 72%; }
.pct-73 { width: 73%; }
.pct-74 { width: 74%; }
.pct-75 { width: 75%; }
.pct-76 { width: 76%; }
.pct-77 { width: 77%; }
.pct-78 { width: 78%; }
.pct-79 { width: 79%; }
.pct-80 { width: 80%; }
.pct-81 { width: 81%; }
.pct-82 { width: 82%; }
.pct-83 { width: 83%; }
.pct-84 { width: 84%; }
.pct-85 { width: 85%; }
.pct-86 { width: 86%; }
.pct-87 { width: 87%; }
.pct-88 { width: 88%; }
.pct-89 { width: 89%; }
.pct-90 { width: 90%; }
.pct-91 { width: 91%; }
.pct-92 { width: 92%; }
.pct-93 { width: 93%; }
.pct-94 { width: 94%; }
.pct-95 { width: 95%; }
.pct-96 { width: 96%; }
.pct-97 { width: 97%; }
.pct-98 { width: 98%; }
.pct-99 { width: 99%; }
.pct-100 { width: 100%; }
.v-0 { --v: 0 !important; }
.v-1 { --v: 1 !important; }
.v-2 { --v: 2 !important; }
.v-3 { --v: 3 !important; }
.v-4 { --v: 4 !important; }
.v-5 { --v: 5 !important; }
.v-6 { --v: 6 !important; }
.v-7 { --v: 7 !important; }
.v-8 { --v: 8 !important; }
.v-9 { --v: 9 !important; }
.v-10 { --v: 10 !important; }
.v-11 { --v: 11 !important; }
.v-12 { --v: 12 !important; }
.v-13 { --v: 13 !important; }
.v-14 { --v: 14 !important; }
.v-15 { --v: 15 !important; }
.v-16 { --v: 16 !important; }
.v-17 { --v: 17 !important; }
.v-18 { --v: 18 !important; }
.v-19 { --v: 19 !important; }
.v-20 { --v: 20 !important; }
.v-21 { --v: 21 !important; }
.v-22 { --v: 22 !important; }
.v-23 { --v: 23 !important; }
.v-24 { --v: 24 !important; }
.v-25 { --v: 25 !important; }
.v-26 { --v: 26 !important; }
.v-27 { --v: 27 !important; }
.v-28 { --v: 28 !important; }
.v-29 { --v: 29 !important; }
.v-30 { --v: 30 !important; }
.v-31 { --v: 31 !important; }
.v-32 { --v: 32 !important; }
.v-33 { --v: 33 !important; }
.v-34 { --v: 34 !important; }
.v-35 { --v: 35 !important; }
.v-36 { --v: 36 !important; }
.v-37 { --v: 37 !important; }
.v-38 { --v: 38 !important; }
.v-39 { --v: 39 !important; }
.v-40 { --v: 40 !important; }
.v-41 { --v: 41 !important; }
.v-42 { --v: 42 !important; }
.v-43 { --v: 43 !important; }
.v-44 { --v: 44 !important; }
.v-45 { --v: 45 !important; }
.v-46 { --v: 46 !important; }
.v-47 { --v: 47 !important; }
.v-48 { --v: 48 !important; }
.v-49 { --v: 49 !important; }
.v-50 { --v: 50 !important; }
.v-51 { --v: 51 !important; }
.v-52 { --v: 52 !important; }
.v-53 { --v: 53 !important; }
.v-54 { --v: 54 !important; }
.v-55 { --v: 55 !important; }
.v-56 { --v: 56 !important; }
.v-57 { --v: 57 !important; }
.v-58 { --v: 58 !important; }
.v-59 { --v: 59 !important; }
.v-60 { --v: 60 !important; }
.v-61 { --v: 61 !important; }
.v-62 { --v: 62 !important; }
.v-63 { --v: 63 !important; }
.v-64 { --v: 64 !important; }
.v-65 { --v: 65 !important; }
.v-66 { --v: 66 !important; }
.v-67 { --v: 67 !important; }
.v-68 { --v: 68 !important; }
.v-69 { --v: 69 !important; }
.v-70 { --v: 70 !important; }
.v-71 { --v: 71 !important; }
.v-72 { --v: 72 !important; }
.v-73 { --v: 73 !important; }
.v-74 { --v: 74 !important; }
.v-75 { --v: 75 !important; }
.v-76 { --v: 76 !important; }
.v-77 { --v: 77 !important; }
.v-78 { --v: 78 !important; }
.v-79 { --v: 79 !important; }
.v-80 { --v: 80 !important; }
.v-81 { --v: 81 !important; }
.v-82 { --v: 82 !important; }
.v-83 { --v: 83 !important; }
.v-84 { --v: 84 !important; }
.v-85 { --v: 85 !important; }
.v-86 { --v: 86 !important; }
.v-87 { --v: 87 !important; }
.v-88 { --v: 88 !important; }
.v-89 { --v: 89 !important; }
.v-90 { --v: 90 !important; }
.v-91 { --v: 91 !important; }
.v-92 { --v: 92 !important; }
.v-93 { --v: 93 !important; }
.v-94 { --v: 94 !important; }
.v-95 { --v: 95 !important; }
.v-96 { --v: 96 !important; }
.v-97 { --v: 97 !important; }
.v-98 { --v: 98 !important; }
.v-99 { --v: 99 !important; }
.v-100 { --v: 100 !important; }

/* ==========================================================================
   Utilities (u-*): the repeated one-off spacing and layout that used to be inline style="" attributes.
   !important on purpose: an inline style outranks any normal rule, and these stand in for one. Order matters: the all-sides
   classes (m-0) come first so a side class (mt-6) can override them, exactly as `margin: 0; margin-top: 6px` did.
   ========================================================================== */
.u-m-0 { margin-top: 0 !important; margin-right: 0 !important; margin-bottom: 0 !important; margin-left: 0 !important; }
.u-m-4 { margin-top: 4px !important; margin-right: 4px !important; margin-bottom: 4px !important; margin-left: 4px !important; }
.u-my-12 { margin-top: 12px !important; margin-bottom: 12px !important; }
.u-my-14 { margin-top: 14px !important; margin-bottom: 14px !important; }
.u-my-16 { margin-top: 16px !important; margin-bottom: 16px !important; }
.u-my-4 { margin-top: 4px !important; margin-bottom: 4px !important; }
.u-my-6 { margin-top: 6px !important; margin-bottom: 6px !important; }
.u-my-8 { margin-top: 8px !important; margin-bottom: 8px !important; }
.u-mb-10 { margin-bottom: 10px !important; }
.u-mb-12 { margin-bottom: 12px !important; }
.u-mb-14 { margin-bottom: 14px !important; }
.u-mb-16 { margin-bottom: 16px !important; }
.u-mb-18 { margin-bottom: 18px !important; }
.u-mb-2 { margin-bottom: 2px !important; }
.u-mb-4 { margin-bottom: 4px !important; }
.u-mb-6 { margin-bottom: 6px !important; }
.u-mb-8 { margin-bottom: 8px !important; }
.u-ml-16 { margin-left: 16px !important; }
.u-ml-18 { margin-left: 18px !important; }
.u-ml-auto { margin-left: auto !important; }
.u-mr-0 { margin-right: 0 !important; }
.u-mr-12 { margin-right: 12px !important; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-18 { margin-top: 18px !important; }
.u-mt-2 { margin-top: 2px !important; }
.u-mt-22 { margin-top: 22px !important; }
.u-mt-26 { margin-top: 26px !important; }
.u-mt-28 { margin-top: 28px !important; }
.u-mt-3 { margin-top: 3px !important; }
.u-mt-4 { margin-top: 4px !important; }
.u-mt-6 { margin-top: 6px !important; }
.u-mt-8 { margin-top: 8px !important; }
.u-p-0 { padding-top: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; padding-left: 0 !important; }
.u-p-10 { padding-top: 10px !important; padding-right: 10px !important; padding-bottom: 10px !important; padding-left: 10px !important; }
.u-p-14 { padding-top: 14px !important; padding-right: 14px !important; padding-bottom: 14px !important; padding-left: 14px !important; }
.u-p-24 { padding-top: 24px !important; padding-right: 24px !important; padding-bottom: 24px !important; padding-left: 24px !important; }
.u-p-6 { padding-top: 6px !important; padding-right: 6px !important; padding-bottom: 6px !important; padding-left: 6px !important; }
.u-p-8 { padding-top: 8px !important; padding-right: 8px !important; padding-bottom: 8px !important; padding-left: 8px !important; }
.u-px-14 { padding-left: 14px !important; padding-right: 14px !important; }
.u-px-20 { padding-left: 20px !important; padding-right: 20px !important; }
.u-py-10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.u-py-18 { padding-top: 18px !important; padding-bottom: 18px !important; }
.u-py-3 { padding-top: 3px !important; padding-bottom: 3px !important; }
.u-py-4 { padding-top: 4px !important; padding-bottom: 4px !important; }
.u-py-6 { padding-top: 6px !important; padding-bottom: 6px !important; }
.u-py-8 { padding-top: 8px !important; padding-bottom: 8px !important; }
.u-pb-18 { padding-bottom: 18px !important; }
.u-pl-16 { padding-left: 16px !important; }
.u-ai-center { align-items: center !important; }
.u-ai-start { align-items: flex-start !important; }
.u-align-items-end { align-items: end !important; }
.u-align-self-end { align-self: end !important; }
.u-basis-100pct { flex-basis: 100% !important; }
.u-bg-danger-soft { background: var(--danger-soft) !important; }
.u-bg-white { background: #fff !important; }
.u-bl-danger { border-left-color: var(--danger) !important; }
.u-border-0 { border: 0 !important; }
.u-border-line { border: 1px solid var(--line) !important; }
.u-bt-line { border-top: 1px solid var(--line) !important; }
.u-callout-accent { border-left: 3px solid var(--accent) !important; }
.u-callout-danger { border-left: 3px solid var(--danger) !important; }
.u-callout-ok { border-left: 3px solid var(--ok) !important; }
.u-callout-warn { border-left: 3px solid var(--warn) !important; }
.u-col { flex-direction: column !important; }
.u-cols-repeat-auto-fit-minmax-150px-1fr { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)) !important; }
.u-cursor-pointer { cursor: pointer !important; }
.u-d-block { display: block !important; }
.u-d-flex { display: flex !important; }
.u-d-grid { display: grid !important; }
.u-d-inline { display: inline !important; }
.u-flex-1 { flex: 1 !important; }
.u-flex-1-1-420px { flex: 1 1 420px !important; }
.u-fs-12 { font-size: 12px !important; }
.u-fs-13 { font-size: 13px !important; }
.u-fs-13_5 { font-size: 13.5px !important; }
.u-fs-14 { font-size: 14px !important; }
.u-fs-15 { font-size: 15px !important; }
.u-fs-16 { font-size: 16px !important; }
.u-fs-17 { font-size: 17px !important; }
.u-fs-18 { font-size: 18px !important; }
.u-fs-20 { font-size: 20px !important; }
.u-fs-24 { font-size: 24px !important; }
.u-fw-400 { font-weight: 400 !important; }
.u-fw-600 { font-weight: 600 !important; }
.u-fw-700 { font-weight: 700 !important; }
.u-gap-1 { gap: 1px !important; }
.u-gap-10 { gap: 10px !important; }
.u-gap-12 { gap: 12px !important; }
.u-gap-14 { gap: 14px !important; }
.u-gap-4 { gap: 4px !important; }
.u-gap-6 { gap: 6px !important; }
.u-gap-8 { gap: 8px !important; }
.u-h-10 { height: 10px !important; }
.u-h-22 { height: 22px !important; }
.u-h-7 { height: 7px !important; }
.u-h-8 { height: 8px !important; }
.u-jc-between { justify-content: space-between !important; }
.u-jc-center { justify-content: center !important; }
.u-list-none { list-style: none !important; }
.u-maxh-260 { max-height: 260px !important; }
.u-maxh-320 { max-height: 320px !important; }
.u-maxh-340 { max-height: 340px !important; }
.u-maxw-100pct { max-width: 100% !important; }
.u-maxw-150 { max-width: 150px !important; }
.u-maxw-190 { max-width: 190px !important; }
.u-maxw-380 { max-width: 380px !important; }
.u-maxw-420 { max-width: 420px !important; }
.u-maxw-520 { max-width: 520px !important; }
.u-maxw-560 { max-width: 560px !important; }
.u-maxw-640 { max-width: 640px !important; }
.u-maxw-720 { max-width: 720px !important; }
.u-maxw-none { max-width: none !important; }
.u-minh-110 { min-height: 110px !important; }
.u-minh-120 { min-height: 120px !important; }
.u-minh-32 { min-height: 32px !important; }
.u-minh-50 { min-height: 50px !important; }
.u-minh-60 { min-height: 60px !important; }
.u-minh-70 { min-height: 70px !important; }
.u-minh-80 { min-height: 80px !important; }
.u-minh-90 { min-height: 90px !important; }
.u-minw-0 { min-width: 0 !important; }
.u-minw-150 { min-width: 150px !important; }
.u-minw-160 { min-width: 160px !important; }
.u-minw-180 { min-width: 180px !important; }
.u-minw-200 { min-width: 200px !important; }
.u-minw-210 { min-width: 210px !important; }
.u-minw-220 { min-width: 220px !important; }
.u-minw-230 { min-width: 230px !important; }
.u-minw-240 { min-width: 240px !important; }
.u-minw-250 { min-width: 250px !important; }
.u-minw-260 { min-width: 260px !important; }
.u-minw-280 { min-width: 280px !important; }
.u-no-underline { text-decoration: none !important; }
.u-of-auto { overflow: auto !important; }
.u-overflow-wrap-anywhere { overflow-wrap: anywhere !important; }
.u-ox-auto { overflow-x: auto !important; }
.u-pos-static { position: static !important; }
.u-pre-wrap { white-space: pre-wrap !important; }
.u-rounded-8 { border-radius: 8px !important; }
.u-row { flex-direction: row !important; }
.u-shadow-none { box-shadow: none !important; }
.u-text-align-center { text-align: center !important; }
.u-text-body { color: var(--text) !important; }
.u-text-danger { color: var(--danger-text) !important; }
.u-text-inherit { color: inherit !important; }
.u-text-ink { color: var(--ink) !important; }
.u-text-right { text-align: right !important; }
.u-text-transform-capitalize { text-transform: capitalize !important; }
.u-user-select-all { user-select: all !important; }
.u-w-100 { width: 100% !important; }
.u-w-110 { width: 110px !important; }
.u-w-130 { width: 130px !important; }
.u-w-140 { width: 140px !important; }
.u-w-200 { width: 200px !important; }
.u-w-24 { width: 24px !important; }
.u-w-300 { width: 300px !important; }
.u-w-34 { width: 34px !important; }
.u-w-34pct { width: 34% !important; }
.u-w-50pct { width: 50% !important; }
.u-w-56 { width: 56px !important; }
.u-w-62 { width: 62px !important; }
.u-w-70 { width: 70px !important; }
.u-w-90 { width: 90px !important; }
.u-white-space-normal { white-space: normal !important; }
.u-white-space-nowrap { white-space: nowrap !important; }
.u-word-break-break-all { word-break: break-all !important; }
.u-wrap { flex-wrap: wrap !important; }
.u-dim { opacity: .55 !important; }
.u-dim-60 { opacity: .6 !important; }
.u-outline-accent { outline: 2px solid var(--accent) !important; }
.u-struck { text-decoration: line-through !important; color: var(--muted) !important; }
.u-bar-danger { background: var(--danger) !important; }
.u-bar-warn { background: var(--warn) !important; }
.u-callout-coral { border-left: 3px solid var(--coral) !important; }
.u-m-9vh-auto-0 { margin: 9vh auto 0 !important; }
.u-m-12vh-auto-0 { margin: 12vh auto 0 !important; }
.u-m-8vh-auto-0 { margin: 8vh auto 0 !important; }
.u-maxw-260 { max-width: 260px !important; }
.u-maxw-297 { max-width: 297px !important; }
.u-maxw-334 { max-width: 334px !important; }
.u-maxw-371 { max-width: 371px !important; }
.u-maxw-408 { max-width: 408px !important; }
.u-maxw-265 { max-width: 265px !important; }
.u-maxw-302 { max-width: 302px !important; }

/* show/hide button under a password field (auth.js) */
.pw-toggle { align-self: flex-start; min-height: 0; padding: 2px 8px; font-size: 12px; margin-top: 2px; }

/* ---- accessibility fixes found by the keyboard and contrast audit ---------------------------------------------------------------------------- */
/* One focus ring for every control: a real outline (it survives box-shadow:none and forced-colors) in the opaque accent, 3:1 or better on both themes */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
nav.side .subgroup { color: var(--muted); opacity: 1; }
.badge { background: #b83a14; color: #fff; }                                                   /* white on #b83a14 is 5.7:1; the old orange was 2.85:1 */
:root[data-theme="dark"] .badge { background: var(--ember); color: #1a0e08; }                   /* dark text on the light orange: 8:1 */
button.danger { color: var(--danger-text); }
:root[data-theme="dark"] .skip, :root[data-theme="dark"] .seg a.on { background: #6d5bff; color: #fff; }   /* white on #8a7bff was 3.3:1 */
.st-card, .st-form, .st-form input, .st-form textarea, .st-form select { min-width: 0; max-width: 100%; }
.st-card { overflow-wrap: anywhere; }
