/* Atrium — frosted glass floating in a warm, softly lit room (after a "glassy dashboard" in the visionOS manner).
   The page is a soft, warm room painted in CSS (a bright window and lamp light on a sand wall — no photo), the
   content sits in one big pane of frosted glass with lighter glass cards on it, charcoal and white pill controls,
   coral and charcoal for figures. The header is a floating glass bar with a greeting and a glowing "ask" orb;
   station pages are a column of round glass keys and a floating pill dock (theme-atrium.js). By night the same room
   with the lamps on. Glass is backdrop-filter over a still backdrop; motion is transform / opacity only. */

/* ---------- Palette ---------- */
html[data-theme="atrium"] {
  color-scheme: light;
  --font: "Inter", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --at-display: "Inter", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --tint: #f0643c; --accent: #1d1b18; --accent-2: #f0643c; --accent-3: #c9a27a;
  --bg: #d6c3aa; --panel: rgba(255, 255, 255, .34); --panel-2: rgba(255, 255, 255, .5); --border: rgba(255, 255, 255, .55);
  --text: #1d1b18; --muted: rgba(29, 27, 24, .58); --input-bg: rgba(255, 255, 255, .6); --link: #b8461f;
  --green: #17864b; --red: #d23b2a; --amber: #a86a12; --orange: #e0582c;
  --radius: 22px; --radius-btn: 999px; --radius-input: 14px;
  --surface: rgba(255, 255, 255, .34); --surface-border-color: rgba(255, 255, 255, .58);
  --grad-brand: linear-gradient(100deg, #1d1b18, #f0643c);
  --grad-primary: linear-gradient(180deg, #2b2825, #1a1816);
  --grad-primary-hover: linear-gradient(180deg, #34302c, #1f1d1a);
  --grad-success: linear-gradient(180deg, #1fa260, #148049);
  --grad-danger: linear-gradient(180deg, #e8553f, #c4321f);
  --grad-warn: linear-gradient(180deg, #e9a13c, #c97f12);
  --grad-info: linear-gradient(180deg, #2b2825, #1a1816);
  --btn-soft: rgba(255, 255, 255, .62); --btn-soft-hover: rgba(255, 255, 255, .82);
  --app-bg: #d6c3aa;
  --elev: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(60, 40, 20, .06), 0 18px 40px -26px rgba(60, 40, 20, .45);
  --shadow: 0 18px 40px -26px rgba(60, 40, 20, .45);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .7), 0 16px 34px -18px rgba(60, 40, 20, .5);
  --glow1: transparent; --glow2: transparent; --glow-blend: normal;
  /* the glass itself */
  --at-pane: rgba(255, 252, 247, .3); --at-pane-edge: rgba(255, 255, 255, .5);
  --at-card: rgba(255, 255, 255, .32); --at-card-hi: rgba(255, 255, 255, .48); --at-card-edge: rgba(255, 255, 255, .62);
  --at-blur: blur(24px) saturate(1.3); --at-blur-sm: blur(18px) saturate(1.25);
  --at-ink: #1d1b18; --at-on-ink: #ffffff; --at-pill-on: #ffffff; --at-pill-on-text: #1d1b18;
  --at-lift: inset 0 1px 0 rgba(255, 255, 255, .8), 0 26px 46px -24px rgba(60, 40, 20, .55);
  --at-ease: cubic-bezier(.25, .8, .25, 1); --at-spring: cubic-bezier(.25, .8, .25, 1);   /* calm: no overshoot */
}
html[data-theme="atrium"][data-mode="dark"] {
  color-scheme: dark;
  --tint: #ff8a5c; --accent: #f6efe6; --accent-2: #ff8a5c; --accent-3: #d9b48a;
  --bg: #1c140f; --panel: rgba(40, 28, 20, .42); --panel-2: rgba(60, 44, 32, .5); --border: rgba(255, 230, 205, .14);
  --text: #f6efe6; --muted: rgba(246, 239, 230, .6); --input-bg: rgba(20, 14, 10, .45); --link: #ffa47e;
  --green: #5ed694; --red: #ff7a66; --amber: #f2be62; --orange: #ff8a5c;
  --surface: rgba(40, 28, 20, .42); --surface-border-color: rgba(255, 230, 205, .16);
  --grad-primary: linear-gradient(180deg, #fbf6ef, #e9dfd2); --grad-primary-hover: linear-gradient(180deg, #ffffff, #efe6da);
  --grad-info: var(--grad-primary);
  --btn-soft: rgba(255, 240, 225, .1); --btn-soft-hover: rgba(255, 240, 225, .18);
  --app-bg: #1c140f;
  --elev: inset 0 1px 0 rgba(255, 235, 215, .12), 0 22px 46px -26px rgba(0, 0, 0, .8);
  --shadow: 0 22px 46px -26px rgba(0, 0, 0, .8);
  --at-pane: rgba(36, 25, 18, .5); --at-pane-edge: rgba(255, 228, 200, .16);
  --at-card: rgba(255, 236, 216, .07); --at-card-hi: rgba(255, 236, 216, .12); --at-card-edge: rgba(255, 228, 200, .15);
  --at-ink: #f6efe6; --at-on-ink: #1d1b18; --at-pill-on: #f6efe6; --at-pill-on-text: #1d1b18;
  --at-lift: inset 0 1px 0 rgba(255, 235, 215, .16), 0 28px 50px -24px rgba(0, 0, 0, .9);
}

/* ---------- The room: a softly blurred interior, painted once ---------- */
html[data-theme="atrium"][data-mode] body { background: var(--app-bg); }
/* its own layer (theme-atrium.js adds #at-room): the shared performance rules switch off every body::before */
html[data-theme="atrium"][data-mode] #at-room {
  position: fixed; z-index: 0; pointer-events: none; inset: -8vmax; transform: translateZ(0);
  background:
    radial-gradient(30vw 28vh at 66% 22%, rgba(255, 250, 238, 1), rgba(255, 244, 222, 0) 70%),     /* the window */
    radial-gradient(16vw 14vh at 34% 74%, rgba(255, 196, 120, .55), rgba(255, 196, 120, 0) 72%),     /* lamp light */
    linear-gradient(180deg, #e3d3be 0%, #d7c2a6 46%, #b99673 70%, #6e4f37 84%, #4b3526 100%);         /* wall to oak floor */
}
html[data-theme="atrium"][data-mode="dark"] #at-room {
  background:
    radial-gradient(30vw 26vh at 74% 16%, rgba(70, 86, 120, .7), rgba(70, 86, 120, 0) 70%),          /* dusk in the window */
    radial-gradient(22vw 24vh at 33% 72%, rgba(255, 170, 80, .55), rgba(255, 170, 80, 0) 70%),       /* the lamp is on */
    radial-gradient(14vw 18vh at 88% 70%, rgba(255, 140, 70, .35), rgba(255, 140, 70, 0) 70%),
    linear-gradient(180deg, #3a2b20 0%, #2e2118 50%, #22180f 76%, #140d08 100%);
}
html[data-theme="atrium"][data-mode] :is(#app-view, #login-view, #modal-root) { position: relative; z-index: 1; }
html[data-theme="atrium"][data-mode] ::selection { background: rgba(240, 100, 60, .3); }
html[data-theme="atrium"][data-mode] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="atrium"][data-mode] ::-webkit-scrollbar-thumb { background: rgba(29, 27, 24, .22); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
html[data-theme="atrium"][data-mode="dark"] ::-webkit-scrollbar-thumb { background-color: rgba(255, 236, 216, .2); }
html[data-theme="atrium"][data-mode] ::-webkit-scrollbar-track { background: transparent; }

@keyframes at-rise { from { opacity: 0; } }
@keyframes at-orb { to { transform: rotate(360deg); } }
@keyframes at-breathe { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes at-caret { 50% { opacity: 0; } }
@keyframes at-pop { from { opacity: 0; transform: translateY(3px); } }

/* ---------- Header: a floating glass bar — greeting, the ask orb, the controls ---------- */
html[data-theme="atrium"][data-mode] .topbar {
  position: sticky; top: 12px; z-index: 40; margin: 12px 18px 0; padding: 8px 10px 8px 8px; border-radius: 999px;
  background: var(--at-pane); border: 1px solid var(--at-pane-edge); box-shadow: var(--elev);
  -webkit-backdrop-filter: var(--at-blur); backdrop-filter: var(--at-blur);
}
html[data-theme="atrium"][data-mode] .brand {
  display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--at-display); letter-spacing: -.01em;
  color: var(--text); background: none; -webkit-text-fill-color: currentColor;
}
html[data-theme="atrium"][data-mode] .at-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  font: 600 13px/1 var(--at-display); color: var(--at-on-ink); background: var(--at-ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6), 0 4px 10px -4px rgba(0, 0, 0, .4);
}
html[data-theme="atrium"][data-mode] .crumb { border-radius: 999px; }
html[data-theme="atrium"][data-mode] .crumb.current { background: var(--at-card-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--at-card-edge); }
html[data-theme="atrium"][data-mode] .topbar .btn.ghost {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--at-card); border: 1px solid var(--at-card-edge); color: var(--text);
}
html[data-theme="atrium"][data-mode] .topbar .btn.ghost#logout-btn, html[data-theme="atrium"][data-mode] .topbar .btn.ghost#users-btn { width: auto; padding: 0 14px; }
html[data-theme="atrium"][data-mode] .topbar #user-chip { display: none; }
/* the ask orb: a glass pill with a living sphere of light and a line that types itself */
html[data-theme="atrium"][data-mode] .at-ask {
  display: inline-flex; align-items: center; gap: 10px; min-width: min(380px, 34vw); height: 38px; padding: 0 16px 0 6px; margin: 0 auto;
  border-radius: 999px; border: 1px solid var(--at-card-edge); background: var(--at-card); color: var(--muted);
  font: 500 13px/1 var(--font); cursor: pointer; transition: background .25s, transform .4s var(--at-spring);
}
html[data-theme="atrium"][data-mode] .at-ask:hover { background: var(--at-card-hi); transform: translateY(-1px); }
html[data-theme="atrium"][data-mode] .at-ask kbd { margin-left: auto; font: 500 11px/1 var(--font); padding: 4px 7px; border-radius: 7px; background: var(--at-card); border: 1px solid var(--at-card-edge); color: var(--muted); }
html[data-theme="atrium"][data-mode] .at-orb { position: relative; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 14px -2px rgba(150, 120, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .5); }
html[data-theme="atrium"][data-mode] .at-orb::before { content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: conic-gradient(from 0deg, #7c6bff, #ff7ad9, #ffb86b, #6be4ff, #7c6bff); filter: blur(4px); animation: at-orb 14s linear infinite; }
html[data-theme="atrium"][data-mode] .at-orb::after { content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, .2) 60%, transparent 70%); animation: at-breathe 5s ease-in-out infinite; }
html[data-theme="atrium"][data-mode] .at-type::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: at-caret 1s steps(1) infinite; }
@media (max-width: 860px) { html[data-theme="atrium"][data-mode] .at-ask { min-width: 0; width: 38px; padding: 0 6px; } html[data-theme="atrium"][data-mode] .at-ask :is(.at-type, kbd) { display: none; } }

/* ---------- The pane: one big sheet of frosted glass holding the page ---------- */
html[data-theme="atrium"][data-mode] #content {
  margin: 18px 18px 24px; padding: 28px 30px 34px; border-radius: 34px; min-height: calc(100vh - 110px);
  background: var(--at-pane); border: 1px solid var(--at-pane-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 50px 90px -50px rgba(60, 40, 20, .55);
  /* no backdrop-filter here: it re-blurs a screen-sized area on every scroll frame, and it would make "fixed"
     controls inside the page (the Save shift bar) fixed to this pane instead of the window */
}
html[data-theme="atrium"][data-mode="dark"] #content { box-shadow: inset 0 1px 0 rgba(255, 235, 215, .1), 0 50px 90px -50px rgba(0, 0, 0, .9); }
html[data-theme="atrium"][data-mode] .at-greet { font: 500 13px/1.2 var(--font); color: var(--muted); margin: 0 0 4px; animation: at-rise .6s var(--at-ease) backwards; }
html[data-theme="atrium"][data-mode] :is(h1, h2, h3) { font-family: var(--at-display); letter-spacing: -.02em; }
html[data-theme="atrium"][data-mode] .section-head h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; color: var(--text); background: none; -webkit-text-fill-color: currentColor; }

/* ---------- Glass cards on the pane: lighter, crisp edged, lift like the reference (y −5) ---------- */
html[data-theme="atrium"][data-mode] :is(.card, .stat) {
  position: relative; background: var(--at-card); border: 1px solid var(--at-card-edge); border-radius: var(--radius); box-shadow: var(--elev);
  transition: transform .6s var(--at-ease), box-shadow .6s var(--at-ease), background .4s var(--at-ease);
}
html[data-theme="atrium"][data-mode] .card::before { content: none; }
html[data-theme="atrium"][data-mode] :is(.card, .stat):hover { transform: translateY(-2px); box-shadow: var(--at-lift); background: var(--at-card-hi); }
html[data-theme="atrium"][data-mode] .station-main > * { animation: at-rise .5s ease-out backwards; }   /* a quiet fade in, all together */
html[data-theme="atrium"][data-mode] .stat .label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
html[data-theme="atrium"][data-mode] .stat .value { font: 600 26px/1.15 var(--at-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
html[data-theme="atrium"][data-mode] :is(td, .num, .money) { font-variant-numeric: tabular-nums; }
/* the station cards on the dashboard: the reference's emerald balance card for the first one */
html[data-theme="atrium"][data-mode] .station-card:first-child { background: linear-gradient(150deg, rgba(31, 164, 120, .5), rgba(255, 255, 255, .28) 58%); }

/* ---------- Controls: charcoal and white pills ---------- */
html[data-theme="atrium"][data-mode] .btn { border-radius: 999px; font-weight: 600; transition: transform .45s var(--at-ease), background .3s, color .3s, box-shadow .3s; }
html[data-theme="atrium"][data-mode] .btn:hover { transform: translateY(-1px); }
html[data-theme="atrium"][data-mode] .btn:active { transform: scale(.98); transition-duration: .15s; }
html[data-theme="atrium"][data-mode] .btn.primary { color: var(--at-on-ink); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
html[data-theme="atrium"][data-mode] .btn:not(.primary):not(.ghost):not(.danger) { background: var(--btn-soft); border: 1px solid var(--at-card-edge); color: var(--text); }
html[data-theme="atrium"][data-mode] .btn:not(.primary):not(.ghost):not(.danger):hover { background: var(--btn-soft-hover); }
html[data-theme="atrium"][data-mode] :is(input, select, textarea) { border-radius: var(--radius-input); background: var(--input-bg); border: 1px solid var(--at-card-edge); }
html[data-theme="atrium"][data-mode] :is(input, select, textarea):focus { outline: none; border-color: var(--at-ink); box-shadow: 0 0 0 4px rgba(240, 100, 60, .18); }
html[data-theme="atrium"][data-mode] :is(.chip, .badge) { border-radius: 999px; }
html[data-theme="atrium"][data-mode] input[type="checkbox"], html[data-theme="atrium"][data-mode] input[type="radio"] { accent-color: var(--at-ink); }
/* segmented controls (page tabs, toggles): a glass track with the chosen one as a charcoal pill */
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) { gap: 4px; padding: 4px; border: 1px solid var(--at-card-edge); border-radius: 999px; background: var(--at-card); width: fit-content; max-width: 100%; }
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) .tab { border-radius: 999px; border: 0; padding: 7px 14px; }
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) .tab.active { background: var(--at-ink); color: var(--at-on-ink) !important; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) .tab.active :is(b, strong, span) { color: inherit; }
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) .tab.active .muted { color: inherit !important; opacity: .65; }
html[data-theme="atrium"][data-mode] .tabs:not(.station-tabs-v) .tab { transition: background .4s var(--at-ease), color .3s; }

/* ---------- Tables ---------- */
html[data-theme="atrium"][data-mode] table thead th { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; background: transparent; }
html[data-theme="atrium"][data-mode] table :is(th, td) { border-color: rgba(29, 27, 24, .08); }
html[data-theme="atrium"][data-mode="dark"] table :is(th, td) { border-color: rgba(255, 236, 216, .07); }
html[data-theme="atrium"][data-mode] table tbody tr { transition: background .2s; }
html[data-theme="atrium"][data-mode] table tbody tr:hover { background: rgba(255, 255, 255, .3); }
html[data-theme="atrium"][data-mode="dark"] table tbody tr:hover { background: rgba(255, 236, 216, .05); }

/* ---------- Pop-ups: a glass sheet over a softened room ---------- */
html[data-theme="atrium"][data-mode] .modal-backdrop { background: rgba(60, 40, 24, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-theme="atrium"][data-mode="dark"] .modal-backdrop { background: rgba(0, 0, 0, .35); }
html[data-theme="atrium"][data-mode] .modal {
  border-radius: 28px; background: var(--at-pane); border: 1px solid var(--at-pane-edge); box-shadow: var(--at-lift);
  -webkit-backdrop-filter: blur(30px) saturate(1.3); backdrop-filter: blur(30px) saturate(1.3); animation: at-pop .35s var(--at-ease);
}
html[data-theme="atrium"][data-mode="light"] .modal { background: rgba(255, 252, 247, .62); }
html[data-theme="atrium"][data-mode] .login-card { border-radius: 30px; background: var(--at-pane); border: 1px solid var(--at-pane-edge); -webkit-backdrop-filter: var(--at-blur); backdrop-filter: var(--at-blur); box-shadow: var(--at-lift); }

/* ---------- Station pages: round glass section keys + a floating pill dock (theme-atrium.js) ---------- */
html.sn-on[data-theme="atrium"][data-mode] .station-rail-left { display: none !important; }
html.sn-on[data-theme="atrium"][data-mode] .station-layout { grid-template-columns: minmax(0, 1fr) 230px !important; }
html.sn-on[data-theme="atrium"][data-mode] .station-layout:not(.has-right) { grid-template-columns: minmax(0, 1fr) !important; }
@media (max-width: 980px) { html.sn-on[data-theme="atrium"][data-mode] .station-layout { grid-template-columns: minmax(0, 1fr) !important; } }
html.sn-on[data-theme="atrium"][data-mode] #content:has(.sn-atrium) { margin-left: 86px; padding-bottom: 120px; }
.sn-atrium .at-keys {
  position: fixed; z-index: 30; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 8px;
  border-radius: 999px; background: var(--at-pane); border: 1px solid var(--at-pane-edge); box-shadow: var(--elev);
  -webkit-backdrop-filter: var(--at-blur); backdrop-filter: var(--at-blur); animation: at-pop .5s var(--at-spring);
}
.sn-atrium .at-key {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--text); transition: background .25s, transform .4s var(--at-spring), color .2s;
}
.sn-atrium .at-key svg { width: 19px; height: 19px; }
.sn-atrium .at-key:hover { background: var(--at-card-hi); }
.sn-atrium .at-key.on { background: var(--at-pill-on); color: var(--at-pill-on-text); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.sn-atrium .at-key::after {   /* the section's name, on a glass tag beside the key */
  content: attr(data-name); position: absolute; left: calc(100% + 12px); top: 50%; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  font: 600 12px/1 var(--font); color: var(--text); background: var(--at-pane); border: 1px solid var(--at-pane-edge);
  -webkit-backdrop-filter: var(--at-blur-sm); backdrop-filter: var(--at-blur-sm); opacity: 0; pointer-events: none;
  transform: translate(-6px, -50%); transition: opacity .2s, transform .3s var(--at-ease);
}
.sn-atrium .at-key:hover::after, .sn-atrium .at-key:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.sn-atrium .at-dock {
  position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(940px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--at-pane); border: 1px solid var(--at-pane-edge); box-shadow: var(--elev), 0 24px 50px -24px rgba(40, 26, 14, .55);
  -webkit-backdrop-filter: var(--at-blur); backdrop-filter: var(--at-blur); animation: at-pop .5s var(--at-spring);
}
.sn-atrium .at-track { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.sn-atrium .at-track::-webkit-scrollbar { display: none; }
.sn-atrium .at-slide {   /* the white pill that glides to the open page */
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--at-pill-on); pointer-events: none;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); transition: transform .85s cubic-bezier(.4, 0, .2, 1), width .85s cubic-bezier(.4, 0, .2, 1);
}
.sn-atrium .at-pg {
  position: relative; z-index: 1; flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; font: 500 13px/1 var(--font); color: var(--muted); transition: color .25s;
}
.sn-atrium .at-pg:hover { color: var(--text); }
.sn-atrium .at-pg.on { color: var(--at-pill-on-text); font-weight: 600; }
.sn-atrium .at-more {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--at-ink); color: var(--at-on-ink); transition: transform .4s var(--at-spring);
}
.sn-atrium .at-more:hover { transform: rotate(45deg); }
@media (max-width: 760px) {
  .sn-atrium .at-keys { display: none; }
  html.sn-on[data-theme="atrium"][data-mode] #content:has(.sn-atrium) { margin-left: 10px; }
}

/* ---------- The ask sheet: jump to any page or station ---------- */
.at-sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding-top: 12vh; background: rgba(60, 40, 24, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: at-pop .25s var(--at-ease); }
html[data-mode="dark"] .at-sheet { background: rgba(0, 0, 0, .35); }
.at-sheet-in { width: min(560px, calc(100vw - 32px)); border-radius: 26px; padding: 10px; background: var(--at-pane); border: 1px solid var(--at-pane-edge);
  box-shadow: var(--at-lift); -webkit-backdrop-filter: blur(40px) saturate(1.4); backdrop-filter: blur(40px) saturate(1.4); }
html[data-mode="light"] .at-sheet-in { background: rgba(255, 252, 247, .66); }
.at-sheet-q { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; border-bottom: 1px solid var(--at-card-edge); }
.at-sheet-q input { flex: 1; border: 0 !important; outline: none !important; background: transparent !important; box-shadow: none !important; font: 500 16px/1.3 var(--font); color: var(--text); padding: 6px 0; }
.at-sheet-list { max-height: 50vh; overflow: auto; padding-top: 6px; }
.at-sheet-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--text);
  font: 500 14px/1.2 var(--font); text-align: left; cursor: pointer; animation: at-pop .3s var(--at-ease) calc(var(--d, 0) * 18ms) backwards; }
