/* PYRA Admin (redesigned 28 Nov 2026, owner: minimal, neutral, the PYRA mark
   blurred behind, liquid glass, smooth interactive graphs).

   Black and greys for the panels and words; colour lives in the graphs and
   diagrams only (charts.js). One muted clay, --flag, marks what needs a person:
   errors, offline, removals. State is always told by a word and a shape too.
   Sora throughout; IBM Plex Mono only for IDs and serials. */

:root {
  --bg: #08080a;
  --text: #f4f4f3;
  --soft: rgba(255, 255, 255, .70);
  --muted: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --fill: rgba(255, 255, 255, .055);
  --fill-2: rgba(255, 255, 255, .10);
  --ink: #0c0c0d;
  --flag: #e2a78d;
  --dawn: var(--flag);          /* names older inline styles use */
  --raise: rgba(255, 255, 255, .12);
  --sans: "Sora", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 24px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --mx: 50%; --my: -200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); } html, body { margin: 0; min-height: 100%; color: var(--text); }
body { font: 300 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .8); outline-offset: 2px; }
::selection { background: rgba(255, 255, 255, .24); }
.mono, td.num, .num { font-variant-numeric: tabular-nums; }
.mono, .dev .num, td:first-child.num { font-family: var(--mono); font-weight: 400; font-size: .94em; }
.label { font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; display: block; }

/* ---------- the mark, behind everything ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(80% 70% at 62% 42%, #17171a, transparent 70%), var(--bg); }
.bg img { position: absolute; width: 84vmin; height: 84vmin; left: calc(50% + 126px); top: 51%; translate: -50% -50%;
  opacity: .21; filter: blur(15px); }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.55), transparent 34%), linear-gradient(0deg, rgba(8,8,10,.6), transparent 30%); }

/* ---------- glass ---------- */
.card, .table-wrap, .rail, .modal, .login-card, .search input, .search-results, .toast, .tip, .btn, .seg, .chip, .select, .input, .mode-tag {
  --edge: rgba(255, 255, 255, .20);
  position: relative; background: rgba(18, 18, 20, .46); border: 0;
  -webkit-backdrop-filter: blur(26px) saturate(1.1); backdrop-filter: blur(26px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.055), inset 0 -14px 30px -22px rgba(255,255,255,.12), 0 24px 60px -34px rgba(0,0,0,.9); }
/* The rim: bright where the light enters, gone, then a faint return. */
.card::before, .table-wrap::before, .rail::before, .modal::before, .login-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255,255,255,.48), rgba(255,255,255,.06) 26%, rgba(255,255,255,.02) 62%, rgba(255,255,255,.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* The light that follows the pointer (glass.js). */
.card::after, .modal::after, .login-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,255,255,.085), transparent 62%); opacity: 0; transition: opacity .5s var(--ease); }
.card:hover::after, .modal:hover::after, .login-card:hover::after { opacity: 1; }
.card > *, .login-card > * { position: relative; z-index: 1; }

/* ---------- sign-in ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(400px, 100%); padding: 42px 34px 30px; border-radius: 34px; text-align: center; }
.login-card .mark { width: 46px; height: 46px; margin: 0 auto 22px; display: block; }
.login-card h1 { font-weight: 300; font-size: 24px; letter-spacing: -.01em; margin: 0 0 4px; }
.login-card p { color: var(--soft); margin: 0 0 24px; font-size: 13.5px; }
.login-step { display: grid; gap: 12px; text-align: left; }
.field { display: grid; gap: 7px; }
.input { width: 100%; border-radius: 16px; padding: 12px 15px; outline: none; background: rgba(255,255,255,.06); transition: background .25s, box-shadow .25s; }
.input:focus { background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.62); }
textarea.input { border-radius: 18px; }
::placeholder { color: var(--muted); opacity: 1; }
.code { font: 400 22px/1 var(--mono); letter-spacing: .5em; text-align: center; padding-left: calc(15px + .5em); }
.login-foot { margin-top: 18px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }
.steps i { width: 22px; height: 3px; background: var(--line-2); border-radius: 3px; transition: background .4s; }
.steps i.on { background: var(--text); }
.qr { background: #fff; border-radius: 22px; padding: 12px; width: 196px; height: 196px; margin: 4px auto 6px; display: grid; place-items: center; }
.qr img { width: 172px; height: 172px; }
.secret { font: 400 12px/1.4 var(--mono); color: var(--soft); text-align: center; word-break: break-all; user-select: all; }
.form-error { color: var(--flag); font-size: 13px; min-height: 18px; margin: 0 !important; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-radius: 999px; padding: 10px 18px;
  font-size: 13px; font-weight: 400; white-space: nowrap; background: rgba(255,255,255,.085); transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.btn:hover { background: rgba(255,255,255,.16); }
.btn:active { transform: scale(.97); }
.btn-sand { background: #f1f1ef; color: var(--ink); font-weight: 600; box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(255,255,255,.5); }
.btn-sand:hover { background: #fff; }
.btn-ghost { background: rgba(255,255,255,.04); }
.btn-danger { color: var(--flag); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-wide { width: 100%; padding: 13px; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; line-height: 1.5; font-weight: 400;
  background: rgba(255,255,255,.075); color: var(--soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }  /* ring: waiting */
