/* AKARA People — design system v2 ("Pearl").
 * Light-first by request: pearl neutrals over a slow iridescent aurora with film grain, frosted glass cards,
 * ink pill actions with a rotating chip, a living state orb for attendance. Dark is an opt-in toggle in Me → Appearance.
 * Layout: mobile app (glass top bar, content, floating pill tab bar); ≥1024px a floating glass sidebar + bento grid. */
:root {
  --bg: #f4f5f8; --bg-2: #eceef3;
  --glass: rgb(255 255 255 / .72); --glass-strong: rgb(255 255 255 / .9); --glass-edge: rgb(255 255 255 / .95);
  --surface: #ffffff; --surface-2: #f6f7fa; --surface-3: #eceef3;
  --line: rgb(14 16 24 / .08); --line-2: rgb(14 16 24 / .14);
  --text: #0c0e14; --text-2: #4f5566; --text-3: #8a90a2;
  --ink: #0c0e14; --on-ink: #ffffff;
  --peach: #ffcfb8; --rose: #ffc2d6; --lilac: #e3cffd; --sky: #c4dcff; --mint: #c3f0dc; --butter: #fff0b8;
  --irid: linear-gradient(115deg, #ffd8c6 0%, #f8d3f0 28%, #dcd5ff 52%, #c9e3ff 76%, #d4f5e6 100%);
  --accent: #ff7a45; --accent-ink: #c2410c; --accent-soft: #ffeadf; --on-accent: #ffffff;
  --ok: #0b8a5f; --ok-soft: #dcf5ea; --warn: #a15c00; --warn-soft: #fff1d6; --bad: #d1243c; --bad-soft: #ffe3e7;
  --info: #3460d6; --info-soft: #e3ebff; --sim: #6d4ae8; --sim-soft: #efe9ff;
  --shadow: 0 1px 1px rgb(12 14 20 / .03), 0 6px 14px -6px rgb(30 34 60 / .10), 0 22px 44px -22px rgb(30 34 60 / .18);
  --shadow-lg: 0 30px 80px -24px rgb(20 24 50 / .35), 0 10px 24px -10px rgb(20 24 50 / .18);
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 34px;
  --f-sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --tab-h: 70px;
  /* Accent gradient by time of day (replaces solid black). Morning is the default; data-tod switches it. */
  --brand: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #38bdf8 100%); --brand-solid: #2563eb; --brand-glow: rgb(37 99 235 / .45); --on-brand: #ffffff;
  color-scheme: light;
}
:root[data-tod="afternoon"] { --brand: linear-gradient(135deg, #0e7490 0%, #0ea5a4 45%, #3b82f6 100%); --brand-solid: #0e8fa0; --brand-glow: rgb(14 143 160 / .42); }
:root[data-tod="evening"] { --brand: linear-gradient(135deg, #be185d 0%, #e0517a 42%, #7c3aed 100%); --brand-solid: #b43a8a; --brand-glow: rgb(190 24 93 / .38); }
:root[data-tod="night"] { --brand: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #6d28d9 100%); --brand-solid: #3730a3; --brand-glow: rgb(55 48 163 / .45); }
:root[data-ak-theme="dark"] {
  --bg: #0b0c11; --bg-2: #11131a;
  --glass: rgb(22 24 32 / .72); --glass-strong: rgb(26 28 37 / .92); --glass-edge: rgb(255 255 255 / .06);
  --surface: #15171f; --surface-2: #1a1d26; --surface-3: #222632;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .14);
  --text: #eef0f6; --text-2: #a9afc1; --text-3: #7d8497;
  --ink: #f4f5f8; --on-ink: #0c0e14;
  --peach: #5a3424; --rose: #4d2234; --lilac: #3b2b5c; --sky: #1f3557; --mint: #17402f; --butter: #4a3f17;
  --irid: linear-gradient(115deg, #3b2a2a 0%, #3a2740 28%, #2c2a4d 52%, #1f3049 76%, #1d3a31 100%);
  --accent-ink: #ffa47d; --accent-soft: #3a1f15;
  --ok: #4fd39b; --ok-soft: #0f2a20; --warn: #f2c14e; --warn-soft: #2e2410; --bad: #ff7d8c; --bad-soft: #351519;
  --info: #92b5ff; --info-soft: #142039; --sim: #bba9ff; --sim-soft: #231c3f;
  --shadow: 0 1px 1px rgb(0 0 0 / .3), 0 18px 40px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--f-sans); font-size: 15px; line-height: 1.5; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
/* Film grain over everything, like a cinematic print. Purely decorative. */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-ak-theme="dark"] body::after { mix-blend-mode: screen; opacity: .06; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--accent-ink); }
::selection { background: var(--lilac); }
:focus-visible { outline: 2px solid var(--brand-solid); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.display { font-weight: 400; letter-spacing: -.035em; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack-s { display: flex; flex-direction: column; gap: 6px; } .stack-l { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; } .row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-s { width: 16px; height: 16px; } .ico-l { width: 24px; height: 24px; }

/* ---------- ambient aurora */
.aurora { position: fixed; inset: -10vmax; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
.aurora i:nth-child(1) { width: 52vmax; height: 52vmax; left: -6vmax; top: -14vmax; background: var(--peach); animation: drift1 38s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46vmax; height: 46vmax; right: -10vmax; top: -6vmax; background: var(--lilac); animation: drift2 44s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vmax; height: 50vmax; left: 20vmax; bottom: -22vmax; background: var(--sky); animation: drift3 52s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 30vmax; height: 30vmax; right: 6vmax; bottom: 4vmax; background: var(--mint); opacity: .5; animation: drift1 60s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(10vmax, 8vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vmax, 10vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(-8vmax, -10vmax) scale(1.08); } }
:root[data-ak-theme="dark"] .aurora i { opacity: .55; }

/* ---------- shell */
.app { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100%; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 64px;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); transition: background .3s, box-shadow .3s; }
/* Scrolled header: a calm frosted bar. No saturation boost, so bright content passing underneath doesn't smear into it. */
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 15px; }
.brand-mark { width: 32px; height: 32px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; position: relative; overflow: hidden; flex: none; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .4); }
.brand-mark::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, #ffb59a, #f3b6ea, #b8c4ff, #a8e6ff, #b9f0d6, #ffb59a); animation: spin 9s linear infinite; opacity: .95; }
.brand-mark::after { content: ""; position: absolute; inset: 2.5px; border-radius: 9px; background: var(--brand); }
.brand-mark span { position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--irid); box-shadow: 0 0 10px #fff8; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-3); letter-spacing: 0; font-family: var(--f-mono); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; position: relative; color: var(--text); flex: none; transition: transform .2s var(--ease), background .2s; }
.iconbtn:hover { background: var(--glass-strong); transform: translateY(-1px); }
.iconbtn.plain { border-color: transparent; background: transparent; backdrop-filter: none; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-family: var(--f-mono); border: 2px solid var(--bg); }
.avbtn { border: 0; background: none; padding: 0; border-radius: 50%; flex: none; }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text-2); font-size: 14px; min-width: 0; }
.searchbtn kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 7px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
.view { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding-top: 4px; padding-bottom: calc(var(--tab-h) + 44px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; }

.tabbar { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(460px, calc(100vw - 24px));
  display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 6px; border-radius: 999px; isolation: isolate;
  background: var(--glass-strong); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.tab-ind { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n)); border-radius: 999px; background: var(--brand);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--spring); box-shadow: 0 8px 18px -8px var(--brand-glow); }
.tab { border: 0; background: none; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 11px; font-weight: 600; border-radius: 999px; position: relative; transition: color .3s; }
.tab .ico { width: 21px; height: 21px; }
.tab[aria-current="page"] { color: var(--on-brand); }
.tab .badge { top: 3px; right: calc(50% - 22px); border-color: var(--glass-strong); }

.demo-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px dashed var(--sim);
  background: repeating-linear-gradient(135deg, var(--sim-soft) 0 6px, transparent 6px 12px), var(--glass); backdrop-filter: blur(12px); color: var(--text); font-size: 12.5px; font-weight: 600; min-width: 0; max-width: 200px; overflow: hidden; white-space: nowrap; }
.demo-pill .stack-s { min-width: 0; } .demo-pill .num { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.demo-pill .av { width: 34px; height: 34px; font-size: 11px; }
.demo-pill .lbl { color: var(--sim); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 9.5px; font-family: var(--f-mono); }
@media (max-width: 440px) { .brand .brand-text { display: none; } .searchbtn span, .searchbtn kbd { display: none; } .searchbtn { width: 44px; padding: 0; justify-content: center; } }
.offline-band { margin: 0 max(16px, env(safe-area-inset-left, 0px)) 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; padding: 8px 14px; display: flex; gap: 8px; align-items: center; }

@media (min-width: 1024px) {
  .app { grid-template-columns: 292px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 14px; height: calc(100vh - 28px); overflow-y: auto; margin: 14px 0 14px 14px; padding: 20px 14px; border-radius: var(--r-xl);
    background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
  .tabbar { display: none; }
  .topbar .brand { display: none; }
  /* Desktop: the header floats as a glass card beside the sidebar card (same top, radius and glass), instead of a
     full-bleed band whose left edge cut against the sidebar column. */
  .topbar { min-height: 64px; top: calc(env(safe-area-inset-top, 0px) + 14px); margin: 14px 14px 0 18px; padding-left: 18px; padding-right: 12px;
    border-radius: var(--r-xl); border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
  .topbar.scrolled { background: var(--glass-strong); border-color: var(--glass-edge); box-shadow: var(--shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .view { max-width: 1180px; padding-left: 32px; padding-right: 32px; padding-bottom: 56px; }
  .hide-desk { display: none !important; }
}
@media (max-width: 1023.98px) { .hide-mob { display: none !important; } }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group > .eyebrow { padding: 0 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 14px; border: 0; background: none; color: var(--text-2); font-weight: 500; text-align: left; width: 100%; transition: background .2s, color .2s; }
.nav-item:hover { background: var(--glass-strong); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand-glow); }
.nav-item .count { margin-left: auto; font-size: 11px; background: var(--accent); color: #fff; border-radius: 9px; padding: 1px 7px; font-weight: 700; font-family: var(--f-mono); }

/* ---------- surfaces */
.card { position: relative; background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); padding: 20px; min-width: 0; box-shadow: var(--shadow), inset 0 0 0 .5px var(--line); isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .9), transparent 45%); }
@media (hover: hover) { .card:hover::before { opacity: 1; } }
:root[data-ak-theme="dark"] .card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .06), transparent 45%); }
.card-flat { background: var(--surface-2); border-radius: var(--r-md); padding: 14px; border: 1px solid var(--line); }
.card h2, .section-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.today-grid { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) {
  .today-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .today-grid > .stack-l { min-width: 0; }
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.page-head h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.page-head h1 .serif { font-size: 1.08em; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 2px -4px; }
.sec-head h2 { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.greet h1 { font-size: clamp(36px, 9.5vw, 60px); font-weight: 300; letter-spacing: -.05em; line-height: .98; }
.greet h1 .serif { font-weight: 400; font-size: 1.06em; letter-spacing: -.03em; }

/* ---------- motion helpers (only on navigation; content is visible at rest) */
.view.animate .w { display: inline-block; animation: wordIn .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } }
.view.animate .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ticker */
.ticker { position: relative; overflow: hidden; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; padding: 11px 18px; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; white-space: nowrap; color: var(--text-2); }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- attendance hero ("day card") */
.hero { --o1: #ffc6ae; --o2: #e9c6ff; --o3: #bcd6ff; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 22px; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg), inset 0 0 0 .5px var(--line); backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -30% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--o2), transparent 70%); opacity: .55; filter: blur(30px); transition: background .8s var(--ease); }
.hero[data-state="working"] { --o1: #9ff0cc; --o2: #b8e4ff; --o3: #c9f7e4; }
.hero[data-state="break"] { --o1: #ffd78a; --o2: #ffc6a8; --o3: #fff0b8; }
.hero[data-state="out"] { --o1: #cdbdff; --o2: #b9d3ff; --o3: #e7dcff; }
.hero[data-state="field"] { --o1: #9fd6ff; --o2: #a8f0e2; --o3: #cfe6ff; }
.hero[data-state="missed"], .hero[data-state="noclock"] { --o1: #ffb1c0; --o2: #ffcfb8; --o3: #ffd9e2; }
.hero[data-state="off"], .hero[data-state="leave"], .hero[data-state="ended"] { --o1: #dfe3ec; --o2: #e9e2f6; --o3: #dceaf3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.hero[data-state="working"] .hero-status .dot, .hero[data-state="field"] .hero-status .dot { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: ping 2.2s infinite; }
.hero[data-state="break"] .hero-status .dot { background: #e2a400; } .hero[data-state="out"] .hero-status .dot { background: var(--sim); }
.hero[data-state="missed"] .hero-status .dot, .hero[data-state="noclock"] .hero-status .dot { background: var(--bad); }
.hero[data-state="before"] .hero-status .dot, .hero[data-state="due"] .hero-status .dot { background: var(--accent); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-shift { font-size: 12.5px; color: var(--text-2); font-family: var(--f-mono); }
.hero-main { margin: 18px 0 4px; }
.hero-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.hero-big { font-weight: 300; font-size: clamp(46px, 13vw, 72px); letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; margin-top: 4px; }
.hero-big .unit { font-size: .42em; letter-spacing: -.02em; color: var(--text-2); margin-left: 4px; }
.hero-sub { color: var(--text-2); margin-top: 10px; font-size: 14.5px; max-width: 46ch; }
.hero-loc { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; margin-top: 14px; flex-wrap: wrap; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero-actions .row-wrap { gap: 8px; }
.hero-last { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.punches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 16px; padding-bottom: 2px; }
.punches::-webkit-scrollbar { display: none; }
.punch { flex: none; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 84px; }
.punch b { font-family: var(--f-mono); font-size: 16px; font-weight: 500; letter-spacing: -.03em; }
.punch span { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.punch.in { background: var(--ok-soft); border-color: transparent; } .punch.in span { color: var(--ok); }
.punch.out { background: var(--surface-3); }
.punch.brk { background: var(--warn-soft); border-color: transparent; } .punch.brk span { color: var(--warn); }
.punch.away { background: var(--sim-soft); border-color: transparent; } .punch.away span { color: var(--sim); }

/* living orb */
.orb-wrap { position: relative; width: clamp(108px, 30vw, 168px); aspect-ratio: 1; flex: none; }
.orb { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--o1) 90%, #000 10%), inset 0 -10px 30px rgb(255 255 255 / .4); animation: breath 5.5s ease-in-out infinite; }
.orb::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, var(--o1), var(--o2), var(--o3), var(--o1)); filter: blur(14px); animation: spin 12s linear infinite; transition: background .8s; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 42%), radial-gradient(circle at 70% 80%, rgb(255 255 255 / .35), transparent 50%); }
.hero[data-state="working"] .orb { animation-duration: 3.6s; }
@keyframes breath { 50% { transform: scale(1.045); } }
.orb-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.orb-ring circle { fill: none; stroke-width: 3; }
.orb-ring .trk { stroke: var(--line-2); stroke-dasharray: 1 5; stroke-linecap: round; }
.orb-ring .val { stroke: var(--text); stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }
.orb-cap { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--text-2); white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.hero .success-ring { position: absolute; inset: 14%; border-radius: 50%; border: 2px solid var(--ok); animation: successRing 1.1s var(--ease) forwards; pointer-events: none; }
@keyframes successRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.shiftbar { position: relative; height: 8px; border-radius: 6px; background: var(--surface-3); margin-top: 18px; overflow: hidden; }
.shiftbar .seg { position: absolute; top: 0; bottom: 0; }
.shiftbar .seg.work { background: #2fc489; } .shiftbar .seg.field { background: #3fa6f5; } .shiftbar .seg.break { background: #f2b33d; } .shiftbar .seg.out { background: #a48cff; opacity: .7; }
.shiftbar .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); border-radius: 2px; }
.shiftbar-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 6px; font-family: var(--f-mono); }

/* ---------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), background .2s, box-shadow .25s, color .2s; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary, .btn-dark { background: var(--brand); color: var(--on-brand); box-shadow: 0 14px 30px -14px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-primary:hover:not([disabled]), .btn-dark:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 20px 38px -14px var(--brand-glow); }
.btn-primary::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .22) 45%, transparent 60%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn .chip { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--irid); color: #0c0e14; margin-right: -10px; transition: transform .45s var(--spring); }
.btn:hover .chip { transform: rotate(-45deg); }
.btn-secondary { background: var(--glass-strong); color: var(--text); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: var(--surface); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-irid { background: var(--irid); color: #0c0e14; box-shadow: 0 10px 26px -14px rgb(90 60 160 / .6); }
.btn-xl { min-height: 62px; font-size: 17px; width: 100%; justify-content: space-between; padding: 0 12px 0 26px; }
.btn-xl .chip { width: 42px; height: 42px; margin: 0; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn.busy { color: transparent !important; }
.btn.busy::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--on-brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; min-height: 32px; transition: text-decoration-color .2s; }
.linkbtn:hover { text-decoration-color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; min-height: 24px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.pill-irid { background: var(--irid); color: #2a2340; border-color: transparent; }
.pill-sim { color: var(--sim); border: 1px dashed var(--sim); background: repeating-linear-gradient(135deg, var(--sim-soft) 0 5px, transparent 5px 10px), var(--surface); }

.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 0 0 .5px var(--line); gap: 2px; max-width: 100%; overflow-x: auto; backdrop-filter: blur(12px); scrollbar-width: none; }
.seg button { border: 0; background: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 18px -10px var(--brand-glow); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset > legend { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 11px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-solid) 18%, transparent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; min-height: 60px; transition: transform .25s var(--spring), border-color .2s, box-shadow .2s; }
.choice:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.choice .ci { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.choice strong { display: block; font-size: 15px; font-weight: 600; }
.choice span.d { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.choice.danger .ci { background: var(--brand); color: var(--on-brand); }
.choice-sim { border-style: dashed; border-color: var(--sim); background: repeating-linear-gradient(135deg, var(--sim-soft) 0 6px, transparent 6px 12px), var(--surface); }
.choice-sim .ci { background: var(--sim-soft); color: var(--sim); }
.radio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.radio-row label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; padding: 0 12px; text-align: center; background: var(--surface); transition: background .2s, color .2s; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label:has(input:checked) { border-color: transparent; background: var(--brand); color: var(--on-brand); }
.radio-row label:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 8px; margin: 0 -8px; border-radius: 16px; border: 0; border-top: 1px solid var(--line); min-width: 0; width: calc(100% + 16px); text-align: left; background: none; color: inherit; transition: background .2s; }
.list > .li:first-child { border-top-color: transparent; }
button.li:hover, a.li:hover { background: var(--glass-strong); }
.li .grow > strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.li .grow > span { display: block; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.li-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); flex: none; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; color: #1b1630; background: var(--hue, var(--lilac)); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.av::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .85), transparent 55%); }
.av span { position: relative; z-index: 1; }
.av-l { width: 72px; height: 72px; font-size: 22px; }
.avstack { display: flex; } .avstack .av { width: 28px; height: 28px; font-size: 10px; margin-left: -8px; border: 2px solid var(--surface); } .avstack .av:first-child { margin-left: 0; }
.empty { padding: 18px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14px; text-align: center; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; font-size: 13.5px; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); }
.note .ico { margin-top: 1px; }
.note-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .note-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.note-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .note-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.note-sim { background: repeating-linear-gradient(135deg, var(--sim-soft) 0 6px, transparent 6px 12px), var(--surface); color: var(--sim); border: 1px dashed var(--sim); }
.note strong { color: inherit; }
.alert-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--bad-soft); color: var(--bad); }
.alert-card .grow strong { display: block; } .alert-card .grow span { color: var(--text-2); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 9px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--text-3); font-weight: 500; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

/* ---------- briefing: quick actions, tips, agenda, week arrivals */
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 22px; border: 1px solid var(--glass-edge); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px var(--line); font-size: 12px; font-weight: 600; color: var(--text); transition: transform .3s var(--spring), box-shadow .3s; text-align: center; }
.qa button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qa .qi { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 6px 14px -8px rgb(0 0 0 / .25); }
.qa button:nth-child(4n+1) .qi { background: linear-gradient(135deg, #ffe3d6, #ffd0bd); } .qa button:nth-child(4n+2) .qi { background: linear-gradient(135deg, #efe3ff, #dccbff); }
.qa button:nth-child(4n+3) .qi { background: linear-gradient(135deg, #dcecff, #c6dbff); } .qa button:nth-child(4n+4) .qi { background: linear-gradient(135deg, #dcf7ea, #c3eedb); }
:root[data-ak-theme="dark"] .qa .qi { background: var(--surface-3) !important; }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: none; scroll-margin-left: 16px; }
@media (min-width: 1024px) { .carousel { margin: 0; padding: 4px 2px 14px; } }
.tip { width: min(300px, 80vw); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); transition: transform .4s var(--spring); }
.tip:hover { transform: translateY(-4px) rotate(-.3deg); }
.tip-art { position: relative; height: 128px; overflow: hidden; }
.tip-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tip-art .pill { position: absolute; left: 12px; top: 12px; background: rgb(255 255 255 / .8); backdrop-filter: blur(8px); border-color: transparent; color: #2a2340; }
.tip-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tip-body h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.tip-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.tip.read { opacity: .72; }
.agenda { display: flex; flex-direction: column; position: relative; }
.ag { display: grid; grid-template-columns: 54px 14px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.ag .t { font-family: var(--f-mono); font-size: 13px; font-weight: 500; padding-top: 1px; }
.ag .d { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--surface); border: 2px solid var(--text-3); position: relative; }
.ag:not(:last-child) .d::after { content: ""; position: absolute; left: 2px; top: 10px; width: 2px; height: 36px; background: var(--line-2); }
.ag.k-shift .d { border-color: var(--accent); background: var(--accent); } .ag.k-site .d { border-color: var(--info); } .ag.k-company .d { border-color: var(--sim); } .ag.k-wellbeing .d { border-color: var(--ok); }
.ag.past { opacity: .5; } .ag.now .t { color: var(--accent-ink); }
.ag strong { display: block; font-weight: 600; font-size: 14.5px; } .ag span { display: block; font-size: 12.5px; color: var(--text-2); }
.weekarr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wa { border-radius: 16px; padding: 8px 4px 10px; text-align: center; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.wa .dw { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.wa .in { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: -.04em; }
.wa .out { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: -.03em; }
.wa .bar { width: 6px; height: 34px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; margin: 2px 0; }
.wa .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #8de0bc, #2fc489); border-radius: 4px; }
.wa.today { border-color: var(--brand-solid); box-shadow: 0 0 0 1px var(--brand-solid), 0 10px 22px -14px var(--brand-glow); }
.wa.off { background: transparent; border-style: dashed; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.st b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.05em; font-family: var(--f-mono); line-height: 1.1; }
.st > span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.pulse-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pulse-row button { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); transition: transform .3s var(--spring), background .2s; }
.pulse-row button:hover { transform: translateY(-2px); }
.pulse-row button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.pulse-row .pd { width: 26px; height: 26px; border-radius: 50%; }
.wall-item { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.wall-item blockquote { margin: 0; font-family: var(--f-serif); font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.cheer { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; min-height: 34px; }
.cheer[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento > * { min-width: 0; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--glass-edge); background: var(--glass); backdrop-filter: blur(16px); color: var(--text); box-shadow: var(--shadow); transition: transform .4s var(--spring), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; position: relative; }
.tile p { font-size: 13px; color: var(--text-2); position: relative; }
.tile .glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; filter: blur(20px); opacity: .85; }
.tile.wide { grid-column: span 2; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.course { display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; }
.lesson .ln { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-family: var(--f-mono); font-size: 12px; flex: none; }
.lesson.done .ln { background: var(--ok); color: #fff; }

/* ---------- steps & timeline */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.step .sdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text-3); border: 1px solid var(--line-2); }
.step[data-s="approved"] .sdot { background: var(--ok); color: #fff; border-color: transparent; }
.step[data-s="pending"] .sdot { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: 0 0 0 5px var(--lilac); }
.step[data-s="clarification"] .sdot { background: #e2a400; color: #fff; border-color: transparent; }
.step[data-s="rejected"] .sdot { background: var(--bad); color: #fff; border-color: transparent; }
.step strong { display: block; font-size: 14.5px; font-weight: 600; } .step span { display: block; font-size: 13px; color: var(--text-2); }
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 56px 14px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.tl-item .t { font-family: var(--f-mono); font-weight: 500; font-size: 14px; }
.tl-item .d { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--text-3); }
.tl-item .d.work { background: #2fc489; } .tl-item .d.break { background: #f2b33d; } .tl-item .d.out { background: #a48cff; } .tl-item .d.field { background: #3fa6f5; } .tl-item .d.end { background: var(--text); }
.tl-item.superseded { opacity: .55; } .tl-item.superseded .t { text-decoration: line-through; }

/* ---------- roster & attendance calendars */
.weeknav { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.weeknav strong { font-weight: 600; letter-spacing: -.01em; }
.daystrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 8px 2px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 80px; position: relative; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.day .dw { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.day .dn { font-size: 19px; font-weight: 500; font-family: var(--f-mono); letter-spacing: -.04em; }
.day .dc { font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.day[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; transform: translateY(-3px); box-shadow: 0 14px 26px -12px var(--brand-glow); }
.day[aria-pressed="true"] .dw { color: rgb(255 255 255 / .6); }
.day.is-today:not([aria-pressed="true"]) .dn { color: var(--accent-ink); }
.day.is-off { background: transparent; border-style: dashed; }
.code { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; font-family: var(--f-mono); }
.code-day { background: #ffe6da; color: #a43a10; } .code-early { background: #d8f5e7; color: #0b7550; }
.code-late { background: #e0e9ff; color: #2c4fb8; } .code-night { background: #1c1f2c; color: #d3d9ff; }
.code-off { background: var(--surface-3); color: var(--text-3); } .code-leave { background: #ece4ff; color: #5b3fd0; outline: 1px dashed #8f74ee; }
.code-draft { outline: 1px dashed var(--line-2); outline-offset: 1px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.month .mh { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-align: center; padding: 4px 0; letter-spacing: .06em; font-family: var(--f-mono); text-transform: uppercase; }
.mday { min-height: 70px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 6px 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; font-family: var(--f-mono); letter-spacing: -.03em; transition: transform .3s var(--spring); min-width: 0; }
.mday:hover { transform: translateY(-2px); }
.mday.blank { visibility: hidden; } .mday.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .mday.mday[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.mday .arr { font-size: 10.5px; font-weight: 600; color: var(--ok); }
.mday[aria-pressed="true"] .arr { color: #9ff0cc; }
.mday.h-early { background: linear-gradient(180deg, var(--surface), #e3f7ee); } .mday.h-on_time { background: linear-gradient(180deg, var(--surface), #eef8f3); }
.mday.h-after_start { background: linear-gradient(180deg, var(--surface), #fff4e0); } .mday.h-missing { background: linear-gradient(180deg, var(--surface), #ffe9ee); }
.mday.h-leave { background: linear-gradient(180deg, var(--surface), #f1ebff); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rgrid-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.rgrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 780px; font-size: 13px; }
.rgrid th, .rgrid td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rgrid thead th { font-size: 11.5px; color: var(--text-3); font-weight: 600; position: sticky; top: 0; background: var(--glass-strong); font-family: var(--f-mono); }
.rgrid th.who { position: sticky; left: 0; background: var(--glass-strong); z-index: 1; min-width: 160px; }
.rgrid tr:last-child td, .rgrid tr:last-child th { border-bottom: 0; }
.cell { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 7px; min-height: 56px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-size: 12px; color: var(--text-2); text-align: left; transition: transform .25s var(--spring), box-shadow .2s; }
.cell:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cell.draft { border: 1px dashed var(--line-2); background: transparent; }
.cell .tm { font-family: var(--f-mono); }
.cov { font-size: 11.5px; font-weight: 600; } .cov.low { color: var(--bad); }
.att-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.att-table th { text-align: left; font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 500; padding: 0 8px 8px; }
.att-table td { padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.att-table td.n { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
.att-table tr.clickable { cursor: pointer; transition: background .2s; } .att-table tr.clickable:hover { background: var(--glass-strong); }
.att-table .in-t { font-family: var(--f-mono); font-weight: 600; } .att-table .out-t { font-family: var(--f-mono); color: var(--text-2); }

/* ---------- progress */
.ring-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ring { width: 136px; height: 136px; flex: none; }
.ring .track { stroke: var(--surface-3); } .ring .approved { stroke: url(#irid-stroke); stroke: var(--text); transition: stroke-dasharray 1s var(--ease); }
.ring .pending { stroke: var(--sim); opacity: .45; }
.ring text { fill: var(--text); font-family: var(--f-mono); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 220px; }
.stat { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 24px; font-family: var(--f-mono); font-weight: 400; letter-spacing: -.05em; }
.stat span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.milestones { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--f-mono); }
.bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--text); border-radius: 6px; transition: width 1s var(--ease); }
.bar i.p { background: repeating-linear-gradient(135deg, var(--sim) 0 3px, transparent 3px 6px); opacity: .6; }
.bar i.irid { background: var(--irid); }

/* ---------- sheets & dialogs */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(20 22 34 / .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: min(92vh, 100% - 24px); display: flex; flex-direction: column; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); color: var(--text); border-radius: 32px 32px 0 0; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-edge);
  transform: translateY(104%); transition: transform .5s var(--spring); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.on { transform: none; }
.sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px 22px; flex: none; }
.sheet-head h2 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; flex: 1; }
.sheet-body { overflow-y: auto; padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 22px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, calc(100vw - 48px)); max-height: min(86vh, 880px); border-radius: 32px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .5s var(--spring), opacity .25s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
}
.confirm-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #c9f7e4 60%, #8de0bc); color: var(--ok); margin: 6px auto 0; animation: pop .6s var(--spring); box-shadow: 0 18px 40px -16px #2fc489; }
.confirm-badge .ico { width: 36px; height: 36px; stroke-width: 2.4; }
.confirm-badge .ico path { stroke-dasharray: 30; animation: draw .6s var(--ease); }
.confirm-badge.warn { background: radial-gradient(circle at 35% 30%, #fff, #fff1d6 60%, #ffd78a); color: var(--warn); box-shadow: 0 18px 40px -16px #f2b33d; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 30; } }
.geo-result { padding: 14px; border-radius: 20px; border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; background: var(--surface); }
.geo-result.within { background: var(--ok-soft); border-color: transparent; } .geo-result.outside { background: var(--bad-soft); border-color: transparent; }
.geo-result.uncertain { background: var(--warn-soft); border-color: transparent; }
.geo-result strong { display: block; } .geo-result .pill { background: var(--surface); }
.geo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.preview { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.palette-res { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow-y: auto; }
.palette-res .li { margin: 0; width: 100%; }

.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--brand); color: var(--on-brand); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .5s var(--spring); }
.toast.bad { background: var(--bad); color: #fff; border-radius: 22px; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }

.celebrate { position: relative; overflow: hidden; text-align: center; padding: 8px 0; }
.celebrate .burst { position: absolute; inset: 0; pointer-events: none; }
.celebrate .burst i { position: absolute; left: 50%; top: 40%; width: 7px; height: 13px; border-radius: 3px; opacity: 0; animation: confetti 1.5s var(--ease) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)); } }
.medal { width: 112px; height: 112px; margin: 8px auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--irid); color: #1b1630; box-shadow: 0 0 0 10px rgb(255 255 255 / .6), 0 24px 60px -18px #9b7bff; animation: pop .7s var(--spring); }
.medal .ico { width: 46px; height: 46px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table.t { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 560px; }
table.t th, table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { font-size: 11px; color: var(--text-3); font-weight: 500; background: var(--surface-2); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
table.t td.n, table.t th.n { text-align: right; font-family: var(--f-mono); }
table.t tr:last-child td { border-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { position: relative; overflow: hidden; padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); box-shadow: var(--shadow); text-align: left; color: inherit; transition: transform .35s var(--spring); }
.kpi b { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 34px; letter-spacing: -.06em; }
.kpi span { font-size: 13px; color: var(--text-2); font-weight: 500; }
button.kpi:hover { transform: translateY(-3px); }
.test-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: flex-start; }
.test-row .ico { margin-top: 2px; }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; font-family: var(--f-mono); }
details[open] summary::before { content: "– "; }

/* ---------- sign-in: living Colombo skyline */
.signin { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #0b1030; --si-ink: #0c0e14; --si-ink-2: rgb(12 14 20 / .7); --si-glow: 0 1px 30px rgb(255 255 255 / .55); }
.signin[data-phase="night"], .signin[data-phase="dusk"], .signin[data-phase="dawn"] { --si-ink: #ffffff; --si-ink-2: rgb(255 255 255 / .78); --si-glow: 0 2px 24px rgb(10 12 40 / .45); }
.si-scene { position: fixed; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.si-scene .sun, .si-scene .moon { transform: translate(var(--sx), var(--sy)); animation: sunrise 3.2s cubic-bezier(.16, .84, .3, 1); }
@keyframes sunrise { from { transform: translate(var(--sx), calc(var(--sy) + 300px)); } }
.si-scene .sun-core { animation: shimmer 4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .1; } }
.si-scene .cloud { transform: translate(-520px, var(--y)); animation: cloudDrift linear infinite; }
.si-scene .c1 { animation-duration: 140s; animation-delay: -40s; } .si-scene .c2 { animation-duration: 180s; animation-delay: -120s; }
.si-scene .c3 { animation-duration: 220s; animation-delay: -70s; } .si-scene .c4 { animation-duration: 160s; animation-delay: -10s; }
@keyframes cloudDrift { to { transform: translate(1560px, var(--y)); } }
.si-scene .birds { transform: translate(-80px, 260px); animation: birds 46s linear infinite; animation-delay: -12s; }
@keyframes birds { 50% { transform: translate(760px, 220px); } to { transform: translate(1540px, 250px); } }
.si-scene .star { animation: twinkle 3.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
.si-scene .ripples line { animation: ripple 5s ease-in-out infinite; }
@keyframes ripple { 50% { transform: translateX(26px); stroke-opacity: .05; } }
.si-scene .glint { animation: shimmer 5s ease-in-out infinite; }
.si-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.si-brand { color: var(--si-ink); font-weight: 600; letter-spacing: -.02em; font-size: 16px; text-shadow: 0 1px 12px rgb(0 0 0 / .15); }
.si-sky { background: rgb(255 255 255 / .22); border-color: rgb(255 255 255 / .35); backdrop-filter: blur(14px); }
.si-sky button { color: var(--si-ink); min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.si-sky button[aria-pressed="true"] { background: #fff; color: #0c0e14; }
/* The card sits in a dock below the top bar, so it can never collide with it at any window height. */
.si-dock { position: relative; z-index: 3; margin-top: calc(76px + env(safe-area-inset-top, 0px)); min-height: calc(100% - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin-left: max(12px, env(safe-area-inset-left, 0px)); margin-right: max(12px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.si-card { position: relative; pointer-events: auto; display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 20px; border-radius: 32px;
  background: rgb(255 255 255 / .8); backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 40px 100px -30px rgb(10 14 40 / .55);
  color: #0c0e14; transition: transform .5s var(--ease), opacity .4s; }
.si-card.intro { animation: cardIn .9s var(--spring); }
@keyframes cardIn { from { transform: translateY(40px) scale(.97); } }
.si-open, .si-hero, .si-signin-title { display: none; }
/* Phones and narrow windows: show the whole skyline first; the card opens into the form on tap. */
@media (max-width: 959.98px) {
  .si-card.compact form, .si-card.compact .si-demo, .si-card.compact .si-note { display: none; }
  .si-card.compact .si-open { display: inline-flex; }
}
.si-card h1 { font-size: clamp(30px, 8vw, 40px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; }
.si-card h1 .serif { font-weight: 400; }
.si-card .eyebrow { color: #6a7086; }
.si-card .input { background: rgb(255 255 255 / .92); }
.si-pw { position: relative; } .si-pw .input { padding-right: 76px; }
.si-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: #eceef3; color: #0c0e14; border-radius: 999px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.si-card .linkbtn { color: #0c0e14; }
.si-note { font-size: 13px; color: #4f5566; background: #f3f4f8; border-radius: 16px; padding: 10px 12px; }
.si-demo { border-top: 1px dashed rgb(14 16 24 / .14); padding-top: 12px; }
.si-demo summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #4f5566; }
.si-accounts { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 240px; overflow-y: auto; }
.si-acc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 1px solid transparent; background: rgb(255 255 255 / .6); text-align: left; color: #0c0e14; min-width: 0; transition: background .2s, transform .25s var(--spring); }
.si-acc:hover { background: #fff; transform: translateX(2px); }
.si-acc .grow strong { display: block; font-size: 14px; font-weight: 600; } .si-acc .grow span { display: block; font-size: 12px; color: #6a7086; }
.si-acc .mono { color: #8a90a2; flex: none; }
@media (max-width: 480px) { .si-acc .mono { display: none; } }
.si-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #6a7086; line-height: 1.45; }
.si-card.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.signin.leaving .si-card { transform: translateY(24px) scale(.96); opacity: 0; }
.signin.leaving .si-hero { opacity: 0; transform: translateY(-12px); }
.signin.leaving .si-scene { transform: scale(1.08); filter: blur(4px); }
/* Desktop: greeting over the sky on the left, a slim form card docked on the right. */
@media (min-width: 960px) {
  .si-top { padding-left: max(40px, 4vw); padding-right: max(40px, 4vw); padding-top: 28px; }
  .si-dock { margin-top: 96px; min-height: calc(100% - 96px); padding-bottom: 28px; margin-left: auto; margin-right: max(40px, 4vw); width: min(420px, 42vw); justify-content: center; }
  .si-card { padding: 30px 28px 22px; }
  .si-greet, .si-card-eyebrow { display: none; }
  .si-signin-title { display: block; font-size: 30px; }
  .si-hero { display: block; position: absolute; z-index: 2; left: max(40px, 4vw); top: 128px; max-width: min(560px, calc(100vw - min(420px, 42vw) - 3 * max(40px, 4vw)));
    color: var(--si-ink); text-shadow: var(--si-glow); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); animation: heroIn 1.1s var(--ease); }
  .si-hero-eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--si-ink-2); }
  .si-hero-title { margin-top: 14px; font-size: clamp(42px, 5.2vw, 78px); font-weight: 300; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
  .si-hero-title .serif { font-weight: 400; letter-spacing: -.03em; }
}
@keyframes heroIn { from { transform: translateY(16px); } }
@media (min-width: 960px) and (max-height: 700px) { .si-dock { margin-top: 82px; min-height: calc(100% - 82px); padding-bottom: 16px; } .si-card { gap: 12px; padding-top: 22px; } .si-hero { top: 104px; } .si-hero-title { font-size: 44px; } }
@media (max-width: 959.98px) and (max-height: 760px) { .si-card { gap: 12px; padding-top: 18px; } .si-card h1 { font-size: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .si-scene .cloud, .si-scene .birds, .si-scene .sun, .si-scene .moon, .si-scene .star, .si-scene .ripples line { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .aurora i, .ticker-track, .brand-mark::before, .orb::before, .orb { animation: none !important; }
  .celebrate .burst { display: none; }
}
.si-scene .beacon { animation: beacon 2s steps(2) infinite; } @keyframes beacon { 50% { opacity: .15; } }

/* Quick demo sign-in: one tap per role, always visible at the top of the card. */
.si-quick { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 20px; background: linear-gradient(115deg, rgb(255 216 198 / .55), rgb(220 213 255 / .55), rgb(201 227 255 / .55)); border: 1px solid rgb(255 255 255 / .9); }
.si-quick-label { font-size: 12.5px; font-weight: 600; color: #2a2340; padding: 0 4px; }
.si-quick-label span { font-weight: 500; color: #4f5566; } .si-quick-label b { color: #0c0e14; font-weight: 600; }
.si-quick-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.si-q { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1px solid rgb(14 16 24 / .06); background: rgb(255 255 255 / .85); color: #0c0e14; text-align: left; min-width: 0; transition: transform .25s var(--spring), box-shadow .2s, background .2s; }
.si-q:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgb(20 24 50 / .45); }
.si-q .av { width: 28px; height: 28px; font-size: 10px; }
.si-q > span { min-width: 0; } .si-q strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; } .si-q span span { display: block; font-size: 11.5px; color: #6a7086; }
@media (max-height: 820px) { .si-card .si-fine { display: none; } .si-card { gap: 12px; } }

/* Scrollbars — fully custom in Chromium/Edge (no arrow buttons) and inset so they never cross rounded corners.
   Setting scrollbar-width/color would make Chromium ignore these, so those are kept for Firefox only. */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgb(14 16 24 / .2) transparent; } .side, .signin { scrollbar-color: transparent transparent; } .side:hover, .signin:hover { scrollbar-color: rgb(14 16 24 / .2) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background-color: rgb(14 16 24 / .16); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(14 16 24 / .32); }
:root[data-ak-theme="dark"] ::-webkit-scrollbar-thumb { background-color: rgb(255 255 255 / .18); }
.side::-webkit-scrollbar-track { margin-block: 32px; }
.rgrid-wrap::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { margin-inline: 24px; }
.sheet-body::-webkit-scrollbar-track, .palette-res::-webkit-scrollbar-track, .si-accounts::-webkit-scrollbar-track { margin-block: 10px; }
.side::-webkit-scrollbar-thumb, .signin::-webkit-scrollbar-thumb { background-color: transparent; }
.side:hover::-webkit-scrollbar-thumb, .signin:hover::-webkit-scrollbar-thumb { background-color: rgb(14 16 24 / .18); }
.signin[data-phase="night"]:hover::-webkit-scrollbar-thumb, .signin[data-phase="dusk"]:hover::-webkit-scrollbar-thumb, .signin[data-phase="dawn"]:hover::-webkit-scrollbar-thumb { background-color: rgb(255 255 255 / .3); }
.side { padding-right: 10px; }

/* Time-of-day accent picker */
.tod-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tod-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); transition: transform .3s var(--spring), border-color .2s, box-shadow .2s; min-width: 0; }
.tod-btn:hover { transform: translateY(-2px); }
.tod-btn[aria-pressed="true"] { color: var(--text); border-color: var(--brand-solid); box-shadow: 0 0 0 1px var(--brand-solid), 0 10px 22px -14px var(--brand-glow); }
.tod-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6); }
.tod-sw[data-sw="morning"] { background: linear-gradient(135deg, #1d4ed8, #3b82f6 55%, #38bdf8); }
.tod-sw[data-sw="afternoon"] { background: linear-gradient(135deg, #0e7490, #0ea5a4 45%, #3b82f6); }
.tod-sw[data-sw="evening"] { background: linear-gradient(135deg, #be185d, #e0517a 42%, #7c3aed); }
.tod-sw[data-sw="night"] { background: linear-gradient(135deg, #1e1b4b, #3730a3 55%, #6d28d9); }
.tod-sw.auto { position: relative; } .tod-sw.auto::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; font-family: var(--f-mono); }/* Team roster: who's working, on a 24-hour track */
.tr-axis { display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 14px; margin-bottom: 4px; }
.tr-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3); }
.tr-list { display: flex; flex-direction: column; }
.tr-row { display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tr-row:first-child { border-top: 0; }
.tr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr-who .grow strong { display: block; font-weight: 600; font-size: 14px; }
.tr-who .grow > span { display: block; font-size: 12.5px; color: var(--text-2); }
.tr-track { position: relative; height: 14px; border-radius: 8px; background: linear-gradient(90deg, transparent calc(25% - 1px), var(--line-2) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--line-2) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), var(--line-2) calc(75% - 1px) 75%, transparent 75%), var(--surface-3); }
.tr-bar { position: absolute; top: 0; bottom: 0; border-radius: 8px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }
.tr-bar.k-day { background: linear-gradient(90deg, #ffc2a6, #ff9466); } .tr-bar.k-early { background: linear-gradient(90deg, #a9ecd0, #34c58d); }
.tr-bar.k-late { background: linear-gradient(90deg, #bcd2ff, #5b86f0); } .tr-bar.k-night { background: linear-gradient(90deg, #5d5f9e, #23264d); }
.tr-row.on .tr-bar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ok); }
.tr-now { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 640px) { .tr-axis { grid-template-columns: minmax(0, 1fr); } .tr-axis > span { display: none; } .tr-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ===================================================================== roster sheet codes
 * Colours follow AKARA's "Off Days / Leave Record" sheet, softened slightly to sit with the Pearl palette.
 * Each chip carries its own background and text colour, so it reads the same on light and dark surfaces. */
.code { white-space: nowrap; flex: none; }
.code-M { background: #3f7a2a; color: #ffffff; }
.code-WM { background: #bfe0b0; color: #1f4a12; }
.code-E { background: #ec9a4e; color: #3a1a00; }
.code-G { background: #f0c64a; color: #3d2c00; }
.code-HD { background: #eba3a2; color: #5c1414; }
.code-HDA, .code-EHD { background: #f0731a; color: #ffffff; }
.code-ME { background: #f5ef3a; color: #3b3600; }
.code-OFF { background: #17181c; color: #f2f2f2; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.code-AB { background: #9a1c1c; color: #ffffff; }
.code-NP, .code-HDNP { background: #e11d1d; color: #ffffff; }
.code-SK { background: #4a85e6; color: #ffffff; }
.code-OUT { background: #47bbc6; color: #062f33; }
.code-NA { background: #d6d8d6; color: #3a3c3a; }
.code-none { background: var(--surface-3); color: var(--text-3); }
.code-hol { background: var(--warn-soft); color: var(--warn); }

/* Period calendar */
.month .mh.fri { color: #2f8f3a; } .month .mh.wkend { color: #c43b3b; }
.mday.is-hol { box-shadow: inset 0 -3px 0 #ffb547; }
.mday[aria-pressed="true"] .code { box-shadow: 0 0 0 2px rgb(255 255 255 / .55); }
.wa.pre { background: transparent; }
.wa .in .code { font-size: 10px; height: 20px; min-width: 24px; padding: 0 5px; }

/* Legend and rules */
.legend-box { border-top: 1px solid var(--line); padding-top: 10px; }
.legend-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 14px; margin-top: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legend-row .grow { min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.rule { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; min-width: 0; }
.rule .code { margin-top: 1px; }

/* Full roster sheet: departments down the side, the period's days across. Scrolls inside its own box. */
.sheet-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.sheet-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet-grid th, .sheet-grid td { padding: 3px 2px; text-align: center; border-bottom: 1px solid var(--line); }
.sheet-grid thead th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--f-mono); font-size: 10px; color: var(--text-3); font-weight: 600; z-index: 1; }
.sheet-grid thead th span, .sheet-grid thead th b { display: block; }
.sheet-grid thead th b { font-size: 12px; color: var(--text); }
.sheet-grid thead th.fri span { color: #2f8f3a; } .sheet-grid thead th.wkend span { color: #c43b3b; }
.sheet-grid thead th.hol b { color: var(--warn); text-decoration: underline; text-decoration-color: #ffb547; text-decoration-thickness: 2px; }
.sheet-grid th.who { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 4px 10px; min-width: 128px; max-width: 160px; font-family: inherit; border-right: 1px solid var(--line); }
.sheet-grid thead th.who { background: var(--surface-2); z-index: 3; font-size: 11px; }
.sheet-grid th.who .nm { display: block; font-weight: 600; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-grid th.who .tg { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--text-3); }
.sheet-grid tr.dept th.who { background: var(--surface-2); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 700; white-space: nowrap; max-width: none; }
.sheet-grid tr.dept td { background: var(--surface-2); }
.sheet-grid .code { min-width: 30px; height: 20px; padding: 0 4px; font-size: 10px; border-radius: 6px; }
.sheet-grid td.is-today, .sheet-grid th.is-today { background: var(--accent-soft); }
.sheet-grid tr.mine th.who { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.sheet-grid tr.mine td { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.sheet-grid .cnt { font-family: var(--f-mono); font-size: 11px; padding: 0 8px; color: var(--text-2); }

/* Demo stand-in for the AKARA dashboard on request pages */
.dash-sim { border: 1px dashed var(--sim); background: repeating-linear-gradient(135deg, var(--sim-soft) 0 6px, transparent 6px 12px), var(--surface); }

/* Demo controls: people grouped by department */
.persona-group { border-top: 1px solid var(--line); padding: 6px 0; }
.persona-group summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 6px 2px; }
.si-dept { margin: 8px 6px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6070; }

/* Long status pills wrap instead of pushing a row wider than the screen */
.pill { max-width: 100%; }
.li .pill, .card-head .pill { white-space: normal; text-align: left; line-height: 1.25; padding-block: 3px; }
.li > .grow, .tr-who > .grow { min-width: 9ch; }

/* Live version: brief screen while the saved sign-in is checked */
.boot-wait { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--text-2); font-size: 15px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.boot-wait .brand-mark { width: 44px; height: 44px; animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(.92); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .boot-wait .brand-mark { animation: none; } }
