/* =========================================================
   Time Tracker page. Uses tokens + components from style.css.
   ========================================================= */

/* ---------- web dashboard mockup (hero) ---------- */
.tt-dash { display: grid; grid-template-columns: 1fr; min-height: 430px; }
@media (min-width: 760px) { .tt-dash { grid-template-columns: 200px 1fr 260px; } }
.tt-dash .pos-side span.on { background: #0284c7; }
.tt-main { padding: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.tt-main__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-main__head h4 { font-size: 16px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.tt-main__head span { font-size: 12px; color: #98a7c0; display: inline-flex; align-items: center; gap: 6px; }
.tt-main__head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: ttpulse 2s infinite; }
@keyframes ttpulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.tt-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tt-kpis { grid-template-columns: repeat(4, 1fr); } }
.tt-kpi { border-radius: 12px; background: #16213a; border: 1px solid #22304f; padding: 12px; }
.tt-kpi small { display: block; font-size: 11px; color: #98a7c0; font-weight: 600; }
.tt-kpi b { font-family: var(--font-head); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-kpi b em { font-style: normal; font-size: 12px; color: #98a7c0; font-weight: 600; margin-left: 2px; }
.tt-kpi--brand { background: #0284c7; border-color: #0284c7; }
.tt-kpi--brand small { color: rgba(255,255,255,.85); }
.tt-feed { border-radius: 12px; background: #16213a; border: 1px solid #22304f; overflow: hidden; }
.tt-feed__row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #22304f; font-size: 12.5px; }
.tt-feed__row:last-child { border-bottom: 0; }
.tt-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.tt-feed__row b { display: block; font-weight: 600; color: #eaeff7; }
.tt-feed__row small { color: #98a7c0; font-size: 11px; }
.tt-m { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; white-space: nowrap; }
.tt-m svg.i { width: 12px; height: 12px; stroke-width: 2.2; }
.tt-m--in { background: rgba(34,197,94,.16); color: #4ade80; }
.tt-m--out { background: rgba(148,163,184,.16); color: #cbd5e1; }
.tt-m--warn { background: rgba(251,191,36,.16); color: #fbbf24; }
.tt-m--bad { background: rgba(239,68,68,.16); color: #f87171; }
.tt-week { display: grid; gap: 6px; margin-bottom: 16px; }
.tt-week div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; font-size: 11px; color: #98a7c0; }
.tt-week i { display: block; height: 16px; border-radius: 5px; background: #2a4a8a; }
.tt-week i.am { background: #0284c7; } .tt-week i.pm { background: #7c3aed; } .tt-week i.off { background: transparent; border: 1px dashed #2a3b5e; }

/* ---------- check-in methods ---------- */
.methods { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .methods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .methods { grid-template-columns: repeat(4, 1fr); } }
.method { display: flex; flex-direction: column; }
.method h3 { font-size: 18px; }
.method p { font-size: 15px; }
.method .who { margin-top: auto; padding-top: var(--s4); font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.method .who svg.i { width: 14px; height: 14px; }
.method--wide { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (min-width: 1024px) { .method--wide { grid-column: span 2; } }
.method--wide p, .method--wide .who { color: rgba(255,255,255,.88); }
.method--wide .icon-box { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.method--wide.lift:hover { border-color: var(--brand); }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.tchips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.tchips svg.i { width: 14px; height: 14px; }

/* ---------- screenshot gallery ---------- */
.shots { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px var(--s4); margin-top: var(--s7); scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
@media (min-width: 1100px) { .shots { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; } .shots figure { flex: none; } }
.shots img { width: 100%; height: auto; aspect-ratio: 1284 / 2778; object-fit: cover; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-2); transition: transform .3s var(--ease-out); }
.shots figure:hover img { transform: translateY(-4px); }
.shots figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.shots figcaption small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- school band ---------- */
.school { border-radius: var(--radius-xl); background: #0a1325; color: #edf2fb; padding: var(--s6) var(--s5); border: 1px solid #1b2843; overflow: hidden; }
@media (min-width: 768px) { .school { padding: var(--s8); } }
.school .eyebrow { color: #6ea8ff; }
.school .eyebrow::before { background: #3b82f6; }
.school h2 { font-size: clamp(30px, 4.6vw, 54px); margin: var(--s4) 0; max-width: 18ch; }
.school .lead { color: #a5b3cb; font-size: 18px; max-width: 58ch; }
.school .check-list li { color: #a5b3cb; }
.school .check-list li b { color: #edf2fb; }
.school__grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1024px) { .school__grid { grid-template-columns: 1fr 1fr; } }
.school .card { background: #0f1a30; border-color: #1f2e4d; color: #edf2fb; box-shadow: none; }
.school .card p { color: #a5b3cb; }
.school .icon-box { background: rgba(59,130,246,.15); border-color: rgba(96,165,250,.3); color: #93c5fd; }
.school .feat-grid { margin-top: var(--s7); }

/* flow: card → terminal → server → parent */
.sflow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: var(--s6); }
@media (min-width: 1180px) { .sflow { flex-wrap: nowrap; } }
.sflow__node { display: flex; align-items: center; gap: 7px; padding: 8px 11px; white-space: nowrap; border-radius: 12px; background: #0f1a30; border: 1px solid #1f2e4d; font-size: 13px; font-weight: 600; }
.sflow__node svg.i { width: 16px; height: 16px; color: #93c5fd; }
.sflow__line { flex: 1; min-width: 14px; height: 2px; background-image: linear-gradient(90deg, #3b82f6 50%, transparent 50%); background-size: 12px 2px; animation: dash .8s linear infinite; }

/* parent email preview ("Card" template) */
.mail-stack { position: relative; display: grid; justify-items: center; }
.mail { width: 100%; max-width: 440px; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; text-align: left; }
.mail__chrome { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; font-size: 12.5px; color: #64748b; }
.mail__chrome .from { width: 32px; height: 32px; border-radius: 50%; background: #0ea5e9; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.mail__chrome b { display: block; color: #0f172a; font-size: 13.5px; }
.mail__chrome time { margin-left: auto; white-space: nowrap; }
.mail__banner { background: #0ea5e9; color: #fff; padding: 22px 22px 18px; }
.mail__banner .logo-sq { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 12px; }
.mail__banner .logo-sq svg.i { width: 22px; height: 22px; }
.mail__banner small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mail__banner h4 { font-family: var(--font-head); font-size: 22px; margin-top: 4px; letter-spacing: -0.02em; }
.mail__body { padding: 18px 22px 20px; font-size: 14px; color: #475569; }
.mail__time { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: #0f172a; letter-spacing: -0.03em; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.mail table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mail td { padding: 8px 0; border-top: 1px solid #eef2f6; }
.mail td:last-child { text-align: right; color: #0f172a; font-weight: 600; }
.mail__foot { padding: 12px 22px 16px; font-size: 11.5px; color: #94a3b8; border-top: 1px solid #eef2f6; }
.mail__foot u { color: #64748b; }
.mail-tpl { display: flex; gap: 8px; justify-content: center; margin-top: var(--s4); flex-wrap: wrap; }
.mail-tpl span { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid #1f2e4d; color: #a5b3cb; }
.mail-tpl span.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.mail-toast { justify-self: start; margin-bottom: var(--s4); display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #0f1a30; border: 1px solid #1f2e4d; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); animation: bob 6s ease-in-out infinite; }
.mail-toast .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(34,197,94,.16); color: #4ade80; }
.mail-toast .dot svg.i { width: 16px; height: 16px; }
.mail-toast small { display: block; color: #7a8aa8; font-weight: 500; font-size: 11.5px; }

/* ---------- terminal / kiosk mockup ---------- */
.kiosk { width: 100%; max-width: 520px; min-width: 0; margin: 0 auto; border-radius: 26px; background: #11141b; padding: 14px; box-shadow: var(--shadow-lg); }
.kiosk__scr { border-radius: 16px; background: #0b1222; color: #eaeff7; padding: 26px 22px; display: grid; gap: 18px; text-align: center; }
.kiosk__top { display: flex; justify-content: space-between; font-size: 12.5px; color: #7687a5; }
.kiosk__clock { font-family: var(--font-head); font-weight: 800; font-size: clamp(48px, 9vw, 72px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kiosk__date { color: #98a7c0; font-size: 14px; margin-top: 8px; }
.kiosk__ok { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(34,197,94,.12); border: 1px solid rgba(74,222,128,.3); }
.kiosk__ok .tt-av { width: 46px; height: 46px; font-size: 15px; }
.kiosk__ok b { display: block; font-size: 16px; }
.kiosk__ok small { color: #4ade80; font-size: 13px; font-weight: 600; }
.kiosk__ok .tag { margin-left: auto; background: rgba(255,255,255,.08); border-color: transparent; color: #cbd5e1; }
.kiosk__qr { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; font-size: 13.5px; color: #98a7c0; }
.kiosk__qr b { color: #eaeff7; display: block; font-size: 15px; }
.qrbox { width: 86px; height: 86px; border-radius: 12px; background: #fff; padding: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.qrbox i { background: #0b1222; border-radius: 1px; }
.qrbox i.o { background: transparent; }

/* ---------- self-hosted ---------- */
.host-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .host-grid { grid-template-columns: repeat(3, 1fr); } }
.host-card { text-align: left; }
.host-card .ic-row { display: flex; gap: 8px; margin-bottom: var(--s4); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.platforms svg.i { width: 18px; height: 18px; color: var(--brand-text); }

/* logo in nav */
.logo small { font-weight: 600; }

@media (max-width: 400px) {
  .kiosk { padding: 10px; border-radius: 20px; }
  .kiosk__scr { padding: 20px 14px; }
  .kiosk__ok { padding: 12px; gap: 10px; }
  .kiosk__ok .tag { display: none; }
  .qrbox { width: 70px; height: 70px; padding: 6px; }
  .mail__body, .mail__banner { padding-left: 16px; padding-right: 16px; }
  .mail__time { font-size: 34px; }
}