.pill.good { color: var(--text); } .pill.good::before { background: currentColor; }                                                /* solid: fine */
.pill.sand { color: var(--text); background: rgba(255,255,255,.13); } .pill.sand::before { background: currentColor; }
.pill.warn::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }                                     /* half: part-way */
.pill.alert { color: var(--flag); background: rgba(226,167,141,.12); } .pill.alert::before { border-radius: 2px; rotate: 45deg; background: currentColor; }
.pill.plain::before { display: none; }

.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); flex: none; }
.swatch.Silver { background: linear-gradient(135deg, #f0f0ee, #a4a4a2); }
.swatch.Black { background: linear-gradient(135deg, #4a4a4e, #0e0e0f); }
.swatch.Clear { background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.05) 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.fin { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 16px; height: calc(100vh - 32px); margin: 16px 0 16px 16px; border-radius: 30px; display: flex; flex-direction: column; padding: 20px 12px 14px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 12px 20px; }
.brand img { width: 22px; height: 22px; }
.brand b { font-weight: 600; letter-spacing: .15em; font-size: 13px; }
.brand span { font-size: 12px; color: var(--muted); margin-left: auto; }
.nav { position: relative; display: grid; gap: 1px; overflow-y: auto; scrollbar-width: none; }
.nav .group { font-size: 12px; color: var(--muted); padding: 18px 12px 6px; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 8.5px 12px; border-radius: 14px; color: var(--soft); font-size: 13.5px; transition: color .3s; }
.nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on { font-weight: 400; }
/* One glass thumb that slides to the page you open. */
.nav .thumb { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 14px; background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 0 0 1px rgba(255,255,255,.07), 0 10px 24px -16px #000; transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.rail-foot { margin-top: auto; padding: 14px 6px 0; }
.me { display: flex; align-items: center; gap: 10px; }
.me div { line-height: 1.3; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; } .me small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.10); display: grid; place-items: center; font: 400 11px/1 var(--sans); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); flex: none; }
.avatar.lg { width: 60px; height: 60px; font-size: 18px; font-weight: 300; }

.seg { position: relative; display: flex; border-radius: 999px; padding: 4px; background: rgba(255,255,255,.05); }
.seg button { position: relative; z-index: 1; flex: 1; border: 0; background: transparent; color: var(--soft); font-size: 12.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .3s; }
.seg button.on { color: var(--ink); font-weight: 400; }
.seg .thumb { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 999px; background: #f1f1ef; box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(255,255,255,.6); transition: transform .5s var(--ease), width .5s var(--ease); }
.seg.periods { width: auto; }
.seg.periods button { flex: none; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 16px 34px 12px; flex-wrap: wrap; pointer-events: none; }
.topbar > * { pointer-events: auto; }
/* Content softens away as it scrolls under the search. */
.topbar::before { content: ""; position: absolute; inset: 0 0 -14px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: rgba(8,8,10,.4); -webkit-mask: linear-gradient(#000 62%, transparent); mask: linear-gradient(#000 62%, transparent); pointer-events: none; }
.search { position: relative; flex: 1; max-width: 460px; min-width: min(260px, 100%); }
.search input { width: 100%; border-radius: 999px; padding: 11px 18px 11px 42px; outline: none; font-size: 13px; background: rgba(28,28,30,.5); transition: background .3s; }
.search input:focus { background: rgba(48,48,50,.62); }
.search svg { position: absolute; z-index: 1; left: 17px; top: 50%; translate: 0 -50%; width: 15px; stroke: var(--soft); fill: none; stroke-width: 1.6; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); border-radius: 22px; padding: 7px; background: rgba(24,24,26,.94); }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 15px; min-width: 0; }
.search-results a:hover, .search-results a:focus { background: var(--fill-2); }
.search-results .kind { margin-left: auto; }
.mode-tag { font-size: 11.5px; color: var(--soft); border-radius: 999px; padding: 7px 14px; }
.stripe-tag { margin-left: auto; }

.page { padding: 22px 34px 90px; max-width: 1420px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head h1, .prof-head h1 { font-weight: 200; font-size: 38px; line-height: 1.12; letter-spacing: -.028em; margin: 3px 0 0; }
.head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.crumb { font-size: 12.5px; color: var(--muted); }
.crumb a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; } .crumb a:hover { color: var(--text); }

/* Pages arrive, they don't pop. Filters don't replay it. */
.page.enter > * { animation: rise .7s var(--ease) both; }
.page.enter > *:nth-child(2) { animation-delay: .05s; } .page.enter > *:nth-child(3) { animation-delay: .1s; } .page.enter > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.page.wait { opacity: .45; transition: opacity .25s .12s; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { margin-top: 16px; }
.card { border-radius: var(--r); padding: 24px; min-width: 0; }
.card h3 { font-weight: 400; font-size: 14px; line-height: 1.3; letter-spacing: -.005em; color: var(--text); margin: 0 0 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 svg { width: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.card h3 .right { margin-left: auto; font-size: 12.5px; font-weight: 300; }
.tile .v { font-weight: 200; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12.5px; color: var(--soft); }
.tile .d b { color: var(--text); font-weight: 400; }
.tile .d a { text-decoration: underline; text-underline-offset: 3px; }
.tile.withring { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.hero-top { display: flex; gap: 26px 44px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.hero-n { font-weight: 200; font-size: clamp(44px, 5.4vw, 68px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.hero-top .parts { display: grid; gap: 5px; font-size: 13px; color: var(--soft); }
.hero-top .parts b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 6px; }
.hero-top .right { margin-left: auto; align-self: flex-start; display: flex; gap: 6px; }
.meter { height: 5px; background: rgba(255,255,255,.09); border-radius: 5px; overflow: hidden; margin-top: 14px; }
.meter i { display: block; height: 100%; background: #9085e9; border-radius: 5px; }
.tile .cmp { margin-top: 4px; } .tile .cmp .up, .tile .cmp .down { color: var(--text); font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 11px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--soft); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.empty { border-radius: 18px; padding: 22px; color: var(--soft); font-size: 13.5px; background: var(--fill); }
.note { font-size: 13px; color: var(--soft); margin: 0; }
.note.warn { color: var(--text); }
.period-line { margin: 0 0 14px; font-size: 13.5px; } .period-line b { font-weight: 400; }
.banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 20px; font-size: 13px; }
.error-card .soft { color: var(--flag); }
.loading { color: var(--muted); padding: 90px 0; text-align: center; font-size: 13px; }

/* ---------- tables ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 8px 15px; font-size: 12.5px; cursor: pointer; background: rgba(255,255,255,.05); color: var(--soft); display: inline-flex; gap: 8px; align-items: center; transition: background .3s, color .3s; }
.chip:hover { background: rgba(255,255,255,.12); color: var(--text); }
.chip.on { background: #f1f1ef; color: var(--ink); }
.chip .swatch { width: 10px; height: 10px; }
.chip.on .swatch.Clear { box-shadow: inset 0 0 0 1px #777; }
.select { border-radius: 999px; padding: 8px 14px; font-size: 12.5px; background: rgba(40,40,42,.6); }
.select option { background: #1b1b1d; }
.toolbar .grow { flex: 1; }
.table-wrap { border-radius: var(--r); overflow: auto; }
.card .table-wrap, .modal .table-wrap { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 14px; }
.card .table-wrap::before, .modal .table-wrap::before { display: none; }
.modal .table-wrap { background: var(--fill); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 300; font-size: 12.5px; color: var(--muted); padding: 15px 16px 12px; white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--line); white-space: nowrap; transition: background .25s; }
.card td, .card th { padding-inline: 10px; }
.card td:first-child, .card th:first-child { padding-left: 2px; } .card td:last-child, .card th:last-child { padding-right: 2px; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td, tbody tr.pick:hover td { background: rgba(255,255,255,.055); }
td.r, th.r { text-align: right; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who .avatar { width: 28px; height: 28px; font-size: 10px; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.tfoot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 6px; color: var(--muted); font-size: 12.5px; }
.scroll-x { overflow-x: auto; }

/* ---------- graphs (charts.js) ---------- */
.chart, .chart .plot { position: relative; min-width: 0; }
.chart svg { display: block; overflow: visible; touch-action: pan-y; }
.chart svg:focus-visible { outline-offset: 6px; border-radius: 12px; }
.chart .gl { stroke: rgba(255,255,255,.075); }
.chart .ax { font: 300 11px var(--sans); fill: rgba(255,255,255,.58); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--c); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart .ghost { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.chart .cross { opacity: 0; transition: opacity .25s; pointer-events: none; } .chart .cross.on { opacity: 1; }
.chart .cross line { stroke: rgba(255,255,255,.28); } .chart .cross .dot { fill: #fff; } .chart .cross .halo { fill: var(--c); opacity: .5; }
.chart .sel { fill: rgba(255,255,255,.12); opacity: 0; transition: opacity .25s; } .chart .sel.on { opacity: 1; }
.chart svg[tabindex] { cursor: crosshair; }
.chart .band { stroke: #131315; stroke-width: 2; opacity: .92; }
.tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; border-radius: 16px; padding: 10px 14px; font-size: 12px; white-space: nowrap; display: grid; gap: 1px; background: rgba(38,38,41,.72); opacity: 0; transition: opacity .25s; }
.tip.on { opacity: 1; }
.tip span { color: var(--soft); } .tip b { font-weight: 300; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .tip .was { color: var(--muted); }
.tip .row { display: flex; align-items: center; gap: 8px; } .tip .row em { margin-left: auto; padding-left: 16px; font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 4px; flex: none; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--soft); } .legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .ln { width: 18px; border-top: 2.5px solid var(--c); } .legend .ln.dash { border-top: 2px dotted rgba(255,255,255,.5); }
.legend button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--fill); border-radius: 999px; padding: 6px 13px; cursor: pointer; color: var(--text); transition: opacity .3s, background .3s; }
.legend button:hover { background: var(--fill-2); } .legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.chart.is-donut { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { position: relative; flex: none; margin: 0 auto; }
.donut .track, .ring .track { fill: none; stroke: rgba(255,255,255,.075); stroke-width: 14; }
.donut .arc { fill: none; stroke-width: 14; transition: stroke-width .4s var(--ease), opacity .3s; } .donut .arc.on { stroke-width: 22; } .donut .arc.dim { opacity: .35; }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut .mid b { font-weight: 200; font-size: 38px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .donut .mid span { font-size: 12px; color: var(--soft); margin-top: 5px; }
.dl { flex: 1; min-width: 215px; display: grid; gap: 2px; }
.dr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; font-size: 13px; transition: background .25s; } .dr span { flex: 1; }
.dr em { font-style: normal; font-variant-numeric: tabular-nums; } .dr small { color: var(--muted); width: 38px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.dr.on, a.dr:hover { background: var(--fill-2); }
.ring { flex: none; width: 74px; height: 74px; } .ring .track, .ring .val { stroke-width: 6; }
.ring .val { fill: none; stroke: var(--c); stroke-linecap: round; }
.chart .rib { transition: opacity .35s, fill-opacity .35s; outline: none; } .chart .rib.dim { opacity: .22; } .chart .rib.on, .chart .rib:focus-visible { filter: brightness(1.35); }
.chart .node rect { fill: #fff; } .chart .node text { font: 400 12.5px var(--sans); fill: var(--text); } .chart .node .nv { font-weight: 300; fill: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }

.hbars { display: grid; gap: 4px; }
.hbar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 44px; gap: 14px; align-items: center; font-size: 13px; padding: 8px 10px; margin: 0 -10px; border-radius: 13px; transition: background .25s; }
.hbar:hover { background: var(--fill); }
.hbar .track { height: 8px; background: rgba(255,255,255,.075); border-radius: 8px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--c, #9085e9); border-radius: 8px; transform-origin: left; }
.page.enter .hbar .track i, .page.enter .meter i { animation: grow 1s var(--ease) .15s both; } @keyframes grow { from { transform: scaleX(0); } }
.meter i { transform-origin: left; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- profile ---------- */
.prof-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.prof-head .sub { color: var(--soft); font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 7px; }
.prof-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dev { display: flex; gap: 13px; align-items: center; padding: 13px 15px; background: var(--fill); border-radius: 18px; } .dev + .dev { margin-top: 8px; }
.dev > div:nth-child(2) { min-width: 0; }
.dev .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--fill-2); display: grid; place-items: center; font: 400 10px var(--mono); flex: none; }
.dev .meta { font-size: 12.5px; color: var(--soft); }
.dev .right { margin-left: auto; text-align: right; font-size: 12px; flex: none; }
.private li { display: flex; gap: 11px; align-items: center; padding: 7px 0; color: var(--soft); font-size: 13.5px; }
.private ul { list-style: none; margin: 0; padding: 0; }
.private li svg { width: 14px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13.5px; overflow-wrap: anywhere; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.timeline li::after { content: ""; position: absolute; left: 5.5px; top: 19px; bottom: -3px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }
.alarms { display: flex; gap: 8px; flex-wrap: wrap; }
.alarm { background: var(--fill); border-radius: 18px; padding: 13px 16px; min-width: 130px; }
.alarm b { font-weight: 200; font-size: 26px; letter-spacing: -.02em; display: block; font-variant-numeric: tabular-nums; } .alarm small { color: var(--soft); font-size: 12px; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .attn li:first-child { border-top: 0; padding-top: 0; }
.attn .n { font-weight: 200; font-size: 24px; min-width: 34px; font-variant-numeric: tabular-nums; } .attn li.zero { color: var(--muted); } .attn a { margin-left: auto; flex: none; }

/* ---------- pop-ups ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; z-index: 20; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 16px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 30px; padding: 28px; background: rgba(34,34,37,.74); animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal h2 { font-weight: 300; font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.modal p { color: var(--soft); margin: 0 0 16px; font-size: 13.5px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.modal textarea { min-height: 78px; resize: vertical; }
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; background: rgba(240,240,238,.92); color: var(--ink); padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 400; z-index: 30; animation: pop .45s var(--ease); max-width: calc(100vw - 32px); }
.noaccess { text-align: center; padding: 110px 20px; color: var(--soft); } .noaccess h2 { font-weight: 200; font-size: 28px; color: var(--text); }

/* ---------- narrower ---------- */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .shell { grid-template-columns: 228px minmax(0, 1fr); } .page { padding-inline: 24px; } .topbar { padding-inline: 24px; } }
@media (max-width: 860px) {
  .shell { display: block; }
  /* On a phone the menu is a glass bar you swipe, at the thumb. */
  .rail { position: fixed; z-index: 10; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; height: auto; margin: 0; padding: 7px; border-radius: 26px; background: rgba(26,26,28,.62); }
  .brand, .nav .group { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 2px; border-radius: 20px; }
  .nav a { flex: none; flex-direction: column; gap: 3px; padding: 8px 13px; font-size: 11px; border-radius: 19px; } .nav .thumb { border-radius: 19px; }
  .rail-foot { display: none; }
  .topbar { padding: 12px 16px 8px; flex-wrap: nowrap; gap: 8px; } .search { max-width: none; min-width: 0; } .stripe-tag { display: none; }
  .page { padding: 14px 16px 130px; }
  .head h1, .prof-head h1 { font-size: 31px; } .head .actions, .prof-head .actions { margin-left: 0; }
  .g4 { gap: 12px; } .g2e { grid-template-columns: minmax(0, 1fr); } .card { padding: 20px; }
  .tile .v { font-size: 29px; } .tile.withring { align-items: flex-start; } .tile .ring { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; } .tile .ring svg { width: 44px; height: 44px; } .tile.withring .label { display: block; padding-right: 44px; }
  .g4 .card { padding: 17px; }
  .seg.periods { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .kv { grid-template-columns: 112px minmax(0, 1fr); } .hbar { grid-template-columns: 118px minmax(0, 1fr) 34px; }
  .bg img { left: 50%; top: 38%; width: 150vw; height: 150vw; }
  .phone-out { display: inline-flex !important; } .toast { bottom: 108px; }
}
.phone-out { display: none; }
@media (max-width: 340px) { .g4 { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .card, .table-wrap, .rail, .modal, .login-card, .search input, .tip, .toast { background: #1a1a1c; -webkit-backdrop-filter: none; backdrop-filter: none; } .toast { background: #f1f1ef; } .bg img { display: none; } }
@media (prefers-contrast: more) { :root { --soft: #e6e6e6; --muted: #cfcfcf; --line: rgba(255,255,255,.34); } .bg img { opacity: .1; } }

/* Signed out there is no side menu, so the mark sits in the middle. */
body:has(.login) .bg img { left: 50%; top: 50%; opacity: .3; }
body:has(.login) .bg::after { background: none; }
@media (hover: none) { .hint { display: none; } }
