:root {
  --navy: #101a34;
  --navy-2: #16213f;
  --accent: #4f6df5;
  --accent-dark: #3d57d6;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6e9f2;
  --text: #1c2333;
  --text-muted: #6b7280;
  --green: #34c38f;
  --orange: #f7a83e;
  --red: #f15b5b;
  --purple: #9b8cf2;
  --gray: #94a3b8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 26, 52, 0.04), 0 8px 24px rgba(16, 26, 52, 0.06);
}

/* Тёмная тема — системная (когда пользователь не выбрал явно светлую) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1224;
    --card: #141b30;
    --border: #262f4d;
    --text: #e7eaf6;
    --text-muted: #97a0c3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

/* Тёмная тема — выбрана явно переключателем интерфейса */
:root[data-theme="dark"] {
  --bg: #0c1224;
  --card: #141b30;
  --border: #262f4d;
  --text: #e7eaf6;
  --text-muted: #97a0c3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body, #root {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

h1, h2, h3 { margin: 0; }

/* ---------- App shell ---------- */

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

.app-shell__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-shell__content {
  flex: 1;
  padding: 24px 32px 48px;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  color: #cbd3ea;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}

.sidebar--collapsed { width: 76px; }

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 22px;
}

.sidebar__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8a63f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar__logo-text {
  color: white;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 15px;
  white-space: nowrap;
}

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar__link, .sidebar__link--group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #b7c0dd;
  font-size: 13.5px;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar__link:hover, .sidebar__link--group:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.sidebar__link--active {
  background: var(--accent);
  color: white;
}

.sidebar__icon { font-size: 17px; flex-shrink: 0; }
.sidebar__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__chevron { transition: transform 0.15s; font-size: 14px; }
.sidebar__chevron--open { transform: rotate(180deg); }

.sidebar__submenu {
  display: flex;
  flex-direction: column;
  padding-left: 34px;
  margin: 2px 0 4px;
}

.sidebar__sublink {
  padding: 8px 10px;
  border-radius: 8px;
  color: #98a2c3;
  font-size: 13px;
  font-weight: 500;
}

.sidebar__sublink:hover { color: white; background: rgba(255,255,255,0.06); }
.sidebar__sublink--active { color: white; font-weight: 600; }

.sidebar__footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar__support {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #9aa4c4;
}

.sidebar__support-title { color: #d5dbee; font-weight: 600; margin-bottom: 4px; }
.sidebar__support-line { line-height: 1.5; }

.sidebar__collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #b7c0dd;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.sidebar__collapse:hover { background: rgba(255,255,255,0.1); color: white; }

/* ---------- Topbar ---------- */

.topbar {
  height: 68px;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 24px;
}

.topbar__search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text-muted);
}

.topbar__search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }

.topbar__user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 6px;
}
.topbar__user:hover { background: var(--bg); }

.topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7ecff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.topbar__user-name { font-weight: 600; font-size: 13.5px; }
.topbar__user-role { font-size: 12px; color: var(--text-muted); }

.topbar__menu {
  position: absolute;
  top: 52px;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
  z-index: 20;
}

.topbar__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text);
}
.topbar__menu-item:hover { background: var(--bg); }
.topbar__menu-item--danger { color: var(--red); }

/* ---------- Page basics ---------- */

.page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.page__header h1 { font-size: 24px; font-weight: 700; }
.page__subtitle { color: var(--text-muted); margin: 4px 0 0; font-size: 13.5px; }

.page-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--text-muted);
}
.page-loading--fullscreen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-2--wide-left { grid-template-columns: 1.6fr 1fr; }

.stack { display: flex; flex-direction: column; }
.stack .card:last-child { margin-bottom: 0; }

/* ---------- Stat cards ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.stat-card__icon--blue { background: #e8edff; color: var(--accent); }
.stat-card__icon--orange { background: #fff2e0; color: var(--orange); }
.stat-card__icon--green { background: #e3f9f0; color: var(--green); }
.stat-card__icon--purple { background: #f0ecfe; color: var(--purple); }

.stat-card__label { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.stat-card__value { font-size: 22px; font-weight: 700; }
.stat-card__hint { margin-top: 6px; }
.stat-card__hint a { font-size: 12.5px; }

.stat-mini { display: flex; flex-direction: column; gap: 6px; }
.stat-mini__label { color: var(--text-muted); font-size: 13px; }
.stat-mini__value { font-size: 22px; font-weight: 700; }

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tabs__item {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tabs__item:hover { color: var(--text); }
.tabs__item--active { background: var(--navy); color: white; border-color: var(--navy); }
.tabs__count {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 11px;
}
.tabs__item:not(.tabs__item--active) .tabs__count {
  background: var(--bg);
  color: var(--text-muted);
}

.tabs--sub { margin: 4px 0 16px; }
.tabs--sub .tabs__item { border-radius: 8px; }
.tabs--sub .tabs__item--active { background: var(--accent); border-color: var(--accent); }

/* ---------- Toolbar ---------- */

.toolbar { margin-bottom: 16px; }
.toolbar__search {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  outline: none;
}
.toolbar__search:focus { border-color: var(--accent); }

