/* Campus vAI — dashboard design system
   ডুয়াল থিম: html.theme-dark (ডিফল্ট) / html.theme-light (মকআপ)
   ফন্ট: Plus Jakarta Sans (EN) + Hind Siliguri (BN) — দুটোই লোকাল বান্ডেল
*/

html.theme-light {
  /* ক্যাম্পাস-সারথি অ্যাপের sarothiLight — Navy + Green, AA কনট্রাস্ট-চেক করা প্যালেট */
  --bg: linear-gradient(160deg, #eef4fb 0%, #f0f7f3 48%, #f6f3fb 100%);
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e3e9f2;
  --border-strong: #ccd4e0;
  --text: #101828;
  --text-dim: #475467;
  --text-faint: #667085;
  --primary: #142743;
  --primary-2: #142743;
  --primary-soft: #14274314;
  --green: #067647;
  --green-soft: #06764720;
  --yellow: #b54708;
  --yellow-soft: #b5470826;
  --red: #b42318;
  --red-soft: #b4231820;
  --teal: #0e7090;
  --teal-soft: #0e709014;
  --orange: #b54708;
  --orange-soft: #b5470814;
  --purple: #6941c6;
  --purple-soft: #6941c612;
  --blue: #175cd3;
  --blue-soft: #175cd314;
  --rose: #c01048;
  --rose-soft: #c0104814;
  --accent: #175cd3;
  --accent-2: #067647;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px #1427430a, 0 8px 22px #14274314;
  --shadow-hover: 0 10px 28px #1427431f;
  --track: #eef1f7;
  --font-bn: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
  /* legacy/অসংজ্ঞায়িত ছিল — এখন সেমান্টিক টোকেনে বাধ্য (admit-card / routine ইত্যাদির জন্য) */
  --panel: var(--surface);
  --line: var(--border);
  --text-soft: var(--text-dim);
  --bg-input: var(--surface-2);
  --bg-panel: var(--surface-2);
}

html.theme-dark {
  /* অ্যাপের sarothiDark — AMOLED কালো, এখন রঙিন ঝোঁক সহ */
  --bg: linear-gradient(160deg, #081210 0%, #030303 55%, #0a0913 100%);
  --surface: #000000;
  --surface-2: #121214;
  --border: #26262b;
  --border-strong: #3f3f46;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-faint: #6f6f76;
  --primary: #ffffff;
  --primary-2: #ffffff;
  --primary-soft: #ffffff16;
  --green: #3ddba4;
  --green-soft: #3ddba41f;
  --yellow: #fbbf24;
  --yellow-soft: #fbbf241f;
  --red: #f87171;
  --red-soft: #f8717118;
  --teal: #2dd4bf;
  --teal-soft: #2dd4bf1c;
  --orange: #fb923c;
  --orange-soft: #fb923c1c;
  --purple: #c084fc;
  --purple-soft: #c084fc1e;
  --blue: #7ab5f5;
  --blue-soft: #7ab5f51a;
  --rose: #fb7185;
  --rose-soft: #fb718518;
  --accent: #60a5fa;
  --accent-2: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: none;
  --shadow-hover: 0 12px 34px #0000009a;
  --track: #1c1c1e;
  --font-bn: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
  /* legacy/অসংজ্ঞায়িত ছিল — এখন সেমান্টিক টোকেনে বাধ্য (admit-card / routine ইত্যাদির জন্য) */
  --panel: #0a0a0c;
  --line: var(--border);
  --text-soft: var(--text-dim);
  --bg-input: var(--surface-2);
  --bg-panel: var(--surface-2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }
body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html.theme-dark body { background: var(--bg); }

/* EN/সংখ্যা ফন্ট হেল্পার — পুরনো .manrope ক্লাসের নাম রাখা হয়েছে (কম চার্ন) */
.manrope, .en, code, input[type=password], .badge, .kpi-badge, .chip, .mono {
  font-family: var(--font-en);
}
.en-label { font-family: var(--font-en); font-size: .8rem; letter-spacing: .04em; }

a { color: inherit; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  align-self: start;
  overflow: hidden; /* পুরো sidebar নয় — শুধু nav স্ক্রল করবে */
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.brand.center { justify-content: center; padding-bottom: 16px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary);
  font-family: var(--font-en); font-weight: 800; font-size: .82rem; color: #fff;
  letter-spacing: .01em;
}
html.theme-dark .brand-mark { color: #000; }
.brand-name { font-weight: 700; font-size: .98rem; line-height: 1.25; letter-spacing: -.01em; }
.brand-sub { color: var(--text-faint); font-size: .72rem; }

.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px; margin: 0 2px 12px;
}
.search-ic { color: var(--text-faint); font-size: 1rem; line-height: 1; }
.sidebar-search-input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font-family: inherit; font-size: .92rem; outline: none;
}
.sidebar-search-input::placeholder { color: var(--text-faint); }
.sidebar-search-input:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }
.search-kbd {
  font-family: var(--font-en); font-size: .66rem; color: var(--text-faint);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; background: var(--surface);
}
.nav-badge {
  margin-left: auto; min-width: 20px; text-align: center;
  font-family: var(--font-en); font-size: .72rem; font-weight: 700;
  color: #fff; background: var(--red, #d93025); border-radius: 999px; padding: 2px 7px;
}
html.theme-dark .nav-badge { color: #000; }
.foot-actions { display: flex; gap: 8px; align-items: center; }
.foot-actions .btn-primary { flex: 1; }

.sidebar nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scroll-padding-top: 6px; scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  padding: 2px 6px 10px 2px;
}
.sidebar nav::-webkit-scrollbar { width: 8px; }
.sidebar nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 6px; }
.nav-group-label {
  color: var(--text-faint); font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-en);
  padding: 8px 12px 3px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); text-decoration: none; font-size: .92rem;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-2); font-weight: 600;
}
.nav-item .ic { opacity: .85; width: 18px; text-align: center; font-size: .9rem; }

