/* =========================================================
   College ERP - Enterprise Stylesheet
   ========================================================= */
:root {
  --navy-900: #101d33;
  --navy-800: #14263f;
  --navy-700: #1b3a6b;
  --navy-600: #24509c;
  --navy-500: #2f6fdb;
  --navy-100: #e3ecf9;
  --navy-50: #f0f5fc;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --border: #e3e8f0;
  --border-strong: #cfd8e6;

  --text-900: #16233a;
  --text-700: #3d4c66;
  --text-500: #67778f;
  --text-400: #8b98ab;

  --green-700: #1c7c45;
  --green-600: #279554;
  --green-100: #e4f5ec;
  --amber-700: #a86a00;
  --amber-600: #d98a13;
  --amber-100: #fdf1dc;
  --red-700: #b3313a;
  --red-600: #d64550;
  --red-100: #fde8e9;
  --blue-700: #1e56b4;
  --blue-600: #2f6fdb;
  --blue-100: #e6effd;
  --purple-700: #6a3fb5;
  --purple-100: #f0e9fb;
  --cyan-700: #0e7490;
  --cyan-100: #e0f4f9;
  --gray-700: #4a5a75;
  --gray-100: #eef1f6;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(22, 35, 58, .05);
  --shadow: 0 1px 3px rgba(22, 35, 58, .08), 0 4px 14px rgba(22, 35, 58, .06);
  --shadow-lg: 0 8px 30px rgba(22, 35, 58, .16);
  --sidebar-w: 252px;
  --header-h: 60px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-500); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text-900); }
::placeholder { color: var(--text-400); }
:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 1px; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4cede; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ================= LOGIN ================= */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #0d1a30 0%, #162c52 55%, #1b3a6b 100%);
  overflow: auto;
}
.login-brand {
  flex: 1.2;
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 420px;
}
.login-brand .crest {
  width: 58px; height: 58px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 30px; font-weight: 700; margin-bottom: 34px;
}
.login-brand h1 { font-size: 30px; margin: 0 0 10px; font-weight: 600; letter-spacing: .2px; }
.login-brand p.sub { color: #b9c9e4; margin: 0 0 40px; font-size: 15px; line-height: 1.6; }
.login-features { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.login-features .ft {
  display: flex; gap: 12px; align-items: center; color: #c9d6ec; font-size: 14px;
}
.login-features .ft .ic {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.login-foot { color: #8fa3c4; font-size: 13px; margin-top: 48px; }
.login-panel {
  flex: 1;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  min-height: 100vh;
}
.login-card { width: 100%; max-width: 420px; }
.login-card .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-card .logo-row .logo-chip {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy-700);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 22px; font-weight: 700;
}
.login-card .logo-row span { font-weight: 600; font-size: 15px; color: var(--text-900); }
.login-card h2 { font-size: 24px; margin: 0 0 6px; }
.login-card .hint { color: var(--text-500); margin: 0 0 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-700); margin-bottom: 6px; }
.form-group label .req { color: var(--red-600); }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(47,111,219,.14); }
textarea.form-control { resize: vertical; min-height: 84px; }
select.form-control { cursor: pointer; }
.form-error { font-size: 12px; color: var(--red-600); margin-top: 5px; }
.input-wrap { position: relative; }
.input-wrap .toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--text-500); cursor: pointer; padding: 4px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s;
  white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy-600); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-secondary { background: #fff; border-color: var(--border-strong); color: var(--text-700); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-100); }
.btn-ghost { background: transparent; color: var(--text-700); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red-700); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--green-700); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 32px; height: 32px; padding: 0; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--text-500); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }

/* ================= APP LAYOUT ================= */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--navy-800); color: #c6d3ea;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 60; 
  transition: transform .2s ease;
}
.sidebar .brand {
  height: var(--header-h); display: flex; align-items: center; gap: 11px;
  padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 var(--header-h);
}
.sidebar .brand .logo-chip {
  width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 19px; font-weight: 700;
}
.sidebar .brand .b-name { color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.sidebar .brand .b-sub { color: #8296bd; font-size: 11px; }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 20px; }
.sidebar-nav::-webkit-scrollbar-thumb { border-color: var(--navy-800); }
.nav-group { margin-bottom: 6px; }
.nav-group-title {
  padding: 10px 12px 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; color: #6f83a8;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: #b9c8e2; font-size: 13.4px; cursor: pointer; text-decoration: none; margin-bottom: 1px;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--navy-500); color: #fff; font-weight: 600; }
.nav-item .icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav-item .icon svg { width: 18px; height: 18px; }
.nav-item .chev { margin-left: auto; opacity: .5; }
.sidebar-foot {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7187ab;
}


.main-wrap { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .menu-toggle { display: none; flex-shrink: 0; }
.topbar .search-box { flex: 1; max-width: 460px; position: relative; min-width: 0; }
.topbar .search-box input {
  width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--border);
  border-radius: 20px; background: var(--bg); font-size: 13.5px;
}
.topbar .search-box .s-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-400); display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; pointer-events: none; }
.topbar .search-box .s-ic svg { width: 16px; height: 16px; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; display: block; }
.topbar .search-box input:focus { background: #fff; border-color: var(--navy-500); outline: none; box-shadow: 0 0 0 3px rgba(47,111,219,.12); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 9px; border: none;
  background: transparent; color: var(--text-700); cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.icon-btn .badge-dot {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--red-600); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 10px; cursor: pointer; }
.user-chip:hover { background: var(--gray-100); }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.user-chip .u-name { font-size: 13px; font-weight: 600; line-height: 1.15; }
.user-chip .u-role { font-size: 11px; color: var(--text-500); }

.content { padding: 22px 24px 48px; flex: 1; min-width: 0; }
.content-narrow { max-width: none; }
.page-loading { display: flex; align-items: center; justify-content: center; padding: 80px; color: var(--text-500); gap: 10px; }

/* ================= PAGE HEADER ================= */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .ph-title { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.page-head .ph-sub { color: var(--text-500); font-size: 13.5px; margin-top: 4px; }
.page-head .ph-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-500); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-500); }
.breadcrumb .sep { opacity: .5; }

/* ================= CARDS ================= */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card, .grid > .card { margin: 0; }
.card-pad { padding: 18px 20px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-size: 14.5px; font-weight: 700; margin: 0; }
.card-sub { font-size: 12.5px; color: var(--text-500); margin-top: 2px; }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: center;
  cursor: pointer; transition: box-shadow .15s, border-color .15s; text-align: left; width: 100%;
}
.kpi-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.kpi-card .k-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-card .k-icon svg { width: 22px; height: 22px; }
.kpi-card .k-label { font-size: 12.5px; color: var(--text-500); font-weight: 600; }
.kpi-card .k-value { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.3px; }
.kpi-card .k-sub { font-size: 11.5px; color: var(--text-500); margin-top: 2px; }
.kpi-card .k-sub .up { color: var(--green-700); font-weight: 600; }
.kpi-card .k-sub .down { color: var(--red-700); font-weight: 600; }

