/* ==========================================================================
   Ynottry — design system
   Brand: "y not try · unlimited possibilities"
   Crimson ribbon #E8174B · green #00A651 · blue #1B75BC · orange #F7931E
   Base: warm neutrals; the colour is spent on meaning, not decoration.
   ========================================================================== */
:root {
  color-scheme: light dark;

  /* brand */
  --brand:      #E8174B;
  --brand-dark: #C90D3C;
  --brand-soft: #FDECF1;
  --b-green:  #00A651; --b-blue: #1B75BC; --b-orange: #F7931E;

  /* surfaces */
  --bg:        #F7F7FA;
  --bg-grad:   radial-gradient(1200px 500px at 80% -10%, #FDECF1 0%, transparent 60%),
               radial-gradient(900px 400px at -10% 110%, #EAF6EF 0%, transparent 55%);
  --surface:   #FFFFFF;
  --surface-2: #F7F8FB;
  --sidebar:   #191A20;                 /* the wordmark's charcoal */
  --sidebar-ink: #C9CBD4;
  --sidebar-ink-dim: #71747F;
  --sidebar-active: #24262E;

  /* ink */
  --ink:   #1B1C22;
  --ink-2: #565963;
  --ink-3: #9295A0;
  --line:  #E8E9EF;
  --line-2:#D5D7E0;

  --accent:     var(--brand);
  --accent-ink: #FFFFFF;
  --accent-bg:  var(--brand-soft);

  --ok:  #0E7B3D;  --ok-bg:  #EBF7EF;  --ok-line:  #BFE5CC;
  --warn:#A05A00;  --warn-bg:#FDF3E3;  --warn-line:#F5D9A8;
  --bad: #C21B36;  --bad-bg: #FDEDF0;  --bad-line: #F5C2CC;
  --info:#155E9C;  --info-bg:#EBF3FA;  --info-line:#BFDBF0;

  --r-sm: 7px; --r: 10px; --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(20,21,26,.05), 0 1px 1px rgba(20,21,26,.04);
  --sh-2: 0 2px 6px rgba(20,21,26,.07), 0 1px 2px rgba(20,21,26,.05);
  --sh-3: 0 16px 40px rgba(20,21,26,.16), 0 4px 12px rgba(20,21,26,.08);
  --tap: 42px;
  --side-w: 244px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22,.9,.3,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF3D68; --brand-dark: #E8174B; --brand-soft: #3A1220;
    --bg: #0F1014;
    --bg-grad: radial-gradient(1200px 500px at 80% -10%, #2A1119 0%, transparent 60%),
               radial-gradient(900px 400px at -10% 110%, #10201A 0%, transparent 55%);
    --surface: #17181E; --surface-2: #1D1E26;
    --sidebar: #0B0C10; --sidebar-ink: #A7AAB5; --sidebar-ink-dim: #565963;
    --sidebar-active: #1A1B22;
    --ink: #E9EAEF; --ink-2: #A2A5B0; --ink-3: #6E717C;
    --line: #262830; --line-2: #363843;
    --ok: #52C97E; --ok-bg: #0E2417; --ok-line: #1D4A2E;
    --warn: #F0B34E; --warn-bg: #2A2008; --warn-line: #5B4413;
    --bad: #FF6B85; --bad-bg: #301017; --bad-line: #63202E;
    --info: #6FB3EE; --info-bg: #10202F; --info-line: #1F3D5C;
    --sh-1: 0 1px 2px rgba(0,0,0,.5);
    --sh-2: 0 2px 8px rgba(0,0,0,.55);
    --sh-3: 0 18px 44px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  color: var(--ink); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

h1 { font-size: 21px; line-height: 1.25; margin: 0; font-weight: 680; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 0 0 10px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 11px; margin: 0 0 8px; font-weight: 680; color: var(--ink-3);
     text-transform: uppercase; letter-spacing: .08em; }
p { margin: 6px 0; }
.muted { color: var(--ink-2); font-size: 13px; }
.tiny { font-size: 12px; color: var(--ink-3); }
.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.neg { color: var(--bad); }
.mono { font-family: var(--mono); font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- motion ---------------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(36px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(42px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
#content > * { animation: pageIn .3s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- shell ---------------- */
#shell { display: flex; min-height: 100vh; }

#side {
  width: var(--side-w); flex: 0 0 var(--side-w); background: var(--sidebar);
  color: var(--sidebar-ink); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
  scrollbar-width: thin;
}
#side .brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px 16px; color: #fff; }
#side .brand img, #side .brand .mark { width: 38px; height: 38px; flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
#side .brand .bn { font-weight: 760; font-size: 16.5px; letter-spacing: .04em; line-height: 1.1; }
#side .brand .bt { font-size: 9.5px; letter-spacing: .24em; text-transform: lowercase;
  color: var(--sidebar-ink-dim); margin-top: 2px; white-space: nowrap; }
#side .sec { padding: 16px 16px 5px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
             color: var(--sidebar-ink-dim); font-weight: 720; }
#side a.nav { display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: var(--sidebar-ink);
  font-size: 13.5px; border-left: 3px solid transparent; text-decoration: none;
  transition: background .14s var(--ease), color .14s var(--ease); }
#side a.nav:hover { background: var(--sidebar-active); color: #fff; text-decoration: none; }
#side a.nav[aria-current="page"] { background: linear-gradient(90deg, rgba(232,23,75,.16), transparent 70%);
  color: #fff; border-left-color: var(--brand); font-weight: 620; }
#side a.nav .ico { width: 17px; text-align: center; opacity: .8; font-size: 14px; }
#side a.nav .badge { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; min-width: 18px; text-align: center; }
#side .foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07);
              font-size: 12px; color: var(--sidebar-ink-dim); }

#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#top { position: sticky; top: 0; z-index: 30;
       background: color-mix(in srgb, var(--surface) 86%, transparent);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
       padding: 10px 20px; min-height: 56px; }
#top .burger { display: none; }
#top .spacer { flex: 1; }
#content { padding: 22px; max-width: 1400px; width: 100%; }

/* ---------------- parent portal ----------------
   Its own front door: no sidebar, no month picker, a narrower page than the
   staff console because there is one thing to read. */
#shell.parent #content { max-width: 900px; margin: 0 auto; }
.p-brand { display: flex; align-items: center; gap: 10px; }
.p-brand img { width: 32px; height: 32px; }
.p-brand .bn { font-weight: 720; font-size: 15px; line-height: 1.15; }
.p-brand .bt { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }

/* ---------------- page header ---------------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head .sub { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ---------------- cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
        box-shadow: var(--sh-1); margin: 14px 0; overflow: hidden;
        transition: box-shadow .18s var(--ease), border-color .18s var(--ease); }
.card > .card-head { padding: 13px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; background: var(--surface); }
.card > .card-head h2 { margin: 0; }
.card > .card-body { padding: 16px; }
.card.pad { padding: 16px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: 14px 16px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
        transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease); }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--b-orange)); opacity: 0;
  transition: opacity .16s var(--ease); }
.stat .k { font-size: 11.5px; color: var(--ink-2); font-weight: 640; text-transform: uppercase;
           letter-spacing: .06em; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px;
           font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat.tap { cursor: pointer; }
.stat.tap:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.stat.tap:hover::before { opacity: 1; }

.cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------------- tables ---------------- */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1;
  padding: 9px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  border-bottom: 1px solid var(--line); }
thead th.sortable { cursor: pointer; user-select: none; transition: color .12s; }
thead th.sortable:hover { color: var(--brand); }
thead th .arrow { opacity: .6; font-size: 9px; margin-left: 3px; color: var(--brand); }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.tap { cursor: pointer; }
tbody tr.tap:hover { background: var(--surface-2); }
tbody tr.sel { background: var(--accent-bg); }
tbody tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: none;
                    background: var(--surface-2); }
