/* ระบบบริหารโรงเรียน — chalkboard green, chalk yellow, Mitr; same family as คาบเรียน */
@import url('/assets/css/fonts.css');
:root {
  color-scheme: light;
  --board: #173a2d;
  --board-2: #21503f;
  --board-3: #2c6550;
  --board-deep: #10291f;
  --board-ink: #e8f0eb;
  --board-ink-2: #a9c2b5;
  --wood: #5b3a22;
  --wood-2: #6b4528;
  --chalk: #f3c94a;
  --chalk-2: #fbe7a6;
  --paper: #f2f4f0;
  --surface: #ffffff;
  --surface-2: #f7f9f6;
  --text: #1a2721;
  --muted: #4b5b53;
  --faint: #7b8a82;
  --line: #d6ddd7;
  --line-2: #e6ebe7;
  --line-strong: #c3ccc5;
  --ink: #21503f;
  --ink-700: #173a2d;
  --ink-500: #2c6550;
  --ink-100: #dbe8e0;
  --ink-050: #edf3ef;
  --ok: #2b8a57;
  --ok-bg: #e3f3e9;
  --warn: #b7780c;
  --warn-bg: #fdf1d8;
  --warn-line: #f1d9a3;
  --bad: #c3412f;
  --bad-bg: #fbe7e3;
  --sky: #2f6fb0;
  --sky-bg: #e4eef8;
  --violet: #7a55b5;
  --violet-bg: #efe9f8;
  --d-sun: #d4473d; --d-mon: #e9b824; --d-tue: #e2709a; --d-wed: #3f9c62; --d-thu: #e8853a; --d-fri: #3b82c4; --d-sat: #8a62c2;
  --r-sm: 5px;
  --r: 8px;
  --r-lg: 12px;
  --sidebar: 252px;
  --top: 60px;
  --font: 'Mitr', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif;
  --doc-font: 'Sarabun', 'TH Sarabun New', serif;
  --shadow-pop: 0 10px 30px -10px rgba(23, 58, 45, .35), 0 2px 6px rgba(23, 58, 45, .12);
  --focus: 0 0 0 3px rgba(44, 101, 80, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
b, strong, th { font-weight: 500; }
a { color: var(--board-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 500; letter-spacing: 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16.5px; }
p { margin: 0 0 .7em; }
small, .small { font-size: 13.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid #2a6fd6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--board); color: var(--board-ink);
  background-image: radial-gradient(90% 40% at 100% 0%, #24543f 0%, transparent 60%), radial-gradient(80% 40% at 0% 100%, #1d4434 0%, transparent 70%);
  display: flex; flex-direction: column;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: inherit; }
.brand img, .brand .logo-ph, .logo-ph { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; flex: none; display: grid; place-items: center; color: var(--board); font-weight: 500; font-size: 18px; }
.brand .logo-ph { background: var(--chalk); color: var(--board); }
.brand b { display: block; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35; }
.brand span { display: block; font-size: 12.5px; color: var(--board-ink-2); line-height: 1.4; margin-top: 2px; }
.nav { padding: 8px 10px 28px; }
.nav-group { margin-top: 14px; }
.nav-group > .nav-label { font-size: 12.5px; color: #86a596; padding: 0 12px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--r); color: var(--board-ink-2); font-size: 14.5px; text-decoration: none; position: relative; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 400; }
.nav a.active::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--chalk); }
.nav a.active svg { color: var(--chalk); }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--chalk); color: var(--board); font-size: 12px; font-weight: 500; display: grid; place-items: center; }
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar .menu-btn { display: none; }
.topbar .title-sm { display: none; }
.topbar .today { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.day-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--day, var(--faint)); flex: none; }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid transparent; background: none; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--ink-050); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 500; display: grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.user-chip .who { line-height: 1.25; font-size: 13.5px; text-align: left; }
.user-chip .who small { display: block; color: var(--muted); font-size: 12px; }
.view { padding: 26px 28px 60px; max-width: 1240px; width: 100%; }
.bottom-nav { display: none; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 28px; font-size: 14.5px; background: var(--sky-bg); color: #1d4f80; border-bottom: 1px solid #c9dcef; }
.banner.warn { background: var(--warn-bg); color: #7a5208; border-color: var(--warn-line); }
.banner.bad { background: var(--bad-bg); color: #8a2a1d; border-color: #f1c6be; }
.banner svg { width: 18px; height: 18px; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-100); color: var(--board); display: inline-grid; place-items: center; font-weight: 500; font-size: 13.5px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .titles { flex: 1; min-width: 220px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; display: inline-flex; align-items: center; gap: 4px; }
.crumb svg { width: 15px; height: 15px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel > .panel-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.panel > .panel-head h2, .panel > .panel-head h3 { flex: 1; }
.panel > .panel-body { padding: 16px 18px; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid > .panel + .panel { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; border: 0; }
.note { padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; }
.note.ok { background: var(--ok-bg); border-color: #bfe2cc; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note.bad { background: var(--bad-bg); border-color: #f1c6be; }

/* ---------- buttons ---------- */
.btn { --bg: var(--surface); --fg: var(--text); --bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: var(--r); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font: 400 14.5px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { --bd: var(--faint); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { --bg: var(--board-2); --fg: #fff; --bd: var(--board-2); }
.btn-primary:hover { --bg: var(--board); --bd: var(--board); }
.btn-chalk { --bg: var(--chalk); --fg: var(--board); --bd: var(--chalk); font-weight: 500; }
.btn-chalk:hover { --bg: #f7d465; --bd: #f7d465; }
.btn-green { --bg: var(--ok); --fg: #fff; --bd: var(--ok); }
.btn-green:hover { --bg: #24774b; --bd: #24774b; }
.btn-danger { --fg: var(--bad); --bd: #ecc1ba; }
.btn-danger:hover { --bg: var(--bad-bg); --bd: var(--bad); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-ghost:hover { --bg: rgba(23,58,45,.06); --bd: transparent; }
.btn-light { --bg: transparent; --fg: var(--board-ink); --bd: rgba(232,240,235,.35); }
.btn-light:hover { --bg: rgba(255,255,255,.06); --bd: rgba(232,240,235,.6); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13.5px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .65; }

/* ---------- badges & stamps ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 400; background: var(--line-2); color: var(--muted); white-space: nowrap; line-height: 1.7; }
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.amber { background: var(--warn-bg); color: var(--warn); }
.badge.red { background: var(--bad-bg); color: var(--bad); }
.badge.blue { background: var(--sky-bg); color: var(--sky); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.gray { background: var(--line-2); color: var(--muted); }
.badge.chalk { background: var(--chalk); color: var(--board); font-weight: 500; }
.stamp { display: inline-block; padding: 0 8px; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 5px; color: var(--bad); font-weight: 500; font-size: 13px; line-height: 1.6; transform: rotate(-3deg); margin: 3px 5px 3px 2px; white-space: nowrap; }
.stamp.ink { color: var(--board-3); }
.stamp.green { color: var(--ok); }
.stamp.lg { font-size: 18px; padding: 2px 14px; }
.receipt { display: inline-block; border: 2px solid #2f5cab; color: #2f5cab; padding: 8px 14px; border-radius: 4px; transform: rotate(-1.5deg); font-size: 13.5px; line-height: 1.75; min-width: 220px; background: rgba(228,238,248,.45); }
.receipt b { display: block; text-align: center; border-bottom: 1px solid currentColor; margin-bottom: 4px; padding-bottom: 2px; }
.receipt .ln { display: flex; gap: 8px; }
.receipt .ln span:first-child { min-width: 52px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 400; color: var(--muted); }
.field > label .req { color: var(--bad); }
.field .help { font-size: 12.5px; color: var(--faint); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 300 15.5px/1.4 var(--font); color: var(--text); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--board-3); box-shadow: var(--focus); }
.input[readonly] { background: var(--surface-2); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--board-2); }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.search .input { padding-left: 36px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 150px; }
.toolbar .search { flex: 1; min-width: 200px; }
.toolbar .search .input { width: 100%; }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r); padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 12px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--board-2); }
.switch input:checked::after { transform: translateX(17px); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); border: 0; background: none; font: 400 14.5px var(--font); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active, .tabs button.active { color: var(--board); border-bottom-color: var(--chalk); font-weight: 500; }
.tabs .count { font-size: 12px; background: var(--chalk); color: var(--board); padding: 0 7px; border-radius: 10px; margin-left: 4px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font: 400 14px var(--font); color: var(--muted); cursor: pointer; min-height: 32px; }
.seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcf9; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover td { background: var(--ink-050); }
.tbl .t-main { font-weight: 400; }
.tbl .t-sub { color: var(--faint); font-size: 13px; }
.tbl td.actions { text-align: right; white-space: nowrap; }
.panel .tbl th:first-child, .panel .tbl td:first-child { padding-left: 18px; }
.panel .tbl th:last-child, .panel .tbl td:last-child { padding-right: 18px; }
.panel > .tbl-wrap:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.list > li:last-child { border-bottom: 0; }
.list > li.link { cursor: pointer; }
.list > li.link:hover { background: var(--ink-050); }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 400; }
.list .meta { color: var(--faint); font-size: 13px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 6px; }
.empty .btn { margin-top: 10px; }
.loader { padding: 50px; display: grid; place-items: center; color: var(--muted); }
.spin { width: 26px; height: 26px; border: 3px solid var(--ink-100); border-top-color: var(--board-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the chalkboard (dashboard today) ---------- */
.today-sheet {
  position: relative; color: var(--board-ink); padding: 20px 24px 18px; margin-bottom: 18px;
  background-color: var(--board-deep);
  background-image: radial-gradient(70% 90% at 90% 0%, rgba(44,101,80,.55) 0%, transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(33,80,63,.5) 0%, transparent 70%);
  border: 10px solid var(--wood); border-radius: 10px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
}
.today-sheet::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -18px; height: 8px; background: var(--wood-2); border-radius: 0 0 6px 6px; box-shadow: 0 4px 8px rgba(0,0,0,.25); }
.today-sheet .date { font-size: 14px; color: var(--board-ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.today-sheet h1 { font-size: 26px; margin: 2px 0 14px; color: #f6f1e4; }
.today-sheet .figures { display: flex; gap: 30px; flex-wrap: wrap; align-items: baseline; }
.today-sheet .fig b { font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--chalk); }
.today-sheet .fig span { display: block; font-size: 13px; color: var(--board-ink-2); }
.attbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.1); margin-top: 16px; }
.attbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-top: 10px; color: var(--board-ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.c-present { background: #7fd3a0; } .c-late { background: var(--chalk); } .c-absent { background: #f08a7a; } .c-leave { background: #9cc3f0; } .c-sick { background: #c8acef; } .c-none { background: rgba(255,255,255,.2); }
.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); text-decoration: none; border-left: 4px solid var(--board-3); }
.task:hover { border-color: var(--board-3); text-decoration: none; background: var(--surface-2); }
.task b { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; min-width: 32px; color: var(--board-2); }
.task b svg { width: 24px; height: 24px; }
.task.hot { border-left-color: var(--chalk); }
.task.hot b { color: var(--bad); }
.task span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.strip { display: flex; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.strip > div { flex: 1; padding: 12px 16px; border-right: 1px solid var(--line-2); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--board); }
.strip span { color: var(--muted); font-size: 13px; }
.meter { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--board-3); border-radius: 4px; }
.meter.warn i { background: var(--chalk); }
.meter.over i { background: var(--bad); }
.event-date { width: 48px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: none; line-height: 1.2; background: #fff; }
.event-date small { display: block; background: var(--day, var(--board-2)); color: #fff; font-size: 11.5px; padding: 1px 0; }
.event-date b { display: block; font-size: 18px; padding: 2px 0; font-weight: 500; }

/* ---------- attendance ---------- */
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); }
.att-list .no { width: 26px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.att-list .nm { flex: 1; min-width: 0; }
.att-pick { display: flex; gap: 4px; }
.att-pick button { min-width: 46px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font: 400 13.5px var(--font); cursor: pointer; color: var(--muted); }
.att-pick button.on[data-s=present] { background: var(--ok); border-color: var(--ok); color: #fff; }
.att-pick button.on[data-s=late] { background: var(--chalk); border-color: var(--chalk); color: var(--board); }
.att-pick button.on[data-s=absent] { background: var(--bad); border-color: var(--bad); color: #fff; }
.att-pick button.on[data-s=leave] { background: var(--sky); border-color: var(--sky); color: #fff; }
.att-pick button.on[data-s=sick] { background: var(--violet); border-color: var(--violet); color: #fff; }
.sticky-save { position: sticky; bottom: 0; background: rgba(242,244,240,.94); backdrop-filter: blur(6px); padding: 12px 0; display: flex; gap: 10px; align-items: center; z-index: 5; }
.att-dot { display: inline-block; width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; line-height: 22px; text-align: center; color: #fff; }
.att-dot.present { background: var(--ok); } .att-dot.late { background: var(--chalk); color: var(--board); } .att-dot.absent { background: var(--bad); } .att-dot.leave { background: var(--sky); } .att-dot.sick { background: var(--violet); } .att-dot.none { background: var(--line-2); color: var(--faint); }

/* ---------- scores ---------- */
.score-tbl input { width: 70px; min-height: 36px; padding: 4px 8px; text-align: right; border: 1px solid var(--line); border-radius: 7px; font: 300 15px var(--font); font-variant-numeric: tabular-nums; }
.score-tbl input:focus { outline: none; border-color: var(--board-3); box-shadow: var(--focus); }
.score-tbl input.bad { border-color: var(--bad); background: var(--bad-bg); }
.grade { display: inline-block; min-width: 34px; text-align: center; font-weight: 500; border-radius: 6px; padding: 1px 6px; }
.grade.g4, .grade.g35 { background: var(--ok-bg); color: var(--ok); }
.grade.g3, .grade.g25, .grade.g2 { background: var(--ink-050); color: var(--board-2); }
.grade.g15, .grade.g1 { background: var(--warn-bg); color: var(--warn); }
.grade.g0 { background: var(--bad-bg); color: var(--bad); }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--top) - 52px); min-height: 420px; overflow: hidden; }
.chat-rooms { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-room { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.msg { max-width: 76%; display: flex; flex-direction: column; align-self: flex-start; align-items: flex-start; }
.msg .bubble { padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--board-2); color: #fff; border-color: var(--board-2); }
.msg .who { font-size: 12px; color: var(--muted); margin: 6px 4px 2px; }
.msg .at { font-size: 11px; color: var(--faint); margin: 1px 4px; }
.msg img { max-width: 220px; border-radius: 10px; display: block; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16, 32, 25, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 14px; overflow-y: auto; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { background: #fff; border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 8vh - 14px); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); animation: pop .16s ease-out; }
.modal.lg { width: min(820px, 100%); }
.modal.sm { width: min(420px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px 10px; }
.modal-head h2 { flex: 1; font-size: 18px; }
.modal-body { padding: 4px 20px 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 440px); }
.toast { background: var(--board); color: var(--board-ink); padding: 10px 16px; border-radius: var(--r); font-size: 14.5px; box-shadow: var(--shadow-pop); animation: pop .16s ease-out; }
.toast.ok { border-left: 4px solid var(--chalk); }
.toast.err { background: #7a2418; color: #fff; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); min-width: 300px; z-index: 50; overflow: hidden; animation: pop .12s ease-out; }
.dropdown .list > li { padding: 10px 14px; }
.notif.unread .title { font-weight: 500; }
.notif.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 2px var(--board-2); flex: none; }
.picker-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); margin-top: 10px; }
.picker-list label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.picker-list label:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 16px; background: var(--surface-2); font-size: 13.5px; border: 1px solid var(--line); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; font-size: 16px; line-height: 1; }
.chip.btnish { cursor: pointer; }
.chip.btnish:hover { border-color: var(--board-3); }
.chip.btnish.on { background: var(--board-2); color: #fff; border-color: var(--board-2); }
.scanner { position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; max-height: 60vh; margin: 0 auto; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid var(--chalk); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scan-result { text-align: center; padding: 14px; border-radius: var(--r-lg); margin-top: 12px; }
.scan-result.ok { background: var(--ok-bg); color: var(--ok); }
.scan-result.late { background: var(--warn-bg); color: var(--warn); }
.scan-result.err { background: var(--bad-bg); color: var(--bad); }
.scan-result b { font-size: 20px; display: block; font-weight: 500; }
.sigpad { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff; touch-action: none; width: 100%; height: 180px; display: block; }
.qr-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-align: center; background: #fff; }
.qr-card svg { width: 100%; max-width: 220px; height: auto; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.prose { white-space: pre-wrap; line-height: 1.75; }
.file-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); background: #fff; }
.file-link:hover { border-color: var(--board-3); text-decoration: none; }
.file-link svg { width: 18px; height: 18px; color: var(--bad); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline li.now::before { background: var(--chalk); box-shadow: 0 0 0 4px var(--chalk-2); }
.timeline li.bad::before { background: var(--bad); }

/* ---------- admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 500; color: var(--board); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alert { border-left: 4px solid var(--bad); }
.kpi.alert b { color: var(--bad); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
a.kpi { color: inherit; text-decoration: none; display: block; }
a.kpi:hover { border-color: var(--board-3); }
.kpi b svg { width: 24px; height: 24px; color: var(--board-3); }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-actions .btn { justify-content: flex-start; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 20px; }

/* ---------- public landing / sign-in ---------- */
.landing { background: var(--paper); min-height: 100vh; }
.lnav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px max(20px, calc(50vw - 560px)); background: var(--board); color: var(--board-ink); }
.lbrand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.lbrand:hover { text-decoration: none; }
.lbrand img, .lbrand .logo-ph { width: 36px; height: 36px; border-radius: 50%; }
.lbrand .logo-ph { background: var(--chalk); color: var(--board); font-size: 15px; }
.lbrand b { font-weight: 500; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llinks { display: flex; gap: 18px; margin-left: 12px; }
.llinks a { color: var(--board-ink-2); font-size: 14.5px; }
.llinks a:hover { color: #fff; text-decoration: none; }
.lacts { margin-left: auto; display: flex; gap: 8px; }
.hero { background-color: var(--board); color: var(--board-ink); background-image: radial-gradient(80% 60% at 85% 10%, #24543f 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #1d4434 0%, transparent 70%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 3rem; align-items: center; padding: 3.2rem max(20px, calc(50vw - 560px)) 4.2rem; }
.hero h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.22; color: #fff; margin-bottom: 14px; text-wrap: balance; }
.hero .lead { font-size: 17px; max-width: 34em; opacity: .92; }
.hero .facts { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.hero .facts b { display: block; font-size: 30px; font-weight: 500; color: var(--chalk); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero .facts span { color: var(--board-ink-2); font-size: 14px; }
.hero .chalk-note { margin-top: 22px; color: var(--board-ink-2); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.login-card { background: #fff; color: var(--text); border-radius: 14px; padding: 24px 24px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); position: relative; }
.login-card h2 { font-size: 22px; }
.login-card .seg { width: 100%; margin: 16px 0 14px; }
.login-card .seg button { flex: 1; }
.demo-box { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.demo-box .chips { margin-top: 8px; }
.demo-box .chip { cursor: pointer; background: #fff; }
.demo-box .chip:hover { border-color: var(--board-3); }
.lsec { padding: 3.4rem 0; }
.lsec.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.feats-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.feats-head { position: sticky; top: 90px; }
.feats-head h2 { font-size: 28px; margin-bottom: 8px; text-wrap: balance; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.feat-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feat-list .fi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--board); color: var(--chalk); }
.feat-list .fi svg { width: 22px; height: 22px; }
.feat-list h3 { margin: 0 0 2px; font-size: 16.5px; }
.feat-list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.lfoot { background: var(--board); color: var(--board-ink-2); padding: 2rem 0; font-size: 14px; }
.lfoot b { color: #fff; font-weight: 500; }
.maint { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--board); color: var(--board-ink); }
.maint .today-sheet { max-width: 520px; width: 100%; }
.llinks button { border: 0; background: none; padding: 6px 0; font: 400 14.5px var(--font); color: var(--board-ink-2); cursor: pointer; }
.llinks button:hover { color: #fff; }
.hero .chalk-date { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--chalk-2); margin-bottom: 14px; border-bottom: 1px dashed rgba(243,201,74,.45); padding-bottom: 6px; }
.hero .chalk-date .day-dot { width: 12px; height: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.hero-sub { color: var(--board-ink-2); font-size: 15.5px; margin: -4px 0 14px; }
.setup-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.setup-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.setup-steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--chalk); color: var(--chalk); display: grid; place-items: center; font-weight: 500; }
.setup-steps b { color: #fff; font-weight: 500; }
.setup-steps span { color: var(--board-ink-2); font-size: 14.5px; }
.lnews { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.lnews .news-grid { margin-top: 0; grid-template-columns: 1fr; }
.lnews .news-grid > .panel + .panel { margin-top: 0; }
.lnews:not(:has(> .news-grid)) { grid-template-columns: minmax(0, 560px); }
.lpost h3 { margin: 2px 0 6px; }
.lpost p { margin: 0; font-size: 14.5px; }
.lfoot-grid { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lfoot .lbrand div { font-size: 13.5px; }
.demo-box .chip { font: inherit; font-size: 13.5px; color: var(--text); }
.nav-admin { margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(243,201,74,.3); }
.nav-admin > .nav-label { color: var(--chalk); }

/* ---------- print ---------- */
#print-root { display: none; }
.doc-a4 { font-family: var(--doc-font); font-size: 14pt; line-height: 1.45; color: #000; width: 210mm; padding: 18mm 20mm 18mm 28mm; margin: 0 auto; background: #fff; font-weight: 400; }
.doc-a4 b, .doc-a4 th { font-weight: 700; }
.doc-a4 h1 { font-size: 22pt; text-align: center; font-weight: 700; }
.doc-a4 .center { text-align: center; }
.doc-a4 .indent { text-indent: 2.5cm; }
.doc-a4 .sig { margin-top: 12mm; margin-left: 50%; text-align: center; }
.doc-a4 .sig img { height: 13mm; display: block; margin: 0 auto -2mm; }
.doc-a4 table { border-collapse: collapse; width: 100%; font-size: 12pt; }
.doc-a4 table:not(.layout) th, .doc-a4 table:not(.layout) td:first-child { white-space: nowrap; }
.doc-a4 table td, .doc-a4 table th { border: 1px solid #000; padding: 2px 6px; }
.doc-a4 table.layout, .doc-a4 table.layout > tbody > tr > td, .doc-a4 table.layout > tr > td { border: 0; vertical-align: top; font-size: inherit; padding: 0; }
.doc-a4 .stamp { font-family: var(--font); }
.memo-head { display: flex; align-items: flex-end; gap: 8mm; margin-bottom: 4mm; }
.memo-head img { height: 15mm; }
.memo-head h1 { font-size: 26pt; flex: 1; text-align: center; margin-right: 23mm; }
.memo-row { display: flex; gap: 3mm; border-bottom: 1px dotted #000; margin-bottom: 1mm; }
.memo-row b { white-space: nowrap; font-size: 16pt; }
.panel .doc-a4 h1 { font-size: 24px; }
.panel .doc-a4 .memo-row b { font-size: 17px; }
.print-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; padding: 8mm; font-family: var(--font); }
.print-cards .card { border: 1px solid #999; border-radius: 3mm; padding: 4mm; text-align: center; break-inside: avoid; font-size: 10pt; line-height: 1.35; }
.print-cards .card svg { width: 30mm; height: 30mm; }
.print-report { font-family: var(--font); font-size: 10.5pt; padding: 10mm; color: #000; }
.print-report table { border-collapse: collapse; width: 100%; }
.print-report th, .print-report td { border: 1px solid #555; padding: 2px 5px; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  body > :not(#print-root) { display: none !important; }
  #print-root { display: block; }
  .doc-a4 { margin: 0; padding-top: 15mm; }
  .stamp, .badge { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; }
  .feats-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .feats-head { position: static; }
  .lnews { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --top: 56px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: min(300px, 86vw); }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .shell.nav-open .scrim { position: fixed; inset: 0; background: rgba(10,20,15,.45); z-index: 35; }
  .main { margin-left: 0; padding-bottom: 68px; }
  .topbar { padding: 0 10px; gap: 6px; background: var(--board); border-bottom: 0; color: var(--board-ink); }
  .topbar .icon-btn { color: var(--board-ink); }
  .topbar .icon-btn:hover { background: rgba(255,255,255,.08); }
  .topbar .menu-btn { display: grid; }
  .topbar .today, .user-chip .who { display: none; }
  .topbar .title-sm { display: block; font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
  .user-chip { border: 0; padding: 0; background: none; }
  .banner { padding: 9px 16px; }
  .view { padding: 16px 16px 40px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); z-index: 30; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--faint); text-decoration: none; position: relative; }
  .bottom-nav a svg { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--board); font-weight: 500; }
  .bottom-nav a.active svg { color: var(--board-2); }
  .bottom-nav a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--chalk); }
  .bottom-nav a .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
  h1 { font-size: 22px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .page-head { margin-bottom: 14px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .today-sheet { padding: 16px; border-width: 7px; }
  .today-sheet h1 { font-size: 21px; }
  .today-sheet .figures { gap: 18px; }
  .today-sheet .fig b { font-size: 28px; }
  .strip { flex-wrap: wrap; }
  .strip > div { flex: 1 1 33%; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm, .tbl.stack-sm tbody, .tbl.stack-sm tr, .tbl.stack-sm td { display: block; width: 100%; }
  .tbl.stack-sm tr { padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
  .tbl.stack-sm td { border: 0; padding: 2px 0 !important; display: flex; gap: 10px; }
  .tbl.stack-sm td[data-label]::before { content: attr(data-label); color: var(--faint); font-size: 13px; min-width: 96px; flex: none; }
  .tbl.stack-sm td.actions { justify-content: flex-start; padding-top: 6px !important; }
  .tbl.stack-sm td.actions::before { display: none; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--top) - 62px - 32px); }
  .chat.in-room .chat-rooms { display: none; }
  .chat:not(.in-room) .chat-room { display: none; }
  .att-list li { flex-wrap: wrap; padding: 10px 14px; }
  .att-list .nm { flex-basis: calc(100% - 40px); }
  .att-pick { width: 100%; padding-left: 38px; }
  .att-pick button { flex: 1; min-width: 0; }
  .sticky-save { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .score-tbl td, .score-tbl th { padding: 8px 6px !important; font-size: 14px; }
  .score-tbl td:nth-child(2) { min-width: 132px; }
  .score-tbl input { width: 56px; }
  .kv { grid-template-columns: 110px 1fr; }
  .admin-actions { grid-template-columns: 1fr; }
  .overlay { padding: 10px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 20px); border-radius: 14px 14px 12px 12px; }
  .dropdown { position: fixed; left: 8px; right: 8px; top: 60px; min-width: 0; }
  .llinks { display: none; }
  .lnav { padding: 10px 14px; }
  .hero { padding: 1.6rem 16px 2.4rem; }
  .hero .lead { font-size: 15.5px; }
  .hero .facts { gap: 22px; margin-top: 18px; }
  .hero .facts b { font-size: 24px; }
  .login-card { padding: 20px 18px 16px; }
  .feat-list { grid-template-columns: 1fr; }
  .lsec { padding: 2.4rem 0; }
  .hero-text .lead { display: none; }
  .hero .chalk-date { font-size: 13.5px; }
}
