/* The console in the family design (docs/design/FAMILY.md), 2 October 2026.

   Loaded after family.css, which holds the tokens (dark is :root, light is html.light). This sheet is the console's
   own: the frame (a navigation card and a page card on the canvas), the page head, and the shapes every area is
   built from: one frost surface with rows and hairlines, quiet figures, pill controls, round icon buttons, tables
   with air, glass for what floats. Tokens only: no colour is written here that the family does not name, apart
   from the three meanings the app keeps (alert, success, the warm second colour).

   The utilities the areas write in their markup live in a cascade layer, so a rule here always wins over them.
   A class of this sheet that sets `display` is listed in the `.hidden` rule at the end. */

/* 0. What the console adds to the tokens ---------------------------------------------------------------- */
:root:root {
  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-heading: "Figtree", system-ui, sans-serif;
  --font-mono: "Figtree", system-ui, sans-serif;
  --color-alert: #e11d48;
  --color-alert-ink: #fb7185;
  --color-danger: #ef4444;
  --color-success: #22c55e;
  --color-success-ink: #5fdd8f;
  --color-brand-2: #fb8a4c;
  --color-warm-ink: #fdb38a;
  --adm-nav-w: 304px;
  /* each app's tint (3 November 2026): its tile, the panel's title and the line above every page title */
  --app-bitesized: #fb7d65;
  --app-dose: #a78bfa;
  --app-library: #7b93ff;
  --app-ask: #e879c9;
  --app-all: #94a3b8;
  --app-home: #8a7dff;
  --one-grad: linear-gradient(120deg, #5b82ff 0%, #8a6bff 56%, #d072d6 100%);
  --adm-top-h: 68px;
  --adm-alert-soft: color-mix(in srgb, var(--color-alert) 16%, transparent);
  --adm-ok-soft: color-mix(in srgb, var(--color-success) 15%, transparent);
  --adm-warm-soft: color-mix(in srgb, var(--color-brand-2) 16%, transparent);
  --adm-quiet-soft: color-mix(in srgb, var(--color-foreground) 8%, transparent);
  --adm-glass: color-mix(in srgb, var(--color-card) 86%, transparent);
  color-scheme: dark;
}
html.light:root {
  --app-bitesized: #e2563f;
  --app-dose: #6d3ae8;
  --app-library: #2f5cff;
  --app-ask: #c13b9e;
  --app-all: #5b6475;
  --app-home: #5b4ce0;
  --one-grad: linear-gradient(120deg, #2b5ce6 0%, #6d3ae8 56%, #c13b9e 100%);
  --color-alert: #e11d48;
  --color-alert-ink: #be123c;
  --color-success: #16a34a;
  /* the two inks a little deeper than the family's first pass: 12px bold on its own soft tint read 4.0 to 4.47
     against the 4.5 small text needs (a2 audit); now 4.9 or more on every surface a pill sits on */
  --color-success-ink: #0b6a2f;
  --color-brand-2: #f26a2e;
  --color-warm-ink: #a03e0a;
  --adm-alert-soft: color-mix(in srgb, var(--color-alert) 10%, transparent);
  --adm-ok-soft: color-mix(in srgb, var(--color-success) 12%, transparent);
  --adm-warm-soft: color-mix(in srgb, var(--color-brand-2) 13%, transparent);
  --adm-quiet-soft: color-mix(in srgb, var(--color-foreground) 6%, transparent);
  --adm-glass: color-mix(in srgb, var(--color-card) 82%, transparent);
  color-scheme: light;
}

/* 1. Base ----------------------------------------------------------------------------------------------- */
html { height: 100%; }
body {
  min-height: 100%; margin: 0; background: var(--canvas); color: var(--color-foreground);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-heading); }
button, a, summary, label, input, select, textarea, [role="button"], [role="tab"], [role="switch"] {
  transition-property: color, background-color, border-color, box-shadow, opacity;
  transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
button { cursor: pointer; }
button:disabled { cursor: default; }
:where(button, a, summary, input, select, textarea, [role="button"], [role="tab"], [role="switch"], [tabindex]):focus-visible {
  outline: 2px solid var(--color-brand); outline-offset: 2px;
}
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-foreground) 18%, transparent) transparent; }
::selection { background: color-mix(in srgb, var(--color-brand) 28%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.adm-num { font-variant-numeric: tabular-nums; }
.font-mono { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
pre, code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* the first Tab stop: past the menu, straight to the page (seen only while it has focus) */
.adm-skip {
  position: fixed; top: 10px; left: 10px; z-index: 210; display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 14px; font-weight: 600;
  text-decoration: none; transform: translateY(-64px);
}
.adm-skip:focus { transform: none; }
/* the page's title takes focus after a move to another area so reading continues from there; it is not a control */
.adm-h1:focus { outline: none; }
#admPage:focus { outline: none; }

/* 2. The frame: a navigation card and a page card on the canvas ------------------------------------------- */
.adm-shell {
  display: grid; grid-template-columns: var(--adm-nav-w) minmax(0, 1fr); gap: var(--frame);
  height: 100dvh; padding: var(--frame);
}
.adm-rail {
  position: relative; z-index: 60; display: flex; min-height: 0; flex-direction: column; gap: 18px; padding: 16px 16px 12px;
  border: 1px solid var(--frost-line); border-radius: var(--frame-r);
  background: radial-gradient(300px 260px at 0% 0%, var(--field-a), transparent 74%), var(--color-card);
  box-shadow: var(--frost-rim);
}
.adm-main {
  position: relative; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--frost-line); border-radius: var(--frame-r);
  background:
    radial-gradient(760px 520px at 92% -90px, var(--field-a), transparent 72%),
    radial-gradient(560px 420px at 2% -60px, var(--field-b), transparent 72%),
    radial-gradient(680px 460px at 38% calc(100% + 110px), var(--field-c), transparent 72%),
    var(--color-background);
  box-shadow: var(--frost-rim);
  scroll-padding-top: calc(var(--adm-top-h) + 12px);
}
.adm-scrim { display: none; }

/* the brand */
.adm-brand { display: flex; align-items: center; gap: 12px; height: 44px; padding-left: 4px; }
.adm-brand-mark {
  display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 11px;
  background: var(--brand-grad); color: #fff; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 16px -10px var(--color-brand);
}
.adm-brand-name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.adm-brand-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--adm-quiet-soft); font-size: 12px; font-weight: 600; color: var(--oryn-text-2);
}

/* 3. Navigation rows ------------------------------------------------------------------------------------- */
.adm-navlist { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 6px; margin: 0 -6px; padding: 0 6px; overflow-y: auto; scrollbar-width: none; }
.adm-navlist::-webkit-scrollbar { display: none; }
.adm-navgroup {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); text-align: left;
}
.adm-navgroup:hover { color: var(--color-foreground); }
.adm-navgroup[aria-expanded="false"]:hover { background: var(--color-muted); }
.adm-navgroup-caret { font-size: 13px; transition: rotate .28s var(--ease-out); }
.adm-navgroup[aria-expanded="false"] .adm-navgroup-caret { rotate: -90deg; }
.adm-navgroup[aria-expanded="true"] .adm-navgroup-sum { display: none; }
.adm-navsec { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--ease-out); }
.adm-navsec.is-closed { grid-template-rows: 0fr; }
.adm-navsec-in { display: flex; min-height: 0; flex-direction: column; gap: 3px; overflow: hidden; }
.adm-navsec.is-closed .adm-navsec-in { visibility: hidden; transition: visibility 0s .32s; }
.adm-nav {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 42px; flex: none; padding: 0 12px; border-radius: 13px;
  font-size: 15px; font-weight: 500; color: var(--oryn-text-2); text-align: left;
}
.adm-nav-ic { flex: none; width: 24px; font-size: 21px; line-height: 1; text-align: center; color: var(--color-muted-foreground); transition: color .16s var(--ease-out); }
.adm-nav:hover { background: var(--color-muted); color: var(--color-foreground); }
.adm-nav:hover .adm-nav-ic { color: var(--color-foreground); }
.adm-nav[aria-current="page"] { background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; }
.adm-nav[aria-current="page"] .adm-nav-ic { color: var(--color-brand); }
.adm-nav-count {
  display: grid; flex: none; min-width: 22px; height: 22px; padding: 0 7px; place-items: center; border-radius: 999px;
  background: var(--color-card); box-shadow: 0 0 0 1px var(--frost-line);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-brand-ink);
}
.adm-nav-count.is-alert { background: var(--adm-alert-soft); box-shadow: none; color: var(--color-alert-ink); }

/* who is signed in */
.adm-rail-out { padding: 6px 0 4px; }
.adm-rail-out .adm-nav { text-decoration: none; }
.adm-nav-out-ic { flex: none; font-size: 12px; color: var(--color-muted-foreground); }
.adm-me { display: flex; align-items: center; gap: 12px; padding: 12px 2px 0 6px; border-top: 1px solid var(--color-border); }
.adm-avatar {
  display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 50%;
  background: var(--brand-soft); font-size: 13px; font-weight: 700; color: var(--color-brand-ink);
}
.adm-me-name { margin: 0; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.adm-me-role { margin: 2px 0 0; font-size: 12.5px; color: var(--color-muted-foreground); }

/* 4. The top bar, inside the page card ------------------------------------------------------------------- */
.adm-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  height: var(--adm-top-h); padding: 0 20px;
}
/* no blur here: the page fades into the paper as it passes under the bar */
.adm-top::before {
  content: ''; position: absolute; inset: 0 0 -14px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--color-background) 0%, var(--color-background) 62%, color-mix(in srgb, var(--color-background) 0%, transparent) 100%);
  opacity: 0; transition: opacity .2s var(--ease-out);
}
.adm-main.is-scrolled .adm-top::before { opacity: 1; }
.adm-search {
  display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; max-width: 520px; height: 46px; padding: 0 8px 0 18px;
  border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong);
  box-shadow: var(--frost-rim), var(--frost-shadow);
  font-size: 15px; color: var(--color-muted-foreground); text-align: left;
}
.adm-search > i { flex: none; font-size: 19px; }
.adm-search:hover { border-color: var(--oryn-border-hover); color: var(--oryn-text-2); }
.adm-search-long { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-search-short { display: none; }
.adm-kbd {
  display: inline-flex; align-items: center; height: 28px; margin-left: auto; padding: 0 10px; border-radius: 999px;
  background: var(--adm-quiet-soft); font-size: 12px; font-weight: 600; color: var(--color-muted-foreground);
}
.adm-top-end { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.adm-envchip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 11px; border-radius: 999px;
  border: 1px solid var(--frost-line); background: var(--frost-strong);
  font-size: 12.5px; font-weight: 600; color: var(--oryn-text-2); white-space: nowrap;
}
.adm-envchip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-alert); box-shadow: 0 0 0 3px var(--adm-alert-soft); }

/* round icon buttons: in the bar they are raised, anywhere else they are quiet until touched */
.adm-iconbtn {
  position: relative; display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 50%;
  font-size: 18px; color: var(--color-muted-foreground);
}
.adm-iconbtn:hover { background: var(--color-muted); color: var(--color-foreground); }
.adm-top .adm-iconbtn {
  width: 44px; height: 44px; border: 1px solid var(--frost-line); background: var(--frost-strong);
  box-shadow: var(--frost-rim), var(--frost-shadow); font-size: 19px; color: var(--oryn-text-2);
}
.adm-top .adm-iconbtn:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }

/* 5. The page and its head -------------------------------------------------------------------------------- */
.adm-page { max-width: 1180px; margin: 0 auto; padding: 14px 36px 80px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.adm-head-txt { min-width: 0; flex: 1 1 420px; }
.adm-head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-h1 { margin: 0; font-size: clamp(28px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; }
.adm-head .adm-sub { margin-top: 8px; max-width: 64ch; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.adm-h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.adm-h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.adm-sub { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.adm-h2 + .adm-sub { margin-top: 6px; }
/* a small label is a quiet sentence, never a shout */
.adm-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-muted-foreground); }
/* the spacing utilities the areas use between their blocks, opened up */
#admBody .gap-3 { gap: 16px; }
#admBody .mt-3 { margin-top: 16px; }
#admBody .mb-3 { margin-bottom: 16px; }
#admBody .mt-5 { margin-top: 26px; }
#admBody .mb-5 { margin-bottom: 26px; }

/* 6. Surfaces ---------------------------------------------------------------------------------------------- */
.adm-card {
  border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost);
  box-shadow: var(--frost-rim), var(--frost-shadow);
}
.adm-card.p-3 { padding: 16px 18px; }
.adm-card.p-4 { padding: 20px 22px; }
.adm-card.p-5 { padding: 24px 26px; }
.adm-card.p-6 { padding: 28px 30px; }
/* what sits inside a surface, or inside the drawer, is a well, not a second box */
.adm-card .adm-card, .adm-drawer .adm-card, .adm-rows .adm-card {
  border-color: transparent; border-radius: 18px; background: var(--frost-well); box-shadow: none;
}
.adm-card .adm-card.p-3, .adm-drawer .adm-card.p-3 { padding: 14px 16px; }

/* one surface, rows with hairlines */
.adm-rows {
  overflow: hidden; border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost);
  box-shadow: var(--frost-rim), var(--frost-shadow);
}
.adm-row { position: relative; display: flex; min-height: 64px; align-items: center; gap: 16px; padding: 14px 22px; }
.adm-row + .adm-row { border-top: 1px solid var(--frost-line); }
.adm-row--top { align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
:is(button, a).adm-row, .adm-row[tabindex] { width: 100%; text-align: left; cursor: pointer; }
:is(button, a).adm-row:hover, .adm-row[tabindex]:hover { background: var(--oryn-surface-hover); }
.adm-row:focus-visible { outline-offset: -3px; border-radius: 20px; }
.adm-row-main { min-width: 0; flex: 1; }
.adm-row-t { margin: 0; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; }
.adm-row-s { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted-foreground); }
.adm-row-ic {
  display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%;
  background: var(--frost-well); font-size: 18px; color: var(--oryn-text-2);
}
.adm-row-ic.is-brand { background: var(--brand-soft); color: var(--color-brand); }
.adm-row-ic.is-bad { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.adm-row-ic.is-ok { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.adm-row-ic.is-warm { background: var(--adm-warm-soft); color: var(--color-warm-ink); }
.adm-row-end { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.adm-row-meta { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); white-space: nowrap; }
/* inside the text column a longer line (country, register, hospital) may wrap instead of running out of the row */
.adm-row-main .adm-row-meta { flex: 0 1 auto; min-width: 0; }
.adm-rows-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding: 22px 24px 14px; }
.adm-rows-head + .adm-row { border-top: 1px solid var(--frost-line); }
.adm-rows-foot { padding: 14px 22px; border-top: 1px solid var(--frost-line); font-size: 13px; color: var(--color-muted-foreground); }

/* a section inside a page: its title, one line, then its surface */
.adm-sec { margin-top: 36px; }
.adm-sec:first-child { margin-top: 0; }
.adm-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.adm-sec-head .adm-sub { margin-top: 4px; max-width: 64ch; }

/* quiet figures: the numbers that matter, in one surface, with hairlines between them */
.adm-figs, #admBody .grid:has(> .adm-stat) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; overflow: hidden;
  border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost);
  box-shadow: var(--frost-rim), var(--frost-shadow);
}
.adm-stat { display: flex; min-width: 0; flex-direction: column; gap: 4px; margin: 0 0 -1px -1px; padding: 20px 24px 20px 25px; border-left: 1px solid var(--frost-line); border-bottom: 1px solid var(--frost-line); }
.adm-stat-l { margin: 0; font-size: 13px; font-weight: 500; color: var(--color-muted-foreground); }
.adm-stat-v { margin: 2px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-stat-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--color-muted-foreground); }
.adm-stat .adm-chart { margin-top: 10px; }
.adm-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-delta.up { color: var(--color-success-ink); }
.adm-delta.down { color: var(--color-alert-ink); }
.adm-delta.flat { color: var(--color-muted-foreground); }

/* a notice inside a page: one line of what is true, with its icon */
.adm-note {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: var(--frost-well); font-size: 14px; line-height: 1.5; color: var(--oryn-text-2);
}
.adm-note > i { flex: none; margin-top: 2px; font-size: 18px; color: var(--color-brand); }
.adm-note--bad { background: var(--adm-alert-soft); }
.adm-note--bad > i { color: var(--color-alert-ink); }
.adm-note--warm { background: var(--adm-warm-soft); }
.adm-note--warm > i { color: var(--color-warm-ink); }
.adm-note b, .adm-note strong { font-weight: 600; color: var(--color-foreground); }