td.name { font-weight: 560; }

.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--accent-bg); border-bottom: 1px solid var(--line); font-size: 13px;
  flex-wrap: wrap; animation: pageIn .2s var(--ease); }

/* ---------------- controls ---------------- */
button, .btn {
  font: inherit; font-size: 13.5px; font-weight: 570; min-height: 36px; padding: 7px 14px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  transition: background .14s var(--ease), border-color .14s var(--ease),
              transform .12s var(--ease), box-shadow .14s var(--ease);
}
button:hover, .btn:hover { background: var(--surface-2); border-color: var(--line-2);
  text-decoration: none; transform: translateY(-1px); box-shadow: var(--sh-1); }
button:active { transform: translateY(0); box-shadow: none; }
button.primary, .btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark); color: var(--accent-ink); font-weight: 640;
  box-shadow: 0 1px 2px rgba(201,13,60,.35);
}
button.primary:hover, .btn.primary:hover {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  filter: saturate(1.08) brightness(1.05); box-shadow: 0 4px 12px rgba(201,13,60,.32);
}
button.ghost { border-color: transparent; background: transparent; box-shadow: none; }
button.ghost:hover { background: var(--surface-2); box-shadow: none; }
button.danger { color: var(--bad); border-color: var(--bad-line); }
button.danger:hover { background: var(--bad-bg); }
button.sm, .btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; border-radius: var(--r-sm); }
button.wide, .btn.wide { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

input, select, textarea {
  font: inherit; font-size: 15px; width: 100%; min-height: 38px; padding: 8px 11px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
@media (min-width: 900px) { input, select, textarea { font-size: 13.5px; min-height: 36px; } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; min-height: auto; accent-color: var(--brand); }
label { display: block; font-size: 12px; color: var(--ink-2); margin: 12px 0 5px; font-weight: 620; }
label.inline { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13.5px; color: var(--ink); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .f3 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 2px 14px 14px; margin: 16px 0; }
legend { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
         padding: 0 6px; font-weight: 700; }

.search { position: relative; }
.search input { padding-left: 32px; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 15px; pointer-events: none; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.filters select, .filters .search { width: auto; min-width: 150px; }
.filters .search input { min-width: 220px; }

.seg-tabs { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 3px; overflow-x: auto; max-width: 100%; }
.seg-tabs button { min-height: 30px; border: none; background: transparent; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2); padding: 4px 13px; box-shadow: none; transform: none; }
.seg-tabs button:hover { color: var(--ink); background: var(--surface); transform: none; }
.seg-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--brand);
  box-shadow: var(--sh-1); font-weight: 640; }

