:root {
  --navy-900: #0a1b45;
  --navy: #16388c;
  --navy-700: #1b45a6;
  --navy-500: #2b5fd0;
  --yellow: #f9cb00;
  --yellow-600: #d9ab00;
  --brand-red: #ed1c24;
  --yellow-50: #fff8e1;
  --bg: #f3f5fa;
  --card: #ffffff;
  --line: #e4e8f1;
  --text: #16213a;
  --muted: #6b7690;
  --green: #12a150;
  --green-50: #e7f7ee;
  --red: #e5484d;
  --red-50: #fdecec;
  --orange: #f08c00;
  --orange-50: #fff3e0;
  --blue: #2f6fed;
  --blue-50: #e9f0fe;
  --purple: #7c4dff;
  --purple-50: #f1ecff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 27, 69, .06), 0 8px 24px rgba(10, 27, 69, .06);
  --shadow-lg: 0 20px 60px rgba(10, 27, 69, .25);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-500); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- auth screens */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .2px; }
.brand small { display: block; font-weight: 400; opacity: .7; font-size: 12px; }
.brand-logo { height: 34px; width: auto; display: block; flex: none; object-fit: contain; }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); background: #fff; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 44px 56px; display: flex; flex-direction: column; gap: 28px;
  background:
    radial-gradient(700px 420px at 105% 8%, rgba(249, 203, 0, .22), transparent 60%),
    radial-gradient(900px 600px at -20% 110%, rgba(43, 95, 208, .55), transparent 60%),
    linear-gradient(160deg, #13327f 0%, #0a1b45 70%);
}
.auth-hero::before { /* fine grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 20%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.auth-hero::after { /* red corner — the logo's signature bracket */
  content: ''; position: absolute; right: 40px; bottom: 40px; width: 64px; height: 64px;
  border-right: 14px solid var(--brand-red); border-bottom: 14px solid var(--brand-red);
}
.auth-hero > * { position: relative; z-index: 1; }
.hero-logo { height: 52px; width: auto; align-self: flex-start; object-fit: contain; }
.hero-copy { max-width: 540px; margin-top: auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(249, 203, 0, .14); color: var(--yellow); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(249,203,0,.2); }
.auth-hero h1 { font-size: 42px; line-height: 1.22; margin: 0 0 14px; letter-spacing: -.3px; }
.auth-hero h1 span { color: var(--yellow); }
.auth-hero p { opacity: .8; margin: 0; font-size: 16px; }