/* 7. Controls ---------------------------------------------------------------------------------------------- */
.adm-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), box-shadow .32s var(--ease-out);
}
.adm-btn > i { font-size: 16px !important; }
.adm-btn--primary { background: var(--color-brand); color: var(--color-primary-foreground); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 8px 18px -10px var(--color-brand); }
.adm-btn--primary:hover { background: var(--color-brand-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.adm-btn--ghost { border-color: var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim); color: var(--color-foreground); }
.adm-btn--ghost:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); box-shadow: var(--frost-rim), var(--frost-shadow); }
.adm-btn--danger { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.adm-btn--danger:hover { background: color-mix(in srgb, var(--color-alert) 22%, transparent); }
.adm-btn:disabled, .adm-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.adm-btn--lg { height: 46px; padding: 0 22px; font-size: 15px; }
.adm-btn[data-sm], .adm-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.adm-btn[data-sm] > i, .adm-btn--sm > i { font-size: 14px !important; }
/* a choice that is on: the accent's soft tint, never a dark pressed state */
.adm-btn[aria-pressed="true"], .adm-btn[aria-current="true"], .adm-btn[aria-selected="true"], .adm-btn.is-on {
  border-color: transparent; background: var(--brand-soft); box-shadow: none; color: var(--color-brand-ink);
}
.adm-btn.w-full { width: 100%; }

/* round icon buttons for the actions of a row: they come out on hover, and the keyboard always reaches them */
.adm-ic {
  position: relative; display: inline-grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 50%;
  font-size: 17px; color: var(--color-muted-foreground);
}
.adm-ic:hover, .adm-ic:focus-visible { background: var(--color-muted); color: var(--color-brand-ink); }
.adm-ic--danger:hover, .adm-ic--danger:focus-visible { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.adm-ic--ok:hover, .adm-ic--ok:focus-visible { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.adm-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
@media (hover: hover) {
  .adm-table tr .adm-acts, .adm-row .adm-acts { opacity: 0; transition: opacity .16s var(--ease-out); }
  .adm-table tr:hover .adm-acts, .adm-table tr:focus-within .adm-acts, .adm-table tr:focus-visible .adm-acts,
  .adm-row:hover .adm-acts, .adm-row:focus-within .adm-acts { opacity: 1; }
}

/* segments: a pill of wells with one raised piece */
.adm-seg {
  display: inline-flex; max-width: 100%; flex: none; gap: 2px; padding: 4px; overflow-x: auto; border: 1px solid var(--frost-line);
  border-radius: 999px; background: var(--color-muted); scrollbar-width: none;
}
.adm-seg::-webkit-scrollbar { display: none; }
.adm-seg > :is(button, a), .adm-seg > .adm-btn {
  display: inline-flex; flex: none; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; font-size: 13.5px; font-weight: 500; color: var(--color-muted-foreground); white-space: nowrap;
}
.adm-seg > :is(button, a) > i { font-size: 16px !important; }
.adm-seg > :is(button, a):hover { background: transparent; color: var(--color-foreground); box-shadow: none; }
.adm-seg > :is(button, a):is([aria-pressed="true"], [aria-current="true"], [aria-selected="true"], .is-on) {
  background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); font-weight: 600; color: var(--color-foreground);
}
.adm-seg small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.adm-seg > :is([aria-pressed="true"], [aria-current="true"], [aria-selected="true"], .is-on) small { color: var(--color-brand-ink); }

/* the bar over a list: search and filters on one row */
.adm-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; }
.adm-bar-row > .adm-count { margin-left: auto; }
.adm-count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); white-space: nowrap; }
.adm-find { position: relative; display: flex; min-width: 220px; align-items: center; max-width: 420px; }
.adm-bar-row > .adm-find { flex: 1 1 260px; }
.adm-find > i { position: absolute; left: 17px; top: 50%; translate: 0 -50%; font-size: 18px; color: var(--color-muted-foreground); pointer-events: none; }
.adm-find > .fld, .adm-find > input { height: 46px; padding-left: 46px; border-radius: 999px; box-shadow: var(--frost-rim), var(--frost-shadow); }
.adm-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.adm-pager > span { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }

/* fields */
.fld {
  width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--frost-line); border-radius: 14px;
  background: var(--frost-strong); box-shadow: var(--frost-rim); outline: none;
  font-family: var(--font-sans); font-size: 15px; color: var(--color-foreground);
  transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out), background-color .22s var(--ease-out);
}
.fld:hover { border-color: var(--oryn-border-hover); }
.fld:focus { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); background: var(--color-card); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
.fld::placeholder { color: var(--color-muted-foreground); }
.fld:disabled { opacity: .6; }
textarea.fld { height: auto; min-height: 96px; padding: 12px 16px; border-radius: 16px; line-height: 1.5; resize: vertical; }
select.fld {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%238a8f9c' stroke-width='22' stroke-linecap='round' stroke-linejoin='round' d='m208 96-80 80-80-80'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.fld-shake { border-color: var(--color-alert) !important; box-shadow: 0 0 0 4px var(--adm-alert-soft) !important; }
.lbl { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--color-foreground); }
.adm-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted-foreground); }
.adm-form { display: flex; flex-direction: column; gap: 16px; }
.adm-form-err { margin: 0; font-size: 13.5px; color: var(--color-alert-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-brand); }

/* the switch */
.sw {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--color-foreground) 16%, transparent); box-shadow: inset 0 1px 2px rgba(20, 28, 60, .14);
  transition: background-color .26s var(--ease-out), box-shadow .32s var(--ease-out);
}
.sw::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out);
}
.sw.on { background: var(--color-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -8px var(--color-brand); }
.sw.on::after { transform: translateX(18px); }
.sw:disabled { opacity: .5; cursor: default; }

/* 8. Chips ------------------------------------------------------------------------------------------------- */
.adm-pill {
  display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.adm-pill > i { font-size: 12px !important; }
.adm-pill--ok { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.adm-pill--warn { background: var(--adm-warm-soft); color: var(--color-warm-ink); }
.adm-pill--bad { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.adm-pill--mute { background: var(--adm-quiet-soft); color: var(--oryn-text-2); }
.adm-pill--brand { background: var(--brand-soft); color: var(--color-brand-ink); }
button.adm-pill { height: 34px; padding: 0 14px; font-size: 13px; cursor: pointer; }
button.adm-pill--mute:hover { background: color-mix(in srgb, var(--color-foreground) 12%, transparent); color: var(--color-foreground); }

/* 9. Tables: dense, with air -------------------------------------------------------------------------------- */
.adm-tablewrap {
  border: 1px solid var(--frost-line); border-radius: 24px; background: var(--frost);
  box-shadow: var(--frost-rim), var(--frost-shadow);
}
table.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.adm-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 15px 18px 13px; border-bottom: 1px solid var(--frost-line);
  background: color-mix(in srgb, var(--color-card) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left; white-space: nowrap;
  color: var(--color-muted-foreground);
}
.adm-table thead th:first-child { padding-left: 24px; border-top-left-radius: 23px; }
.adm-table thead th:last-child { padding-right: 24px; border-top-right-radius: 23px; }
.adm-table thead th.text-right { text-align: right; }
.adm-table thead th button { display: inline-flex; align-items: center; gap: 5px; font: inherit; color: inherit; }
.adm-table thead th button:hover { color: var(--color-foreground); }
.adm-table tbody td { height: 60px; padding: 10px 18px; border-bottom: 1px solid var(--frost-line); vertical-align: middle; }
.adm-table tbody td:first-child { padding-left: 24px; }
.adm-table tbody td:last-child { padding-right: 24px; }
/* a date or a count never breaks into three lines on a narrower page */
.adm-table tbody td .adm-num, .adm-table tbody td.text-right, .adm-table tbody td .adm-pill { white-space: nowrap; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { transition: background-color .14s var(--ease-out); }
.adm-table tbody tr:hover { background: var(--oryn-surface-hover); }
.adm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 23px; }
.adm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 23px; }
.adm-table tr[tabindex="0"] { cursor: pointer; }
.adm-table tr[tabindex="0"]:focus-visible, .adm-rowcard[tabindex="0"]:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -3px; border-radius: 16px; }
@media (min-width: 1536px) {
  /* the head sticks under the top bar while the page moves; the surface clips instead of scrolling.
     Only where the page is wide enough for every table to fit: below this a table that is too wide
     scrolls sideways inside its surface, so a column is never cut off. */
  .adm-main .adm-tablewrap { overflow: clip; }
  .adm-main .adm-table thead th { top: var(--adm-top-h); }
  .adm-drawer .adm-tablewrap { overflow-x: auto; }
  .adm-drawer .adm-table thead th { top: 0; }
}
@media (min-width: 1024px) and (max-width: 1535.98px) {
  /* a narrower page: the columns sit a little closer so the table still fits without scrolling */
  .adm-table thead th, .adm-table tbody td { padding-left: 12px; padding-right: 12px; }
  .adm-table thead th:first-child, .adm-table tbody td:first-child { padding-left: 20px; }
  .adm-table thead th:last-child, .adm-table tbody td:last-child { padding-right: 20px; }
}
/* below 1024px a table is a list of rows */
.adm-rowcard { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--frost-line); }
.adm-rowcard:last-child { border-bottom: 0; }
.adm-rowcard[tabindex="0"] { cursor: pointer; }
.adm-rowcard-t { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.adm-rowcard-f { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.adm-rowcard-v { min-width: 0; font-size: 14px; text-align: right; }
/* a person in a row: the round portrait, the name, one line */
.adm-who { display: flex; min-width: 0; align-items: center; gap: 12px; }
.adm-who-ini {
  display: grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 50%;
  background: var(--brand-soft); font-size: 12.5px; font-weight: 700; color: var(--color-brand-ink);
}
.adm-who-ini--lg { width: 56px; height: 56px; font-size: 18px; }
.adm-who-txt { min-width: 0; }
.adm-who-txt > b, .adm-who-txt > span:first-child { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.adm-who-txt > small, .adm-who-txt > span + span { display: block; overflow: hidden; margin-top: 1px; font-size: 13px; font-weight: 400; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
/* facts about one thing: a label and its value per line, hairlines between */
.adm-facts { display: flex; flex-direction: column; }
.adm-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--frost-line); font-size: 14.5px; }
.adm-fact:last-child { border-bottom: 0; }
.adm-fact > :first-child { flex: none; font-size: 13.5px; color: var(--color-muted-foreground); }
.adm-fact > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
/* on a phone a long label ("Name on their BiteSized account") left the value a sliver that broke letter by letter */
@media (max-width: 520px) { .adm-fact > :first-child { flex: 0 1 auto; max-width: 45%; } }

/* 10. Charts ------------------------------------------------------------------------------------------------- */
.adm-chart { display: block; width: 100%; overflow: visible; }
.adm-chart .grid { stroke: var(--frost-line); stroke-width: 1; }
.adm-chart .axis { fill: var(--color-muted-foreground); font-family: var(--font-sans); font-size: 11px; }
.adm-chart .series { fill: none; stroke: var(--color-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-chart .series2 { fill: none; stroke: var(--color-brand-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 5; }
.adm-chart .area { fill: color-mix(in srgb, var(--color-brand) 10%, transparent); }
.adm-chart .bar, .adm-chart .dot { fill: var(--color-brand); }
.adm-chart .bar2 { fill: var(--color-brand-2); }
.adm-legends { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; }
.adm-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted-foreground); }
.adm-legend > span { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.adm-bars { display: flex; flex-direction: column; gap: 14px; }
.adm-bar { display: flex; align-items: center; gap: 14px; }
.adm-bar-l { width: 38%; flex: none; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.adm-bar-t { height: 10px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--adm-quiet-soft); }
.adm-bar-t > span { display: block; height: 100%; border-radius: 999px; }
.adm-bar-v { width: 52px; flex: none; font-size: 13px; text-align: right; color: var(--color-muted-foreground); }
.adm-heat { display: inline-block; width: 100%; padding: 5px 10px; border-radius: 10px; font-size: 13px; }

/* 11. What floats: real glass ------------------------------------------------------------------------------- */
/* the drawer: a glass card that slides in beside the page */
.adm-drawer-scrim {
  position: fixed; inset: 0; z-index: 85; background: color-mix(in srgb, var(--canvas) 55%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out);
}
.adm-drawer {
  position: fixed; top: var(--frame); right: var(--frame); bottom: var(--frame); z-index: 90; display: flex; flex-direction: column;
  width: min(580px, calc(100% - var(--frame) * 2)); overflow: hidden;
  border: 1px solid var(--frost-line); border-radius: 26px; background: var(--adm-glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: var(--frost-rim), var(--frost-pop);
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform .4s var(--ease-out), visibility 0s .4s;
}
body.adm-drawer-open .adm-drawer { transform: none; visibility: visible; transition: transform .4s var(--ease-out), visibility 0s; }
body.adm-drawer-open .adm-drawer-scrim { opacity: 1; pointer-events: auto; }
.adm-drawer-head { display: flex; flex: none; align-items: center; gap: 12px; padding: 18px 16px 14px 26px; }
.adm-drawer-body { min-height: 0; flex: 1; overflow-y: auto; padding: 6px 26px 28px; }
.adm-drawer .adm-eyebrow { display: block; }

/* dialogs: glass, one primary pill; what cannot be undone wears the alert colour */
.adm-dialog-bd, #admConfirm > .absolute.inset-0 {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 55%, transparent) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important; backdrop-filter: blur(10px) saturate(1.2) !important;
}
#admConfirm > .adm-card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px;
  border: 1px solid var(--frost-line); border-radius: 26px; background: var(--adm-glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: var(--frost-rim), var(--frost-pop);
}
.adm-dialog-ic {
  display: grid; width: 48px; height: 48px; margin-bottom: 16px; place-items: center; border-radius: 50%;
  background: var(--brand-soft); font-size: 22px; color: var(--color-brand);
}
.adm-dialog--danger .adm-dialog-ic { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.adm-dialog-body { margin-top: 8px; white-space: pre-line; }
.adm-dialog-type { margin-top: 20px; }
.adm-dialog-type b { font-weight: 600; overflow-wrap: anywhere; }
.adm-dialog-acts, #admConfirm > .adm-card > .flex.justify-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
#admConfirm .adm-btn--danger { background: var(--color-alert); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -10px var(--color-alert); }
#admConfirm .adm-btn--danger:hover { background: color-mix(in srgb, var(--color-alert) 88%, #000); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 4px var(--adm-alert-soft); }

/* the command palette */
.adm-cmd { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: 12vh 16px 16px; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .18s var(--ease-out), visibility 0s .18s; }
body.adm-cmd-open .adm-cmd { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .18s var(--ease-out), visibility 0s; }
.adm-cmd-bd { position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 55%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.adm-cmd-box {
  position: relative; width: min(640px, 100%); overflow: hidden; border: 1px solid var(--frost-line); border-radius: 26px;
  background: var(--adm-glass); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: var(--frost-rim), var(--frost-pop); transform: translateY(-8px); transition: transform .3s var(--ease-out);
}
body.adm-cmd-open .adm-cmd-box { transform: none; }
.adm-cmd-field { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 24px; border-bottom: 1px solid var(--frost-line); }
.adm-cmd-field > i { flex: none; font-size: 20px; color: var(--color-muted-foreground); }
.adm-cmd-in { min-width: 0; flex: 1; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--font-sans); font-size: 16.5px; color: var(--color-foreground); }
.adm-cmd-in::placeholder { color: var(--color-muted-foreground); }
.adm-cmd-list { max-height: 48vh; overflow-y: auto; padding: 10px; }
.adm-cmd-item { display: flex; align-items: center; gap: 14px; width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; font-size: 15px; text-align: left; color: var(--oryn-text-2); }
.adm-cmd-item > i { flex: none; width: 22px; font-size: 19px; text-align: center; color: var(--color-muted-foreground); }
.adm-cmd-item:hover { background: var(--color-muted); }
.adm-cmd-item[aria-selected="true"] { background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; }
.adm-cmd-item[aria-selected="true"] > i { color: var(--color-brand); }
.adm-cmd-hint { flex: none; max-width: 46%; overflow: hidden; font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.adm-cmd-none { margin: 0; padding: 28px 16px; font-size: 14px; text-align: center; color: var(--color-muted-foreground); }

/* toasts */
.adm-toasts { position: fixed; left: 50%; bottom: 26px; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(520px, calc(100% - 32px)); translate: -50% 0; pointer-events: none; }
.adm-toast {
  display: flex; align-items: center; gap: 12px; max-width: 100%; min-height: 50px; padding: 10px 14px 10px 16px; pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: var(--frost-ink); color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--frost-pop); font-size: 14.5px; line-height: 1.4;
}
.adm-toast > i { flex: none; font-size: 20px; }
.adm-toast--ok > i { color: #5fdd8f; }
.adm-toast--bad > i { color: #fb7185; }
.adm-toast--info > i { color: #a9bcff; }
.adm-toast-t { margin: 0; font-size: 14px; font-weight: 600; }
.adm-toast-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.adm-toast-track > div { height: 100%; border-radius: 999px; background: #a9bcff; transition: width .2s var(--ease-out); }
.adm-btn.adm-toast-btn, .adm-toast .adm-btn { height: 32px; margin-left: auto; padding: 0 14px; border: 0; background: rgba(255, 255, 255, .16); box-shadow: none; font-size: 13px; color: #fff; }
.adm-btn.adm-toast-btn:hover, .adm-toast .adm-btn:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* a word for a round button: shown on hover and on keyboard focus */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 300; padding: 6px 10px; border-radius: 11px;
  background: var(--frost-ink); font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0; color: #fff; white-space: nowrap;
  opacity: 0; pointer-events: none; translate: -50% 4px; transition: opacity .14s var(--ease-out), translate .2s var(--ease-out);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }
.adm-top [data-tip]::after { top: calc(100% + 8px); bottom: auto; translate: -50% -4px; }
.adm-top [data-tip]:hover::after, .adm-top [data-tip]:focus-visible::after { translate: -50% 0; }
.adm-top [data-tip]:last-child::after, td:last-child [data-tip]:last-child::after, .adm-me [data-tip]::after { left: auto; right: 0; translate: 0 4px; }
.adm-top [data-tip]:last-child:hover::after, td:last-child [data-tip]:last-child:hover::after, td:last-child [data-tip]:last-child:focus-visible::after,
.adm-me [data-tip]:hover::after, .adm-me [data-tip]:focus-visible::after { translate: 0 0; }
/* The buttons at the right end of the top bar hang their word from their right edge. The theme button is not the
   last child (the hidden bell follows it), so its word was centred on it and reached 9px past the screen: every
   area scrolled sideways under 1024px, where the window itself scrolls (a2 audit). */
.adm-top-end [data-tip]::after { left: auto; right: 0; translate: 0 -4px; }
.adm-top-end [data-tip]:hover::after, .adm-top-end [data-tip]:focus-visible::after { translate: 0 0; }
/* A word nobody is reading takes no room: until its button is hovered or focused it is not drawn at all, so it
   cannot widen the page. A finger never hovers, so on a touch screen the words are simply not there. */
@media (max-width: 1023.98px) {
  [data-tip]:not(:hover):not(:focus-visible)::after { content: none; }
  /* shown from a row's right end, a word hangs from the button's right edge instead of spilling past the screen */
  .adm-row > [data-tip]:last-child::after, .adm-row-end [data-tip]:last-child::after, .adm-acts [data-tip]:last-child::after,
  .adm-rowcard-v [data-tip]:last-child::after { left: auto; right: 0; translate: 0 0; }
}
@media (hover: none) { [data-tip]::after { content: none; } }

/* the demo curtain says so for as long as it is drawn */
.adm-demobar {
  position: fixed; left: 50%; bottom: 14px; z-index: 9998; width: min(760px, calc(100% - 28px)); padding: 12px 20px; border-radius: 18px;
  background: var(--color-alert); box-shadow: var(--frost-pop); font-size: 13.5px; line-height: 1.45; text-align: center; color: #fff; translate: -50% 0;
}
body.adm-has-demobar .adm-page { padding-bottom: 140px; }
body.adm-has-demobar .adm-toasts { bottom: 96px; }

/* the session ended: one bar over every screen with the one thing to do (3 November 2026 pass) */
.adm-signedout {
  position: fixed; left: 50%; top: 14px; z-index: 9999; display: flex; align-items: center; gap: 12px; width: min(620px, calc(100% - 28px));
  padding: 10px 12px 10px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: var(--frost-ink); color: #fff;
  box-shadow: var(--frost-pop); font-size: 14px; line-height: 1.4; translate: -50% 0;
}
.adm-signedout > i { flex: none; font-size: 20px; color: #a9bcff; }
.adm-signedout > span { flex: 1; min-width: 0; }
.adm-signedout .adm-btn { flex: none; }
@media (max-width: 520px) { .adm-signedout { flex-wrap: wrap; } .adm-signedout .adm-btn { width: 100%; } }
/* a button whose change is on its way to the server: it says so and cannot be pressed again until the answer */
[data-adm-held] { cursor: progress; }
[data-adm-held]:not(.adm-btn) { opacity: .6; }

/* 12. States: empty, loading, error ------------------------------------------------------------------------ */
.adm-empty { display: grid; justify-items: center; gap: 8px; padding: 60px 24px; text-align: center; }
.adm-empty-ic { display: grid; width: 56px; height: 56px; margin-bottom: 8px; place-items: center; border-radius: 50%; background: var(--frost-well); font-size: 24px; color: var(--color-muted-foreground); }
.adm-empty-t { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--color-foreground); }
.adm-empty-b { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }
.adm-empty .adm-btn { margin-top: 12px; }
.adm-skel {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--adm-quiet-soft) 25%, color-mix(in srgb, var(--color-foreground) 4%, transparent) 37%, var(--adm-quiet-soft) 63%);
  background-size: 400% 100%; animation: admShim 1.4s ease infinite;
}
@keyframes admShim { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.adm-skelrow { display: flex; min-height: 64px; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--frost-line); }
.adm-skelrow:last-child { border-bottom: 0; }
.adm-stat > .adm-skel + .adm-skel { margin-top: 8px; }
.adm-state { display: flex; align-items: flex-start; gap: 18px; padding: 26px 28px; }
.adm-state .adm-sub { margin-top: 6px; max-width: 60ch; }
.adm-state .adm-btn { margin-top: 18px; }
.adm-state-ic { display: grid; flex: none; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--frost-well); font-size: 22px; color: var(--color-muted-foreground); }
.adm-state--bad .adm-state-ic, .adm-state-ic--bad { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
/* the result of an invitation that took effect at once (Team access, 5 October 2026) */
.adm-state--ok .adm-state-ic { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.adm-tech { margin-top: 12px; }
.adm-tech summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); cursor: pointer; list-style: none; border-radius: 8px; }
.adm-tech summary::-webkit-details-marker { display: none; }
.adm-tech summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; transition: rotate .2s var(--ease-out); }
.adm-tech[open] summary::before { rotate: 45deg; }
.adm-tech summary:hover { color: var(--color-foreground); }
.adm-tech p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); word-break: break-word; }

/* 13. The gate: the splash, then sign in --------------------------------------------------------------------- */
.adm-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px 20px; overflow-y: auto;
  background:
    radial-gradient(760px 520px at 84% -10%, var(--field-a), transparent 72%),
    radial-gradient(620px 460px at 8% 108%, var(--field-b), transparent 72%),
    var(--canvas);
  transition: opacity .3s var(--ease-out);
}
.adm-gate.is-leaving { opacity: 0; pointer-events: none; }
.adm-gate-in { width: min(420px, 100%); }
.adm-gate-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.adm-gate-card { display: flex; flex-direction: column; padding: 30px; border-radius: 26px; background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-pop); }
.adm-gate-card .adm-sub { margin: 8px 0 22px; }
.adm-gate-card .adm-state-ic { margin-bottom: 16px; }
.adm-gate-detail { margin: -8px 0 22px; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); overflow-wrap: anywhere; }
.adm-gate-foot { margin: 20px 8px 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--color-muted-foreground); text-wrap: pretty; }
.adm-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 13px; color: var(--color-muted-foreground); }
.adm-or::before, .adm-or::after { content: ''; height: 1px; flex: 1; background: var(--frost-line); }
/* the sign-in card's other ways in (3 November 2026): a reset link beside the password label, an email link, a way back */
.adm-lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.adm-lblrow .lbl { margin-bottom: 0; }
.adm-forgot { font-size: 13px; font-weight: 500; }
.adm-lblrow + .fld { margin-top: 6px; }
.adm-gate-note { margin: -8px 0 18px; }
.adm-gate-back { display: flex; justify-content: center; margin-top: 18px; }
.adm-gate-back .adm-link { font-size: 14px; font-weight: 500; }
.adm-google { margin-top: 0; }
/* 17 November 2026: Google first after "or", then the email link, 10 px apart (the same order as every Doctorpedia sign-in) */
#admOauth:not([hidden]) + #admLinkBtn { margin-top: 10px; }
.adm-gate-card [hidden], .adm-gate-card[hidden] { display: none !important; }
.adm-splash { display: flex; flex-direction: column; align-items: center; padding: 28px 0 8px; text-align: center; }
.adm-splash-mark {
  display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; background: var(--brand-grad); color: #fff; font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px -10px var(--color-brand);
}
.adm-splash-name { margin: 20px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.adm-splash-line { margin: 6px 0 0; font-size: 14px; color: var(--color-muted-foreground); }
.adm-splash-bar { width: 148px; height: 4px; margin-top: 24px; overflow: hidden; border-radius: 999px; background: var(--adm-quiet-soft); }
.adm-splash-bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--color-brand); animation: admSplashSlide 1.1s var(--ease-out) infinite alternate; }
@keyframes admSplashSlide { from { transform: translateX(-60%); } to { transform: translateX(270%); } }