/* ---------------- chips & banners ---------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 620;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); white-space: nowrap; }
.chip.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.chip.bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-line); }
.chip.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.banner { border-radius: var(--r); padding: 11px 14px; margin: 12px 0; font-size: 13.5px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
  animation: pageIn .25s var(--ease); }
.banner.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.banner.bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-line); }
.banner.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.banner .b-body { flex: 1; }
.banner strong { font-weight: 700; }
.banner button { margin-left: auto; }

/* ---------------- attendance marking ---------------- */
.mark-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); }
.mark-row:last-child { border-bottom: none; }
.mark-row .who { flex: 1; min-width: 0; }
.mark-row .who .nm { font-size: 14px; font-weight: 560; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
       flex: 0 0 auto; }
.seg button { min-height: 34px; min-width: 34px; border: none; border-radius: 0; padding: 0 9px;
  font-size: 12.5px; font-weight: 700; background: var(--surface); color: var(--ink-3);
  box-shadow: none; transform: none; }
.seg button:hover { transform: none; box-shadow: none; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--b-green); color: #fff; }
.seg button[aria-pressed="true"][data-s="Absent"]  { background: var(--brand-dark); }
.seg button[aria-pressed="true"][data-s="Late"]    { background: var(--b-orange); color: #241300; }
.seg button[aria-pressed="true"][data-s="Excused"] { background: var(--ink-3); }

/* ---------------- drawer & modal ---------------- */
dialog { border: none; padding: 0; background: transparent; max-width: none; max-height: none;
         width: 100%; height: 100%; margin: 0; }
dialog::backdrop { background: rgba(15,16,20,.52); backdrop-filter: blur(3px);
  animation: fadeIn .18s var(--ease); }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--surface);
  box-shadow: var(--sh-3); display: flex; flex-direction: column;
  animation: slideIn .24s var(--ease); }
.drawer .d-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; gap: 10px; }
.drawer .d-head::before { content: ""; width: 4px; height: 20px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--brand), var(--b-orange)); }
.drawer .d-head h2 { margin: 0; font-size: 16px; }
.drawer .d-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer .d-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px;
  justify-content: flex-end; flex-wrap: wrap; background: var(--surface-2); }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; width: 100%; height: 90vh; border-radius: var(--r-lg) var(--r-lg) 0 0;
            animation: sheetUp .24s var(--ease); }
}

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--sidebar); color: #F5F6F8; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 200; box-shadow: var(--sh-3); max-width: 92vw; text-align: center;
  border-left: 3px solid var(--brand); animation: riseIn .22s var(--ease); }