/* ================= TABLES ================= */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.3px; }
.data-table thead th {
  background: #f7f9fc; color: var(--text-500); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; text-align: left;
  padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none;
}
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { color: var(--text-700); }
.data-table thead th .sort-ind { opacity: .5; margin-left: 3px; font-size: 10px; }
.data-table tbody td { padding: 10px 14px; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafbfe; }
.data-table tbody tr.row-click { cursor: pointer; }
.data-table tbody tr.selected { background: var(--navy-50); }
.data-table .cell-primary { font-weight: 600; color: var(--text-900); }
.data-table .cell-sub { color: var(--text-500); font-size: 12px; }
.data-table .t-actions { display: flex; gap: 2px; justify-content: flex-end; }
.toolbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.toolbar .t-search { position: relative; flex: 1; min-width: 200px; max-width: 300px; }
.toolbar .t-search .t-search-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-400); display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; pointer-events: none; line-height: 0; }
.toolbar .t-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-400); width: 15px; height: 15px; min-width: 15px; min-height: 15px; max-width: 15px; max-height: 15px; display: block; pointer-events: none; }
.toolbar .t-search .t-search-ic svg { position: static; transform: none; width: 15px; height: 15px; min-width: 15px; min-height: 15px; max-width: 15px; max-height: 15px; display: block; }
.toolbar .t-search input { width: 100%; padding: 7px 10px 7px 30px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 13px; }
.toolbar .t-search input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(47,111,219,.12); }
.toolbar .t-filter select, .toolbar .t-page select { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font-size: 13px; cursor: pointer; }
.toolbar .t-filter select:focus, .toolbar .t-page select:focus { outline: none; border-color: var(--navy-500); }
.table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.table-foot .pg { display: flex; align-items: center; gap: 6px; }
.table-foot .pg button {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--border-strong);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 12.5px; color: var(--text-700);
}
.table-foot .pg button:hover:not(:disabled) { border-color: var(--navy-500); color: var(--navy-600); }
.table-foot .pg button.active { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.table-foot .pg button:disabled { opacity: .4; cursor: default; }
.table-foot .pg-info { font-size: 12.5px; color: var(--text-500); }
.empty-state { padding: 46px 20px; text-align: center; color: var(--text-500); }
.empty-state .e-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 12px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-400); }
.empty-state .e-title { font-weight: 600; color: var(--text-700); font-size: 14.5px; margin-bottom: 4px; }
.empty-state .e-msg { font-size: 13px; max-width: 380px; margin: 0 auto 14px; }

/* ================= BADGES ================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-red { background: var(--red-100); color: var(--red-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-700); }
.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-purple { background: var(--purple-100); color: var(--purple-700); }
.badge-cyan { background: var(--cyan-100); color: var(--cyan-700); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-navy { background: var(--navy-100); color: var(--navy-700); }

/* ================= FORMS ================= */
.form-section { margin-bottom: 22px; }
.form-section > .fs-title {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--navy-700); margin: 0 0 14px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group .help { font-size: 11.5px; color: var(--text-400); margin-top: 4px; }
.check-group { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.check-item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.check-item input { accent-color: var(--navy-600); }
.file-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 20px; text-align: center; color: var(--text-500); font-size: 12.5px; cursor: pointer;
}
.file-drop:hover { border-color: var(--navy-500); background: var(--navy-50); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ================= TABS ================= */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs .tab {
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-500);
  border: none; background: transparent; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap;
}
.tabs .tab:hover { color: var(--text-700); }
.tabs .tab.active { color: var(--navy-600); border-bottom-color: var(--navy-600); }

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(13, 22, 38, .5); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px;
  overflow-y: auto; backdrop-filter: blur(1px);
}
.modal {
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 640px; margin-bottom: 40px;
  animation: modalIn .16s ease;
}
.modal.modal-lg { max-width: 880px; }
.modal.modal-xl { max-width: 1120px; }
.modal.modal-sm { max-width: 440px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 16px; font-weight: 700; margin: 0; }
.modal-sub { font-size: 12.5px; color: var(--text-500); margin-top: 3px; }
.modal-body { padding: 20px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfe; border-radius: 0 0 12px 12px; }

/* ================= DRAWER ================= */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(13, 22, 38, .4); z-index: 110;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 94vw);
  background: var(--surface); box-shadow: var(--shadow-lg); z-index: 111;
  display: flex; flex-direction: column; animation: drawerIn .2s ease;
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.drawer-head .avatar-lg {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ================= TOASTS ================= */
#toast-root { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px 16px; min-width: 280px; max-width: 380px;
  border-left: 4px solid var(--navy-500); animation: toastIn .2s ease; font-size: 13.5px;
}
.toast.success { border-left-color: var(--green-600); }
.toast.error { border-left-color: var(--red-600); }
.toast.warning { border-left-color: var(--amber-600); }
.toast.info { border-left-color: var(--navy-500); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast-close { margin-left: auto; border: none; background: transparent; color: var(--text-400); cursor: pointer; }

/* ================= CHARTS ================= */
.chart-box { width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-500); }
.chart-legend .lg { display: flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; }