/* 14. Narrow screens: the flat layout, the same shapes ------------------------------------------------------- */
@media (max-width: 1023.98px) {
  body { background: var(--color-background); }
  .adm-shell { display: block; height: auto; min-height: 100dvh; padding: 0; }
  .adm-main {
    overflow: visible; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none;
    background:
      radial-gradient(520px 380px at 100% -60px, var(--field-a), transparent 72%),
      radial-gradient(420px 320px at 0% -40px, var(--field-b), transparent 72%),
      var(--color-background);
    background-attachment: fixed;
  }
  .adm-top { padding: 0 14px; gap: 10px; background: color-mix(in srgb, var(--color-background) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
  .adm-top::before { display: none; }
  .adm-page { padding: 10px 16px 72px; }
  .adm-head { margin-bottom: 22px; }
  .adm-rail {
    position: fixed; top: 8px; bottom: 8px; left: 8px; z-index: 70; width: min(300px, calc(100% - 56px));
    box-shadow: var(--frost-rim), var(--frost-pop); transform: translateX(calc(-100% - 16px)); visibility: hidden;
    transition: transform .36s var(--ease-out), visibility 0s .36s;
  }
  body.adm-nav-open .adm-rail { transform: none; visibility: visible; transition: transform .36s var(--ease-out), visibility 0s; }
  .adm-scrim {
    display: block; position: fixed; inset: 0; z-index: 65; background: color-mix(in srgb, var(--canvas) 55%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-out);
  }
  body.adm-nav-open .adm-scrim { opacity: 1; pointer-events: auto; }
  .adm-nav { height: 46px; }
  .adm-tablewrap, .adm-rows, .adm-figs, .adm-card { border-radius: 20px; }
  .adm-row { padding: 14px 18px; }
  .adm-rows-head { padding: 18px 18px 12px; }
  .adm-stat { padding: 16px 18px 16px 19px; }
  .adm-stat-v { font-size: 26px; }
  .adm-card.p-5, .adm-card.p-6 { padding: 20px; }
  .adm-find { max-width: none; flex-basis: 100%; }
  .fld, .adm-cmd-in { font-size: 16px; }
}
@media (max-width: 639.98px) {
  .adm-search-long, .adm-kbd, .adm-envchip { display: none; }
  .adm-search-short { display: inline; }
  .adm-h1 { font-size: 27px; }
  .adm-head-acts { width: 100%; }
  .adm-drawer {
    top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 90dvh; border-width: 1px 0 0; border-radius: 26px 26px 0 0;
    transform: translateY(100%);
  }
  .adm-drawer-head { padding: 16px 12px 12px 20px; }
  .adm-drawer-body { padding: 6px 20px 28px; }
  #admConfirm > .adm-card { padding: 24px 22px; }
  .adm-dialog-acts .adm-btn, #admConfirm > .adm-card > .flex.justify-end .adm-btn { flex: 1 1 auto; }
  .adm-state { flex-direction: column; padding: 22px; }
}

/* 14b. A finger needs 44px ------------------------------------------------------------------------------------
   Everything that is pressed is at least 44px tall (and wide, when it is round) on a touch screen and on the
   narrow layout. The shapes stay; they get room (a2 audit: pills were 40, segments and round row buttons 36,
   filter pills 34, small buttons 32, the switch 26 tall, a notice's checkbox 18). */
@media (pointer: coarse), (max-width: 1023.98px) {
  .adm-btn, .adm-btn[data-sm], .adm-btn--sm, .adm-btn.adm-toast-btn, .adm-toast .adm-btn { min-height: 44px; }
  .adm-btn[data-sm], .adm-btn--sm { padding: 0 16px; }
  .adm-seg > :is(button, a), .adm-seg > .adm-btn { height: 44px; min-height: 44px; }
  .adm-ic, .adm-iconbtn { width: 44px; height: 44px; }
  button.adm-pill { height: 44px; padding: 0 16px; }
  .adm-navgroup { height: 44px; }
  .adm-link { min-height: 44px; }
  .adm-tech summary { min-height: 44px; }
  .adm-table thead th button { min-height: 44px; }
  /* the switch keeps its size; the area that takes the press grows around it */
  .sw::before { content: ''; position: absolute; top: -9px; right: 0; bottom: -9px; left: 0; }
  /* a notice's checkbox: the box stays 18px, its label is the 44px that takes the press */
  label.alr-pick { width: 44px; height: 44px; margin: -3px -13px 0; }
}

/* 14c. Rows on a phone: the text gets the width ---------------------------------------------------------------- */
@media (max-width: 639.98px) {
  /* A row that ends in a status, a date and an arrow kept all three beside the text, which was left a column
     of 48px at 390 and 18px at 360, a word per line (the Verification list). The end goes on its own line
     above, status on the left and the rest on the right, and the text takes the whole row. */
  .adm-row--top:has(> .adm-row-end > :nth-child(2)) { flex-wrap: wrap; row-gap: 12px; }
  .adm-row--top:has(> .adm-row-end > :nth-child(2)) > .adm-row-end { order: -1; flex: 1 0 100%; margin: 0; }
  .adm-row--top:has(> .adm-row-end > :nth-child(2)) > .adm-row-end > :first-child { margin-right: auto; }
  /* Needs you, a queue: the icon, the title, the count and the way in share the first line; the sentences
     under them take the width from the title to the right edge instead of a 150px column. */
  .adm-row--top[data-alr-card] { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 0 14px; align-items: start; }
  .adm-row--top[data-alr-card] > .adm-row-main { display: contents; }
  .adm-row--top[data-alr-card] > .adm-row-main > * { grid-column: 2 / -1; }
  .adm-row--top[data-alr-card] > .adm-row-main > :first-child { grid-column: 2; grid-row: 1; min-height: 40px; }
  .adm-row--top[data-alr-card] > .adm-row-ic { grid-column: 1; grid-row: 1; }
  .adm-row--top[data-alr-card] > .alr-count { grid-column: 3; grid-row: 1; }
  .adm-row--top[data-alr-card] > .adm-ic { grid-column: 4; grid-row: 1; }
  /* Needs you, a notice: when it arrived goes under the text, so the title is not squeezed to 110px */
  .adm-row--top[data-alr-notice] { flex-wrap: wrap; }
  .adm-row--top[data-alr-notice] > .adm-row-main { flex: 1 1 0; }
  .adm-row--top[data-alr-notice] > .adm-row-meta { order: 5; flex: 1 0 100%; margin-top: -8px; padding-left: 90px; }
  .adm-row--top[data-alr-notice] > .adm-pill { order: 4; }
}

/* 15. Motion stands down --------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .adm-skel, .adm-splash-bar span { animation: none; }
  .adm-drawer, .adm-rail, .adm-cmd-box, .adm-navsec, .adm-navgroup-caret, .sw::after { transition: none; }
  /* the open states name their own transition and are more specific than the line above: the drawer and the
     menu sheet still slid in for somebody who asked for no movement (a2 audit) */
  body.adm-drawer-open .adm-drawer, body.adm-nav-open .adm-rail, body.adm-cmd-open .adm-cmd-box { transition: none; }
  [data-tip]::after, .adm-tech summary::before, .adm-toast-track > div { transition: none; }
}
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important; transition-duration: .001ms !important;
}

/* 16. `hidden` wins over a class of this sheet that sets display ---------------------------------------------- */
:is(.adm-shell, .adm-gate, .adm-gate-brand, .adm-card, .adm-btn, .adm-pill, .adm-iconbtn, .adm-ic, .adm-nav-count, .adm-note, .adm-rows, .adm-row,
  .adm-seg, .adm-bar-row, .adm-figs, .adm-state, .adm-empty, .adm-form-err, .adm-acts, .adm-find, .adm-pager, .adm-facts, .adm-sec).hidden { display: none; }

