/* ==========================================================================
   NALVAZHI — Neighborhood Group Computerization System
   Design system v2 · "Executive Ledger"
   Fonts: Outfit (UI) + Noto Sans Malayalam (ml)
   Palette: Ink #0A1E2E / Teal #0E7C66 / Gold #C99544 / Paper #F6F4EF
   ========================================================================== */

:root {
  --ink: #0a1e2e;
  --ink-soft: #10344f;
  --navy: #10344f;
  --navy-700: #17466a;
  --navy-900: #07161f;
  --teal: #0e7c66;
  --teal-bright: #17b08f;
  --teal-wash: #e6f4ef;
  --gold: #c99544;
  --gold-bright: #e2b563;
  --gold-wash: #faf1df;
  --bg: #f6f4ef;
  --paper: #fbf9f4;
  --card: #ffffff;
  --text: #1f2d3a;
  --muted: #6b7b8a;
  --line: #e7e2d8;
  --line-strong: #d8d2c4;
  --success: #0f7f5c;
  --warning: #b07a20;
  --danger: #b3403f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 40, 0.04), 0 10px 24px -22px rgba(10, 30, 46, 0.35);
  --shadow-md: 0 2px 4px rgba(16, 30, 40, 0.05), 0 24px 48px -32px rgba(10, 30, 46, 0.45);
  --ring: 0 0 0 3px rgba(23, 176, 143, 0.16);
  --sidebar-w: 272px;
  --font: "Outfit", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*::selection { background: rgba(23, 176, 143, 0.22); }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.002em;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% -4%, rgba(23, 176, 143, 0.07), transparent 40%),
    radial-gradient(circle at 96% 0%, rgba(201, 149, 68, 0.08), transparent 36%);
  background-attachment: fixed;
}

