/* ==========================================================
   NFC শিক্ষক হাজিরা — সব পেজের স্টাইল (মোবাইল-ফার্স্ট)
   ========================================================== */

@font-face { font-family: 'Hind Siliguri'; font-weight: 400; font-display: swap; src: url('../fonts/hind-siliguri-bengali-400-normal.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-weight: 600; font-display: swap; src: url('../fonts/hind-siliguri-bengali-600-normal.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-weight: 700; font-display: swap; src: url('../fonts/hind-siliguri-bengali-700-normal.woff2') format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-weight: 400; font-display: swap; src: url('../fonts/hind-siliguri-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Hind Siliguri'; font-weight: 600; font-display: swap; src: url('../fonts/hind-siliguri-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Hind Siliguri'; font-weight: 700; font-display: swap; src: url('../fonts/hind-siliguri-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --brand: #0f766e;
  --brand-d: #115e59;
  --bg: #f1f5f9;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;
  --blue: #2563eb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
}
img { max-width: 100%; }
a { color: var(--brand); }
h1 { font-size: 1.45rem; margin: .2em 0 .6em; line-height: 1.3; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: .4em 0; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 10px; }
.spacer { flex: 1; }
.txt-red { color: var(--red); }
[hidden] { display: none !important; }
.print-only { display: none; }

/* ---------- বাটন ও ফর্ম ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; min-height: 42px;
  transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--red); border-color: #fecaca; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; min-height: 34px; font-size: .9rem; }
.btn.big { padding: 14px 22px; font-size: 1.08rem; min-height: 54px; width: 100%; }
.btn:disabled { opacity: .5; }
form.inline { display: inline; }

input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1;
  border-radius: 10px; background: #fff; color: var(--text); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .35); border-color: var(--brand); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
input[type=file] { padding: 8px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { flex: none; margin-top: 3px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.checks-inline label { margin: 0; }
.form h2 { margin-top: 14px; }
.form h2:first-of-type { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row .grow, .grow { flex: 1 1 220px; }
.row label { margin-bottom: 0; }
textarea.code { font-family: ui-monospace, monospace; font-size: .85rem; }
input.copy { font-family: ui-monospace, monospace; font-size: .85rem; background: #f8fafc; cursor: copy; }
input.copy.copied { outline: 2px solid var(--green); }

.alert { padding: 11px 14px; border-radius: 10px; margin: 0 0 12px; border: 1px solid; }
.alert.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert.warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert.error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert.small { font-size: .9rem; padding: 8px 12px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.highlight { border: 2px solid var(--green); }
.grid2, .grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 > .card, .grid3 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 16px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #e2e8f0; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.warn { background: #fef3c7; color: #92400e; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e2e8f0; color: #334155; white-space: nowrap; }
.badge.muted { background: #f1f5f9; color: var(--muted); }
.st-present, .badge.st-present, .res-in { background: #dcfce7; color: #166534; }
.st-late, .badge.st-late { background: #fef3c7; color: #92400e; }
.st-absent, .badge.st-absent, .res-unknown, .res-rejected { background: #fee2e2; color: #991b1b; }
.st-leave, .badge.st-leave { background: #dbeafe; color: #1e40af; }
.st-holiday, .badge.st-holiday { background: #f1f5f9; color: #64748b; }
.res-out { background: #dbeafe; color: #1e40af; }
.res-duplicate, .res-inactive { background: #fef3c7; color: #92400e; }

/* ---------- টেবিল ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card .table-wrap { box-shadow: none; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: #f8fafc; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.table.compact th, .table.compact td { padding: 6px 8px; font-size: .88rem; }
.table tr.past td { color: var(--muted); }
.with-photo { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.with-photo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
pre.json { white-space: pre-wrap; font-size: .78rem; max-width: 420px; background: #f8fafc; padding: 6px; border-radius: 6px; }

.grid-table td.cell, .grid-table th { text-align: center; padding: 5px 4px; min-width: 52px; }
.grid-table td.cell small { display: block; font-size: .72rem; opacity: .85; }
.grid-table th.off { background: #f1f5f9; color: var(--muted); }
.grid-table .sticky { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; }
.grid-table thead .sticky { z-index: 2; background: #f8fafc; }
.cell.st-future, .cell.st-na { background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 10px; font-size: .88rem; }
.legend .cell { display: inline-block; min-width: 26px; min-height: 20px; text-align: center; padding: 2px 4px; border-radius: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.filters label { margin: 0; flex: 1 1 140px; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.report-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
.pager a { padding: 4px 10px; border-radius: 8px; background: #fff; text-decoration: none; border: 1px solid var(--line); }
.pager a.active { background: var(--brand); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.stat { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); border-top: 4px solid #94a3b8; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.green { border-top-color: var(--green); } .stat.amber { border-top-color: var(--amber); }
.stat.red { border-top-color: var(--red); } .stat.blue { border-top-color: var(--blue); }

/* ---------- সাধারণ পেজ (ইনস্টল/লগইন/শুরু) ---------- */
body.plain { background: linear-gradient(160deg, #ecfeff, #f1f5f9 60%); min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px 14px; }
.container.narrow { max-width: 680px; }
.container.login { max-width: 420px; padding-top: 8vh; }
.landing { display: grid; place-items: center; }
.landing .container { padding-top: 10vh; }
.landing-logo { width: 84px; height: 84px; object-fit: contain; display: block; margin: 0 auto 8px; }
.landing-buttons { display: grid; gap: 12px; margin-top: 24px; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 4px 0; }
ul.checks li.ok::before { content: '✔ '; color: var(--green); }
ul.checks li.bad::before { content: '✖ '; color: var(--red); }
ul.plain-list { padding-left: 18px; margin: 6px 0; }

/* ---------- অ্যাডমিন লেআউট ---------- */
.a-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff; padding: 8px 12px; min-height: 56px;
}
.a-top .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.a-brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.a-brand img { width: 32px; height: 32px; object-fit: contain; background: #fff; border-radius: 8px; }
.a-user { font-size: .9rem; opacity: .9; display: none; }
.a-burger { background: none; border: 0; color: #fff; font-size: 1.5rem; padding: 4px 8px; cursor: pointer; }
.a-wrap { display: flex; }
.a-nav {
  position: fixed; top: 56px; left: 0; bottom: 0; width: 250px; background: #fff;
  border-right: 1px solid var(--line); padding: 10px; overflow-y: auto; z-index: 15;
  transform: translateX(-100%); transition: transform .2s;
}
body.nav-open .a-nav { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
.a-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.a-nav a:hover { background: #f1f5f9; }
.a-nav a.active { background: #ccfbf1; color: var(--brand-d); }
.a-main { flex: 1; min-width: 0; padding: 16px 12px 40px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 980px) {
  .a-burger { display: none; }
  .a-user { display: inline; }
  .a-nav { position: sticky; transform: none; height: calc(100vh - 56px); flex: none; }
  .a-main { padding: 20px 24px 40px; }
}
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.teacher-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .teacher-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.t-card.inactive { opacity: .6; }
.t-card > img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: #e2e8f0; }
.t-info { min-width: 0; flex: 1; }
.t-name { font-weight: 700; font-size: 1.05rem; }
.t-meta { color: var(--muted); font-size: .88rem; }
.t-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.photo-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.photo-edit img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #e2e8f0; flex: none; }
.photo-edit img.logo-preview { border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.profile-head > img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #e2e8f0; flex: none; }
.profile-head h1 { margin: 0; }

.nfc-status { padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 1.05rem; }
.nfc-status.info { background: #e0f2fe; color: #075985; }
.nfc-status.ok { background: #dcfce7; color: #166534; }
.nfc-status.warn { background: #fef3c7; color: #92400e; }
.nfc-status.error { background: #fee2e2; color: #991b1b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }

.scan-list { list-style: none; padding: 0; margin: 0 0 8px; }
.scan-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.scan-list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.scan-list .n { flex: 1; font-weight: 600; min-width: 120px; }
.scan-list .t { font-size: .82rem; color: var(--muted); }

/* ক্যালেন্ডার হিটম্যাপ */
.heatmaps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hm-wd { font-size: .72rem; text-align: center; color: var(--muted); }
.hm-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: .75rem; background: #f8fafc; color: #94a3b8; }
.hm-day.empty { background: transparent; }
.hm-day.st-present { background: #22c55e; color: #fff; }
.hm-day.st-late { background: #f59e0b; color: #fff; }
.hm-day.st-absent { background: #ef4444; color: #fff; }
.hm-day.st-leave { background: #3b82f6; color: #fff; }
.hm-day.st-holiday { background: #e2e8f0; color: #64748b; }
.hm-day.st-future, .hm-day.st-na, .hm-day.st-out { background: #f8fafc; color: #cbd5e1; }
.day-block h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.day-block h2 small { font-weight: 400; font-size: .85rem; }

/* ==========================================================
   কিয়স্ক
   ========================================================== */
body.kiosk {
  background: #0f172a; color: #e2e8f0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden; user-select: none;
}
.k-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.k-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.k-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; }
.k-clock { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.k-main { flex: 1; display: grid; place-items: center; padding: 16px; text-align: center; }
.k-panel { width: 100%; max-width: 520px; }
.k-icon { font-size: 4rem; }
.k-keyform { display: flex; gap: 8px; margin-top: 16px; }
.k-warn { background: #451a03; color: #fde68a; border: 1px solid #92400e; padding: 14px; border-radius: 14px; margin-bottom: 20px; font-size: 1.02rem; text-align: left; }
.k-start {
  width: min(78vw, 320px); aspect-ratio: 1; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 30% 30%, #14b8a6, #0f766e); color: #fff;
  font: inherit; font-size: 1.6rem; font-weight: 700; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 0 0 0 14px rgba(20, 184, 166, .15), 0 20px 50px rgba(0, 0, 0, .4);
}
.k-start:active { transform: scale(.97); }
.k-start-icon { font-size: 3.4rem; }
.k-tapzone { position: relative; width: 220px; height: 220px; margin: 0 auto 10px; display: grid; place-items: center; }
.k-wave { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #14b8a6; animation: kwave 1.8s ease-out infinite; }
.k-card-icon { font-size: 5.5rem; animation: kfloat 2.4s ease-in-out infinite; }
.k-ready-title { font-size: 2.4rem; margin: 6px 0; color: #fff; }
@keyframes kwave { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
@keyframes kfloat { 50% { transform: translateY(-10px); } }

.k-result {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff;
}
.k-result.green { background: #15803d; }
.k-result.yellow { background: #ca8a04; }
.k-result.red { background: #b91c1c; }
.k-result.pop { animation: kpop .25s ease-out; }
@keyframes kpop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.r-photo { width: min(52vw, 260px); height: min(52vw, 260px); border-radius: 50%; object-fit: cover; border: 6px solid rgba(255, 255, 255, .85); background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.r-icon { font-size: 7rem; line-height: 1; }
.r-name { font-size: 2.2rem; font-weight: 700; margin-top: 16px; line-height: 1.25; }
.r-sub { font-size: 1.1rem; opacity: .9; }
.r-action { font-size: 2.6rem; font-weight: 700; margin-top: 10px; background: rgba(0, 0, 0, .18); padding: 4px 22px; border-radius: 16px; }
.r-action:empty { display: none; }
.r-note { margin-top: 10px; font-size: 1.05rem; opacity: .95; }
.k-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #020617; font-size: .9rem; }
.k-bar .btn { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.k-bar .btn.ghost { background: transparent; }

/* ==========================================================
   লাইভ ড্যাশবোর্ড
   ========================================================== */
body.live { background: #0b1220; color: #e2e8f0; min-height: 100vh; padding: 12px; }
body.live .muted { color: #94a3b8; }
.l-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.l-brand { display: flex; align-items: center; gap: 12px; }
.l-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; }
.l-inst { font-size: 1.5rem; font-weight: 700; }
.l-sub { color: #94a3b8; }
.l-clockbox { text-align: center; }
.l-clock { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.l-dates { color: #cbd5e1; font-size: .95rem; }
.l-tools { display: flex; gap: 8px; align-items: center; }
.l-tools .btn { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.l-holiday { background: #1e3a8a; color: #dbeafe; text-align: center; padding: 10px; border-radius: 12px; margin-bottom: 12px; font-size: 1.2rem; font-weight: 600; }
.l-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 760px) { .l-stats { grid-template-columns: repeat(5, 1fr); } }
body.live .stat { background: #111a2e; box-shadow: none; }
body.live .stat span { color: #94a3b8; }
body.live .stat b { font-size: 2.3rem; }
.l-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 1000px) { .l-grid { grid-template-columns: minmax(340px, 1fr) 2fr; } }
.l-latest-wrap, .l-timeline-wrap, .l-col { background: #111a2e; border-radius: var(--radius); padding: 14px; }
.l-latest { display: flex; gap: 16px; align-items: center; border-radius: 14px; padding: 14px; min-height: 150px; background: #0f172a; }
.l-latest.in { background: linear-gradient(135deg, #14532d, #166534); }
.l-latest.out { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.l-latest.flash { animation: lflash 1.2s ease-out; }
@keyframes lflash { 0% { transform: translateY(-24px) scale(.96); opacity: 0; box-shadow: 0 0 0 0 rgba(250, 204, 21, .9); } 40% { transform: none; opacity: 1; } 100% { box-shadow: 0 0 0 26px rgba(250, 204, 21, 0); } }
.l-latest.empty { justify-content: center; color: #64748b; }
.l-latest-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .8); background: #fff; flex: none; }
.l-latest-name { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.l-latest-desig { opacity: .85; }
.l-latest-action { font-size: 2rem; font-weight: 700; margin-top: 4px; }
.l-recent { list-style: none; padding: 0; margin: 10px 0 0; }
.l-recent li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #1e293b; }
.l-recent img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; }
.l-recent .n { flex: 1; }
.l-recent li.in .t { color: #86efac; } .l-recent li.out .t { color: #93c5fd; }
.l-timeline-wrap h3 { margin-top: 0; }
.l-timeline { position: relative; padding: 26px 20px 8px; }
.tl-axis { position: relative; height: 22px; border-bottom: 2px solid #334155; margin-bottom: 8px; }
.tl-tick { position: absolute; top: -20px; transform: translateX(-50%); font-size: .8rem; color: #94a3b8; }
.tl-tick::after { content: ''; position: absolute; left: 50%; top: 22px; height: 8px; border-left: 2px solid #334155; }
.tl-now { position: absolute; top: 18px; bottom: 0; border-left: 2px dashed #facc15; z-index: 2; }
.tl-lanes { position: relative; min-height: 40px; }
.tl-mark { position: absolute; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 2px solid; background: #fff; }
.tl-mark.in { border-color: #22c55e; } .tl-mark.out { border-color: #3b82f6; }
.tl-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-cols { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .l-cols { grid-template-columns: repeat(3, 1fr); } }
.l-col { border-top: 4px solid; }
.l-col.green { border-color: var(--green); } .l-col.amber { border-color: var(--amber); } .l-col.red { border-color: var(--red); }
.l-col h3 { margin-top: 0; }
.faces { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 46vh; overflow-y: auto; }
.face { display: flex; gap: 8px; align-items: center; background: #0f172a; border-radius: 10px; padding: 6px 8px; }
.face img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.face-name { font-weight: 600; line-height: 1.2; }
.face-meta { font-size: .8rem; color: #94a3b8; }

/* টিভি মোড: বড় লেখা, স্ক্রল ছাড়া */
body.live.tv { font-size: 19px; padding: 18px 24px; }
body.live.tv .l-clock { font-size: 3.6rem; }
body.live.tv .l-inst { font-size: 2rem; }
body.live.tv .stat b { font-size: 3rem; }
body.live.tv .l-latest-photo { width: 160px; height: 160px; }
body.live.tv .l-latest-name { font-size: 2.3rem; }
body.live.tv .l-latest-action { font-size: 2.6rem; }
body.live.tv .tl-mark { width: 34px; height: 34px; }
body.live.tv .l-tools .btn { opacity: .35; }

/* ==========================================================
   প্রিন্ট / PDF
   ========================================================== */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 11pt; }
  .no-print, .a-top, .a-nav, .report-actions, .filters, .pager { display: none !important; }
  .print-only { display: block; }
  .print-head { border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 10px; font-size: 13pt; }
  .a-main { padding: 0; max-width: none; }
  .card, .table-wrap, .stat { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .table th { position: static; }
  .table th, .table td { padding: 3px 5px; font-size: 9pt; }
  .with-photo img { display: none; }
  .grid-table .sticky { position: static; }
  .cell, .badge, .hm-day, .stat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
  canvas { max-width: 100% !important; height: auto !important; }
  .day-block { break-inside: auto; }
}