/* 17. Shapes a few areas share ---------------------------------------------------------------------------- */
/* a wide piece beside a narrow one; two halves */
.adm-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.adm-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1199.98px) { .adm-split, .adm-halves { grid-template-columns: minmax(0, 1fr); } }
/* rows that choose one thing */
.adm-choices { display: flex; flex-direction: column; gap: 8px; }
.adm-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 18px;
  border: 1px solid var(--frost-line); border-radius: 16px; background: var(--frost-strong); box-shadow: var(--frost-rim);
  font-size: 15px; font-weight: 600; text-align: left; color: var(--color-foreground);
}
.adm-choice:hover { border-color: var(--oryn-border-hover); }
.adm-choice[aria-current="true"], .adm-choice[aria-pressed="true"] { border-color: var(--color-brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); color: var(--color-brand-ink); }
.adm-choice > i { flex: none; font-size: 20px; color: var(--color-brand); }
.adm-choice small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--color-muted-foreground); }
.adm-choice--danger { border-color: transparent; background: var(--adm-alert-soft); box-shadow: none; color: var(--color-alert-ink); }
.adm-choice--danger:hover { border-color: transparent; background: color-mix(in srgb, var(--color-alert) 22%, transparent); }
.adm-row.is-new { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.adm-pre { margin: 0; padding: 14px 16px; overflow-x: auto; border-radius: 16px; background: var(--frost-well); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.adm-clip { display: block; max-width: min(36ch, 20vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-lead { max-width: 76ch; margin: -4px 2px 18px; }
/* a well inside a surface or the drawer: a quiet panel, never a second box */
.set-card { border: 0; border-radius: 18px; background: var(--frost-well); }
.adm-rows > .set-card, .adm-row.set-card { border-radius: 0; background: transparent; }
.adm-choice.set-card { border: 1px solid var(--frost-line); border-radius: 16px; background: var(--frost-strong); gap: 12px; }
#admConfirm .adm-note, .adm-drawer .adm-note { font-size: 14px; }
.adm-seg .adm-pill { height: 20px; padding: 0 7px; font-size: 11.5px; }
.adm-quote { margin: 0; padding: 16px 18px; border-radius: 18px; background: var(--frost-well); font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
/* a list of labelled facts written as a definition list */
dl.grid > dt.adm-eyebrow { font-size: 13.5px; font-weight: 500; }
.adm-drawer dl.grid { row-gap: 14px; }
.set-card.p-4 { padding: 18px 20px; }
.set-card.p-3 { padding: 14px 16px; }
/* a table inside a surface is that surface's rows: no second box, flush to its edges */
.adm-card .adm-tablewrap { border: 0; border-radius: 0; background: none; box-shadow: none; }
.adm-card.p-5 .adm-tablewrap { margin-inline: -26px; }
.adm-card.p-4 .adm-tablewrap { margin-inline: -22px; }
.adm-card.p-6 .adm-tablewrap { margin-inline: -30px; }
.adm-card .adm-table thead th { border-radius: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: static; }
.adm-card .adm-table tbody tr:last-child td { border-radius: 0; }
.adm-card .adm-tablewrap .adm-empty { padding: 36px 24px; }
@media (max-width: 1023.98px) { .adm-card.p-5 .adm-tablewrap, .adm-card.p-6 .adm-tablewrap, .adm-card.p-4 .adm-tablewrap { margin-inline: -20px; } }
.adm-link { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; font-weight: 600; color: var(--color-brand-ink); }
.adm-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 18. Needs you: the queues as rows, the count as a quiet figure ---------------------------------------- */
.alr-headline { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.018em; line-height: 1.25; text-wrap: balance; }
.alr-say { max-width: 70ch; font-size: 14.5px; color: var(--oryn-text-2); }
.alr-count { flex: none; min-width: 48px; margin: 6px 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; text-align: right; }
.alr-quiet .adm-row-t { font-weight: 500; color: var(--oryn-text-2); }
.alr-quiet .alr-say, .alr-quiet .alr-count { color: var(--color-muted-foreground); }
.alr-quiet .alr-count { font-weight: 500; }
.alr-check { flex: none; width: 18px; height: 18px; margin: 11px 0 0; }
/* the label around a notice's checkbox: the box sits where it sat, the label is what a finger presses */
.alr-pick { display: grid; flex: none; width: 18px; height: 18px; margin: 11px 0 0; place-items: center; cursor: pointer; }
.alr-pick > .alr-check { margin: 0; }

/* 19. Report and record: the report is one sheet; the verdict is one word ------------------------------------ */
.rp-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; padding: 12px 34px 30px; }
.rp-group { padding-top: 26px; }
.rp-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.rp-group-head .adm-sub { margin-top: 2px; }
.rp-verdict-ic { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; font-size: 32px; }
.rp-verdict-word { margin: 0; font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 1099.98px) { .rp-sheet { grid-template-columns: minmax(0, 1fr); padding: 6px 22px 24px; } }

/* 20. One clinician: the person, then their story beside a quiet column ------------------------------------ */
button.adm-pill[aria-current="true"], button.adm-pill[aria-pressed="true"] { background: var(--brand-soft); color: var(--color-brand-ink); }
.oc-search { max-width: 640px; }
.oc-head { margin-bottom: 4px; }
.oc-who { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 18px; }
.oc-name { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.oc-who .adm-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; }
.oc-spec { color: var(--oryn-text-2); }
.oc-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 1199.98px) { .oc-cols { grid-template-columns: minmax(0, 1fr); } }
.oc-side { padding: 4px 26px; }
.oc-side-sec { padding: 22px 0; }
.oc-side-sec + .oc-side-sec { border-top: 1px solid var(--frost-line); }
.oc-side-sec .adm-sub { margin-top: 4px; font-size: 13.5px; }
.oc-list { margin-top: 6px; }
.oc-item { padding: 14px 0; }
.oc-item + .oc-item { border-top: 1px solid var(--frost-line); }
.oc-item:last-child { padding-bottom: 0; }
.oc-quiet { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); }
.oc-quiet > i { flex: none; margin-top: 2px; font-size: 17px; }
.oc-quiet b { font-weight: 600; color: var(--oryn-text-2); }
.oc-ev { display: flex; gap: 16px; }
.oc-ev-rail { display: flex; flex: none; flex-direction: column; align-items: center; }
.oc-ev-line { width: 1px; flex: 1; margin: 6px 0; background: var(--frost-line); }
.oc-ev-body { min-width: 0; flex: 1; padding: 8px 0 26px; }

/* 21. Support inbox: the list, and one surface for the conversation beside it ------------------------------ */
.sup { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sup-filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.sup-tabs { align-self: flex-start; }
.sup-tabs > button { padding: 0 12px; }
.sup-list { max-height: calc(100dvh - 330px); overflow-y: auto; }
.sup-row { gap: 14px; padding: 16px 18px; }
.sup-row[aria-current="true"] { background: var(--brand-soft); }
.sup-row[aria-current="true"]:hover { background: var(--brand-soft); }
.sup-thread { overflow: hidden; }
.sup-who { padding: 24px 26px 22px; border-bottom: 1px solid var(--frost-line); }
.sup-body { padding: 24px 26px; }
.sup-msgs { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.sup-msg { max-width: 88%; margin-right: auto; padding: 14px 18px; border-radius: 20px 20px 20px 8px; background: var(--frost-well); }
.sup-msg.is-team { margin-right: 0; margin-left: auto; border-radius: 20px 20px 8px 20px; background: var(--brand-soft); }
.sup-reply { padding: 22px 26px 26px; border-top: 1px solid var(--frost-line); background: color-mix(in srgb, var(--color-card) 40%, transparent); }
.sup-none { min-height: 420px; display: grid; place-items: center; }
#supThreadPane { scroll-margin-top: calc(var(--adm-top-h) + 12px); }
@media (max-width: 1023.98px) {
  .sup { grid-template-columns: minmax(0, 1fr); }
  .sup-list { max-height: none; }
  .sup-who, .sup-body { padding: 20px; }
  .sup-reply { padding: 20px; }
}

/* 22. Verification: the file of one request --------------------------------------------------------------- */
.vr-sigs { margin-top: 10px; }
.vr-sig { display: flex; gap: 14px; padding: 16px 0; }
.vr-sig + .vr-sig { border-top: 1px solid var(--frost-line); }
.vr-register { background: radial-gradient(420px 220px at 100% 0%, var(--field-a), transparent 72%), var(--frost); border-color: color-mix(in srgb, var(--color-brand) 28%, var(--frost-line)); }
.adm-row[role="button"]:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -3px; border-radius: 20px; }

/* 23. Errors: how things are, in one sentence ------------------------------------------------------------- */
.err-health { display: flex; align-items: flex-start; gap: 18px; }
.err-health-ic { display: grid; flex: none; width: 56px; height: 56px; place-items: center; border-radius: 50%; font-size: 26px; }

/* 24. What the areas still write inline: a bordered box becomes a well, never a box inside a box ----------- */
:is(.adm-main, .adm-drawer) :is(.rounded-xl, .rounded-lg, .rounded-2xl)[style*="border:1px solid var(--color-border)"] {
  border: 0 !important; background: var(--frost-well) !important;
}
:is(.adm-main, .adm-drawer) details.rounded-xl[style*="border:1px solid var(--color-border)"] > summary { font-weight: 600; }

/* 25. Automatic review: the piece itself, what the check said about it, and whether the check is running ---- */
.mod-status { display: flex; align-items: flex-start; gap: 12px; max-width: 92ch; margin: 0 4px 20px; font-size: 15.5px; line-height: 1.5; }
.mod-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 4px var(--adm-ok-soft); }
.mod-status--warn .mod-dot { background: var(--color-brand-2); box-shadow: 0 0 0 4px var(--adm-warm-soft); }
.mod-status--bad .mod-dot { background: var(--color-alert); box-shadow: 0 0 0 4px var(--adm-alert-soft); }
.mod-intro { max-width: 78ch; margin: 0 4px 18px; }

.mod-title { margin-top: 16px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.mod-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.mod-who .adm-row-s { margin: 0; }
.mod-who-name { font-weight: 600; color: var(--color-foreground); }

/* an opaque well, so the fade of a folded text can end on exactly this colour */
.mod-piece { --mod-well: color-mix(in srgb, var(--color-foreground) 4.5%, var(--color-card)); margin-top: 16px; padding: 20px 22px; border-radius: 18px; background: var(--mod-well); }
.mod-piece-text { display: flex; flex-direction: column; gap: 16px; }
.mod-part .adm-eyebrow { margin: 0 0 4px; }
.mod-text { max-width: 78ch; font-size: 15.5px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.mod-piece.is-clamped:not(.is-open) .mod-piece-text { position: relative; max-height: 232px; overflow: hidden; }
/* the last lines fade into the well, so a cut text reads as cut and not as finished */
.mod-piece.is-clamped:not(.is-open) .mod-piece-text::after {
  content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 64px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--mod-well, var(--color-card)));
}
.mod-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 0; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--color-brand-ink); cursor: pointer;
}
.mod-more > i { font-size: 14px; transition: rotate .2s var(--ease-out); }
.mod-piece.is-open .mod-more > i { rotate: 180deg; }
.mod-mark {
  margin: 0 -1px; padding: 1px 3px; border-radius: 5px; color: inherit;
  background: color-mix(in srgb, var(--color-brand-2) 30%, transparent);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mod-media { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; margin-bottom: 18px; }
.mod-media-note { flex-basis: 100%; margin: 0; }
.mod-thumb-btn { padding: 0; border: 0; border-radius: 14px; background: none; line-height: 0; cursor: zoom-in; }
.mod-thumb { display: block; width: 168px; height: 112px; border-radius: 14px; object-fit: cover; background: var(--color-muted); outline: 1px solid var(--frost-line); outline-offset: -1px; }
.mod-thumb-btn.is-open { cursor: zoom-out; }
.mod-thumb-btn.is-open .mod-thumb { width: auto; max-width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.mod-thumb--video { width: 300px; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mod-audio { width: min(100%, 360px); height: 40px; }
.mod-context { padding-bottom: 16px; border-bottom: 1px solid var(--frost-line); }
.mod-context-t { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.mod-context-q { max-width: 78ch; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--color-muted-foreground); overflow-wrap: anywhere; }
.mod-source-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.mod-source-l a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--color-brand-ink); text-decoration: none; }
.mod-source-l a:hover { text-decoration: underline; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mod-tags > span { padding: 3px 10px; border-radius: 999px; background: var(--adm-quiet-soft); font-size: 12.5px; color: var(--color-muted-foreground); }
.mod-gone-t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.mod-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mod-links a.adm-btn { text-decoration: none; }
.mod-state { max-width: 86ch; margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); }
.mod-state + .mod-state, .mod-state + .adm-tech + .mod-state { margin-top: 6px; }

.mod-check { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--frost-line); }
.mod-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.mod-answer > span:last-child { flex: 1 1 260px; min-width: 0; }
.mod-answer b { font-weight: 600; }
.mod-found { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.mod-found > li { padding: 4px 12px; border-radius: 999px; background: var(--adm-quiet-soft); font-size: 13.5px; font-weight: 600; }
.mod-fact { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 2px 16px; max-width: 92ch; margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.mod-fact > span:first-child { color: var(--color-muted-foreground); }
.mod-fact > mark { justify-self: start; }
.mod-fact > em { grid-column: 2; font-size: 12.5px; font-style: normal; color: var(--color-muted-foreground); }
.mod-line { max-width: 86ch; margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }
.mod-fold { margin-top: 12px; }
.mod-fold summary { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); cursor: pointer; list-style: none; }
.mod-fold summary::-webkit-details-marker { display: none; }
.mod-fold summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; transition: rotate .2s var(--ease-out); }
.mod-fold[open] summary::before { rotate: 45deg; }
.mod-fold summary:hover { color: var(--color-foreground); }
.mod-fold p { max-width: 76ch; margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.mod-fold ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.mod-fold li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mod-fold li > span { font-size: 12px; color: var(--color-warm-ink); }
.mod-judge { margin-top: 20px; }
.mod-judge-q { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.mod-judge-b { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-judge [data-judge][aria-pressed="true"] { border-color: transparent; background: var(--brand-soft); color: var(--color-brand-ink); box-shadow: none; }
.mod-judge-said { margin: 8px 0 0; font-size: 13px; color: var(--color-muted-foreground); }
.mod-history .mod-check { margin-top: 16px; }
.mod-decide { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--frost-line); }

textarea.fld.mod-try-box { height: 210px; min-height: 140px; padding: 14px 16px; font-size: 15px; line-height: 1.55; resize: vertical; }
.mod-try-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.mod-try-ex .adm-eyebrow { margin-right: 4px; }
.mod-try-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; }
.mod-try-out { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--frost-line); }
.mod-try-out > .mod-answer { margin-top: 0; font-size: 15.5px; }
@media (max-width: 640px) {
  .mod-piece { padding: 16px; }
  .mod-fact { grid-template-columns: minmax(0, 1fr); }
  .mod-fact > em { grid-column: 1; }
  .mod-thumb { width: 132px; height: 92px; }
  .mod-try-go .adm-btn { width: 100%; justify-content: center; }
}

/* 17. One console for every app (29 October 2026) --------------------------------------------------------------
   The menu's first level is the app: a small mark beside each name, quiet sub-labels inside a group with more than one
   kind of area. Then Dose's four screens (admin-dose.js), built from the console's own pieces; only what they add is
   here. Tokens only. */
.adm-navgroup { font-size: 14px; color: var(--oryn-text-2); }
.adm-navgroup-ic {
  display: grid; flex: none; width: 26px; height: 26px; place-items: center; border-radius: 8px;
  background: var(--frost-well); font-size: 15px; color: var(--color-muted-foreground);
}
.adm-navgroup[aria-expanded="true"] .adm-navgroup-ic { background: var(--brand-soft); color: var(--color-brand); }
.adm-navsub { margin: 10px 12px 2px 50px; font-size: 12px; font-weight: 600; color: var(--color-muted-foreground); }
.adm-navsec-in > .adm-navsub:first-child { margin-top: 4px; }