a { color: var(--navy-700); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--teal); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ml { font-family: "Noto Sans Malayalam", "Outfit", sans-serif; }
code, .masked {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- shell -- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
  color: #fff;
  z-index: 1045;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(23, 176, 143, 0.24), transparent 62%),
    radial-gradient(100% 45% at 100% 100%, rgba(201, 149, 68, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1e2e 0%, #07161f 100%);
  /* no visible scrollbar, whatever the content height */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }

.app-body {
  margin-left: var(--sidebar-w);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-content { padding: 30px 34px 40px; flex: 1 1 auto; max-width: 1480px; width: 100%; }

.app-footer {
  border-top: 1px solid var(--line);
  padding: 16px 34px calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}

/* ---------------------------------------------------------------- brand -- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 18px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal) 70%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  flex: 0 0 42px;
  box-shadow:
    inset 0 0 0 1px rgba(226, 181, 99, 0.45),
    0 12px 26px -14px rgba(23, 176, 143, 0.9);
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.94rem;
  line-height: 1.1;
  color: #fff;
}
.brand-tag {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.side-role {
  margin: 4px 16px 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 11px;
}
.side-role .avatar { width: 34px; height: 34px; font-size: 0.72rem; }
.side-role .n { font-size: 0.82rem; font-weight: 600; line-height: 1.2; color: #fff; }
.side-role .r { font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); }

.side-group {
  padding: 16px 24px 7px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  font-weight: 600;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.side-link i { font-size: 1.02rem; width: 19px; text-align: center; opacity: 0.85; color: rgba(255, 255, 255, 0.6); transition: color 0.18s ease; }
.side-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.side-link:hover i { color: var(--gold-bright); }
.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(23, 176, 143, 0.26), rgba(23, 176, 143, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.side-link.active i { color: var(--teal-bright); opacity: 1; }
.side-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(226, 181, 99, 0.65);
}
.side-chip {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(226, 181, 99, 0.18);
  color: #f4d7a4;
}

.side-foot { margin-top: auto; padding: 18px 18px 22px; }
.side-foot .note-box {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 11px 13px;
  font-size: 0.67rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
.side-foot a { color: rgba(255, 255, 255, 0.7); font-size: 0.73rem; }
.side-foot a:hover { color: var(--gold-bright); }
.side-foot .btn-link { color: rgba(255, 255, 255, 0.7); font-size: 0.73rem; }
.side-foot .btn-link:hover { color: var(--gold-bright); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 31, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

body:has(.app-sidebar.open) { overflow: hidden; }

/* --------------------------------------------------------------- topbar -- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 34px;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid rgba(231, 226, 216, 0.9);
}
.tb-menu {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.tb-menu:active { transform: scale(0.96); }

.tb-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-sub {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.tb-search { position: relative; width: min(320px, 30vw); }
.tb-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa8b2; font-size: 0.85rem; }
.tb-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 10px 16px 10px 38px;
  font-size: 0.83rem;
  font-family: var(--font);
  color: var(--text);
  transition: box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.tb-search input::placeholder { color: #9dabb6; }
.tb-search input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(14, 124, 102, 0.45);
  box-shadow: var(--ring);
}

.tb-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: #4c6474;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0.95rem;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.tb-icon:hover { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.tb-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #fff;
}

.tb-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 13px 3px 3px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.tb-user-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tb-user-btn .n { font-size: 0.79rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.tb-user-btn .r { font-size: 0.63rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------- avatar -- */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.avatar.sm { width: 32px; height: 32px; font-size: 0.66rem; }
.avatar.lg { width: 58px; height: 58px; font-size: 1.02rem; }
.avatar.teal { background: linear-gradient(140deg, var(--teal), var(--teal-bright)); }
.avatar.amber { background: linear-gradient(140deg, #a8711f, var(--gold-bright)); }
.avatar.blue { background: linear-gradient(140deg, #17466a, #4a83c8); }
.avatar.rose { background: linear-gradient(140deg, #9c3b57, #d7648a); }

/* ----------------------------------------------------------- page head -- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.page-head .lead-sub { color: var(--muted); font-size: 0.86rem; margin-top: 6px; max-width: 640px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 149, 68, 0));
}

/* Cards always size to their own content. Forcing height:100% makes a card
   inside a stacked column resolve against the column's (flex-stretched)
   height, which produced huge empty cards and content that ran over the
   footer. Rhythmic, content-sized cards are the safer default. */

/* ---------------------------------------------------------------- cards -- */
.card-x {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: auto;
  overflow: hidden;
}
.card-x .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.card-x .hd h2 { font-size: 0.98rem; font-weight: 650; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
.card-x .hd .sub { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }
.card-x .bd { padding: 22px 24px; }
.card-x .bd.tight { padding: 0; }
.card-x .ft {
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------------------------------------------------------------- stats -- */
.stat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fdfcf9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow-sm);
  height: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.stat .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  flex: 0 0 44px;
}
.ico-navy { background: linear-gradient(150deg, #e9f0f6, #dbe6ef); color: var(--navy); }
.ico-teal { background: linear-gradient(150deg, #e6f4ef, #d5eee5); color: var(--teal); }
.ico-amber { background: linear-gradient(150deg, var(--gold-wash), #f6e7c9); color: #9a6c1d; }
.ico-green { background: linear-gradient(150deg, #e4f5ed, #d3eede); color: #0f7f5c; }
.ico-violet { background: linear-gradient(150deg, #efeafb, #e4dcf8); color: #5b49c4; }
.ico-rose { background: linear-gradient(150deg, #fceaf0, #f8dbe6); color: #a63a5c; }
.stat .val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .val small { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .lbl { font-size: 0.76rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.01em; }
.stat .trend { font-size: 0.71rem; font-weight: 600; margin-top: 9px; display: inline-flex; align-items: center; gap: 4px; }
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }
.trend.flat { color: var(--muted); }

/* --------------------------------------------------------------- badges -- */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.45;
  white-space: nowrap;
  border: 1px solid transparent;
}
.bs-green { background: #e7f6ee; color: #0d7554; border-color: #d2ecdf; }
.bs-blue { background: #eaf1f8; color: #1c4c70; border-color: #d9e6f2; }
.bs-amber { background: var(--gold-wash); color: #8f6317; border-color: #f1e0c0; }
.bs-grey { background: #f1efea; color: #5d6b76; border-color: #e6e2d9; }
.bs-red { background: #fbeceb; color: #a53938; border-color: #f4d9d8; }
.bs-teal { background: var(--teal-wash); color: #0b6a58; border-color: #d2ecdf; }
.bs-violet { background: #f0ebfb; color: #5b49c4; border-color: #e3daf8; }

/* --------------------------------------------------------------- tables -- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  position: relative;
}
.table-wrap::-webkit-scrollbar { height: 7px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }

.tbl { width: 100%; margin: 0; font-size: 0.85rem; border-collapse: collapse; }
.tbl thead th {
  background: var(--paper);
  color: #7b8894;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
}
.tbl tbody td { padding: 13px 22px; border-bottom: 1px solid #f1eee6; color: #2a3a47; vertical-align: middle; }
.tbl tbody tr { transition: background 0.14s ease; }
.tbl tbody tr:hover { background: #fbfaf6; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.01em; }
.tbl .strong { font-weight: 600; color: var(--ink); }
.tbl .muted { color: var(--muted); font-size: 0.78rem; }
.tbl tfoot td { padding: 13px 22px; background: var(--paper); font-weight: 650; border-top: 1px solid var(--line); color: var(--ink); }

.mini-av { display: flex; align-items: center; gap: 11px; }
.mini-av .n { font-weight: 600; color: var(--ink); font-size: 0.855rem; line-height: 1.25; }
.mini-av .e { font-size: 0.71rem; color: var(--muted); }

.table-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

/* ------------------------------------------------------------- capacity -- */
.cap-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cap-top .k { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.cap-top .v { font-size: 0.82rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cap-bar { height: 8px; background: #efece3; border-radius: 999px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transition: width 0.4s ease; }
.cap-fill.warn { background: linear-gradient(90deg, #b07a20, var(--gold-bright)); }
.cap-fill.full { background: linear-gradient(90deg, #9e3736, #d4695f); }
.cap-note { font-size: 0.72rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ------------------------------------------------------------- timeline -- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 18px 30px; margin-left: 7px; border-left: 2px solid #eeeae0; }
.tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl .node { position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.tl .node.amber { border-color: var(--gold); }
.tl .node.blue { border-color: #2f6b96; }
.tl .node.red { border-color: var(--danger); }
.tl .node.violet { border-color: #5b49c4; }
.tl .t { font-size: 0.84rem; color: #2a3a47; font-weight: 550; }
.tl .m { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- notes -- */
.note {
  display: flex;
  gap: 11px;
  background: #eef4f7;
  border: 1px solid #dfeaf0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.81rem;
  color: #33505f;
  line-height: 1.6;
}
.note i { color: var(--navy-700); font-size: 0.98rem; margin-top: 1px; }
.note.warn { background: var(--gold-wash); border-color: #f0e0c2; color: #7a5716; }
.note.warn i { color: #a2721d; }
.note.good { background: #eaf7f1; border-color: #d1ecdf; color: #17664e; }
.note.good i { color: var(--teal); }
.note.plain { background: var(--paper); border-color: var(--line); color: #4d616f; }

/* ------------------------------------------------------------- kv lists -- */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #eeeae0;
  font-size: 0.83rem;
}
.kv li:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; color: var(--ink); text-align: right; }

/* -------------------------------------------------------------- buttons -- */
.btn { font-family: var(--font); border-radius: var(--radius-sm); letter-spacing: 0.01em; }
.btn-nv {
  background: linear-gradient(135deg, var(--ink), var(--navy-700));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  box-shadow: 0 12px 24px -18px rgba(10, 30, 46, 0.95);
}
.btn-nv:hover, .btn-nv:focus { color: #fff; filter: brightness(1.12); }
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  box-shadow: 0 12px 24px -18px rgba(14, 124, 102, 0.95);
}
.btn-teal:hover, .btn-teal:focus { color: #fff; filter: brightness(1.06); }
.btn-nv-out {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: #2b4658;
  font-weight: 550;
  font-size: 0.85rem;
  padding: 9px 18px;
}
.btn-nv-out:hover { background: var(--paper); border-color: #c9c2b2; color: var(--ink); }
.btn-soft {
  background: #eef3f7;
  border: 1px solid #e0e9ef;
  color: #1c4c70;
  font-weight: 550;
  font-size: 0.8rem;
  padding: 7px 14px;
}
.btn-soft:hover { background: #e4edf3; color: var(--ink); }
.btn-xs { padding: 6px 12px; font-size: 0.76rem; border-radius: 10px; }
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5b6d7a;
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-icon:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-link { font-family: var(--font); }

/* ------------------------------------------------------------- quick act -- */
.quick {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fdfcf9);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  height: auto;
}
.quick:hover {
  border-color: #d6d0c1;
  box-shadow: var(--shadow-md);
  color: var(--text);
  transform: translateY(-2px);
}
.quick .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; flex: 0 0 40px; }
.quick .t { font-size: 0.86rem; font-weight: 620; color: var(--ink); }
.quick .s { font-size: 0.73rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------------------------------------------------------------- forms -- */
.form-label { font-size: 0.78rem; font-weight: 600; color: #35495a; margin-bottom: 7px; letter-spacing: 0.01em; }
.form-label .req { color: var(--danger); }
.form-control, .form-select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.87rem;
  font-family: var(--font);
  color: var(--text);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder { color: #a2aeb7; }
.form-control:focus, .form-select:focus {
  border-color: rgba(14, 124, 102, 0.6);
  box-shadow: var(--ring);
  color: var(--text);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #cf5b58; background-image: none; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(179, 64, 63, 0.13); }
.form-control.is-valid, .form-select.is-valid { border-color: #2a9d77; background-image: none; }
.form-control:disabled, .form-select:disabled { background: #f3f1ea; color: #8c99a3; }
.invalid-feedback, .error-text { display: block; color: var(--danger); font-size: 0.73rem; margin-top: 6px; font-weight: 500; }
.hint { font-size: 0.72rem; color: #86939d; margin-top: 6px; line-height: 1.5; }
.input-group-text {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-input:focus { border-color: var(--teal); box-shadow: var(--ring); }
.form-check-label { font-size: 0.82rem; color: #43586a; }
fieldset + fieldset { margin-top: 24px; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); padding: 8px; background: #fff; }
.dropdown-item { border-radius: 10px; font-size: 0.83rem; padding: 8px 11px; font-family: var(--font); }
.dropdown-item:hover { background: var(--paper); color: var(--ink); }
.dropdown-header { font-size: 0.73rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.dropdown-divider { border-color: var(--line); margin: 6px 0; }

/* ------------------------------------------------------------ hero card -- */
.grp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(23, 176, 143, 0.35), transparent 55%),
    radial-gradient(70% 100% at 0% 100%, rgba(201, 149, 68, 0.22), transparent 60%),
    linear-gradient(120deg, #0a1e2e 0%, #10344f 55%, #0c4a46 100%);
  box-shadow: 0 30px 60px -42px rgba(10, 30, 46, 0.95);
}
.grp-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.09), transparent 62%);
}
.grp-hero .code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(226, 181, 99, 0.16);
  border: 1px solid rgba(226, 181, 99, 0.35);
  color: #f3d8ab;
}
.grp-hero h2 { font-size: 1.4rem; font-weight: 700; margin: 12px 0 6px; color: #fff; letter-spacing: -0.03em; }
.grp-hero .meta { font-size: 0.79rem; color: rgba(255, 255, 255, 0.68); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.grp-hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.grp-hero .cap-bar { background: rgba(255, 255, 255, 0.16); height: 7px; }
.grp-hero .cap-fill { background: linear-gradient(90deg, var(--teal-bright), #7ef2d6); }
.grp-hero .cap-note { color: rgba(255, 255, 255, 0.6); }
.grp-hero .stat-inline .it .k { color: rgba(255, 255, 255, 0.58); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- auth --- */
.auth-wrap { display: grid; grid-template-columns: 1.04fr 0.96fr; min-height: 100vh; min-height: 100dvh; }

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(23, 176, 143, 0.26), transparent 55%),
    radial-gradient(100% 70% at 100% 100%, rgba(201, 149, 68, 0.2), transparent 60%),
    linear-gradient(158deg, #0a1e2e 0%, #07161f 55%, #05121a 100%);
  scrollbar-width: none;
}
.auth-brand::-webkit-scrollbar { display: none; }
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: -190px;
  bottom: -210px;
  border: 1px solid rgba(226, 181, 99, 0.22);
  background: radial-gradient(circle at 40% 40%, rgba(226, 181, 99, 0.14), transparent 66%);
}
.auth-brand .inner { position: relative; z-index: 2; }
.auth-headline {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  max-width: 460px;
  color: #fff;
}
.auth-headline span { color: var(--gold-bright); }
.auth-sub { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; line-height: 1.7; max-width: 440px; margin-top: 16px; }

.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 13px; max-width: 450px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); line-height: 1.55; }
.auth-points .tick {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: rgba(23, 176, 143, 0.16);
  border: 1px solid rgba(23, 176, 143, 0.28);
  color: #7ef2d6;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex: 0 0 23px;
  margin-top: 1px;
}
.auth-foot {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 30px;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(23, 176, 143, 0.09) 0%, transparent 62%),
    radial-gradient(600px 380px at 0% 100%, rgba(201, 149, 68, 0.1) 0%, transparent 60%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.72rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.035em; }
.auth-card .sub { color: var(--muted); font-size: 0.87rem; margin-top: 7px; }
.auth-card .card-x { padding: 28px; border-radius: 24px; box-shadow: var(--shadow-md); }
.auth-card .card-x .bd { padding: 0; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #2a3f4f;
  font-weight: 600;
  font-size: 0.865rem;
  font-family: var(--font);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.social-btn:hover { background: var(--paper); border-color: #cbc4b4; color: var(--ink); box-shadow: var(--shadow-sm); }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a4ad;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 22px 0;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.role-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.role-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  color: #43586a;
  cursor: pointer;
}
.role-tab input { display: none; }
.role-tab i { color: #8b98a4; font-size: 0.85rem; }
.role-tab:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); color: #0b6a58; font-weight: 600; }
.role-tab:has(input:checked) i { color: var(--teal); }

/* ---------------------------------------------------------------- modal -- */
.modal-content { border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 90px -40px rgba(7, 22, 31, 0.6); }
.modal-header { border-bottom: 1px solid var(--line); padding: 19px 24px; }
.modal-title { font-size: 1.02rem; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top: 1px solid var(--line); padding: 15px 24px; gap: 8px; }
.modal-backdrop.show { opacity: 0.45; }
.modal .btn-close:focus { box-shadow: var(--ring); }

/* ---------------------------------------------------------------- toast -- */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  display: grid;
  gap: 10px;
  max-width: 380px;
}
.nv-toast {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 24px 50px -30px rgba(7, 22, 31, 0.7);
  font-size: 0.82rem;
  color: #2a3a47;
  animation: nvToastIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.nv-toast i { font-size: 1rem; color: var(--teal); margin-top: 1px; }
.nv-toast.warn { border-left-color: var(--gold); }
.nv-toast.warn i { color: #a2721d; }
.nv-toast.err { border-left-color: var(--danger); }
.nv-toast.err i { color: var(--danger); }
.nv-toast .ts { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
@keyframes nvToastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- charts -- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 176px; padding-top: 8px; }
.bars .col-b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.bars .bar {
  width: 100%;
  max-width: 36px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  position: relative;
  transition: filter 0.2s ease;
}
.bars .bar.alt { background: linear-gradient(180deg, #f0dcb8, var(--gold)); }
.bars .col-b:hover .bar { filter: brightness(1.06); }
.bars .lb { font-size: 0.68rem; color: var(--muted); }
.bars .vl { font-size: 0.68rem; font-weight: 650; color: #3d4f5d; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.74rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 4px; background: var(--teal); }
.legend .sw.alt { background: var(--gold); }

.ring {
  --pct: 70;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), #efece3 0);
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 112px;
}
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring b { position: relative; z-index: 2; font-size: 1.18rem; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; }
.ring small { position: relative; z-index: 2; font-size: 0.62rem; color: var(--muted); display: block; text-align: center; }

/* ---------------------------------------------------------- misc / empty -- */
.divider-line { height: 1px; background: var(--line); margin: 20px 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 1.9rem; color: #c3cfd8; display: block; margin-bottom: 10px; }
.empty .t { font-size: 0.9rem; font-weight: 600; color: #41586a; }
.empty .s { font-size: 0.78rem; margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .form-control, .filters .form-select { font-size: 0.82rem; padding: 9px 13px; }
.filters .search-in { position: relative; min-width: 240px; }
.filters .search-in i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9aa8b2; font-size: 0.8rem; }
.filters .search-in input { padding-left: 34px; }

.tabs-x { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
.tabs-x::-webkit-scrollbar { display: none; }
.tabs-x a {
  padding: 13px 15px;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs-x a.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 650; }

.stat-inline { display: flex; flex-wrap: wrap; gap: 28px; }
.stat-inline .it .k { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.stat-inline .it .v { font-size: 1.16rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.timeline-day { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #86939d; font-weight: 600; margin: 0 0 9px; }

.pill-tabs { display: inline-flex; background: #efece3; border-radius: 12px; padding: 3px; gap: 2px; }
.pill-tabs a { font-size: 0.76rem; font-weight: 600; color: #5f6f7b; padding: 7px 13px; border-radius: 9px; }
.pill-tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 30, 40, 0.14); }

.masked { letter-spacing: 0.06em; font-size: 0.82rem; color: #485c6b; }

/* pagination (Bootstrap 5 views) */
.pagination { margin: 0; gap: 4px; }
.pagination .page-link {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #40586a;
  font-size: 0.78rem;
  padding: 6px 11px;
  background: #fff;
}
.pagination .page-link:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .disabled .page-link { color: #b3bcc4; background: #faf8f3; }

/* ------------------------------------------------------------ responsive -- */
@media (min-width: 992px) {
  /* a drawer left open while widening the window must not lock the page */
  .sidebar-backdrop { display: none !important; }
  body:has(.app-sidebar.open) { overflow: auto; }
}

@media (max-width: 1399.98px) {
  .app-content { padding: 26px 26px 36px; }
  .app-topbar { padding: 12px 26px; }
  .app-footer { padding-left: 26px; padding-right: 26px; }
}

@media (max-width: 1199.98px) {
  .tb-search { width: min(260px, 26vw); }
  .page-head h1 { font-size: 1.55rem; }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    width: min(84vw, 304px);
    transform: translateX(-104%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 80px rgba(7, 22, 31, 0.55);
    height: 100vh;
    height: 100dvh;
    inset: 0 auto 0 0;
  }
  .app-sidebar.open { transform: none; }
  .app-body { margin-left: 0; }
  .app-content { padding: 20px 18px 32px; }
  .app-topbar { padding: 11px 18px; gap: 10px; }
  .app-footer { padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 0.7rem; }
  .tb-sub { max-width: 40vw; }
  .page-head { gap: 14px; margin-bottom: 20px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 34px 20px; min-height: 100dvh; align-items: flex-start; }
  .auth-card { margin-top: 8px; }
  .stat:hover, .quick:hover { transform: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 0.93rem; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head > .d-flex { width: 100%; flex-wrap: wrap; gap: 8px !important; }
  .page-head > .d-flex > .btn,
  .page-head > .d-flex > a.btn { flex: 1 1 auto; text-align: center; }
  .page-head h1 { font-size: 1.45rem; }
  .page-head .lead-sub { font-size: 0.83rem; }
  .card-x .hd { padding: 15px 18px; }
  .card-x .bd { padding: 18px 18px; }
  .card-x .ft { padding: 12px 18px; }
  .tbl { min-width: 640px; }
  .tbl thead th { padding: 11px 16px; }
  .tbl tbody td { padding: 12px 16px; }
  .tbl tfoot td { padding: 12px 16px; }
  /* keep the identity column parked while the rest of the row scrolls */
  .table-wrap .tbl thead th:first-child,
  .table-wrap .tbl tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 var(--line);
  }
  .table-wrap .tbl thead th:first-child { background: var(--paper); }
  .grp-hero { padding: 22px 22px; border-radius: 20px; }
  .grp-hero h2 { font-size: 1.2rem; }
  .filters { width: 100%; }
  .filters .search-in { min-width: 0; flex: 1 1 100%; }
  .filters .hint { width: 100%; }
  .stat { padding: 16px; }
  .stat .val { font-size: 1.4rem; }
  .modal-dialog { margin: 0.7rem; }
  .modal-dialog-centered { min-height: calc(100% - 1.4rem); }
  .modal-content { border-radius: 20px; }
  .toast-stack { right: 14px; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .app-footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 575.98px) {
  .app-content { padding: 16px 14px 28px; }
  .app-topbar { padding: 10px 14px; }
  .tb-title { font-size: 0.94rem; }
  .tb-sub { font-size: 0.68rem; max-width: 52vw; }
  .tb-menu, .tb-icon { width: 38px; height: 38px; }
  .tb-user-btn { padding: 2px; border-radius: 999px; }
  .page-head h1 { font-size: 1.3rem; }
  .eyebrow { font-size: 0.6rem; }
  .card-x { border-radius: 16px; }
  .card-x .hd { padding: 14px 15px; }
  .card-x .bd { padding: 16px 15px; }
  .card-x .ft { padding: 11px 15px; border-radius: 0 0 16px 16px; }
  .card-x .hd h2 { font-size: 0.92rem; }
  .stat { padding: 14px; gap: 11px; border-radius: 16px; }
  .stat .ico { width: 38px; height: 38px; border-radius: 12px; font-size: 0.95rem; flex: 0 0 38px; }
  .stat .val { font-size: 1.24rem; }
  .stat .lbl { font-size: 0.71rem; }
  .stat .trend { font-size: 0.66rem; }
  .tbl { min-width: 600px; font-size: 0.82rem; }
  .tbl thead th { padding: 10px 13px; font-size: 0.62rem; }
  .tbl tbody td { padding: 11px 13px; }
  .tbl .muted { font-size: 0.72rem; }
  .mini-av .n { font-size: 0.82rem; }
  .mini-av .e { font-size: 0.67rem; }
  .grp-hero { padding: 19px 18px; }
  .grp-hero h2 { font-size: 1.08rem; }
  .grp-hero .meta { font-size: 0.74rem; gap: 6px 12px; }
  .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .btn-xs, .btn-icon, .btn-close { min-height: 0; }
  .btn-icon { width: 36px; height: 36px; }
  .form-control, .form-select { font-size: 0.86rem; padding: 11px 13px; min-height: 44px; }
  .auth-card h1 { font-size: 1.45rem; }
  .auth-card .card-x { padding: 20px; border-radius: 20px; }
  .auth-panel { padding: 26px 16px; }
  .role-tabs { grid-template-columns: 1fr; }
  .kv li { font-size: 0.79rem; gap: 10px; }
  .note { padding: 12px 13px; font-size: 0.78rem; }
  .bars { gap: 8px; height: 150px; }
  .bars .vl { font-size: 0.62rem; }
  .toast-stack { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .nv-toast { font-size: 0.79rem; }
  .pagination .page-link { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