.at-sheet-it small { margin-left: auto; color: var(--muted); font-weight: 500; }
.at-sheet-it:is(:hover, .sel) { background: var(--at-card-hi); }
.at-sheet-none { padding: 18px 12px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html[data-theme="atrium"] *, .at-sheet, .at-sheet * { animation: none !important; transition: none !important; }
}

/* ---------- The floating Save shift bar: a glass pill, above the page dock when there is one ---------- */
html[data-theme="atrium"][data-mode] .shift-save-dock {
  border-radius: 999px; padding: 8px 8px 8px 18px; background: var(--at-pane); border: 1px solid var(--at-pane-edge); box-shadow: var(--at-lift);
  -webkit-backdrop-filter: var(--at-blur); backdrop-filter: var(--at-blur);
}
html[data-theme="atrium"][data-mode] .shift-save-dock > span { color: var(--muted); }
html[data-theme="atrium"][data-mode] body:has(.at-portal) .shift-save-dock { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* a stacked list of choices (the shift picker): soft rounded rows, not tall capsules */
html[data-theme="atrium"][data-mode] .shift-rail .tabs { border-radius: 22px; width: auto; flex-direction: column; align-items: stretch; }
html[data-theme="atrium"][data-mode] .shift-rail .tabs .tab { border-radius: 16px; }

/* the keys and the dock are rebuilt on every page change: only their first appearance fades in */
.at-portal.at-still :is(.at-keys, .at-dock) { animation: none; }
.sn-atrium :is(.at-keys, .at-dock) { animation-duration: .6s; animation-timing-function: ease-out; }
.sn-atrium :is(.at-key, .at-pg) { transition-duration: .45s; }