.dose-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 18px; margin: 18px 0; }
.dose-two > .adm-card { margin: 0; }
.dose-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dose-card-head .adm-legends { margin: 0; }
.dose-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dose-key.app, .dose-col > i.app { background: var(--color-brand); }
.dose-key.wa, .dose-col > i.wa { background: color-mix(in srgb, var(--color-brand) 38%, transparent); }
.dose-bars { display: flex; align-items: flex-end; gap: 10px; height: 168px; margin: 18px 0 0; padding: 0; list-style: none; }
.dose-bars > li { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.dose-bars b { min-height: 16px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.dose-col { display: flex; width: 100%; max-width: 34px; flex: 1; flex-direction: column; justify-content: flex-end; gap: 2px; }
.dose-col > i { display: block; width: 100%; min-height: 4px; border-radius: 6px; }
.dose-bars small { font-size: 12px; color: var(--color-muted-foreground); }
.dose-bars.is-empty .dose-col { border-bottom: 1px dashed var(--frost-line); }
.dose-rule { display: flex; flex-direction: column; gap: 10px; }
.dose-rule-head { display: flex; align-items: center; gap: 12px; }
.dose-rule-head .adm-h3 { flex: 1; margin: 0; }
.dose-rule .adm-sub, .dose-rule .adm-hint { margin: 0; }
.dose-rule .dose-go { align-self: flex-start; margin-top: 4px; }
.dose-quiet { font-weight: 400; color: var(--color-muted-foreground); }
.dose-center { display: flex; justify-content: center; margin: 18px 0; }
.adm-card + .adm-card.dose-day, .dose-day + .dose-day { margin-top: 18px; }
button.adm-row { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.adm-row:hover { background: var(--color-muted); }
button.adm-row .adm-row-t, button.adm-row .adm-row-s { display: block; }
.dose-user-plan { flex: 0 0 220px; min-width: 0; }
.dose-user-work { flex: 0 0 200px; }
.dose-user .adm-row-meta { flex: 0 0 92px; text-align: right; }
.dose-caret { flex: none; color: var(--color-muted-foreground); }
.dose-acct { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.dose-acct .adm-h2, .dose-acct .adm-sub { margin: 0; }
.dose-sub-h { margin: 26px 0 10px; }
.dose-pieces { display: flex; flex-direction: column; gap: 12px; }
.dose-piece { padding: 14px 16px; border: 1px solid var(--frost-line); border-radius: 16px; }
.dose-piece-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dose-piece-h .adm-row-t { margin: 0; }
.dose-consulted { margin-top: 10px; }
.dose-consulted ul { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.dose-consulted li > span { display: block; font-size: 12.5px; color: var(--color-muted-foreground); }
.dose-flat .adm-row { padding-left: 0; padding-right: 0; }
.dose-switches .adm-row.is-idle { opacity: .6; }
.dose-switches, .dose-try { margin: 0; }
.dose-try-form { display: flex; gap: 10px; margin-top: 14px; }
.dose-try-form .fld { flex: 1; min-width: 0; }
.dose-try [data-dose-tryout] > * { margin-top: 14px; }
.dose-passages { display: flex; flex-direction: column; gap: 12px; }
.dose-passage { padding: 12px 14px; border-radius: 14px; background: var(--frost-well); }
.dose-passage .adm-eyebrow, .dose-passage .adm-sub { margin: 0; }
.dose-passage .adm-link { display: inline-block; margin: 4px 0 6px; font-weight: 600; }
.dose-src.is-new { background: var(--brand-soft); }
.dose-x-gap { display: inline-block; width: 36px; }
.dose-reset { margin-top: 18px; }
.dose-form-acts { display: flex; gap: 10px; }
.dose-spin { display: inline-block; animation: dose-spin 1s linear infinite; }
@keyframes dose-spin { to { rotate: 360deg; } }
.adm-figs + .dose-two { margin-top: 18px; }
#admBody > .adm-card.adm-rows + .adm-card { margin-top: 18px; }
@media (max-width: 1100px) {
  .dose-two { grid-template-columns: minmax(0, 1fr); }
  .dose-user-work { display: none; }
}
@media (max-width: 720px) {
  .dose-user-plan { display: none; }
  .dose-try-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .dose-spin { animation: none; } }
:is(.dose-two, .dose-card-head, .dose-bars, .dose-rule, .dose-rule-head, .dose-center, .dose-acct, .dose-pieces, .dose-piece-h, .dose-try-form, .dose-passages, .dose-form-acts).hidden { display: none; }

/* 18. The Library (3 November 2026): the catalogue as pictures or a list, the choice bar, the drop zone, the bars of an upload,
   the player with its audio and captions menus, the dubbing sheet. Tokens only. */
.lib-figs { margin-bottom: 18px; }
.lib-bar { margin-bottom: 10px; }
.lib-bar .adm-find { flex: 1 1 280px; }
.lib-sel .fld { height: 46px; min-width: 170px; border-radius: 999px; }
.lib-viewseg > button { padding: 0 12px; }
.lib-bar2 { margin-bottom: 16px; }
.lib-bar2 > .adm-count { margin-left: auto; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lib-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--frost-line); border-radius: 20px; background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow); overflow: hidden; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.lib-card:hover { border-color: var(--oryn-border-hover); }
.lib-card.is-on { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: 0 0 0 3px var(--brand-soft), var(--frost-shadow); }
.lib-open { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0 0 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lib-thumb { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: var(--frost-well); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb-ic { font-size: 28px; color: var(--color-muted-foreground); }
.lib-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 8px; background: rgba(12, 14, 22, .72); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.lib-card-t { display: -webkit-box; margin: 4px 14px 0; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lib-card-s { margin: 0 14px; overflow: hidden; font-size: 12.5px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.lib-card-p { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 14px 0; }
.lib-check { position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; width: 28px; height: 28px; place-items: center; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 9px; background: rgba(12, 14, 22, .32); color: transparent; cursor: pointer; transition: background .15s var(--ease-out); }
.lib-check > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lib-check:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand); color: #fff; }
.lib-check:has(input:focus-visible) { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.lib-list .lib-check { position: relative; top: auto; left: auto; flex: none; border-color: var(--frost-line); background: transparent; }
.lib-list .lib-check:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand); }
.lib-row { gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.lib-row.is-on { background: var(--brand-soft); }
.lib-row-open { display: flex; min-width: 0; flex: 1; align-items: center; gap: 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lib-row-open .adm-row-t, .lib-row-open .adm-row-s { display: block; }
.lib-mini { display: block; flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--frost-well); }
.lib-mini img { width: 100%; height: 100%; object-fit: cover; }
.lib-row-meta { flex: 0 0 56px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); text-align: right; }
.lib-row-p { flex: 0 0 120px; text-align: right; }
.lib-selbar { position: sticky; z-index: 5; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 10px 12px 10px 20px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--glass-2, var(--color-card)); box-shadow: var(--frost-rim), 0 18px 40px -18px rgba(10, 14, 40, .45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lib-selbar-n { font-size: 14px; }
.lib-selbar-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lib-center { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.lib-form-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lib-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lib-sub-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.lib-sub-h .adm-h3 { margin: 0; }
.lib-flat .adm-row, .lib-showrow, .lib-flatrow { padding-left: 0; padding-right: 0; }
.lib-showrow { margin-top: 10px; border-top: 1px solid var(--frost-line); }
.lib-err { color: var(--color-alert-ink); }
.lib-danger { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--frost-line); }
.lib-player { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.lib-player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #0b0d14; }
.lib-player-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lib-player-bar label { display: flex; flex-direction: column; gap: 6px; }
.lib-player-bar .fld { height: 42px; }
.lib-player .adm-hint { margin: 0; }
.lib-player--wait { align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 20px; border-radius: 16px; background: var(--frost-well); text-align: center; }
.lib-player--wait i { font-size: 30px; color: var(--color-muted-foreground); }
.lib-player--wait p { max-width: 36ch; margin: 0; font-size: 14px; color: var(--color-muted-foreground); }
.lib-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; padding: 48px 28px; border: 2px dashed var(--frost-line); text-align: center; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out); }
.lib-drop.is-over { border-color: var(--color-brand); background: var(--brand-soft); }
.lib-drop .adm-h2, .lib-drop .adm-sub { margin: 0; }
.lib-drop .adm-sub { max-width: 52ch; }
.lib-drop-ic { display: grid; width: 64px; height: 64px; margin-bottom: 6px; place-items: center; border-radius: 20px; background: var(--brand-soft); font-size: 30px; color: var(--color-brand); }
.lib-how .adm-sub { max-width: 80ch; }
.lib-ready { display: flex; flex-direction: column; gap: 10px; }
.lib-ready .adm-h2, .lib-ready .adm-sub { margin: 0; }
.lib-folders { display: flex; flex-direction: column; gap: 2px; }
.lib-folders .adm-hint { margin: 0; }
.lib-prog { display: flex; flex-direction: column; gap: 12px; }
.lib-prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lib-prog-top .adm-h3 { margin: 0; }
.lib-prog-line { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.lib-bar-track { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--frost-well); }
.lib-bar-track > span { display: block; height: 100%; border-radius: inherit; background: var(--color-brand); transition: width .45s var(--ease-out); }
.lib-bar-track--sm { height: 6px; }
.lib-sending { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--frost-line); }
.lib-file { display: grid; grid-template-columns: minmax(0, 1fr) 160px 64px; align-items: center; gap: 12px; font-size: 13px; }
.lib-file-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-file-s { font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); text-align: right; }
.lib-failed { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; border-top: 1px solid var(--frost-line); }
.lib-failed .adm-hint { margin: 0; }
.lib-dub .lbl { margin-bottom: 8px; }
/* the language picker (second pass, 3 November 2026): one field holds what is chosen and searches the rest; the list
   opens under it, most used first, every language in its own words on the right; four suggestions instead of a wall */
.lib-lp { position: relative; }
.lib-lp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lib-lp-count { font-size: 12.5px; font-weight: 600; color: var(--color-brand-ink); }
.lib-lp-field {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 7px 10px 7px 40px;
  border: 1px solid var(--frost-line); border-radius: 16px; background: var(--frost-strong); box-shadow: var(--frost-rim); cursor: text;
  transition: border-color .2s var(--ease-out, ease), box-shadow .28s var(--ease-out, ease), background-color .2s var(--ease-out, ease);
}
.lib-lp-field > .ph-magnifying-glass { position: absolute; left: 15px; top: 15px; font-size: 17px; color: var(--color-muted-foreground); pointer-events: none; }
@media (hover: hover) { .lib-lp-field:hover { border-color: var(--oryn-border-hover); } }
.lib-lp-field.is-open, .lib-lp-field:focus-within {
  border-color: color-mix(in srgb, var(--color-brand) 60%, transparent); background: var(--color-card); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft);
}
.lib-lp-field.is-open > .ph-magnifying-glass { color: var(--color-brand-ink); }
.lib-lp-tokens { display: contents; }
.lib-lp-token {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 11px; border: 0; border-radius: 10px;
  background: var(--brand-soft); color: var(--color-brand-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  animation: lib-lp-in .22s var(--ease-out, ease) both;
}
.lib-lp-token span { font-weight: 500; opacity: .72; }
.lib-lp-token i { font-size: 11px; opacity: .6; transition: opacity .15s ease; }
@media (hover: hover) { .lib-lp-token:hover i { opacity: 1; } }
.lib-lp-token:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.lib-lp-input { flex: 1; min-width: 150px; height: 32px; padding: 0 4px; border: 0; outline: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--color-foreground); }
.lib-lp-input::placeholder { color: var(--color-muted-foreground); }
.lib-lp-pop {
  position: absolute; left: 0; right: 0; z-index: 30; margin-top: 6px; padding: 6px;
  border: 1px solid var(--frost-line); border-radius: 18px; background: color-mix(in srgb, var(--color-card) 97%, transparent); box-shadow: var(--frost-rim), var(--frost-pop);
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  animation: lib-lp-pop .18s var(--ease-out, ease) both;
}
.lib-lp-pop[hidden] { display: none; }
.lib-lp-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lib-lp-group {
  position: sticky; top: 0; z-index: 1; margin: 0; padding: 9px 10px 6px; font-size: 12px; font-weight: 600; color: var(--color-muted-foreground);
  background: var(--color-card);
}
.lib-lp-opt { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 7px 10px; border-radius: 12px; cursor: pointer; }
.lib-lp-opt.is-active { background: color-mix(in srgb, var(--color-foreground) 7%, transparent); }
.lib-lp-check {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--color-foreground) 22%, transparent); color: transparent;
  transition: background-color .16s var(--ease-out, ease), border-color .16s var(--ease-out, ease), color .16s var(--ease-out, ease);
}
.lib-lp-opt[aria-selected="true"] .lib-lp-check { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-primary-foreground); }
.lib-lp-opt[aria-selected="true"] .lib-lp-name { font-weight: 600; }
.lib-lp-name { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lib-lp-region { margin-left: 8px; font-weight: 400; color: var(--color-muted-foreground); }
.lib-lp-native { flex: none; max-width: 40%; overflow: hidden; font-size: 13px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.lib-lp-empty { margin: 0; padding: 14px 12px; font-size: 13.5px; color: var(--color-muted-foreground); }
.lib-lp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; margin-top: 10px; }
.lib-lp-quick:empty { display: none; }
.lib-lp-quick-h { margin-right: 4px; font-size: 12.5px; color: var(--color-muted-foreground); }
.lib-lp-sug {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border: 0; border-radius: 9px;
  background: transparent; color: var(--oryn-text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background-color .16s var(--ease-out, ease), color .16s var(--ease-out, ease);
}
.lib-lp-sug span { font-weight: 400; color: var(--color-muted-foreground); }
.lib-lp-sug i { font-size: 12px; color: var(--color-brand-ink); }
@media (hover: hover) { .lib-lp-sug:hover { background: var(--brand-soft); color: var(--color-brand-ink); } }
.lib-lp-sug:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
@keyframes lib-lp-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes lib-lp-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lib-lp-token, .lib-lp-pop { animation: none; } .lib-lp-field, .lib-lp-check, .lib-lp-sug { transition: none; } }
.lib-quote { display: flex; flex-direction: column; gap: 4px; }
.lib-quote p { margin: 0; }
.lib-quote-n { font-size: 14px; }
.lib-quote-m { font-size: 24px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lib-spin { display: inline-block; animation: dose-spin 1s linear infinite; }
@media (max-width: 900px) {
  .lib-two, .lib-player-bar { grid-template-columns: minmax(0, 1fr); }
  .lib-row-p, .lib-mini { display: none; }
  .lib-selbar { border-radius: 22px; }
  .lib-file { grid-template-columns: minmax(0, 1fr) 90px; }
  .lib-file-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lib-spin { animation: none; } .lib-bar-track > span { transition: none; } }
:is(.lib-grid, .lib-card, .lib-open, .lib-thumb, .lib-check, .lib-row-open, .lib-selbar, .lib-center, .lib-form-acts, .lib-two, .lib-sub-h, .lib-player, .lib-player-bar, .lib-drop, .lib-ready, .lib-folders, .lib-prog, .lib-prog-top, .lib-sending, .lib-file, .lib-failed, .lib-quote).hidden { display: none; }
.lib-selbar[hidden] { display: none; }

/* 19. The console's own player (3 November 2026): nothing of the browser's controls. The same piece as the Library's: a quiet
   bar that steps aside while the video plays, a Languages panel of two columns, captions drawn by the page. */
.lp { position: relative; margin-bottom: 20px; overflow: hidden; border-radius: 16px; background: #0b0d14; outline: none; isolation: isolate; }
.lp video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b0d14; cursor: pointer; }
.lp.ui-off { cursor: none; }
.lp:fullscreen { border-radius: 0; }
.lp:fullscreen video { height: 100%; aspect-ratio: auto; }
.lp-veil { position: absolute; inset: 0; background: rgba(11, 13, 20, .5); opacity: 0; pointer-events: none; transition: opacity .32s var(--ease-out); }
.lp.is-switching .lp-veil { opacity: 1; transition-duration: .16s; }
.lp-big { position: absolute; left: 50%; top: 50%; display: grid; width: 60px; height: 60px; margin: -30px 0 0 -30px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #15131f; font-size: 24px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); cursor: pointer; transition: opacity .28s var(--ease-out), transform .36s var(--ease-out); }
.lp-big .ph { margin-left: 3px; }
.lp-big:active { transform: scale(.96); }
.lp[data-state="playing"] .lp-big { opacity: 0; transform: scale(.88); pointer-events: none; }
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding: 36px 10px 8px; background: linear-gradient(to top, rgba(8, 10, 16, .72), rgba(8, 10, 16, 0)); color: #fff; transition: opacity .32s var(--ease-out), transform .32s var(--ease-out); }
.lp.ui-off .lp-bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
.lp[data-state="paused"] .lp-bar { opacity: 1; transform: none; }
.lp-ic, .lp-lang { display: inline-flex; flex: none; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s var(--ease-out); }
.lp-ic { width: 36px; font-size: 18px; }
.lp-lang { gap: 6px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 600; }
.lp-lang .ph { font-size: 17px; }
.lp-ic:hover, .lp-lang:hover, .lp-lang[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.lp-ic:focus-visible, .lp-lang:focus-visible, .lp-track:focus-visible, .lp-big:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-ccdot { display: none; padding: 0 4px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.5; }
.lp-lang.has-cc .lp-ccdot { display: inline-block; }
.lp-time { padding: 0 6px 0 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.lp-track { position: relative; flex: 1; height: 22px; margin: 0 6px; cursor: pointer; touch-action: none; outline: none; }
.lp-track::before, .lp-buf, .lp-fill { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; transition: height .2s var(--ease-out), margin .2s var(--ease-out); }
.lp-track::before { content: ""; background: rgba(255, 255, 255, .2); }
.lp-buf, .lp-fill { transform: scaleX(0); transform-origin: left center; }
.lp-buf { background: rgba(255, 255, 255, .3); }
.lp-fill { background: #fff; }
.lp-track:hover::before, .lp-track:hover .lp-buf, .lp-track:hover .lp-fill, .lp.is-seeking .lp-track::before, .lp.is-seeking .lp-buf, .lp.is-seeking .lp-fill { height: 5px; margin-top: -2.5px; }
.lp-panel { position: absolute; right: 10px; bottom: 54px; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px 10px; max-height: calc(100% - 70px); padding: 12px 10px; overflow: auto; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(18, 20, 30, .82); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 28px 64px -28px rgba(0, 0, 0, .7); color: #fff; opacity: 0; transform: translateY(8px) scale(.985); transform-origin: bottom right; transition: opacity .18s var(--ease-out), transform .24s var(--ease-out); }
.lp-panel.is-open { opacity: 1; transform: none; }
.lp-col { min-width: 0; margin: 0; padding: 0; border: 0; }
.lp-col-h { display: flex; align-items: center; gap: 6px; margin: 2px 8px 6px; padding: 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.lp-opt { position: relative; display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; border-radius: 9px; color: rgba(255, 255, 255, .82); font-size: 13px; cursor: pointer; transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.lp-opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lp-opt:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.lp-opt:has(input:focus-visible) { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; }
.lp-opt .ph { flex: none; font-size: 15px; opacity: 0; transform: scale(.6); transition: opacity .18s var(--ease-out), transform .24s var(--ease-out); }
.lp-opt:has(input:checked) { color: #fff; font-weight: 600; }
.lp-opt:has(input:checked) .ph { opacity: 1; transform: none; }
.lp-hint { margin: 4px 8px 2px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.lp-cc { position: absolute; left: 50%; bottom: 18px; width: max-content; max-width: 86%; transform: translateX(-50%); text-align: center; pointer-events: none; transition: bottom .32s var(--ease-out); }
.lp:not(.ui-off) .lp-cc { bottom: 60px; }
.lp-cc span { padding: 2px 8px; border-radius: 7px; background: rgba(10, 12, 20, .68); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.6; white-space: pre-line; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-said { position: absolute; left: 50%; top: 14px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(18, 20, 30, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, -6px); pointer-events: none; transition: opacity .26s var(--ease-out), transform .32s var(--ease-out); }
.lp-said.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .lp-veil, .lp-big, .lp-bar, .lp-panel, .lp-cc, .lp-said, .lp-opt .ph, .lp-track::before, .lp-buf, .lp-fill { transition: none; } }
:is(.lp-bar, .lp-panel, .lp-big, .lp-ic, .lp-lang, .lp-opt).hidden { display: none; }
.lp-panel[hidden] { display: none; }


/* 20. The menu in two levels (3 November 2026) ------------------------------------------------------------------
   Sergio found the list of apps that opened and closed inside each other confusing. Now a narrow column of apps, and
   beside it only the areas of the app you are in, under quiet headings. The app's tint marks its tile, the panel's
   title and the line above every page title. Tokens only, each app's tint defined at the top for light and dark. */
.adm-rail { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.adm-rail[data-app="bitesized"], .adm-crumb[data-app="bitesized"] { --app: var(--app-bitesized); }
.adm-rail[data-app="dose"], .adm-crumb[data-app="dose"] { --app: var(--app-dose); }
.adm-rail[data-app="library"], .adm-crumb[data-app="library"] { --app: var(--app-library); }
.adm-rail[data-app="ask"], .adm-crumb[data-app="ask"] { --app: var(--app-ask); }
.adm-rail[data-app="all"], .adm-crumb[data-app="all"] { --app: var(--app-all); }
.adm-rail[data-app="home"], .adm-crumb[data-app="home"] { --app: var(--app-home); }
.adm-app[data-app="bitesized"] { --app: var(--app-bitesized); }
.adm-app[data-app="dose"] { --app: var(--app-dose); }
.adm-app[data-app="library"] { --app: var(--app-library); }
.adm-app[data-app="ask"] { --app: var(--app-ask); }
.adm-app[data-app="all"] { --app: var(--app-all); }
.adm-app[data-app="home"] { --app: var(--app-home); }

/* the apps' own marks: a picture with its own colours, the Doctorpedia mark on a white plate, Ask and One on One's gradient */
.adm-logo { display: grid; flex: none; place-items: center; overflow: hidden; border-radius: 11px; }
.adm-logo img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.adm-logo--plate { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.adm-logo--plate img { width: 76%; height: 76%; object-fit: contain; }
.adm-logo--grad { background: var(--one-grad); color: #fff; }
.adm-logo--grad svg { width: 52%; height: 52%; }
.adm-logo--brand { background: var(--brand-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.adm-logo--brand i { font-size: 1.1em; line-height: 1; }
.adm-app-logo.adm-logo--brand i { font-size: 19px; }
.adm-apphead-logo.adm-logo--brand i { font-size: 18px; }
.adm-crumb-logo.adm-logo--brand i { font-size: 12px; }

/* the column of apps: the tint of the app you are in rises from the top */
.adm-apps {
  display: flex; min-height: 0; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px;
  overflow-y: auto; scrollbar-width: none;
  border-right: 1px solid var(--color-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--app) 9%, transparent), transparent 46%), color-mix(in srgb, var(--color-foreground) 3%, transparent);
  transition: background-color .4s var(--ease-out);
}
.adm-apps-mark { margin-bottom: 16px; }
.adm-apps-list { position: relative; display: flex; width: 100%; flex-direction: column; align-items: center; gap: 4px; }
.adm-apps-sep { width: 26px; height: 1px; margin: 6px 0; background: var(--color-border); }
.adm-app {
  position: relative; z-index: 1; display: flex; width: 100%; flex-direction: column; align-items: center; gap: 5px; padding: 6px 0 7px;
  border: 0; border-radius: 12px; background: transparent; color: var(--color-muted-foreground); font: inherit; cursor: pointer;
}
.adm-app-tile { position: relative; display: grid; width: 36px; height: 36px; place-items: center; }
.adm-app-logo {
  width: 36px; height: 36px; border-radius: 11px; opacity: .74; filter: saturate(.7);
  box-shadow: 0 6px 14px -9px rgba(20, 16, 40, .55);
  transition: opacity .3s var(--ease-out), filter .3s var(--ease-out), transform .45s var(--ease-out), box-shadow .3s var(--ease-out);
}
.adm-app-name {
  max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: nowrap;
  transition: color .3s var(--ease-out);
}
@media (hover: hover) {
  .adm-app:hover .adm-app-logo { opacity: 1; filter: none; transform: translateY(-1px); box-shadow: 0 10px 18px -10px rgba(20, 16, 40, .6); }
  .adm-app:hover .adm-app-name { color: var(--color-foreground); }
}
.adm-app:focus-visible { outline: none; }
.adm-app:focus-visible .adm-app-logo { box-shadow: 0 0 0 2px var(--color-card), 0 0 0 4px var(--color-ring); }
.adm-app[aria-current="true"] .adm-app-logo { opacity: 1; filter: none; }
.adm-app[aria-current="true"] .adm-app-name { color: var(--color-foreground); }
/* the marker: a ring in the app's tint around its mark and a bar at the edge, sliding from app to app */
.adm-apps-ind { position: absolute; top: 0; right: 0; left: 0; z-index: 0; height: 64px; opacity: 0; pointer-events: none; will-change: transform; }
.adm-apps-ind::after {
  content: ""; position: absolute; top: 1px; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 15px;
  background: color-mix(in srgb, var(--app) 12%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--app) 70%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--app) 80%, transparent);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.adm-apps-ind::before {
  content: ""; position: absolute; top: 11px; left: -6px; width: 3px; height: 26px; border-radius: 0 3px 3px 0; background: var(--app);
  transition: background-color .4s var(--ease-out);
}
.adm-app-dot {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-brand); box-shadow: 0 0 0 2px var(--color-card);
}
.adm-app-dot.is-alert { background: var(--color-alert); }
.adm-app-dot.hidden { display: none; }

/* the panel of the app you are in: its tint washes the top, its mark beside its name */
.adm-panel { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; gap: 14px; padding: 14px 12px 12px 14px; }
.adm-panel::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 200px; pointer-events: none;
  background: radial-gradient(280px 170px at 18% -10%, color-mix(in srgb, var(--app) 13%, transparent), transparent 72%);
}
.adm-panel > * { position: relative; }
.adm-panel-top { height: 34px; gap: 8px; padding-left: 2px; }
.adm-panel-top .adm-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.adm-panel-top .adm-brand-tag { height: 20px; padding: 0 8px; font-size: 11.5px; }
.adm-apphead { padding: 2px 2px 14px; border-bottom: 1px solid var(--color-border); }
.adm-apphead-name { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.adm-apphead-logo { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 8px 18px -10px rgba(20, 16, 40, .55); }
.adm-apphead-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted-foreground); }
.adm-panel .adm-navlist { position: relative; gap: 0; margin: 0 -4px; padding: 0 4px; }
.adm-nav-items { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
/* the marker behind the open area, sliding from row to row */
.adm-nav-ind {
  position: absolute; top: 0; right: 4px; left: 4px; z-index: 0; height: 38px; border-radius: 11px; opacity: 0; pointer-events: none; will-change: transform;
  background: color-mix(in srgb, var(--app) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app) 16%, transparent);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.adm-panel .adm-nav {
  gap: 11px; height: 38px; padding: 0 10px; border-radius: 11px; font-size: 14px;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.adm-panel .adm-nav-ic { width: 20px; font-size: 18px; transition: color .25s var(--ease-out), transform .3s var(--ease-out); }
.adm-panel .adm-nav[aria-current="page"] { background: transparent; color: var(--color-foreground); font-weight: 600; }
.adm-panel .adm-nav[aria-current="page"] .adm-nav-ic { color: var(--app); }
@media (hover: hover) { .adm-panel .adm-nav:hover:not([aria-current="page"]) { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); } }
.adm-panel .adm-navsub { margin: 14px 10px 5px; font-size: 11.5px; font-weight: 600; color: var(--color-muted-foreground); }
.adm-panel .adm-nav-items > .adm-navsub:first-child { margin-top: 2px; }
.adm-panel .adm-me { padding: 12px 2px 0 4px; }
/* a long list (BiteSized) fades at its foot while there is more below it */
.adm-panel .adm-navlist::after {
  content: ""; position: sticky; bottom: 0; z-index: 2; flex: none; height: 22px; margin-top: auto; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-card));
}

/* the menu folds to the apps alone (5 November 2026, second version). Folded, the column of apps is the whole menu; an
   app pressed brings its areas out beside it as a floating card, the same panel as when the menu is open. The edge
   closes over the panel as the width goes and the card comes out of that same edge. The button at the foot of the
   apps folds and opens, from the same place in both states. Phones keep their sliding sheet. */
.adm-apps-foot, .adm-rail-toggle { display: none; }
.adm-railtip {
  position: fixed; z-index: 90; max-width: 260px; padding: 7px 11px; border-radius: 10px; pointer-events: none;
  background: var(--color-foreground); color: var(--color-background); font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: pre;
  box-shadow: 0 10px 26px -12px rgba(10, 8, 24, .55);
  opacity: 0; translate: -4px -50%; transition: opacity .14s var(--ease-out), translate .22s var(--ease-out);
}
.adm-railtip.is-on { opacity: 1; translate: 0 -50%; }
@media (min-width: 1024px) {
  .adm-apps-foot { display: flex; flex: none; justify-content: center; width: 100%; margin-top: auto; padding-top: 12px; }
  .adm-rail-toggle {
    display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--color-muted-foreground);
    transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
  }
  .adm-rail-toggle i { font-size: 19px; }
  @media (hover: hover) { .adm-rail-toggle:hover { color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 6%, transparent); } }
  .adm-panel-top [data-nav-close] { display: none; }
  .adm-panel-brand { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }

  :root:root.adm-rail-min { --adm-nav-w: 68px; }   /* the tokens sit on :root:root, so the folded width needs the same weight */
  html.adm-rail-anim .adm-shell { transition: grid-template-columns .5s var(--ease-out); }
  /* in the rail the panel keeps its width while the rail narrows: the edge closes over it instead of squeezing its words */
  .adm-rail > .adm-panel { min-width: 236px; }
  html.adm-rail-anim .adm-rail > .adm-panel { transition: opacity .3s var(--ease-out) .14s; }
  html.adm-rail-min .adm-rail > .adm-panel { opacity: 0; transition-duration: .18s; transition-delay: 0s; }
  html.adm-rail-float .adm-apps { border-right-color: transparent; }

  /* folded: the panel is a card floating beside the column, out of sight until an app is pressed */
  html.adm-rail-float .adm-rail > .adm-panel {
    position: fixed; top: var(--frame); left: calc(var(--frame) * 2 + 68px); z-index: 70;
    width: 264px; min-width: 0; max-height: calc(100dvh - var(--frame) * 2); overflow: hidden;
    border: 1px solid var(--frost-line); border-radius: var(--frame-r);
    background: radial-gradient(300px 260px at 0% 0%, var(--field-a), transparent 74%), var(--color-card);
    box-shadow: var(--frost-rim), var(--frost-pop);
    opacity: 0; visibility: hidden; translate: -12px 0; scale: .98; transform-origin: 0 28px;
    transition: opacity .16s var(--ease-out), translate .16s var(--ease-out), scale .16s var(--ease-out), visibility 0s linear .16s;
  }
  html.adm-rail-float.adm-rail-peek .adm-rail > .adm-panel {
    opacity: 1; visibility: visible; translate: 0 0; scale: 1;
    transition: opacity .2s var(--ease-out), translate .38s var(--ease-out), scale .38s var(--ease-out), visibility 0s;
  }
  html.adm-rail-float .adm-panel-top { display: none; }
  html.adm-rail-float .adm-app[aria-expanded="true"] .adm-app-logo { opacity: 1; filter: none; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  html.adm-rail-anim .adm-shell, html.adm-rail-anim .adm-rail > .adm-panel, html.adm-rail-float .adm-rail > .adm-panel, .adm-railtip { transition: none !important; }
}

/* For developers (5 November 2026): a heading that folds its screens away; folded unless opened */
.adm-navlist [hidden] { display: none !important; }
.adm-panel .adm-navsub--fold {
  display: flex; align-items: center; gap: 6px; width: calc(100% - 20px); padding: 0; border: 0; background: none;
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--color-muted-foreground); text-align: left; cursor: pointer;
}
.adm-panel .adm-navsub--fold:hover { color: var(--color-foreground); }
.adm-panel .adm-navsub--fold:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }
.adm-navsub-caret { font-size: 11px; transition: rotate .28s var(--ease-out); }
.adm-navsub--fold[aria-expanded="false"] .adm-navsub-caret { rotate: -90deg; }

/* the line above every page title: which app this screen belongs to */
.adm-crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); }
.adm-crumb-logo { width: 22px; height: 22px; border-radius: 7px; }
.adm-crumb-app { color: var(--color-foreground); }
.adm-crumb-sep { font-size: 11px; opacity: .6; }

@media (max-width: 1023.98px) {
  .adm-rail { width: min(340px, calc(100% - 40px)); }
  .adm-app { padding: 4px 0 6px; }
  .adm-app-tile { width: 44px; height: 44px; }
  .adm-app-logo { width: 40px; height: 40px; }
  .adm-apps-ind::after { top: 0; width: 50px; height: 50px; margin-left: -25px; }
  .adm-panel .adm-nav { height: 44px; }
  .adm-nav-ind { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-app-tile, .adm-app-logo, .adm-app-name, .adm-apps-ind::after, .adm-apps-ind::before, .adm-nav-ind, .adm-panel .adm-nav, .adm-panel .adm-nav-ic { transition: none; }
}


/* 21. Home, the Ask screens, the Live site link (3 November 2026) ----------------------------------------------
   Home: what waits for a person in every app, then a card per app. The Home panel lists the apps as rows. The Live
   site chip opens the app you are in. Ask: usage by day and by kind, and what it consults. Tokens only. */
.adm-nav-logo { width: 22px; height: 22px; border-radius: 7px; }
.adm-nav-logo.adm-logo--brand i, .adm-nav-logo.adm-logo--grad svg { font-size: 12px; }
a.adm-envchip { text-decoration: none; }
.adm-envchip-out { display: none; font-size: 12px; font-weight: 400; color: var(--color-muted-foreground); }
a.adm-envchip.is-link { cursor: pointer; transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background-color .2s var(--ease-out); }
a.adm-envchip.is-link .adm-envchip-out { display: inline; }
@media (hover: hover) { a.adm-envchip.is-link:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); } }

.hm-wait { margin-bottom: 26px; padding: 22px 22px 14px; }
.hm-wait-head { margin-bottom: 10px; }
.hm-wait-head .adm-h3 { margin: 0; }
.hm-rows { display: flex; flex-direction: column; }
.hm-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 10px 6px; border: 0; border-top: 1px solid var(--color-border);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0;
  transition: background-color .2s var(--ease-out);
}
.hm-row:first-child { border-top: 0; }
@media (hover: hover) { .hm-row:hover { background: color-mix(in srgb, var(--color-foreground) 4%, transparent); } .hm-row:hover .hm-row-go { color: var(--color-foreground); transform: translateX(2px); } }
.hm-row-logo { width: 28px; height: 28px; border-radius: 9px; }
.hm-row-n { min-width: 34px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hm-row-n.is-alert { color: var(--color-alert-ink); }
.hm-row-t { flex: 1; min-width: 0; font-size: 14.5px; color: var(--oryn-text-2); }
.hm-row-go { flex: none; color: var(--color-muted-foreground); transition: color .2s var(--ease-out), transform .25s var(--ease-out); }
.hm-calm { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding: 22px; }
.hm-calm .adm-h3, .hm-calm .adm-sub { margin: 0; }
.hm-calm-ic { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--adm-ok-soft); color: var(--color-success-ink); font-size: 20px; }
/* the notices that lived in Needs you, one press away on Home (5 November 2026) */
.hm-notices { margin: -12px 0 26px; padding: 4px 16px; }
.hm-notices .hm-row { border-top: 0; }
.hm-row-ic { display: grid; flex: none; place-items: center; background: var(--brand-soft); color: var(--color-brand-ink); font-size: 16px; }
.hm-apps-h { margin: 0 0 14px; }
.hm-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.hm-app {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; overflow: hidden;
  border: 1px solid var(--frost-line); border-radius: 22px; background: var(--color-card); box-shadow: var(--frost-rim);
}
.hm-app::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none; background: radial-gradient(260px 120px at 12% -20%, color-mix(in srgb, var(--app) 14%, transparent), transparent 75%); }
.hm-app > * { position: relative; }
.hm-app[data-app="bitesized"] { --app: var(--app-bitesized); }
.hm-app[data-app="dose"] { --app: var(--app-dose); }
.hm-app[data-app="library"] { --app: var(--app-library); }
.hm-app[data-app="ask"] { --app: var(--app-ask); }
.hm-app[data-app="all"] { --app: var(--app-all); }
.hm-app-head { display: flex; align-items: center; gap: 14px; }
.hm-app-logo { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 8px 18px -10px rgba(20, 16, 40, .55); }
.hm-app-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.hm-app-sub { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--color-muted-foreground); }
.hm-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-fig-v { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hm-fig-v.is-none { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--color-muted-foreground); }
.hm-fig-l { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: var(--oryn-text-2); }
.hm-fig-l span { display: block; color: var(--color-muted-foreground); }
.hm-why { margin: -6px 0 0; }
.hm-app-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.hm-live { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.ask-site { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); }
.ask-bars { gap: 6px; }
.ask-kinds .adm-row { padding-left: 0; padding-right: 0; }
@media (prefers-reduced-motion: reduce) { .hm-row, .hm-row-go, a.adm-envchip.is-link { transition: none; } }
:is(.hm-calm, .hm-apps, .hm-app, .hm-app-head, .hm-figs, .hm-app-foot, .hm-row).hidden { display: none; }
.hm-fig-v.is-wait { color: var(--color-muted-foreground); }
.hm-still { display: flex; align-items: center; gap: 8px; margin: 10px 6px 4px; }