/* ================= MISC ================= */
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
  flex: 0 0 32px;
}
.avatar-sm.green { background: var(--green-100); color: var(--green-700); }
.avatar-sm.purple { background: var(--purple-100); color: var(--purple-700); }
.avatar-sm.amber { background: var(--amber-100); color: var(--amber-700); }
.avatar-sm.red { background: var(--red-100); color: var(--red-700); }
.avatar-sm.cyan { background: var(--cyan-100); color: var(--cyan-700); }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell .p-name { font-weight: 600; }
.person-cell .p-sub { font-size: 11.5px; color: var(--text-500); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--border); border-top-color: var(--navy-600); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mono { font-family: var(--mono); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; font-size: 13.3px; }
.kv .k { color: var(--text-500); font-size: 12.3px; }
.kv .v { font-weight: 600; }
.progress { height: 8px; background: var(--gray-100); border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; background: var(--navy-500); border-radius: 5px; }
.progress.green > div { background: var(--green-600); }
.progress.red > div { background: var(--red-600); }
.progress.amber > div { background: var(--amber-600); }
.legend-box {
  padding: 10px 14px; border-left: 4px solid var(--navy-500); background: var(--navy-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; margin-bottom: 14px;
}
.notice-list { display: flex; flex-direction: column; }
.notice-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f6; align-items: flex-start;
}
.notice-item:last-child { border-bottom: none; }
.notice-item .n-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 8px; }
.notice-item .n-title { font-weight: 600; font-size: 13.3px; }
.notice-item .n-meta { font-size: 12px; color: var(--text-500); margin-top: 2px; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 300px; z-index: 70; overflow: hidden;
  animation: modalIn .15s ease;
}
.dd-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; }
.dd-list { max-height: 380px; overflow-y: auto; }
.dd-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f1f4f9; cursor: pointer; align-items: flex-start; }
.dd-item:hover { background: var(--navy-50); }
.dd-item .n-ic { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.dd-item .n-txt { font-size: 13px; line-height: 1.4; }
.dd-item .n-time { font-size: 11px; color: var(--text-400); margin-top: 2px; }
.dd-foot { padding: 10px 16px; text-align: center; border-top: 1px solid var(--border); }
.dd-foot a { font-size: 13px; font-weight: 600; }

/* Search results dropdown */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg);
  max-height: 420px; overflow-y: auto; z-index: 80;
}
.sd-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f1f4f9; cursor: pointer; }
.sd-item:hover { background: var(--navy-50); }
.sd-item .sd-title { font-weight: 600; font-size: 13.3px; }
.sd-item .sd-sub { font-size: 12px; color: var(--text-500); }
.sd-item .sd-type { margin-left: auto; }
.sd-head { padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-400); background: #f7f9fc; }

/* Profile header */
.profile-head {
  display: flex; gap: 18px; align-items: center; padding: 20px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: var(--radius) var(--radius) 0 0;
}
.profile-head .ph-avatar {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
}
.profile-head .ph-name { font-size: 21px; font-weight: 700; }
.profile-head .ph-meta { color: #b9c9e4; font-size: 13px; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.profile-head .ph-actions { margin-left: auto; display: flex; gap: 8px; }

/* 404 / 403 */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .e-code { font-size: 60px; font-weight: 800; color: var(--navy-100); line-height: 1; }
.error-page h2 { font-size: 20px; margin: 10px 0 6px; }
.error-page p { color: var(--text-500); max-width: 440px; margin: 0 auto 22px; }

/* Documents / evidence */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fbfcfe; }
.doc-row .d-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--red-100); color: var(--red-700); display: flex; align-items: center; justify-content: center; }
.doc-row .d-ic.pdf { background: var(--red-100); color: var(--red-700); }
.doc-row .d-ic.img { background: var(--blue-100); color: var(--blue-700); }
.doc-row .d-ic.doc { background: var(--blue-100); color: var(--blue-700); }