/* sidebar ফুটার — সার্ভার স্ট্যাটাস (মকআপ) */
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; }
.server-stat {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.server-stat-line { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
html.theme-dark .dot { box-shadow: none; }
.dot.warn { background: var(--yellow); }
.dot.off { background: var(--text-faint); }
.sim { font-size: .82rem; font-weight: 600; }
.sim-sub { color: var(--text-faint); font-family: var(--font-en); font-size: .72rem; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.me-name { font-size: .86rem; font-weight: 500; }
.me-role { font-size: .66rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-en); }

/* ---------- content ---------- */
.content { padding: 26px 34px 56px; min-width: 0; }
.content-wrap { width: 100%; min-width: 0; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-family: var(--font-en); }
h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; font-family: var(--font-en); }
.page-sub { color: var(--text-dim); font-size: .86rem; margin-top: 3px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; font-size: .82rem;
}
html.theme-dark .avatar { color: #000; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
html.theme-dark .card { background: var(--surface); }
.mt0 { margin-top: 0; }
.mt16 { margin-top: 16px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.w100 { width: 100%; }

.card-label {
  color: var(--text-faint); font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  font-family: var(--font-en); margin-bottom: 14px;
}

/* kpi কার্ড (মকআপ) */
.kpi-label { color: var(--text-dim); font-size: .8rem; margin-bottom: 8px; }
.kpi-value {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em;
  font-family: var(--font-en); display: flex; align-items: baseline; gap: 4px;
}
.kpi-value small { font-size: .8rem; font-weight: 600; color: var(--text-faint); }
.kpi-foot { margin-top: 8px; color: var(--text-faint); font-size: .74rem; }

/* মিটার */
.meter { height: 6px; background: var(--track); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width .4s ease; }
.meter-fill.ok { background: var(--teal); }
.meter-fill.warn { background: var(--yellow); }
.meter-fill.crit { background: var(--red); }

/* ---------- bar chart (pure CSS) ---------- */
.bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 132px; padding-top: 6px;
}
.bar {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%; justify-content: flex-end;
}
.bar-fill {
  width: 100%; max-width: 26px;
  border-radius: 5px 5px 2px 2px;
  background: var(--primary);
  opacity: .9; min-height: 3px;
  transition: height .4s ease, opacity .15s ease;
}
.bar:hover .bar-fill { opacity: 1; }
.bar.zero .bar-fill { background: var(--track); opacity: 1; height: 3px !important; }
.bar-time { color: var(--text-faint); font-family: var(--font-en); font-size: .62rem; }
.bar-live .bar-fill { box-shadow: 0 0 0 2px var(--primary-soft); }

/* ---------- badges & chips & alerts ---------- */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 99px;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--primary-soft); color: var(--primary-2); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-gray { background: var(--surface-2); color: var(--text-faint); }

.chip {
  padding: 5px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; font-size: .74rem; color: var(--text-dim);
}
.chip-btn {
  padding: 7px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; font-size: .82rem; color: var(--text-dim); text-decoration: none;
  transition: all .15s ease;
}
.chip-btn:hover { color: var(--text); border-color: var(--border-strong); }
.chip-on { background: var(--primary-soft); color: var(--primary-2); border-color: var(--primary); font-weight: 600; }

.running-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 99px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid transparent;
  font-family: var(--font-en); font-size: .74rem; font-weight: 700;
}
.running-pill.off {
  background: var(--yellow-soft); color: var(--yellow);
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.alert-red { background: var(--red-soft); border: 1px solid var(--red-soft); color: var(--red); }
.alert-ok { background: var(--green-soft); border: 1px solid var(--green-soft); color: var(--green); }
html.theme-dark .alert-red { background: #f8717118; border-color: #f8717133; color: #fca5a5; }
html.theme-dark .alert-ok { background: #3ddba41f; border-color: #3ddba433; color: #6ee7b7; }
.alert-item { display: inline-block; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-bn); font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: all .15s ease; background: none;
  color: inherit;
}
.btn-sm { padding: 6px 11px; font-size: .78rem; border-radius: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
html.theme-dark .btn-primary { color: #000; box-shadow: 0 6px 16px #ffffff14; }
html.theme-dark .btn-primary:hover { box-shadow: 0 8px 22px #ffffff22; }
.btn-ghost { background: var(--surface); color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* keyboard focus ring — শুধু কীবোর্ডে ফোকাস করলে দেখা যায় (মাউস-ক্লিকে নয়) */
:focus-visible {
  outline: 2px solid var(--accent, #175cd3);
  outline-offset: 2px;
}
.field input:focus-visible, .field textarea:focus-visible, .searchbox input:focus-visible {
  outline: none;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--text-dim); font-size: .8rem; }
.field input, .field select, .field textarea {
  padding: 9px 13px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-bn); font-size: .9rem;
  outline: none; transition: border .15s ease; width: 100%;
}
html.theme-dark .field input, html.theme-dark .field select, html.theme-dark .field textarea { background: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field.check { flex-direction: row; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-dim); }
.field.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.field input[type=file] { padding: 8px; }
.field textarea { resize: vertical; max-width: 100%; }
.pop-panel input { font-family: var(--font-en); }

.form-card form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card { margin-bottom: 0; }

/* ---------- table ---------- */
.table-card { padding: 18px 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left; color: var(--text-faint); font-weight: 600;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--font-en); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.cell-strong { font-weight: 600; }
.cell-sub { color: var(--text-dim); font-size: .78rem; }
.notice-att { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: .74rem; font-weight: 600; color: var(--green); text-decoration: none; }
.notice-att:hover { text-decoration: underline; }
.notice-thumb { display: block; width: 96px; height: 62px; object-fit: cover; border-radius: 8px; margin-bottom: 7px; border: 1px solid var(--line); }
.mono-num { font-family: var(--font-en); }
.empty { color: var(--text-faint); text-align: center; padding: 26px !important; }

/* RBAC permission matrix */
.perm-scroll { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.perm-matrix { margin: 0; }
.perm-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--card); }
.perm-matrix .perm-module td { background: var(--track); font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); padding: 7px 10px; }
.perm-matrix .perm-cell { text-align: center; width: 76px; }
.perm-form { margin: 0; display: inline-flex; }
.perm-form input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* Settings */
.settings-form { max-width: 900px; }
.settings-form .field { margin-top: 10px; }
.field-hint { color: var(--text-faint); font-size: .74rem; }
.control-sub { color: var(--text-faint); font-size: .76rem; margin-top: 3px; }
.control-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.settings-actions { display: flex; gap: 10px; align-items: center; padding: 4px 0 40px; }

/* CSV import */
.import-upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.import-upload input[type="file"] { color: var(--text-dim); }
.import-commit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }

/* Academic structure */
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.ac-batch-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ac-batch-form select { min-width: 130px; }
.curr-program { padding: 12px 0; border-top: 1px solid var(--border); }
.curr-program:first-of-type { border-top: 0; }
.curr-program-head { font-size: .92rem; margin-bottom: 10px; }
.curr-stage { display: flex; gap: 10px; align-items: center; margin: 8px 0 6px; }
.curr-table { width: 100%; }
.curr-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.curr-table td:last-child { text-align: right; color: var(--text-dim); }
/* Approvals */
.approval-item { padding: 12px 0; border-top: 1px solid var(--border); }
.approval-item:first-of-type { border-top: 0; }
.approval-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.approval-meta { display: flex; gap: 10px 16px; flex-wrap: wrap; font-size: .8rem; color: var(--text-dim); margin: 5px 0; }
.approval-actions { display: flex; gap: 8px; margin-top: 8px; }
.approval-actions input { flex: 1; min-width: 100px; }
.row-off { opacity: .45; }
.actions { white-space: nowrap; }
.actions form { display: inline-block; vertical-align: middle; }
.actions form + form { margin-left: 8px; }

/* স্ট্যাটাস পিল (recent requests) */
.status-code {
  display: inline-block; min-width: 38px; text-align: center;
  padding: 2px 7px; border-radius: 6px;
  font-family: var(--font-en); font-size: .72rem; font-weight: 700;
}
.sc-2 { background: var(--green-soft); color: var(--green); }
.sc-3 { background: var(--primary-soft); color: var(--primary-2); }
.sc-4 { background: var(--yellow-soft); color: var(--yellow); }
.sc-401 { background: var(--orange-soft); color: var(--orange); }
.sc-5 { background: var(--red-soft); color: var(--red); }
/* dark থিমে রঙিন status tones */
html.theme-dark .sc-2 { background: #3ddba41f; color: #6ee7b7; }
html.theme-dark .sc-3 { background: #93c5fd1a; color: #93c5fd; }
html.theme-dark .sc-4 { background: #fbbf241f; color: #fbbf24; }
html.theme-dark .sc-401 { background: #fb923c1a; color: #fb923c; }
html.theme-dark .sc-5 { background: #f8717118; border: 1px solid #f8717133; color: #fca5a5; }
html.theme-dark .badge-blue { background: #93c5fd1a; color: #93c5fd; }

/* ---------- popover ---------- */
.pop { position: relative; display: inline-block; }
.pop summary { list-style: none; cursor: pointer; display: inline-flex; }
.pop summary::-webkit-details-marker { display: none; }
.pop-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 12px; width: 240px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 10px 30px #10182822;
}

/* ---------- notification bell ---------- */
.pop summary.btn { position: relative; }
.bell-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 99px; background: var(--red); color: #fff;
  font-family: var(--font-en); font-size: .62rem; font-weight: 700;
  border: 2px solid var(--surface);
}
html.theme-dark .bell-badge { background: #fff; color: #000; border-color: var(--surface); }
.notif-panel { width: 268px; gap: 6px; }
.notif-item {
  font-size: .82rem; padding: 7px 9px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-dim);
}
.notif-item.ok { color: var(--green); }
.notif-meta { font-size: .7rem; color: var(--text-faint); padding: 4px 2px 0; }

/* হেডার popover ফর্ম (নতুন ইউজার/রুম) */
.form-panel { width: 330px; gap: 10px; }
.form-panel .field > span { font-size: .74rem; }
.form-panel .field input, .form-panel .field select { padding: 8px 11px; font-size: .85rem; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-block { display: flex; flex-direction: column; gap: 10px; }
.role-block[hidden] { display: none !important; }
.row-inline { display: flex; gap: 6px; }
.row-inline input { flex: 1; min-width: 0; }

/* ---------- collapsible batch group (users পেজ) ---------- */
details.batch-block {
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--primary);
  padding: 16px 20px;
  margin-bottom: 16px;
}
details.batch-block.bc-0 { border-left-color: var(--primary); }
details.batch-block.bc-1 { border-left-color: var(--green); }
details.batch-block.bc-2 { border-left-color: var(--yellow); }
details.batch-block.bc-3 { border-left-color: var(--red); }
details.batch-block.bc-4 { border-left-color: var(--purple); }
details.batch-block.bc-5 { border-left-color: var(--teal); }
html.theme-dark details.batch-block.bc-0 { border-left-color: #ffffff; }
html.theme-dark details.batch-block.bc-1 { border-left-color: #d4d4d8; }
html.theme-dark details.batch-block.bc-2 { border-left-color: #a1a1aa; }
html.theme-dark details.batch-block.bc-3 { border-left-color: #71717a; }
html.theme-dark details.batch-block.bc-4 { border-left-color: #52525b; }
html.theme-dark details.batch-block.bc-5 { border-left-color: #e4e4e7; }
details.batch-block > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; row-gap: 8px; /* ছোট স্ক্রিনে ফর্মগুলো নিচে নেমে আসে, overflow হয় না */
}
details.batch-block > summary::-webkit-details-marker { display: none; }
details.batch-block > summary:hover .card-label { color: var(--text); }
details.batch-block .batch-count {
  color: var(--text-faint); font-size: .74rem; font-family: var(--font-en); white-space: nowrap;
}
details.batch-block .batch-count.ok { color: var(--green); }
details.batch-block .batch-count.bad { color: var(--red); }
details.batch-block .batch-spacer { flex: 1 1 0; min-width: 8px; }
details.batch-block .batch-coord select {
  padding: 5px 10px; border-radius: 8px; max-width: 190px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-bn); font-size: .8rem; outline: none; cursor: pointer;
}
details.batch-block .batch-coord select:hover { border-color: var(--primary); }
details.batch-block .batch-coord { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
details.batch-block .batch-coord-now {
  font-size: .76rem; color: var(--green); white-space: nowrap; font-weight: 600;
}
details.batch-block .batch-del { display: flex; flex: 0 0 auto; flex-wrap: wrap; }
details.batch-block .batch-chevron {
  color: var(--text-faint); font-size: .78rem;
  transition: transform .15s ease; width: 12px; text-align: center;
}
details.batch-block[open] .batch-chevron { transform: rotate(90deg); }
details.batch-block[open] > table { margin-top: 10px; }
details.batch-block:not([open]) { padding-bottom: 16px; }

/* ---------- controls কার্ড ---------- */
.control-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.control-row:first-of-type { padding-top: 0; }
.control-row:last-child { border-bottom: none; padding-bottom: 0; }
.control-name { font-weight: 600; font-size: .9rem; }
.control-desc { color: var(--text-dim); font-size: .78rem; margin-top: 2px; }
.control-state { font-family: var(--font-en); font-weight: 700; font-size: .72rem; }

/* ---------- filter bar ---------- */
.filterbar { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; row-gap: 10px; }
.chip-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-count { font-size: .72rem; font-weight: 700; opacity: .8; }
.filter-ctls {
  display: flex; align-items: flex-end; gap: 10px;
  margin-left: auto; flex-wrap: wrap; row-gap: 8px;
}
.field-sm { gap: 4px; }
.field-sm > span { font-size: .7rem; }
.field-sm select {
  padding: 6px 10px; min-width: 140px; height: 35px;
  border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-bn); font-size: .84rem; outline: none;
}
.field-sm select:hover { border-color: var(--primary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.users-loading {
  display: none; flex: 0 0 auto; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid var(--track);
  border-top-color: var(--accent, #175cd3);
  animation: users-spin .8s linear infinite;
}
.users-loading.htmx-request { display: inline-block; }
@keyframes users-spin { to { transform: rotate(360deg); } }
.searchbox { display: flex; gap: 8px; margin-left: auto; }
.searchbox input {
  padding: 8px 14px; border-radius: 99px; width: 230px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-bn); font-size: .86rem; outline: none;
}
html.theme-dark .searchbox input { background: var(--surface-2); }
.searchbox input:focus { border-color: var(--green); }

/* ---------- login ---------- */
.login-body {
  display: grid; place-items: center; min-height: 100vh;
  background: var(--bg);
}
html.theme-dark .login-body { background: var(--bg); }
.login-wrap { width: min(400px, 92vw); }
.login-card { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.login-card h1 { text-align: center; font-size: 1.2rem; }
.hint { text-align: center; color: var(--text-faint); font-size: .72rem; }
.theme-fab {
  position: fixed; top: 16px; right: 16px;
  padding: 8px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; font-size: .95rem;
  box-shadow: var(--shadow);
}

/* ---------- routine weekly grid ---------- */
.rt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rt-head .card-label { margin-bottom: 4px; }
.rt-publish { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rt-publish form { display: flex; gap: 6px; align-items: center; }
.rt-publish input { width: 160px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.rt-week-sub { color: var(--text-faint); font-size: .78rem; margin-bottom: 14px; }
.tt-scroll { overflow-x: auto; }
table.tt { border-collapse: separate; border-spacing: 6px; }
table.tt th, table.tt td { border: none; padding: 0; }
table.tt th.tt-day {
  color: var(--text-faint); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .07em; padding: 2px 4px; text-align: center;
}
table.tt th.tt-corner { min-width: 54px; }
table.tt td.tt-time {
  color: var(--text-faint); font-family: var(--font-en); font-size: .68rem;
  white-space: nowrap; vertical-align: top; padding: 12px 6px 0 0; text-align: right;
}
table.tt td.tt-cell {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; min-width: 104px; padding: 5px; vertical-align: top;
}
table.tt td.tt-has { border-color: var(--border-strong); }
.tt-free { color: var(--text-faint); font-size: .66rem; text-align: center; display: block; padding-top: 15px; }

details.tt-x { display: block; }
details.tt-x > summary { list-style: none; }
details.tt-x > summary::-webkit-details-marker { display: none; }
.tt-chip {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--primary-soft); color: var(--primary-2);
  border: 1px solid transparent; border-radius: 8px;
  padding: 6px 8px; font-size: .72rem; font-weight: 700;
  font-family: var(--font-en); line-height: 1.3;
  transition: border .15s ease;
}
.tt-chip:hover { border-color: var(--primary); }
.tt-chip + .tt-chip { margin-top: 4px; }
.tt-chip .tt-room { display: block; font-weight: 600; font-size: .64rem; opacity: .75; }
.tt-chip.lab { background: var(--teal-soft); color: var(--teal); }
.tt-chip.cancelled { background: transparent; color: var(--red); border: 1px dashed var(--red); text-decoration: line-through; }
.tt-chip.cancelled .tt-room { text-decoration: none; }
details.tt-x[open] > summary.tt-chip { border-color: var(--primary); }
.tt-pop {
  margin-top: 6px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 9px; display: flex; flex-direction: column; gap: 7px;
  font-weight: 400; color: var(--text);
}
.tt-pop .pop-title { font-weight: 700; font-size: .78rem; }
.tt-pop .pop-meta { color: var(--text-dim); font-size: .72rem; display: flex; flex-direction: column; gap: 2px; }
.tt-pop form { display: block; }
.tt-pop .btn { width: 100%; }

.util-bar { height: 7px; background: var(--track); border-radius: 99px; overflow: hidden; min-width: 90px; }
.util-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.tt-chip[draggable="true"] { cursor: grab; }
.tt-chip.dragging { opacity: .35; }
.tt-cell.drop-on { outline: 2px dashed var(--accent, #6366f1); outline-offset: -3px; background: rgba(99, 102, 241, .08); }
.rt-check {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; margin-bottom: 12px;
}
.rt-check.ok { background: var(--green-soft); color: var(--green); }
.rt-check.bad { background: var(--red-soft); color: var(--red); }
.rt-status-t { font-weight: 700; font-size: .95rem; }
.rt-status-sub { color: var(--text-faint); font-size: .76rem; margin-top: 5px; }
.rt-clash { font-size: .74rem; color: var(--red); margin-top: 9px; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-en); }
.rt-grid-note {
  color: var(--yellow); background: var(--yellow-soft); border-radius: 8px;
  padding: 7px 10px; font-size: .74rem; margin-bottom: 12px;
}
.crs-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.crs-row:last-child { border-bottom: none; }
.crs-code { font-family: var(--font-en); font-weight: 700; font-size: .8rem; }
.crs-title { color: var(--text-dim); font-size: .72rem; }
.crs-teacher { color: var(--text-faint); font-size: .72rem; margin-left: auto; text-align: right; max-width: 38%; }
.crs-week-form { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.crs-week-form select { padding: 3px 6px; font-size: .78rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input, transparent); }
.crs-week { flex: 0 0 auto; }
.crs-badges { display: flex; flex-wrap: wrap; gap: 4px; flex: 0 0 auto; }
.crs-edit { flex: 0 0 auto; }
.fac-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-grp { display: inline-block; margin-left: 4px; padding: 0 3px; border-radius: 4px; background: var(--teal-soft); color: var(--teal); font-size: .56rem; font-weight: 700; }
.tt-lunch { text-align: center; font-size: .68rem; color: var(--text-faint); background: var(--bg-panel, transparent); }
.ext-grid { display: flex; flex-direction: column; gap: 3px; }
.ext-grid-row { display: grid; grid-template-columns: 56px repeat(6, 1fr); gap: 3px; align-items: center; }
.ext-grid-head .ext-slot-label { font-size: .6rem; color: var(--text-faint); text-align: center; }
.ext-day-label { font-size: .62rem; color: var(--text-dim); }
.ext-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--border); border-radius: 6px; padding: 3px 2px; cursor: pointer; }
.ext-cell input { margin: 0; }
.ext-cell-time { font-size: .52rem; color: var(--text-faint); }
.batch-map { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.batch-map-sum { cursor: pointer; font-size: .76rem; color: var(--text-dim); }
.batch-map-sub { font-size: .68rem; color: var(--text-faint); margin: 6px 0; }
.batch-map-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.batch-map-row select { padding: 3px 6px; font-size: .78rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input, transparent); }
.batch-map-row .badge { flex: 0 1 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* মোবাইল টপবার — ডেস্কটপে লুকানো, ≤960px-এ drawer-ট্রিগার */
.mobile-bar {
  display: none;
  align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 60;
}
.mobile-bar .brand-name { font-size: .95rem; }
.backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15, 23, 42, .45);
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: 272px; max-width: 86vw; height: 100dvh;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 80;
    border-right: 1px solid var(--border-strong);
    box-shadow: 0 0 40px #00000030;
    overflow-y: auto;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; }
  body.nav-open { overflow: hidden; }
  .cols-3, .cols-4, .cols-2-1, .cols-2 { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 40px; }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { width: 100%; flex: 1; }
  .filter-ctls { margin-left: 0; width: 100%; align-items: stretch; }
  .field-sm { width: 100%; }
  .field-sm select { width: 100%; }
  .bars { height: 110px; }
}

/* htmx swap fade */
#stats.htmx-settling { opacity: .55; transition: opacity .2s ease; }
#stats { transition: opacity .2s ease; }

/* ---------- user detail page ---------- */
.detail-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.detail-table th {
  text-align: left; width: 150px; color: var(--text-dim); font-weight: 500;
  font-size: .8rem; vertical-align: top; padding: 7px 10px 7px 0;
}
.detail-table td { padding: 7px 0; font-size: .88rem; }
.code-sub, .pw-code { font-family: var(--font-en); font-size: .8rem; word-break: break-all; }
.pw-code {
  background: var(--surface-2); border: 1px solid var(--border-strong);
  padding: 3px 10px; border-radius: 8px; font-size: .85rem;
}
.detail-form { margin-top: 10px; }
.detail-form .btn { flex: 0 0 auto; }
.detail-actions-manrope { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- লাইট-থিম রঙ-ফুশন (নেভি + সবুজ ঝোঁক) — ডার্ক থিমে কোনো প্রভাব নেই ---------- */

/* প্রাইমারি জিনিসে নেভি→সবুজ নরম গ্রেডিয়েন্ট */
html.theme-light .btn-primary,
html.theme-light .brand-mark,
html.theme-light .avatar {
  background: linear-gradient(135deg, #142743 48%, #14654d 108%);
}
html.theme-light .btn-primary:hover { filter: saturate(1.15) brightness(1.07); }

/* sidebar-এ সচল পাতা + সচল ছাঁকনি-চিপ → সবুজ */
html.theme-light .nav-item.active,
html.theme-light .chip-on {
  background: var(--green-soft);
  color: var(--green);
}
html.theme-light .nav-item.active { font-weight: 600; }
html.theme-light .chip-on { border-color: var(--green); }

/* মিটার আর কলাম-চার্টে সবুজ জীবন */
html.theme-light .meter-fill { background: linear-gradient(90deg, #0aa06e, #067647); }
html.theme-light .meter-fill.ok { background: linear-gradient(90deg, #0aa06e, #067647); }
html.theme-light .meter-fill.warn { background: linear-gradient(90deg, #c86a1a, #b54708); }
html.theme-light .meter-fill.crit { background: linear-gradient(90deg, #cf3a2b, #b42318); }
html.theme-light .bar-fill { background: linear-gradient(180deg, #0aa06e, #067647); }
html.theme-light .bar.zero .bar-fill { background: var(--track); opacity: 1; }

/* সময়সূচি-চিপ সবুজ (শুধু লাইট) */
html.theme-light .tt-chip { background: var(--green-soft); color: var(--green); }
html.theme-light .tt-chip.lab { background: var(--teal-soft); color: var(--teal); }
html.theme-light .tt-chip:hover,
html.theme-light details.tt-x[open] > summary.tt-chip { border-color: var(--green); }
html.theme-light .tt-chip.cancelled { background: var(--red-soft); color: var(--red); }

/* ছকের সারি-হোভার সবুজাটে */
html.theme-light tbody tr:hover { background: #f1f7f4; }

/* KPI কার্ডে রঙিন অ্যাকসেন্ট — উপরে পাতলা রেখা + লেবেল রঙ (সব AA) */
html.theme-light .kpi { position: relative; }
html.theme-light .kpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
html.theme-light .kpi-up::before { background: linear-gradient(90deg, #0aa06e, #067647); }
html.theme-light .kpi-req::before { background: linear-gradient(90deg, #2683d3, #175cd3); }
html.theme-light .kpi-err::before { background: linear-gradient(90deg, #cf3a2b, #b42318); }
html.theme-light .kpi-sign::before { background: linear-gradient(90deg, #7d52d4, #6941c6); }
html.theme-light .kpi-up .kpi-label { color: #067647; }
html.theme-light .kpi-req .kpi-label { color: #175cd3; }
html.theme-light .kpi-err .kpi-label { color: #b42318; }
html.theme-light .kpi-sign .kpi-label { color: #6941c6; }
html.theme-light .kpi-value { color: var(--text); }

/* ---------- ডার্ক-থিম রঙ-ফুশন (AMOLED কালো + রঙিন ঝোঁক) — লাইটে কোনো প্রভাব নেই ---------- */

/* sidebar-এ সচল পাতা + সচল ছাঁকনি-চিপ → সবুজ */
html.theme-dark .nav-item.active {
  background: #3ddba41f;
  color: #3ddba4;
  font-weight: 600;
}
html.theme-dark .chip-on {
  background: #3ddba41f;
  border-color: #3ddba4;
  color: #3ddba4;
}

/* মিটার আর কলাম-চার্টে সবুজ জীবন (সাদা-এ-সাদার বদলে) */
html.theme-dark .meter-fill { background: linear-gradient(90deg, #34d399, #059669); }
html.theme-dark .meter-fill.ok { background: linear-gradient(90deg, #34d399, #059669); }
html.theme-dark .meter-fill.warn { background: linear-gradient(90deg, #fbbf24, #d97706); }
html.theme-dark .meter-fill.crit { background: linear-gradient(90deg, #f87171, #dc2626); }
html.theme-dark .bar-fill { background: linear-gradient(180deg, #34d399, #059669); }
html.theme-dark .bar.zero .bar-fill { background: var(--track); opacity: 1; }

/* সময়সূচি-চিপ সবুজ (শুধু ডার্ক) */
html.theme-dark .tt-chip { background: #3ddba417; color: #6ee7b7; }
html.theme-dark .tt-chip.lab { background: #2dd4bf1f; color: #5eead4; }
html.theme-dark .tt-chip:hover,
html.theme-dark details.tt-x[open] > summary.tt-chip { border-color: #3ddba4; }
html.theme-dark .tt-chip.cancelled { background: #f8717117; color: #fca5a5; }

/* ছকের সারি-হোভার মরু-সবুজাটে */
html.theme-dark tbody tr:hover { background: #0b1410; }

/* ---------- exam / admit card / grade sheet (Phase 4) ---------- */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.alert-warn { background: var(--yellow-soft); border: 1px solid var(--yellow-soft); color: var(--yellow); }
html.theme-dark .alert-warn { background: #fbbf2414; border-color: #fbbf2440; color: #fcd34d; }

.admit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admit-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  break-inside: avoid;
}
.admit-void { opacity: .78; border-style: dashed; }
.admit-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.admit-brand { font-family: 'Bricolage', sans-serif; font-weight: 700; letter-spacing: .04em; }
.admit-title { font-size: .78rem; color: var(--text-dim); }
.admit-exam { font-size: .78rem; font-weight: 600; color: var(--primary); }
.admit-body { display: flex; flex-direction: column; gap: 7px; }
.admit-row { display: flex; justify-content: space-between; gap: 16px; font-size: .82rem; }
.admit-row span { color: var(--text-dim); }
.admit-row strong { text-align: right; font-weight: 600; }
.admit-foot { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.admit-reason { font-size: .72rem; color: var(--red); width: 100%; }
.admit-sign { font-size: .68rem; color: var(--text-dim); }

.grade-title { font-family: 'Bricolage', sans-serif; font-size: 1.1rem; font-weight: 700; }
.grade-meta { color: var(--text-dim); font-size: .82rem; margin: 4px 0 14px; }
.grade-table td, .grade-table th { white-space: nowrap; }

.cal-toolbar { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cal-month { font-family: 'Bricolage', sans-serif; font-size: 1.15rem; font-weight: 700; min-width: 190px; text-align: center; }
.cal-day { padding: 12px 0; border-top: 1px solid var(--border); }
.cal-day:first-of-type { border-top: 0; padding-top: 4px; }
.cal-day-head { font-size: .82rem; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
.cal-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); }
.cal-item:last-child { margin-bottom: 0; }
.cal-item-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-desc { margin-top: 4px; white-space: pre-wrap; }
.cal-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cal-links .chip { text-decoration: none; }

@media (max-width: 760px) {
  .admit-grid { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 12mm; }
  .sidebar, .head-tools, .alert, .btn, .page-head .page-sub a { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .content-wrap { max-width: none; padding: 0; }
  body { background: #fff !important; color: #111 !important; }
  .card, .admit-card { border-color: #bbb !important; background: #fff !important; box-shadow: none !important; }
  .admit-grid { grid-template-columns: 1fr 1fr; }
  .badge { border: 1px solid #999; }
}