/* number fields without the browser's own arrows (3 November 2026 audit: Ask's plans, the profiles, moderation) */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* 22. The assistant (3 November 2026) ----------------------------------------------------------------------
   A panel beside the page. On a wide screen the page card makes room for it, so nothing is covered; below that it
   comes over the page from the right, and on a phone it fills the screen. It slides in on the console's curve. */
.adm-assistbtn {
  display: inline-flex; flex: none; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px;
  border: 1px solid var(--frost-line); border-radius: 12px; background: var(--frost-strong); box-shadow: var(--frost-rim);
  color: var(--color-foreground); font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.adm-assistbtn i { font-size: 17px; color: var(--color-brand-ink); }
.adm-assistbtn:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }
.adm-assistbtn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--color-brand) 45%, var(--frost-line)); background: var(--brand-soft); color: var(--color-brand-ink); }
.adm-assistbtn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
@media (max-width: 640px) { .adm-assistbtn { width: 38px; padding: 0; justify-content: center; } .adm-assistbtn span { display: none; } }

.adm-assist {
  position: fixed; top: var(--frame); right: var(--frame); bottom: var(--frame); z-index: 85; display: flex; flex-direction: column;
  width: min(380px, calc(100% - var(--frame) * 2)); overflow: hidden;
  border: 1px solid var(--frost-line); border-radius: var(--frame-r); background: var(--adm-glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: var(--frost-rim), var(--frost-pop);
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform .42s var(--ease-out), visibility 0s .42s;
}
body.adm-assist-open .adm-assist { transform: none; visibility: visible; transition: transform .42s var(--ease-out), visibility 0s; }
@media (min-width: 1280px) {
  .adm-main { transition: margin-right .42s var(--ease-out); }
  body.adm-assist-open .adm-main { margin-right: calc(380px + var(--frame)); }
  body.adm-assist-open .adm-assist { box-shadow: var(--frost-rim); }
}
@media (max-width: 640px) {
  .adm-assist { top: 0; right: 0; bottom: 0; width: 100%; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .adm-assist, .adm-main { transition: none !important; } }

.ast-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ast-head { display: flex; flex: none; align-items: center; gap: 6px; padding: 14px 10px 12px 16px; border-bottom: 1px solid var(--color-border); }
.ast-head > div { flex: 1; min-width: 0; }
.ast-mark { display: grid; flex: none; width: 34px; height: 34px; margin-right: 6px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--color-brand-ink); font-size: 18px; }
.ast-title { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--color-foreground); }
.ast-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--color-muted-foreground); }