/* illustration: floating HR cards */
.hero-art { position: relative; height: 300px; max-width: 560px; margin-bottom: auto; }
.float { position: absolute; background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 24px 60px rgba(3, 10, 30, .45); padding: 16px 18px; animation: bob 6s ease-in-out infinite; }
.float small { color: var(--muted); font-size: 12px; display: block; }
.float b { font-size: 15px; }
.float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float .ico .svg { width: 20px; height: 20px; }
.f-clock { left: 0; top: 10px; width: 290px; }
.f-clock .big { font-size: 34px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0 10px; color: var(--navy); }
.f-clock .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.f-leave { right: 0; top: 0; width: 250px; animation-delay: -2s; }
.f-ot { right: 30px; bottom: 0; width: 260px; animation-delay: -4s; }
.f-steps { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.f-steps span { display: inline-flex; align-items: center; gap: 4px; }
.f-steps .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.f-steps .dot .svg { width: 11px; height: 11px; stroke-width: 3; }
.f-steps .line { flex: 1; height: 2px; background: var(--green); border-radius: 2px; }
.f-bar { height: 8px; border-radius: 99px; background: #eef1f8; overflow: hidden; margin-top: 10px; }
.f-bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--yellow), #ffe066); border-radius: 99px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.hero-foot { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.hero-chip .svg { color: var(--yellow); width: 18px; height: 18px; }
.hero-chip b { color: #fff; }

.auth-form-wrap { display: grid; place-items: center; padding: 40px 28px; position: relative; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-logo { height: 46px; width: auto; margin-bottom: 30px; display: block; object-fit: contain; }
.auth-card h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.2px; }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.input-icon .pw-toggle .svg { position: static; transform: none; width: 18px; height: 18px; }
.pw-toggle:hover { color: var(--navy); background: #f1f4fa; }
.pw-wrap .input { padding-right: 44px; }
.auth-card .btn-lg { margin-top: 6px; box-shadow: 0 10px 24px rgba(22, 56, 140, .28); }
.auth-foot { margin-top: 26px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.auth-secure .svg { width: 14px; height: 14px; }
.auth-copy { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: #9aa3b8; }

/* ---------- forms */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: #3a4560; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(22, 56, 140, .14); }
.input-icon { position: relative; }
.input-icon .svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.input-icon .input { padding-left: 40px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px;
  font-weight: 600; cursor: pointer; transition: transform .05s, background .15s, box-shadow .15s; white-space: nowrap;
  background: #eef1f7; color: var(--navy);
}
.btn:hover { background: #e3e8f2; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffd83d; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0e8a44; }
.btn-red { background: var(--red-50); color: var(--red); }
.btn-red:hover { background: #fbd9da; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: #eef1f7; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn .svg { width: 18px; height: 18px; }

/* ---------- layout */
.layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy-900); color: #cfd7e6; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
}
.sidebar .brand { color: #fff; padding: 4px 10px 8px; }
.sidebar .brand-sub { font-size: 12px; color: #9fb0d6; padding: 0 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .45; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #cfd7e6; font-weight: 500;
  position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(249, 203, 0, .14); color: var(--yellow); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yellow); }
.nav .badge-count { margin-left: auto; background: var(--yellow); color: var(--navy); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.side-user .meta { min-width: 0; flex: 1; }
.side-user .meta b { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .meta small { opacity: .6; font-size: 12px; }
.side-user button { background: none; border: 0; color: #cfd7e6; cursor: pointer; padding: 6px; border-radius: 8px; }
.side-user button:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 28px 32px 48px; max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -.2px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.bottom-nav { display: none; }

/* ---------- cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(228, 232, 241, .7); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-head h3 { margin: 0; font-size: 16.5px; }
.card-head .muted { font-size: 13px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

.stat { padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat .ico .svg { width: 22px; height: 22px; }
.stat b { font-size: 26px; line-height: 1.1; display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.t-navy { background: #e8edf6; color: var(--navy); }
.t-green { background: var(--green-50); color: var(--green); }
.t-red { background: var(--red-50); color: var(--red); }
.t-orange { background: var(--orange-50); color: var(--orange); }
.t-blue { background: var(--blue-50); color: var(--blue); }
.t-yellow { background: var(--yellow-50); color: #b07d00; }
.t-purple { background: var(--purple-50); color: var(--purple); }
.t-gray { background: #eef1f6; color: #5f6b85; }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--navy-500), var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; font-size: 15px; overflow: hidden; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.avatar.xl { width: 104px; height: 104px; font-size: 36px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .meta { min-width: 0; }
.person .meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .meta small { color: var(--muted); font-size: 12.5px; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 8px; }

/* ---------- tabs / filters */
.tabs { display: inline-flex; background: #e8ecf4; padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; color: #4a5672; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; }

/* ---------- student home */
.hero-clock {
  color: #fff; border-radius: 22px; padding: 26px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 196, 37, .25), transparent 60%), linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
.hero-clock::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); }
.hero-clock .date { opacity: .8; font-size: 14px; }
.hero-clock .time { font-size: 54px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0 4px; }
.hero-clock .shift { opacity: .75; font-size: 13.5px; }
.clock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.clock-cell { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; }
.clock-cell small { opacity: .7; display: block; font-size: 12.5px; }
.clock-cell b { font-size: 24px; font-variant-numeric: tabular-nums; }
.clock-actions { display: flex; gap: 12px; margin-top: 18px; position: relative; z-index: 1; }
.clock-actions .btn { flex: 1; }

.progress { height: 10px; background: #edf0f6; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), #ffd966); border-radius: 999px; }

.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #eef1f6; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .sub { color: var(--muted); font-size: 13px; }

.quota { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.quota b { font-size: 24px; }
.quota .muted { font-size: 12.5px; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.board-item { padding: 14px; display: flex; gap: 12px; align-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.board-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.board-item .times { font-size: 12.5px; color: var(--muted); }

.selfie { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; cursor: zoom-in; background: #eef1f6; display: inline-block; vertical-align: middle; }

/* ---------- modal */
.modal-back { position: fixed; inset: 0; background: rgba(10, 27, 69, .55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.icon-btn { border: 0; background: #f1f3f8; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #4a5672; }
.icon-btn:hover { background: #e5e9f2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.camera { position: relative; border-radius: 16px; overflow: hidden; background: #0d1a2e; aspect-ratio: 4/3; }
.camera video, .camera img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.camera img { transform: none; }
.camera .cam-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #cfd7e6; text-align: center; padding: 20px; font-size: 14px; }
.geo { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-top: 12px; font-size: 14px; }

/* ---------- toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: pop .2s ease-out; font-size: 14px; max-width: 90vw; }
.toast.err { background: #b3261e; }
.toast.ok .svg { color: #6ee7a0; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert .svg { margin-top: 2px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dh { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal .d { aspect-ratio: 1; border-radius: 10px; background: #f6f8fc; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; position: relative; }
.cal .d.empty { background: transparent; }
.cal .d i { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; }
.cal .d.today { outline: 2px solid var(--navy); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; background: var(--navy-900); }
  .auth-hero { padding: 22px 20px 64px; gap: 18px; }
  .auth-hero::after { right: 18px; bottom: 44px; width: 34px; height: 34px; border-width: 8px; }
  .hero-logo { height: 40px; }
  .hero-copy { margin-top: 4px; }
  .hero-tag { font-size: 12px; margin-bottom: 10px; }
  .auth-hero h1 { font-size: 26px; margin-bottom: 6px; }
  .auth-hero p { font-size: 14px; }
  .hero-art, .hero-foot { display: none; }
  .auth-form-wrap { background: #fff; border-radius: 26px 26px 0 0; margin-top: -32px; padding: 30px 20px 60px; align-items: start; }
  .auth-card .card-logo { display: none; }
  .auth-card h2 { font-size: 24px; }
  .auth-copy { bottom: 16px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar .brand-logo { height: 28px; }
  .topbar button { background: rgba(255, 255, 255, .08); border: 0; color: #fff; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; }
  .content { padding: 18px 16px 100px; }
  .page-head h1 { font-size: 22px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .cols-5, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: auto; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -6px 20px rgba(10, 27, 69, .06);
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 2px; border-radius: 10px; position: relative; }
  .bottom-nav a.active { color: var(--navy); font-weight: 600; }
  .bottom-nav a.active .svg { color: var(--navy); }
  .bottom-nav .dot { position: absolute; top: 2px; right: calc(50% - 18px); background: var(--red); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; }
  .hero-clock .time { font-size: 44px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .modal-back { align-items: end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .hide-m { display: none !important; }
}
@media (min-width: 901px) { .show-m { display: none !important; } }
@media (min-width: 901px) and (max-width: 1200px) {
  .auth { grid-template-columns: minmax(0, 1fr) 420px; }
  .auth-hero { padding: 36px 36px; }
  .auth-hero h1 { font-size: 34px; }
  .hero-art { height: 260px; transform: scale(.86); transform-origin: left top; }
}
@media (max-height: 760px) and (min-width: 901px) { .hero-art { display: none; } }