.msgbox { white-space: pre-wrap; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; margin: 8px 0; line-height: 1.55; }

.empty { text-align: center; color: var(--ink-3); padding: 46px 16px; }
.empty .big { font-size: 30px; opacity: .35; margin-bottom: 8px; }

/* skeleton shimmer while a view loads */
.spin { padding: 26px 0; color: transparent; user-select: none; min-height: 180px; position: relative; }
.spin::before, .spin::after {
  content: ""; display: block; border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.1s linear infinite;
}
.spin::before { height: 26px; width: 34%; margin-bottom: 14px; }
.spin::after { height: 120px; width: 100%; }

.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; min-width: 54px; }
.bar > i { display: block; height: 100%; background: var(--b-green); border-radius: 999px;
  transition: width .3s var(--ease); }
.bar.warn > i { background: var(--b-orange); } .bar.bad > i { background: var(--brand); }

.swatch { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }

.offline-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--warn-bg);
  color: var(--warn); font-size: 12.5px; text-align: center; padding: 7px; z-index: 60;
  border-top: 1px solid var(--warn-line); cursor: pointer; }

/* price grid */
.px input { width: 82px; min-height: 30px; padding: 3px 7px; font-size: 13px;
  text-align: right; font-variant-numeric: tabular-nums; }
.px input::-webkit-outer-spin-button, .px input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }
.px input[type=number] { -moz-appearance: textfield; }
.px .taking { font-size: 10.5px; color: var(--ink-3); text-align: right; margin-top: 2px; }
.px input.changed { border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent-bg); }
.px input.missing { border-color: var(--bad); }
td.px { padding: 6px 8px; }

/* ---------------- timetable ---------------- */
.tt { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tt .day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; min-height: 90px; }
.tt .day h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.tt .slot { border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: var(--r-sm);
  padding: 6px 8px; margin-bottom: 6px; font-size: 12.5px;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.tt .slot:hover { transform: translateX(2px); box-shadow: var(--sh-1); }
.tt .slot .t { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 11.5px; }

/* ---------------- login ---------------- */
.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 22px; animation: riseIn .4s var(--ease); }
.login-hero img { width: 92px; height: 92px; filter: drop-shadow(0 8px 24px rgba(232,23,75,.22)); }
.login-hero .bn { font-size: 26px; font-weight: 780; letter-spacing: .06em; margin-top: 12px;
  color: var(--ink); }
.login-hero .bt { font-size: 11px; letter-spacing: .34em; color: var(--ink-3); margin-top: 3px; }
.login-wrap { max-width: 400px; margin: 7vh auto; padding: 0 16px; }
.login-wrap .card { animation: riseIn .45s var(--ease) both; }
.login-wrap .card + .card { animation-delay: .07s; }

/* ---------------- mobile ---------------- */
@media (max-width: 899px) {
  #side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
          transition: transform .22s var(--ease); box-shadow: var(--sh-3); }
  body.nav-open #side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,16,20,.45);
    z-index: 35; animation: fadeIn .2s var(--ease); }
  #top { padding: 10px 14px; }
  #top .burger { display: inline-flex; }
  #content { padding: 14px; padding-bottom: 80px; }
  .hide-sm { display: none !important; }
  .page-actions { width: 100%; margin-left: 0; }
  h1 { font-size: 19px; }
  .stat .v { font-size: 21px; }
  #bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
  #bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 4px; font-size: 10.5px; color: var(--ink-3); text-decoration: none;
    min-height: var(--tap); transition: color .14s var(--ease); }
  #bottom a .ico { font-size: 17px; }
  #bottom a[aria-current="page"] { color: var(--brand); font-weight: 660; }
}
@media (min-width: 900px) { #bottom { display: none; } }

@media print {
  #side, #top, #bottom, .page-actions, .offline-bar { display: none !important; }
  #content { padding: 0; } .card { box-shadow: none; border-color: #ddd; }
  body { background: #fff; }
}