.ast-log { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 14px; padding: 18px 18px 12px; overflow-y: auto; overscroll-behavior: contain; }
.ast-me {
  align-self: flex-end; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 6px 16px;
  background: color-mix(in srgb, var(--color-brand) 13%, var(--color-card)); color: var(--color-foreground);
  font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
.ast-it { max-width: 96%; color: var(--color-foreground); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.ast-it p { margin: 0 0 6px; }
.ast-it p:last-child { margin-bottom: 0; }
.ast-it.is-failed { color: var(--color-muted-foreground); }
.ast-opens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ast-opens .adm-btn i { margin-left: 2px; }
.ast-went { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; color: var(--color-muted-foreground); font-size: 12.5px; }
.ast-busy { display: inline-flex; gap: 5px; padding: 8px 2px; }
.ast-busy i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted-foreground); opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .ast-busy i { animation: ast-dot 1.2s var(--ease-out) infinite; }
  .ast-busy i:nth-child(2) { animation-delay: .15s; }
  .ast-busy i:nth-child(3) { animation-delay: .3s; }
}
@keyframes ast-dot { 0%, 70%, 100% { opacity: .25; } 35% { opacity: .85; } }

.ast-empty { margin-top: auto; }
.ast-empty-t { margin: 0; font-size: 17px; font-weight: 600; color: var(--color-foreground); }
.ast-empty-s { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.ast-try { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.ast-try-b {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--frost-line); border-radius: 12px; background: var(--color-card); color: var(--color-foreground);
  font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.ast-try-b i { color: var(--color-muted-foreground); transition: transform .25s var(--ease-out), color .2s var(--ease-out); }
.ast-try-b:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }
.ast-try-b:hover i { color: var(--color-brand-ink); transform: translateX(2px); }
.ast-try-b:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

.ast-form {
  display: flex; flex: none; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 7px 7px 7px 6px;
  border: 1px solid var(--frost-line); border-radius: 16px; background: var(--color-card);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.ast-form:focus-within { border-color: color-mix(in srgb, var(--color-brand) 50%, var(--frost-line)); box-shadow: 0 0 0 4px var(--brand-soft); }
/* the whole box shows it has the focus, so the field inside draws no ring of its own (10 November 2026: a lilac
   rectangle sat inside the rounded box) */
.ast-form textarea:focus, .ast-form textarea:focus-visible { outline: none !important; box-shadow: none !important; }
.ast-form textarea {
  flex: 1; min-width: 0; min-height: 34px; max-height: 140px; padding: 7px 8px; resize: none;
  border: 0; outline: 0; background: transparent; color: var(--color-foreground); font: inherit; font-size: 15px; line-height: 1.35;
}
.ast-form textarea::placeholder { color: var(--color-muted-foreground); }
.ast-send {
  display: grid; flex: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px;
  background: var(--color-brand); color: var(--color-primary-foreground); font-size: 16px; cursor: pointer;
  transition: background-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.ast-send:hover { background: var(--color-brand-hover); }
.ast-send:active { transform: scale(.94); }
.ast-send:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.ast-note { flex: none; margin: 8px 18px 14px; color: var(--color-muted-foreground); font-size: 12px; }
@media (max-width: 640px) { .ast-note { margin-bottom: calc(14px + env(safe-area-inset-bottom)); } }

/* the assistant's prepared changes: a card each, its kind first, then exactly what will happen; nothing happens until Confirm */
.ast-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ast-card {
  display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 12px;
  border: 1px solid var(--frost-line); border-radius: 14px; background: var(--color-card); box-shadow: var(--frost-rim);
}
.ast-card.is-money, .ast-card.is-access { border-color: color-mix(in srgb, var(--color-warning, var(--color-brand)) 40%, var(--frost-line)); }
.ast-card.is-permanent { border-color: color-mix(in srgb, var(--color-alert) 45%, var(--frost-line)); }
.ast-card-k { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--color-muted-foreground); font-size: 12.5px; }
.ast-card-k i { font-size: 15px; }
.ast-card.is-permanent .ast-card-k { color: var(--color-alert-ink); }
.ast-card-where { margin-left: auto; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ast-card-t { margin: 0 !important; color: var(--color-foreground); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.ast-card-s { margin: 0 !important; color: var(--color-muted-foreground); font-size: 13px; line-height: 1.45; }
.ast-card-s b { font-weight: 600; color: var(--oryn-text-2); }
.ast-card-acts { display: flex; gap: 6px; margin-top: 6px; }
.ast-card-state { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 !important; color: var(--color-muted-foreground); font-size: 13px; }
.ast-card.is-done .ast-card-state { color: var(--color-success-ink); }
.ast-card.is-failed .ast-card-state { color: var(--color-alert-ink); }
.ast-card.is-cancelled { opacity: .62; }
.ast-all { align-self: flex-start; }
.ast-it b { font-weight: 600; }
.ast-list { margin: 0 0 6px; padding-left: 18px; }
.ast-list li { margin: 2px 0; }
.ast-list li::marker { color: var(--color-muted-foreground); }

/* the assistant, the next level (3 November 2026): what it is reading, the rows it means, answers you can see, the day's
   briefing, and its voice */
.ast-busy { align-items: center; gap: 9px; color: var(--color-muted-foreground); font-size: 13px; }
.ast-dots { display: inline-flex; gap: 4px; }
.ast-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted-foreground); opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .ast-dots i { animation: ast-dot 1.2s var(--ease-out) infinite; }
  .ast-dots i:nth-child(2) { animation-delay: .15s; }
  .ast-dots i:nth-child(3) { animation-delay: .3s; }
}
.ast-step { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the rows it talks about, lit and numbered like its answer */
.ast-lit { position: relative; outline: 2px solid var(--color-brand) !important; outline-offset: 2px; border-radius: 10px; background-color: color-mix(in srgb, var(--color-brand) 9%, transparent) !important; scroll-margin: 120px; }
.ast-lit::after {
  content: attr(data-ast-n); position: absolute; top: -10px; left: -10px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-brand); color: var(--color-primary-foreground); font: 600 11px/20px var(--font-sans, inherit); text-align: center; pointer-events: none;
}
tr.ast-lit::after { content: none; }
tr.ast-lit > td:first-child { box-shadow: inset 3px 0 0 var(--color-brand); }
@media (prefers-reduced-motion: no-preference) { .ast-lit { animation: ast-lit-in .5s var(--ease-out) both; } }
@keyframes ast-lit-in { from { outline-color: transparent; background-color: transparent; } }

/* blocks */
.ast-block { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--frost-line); border-radius: 14px; background: var(--color-card); }
.ast-block-t { margin: 0 0 8px !important; color: var(--color-muted-foreground); font-size: 12.5px; }
.ast-block-u { margin: 6px 0 0 !important; color: var(--color-muted-foreground); font-size: 12px; }
.ast-recs { display: flex; flex-direction: column; gap: 4px; }
.ast-rec { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--color-foreground); font: inherit; text-align: left; }
button.ast-rec { cursor: pointer; transition: background-color .2s var(--ease-out); }
button.ast-rec:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
button.ast-rec:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.ast-rec-main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.ast-rec-t { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ast-rec-d { overflow: hidden; color: var(--color-muted-foreground); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ast-rec-go { flex: none; color: var(--color-muted-foreground); }
.ast-badge { flex: none; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 7%, transparent); color: var(--color-muted-foreground); font-size: 11.5px; }
.ast-badge.is-ok { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.ast-badge.is-warn { background: color-mix(in srgb, var(--color-brand) 12%, transparent); color: var(--color-brand-ink); }
.ast-badge.is-bad { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.ast-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 4px; }
.ast-bar { display: flex; flex: 1; min-width: 0; height: 100%; flex-direction: column; align-items: center; gap: 4px; }
.ast-bar b { color: var(--color-foreground); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ast-bar-col { display: flex; width: 100%; flex: 1; align-items: flex-end; }
.ast-bar-col i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--color-brand) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) { .ast-bar-col i { animation: ast-grow .6s var(--ease-out) both; transform-origin: bottom; } }
@keyframes ast-grow { from { transform: scaleY(0); } }
.ast-bar small { max-width: 100%; overflow: hidden; color: var(--color-muted-foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ast-tablewrap { overflow-x: auto; }
.ast-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ast-table th { padding: 4px 8px 6px; color: var(--color-muted-foreground); font-weight: 500; text-align: left; white-space: nowrap; }
.ast-table td { padding: 6px 8px; border-top: 1px solid var(--color-border); vertical-align: top; }

/* the briefing */
.ast-it.is-brief { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--color-brand) 30%, var(--frost-line)); border-radius: 16px; background: color-mix(in srgb, var(--color-brand) 6%, var(--color-card)); }
.ast-brief-k { display: flex; align-items: center; gap: 6px; margin: 0 0 6px !important; color: var(--color-brand-ink); font-size: 12.5px; font-weight: 600; }
.adm-assistbtn.has-brief { position: relative; }
.adm-assistbtn.has-brief::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 2px var(--color-card); }

/* the voice */
.ast-mic {
  display: grid; flex: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px;
  background: transparent; color: var(--color-muted-foreground); font-size: 17px; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.ast-mic:hover { background: color-mix(in srgb, var(--color-foreground) 6%, transparent); color: var(--color-foreground); }
.ast-mic:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.ast-mic.is-on { background: var(--brand-soft); color: var(--color-brand-ink); }
@media (prefers-reduced-motion: no-preference) { .ast-mic.is-on { animation: ast-listen 1.6s var(--ease-out) infinite; } }
@keyframes ast-listen { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-brand) 45%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ast-me-ic { margin-right: 6px; color: var(--color-muted-foreground); font-size: 13px; vertical-align: -1px; }
.ast-hear { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 2px 0; border: 0; background: transparent; color: var(--color-muted-foreground); font: inherit; font-size: 12.5px; cursor: pointer; }
.ast-hear:hover, .ast-hear.is-on { color: var(--color-brand-ink); }
.ast-hear:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 6px; }

/* the assistant, everything by chat (3 November 2026): full screen, attachments, private answers, the listening ring */
body.adm-assist-full .adm-assist { left: var(--frame); width: auto; z-index: 95; box-shadow: var(--frost-rim), var(--frost-pop); }
body.adm-assist-full .ast-log, body.adm-assist-full .ast-form, body.adm-assist-full .ast-note { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
body.adm-assist-full .ast-log { padding-inline: 0; }
body.adm-assist-full .ast-it, body.adm-assist-full .ast-me { font-size: 15.5px; }
@media (max-width: 640px) {
  .ast-full-b { display: none; }
  /* on a phone the panel already fills the screen: full screen turned on in a wider window (or a turned tablet) left a
     strip of page at the left and no button to leave it (3 November 2026 pass) */
  body.adm-assist-full .adm-assist { left: 0; }
  body.adm-assist-full .ast-log, body.adm-assist-full .ast-note { width: auto; margin-inline: 0; padding-inline: 18px; }
  body.adm-assist-full .ast-note { margin-inline: 18px; padding-inline: 0; }
  body.adm-assist-full .ast-form { width: auto; margin-inline: 12px; }
}
/* while it answers: what it is doing, and Stop; a failed or stopped answer offers Try again */
.ast-busy .ast-stop, .ast-again {
  display: inline-flex; flex: none; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--frost-line); border-radius: 9px;
  background: var(--color-card); color: var(--color-foreground); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.ast-busy .ast-stop:hover, .ast-again:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); }