/* Timetable */
.tt-table th, .tt-table td { text-align: center; }
.tt-table td.period { background: var(--navy-50); font-weight: 700; color: var(--navy-700); width: 74px; }
.tt-cell { font-size: 12px; padding: 6px; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.tt-cell .t-sub { font-weight: 700; color: var(--text-900); }
.tt-cell .t-fac { color: var(--text-500); font-size: 10.5px; margin-top: 2px; }
.tt-cell .t-room { color: var(--navy-600); font-size: 10.5px; margin-top: 2px; }
.tt-cell.break { background: var(--gray-100); color: var(--text-500); font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Calendar-ish attendance strip */
.att-strip { display: flex; gap: 3px; flex-wrap: wrap; }
.att-cell { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; }
.att-P { background: var(--green-100); color: var(--green-700); }
.att-A { background: var(--red-100); color: var(--red-700); }
.att-L { background: var(--amber-100); color: var(--amber-700); }

/* ID card / certificate previews */
.id-card {
  width: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong);
  background: #fff; box-shadow: var(--shadow);
}
.id-card .ic-head { background: var(--navy-700); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.id-card .ic-head .logo-chip { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--navy-700); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; }
.id-card .ic-head .t { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.id-card .ic-body { padding: 14px; display: flex; gap: 12px; }
.id-card .ic-photo { width: 74px; height: 88px; border-radius: 8px; background: var(--navy-100); display: flex; align-items: center; justify-content: center; color: var(--navy-700); font-weight: 700; font-size: 26px; flex: 0 0 74px; }
.id-card .ic-info { font-size: 12px; flex: 1; }
.id-card .ic-info .i-row { display: flex; justify-content: space-between; padding: 2.5px 0; border-bottom: 1px dotted var(--border); }
.id-card .ic-info .i-k { color: var(--text-500); }
.id-card .ic-info .i-v { font-weight: 700; }
.id-card .ic-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 10px; color: var(--text-500); background: var(--navy-50); }
.qr-box { width: 52px; height: 52px; }
.cert-paper {
  max-width: 720px; margin: 0 auto; background: #fff; border: 3px double var(--navy-600);
  padding: 40px 46px; text-align: center; color: var(--text-900);
}
.cert-paper .c-deco { font-family: Georgia, serif; color: var(--navy-700); }
.cert-paper .c-title { font-size: 26px; font-family: Georgia, serif; color: var(--navy-700); margin: 8px 0 4px; font-weight: 700; }
.cert-paper .c-name { font-size: 24px; font-family: Georgia, serif; margin: 18px 0 6px; font-weight: 700; border-bottom: 2px solid var(--navy-600); display: inline-block; padding: 0 30px 4px; }
.cert-paper .c-text { font-size: 13.5px; color: var(--text-700); line-height: 1.8; margin: 14px 0; }
.cert-paper .c-foot { display: flex; justify-content: space-between; margin-top: 44px; font-size: 12.5px; color: var(--text-700); }

/* Achievements/event cards */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.media-item .mi-img { height: 110px; background: linear-gradient(135deg, #dfe8f7, #c9d9f2); display: flex; align-items: center; justify-content: center; color: var(--navy-600); }
.media-item .mi-body { padding: 10px 12px; }
.media-item .mi-title { font-weight: 600; font-size: 12.5px; }
.media-item .mi-sub { font-size: 11px; color: var(--text-500); margin-top: 2px; }

/* Accordion */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion-item .acc-head { padding: 13px 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.accordion-item .acc-head:hover { background: var(--navy-50); }
.accordion-item .acc-body { padding: 14px 16px; border-top: 1px solid var(--border); }

/* Notifications page */
.notif-page-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f6; align-items: flex-start; }
.notif-page-item:hover { background: #fafbfe; }
.notif-page-item.unread { background: var(--navy-50); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main-wrap { margin-left: 0; }
  .topbar .menu-toggle { display: flex !important; }
  .login-brand { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .ph-actions { width: 100%; }
  .drawer { width: 100vw; }
  .profile-head .ph-actions { margin-left: 0; margin-top: 10px; }
  .profile-head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .grid-4, .grid-5, .grid-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .content { padding: 12px 12px 40px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .search-box { max-width: 160px; }
  .topbar .search-box input { padding-left: 32px; font-size: 12.5px; }
  .user-chip .u-name, .user-chip .u-role { display: none; }
  .user-chip { padding: 4px; }
  .modal-backdrop { padding: 10px 10px 40px; }
  .modal.modal-lg, .modal.modal-xl { max-width: 100%; }
  .form-grid { gap: 10px; }
  .page-head .ph-title { font-size: 17px; }
  .tabs { gap: 0; }
  .tabs .tab { padding: 8px 10px; font-size: 12.5px; }
  .toolbar { gap: 6px; padding: 8px 10px; }
  .toolbar .t-search { min-width: 150px; }
  .table-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cert-paper { padding: 20px 16px; }
  .id-card { width: 100%; }
  .kv { grid-template-columns: 120px 1fr; }
  .kpi-card .k-value { font-size: 20px; }
  .page-head { margin-bottom: 14px; }
  .legend-box { font-size: 12px; }
}
@media (max-width: 400px) {
  .topbar .search-box { display: none; }
  .icon-btn { width: 34px; height: 34px; }
}

/* ================= LAYOUT FIXES & ENHANCEMENTS ================= */

/* Ensure main-wrap and content fill full viewport */
html, body { height: 100%; overflow-x: hidden; }
.app-shell { height: 100%; min-height: 100vh; }
.main-wrap { min-height: 100vh; max-width: 100%; overflow-x: hidden; }

/* Topbar polish */
.topbar { box-shadow: 0 1px 0 var(--border); }
.topbar .menu-toggle { display: none; flex-shrink: 0; }
/* Search icon size — canonical rule is in the topbar section above; no override needed here */
.topbar .search-box input:focus { box-shadow: 0 0 0 3px rgba(47,111,219,.12); }
.topbar-actions { flex-shrink: 0; }
.icon-btn svg { display: block; }
.user-chip { border: none; background: transparent; user-select: none; flex-shrink: 0; }
.user-chip .u-name, .user-chip .u-role { display: block; white-space: nowrap; overflow: hidden; max-width: 120px; text-overflow: ellipsis; }

/* Sidebar improvements */
.sidebar { overflow: hidden; }
.sidebar-nav { scrollbar-width: thin; }
.sidebar-foot { min-height: 40px; flex-shrink: 0; word-break: break-word; }

/* Nav icon alignment */
.nav-item .icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-item .icon svg { width: 16px; height: 16px; }

/* Login page tablet layout */
@media (max-width: 1024px) and (min-width: 901px) {
  .login-brand { padding: 40px 36px; min-width: 320px; }
  .login-brand h1 { font-size: 24px; }
}
.login-panel { min-height: 100vh; }
.login-card { padding: 0; }
.login-features .ft .ic svg { width: 18px; height: 18px; }

/* Breadcrumb */
.breadcrumb { flex-wrap: wrap; }

/* Page head spacing */
.page-head { padding-bottom: 4px; }

/* Card improvements */
.card { overflow: hidden; }
.card-body { overflow-x: auto; }
.card-body.flush { padding: 0; overflow: hidden; }

/* Table improvements */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 500px; }
.data-table thead th { position: sticky; top: 0; z-index: 1; }
.data-table tbody td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }

/* Toolbar wrapping fix */
.toolbar { flex-wrap: wrap; row-gap: 8px; }
.toolbar .t-search { flex: 1 1 180px; }
.toolbar .t-filter { flex: 0 0 auto; }

/* Button group in page-head */
.ph-actions { flex-wrap: wrap; justify-content: flex-end; }
.ph-actions .btn { white-space: nowrap; }

/* KPI grid at different screen widths */
.kpi-grid[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.kpi-grid[style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; }
.kpi-grid[style*="grid-template-columns:repeat(3"] { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }

/* Inline grid fixes */
.kpi-card { min-width: 0; }
.kpi-card .k-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card .k-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal sizing */
.modal-body { padding: 18px 20px; }
.modal-backdrop { align-items: flex-start; }

/* Drawer body scrolling */
.drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.drawer { overflow: hidden; }

/* Tabs overflow handling */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* Profile head responsive */
.profile-head { align-items: flex-start; }
.profile-head .ph-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-self: center; }

/* KV list improvement */
.kv { grid-template-columns: 160px 1fr; gap: 6px 12px; }
.kv .v { word-break: break-word; }

/* Chart box */
.chart-box svg { max-height: 260px; }
.chart-box { overflow-x: auto; }

/* Icon sizes in page actions */
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn.btn-icon svg { width: 15px; height: 15px; }

/* Data table action buttons */
.t-actions { flex-wrap: nowrap; gap: 2px; }
.t-actions .btn-icon { width: 30px; height: 30px; }
.t-actions .btn-icon svg { width: 14px; height: 14px; }

/* ID card responsive */
.id-card { max-width: 340px; width: 100%; }

/* Person cell in tables */
.person-cell { min-width: 0; }
.person-cell .p-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.person-cell .p-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* Mobile sidebar overlay */
@media (max-width: 900px) {
  .sidebar { z-index: 100; height: 100vh; }
  .sidebar.open { z-index: 100; }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99;
  }
  .sidebar.open ~ .sidebar-overlay,
  .sidebar-overlay.active { display: block; }
}

/* Fix icons inside dropdown-menu nav-items (profile dropdown) */
.dropdown-menu .nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-menu .nav-item .dd-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-menu .nav-item .dd-icon svg { width: 16px; height: 16px; }

/* Fix drawer head avatar-lg icon sizing */
.drawer-head .avatar-lg svg { width: 22px; height: 22px; display: block; }

/* Fix notification icon sizes in notification list */
.notif-page-item .n-ic svg { width: 16px; height: 16px; }

/* Scrollbar for small screens */
@media (max-width: 600px) {
  ::-webkit-scrollbar { width: 5px; height: 5px; }
}

/* Fix timetable overflow */
.tt-table { min-width: 700px; }
.tt-table td, .tt-table th { padding: 6px 8px; font-size: 12px; }
.tt-cell { min-width: 80px; }

/* Fix grid in hostel/transport pages */
.grid-2.hostel-grid, .grid-2 > [data-hostel-alloc],
.grid-2 > [data-hostel-comp] { overflow: hidden; min-width: 0; }

/* Fix legend box */
.legend-box { display: flex; align-items: flex-start; gap: 8px; }
.legend-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* Fix empty state sizing */
.empty-state .e-ic svg { width: 24px; height: 24px; }

/* Finance page specific */
#fin-tbl .card { margin-top: 0; }

/* Notification items */
.notif-page-item .n-ic svg { width: 16px; height: 16px; }

/* Badge in table cells */
td .badge { display: inline-flex; vertical-align: middle; }

/* Page loading centered properly */
.page-loading { min-height: 200px; font-size: 14px; }
.page-loading .spinner { flex-shrink: 0; }

/* Error page */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; }

/* Search dropdown */
.search-dropdown { max-width: 460px; }
.sd-item { min-height: 44px; }

/* Dropdown menus */
.dropdown-menu { min-width: 280px; max-width: min(400px, 90vw); }
@media (max-width: 600px) {
  .dropdown-menu { right: -10px; min-width: 260px; }
}

/* Focus states for accessibility */
.btn:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.nav-item:focus-visible { outline: 2px solid rgba(255,255,255,.6); }
.form-control:focus-visible { outline: none; }

/* Toast improvements */
#toast-root { max-width: calc(100vw - 32px); }
.toast { max-width: min(380px, calc(100vw - 32px)); word-break: break-word; }

/* Fix inline styles for grid overrides on KPI sections */
div[style*="grid-template-columns:repeat(4,1fr)"] { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 14px; }
div[style*="grid-template-columns:repeat(3,1fr)"] { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 14px; }
div[style*="grid-template-columns:repeat(5,1fr)"] { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; gap: 14px; }

/* Smooth transitions */
.sidebar { will-change: transform; }
.modal-backdrop { will-change: opacity; }
.drawer { will-change: transform; }

/* Fix user-chip button styling */
button.user-chip { outline: none; cursor: pointer; }
button.user-chip:focus-visible { outline: 2px solid var(--navy-500); }
