/* Lumina (1.15.0): the third look, with its own layout (lumina.js). Deep indigo space, a slow aurora behind glass cards,
   one drawing and a few words per card. Built for phones first (a thumb dock, swipeable priority cards, bottom sheets),
   widening into a desktop workspace (a rail, a bento grid, a detail pane beside the page).
   On: <html data-layout="lumina" data-look="midnight" data-view="phone|desktop"> (theme.js). The classic screens and
   sheets it still opens (Files, Doctor, Supplements, the full report, Settings) use Midnight's styles, re-tinted here.
   Rules kept: text 16px or more, tap targets 48px or more, nothing moves for people who ask for less motion. */
@media screen {
:root[data-layout="lumina"]{
  --paper:#0B0A1F; --sheet:#17162E; --well:#100F26; --row:#1C1B36; --band:#232244;
  --ink:#FFFFFF; --ink-2:#C2C3DA; --muted:#9C9DB8; --hair:rgba(255,255,255,.09); --rule:rgba(255,255,255,.16); --edge:#7B7CA0;
  --lav:#8E7BFF; --lav-deep:#C4BAFF; --lav-wash:rgba(142,123,255,.20); --lav-soft:rgba(142,123,255,.10); --fill:#6B55F0; --violet:#B05CFF;
  --good:#3DF0A6; --good-ink:#5FF5B7; --good-wash:rgba(61,240,166,.14);
  --warn:#FFC24B; --warn-ink:#FFD27A; --warn-wash:rgba(255,194,75,.14);
  --serious:#FF6B7A; --serious-ink:#FF8E99; --serious-wash:rgba(255,107,122,.15);
  --neutral:#8C8DB0; --neutral-ink:#B5B6D2; --neutral-wash:rgba(255,255,255,.07);
  --opt:#35D6F2; --opt-ink:#7BE6F8;
  --grad:linear-gradient(135deg, #8E7BFF 0%, #6B55F0 55%, #B05CFF 100%);
  --grad-deep:linear-gradient(140deg, #6B55F0 0%, #B05CFF 100%);
  --glow:0 10px 30px -6px rgba(142,123,255,.65);
  --glass:rgba(28,27,58,.62); --glass-edge:rgba(255,255,255,.12); --card-edge:rgba(255,255,255,.10);
  --lu-glass:linear-gradient(160deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.03) 100%);
  --lu-blur:saturate(1.6) blur(22px);
  --lu-r:26px;
  --lu-dock-h:74px;
  --lu-rail:236px;
  --lu-pane:430px;
  --display:"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* The aurora: three soft lights drifting slowly behind everything. */
[data-layout="lumina"] body{ background-color:#0B0A1F; background-image:radial-gradient(60% 46% at 12% 0%, rgba(142,123,255,.34) 0%, transparent 70%), radial-gradient(52% 40% at 100% 12%, rgba(53,214,242,.22) 0%, transparent 70%), radial-gradient(60% 44% at 60% 100%, rgba(255,95,162,.16) 0%, transparent 72%); background-attachment:fixed; background-repeat:no-repeat; padding-bottom:calc(var(--lu-dock-h) + 30px + var(--sab)); }
[data-layout="lumina"] body::before{ background:#0B0A1F; }
[data-layout="lumina"] .tabbar{ display:none; }
[data-layout="lumina"] .runbar{ bottom:calc(var(--lu-dock-h) + var(--sab) + 26px); }
[data-layout="lumina"] :is(.t-card, .panel, .med, .sug, .doc, .rows li, .tile, .bc-group, .prio-card, .pat, details.qd, .secbtn){ background:var(--sheet); }
[data-layout="lumina"] :is(.alert, .ob-card){ background:#141330; box-shadow:0 0 0 1px var(--glass-edge), 0 30px 80px rgba(0,0,0,.7); }
[data-layout="lumina"] .brand svg{ background:var(--grad); color:#fff; }
[data-layout="lumina"] .tab[aria-current="page"] .tab-pill{ background:var(--lav-wash); }
[data-layout="lumina"] .appbar .brand-txt{ display:none; }

/* ---------- The page ---------- */
.lu{ --pad:16px; display:block; max-width:780px; margin-inline:auto; padding:6px var(--pad) 24px; }
.lu-main{ display:grid; gap:22px; min-width:0; }
.lu-head{ display:grid; gap:2px; }
.lu-hello{ margin:0; font-size:1rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--opt-ink); }
.lu-head h1{ font-family:var(--display); font-weight:800; font-size:clamp(1.9rem, 8.4vw, 2.6rem); line-height:1.04; letter-spacing:-.03em; background:linear-gradient(100deg, #fff 0%, #C4BAFF 60%, #7BE6F8 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lu-part{ display:grid; gap:12px; scroll-margin-top:80px; }
.lu-part-h{ display:flex; align-items:baseline; gap:10px; }
.lu-part-h h2{ font-family:var(--display); font-weight:800; font-size:1.45rem; letter-spacing:-.02em; }
.lu-count{ font-size:1rem; font-weight:800; color:var(--ink-2); padding:0 10px; border-radius:999px; background:var(--neutral-wash); }
.lu-foot{ margin:0; font-size:1rem; color:var(--muted); text-align:center; }

/* Search, and the other pages, at the top of every page */
.lu-search{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; min-height:52px; padding:0 16px; border-radius:999px; border:1px solid var(--glass-edge); background:var(--lu-glass); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); color:var(--muted); font:inherit; font-size:1.0625rem; font-weight:600; text-align:left; cursor:pointer; touch-action:manipulation; }
.lu-search .ico{ width:22px; height:22px; color:var(--opt-ink); }
.lu-search kbd{ display:none; font:inherit; font-size:1rem; font-weight:800; padding:1px 10px; border-radius:8px; background:rgba(255,255,255,.10); color:var(--ink-2); }
[data-view="desktop"] .lu-search{ max-width:520px; } [data-view="desktop"] .lu-search kbd{ display:inline; }
/* The question or two each visit, in Lumina's glass (1.23.1) */
.lu-qcard{ padding:16px; border-radius:var(--lu-r); border:1px solid var(--glass-edge); background:radial-gradient(120% 90% at 0% 0%, var(--lav-wash) 0%, transparent 62%), var(--lu-glass); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); }

/* "Show all": the rest of a long list, one tap away */
.lu-more-b{ justify-self:stretch; min-height:52px; padding:0 18px; border-radius:999px; border:1px solid var(--glass-edge); background:rgba(255,255,255,.05); color:var(--lav-deep); font:inherit; font-size:1.0625rem; font-weight:800; cursor:pointer; touch-action:manipulation; }
.lu-more-b:hover{ background:rgba(255,255,255,.09); }

/* ---------- Tier 1: the card (a drawing and a few words) ---------- */
.lu-card{ --c:var(--lav); --cw:var(--lav-wash); position:relative; display:grid; gap:10px; align-content:start; min-width:0; min-height:48px; padding:16px; border-radius:var(--lu-r); border:1px solid var(--glass-edge);
  background:radial-gradient(120% 90% at 0% 0%, var(--cw) 0%, transparent 62%), var(--lu-glass); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px -14px rgba(0,0,0,.7); color:var(--ink); font:inherit; text-align:left; cursor:pointer; touch-action:manipulation; overflow:hidden;
  transition:transform .28s cubic-bezier(.34,1.4,.64,1), box-shadow .25s ease, border-color .25s ease; }
.lu-card.t-best, .lu-chip.t-best, .lu-vis.t-best, .lu-d-top.t-best{ --c:var(--good); --cw:var(--good-wash); --ci:var(--good-ink); }
.lu-card.t-watch, .lu-chip.t-watch, .lu-vis.t-watch, .lu-d-top.t-watch{ --c:var(--warn); --cw:var(--warn-wash); --ci:var(--warn-ink); }
.lu-card.t-outside, .lu-chip.t-outside, .lu-vis.t-outside, .lu-d-top.t-outside{ --c:var(--serious); --cw:var(--serious-wash); --ci:var(--serious-ink); }
.lu-card.t-info, .lu-chip.t-info, .lu-vis.t-info, .lu-d-top.t-info{ --c:var(--lav); --cw:var(--lav-wash); --ci:var(--lav-deep); }
.lu-card:active{ transform:scale(.965); }
.lu-card:focus-visible{ outline:3px solid var(--opt); outline-offset:3px; }
.lu-card.on{ border-color:var(--c); box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px var(--c), 0 18px 44px -14px var(--c); }
@media (hover:hover) and (pointer:fine){ .lu-card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.26); box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 24px 50px -16px rgba(0,0,0,.8), 0 0 40px -18px var(--c); } }
.lu-tx{ display:grid; gap:2px; min-width:0; }
.lu-title{ font-size:1.0625rem; font-weight:800; line-height:1.22; letter-spacing:-.01em; overflow-wrap:break-word; hyphens:auto; -webkit-hyphens:auto; min-width:0; }
.lu-val{ display:flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; font-variant-numeric:tabular-nums lining-nums; }
.lu-val b{ font-size:2rem; font-weight:800; line-height:1.05; letter-spacing:-.03em; }
.lu-val small{ font-size:1rem; color:var(--ink-2); }
.lu-micro{ font-size:1rem; font-weight:700; line-height:1.3; color:var(--ci, var(--ink-2)); overflow-wrap:break-word; min-width:0; }
.lu-delta{ justify-self:start; font-size:1rem; font-weight:800; font-variant-numeric:tabular-nums; padding:1px 10px; border-radius:999px; background:var(--cw); color:var(--ci, var(--ink)); white-space:nowrap; }
.lu-badge{ justify-self:start; display:inline-flex; align-items:center; gap:6px; padding:1px 10px; border-radius:999px; font-size:1rem; font-weight:800; letter-spacing:.06em; line-height:1.4; color:#0B0A1F; background:var(--opt); }
.lu-badge.b-new{ background:linear-gradient(90deg, #35D6F2, #3DF0A6); }
.lu-badge.b-priority{ background:linear-gradient(90deg, #FFC24B, #FF9A5C); }
.lu-badge.b-urgent{ background:linear-gradient(90deg, #FF6B7A, #FF5FA2); color:#fff; }
.lu-badge.b-attention{ background:linear-gradient(90deg, #FF8E99, #FF6B7A); color:#2A0610; }
.lu-badge.b-watch{ background:linear-gradient(90deg, #FFD27A, #FFC24B); }
.lu-badge.b-all{ background:linear-gradient(90deg, #3DF0A6, #35D6F2); }
.lu-badge.b-insight{ background:linear-gradient(90deg, #C4BAFF, #8E7BFF); }
.lu-badge.b-due, .lu-badge.b-start{ background:rgba(255,255,255,.16); color:#fff; }
.lu-chip{ justify-self:start; max-width:100%; padding:2px 12px; border-radius:14px; font-size:1rem; font-weight:800; line-height:1.35; background:var(--cw); color:var(--ci); overflow-wrap:break-word; }

/* The drawings */
.lu-vis{ position:relative; display:grid; place-items:center; min-width:0; }
.lu-ring{ width:86px; height:86px; display:block; overflow:visible; }
.lu-ring.big{ width:112px; height:112px; }
.lu-ring-track{ fill:none; stroke:rgba(255,255,255,.10); stroke-width:10; }
.lu-ring-track.empty{ stroke-dasharray:3 7; stroke-width:6; }
.lu-ring-arc{ fill:none; stroke-width:10; stroke-linecap:round; filter:drop-shadow(0 0 8px var(--c)); }
.lu-stop-a.t-best{ stop-color:#9BFFD3; } .lu-stop-b.t-best{ stop-color:#16C784; }
.lu-stop-a.t-watch{ stop-color:#FFE29A; } .lu-stop-b.t-watch{ stop-color:#FF9A3D; }
.lu-stop-a.t-outside{ stop-color:#FFA2AC; } .lu-stop-b.t-outside{ stop-color:#FF3D6E; }
.lu-stop-a.t-info{ stop-color:#C4BAFF; } .lu-stop-b.t-info{ stop-color:#35D6F2; }
.lu-vis-ico{ position:absolute; width:30px; height:30px; color:var(--ci, var(--ink)); }
.v-icon, .v-pulse, .v-step, .v-count, .v-link{ width:64px; height:64px; border-radius:20px; background:var(--cw); box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), 0 0 30px -10px var(--c); }
.v-icon .lu-vis-ico, .v-pulse .lu-vis-ico{ position:static; }
.lu-num{ font-size:1.9rem; font-weight:800; line-height:1; color:var(--ci, var(--ink)); font-variant-numeric:tabular-nums; }
.v-link{ display:flex; gap:5px; justify-content:center; align-items:center; }
.lu-node{ width:10px; height:10px; border-radius:50%; background:var(--c); box-shadow:0 0 10px var(--c); }
.lu-node:nth-child(2n){ transform:translateY(-8px); opacity:.7; }
.lu-pulse{ position:absolute; inset:0; border-radius:20px; border:2px solid var(--c); }
.lu-spark{ display:block; width:100%; height:40px; overflow:visible; }
.lu-spark-line{ fill:none; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.lu-spark-area{ opacity:.16; } .lu-spark-area.t-best{ fill:var(--good); } .lu-spark-area.t-watch{ fill:var(--warn); } .lu-spark-area.t-outside{ fill:var(--serious); } .lu-spark-area.t-info{ fill:var(--lav); }
.lu-spark-dot{ fill:#fff; } .lu-spark-dot.t-best{ fill:var(--good); } .lu-spark-dot.t-watch{ fill:var(--warn); } .lu-spark-dot.t-outside{ fill:var(--serious); }
.lu-spark.under{ position:absolute; left:0; right:0; bottom:-6px; height:26px; opacity:.55; }
.v-range{ display:grid; gap:8px; width:100%; justify-items:stretch; }
.v-range > *{ justify-self:stretch; }
.lu-range{ position:relative; display:block; height:12px; border-radius:999px; background:rgba(255,255,255,.10); margin:4px 8px; }
.lu-range-zone{ position:absolute; top:0; bottom:0; border-radius:999px; background:linear-gradient(90deg, rgba(61,240,166,.30), rgba(61,240,166,.5)); box-shadow:inset 0 0 0 1px rgba(61,240,166,.6); }
.lu-range-opt{ position:absolute; bottom:-6px; height:4px; border-radius:2px; background:var(--opt); box-shadow:0 0 8px var(--opt); }
.lu-range-dot{ position:absolute; top:50%; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; background:#fff; box-shadow:0 0 0 4px var(--c), 0 0 18px 2px var(--c); }
.lu-orbit{ position:relative; display:grid; place-items:center; width:92px; height:92px; }
.lu-orbit .lu-ring{ width:72px; height:72px; }
.lu-orbit-dot{ position:absolute; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:var(--neutral); box-shadow:0 0 0 2px #17162E; }
.lu-orbit-dot.t-best{ background:var(--good); } .lu-orbit-dot.t-watch{ background:var(--warn); } .lu-orbit-dot.t-outside{ background:var(--serious); box-shadow:0 0 0 2px #17162E, 0 0 10px var(--serious); }
.lu-bars{ display:flex; align-items:flex-end; gap:5px; width:100%; height:64px; }
.lu-bars i{ flex:1; border-radius:6px 6px 3px 3px; background:rgba(255,255,255,.18); }
.lu-bars i.hit{ background:linear-gradient(180deg, #9BFFD3, #16C784); box-shadow:0 0 12px -2px var(--good); }

/* Card shapes */
.lu-card.tall{ justify-items:center; text-align:center; padding:18px 12px 16px; }
.lu-card.tall .lu-tx{ justify-items:center; }
.lu-card.tall .lu-delta{ position:absolute; top:10px; right:10px; }
.lu-card.row{ grid-template-columns:minmax(0,38%) minmax(0,1fr); align-items:center; gap:14px; }
.lu-card.row .lu-delta{ position:absolute; top:10px; right:12px; }
.lu-card.row.g-plan, .lu-card.row.g-sections{ grid-template-columns:auto minmax(0,1fr); }
.lu-card.row.g-markers{ grid-template-columns:auto minmax(0,1fr); grid-template-areas:"t t" "v v" "n m"; align-items:end; gap:8px 12px; }
.lu-card.row.g-markers .lu-tx{ display:contents; }
.lu-card.row.g-markers .lu-title{ grid-area:t; }
.lu-card.row.g-markers .lu-vis{ grid-area:v; }
.lu-card.row.g-markers .lu-val{ grid-area:n; }
.lu-card.row.g-markers .lu-micro{ grid-area:m; justify-self:end; text-align:right; }
.lu-card.row.g-markers .lu-spark{ height:44px; }
.lu-card.row .lu-val b{ font-size:1.6rem; }
.lu-card.row:has(.lu-delta) .lu-title{ padding-right:72px; }
.lu-card.row .lu-ring{ width:64px; height:64px; }
.lu-card.mini{ grid-template-columns:minmax(0,1fr); padding:12px; border-radius:20px; }
.lu-card.mini .lu-val b{ font-size:1.35rem; }
.lu-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.lu-grid.wide{ grid-template-columns:minmax(0,1fr); }
.lu-empty{ display:grid; justify-items:center; gap:10px; padding:26px 16px; border-radius:var(--lu-r); border:1.5px dashed var(--rule); text-align:center; }
.lu-empty .ico{ width:44px; height:44px; color:var(--lav-deep); }

@media (max-width:380px){
  .lu{ --pad:12px; }
  .lu-grid{ gap:10px; }
  .lu-card.tall{ padding:14px 8px 12px; }
  .lu-card.tall .lu-title{ font-size:1rem; }
  .lu-card.tall .lu-val b{ font-size:1.7rem; }
  .lu-q{ padding:12px 10px; border-radius:18px; }
  .lu-d-kids{ grid-template-columns:minmax(0,1fr); }
}

/* The four jobs (1.23.0): two by two, each with its name and a few words on what it does */
.lu-quick{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.lu-q{ display:grid; justify-items:start; align-content:start; gap:8px; min-height:112px; padding:14px; border-radius:22px; border:1px solid var(--glass-edge); background:var(--lu-glass); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); color:var(--ink); font:inherit; font-size:1rem; line-height:1.2; text-align:left; cursor:pointer; touch-action:manipulation; transition:transform .25s cubic-bezier(.34,1.4,.64,1); min-width:0; }
.lu-q .ico{ width:28px; height:28px; padding:0; color:var(--opt-ink); }
.lu-q-t{ display:grid; gap:2px; min-width:0; } .lu-q-t b{ font-size:1.125rem; font-weight:800; } .lu-q-t small{ font-size:1rem; font-weight:600; color:var(--ink-2); }
.lu-q:first-child .lu-q-t small{ color:rgba(255,255,255,.9); }
.lu-q:first-child{ background:var(--grad); border-color:transparent; box-shadow:var(--glow); } .lu-q:first-child .ico{ color:#fff; }
.lu-more .lu-q:first-child{ background:var(--lu-glass); border-color:var(--glass-edge); box-shadow:none; } .lu-more .lu-q:first-child .ico{ color:var(--opt-ink); }
.lu-q span{ overflow-wrap:normal; word-break:normal; hyphens:none; }
.lu-q:active{ transform:scale(.94); } .lu-q:disabled{ opacity:.45; }

/* ---------- Tier 2 and tier 3: the sheet (phones) and the pane (desktop) ---------- */
.lu-sheet, .lu-pane{ --c:var(--lav); }
[data-layout="lumina"] .overlay > .alert.sheet{ max-height:min(84dvh, calc(100dvh - 120px - var(--sat, 0px))); }
[data-layout="lumina"] .overlay{ background:rgba(6,5,20,.6); }
.lu-d-top{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:16px; padding:14px; border-radius:24px; background:radial-gradient(120% 120% at 0% 0%, var(--cw) 0%, transparent 70%), rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px var(--glass-edge); }
.lu-d-top .lu-vis.v-range{ width:120px; }
.lu-d-tt{ display:grid; gap:4px; justify-items:start; min-width:0; }
.lu-d-kind{ font-size:1rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--ci, var(--ink-2)); max-width:100%; overflow-wrap:break-word; }
@media (max-width:420px){
  .lu-d-top{ grid-template-columns:minmax(0,1fr); justify-items:start; gap:10px; }
  .lu-d-top .lu-vis.v-range{ width:100%; }
  .lu-d-top .lu-ring.big{ width:92px; height:92px; }
}
.lu-d-tt h2{ font-family:var(--display); font-size:1.5rem; font-weight:800; line-height:1.15; letter-spacing:-.02em; outline:none; overflow-wrap:break-word; hyphens:auto; -webkit-hyphens:auto; max-width:100%; }
.lu-d-val{ margin:0; display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; font-variant-numeric:tabular-nums; }
.lu-d-val b{ font-size:2.2rem; font-weight:800; line-height:1; letter-spacing:-.03em; } .lu-d-val small{ font-size:1rem; color:var(--ink-2); }
.lu-bullets{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.lu-bullets li{ position:relative; padding:12px 14px 12px 40px; border-radius:18px; background:rgba(255,255,255,.05); box-shadow:inset 0 0 0 1px var(--hair); font-size:1.0625rem; line-height:1.45; color:var(--ink); overflow-wrap:anywhere; }
.lu-bullets li::before{ content:""; position:absolute; left:15px; top:19px; width:10px; height:10px; border-radius:50%; background:var(--opt); box-shadow:0 0 10px var(--opt); }
.lu-d-chart{ padding:10px 8px 4px; border-radius:22px; background:rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px var(--hair); }
.lu-d-h{ font-size:1.0625rem; font-weight:800; color:var(--ink-2); }
.lu-d-kids{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.lu-deep{ border-radius:20px; background:rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px var(--glass-edge); }
.lu-deep > summary{ list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; padding:10px 16px; font-weight:800; font-size:1.0625rem; color:var(--lav-deep); cursor:pointer; }
.lu-deep > summary::-webkit-details-marker{ display:none; }
.lu-deep > summary::after{ content:""; flex:none; width:10px; height:10px; border-right:2.5px solid currentColor; border-bottom:2.5px solid currentColor; transform:translateY(-3px) rotate(45deg); transition:transform .25s; }
.lu-deep[open] > summary::after{ transform:translateY(2px) rotate(-135deg); }
.lu-deep-body{ display:grid; gap:12px; padding:2px 16px 16px; }
.lu-deep-body p{ margin:0; font-size:1.0625rem; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
.lu-d-acts{ display:flex; flex-wrap:wrap; gap:10px; }
.lu-d-acts .btn{ flex:1 1 auto; }
.lu-pane{ display:none; }

/* ---------- Files, Supplements and Doctor as Lumina pages (1.16.0) ---------- */
.lu-note{ margin:0; font-size:1rem; font-weight:700; color:var(--ink-2); }
.lu-big{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px; min-height:76px; padding:12px 18px; border-radius:var(--lu-r); border:1px solid var(--glass-edge); background:var(--lu-glass); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); color:var(--ink); font:inherit; text-align:left; cursor:pointer; touch-action:manipulation; transition:transform .25s cubic-bezier(.34,1.4,.64,1); min-width:0; }
.lu-big .ico{ width:30px; height:30px; color:var(--opt-ink); }
.lu-big span{ display:grid; gap:1px; min-width:0; } .lu-big b{ font-size:1.125rem; line-height:1.25; overflow-wrap:anywhere; } .lu-big small{ font-size:1rem; color:var(--ink-2); overflow-wrap:anywhere; }
.lu-hint{ font-size:1rem; color:var(--ink-2); margin:-4px 4px 12px; }
.lu-big.primary{ background:var(--grad); border-color:transparent; box-shadow:var(--glow); } .lu-big.primary .ico{ color:#fff; } .lu-big.primary small{ color:rgba(255,255,255,.88); }
.lu-main > .lu-order{ width:100%; margin-top:2px; }
.lu-big:active{ transform:scale(.97); } .lu-big:disabled{ opacity:.5; }
.lu-pair{ display:grid; gap:10px; }
.lu-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.lu-pill{ min-height:48px; padding:0 18px; border-radius:999px; border:1px solid var(--glass-edge); background:var(--lu-glass); color:var(--ink); font:inherit; font-size:1.0625rem; font-weight:800; cursor:pointer; touch-action:manipulation; }
.lu-pill[aria-checked="true"]{ background:var(--grad); border-color:transparent; box-shadow:var(--glow); }
.lu-link{ text-decoration:none; }
.lu-ref{ margin:0; }
.lu-badge.b-unread{ background:linear-gradient(90deg, #35D6F2, #8E7BFF); color:#0B0A1F; }
.lu-badge.b-for{ background:linear-gradient(90deg, #3DF0A6, #35D6F2); }
.lu-badge.b-to{ background:linear-gradient(90deg, #FFC24B, #FF9A5C); }
.lu-card.row .lu-badge{ grid-column:1 / -1; }
.lu-card.row.g-files, .lu-card.row.g-supps, .lu-card.row.g-doctor{ grid-template-columns:auto minmax(0,1fr); }
[data-view="desktop"] .lu-pair{ grid-template-columns:repeat(2, minmax(0, 340px)); }
[data-view="desktop"] .lu-big{ max-width:420px; }

/* ---------- The dock: thumb-height on phones ---------- */
.lu-dock{ position:fixed; z-index:41; left:10px; right:10px; bottom:calc(10px + var(--sab)); max-width:560px; margin-inline:auto; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); align-items:stretch; padding:5px; border-radius:30px; border:1px solid var(--glass-edge);
  background:rgba(20,19,46,.74); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 18px 44px rgba(0,0,0,.6); }
.lu-dock-brand, .lu-dock-more, .lu-dock-b.find{ display:none; }
[data-view="desktop"] .lu-dock-b.find{ display:grid; }
.lu-dock-b{ display:grid; justify-items:center; align-content:center; gap:3px; min-height:calc(var(--lu-dock-h) - 12px); min-width:0; padding:4px 0; border:0; border-radius:24px; background:none; color:var(--muted); font:inherit; font-size:1rem; font-weight:700; letter-spacing:-.03em; line-height:1.1; cursor:pointer; touch-action:manipulation; transition:color .2s, background .25s, transform .3s cubic-bezier(.34,1.4,.64,1); }
.lu-dock-b .ico{ width:24px; height:24px; }
.lu-dock-b span{ white-space:nowrap; }
.lu-dock-b .tl-long{ display:none; }
[data-view="desktop"] .lu-dock-b .tl-long{ display:inline; } [data-view="desktop"] .lu-dock-b .tl-short{ display:none; }
.lu-dock-b[aria-current]{ color:#fff; background:var(--grad); box-shadow:var(--glow); }
.lu-dock-b:active{ transform:scale(.9); }
body:has(:is(input:not([type=checkbox],[type=radio],[type=file],[type=button]),textarea,select):focus) .lu-dock{ display:none; }
body:has(.lu-pal) .lu-dock{ display:grid; }

/* Top bar buttons: search, and Phone view / Desktop mode */
.lu-view{ display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 14px; border-radius:999px; border:1px solid var(--glass-edge); background:var(--lu-glass); color:var(--ink); font:inherit; font-size:1rem; font-weight:800; cursor:pointer; touch-action:manipulation; white-space:nowrap; }
.lu-view .ico{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; color:var(--opt-ink); }
.lu-view[aria-pressed="true"]{ border-color:var(--opt); }
/* Phones: the top bar also holds whose report it is and the wallet, so the view button is its picture alone and the app's
   own mark goes (the dock and the page title say where you are). Nothing in the bar may push another off the screen. */
@media (max-width:600px){
  .lu-view .lu-view-t{ display:none; }
  .lu-view{ width:48px; padding:0; justify-content:center; flex:none; }
  [data-layout="lumina"] .appbar .brand{ display:none; }
  [data-layout="lumina"] .appbar{ justify-content:flex-end; gap:8px; }
  [data-layout="lumina"] .who{ min-width:0; gap:8px; }
  [data-layout="lumina"] .whose{ min-width:0; flex:0 1 auto; max-width:34vw; }
  [data-layout="lumina"] .wallet-chip{ flex:none; }
}
[data-layout="lumina"] .iconbtn{ flex:none; }

/* ---------- The launcher ---------- */
.lu-pal{ position:fixed; inset:0; z-index:90; display:grid; justify-items:center; align-items:start; padding:calc(var(--sat) + 8vh) 12px 12px; background:rgba(6,5,20,.62); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.lu-pal-box{ width:min(100%, 620px); max-height:76dvh; display:grid; grid-template-rows:auto minmax(0,1fr); border-radius:26px; border:1px solid var(--glass-edge); background:rgba(23,22,50,.92); box-shadow:0 30px 90px rgba(0,0,0,.75), 0 0 80px -30px var(--lav); overflow:hidden; }
.lu-pal-in{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:8px 16px; border-bottom:1px solid var(--hair); }
.lu-pal-in .ico{ width:24px; height:24px; color:var(--opt-ink); }
.lu-pal-in input{ width:100%; min-height:56px; border:0; outline:none; background:none; color:var(--ink); font:inherit; font-size:1.125rem; }
.lu-pal kbd, .lu-intro kbd{ font:inherit; font-size:1rem; font-weight:800; padding:2px 10px; border-radius:8px; background:rgba(255,255,255,.10); color:var(--ink-2); box-shadow:inset 0 -2px 0 rgba(0,0,0,.35); }
.lu-pal-list{ overflow-y:auto; padding:8px; display:grid; gap:2px; align-content:start; overscroll-behavior:contain; }
.lu-pal-item{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:0 12px; min-height:56px; padding:8px 12px; border:0; border-radius:16px; background:none; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.lu-pal-item b{ font-size:1.0625rem; line-height:1.25; overflow-wrap:break-word; min-width:0; }
.lu-pal-item span{ grid-column:2; font-size:1rem; line-height:1.25; color:var(--muted); overflow-wrap:break-word; min-width:0; }
.lu-pal-dot{ grid-row:1 / span 2; }
.lu-pal-item.on, .lu-pal-item:hover{ background:var(--lav-wash); }
.lu-pal-dot{ width:10px; height:10px; border-radius:50%; background:var(--lav); } .lu-pal-dot.t-best{ background:var(--good); } .lu-pal-dot.t-watch{ background:var(--warn); } .lu-pal-dot.t-outside{ background:var(--serious); }
.lu-pal-none{ margin:0; padding:18px; color:var(--ink-2); font-size:1.0625rem; }

/* ---------- Desktop mode: a rail, a bento grid, and the open card beside the page ---------- */
[data-view="desktop"] body{ padding-bottom:24px; padding-left:var(--lu-rail); }
[data-view="desktop"] .appbar-wrap, [data-view="desktop"] .wrap{ max-width:1180px; }
[data-view="desktop"] .lu-dock{ left:0; right:auto; top:0; bottom:0; width:var(--lu-rail); max-width:none; margin:0; grid-auto-flow:row; grid-auto-rows:min-content; align-content:start; gap:4px; padding:18px 12px; border-radius:0; border-width:0 1px 0 0; background:rgba(14,13,36,.72); box-shadow:none; overflow-y:auto; }
[data-view="desktop"] .lu-dock-brand{ display:flex; align-items:center; gap:10px; padding:4px 8px 16px; font-size:1.25rem; letter-spacing:-.02em; color:#fff; }
[data-view="desktop"] .lu-dock-brand .ico{ width:38px; height:38px; padding:9px; border-radius:13px; background:var(--grad); color:#fff; box-shadow:var(--glow); stroke-width:2.2; }
[data-view="desktop"] .lu-dock-b{ grid-template-columns:auto minmax(0,1fr); justify-items:start; gap:12px; min-height:50px; padding:0 14px; border-radius:16px; font-size:1.0625rem; letter-spacing:0; text-align:left; }
[data-view="desktop"] .lu-dock-b:hover{ background:rgba(255,255,255,.07); color:#fff; }
[data-view="desktop"] .lu-dock-b[aria-current]:hover{ background:var(--grad); }
[data-view="desktop"] .lu-dock-b.find{ margin-top:14px; }
[data-view="desktop"] .lu{ --pad:24px; max-width:none; display:grid; grid-template-columns:minmax(0,1fr) var(--lu-pane); gap:22px; align-items:start; padding:6px var(--pad) 40px; }
[data-view="desktop"] .lu-pane{ display:grid; gap:14px; align-content:start; position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow-y:auto; padding:18px; border-radius:30px; border:1px solid var(--glass-edge); background:rgba(23,22,50,.72); -webkit-backdrop-filter:var(--lu-blur); backdrop-filter:var(--lu-blur); box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 30px 70px -20px rgba(0,0,0,.8); overscroll-behavior:contain; }
[data-view="desktop"] .lu-pane.empty{ min-height:320px; place-content:center; }
.lu-pane-hint{ display:grid; justify-items:center; gap:8px; text-align:center; color:var(--ink-2); font-size:1.0625rem; }
.lu-pane-hint .ico{ width:48px; height:48px; padding:12px; border-radius:18px; background:var(--lav-wash); color:var(--lav-deep); }
.lu-pane-hint b{ font-size:1.25rem; color:var(--ink); }
[data-view="desktop"] .lu-quick{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
[data-view="desktop"] .lu-more-b{ justify-self:start; }
[data-view="desktop"] .lu-grid{ grid-template-columns:repeat(auto-fill, minmax(176px, 1fr)); gap:14px; }
[data-view="desktop"] .lu-grid.wide{ grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); }
[data-view="desktop"] .lu-head h1{ font-size:2.8rem; }
/* Desktop mode asked for on a narrow screen: the rail folds to icons, and cards open as sheets. */
@media (max-width:899px){
  :root[data-layout="lumina"][data-view="desktop"]{ --lu-rail:64px; }
  [data-view="desktop"] .lu{ grid-template-columns:minmax(0,1fr); --pad:14px; }
  [data-view="desktop"] .lu-pane{ display:none; }
  [data-view="desktop"] .lu-dock{ padding:12px 8px; }
  [data-view="desktop"] .lu-dock-b{ grid-template-columns:auto; justify-items:center; padding:0; min-height:56px; }
  [data-view="desktop"] .lu-dock-b span, [data-view="desktop"] .lu-dock-brand b{ display:none; }
  [data-view="desktop"] .lu-dock-brand{ justify-content:center; padding:0 0 10px; }
  [data-view="desktop"] .lu-grid{ grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); }
  [data-view="desktop"] .lu-grid.wide{ grid-template-columns:minmax(0,1fr); }
  [data-view="desktop"] .lu-quick{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  [data-view="desktop"] .appbar .brand{ display:none; }
  [data-view="desktop"] .lu-pair{ grid-template-columns:minmax(0,1fr); }
  [data-view="desktop"] .lu-search kbd{ display:none; }
  [data-view="desktop"] .appbar{ justify-content:flex-end; }
  [data-view="desktop"] .who{ flex-wrap:wrap; justify-content:flex-end; }
}
/* Phone view asked for on a big screen: the app sits in a phone-sized frame in the middle. */
@media (min-width:700px){
  [data-layout="lumina"][data-view="phone"] #app{ position:relative; max-width:430px; min-height:calc(100dvh - 48px); margin:24px auto; border-radius:46px; border:1px solid var(--glass-edge); background:rgba(11,10,31,.55); box-shadow:0 0 0 10px rgba(255,255,255,.04), 0 40px 120px rgba(0,0,0,.75), 0 0 120px -40px var(--lav); overflow:clip; }
  [data-layout="lumina"][data-view="phone"] body{ padding-bottom:0; }
  [data-layout="lumina"][data-view="phone"] #app > .screen{ padding-bottom:calc(var(--lu-dock-h) + 34px); }
  [data-layout="lumina"][data-view="phone"] .lu-dock{ max-width:406px; bottom:38px; }
  [data-layout="lumina"][data-view="phone"] .overlay{ place-items:end center; padding-bottom:40px; }
  [data-layout="lumina"][data-view="phone"] .overlay > .alert{ max-width:410px; }
  /* The frame is phone-width, so the top bar packs like a phone's: otherwise the name and wallet pushed the
     "Desktop view" button out of the frame and there was no way back (owner, 14 Nov 2026). The button keeps its words. */
  [data-layout="lumina"][data-view="phone"] .appbar .brand{ display:none; }
  [data-layout="lumina"][data-view="phone"] .appbar{ justify-content:flex-end; gap:8px; }
  [data-layout="lumina"][data-view="phone"] .who{ min-width:0; gap:8px; }
  [data-layout="lumina"][data-view="phone"] .whose{ min-width:56px; flex:0 1 auto; max-width:120px; }
  [data-layout="lumina"][data-view="phone"] .wallet-chip, [data-layout="lumina"][data-view="phone"] .lu-view{ flex:none; }
  [data-layout="lumina"][data-view="phone"] .lu-view{ padding:0 10px; gap:6px; }
  [data-layout="lumina"][data-view="phone"] .appbar{ padding-right:14px; }
}

/* ---------- "Switch now" and the "Introducing Lumina" screen (shown over the classic looks, so colours are fixed) ---------- */
.lu-toast{ position:fixed; z-index:44; left:12px; right:12px; bottom:calc(var(--tabbar-h, 70px) + var(--sab, 0px) + 22px); max-width:560px; margin-inline:auto; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 10px 10px 12px; border-radius:26px;
  border:1px solid rgba(255,255,255,.22); background:linear-gradient(120deg, rgba(40,32,96,.92), rgba(18,16,48,.94)); -webkit-backdrop-filter:saturate(1.6) blur(18px); backdrop-filter:saturate(1.6) blur(18px); box-shadow:0 20px 50px rgba(20,14,70,.5), 0 0 60px -18px #8E7BFF; color:#fff; }
.lu-toast-art .lu-ring{ width:46px; height:46px; }
.lu-toast-art{ --c:#3DF0A6; display:grid; }
.lu-toast-tx{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:0 8px; min-width:0; }
.lu-toast-tx b{ font-size:1.0625rem; color:#fff; }
.lu-toast-tx > span:last-child{ grid-column:1 / -1; font-size:1rem; color:#C2C3DA; overflow-wrap:anywhere; }
.lu-toast .lu-toast-go{ min-height:48px; padding:0 18px; white-space:nowrap; background:linear-gradient(135deg, #8E7BFF, #B05CFF); color:#fff; box-shadow:0 10px 26px -6px rgba(142,123,255,.8); }
.lu-toast-x{ width:48px; height:48px; border:0; border-radius:50%; background:rgba(255,255,255,.10); color:#fff; font-size:1.5rem; line-height:1; cursor:pointer; }
.lu-toast.bye{ opacity:0; transform:translateY(16px); transition:opacity .22s, transform .22s; }
.lu-toast-tx b, .lu-toast-tx > span:last-child{ min-width:0; }
@media (max-width:480px){
  .lu-toast{ grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"tx x" "go go"; gap:8px 10px; padding:12px; }
  .lu-toast-art{ display:none; }
  .lu-toast-tx{ grid-area:tx; }
  .lu-toast-tx > span:last-child{ white-space:normal; overflow:visible; }
  .lu-toast .lu-toast-go{ grid-area:go; width:100%; }
  .lu-toast-x{ grid-area:x; align-self:start; }
}

.lu-intro{ position:fixed; inset:0; z-index:95; display:grid; place-items:center; overflow-y:auto; padding:calc(var(--sat, 0px) + 20px) 16px calc(var(--sab, 0px) + 20px); color:#fff;
  background:radial-gradient(60% 50% at 15% 10%, rgba(142,123,255,.55) 0%, transparent 70%), radial-gradient(55% 45% at 90% 20%, rgba(53,214,242,.38) 0%, transparent 70%), radial-gradient(60% 50% at 55% 100%, rgba(255,95,162,.34) 0%, transparent 72%), #0B0A1F; background-size:140% 140%; }
.lu-intro.bye{ opacity:0; transform:scale(1.04); transition:opacity .4s ease, transform .4s ease; }
.lu-intro-box{ width:min(100%, 880px); display:grid; gap:14px; justify-items:center; text-align:center; }
.lu-intro-eyebrow{ font-size:1rem; font-weight:800; letter-spacing:.3em; text-transform:uppercase; color:#7BE6F8; }
.lu-intro h1{ margin:0; font-family:"Atkinson Hyperlegible Next", system-ui, sans-serif; font-weight:800; font-size:clamp(2.6rem, 14vw, 7rem); line-height:.95; letter-spacing:-.05em; background:linear-gradient(100deg, #fff 10%, #C4BAFF 50%, #7BE6F8 90%); -webkit-background-clip:text; background-clip:text; color:transparent; outline:none; }
.lu-intro-lead{ margin:0; font-size:1.25rem; font-weight:600; color:#DAD9F0; }
.lu-intro-grid{ width:100%; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-top:8px; }
.lu-intro-card{ --c:#8E7BFF; display:grid; gap:4px; justify-items:center; align-content:start; padding:16px 10px; border-radius:26px; border:1px solid rgba(255,255,255,.16); background:linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 20px 50px -20px rgba(0,0,0,.7); transition:transform .3s cubic-bezier(.34,1.4,.64,1), box-shadow .3s; }
.lu-intro-card:hover{ transform:translateY(-6px) scale(1.02); box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 0 60px -14px #8E7BFF; }
.lu-intro-card:last-child{ grid-column:1 / -1; }
.lu-intro-card b{ font-size:1.125rem; } .lu-intro-card > span:last-child{ font-size:1rem; color:#C2C3DA; }
.lu-intro-art{ position:relative; display:grid; place-items:center; align-content:center; gap:8px; width:100%; height:112px; overflow:hidden; border-radius:16px; min-width:0; }
.lu-intro-art > *{ max-width:100%; }
.lu-intro-card{ min-width:0; overflow:hidden; }
.lu-intro-card b, .lu-intro-card > span:last-child{ overflow-wrap:break-word; max-width:100%; }
.lu-intro-art .lu-ring.big{ width:86px; height:86px; }
.lu-intro-art .lu-range{ width:76%; margin:0; }
.lu-intro-art .lu-range-dot{ --c:#FF6B7A; }
.lu-intro-keys{ display:flex; gap:6px; } .lu-intro-dock{ display:flex; gap:6px; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.10); }
.lu-intro-dock{ max-width:100%; box-sizing:border-box; }
.lu-intro-dock i{ flex:0 1 14px; width:14px; height:14px; border-radius:50%; background:rgba(255,255,255,.25); } .lu-intro-dock i.on{ flex:0 1 28px; width:28px; border-radius:999px; background:linear-gradient(135deg, #8E7BFF, #B05CFF); }
.lu-intro-tier{ display:block; height:18px; border-radius:9px; justify-self:start; margin-left:12%; max-width:76%; background:linear-gradient(90deg, #35D6F2, #8E7BFF); }
.lu-intro-dev{ width:min(120px, 90%); height:76px; fill:rgba(255,255,255,.08); stroke:#C4BAFF; stroke-width:2; stroke-linecap:round; } .lu-intro-dev .ph{ fill:rgba(53,214,242,.25); stroke:#7BE6F8; }
.lu-intro-acts{ display:grid; gap:6px; justify-items:center; margin-top:10px; }
.lu-intro .lu-intro-go{ min-height:64px; padding:0 34px; font-size:1.25rem; background:linear-gradient(135deg, #8E7BFF 0%, #B05CFF 60%, #FF5FA2 120%); color:#fff; box-shadow:0 16px 40px -8px rgba(142,123,255,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.lu-intro-later{ min-height:48px; padding:0 16px; border:0; background:none; color:#C2C3DA; font:inherit; font-size:1.0625rem; font-weight:700; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.lu-intro-fine{ margin:0; font-size:1rem; color:#9C9DB8; }
@media (min-width:760px){ .lu-intro-grid{ grid-template-columns:repeat(5, minmax(0,1fr)); } .lu-intro-card:last-child{ grid-column:auto; } }

/* The three looks side by side (Settings) */
.look-pick.three{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.look-pick.three .look-opt{ padding:10px 6px 12px; }
.look-prev.lumina{ background:radial-gradient(80% 50% at 10% 0%, rgba(142,123,255,.7), transparent 70%), radial-gradient(70% 40% at 100% 30%, rgba(53,214,242,.5), transparent 70%), #0B0A1F; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }
.lumina .lp-eye{ background:#7BE6F8; } .lumina .lp-big{ background:#fff; } .lumina .lp-card{ background:rgba(255,255,255,.12); } .lumina .lp-line{ background:rgba(255,255,255,.3); }
.lumina .lp-bars i{ background:#8E7BFF; } .lumina .lp-bars i:nth-child(2){ background:#3DF0A6; } .lumina .lp-bars i:nth-child(3){ background:#FF6B7A; }
.lumina .lp-btn{ background:linear-gradient(135deg, #8E7BFF, #B05CFF); box-shadow:0 0 10px rgba(142,123,255,.8); } .lumina .lp-tabs{ background:rgba(20,19,46,.9); } .lumina .lp-tabs i{ background:#5C5D7C; } .lumina .lp-tabs i:first-child{ background:#8E7BFF; }

/* ---------- Motion ---------- */
@keyframes lu-rise{ from{ opacity:0; transform:translateY(22px) scale(.97); } }
@keyframes lu-arc{ from{ stroke-dasharray:0 252; } }
@keyframes lu-pulse{ 0%{ transform:scale(.9); opacity:.9; } 100%{ transform:scale(1.5); opacity:0; } }
@keyframes lu-drift{ 0%{ background-position:0% 0%; } 50%{ background-position:100% 60%; } 100%{ background-position:0% 0%; } }
@keyframes lu-pane{ from{ opacity:0; transform:translateX(18px); } }
@keyframes lu-grow{ from{ transform:scaleX(0); } }
@keyframes lu-toast{ from{ opacity:0; transform:translateY(30px) scale(.96); } }
@media (prefers-reduced-motion: no-preference){
  .screen.enter .lu-card, .screen.enter .lu-q{ animation:lu-rise .6s cubic-bezier(.2,.9,.2,1) both; }
  .screen.enter .lu-card:nth-child(2){ animation-delay:.05s; } .screen.enter .lu-card:nth-child(3){ animation-delay:.1s; } .screen.enter .lu-card:nth-child(4){ animation-delay:.15s; } .screen.enter .lu-card:nth-child(n+5){ animation-delay:.2s; }
  .screen.enter .lu-ring-arc, .lu-sheet .lu-ring-arc, .lu-pane.swap .lu-ring-arc, .lu-intro .lu-ring-arc, .lu-toast .lu-ring-arc{ animation:lu-arc 1.2s cubic-bezier(.2,.9,.2,1) .15s both; }
  .lu-pulse{ animation:lu-pulse 1.6s ease-out infinite; }
  .lu-pane.swap > *{ animation:lu-pane .32s cubic-bezier(.2,.9,.2,1) both; }
  .lu-sheet .lu-bullets li{ animation:lu-rise .45s cubic-bezier(.2,.9,.2,1) both; } .lu-sheet .lu-bullets li:nth-child(2){ animation-delay:.06s; } .lu-sheet .lu-bullets li:nth-child(3){ animation-delay:.12s; } .lu-sheet .lu-bullets li:nth-child(4){ animation-delay:.18s; }
  .lu-pal-box{ animation:lu-rise .28s cubic-bezier(.2,.9,.2,1); }
  .lu-toast{ animation:lu-toast .5s cubic-bezier(.34,1.3,.64,1) both; }
  .lu-intro{ animation:lu-drift 18s ease-in-out infinite, au-fade .5s ease-out; }
  .lu-intro-box > *{ animation:lu-rise .7s cubic-bezier(.2,.9,.2,1) both; }
  .lu-intro-box > :nth-child(2){ animation-delay:.08s; } .lu-intro-box > :nth-child(3){ animation-delay:.16s; } .lu-intro-box > :nth-child(5){ animation-delay:.9s; } .lu-intro-box > :nth-child(6){ animation-delay:1s; }
  .lu-intro-card{ animation:lu-rise .7s cubic-bezier(.34,1.3,.64,1) both; }
  .lu-intro-card:nth-child(1){ animation-delay:.28s; } .lu-intro-card:nth-child(2){ animation-delay:.4s; } .lu-intro-card:nth-child(3){ animation-delay:.52s; } .lu-intro-card:nth-child(4){ animation-delay:.64s; } .lu-intro-card:nth-child(5){ animation-delay:.76s; }
  .lu-intro-tier{ transform-origin:left center; animation:lu-grow .7s cubic-bezier(.2,.9,.2,1) both; }
}
}
@media print{ .lu-dock, .lu-toast, .lu-intro, .lu-pal, .lu-pane{ display:none !important; } }

/* Spending (2 Dec 2026): monthly stacked bars, spending.js. Text stays in ink tokens; colour only on the marks. */
.spend-tiles{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0 0 12px; }
.spend-tile{ background:var(--lu-glass); border:1px solid var(--card-edge); border-radius:16px; padding:10px 12px; min-width:0; }
.spend-tile small{ display:block; font-size:1rem; color:var(--ink-2); } .spend-tile b{ font-size:1.25rem; color:var(--ink); overflow-wrap:anywhere; }
.spend-chart{ position:relative; background:var(--sheet); border:1px solid var(--card-edge); border-radius:18px; padding:12px; }
.spend-chart svg{ display:block; width:100%; height:auto; }
.spend-legend{ display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 6px; font-size:1rem; color:var(--ink-2); }
.spend-legend i{ display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.spend-grid{ stroke:var(--hair); stroke-width:1; } .spend-ax{ fill:var(--muted); font-size:11px; }
.spend-bar{ cursor:pointer; outline:none; } .spend-bar:focus rect{ stroke:var(--ink); stroke-width:0; }
.spend-tip{ position:absolute; top:34px; min-width:150px; display:grid; gap:2px; padding:8px 10px; border-radius:12px; background:#141330; border:1px solid var(--glass-edge); color:var(--ink); font-size:1rem; pointer-events:none; }
.spend-table{ width:100%; border-collapse:collapse; font-size:1rem; color:var(--ink-2); } .spend-table th, .spend-table td{ text-align:left; padding:4px 6px; border-bottom:1px solid var(--hair); }
.spend-items{ list-style:none; margin:12px 0 4px; padding:0; display:grid; gap:6px; }
.spend-items li{ display:flex; justify-content:space-between; gap:10px; padding:8px 12px; border-radius:12px; background:var(--row); color:var(--ink-2); font-size:1rem; }
.spend-items li span{ min-width:0; overflow-wrap:anywhere; } .spend-items li b{ color:var(--ink); white-space:nowrap; }