.ast-busy .ast-stop:focus-visible, .ast-again:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.ast-again { margin-top: 8px; }
.ast-send.is-stop { background: color-mix(in srgb, var(--color-foreground) 8%, var(--color-card)); color: var(--color-foreground); }

.adm-assist.is-drop { outline: 2px dashed var(--color-brand); outline-offset: -8px; }
.ast-form { flex-wrap: wrap; }
.ast-chips { display: flex; width: 100%; flex-wrap: wrap; gap: 6px; padding: 2px 2px 6px; }
.ast-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 4px 4px 4px 9px; border: 1px solid var(--frost-line); border-radius: 999px; background: color-mix(in srgb, var(--color-foreground) 4%, transparent); font-size: 12.5px; }
.ast-chip span { overflow: hidden; max-width: 180px; text-overflow: ellipsis; white-space: nowrap; }
.ast-chip button { display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted-foreground); cursor: pointer; }
.ast-chip button:hover { background: color-mix(in srgb, var(--color-foreground) 8%, transparent); color: var(--color-foreground); }
.ast-chip.is-wait { opacity: .6; }
.ast-chip.is-bad { border-color: color-mix(in srgb, var(--color-alert) 45%, var(--frost-line)); color: var(--color-alert-ink); }
.ast-clip { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px; background: transparent; color: var(--color-muted-foreground); font-size: 17px; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.ast-clip:hover { background: color-mix(in srgb, var(--color-foreground) 6%, transparent); color: var(--color-foreground); }
.ast-clip:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.ast-me-files { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--color-muted-foreground); font-size: 12px; }
.ast-me-files i { margin-right: 3px; }

/* the microphone's ring follows the voice it hears */
.ast-mic.is-on { box-shadow: 0 0 0 calc(2px + var(--lvl, 0) * 9px) color-mix(in srgb, var(--color-brand) 30%, transparent); animation: none; transition: box-shadow .1s linear; }

/* private answers: only the person sees them */
.ast-block.is-private, .ast-private { border-color: color-mix(in srgb, var(--color-brand) 30%, var(--frost-line)); }
.ast-private { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--color-border); }
.ast-block.is-private .ast-block-t i, .ast-private .ast-block-t i { margin-right: 5px; }
.ast-secret { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; overflow-wrap: anywhere; }
.ast-copy { display: inline-grid; width: 22px; height: 22px; margin-left: 4px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--color-muted-foreground); vertical-align: middle; cursor: pointer; }
.ast-copy:hover { background: color-mix(in srgb, var(--color-foreground) 7%, transparent); color: var(--color-foreground); }
.ast-copy.is-done { color: var(--color-success-ink); }
.ast-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 12.5px; }
.ast-facts dt { color: var(--color-muted-foreground); }
.ast-facts dd { margin: 0; overflow-wrap: anywhere; }
.ast-secret-in { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; color: var(--color-muted-foreground); font-size: 12px; }
.ast-secret-in input { height: 34px; padding: 0 10px; border: 1px solid var(--frost-line); border-radius: 10px; background: var(--color-background); color: var(--color-foreground); font: inherit; font-size: 13.5px; }
.ast-secret-in input:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; }
ol.ast-list { padding-left: 20px; }
ol.ast-list li::marker { color: var(--color-brand-ink); font-weight: 600; }

/* a report: the card the PDF comes from */
.ast-doc { display: flex; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--color-brand) 28%, var(--frost-line)); border-radius: 14px; background: var(--color-card); }
.ast-doc-ic { display: grid; flex: none; width: 40px; height: 48px; place-items: center; border-radius: 9px; background: linear-gradient(150deg, #2B5CE6, #6D3AE8 56%, #C13B9E); color: #fff; font-size: 20px; }
.ast-doc-main { flex: 1; min-width: 0; }
.ast-doc-t { margin: 0 !important; color: var(--color-foreground); font-size: 14.5px; font-weight: 600; }
.ast-doc-s { margin: 2px 0 0 !important; color: var(--oryn-text-2); font-size: 13px; }
.ast-doc-k { margin: 4px 0 0 !important; overflow: hidden; color: var(--color-muted-foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ast-doc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ast-doc-acts .is-busy { opacity: .6; cursor: progress; }

/* talking with it: one circle that shows what it is doing (listening follows your voice, thinking breathes, speaking
   follows its voice), what you said, what it answers, and End */
.ast-talk {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 64px 28px 84px; border-radius: inherit; background: color-mix(in srgb, var(--color-card) 95%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); text-align: center;
}
.ast-talk-top { position: absolute; top: 14px; left: 14px; }
.ast-lang { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); color: var(--color-foreground); font: inherit; font-size: 13px; cursor: pointer; }
.ast-lang:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.ast-langs { position: absolute; top: 38px; left: 0; z-index: 2; display: flex; min-width: 170px; flex-direction: column; padding: 6px; border: 1px solid var(--frost-line); border-radius: 14px; background: var(--frost-float, var(--color-card)); box-shadow: var(--frost-rim), var(--frost-pop); text-align: left; }
.ast-langs button { padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--color-foreground); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ast-langs button:hover, .ast-langs button[aria-selected="true"] { background: color-mix(in srgb, var(--color-brand) 10%, transparent); color: var(--color-brand-ink); }
.ast-orb {
  position: relative; width: 148px; height: 148px; margin-bottom: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%), linear-gradient(140deg, #2B5CE6, #6D3AE8 56%, #C13B9E);
  box-shadow: 0 24px 60px -22px rgba(109, 58, 232, .75), inset 0 -10px 30px rgba(0, 0, 0, .15);
  transform: scale(calc(1 + var(--lvl, 0) * .2)); transition: transform .09s linear, filter .3s var(--ease-out), opacity .3s var(--ease-out);
}
.ast-orb span { position: absolute; inset: -16px; border: 2px solid rgba(109, 58, 232, .35); border-radius: 50%; opacity: calc(.15 + var(--lvl, 0)); transform: scale(calc(1 + var(--lvl, 0) * .28)); transition: transform .09s linear, opacity .09s linear; }
.ast-orb:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 8px; }
.ast-talk[data-state="thinking"] .ast-orb { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .ast-talk[data-state="thinking"] .ast-orb { animation: ast-breathe 1.8s ease-in-out infinite; }
}
@keyframes ast-breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
.ast-talk[data-state="paused"] .ast-orb { filter: saturate(.35); opacity: .7; transform: none; }
.ast-talk-state { margin: 0; color: var(--color-foreground); font-size: 15px; font-weight: 600; }
.ast-talk-you { min-height: 1.4em; max-width: 36ch; margin: 0; color: var(--color-muted-foreground); font-size: 14px; }
.ast-talk-it { max-width: 38ch; margin: 0; color: var(--color-foreground); font-size: 16px; line-height: 1.5; }
.ast-talk-end { position: absolute; bottom: 24px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); color: var(--color-foreground); font: inherit; font-size: 14px; cursor: pointer; }
.ast-talk-end:hover { border-color: color-mix(in srgb, var(--color-alert) 45%, var(--frost-line)); color: var(--color-alert-ink); }
.ast-talk-end:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
body.adm-assist-full .ast-orb { width: 210px; height: 210px; }
body.adm-assist-full .ast-talk-it { font-size: 19px; max-width: 46ch; }
@media (prefers-reduced-motion: reduce) { .ast-orb, .ast-orb span { transform: none !important; transition: none; } }

/* ── Payments and subscriptions (admin-billing.js, 5 November 2026) ─────────────────────────────────────────────────
   Five figures, the list of plans and grants, then the credit movements beside the payments. Rows that open a person are
   buttons (button.adm-row above); a figure that says a word instead of a number is set smaller. */
.bill-note { margin-bottom: 14px; }
.bill-note p { margin: 0; }
.bill-figs .adm-stat-v.bill-quiet { font-size: 18px; letter-spacing: 0; line-height: 1.35; color: var(--oryn-text-2); }
.bill-figs .adm-stat-h .adm-link { display: inline; font-size: 12.5px; }
.bill-figs .adm-stat-h .adm-link > i { font-size: 13px; }
.bill-sec { margin-top: 36px; }
.bill-who { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.bill-who b { font-weight: 600; color: var(--color-foreground); }
.bill-who small { font-size: 12.5px; color: var(--color-muted-foreground); }
.bill-mute { color: var(--color-muted-foreground); }
.bill-hint { max-width: 96ch; margin: 12px 4px 0; }
.bill-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; margin-top: 36px; }
@media (max-width: 1023.98px) { .bill-two { grid-template-columns: minmax(0, 1fr); } }
button.adm-row.bill-mv[disabled] { cursor: default; }
button.adm-row.bill-mv[disabled]:hover { background: transparent; }
.bill-subhead { padding: 18px 22px 6px; border-top: 1px solid var(--frost-line); }
.bill-subhead + .adm-row { border-top: 0; }
.bill-months { display: flex; flex-direction: column; padding: 4px 22px 14px; border-top: 1px solid var(--frost-line); }
.bill-mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; padding: 9px 0; font-size: 14px; }
.bill-mrow + .bill-mrow { border-top: 1px solid var(--frost-line); }
.bill-mrow > span:not(:first-child) { text-align: right; }
.bill-mhead { font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); }
.bill-empty { border-top: 1px solid var(--frost-line); }
.bill-empty .adm-empty { padding: 36px 24px 12px; }
.bill-empty-go { display: flex; justify-content: center; padding: 0 24px 28px; }
.bill-pad { padding: 0 22px 12px; }
.bill-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 22px; }
.bill-links .adm-hint { max-width: 70ch; margin: 0; }
.bill-links-go { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Moderation, one screen (5 November 2026) ──────────────────────────────────────────────────────────────────────
   admin-moderation.js draws one bar of tabs, Waiting for you first, over what the two moderation screens held. Rules
   and filter has a smaller bar of its own for its three views. In Waiting for you the head of the automatic check sits
   between its heading and its list, with room before the list. */
.mod-subbar { margin-top: -4px; }
@media (pointer: fine) and (min-width: 1024px) {
  .mod-subbar .adm-seg { padding: 3px; }
  .mod-subbar .adm-seg > button { height: 30px; padding: 0 12px; font-size: 13px; }
  .mod-subbar .adm-seg > button > i { font-size: 14px !important; }
}
#modHead:not(:empty) + #modBody { margin-top: 26px; }

/* One person (admin-clinician.js, 5 November 2026): one profile per person across the apps. The head and its actions,
   then eight cards in two columns that each fill in on their own, then the BiteSized story (section 20 above). On a
   narrow screen the columns give way and the cards stack in reading order: account, plan, BiteSized, Dose, Ask, the
   Library, sign ins, history. ----------------------------------------------------------------------------------- */
.pp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 20px; }
.pp-col { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
@media (max-width: 1099.98px) {
  .pp-grid { display: flex; flex-direction: column; align-items: stretch; }
  .pp-col { display: contents; }
}
.pp-card.adm-card { min-width: 0; padding: 22px 24px; }
.pp-card-head { display: flex; align-items: center; gap: 12px; }
.pp-card-head .adm-h3 { min-width: 0; flex: 1; }
.pp-mark { width: 32px; height: 32px; flex: none; border-radius: 10px; }
.adm-row-ic.pp-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.pp-card-body { margin-top: 14px; }
.pp-card-body > .oc-quiet:first-child { margin-top: 2px; }
.pp-card .adm-facts { margin-top: -4px; }
.pp-facts.adm-facts { margin-top: 10px; }
.pp-wait { padding: 4px 0 6px; }
.pp-retry { margin-top: 12px; }
.pp-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--frost-line); }
.pp-go { font-size: 13.5px; }
.pp-soft { margin-left: 4px; font-size: 13px; color: var(--color-muted-foreground); }
.pp-id { font-size: 12.5px; word-break: break-all; user-select: all; }
.pp-line { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--oryn-text-2); }

/* the numbers of a card: quiet figures with their label under them */
.pp-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); gap: 16px 18px; }
.pp-num { min-width: 0; }
.pp-num-v { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pp-num-l { margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--color-muted-foreground); }
.pp-num-h { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: var(--color-warm-ink); }
.pp-num-na { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--color-muted-foreground); }
.pp-num-wait { display: inline-block; width: 44px; height: 18px; vertical-align: middle; }

/* the short lists inside a card: latest posts, videos, devices, what the team did */
.pp-sub-h { margin: 20px 0 0; font-size: 13px; font-weight: 600; color: var(--oryn-text-2); }
.pp-list { margin-top: 8px; }
.pp-li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.pp-li + .pp-li { border-top: 1px solid var(--frost-line); }
.pp-list--top .pp-li:first-child { padding-top: 0; }
.pp-li-main { min-width: 0; flex: 1; }
.pp-li-t { display: block; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pp-li-s { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted-foreground); }
.pp-li > .adm-pill { flex: none; margin-top: 1px; }
.adm-row-ic.pp-li-ic { width: 32px; height: 32px; font-size: 16px; }
.pp-link { color: var(--color-foreground); text-decoration: none; }
.pp-link > i { margin-left: 6px; font-size: 13px; color: var(--color-muted-foreground); }
.pp-link:hover { color: var(--color-brand-ink); }
.pp-link:focus-visible { border-radius: 6px; outline: 2px solid var(--color-brand); outline-offset: 2px; }
.pp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-reason { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--frost-well); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-record { margin-top: 16px; }
@media (max-width: 520px) {
  .pp-card.adm-card { padding: 18px 18px; }
  .pp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Sign-in health (admin-sessions.js, 5 November 2026) ─────────────────────────────────────────────────────────────
   The card at the top of Sign ins and security: four lines, each with a dot, a word for its state, what it means and when
   it was checked. The dot is colour; the word says the same thing for anyone who does not see the colour. */
.sih { margin-bottom: 18px; padding: 20px 22px; }
.sih-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; }
.sih-sum { flex: none; margin: 2px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.sih-sum.sih--ok { background: var(--adm-ok-soft); color: var(--color-success-ink); }
.sih-sum.sih--warn { background: var(--adm-warm-soft); color: var(--color-warm-ink); }
.sih-sum.sih--bad { background: var(--adm-alert-soft); color: var(--color-alert-ink); }
.sih-sum.sih--mute { background: var(--adm-quiet-soft); color: var(--oryn-text-2); }
.sih-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.sih-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--frost-line); }
.sih-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--color-muted-foreground); box-shadow: 0 0 0 4px var(--adm-quiet-soft); }
.sih--ok .sih-dot { background: var(--color-success); box-shadow: 0 0 0 4px var(--adm-ok-soft); }
.sih--warn .sih-dot { background: var(--color-brand-2); box-shadow: 0 0 0 4px var(--adm-warm-soft); }
.sih--bad .sih-dot { background: var(--color-alert); box-shadow: 0 0 0 4px var(--adm-alert-soft); }
.sih-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.sih-word { font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); }
.sih--ok .sih-word { color: var(--color-success-ink); }
.sih--warn .sih-word { color: var(--color-warm-ink); }
.sih--bad .sih-word { color: var(--color-alert-ink); }
.sih-says { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted-foreground); text-wrap: pretty; }
.sih-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.sih-link { font-size: 13.5px; }
button.sih-link { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.sih-link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.sih-when { margin: 2px 0 0; font-size: 12.5px; color: var(--color-muted-foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sih-todo { max-width: 92ch; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--frost-line); font-size: 13.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.sih-quiet { margin: 14px 0 0; font-size: 14px; color: var(--color-muted-foreground); }
.sih-wait { display: grid; gap: 10px; margin-top: 18px; }
@media (max-width: 860px) {
  .sih-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .sih { padding: 18px; }
  .sih-row { grid-template-columns: auto minmax(0, 1fr); }
  .sih-when { grid-column: 2; }
}

/* Ask: this month's spending against the budget (16 November 2026). Two figures side by side, each with its bar: the fill
   is what was spent, the thin mark is where new paid work stops. */
.ask-bud-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin-top: 20px; }
.ask-bud-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-bud-head > .adm-h3 { margin: 0; }
.ask-bud-fig { margin: 10px 0 12px; font-size: 15px; color: var(--color-muted-foreground); }
.ask-bud-fig > b { margin-right: 4px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-foreground); }
.ask-bud-track { position: relative; height: 10px; border-radius: 999px; background: var(--adm-quiet-soft); }
.ask-bud-track > span { display: block; min-width: 2px; height: 100%; border-radius: 999px; background: var(--color-brand); }
.ask-bud-track.is-paused > span { background: var(--color-warm-ink); }
.ask-bud-track > i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: color-mix(in srgb, var(--color-foreground) 42%, transparent); }
.ask-bud > .adm-hint { margin: 10px 0 0; }
.ask-bud > .adm-hint b { font-weight: 600; color: var(--color-foreground); }
@media (max-width: 760px) { .ask-bud-two { grid-template-columns: 1fr; } }