/* ---------- Table ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.table tr:last-child td { border-bottom: none; }
.table__row--clickable { cursor: pointer; }
.table__row--clickable:hover { background: var(--bg); }
.table__row--selected { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.table__actions { display: flex; gap: 6px; }
.table-footer { padding: 12px; text-align: right; font-weight: 600; color: var(--text-muted); }

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge--blue { background: #e8edff; color: var(--accent); }
.badge--orange { background: #fff2e0; color: #c9791a; }
.badge--green { background: #e3f9f0; color: #1f9d72; }
.badge--purple { background: #f0ecfe; color: #7b5fe0; }
.badge--red { background: #fde8e8; color: #d64545; }
.badge--gray { background: #eef0f5; color: var(--text-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:disabled { opacity: 0.6; cursor: default; }
.btn--secondary { background: var(--card); border-color: var(--border); color: var(--text); }
.btn--secondary:hover { background: var(--bg); }
.btn--danger-outline { background: white; border-color: #f3c6c6; color: var(--red); }
.btn--danger-outline:hover { background: #fdf1f1; }
.btn--text { background: none; color: var(--text-muted); }
.btn--text:hover { color: var(--red); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; }

/* ---------- Forms / Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 52, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal__title { font-size: 16px; font-weight: 700; }
.modal__body { padding: 20px 22px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field span { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: flex; gap: 14px; }
.field--narrow { flex: 0 0 160px; }

.form-hint {
  background: #fff7e6;
  color: #a16207;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.form-error {
  background: #fdf1f1;
  color: var(--red);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.checkbox-list__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.inline-form { display: flex; gap: 10px; margin-bottom: 16px; }
.inline-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 32px; margin-bottom: 10px; }
.empty-state__title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state__hint { font-size: 13px; }

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), #1c2b57);
}
.login-card {
  background: var(--card);
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.login-card__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-card__logo-text { font-weight: 700; letter-spacing: 0.03em; color: var(--navy); }
.login-card h1 { font-size: 20px; }
.login-card__subtitle { color: var(--text-muted); margin: -8px 0 4px; font-size: 13px; }

/* ---------- Split (list + detail) ---------- */

.split {
  display: block;
}
.split--open {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}
.split__list { margin-bottom: 0; overflow-x: auto; }
.split__detail { position: sticky; top: 20px; margin-bottom: 0; }

.detail-header { display: flex; align-items: flex-start; justify-content: space-between; }
.detail-header__status { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.detail-header__date { color: var(--text-muted); font-size: 12px; }
.detail-header__title { font-size: 17px; font-weight: 700; }
.detail-amount { font-size: 26px; font-weight: 800; margin-top: 14px; }
.detail-contractor { color: var(--text-muted); margin-top: 2px; margin-bottom: 6px; }

.detail-fields { display: flex; flex-direction: column; gap: 12px; }
.detail-field__label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.detail-field__value { font-size: 13.5px; font-weight: 500; }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.approval-list__name { font-weight: 600; font-size: 13px; }
.approval-list__comment { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.documents-list { display: flex; flex-direction: column; gap: 12px; }
.documents-list__items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.documents-list__items li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
}
.documents-list__items li a,
.documents-list__items li .link-button { flex: 1; color: var(--text); font-weight: 500; }
.documents-list__items li a:hover,
.documents-list__items li .link-button:hover { color: var(--accent); }

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

.history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.history-list__action { font-weight: 600; font-size: 13.5px; }
.history-list__meta { font-size: 12px; color: var(--text-muted); }

/* ---------- Charts ---------- */

.chart-line { width: 100%; height: 220px; }
.chart-line__grid { stroke: var(--border); stroke-width: 1; }
.chart-line__label { fill: var(--text-muted); font-size: 10px; }

.donut-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { position: relative; flex-shrink: 0; }
.donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut__value { font-size: 22px; font-weight: 800; }
.donut__label { font-size: 11px; color: var(--text-muted); }

.legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.legend__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend__label { flex: 1; color: var(--text); }
.legend__value { color: var(--text-muted); font-weight: 600; font-size: 12.5px; }

/* ---------- Calendar ---------- */

.calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__title { font-weight: 700; font-size: 14px; }
.calendar__nav { display: flex; gap: 4px; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__grid--weekdays { margin-bottom: 4px; }
.calendar__weekday { text-align: center; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.calendar__cell {
  position: relative;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 12.5px;
}
.calendar__cell--outside { color: color-mix(in srgb, var(--text-muted) 55%, transparent); }
.calendar__cell--today { background: var(--accent); color: white; font-weight: 700; }
.calendar__dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.calendar__cell--today .calendar__dot { background: white; }

/* ---------- Tasks ---------- */

.task-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.task-list__item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.task-list__title { font-size: 13px; font-weight: 500; }
.task-list__meta { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Budgets ---------- */

.budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.budget-card { margin-bottom: 0; }
.budget-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.budget-card__name { font-weight: 700; }
.budget-card__period { font-size: 12px; color: var(--text-muted); }
.budget-card__amounts { font-size: 13.5px; margin-bottom: 8px; }
.progress { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 999px; }
.progress__bar--danger { background: var(--red); }
.budget-card__percent { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- References ---------- */

.reference-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.reference-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
}
.reference-list__item span { flex: 1; font-size: 13.5px; }
.reference-list__item input { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }

/* ---------- Switch ---------- */

.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-muted); }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Quick links (admin/company) ---------- */

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.quick-link {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.quick-link:hover { border-color: var(--accent); }
.quick-link__value { font-size: 22px; font-weight: 700; }
.quick-link__label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid-2, .grid-2--wide-left { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split--open { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sidebar { display: none; }
  .app-shell__content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
