/* Flagzz Admin: one hand-written stylesheet (docs/ADMIN_UI.md). Colours and families come from tokens.css, which is
   generated from docs/tokens.json. No blurred shadows anywhere: every shadow is `0 Npx 0 var(--outline)`. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage_grotesque_variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus_jakarta_sans_medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus_jakarta_sans_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus_jakarta_sans_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus_jakarta_sans_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--violet); }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 2px solid var(--line);
  padding: 28px 16px 24px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.logo-wrap { padding: 0 8px 20px; }
.logo {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800;
  font-size: 38px; letter-spacing: -0.04em; line-height: 1; color: var(--ink);
}
.logo .zz {
  margin-left: 2px; padding: 2px 8px 5px; background: var(--lime); border: 2.5px solid var(--outline);
  border-radius: 12px; box-shadow: 0 3px 0 var(--outline); transform: rotate(-3deg); display: inline-block;
}
.logo--lg { font-size: 46px; }
.sidebar-label {
  padding: 0 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-2);
}
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 11px 14px; border-radius: 14px;
  border: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.nav-item .icon { color: var(--ink); }
.nav-item:hover { background: var(--surface-2); }
.nav-item--active, .nav-item--active:hover {
  background: var(--lime); border-color: var(--outline); box-shadow: 0 3px 0 var(--outline);
  font-weight: 800; color: var(--ink);
}
.sidebar-spacer { flex: 1; }
.profile-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2);
  border-radius: 14px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--violet); display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--ink); flex: none;
}
.profile-chip .who { min-width: 0; }
.profile-chip .name { font-size: 14px; font-weight: 700; }
.profile-chip .role { font-size: 12px; color: var(--ink-2); }
.profile-chip form { margin-left: auto; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--violet);
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 16px 32px; border-bottom: 2px solid var(--line);
}
.search {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line);
  border-radius: 999px; padding: 9px 16px; position: relative;
}
.search:focus-within { border-color: var(--outline); }
.search input {
  flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); min-width: 0;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface);
  border: 2px solid var(--outline); border-radius: 16px; box-shadow: 0 4px 0 var(--outline); z-index: 30; overflow: hidden;
}
.search-results:empty { display: none; }
.search-hit { display: block; padding: 10px 16px; border-top: 1px solid var(--line); }
.search-hit:first-child { border-top: 0; }
.search-hit:hover { background: var(--bg); }
.search-hit b { font-weight: 700; }
.search-hit .sub { display: block; font-size: 12px; color: var(--ink-2); }
.topbar .icon-btn { color: var(--ink); display: grid; place-items: center; }
.topbar time { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.content { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.content--roomy { gap: 24px; }

.page-head { display: flex; align-items: flex-start; gap: 16px; }
.page-head .titles { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-head .actions { display: flex; gap: 12px; align-items: center; }
.page-title {
  font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1;
}
.subtitle { font-size: 14px; color: var(--ink-2); }

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--outline); box-shadow: 0 3px 0 var(--outline); font-size: 14px; font-weight: 800; color: var(--ink);
  cursor: pointer; background: var(--surface); white-space: nowrap; transition: transform 80ms, box-shadow 80ms;
}
.btn--primary { background: var(--lime); }
.btn--secondary { background: var(--surface); }
.btn--danger { background: var(--pink); }
.btn--small { padding: 6px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--outline); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; box-shadow: none; cursor: not-allowed; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--surface-2);
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--outline); background: var(--neutral);
}
.badge--lime { background: var(--lime-tint); }
.badge--lime::before { background: var(--lime); }
.badge--pink { background: var(--pink-tint); }
.badge--pink::before { background: var(--pink); }
.badge--violet { background: var(--violet-tint); }
.badge--violet::before { background: var(--violet); }
.badge--sky { background: var(--sky-tint); }
.badge--sky::before { background: var(--sky); }
.badge--gold { background: var(--surface-2); }
.badge--gold::before { background: var(--gold); }
.badge--neutral { background: var(--surface-2); }
.badge--neutral::before { background: var(--neutral); }

/* ---------- card, stat ---------- */
.card {
  background: var(--surface); border: 2px solid var(--outline); border-radius: 20px; box-shadow: 0 4px 0 var(--outline);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card--lime { background: var(--lime); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.card-sub { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.card-link { font-size: 13px; font-weight: 700; color: var(--violet); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 18px 20px; gap: 8px; }
.stat .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat .value {
  font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .delta { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---------- segmented control and chips ---------- */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .grow { flex: 1; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.seg a, .seg button {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 2px solid transparent; background: none; cursor: pointer;
}
.seg .on {
  background: var(--surface); border-color: var(--outline); font-weight: 800; color: var(--ink);
}
.chip-wrap { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer;
}
.chip--on { background: var(--lime-tint); border-color: var(--outline); }
.chip .caret { font-size: 8px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; background: var(--surface);
  border: 2px solid var(--outline); border-radius: 14px; box-shadow: 0 3px 0 var(--outline); padding: 6px; display: none;
}
.chip-wrap.open .menu { display: block; }
.menu a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.menu a:hover { background: var(--surface-2); }
.menu a.on { font-weight: 800; background: var(--lime-tint); }

/* ---------- table ---------- */
.table th {
  background: var(--surface-2); text-align: left; padding: 12px 20px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap;
}
.table td { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table td:first-child { font-weight: 700; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: var(--bg); }
.table tbody tr.selected { background: var(--violet-tint); }
.table .right { text-align: right; }
.table .muted { color: var(--ink-2); }
.pager { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pager .btns { display: flex; gap: 12px; }

/* ---------- toggle and field ---------- */
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.toggle .track {
  position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--outline); background: var(--surface-2); padding: 3px;
}
.toggle .knob {
  display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--outline);
  transition: transform 80ms;
}
.toggle input:checked + .track { background: var(--lime); }
.toggle input:checked + .track .knob { transform: translateX(20px); background: var(--ink); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--violet); }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + .track { opacity: 0.5; }

.field {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); min-width: 76px;
}
.field input {
  border: 0; outline: 0; background: none; width: 64px; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--ink); text-align: right; padding: 0; font-variant-numeric: tabular-nums;
}
.field .unit { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field:focus-within, .field--editing { border-color: var(--outline); box-shadow: 0 3px 0 var(--outline); }
.field--wide input { width: 96px; }
.field-error {
  background: var(--pink-tint); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 700;
}

/* ---------- forms (dialogs and sign in) ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 700; }
.input, .textarea, .select {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px; font: inherit; font-size: 14px;
  background: var(--surface); color: var(--ink); outline: 0;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--outline); }
.textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--ink-2); }
.notice-error {
  background: var(--pink-tint); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 700;
}
.notice-error b { display: block; font-size: 14px; font-weight: 800; }
.warning {
  background: var(--violet-tint); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.warning b { font-size: 14px; font-weight: 800; }
.warning span { font-size: 13px; font-weight: 500; }

/* ---------- sign in ---------- */
.signin-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.signin-card {
  width: 420px; max-width: 100%; background: var(--surface); border: 2px solid var(--outline); border-radius: 28px;
  box-shadow: 0 6px 0 var(--outline); padding: 36px; display: flex; flex-direction: column; gap: 16px;
}
.signin-card .step { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.signin-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.signin-card .fine { font-size: 12px; color: var(--ink-2); }
.code-boxes { display: flex; gap: 8px; }
.code-boxes input {
  width: 52px; height: 60px; border-radius: 14px; border: 2px solid var(--outline); text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; background: var(--surface); outline: 0;
}
.code-boxes input:placeholder-shown { background: var(--surface-2); border-color: var(--line); }
.code-boxes input:focus { box-shadow: 0 3px 0 var(--outline); }

/* ---------- dialogs, toasts ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(18, 18, 20, 0.35); display: grid; place-items: center; z-index: 50; padding: 16px;
}
.dialog {
  width: 440px; max-width: 100%; background: var(--surface); border: 2px solid var(--outline); border-radius: 20px;
  box-shadow: 0 4px 0 var(--outline); padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.dialog h2 { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.dialog .actions { display: flex; gap: 12px; justify-content: flex-end; }
.toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast {
  background: var(--surface); border: 2px solid var(--outline); border-radius: 16px; box-shadow: 0 4px 0 var(--outline);
  padding: 12px 18px; font-size: 14px; font-weight: 700; animation: toast-out 3s forwards;
}
@keyframes toast-out { 0%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

/* ---------- empty, error, skeleton ---------- */
.empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--ink-2); }
.empty p { font-size: 14px; font-weight: 500; }
.error-panel {
  background: var(--pink-tint); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.error-panel .msg { flex: 1; }
.error-panel b { display: block; font-size: 14px; font-weight: 800; }
.error-panel span { font-size: 13px; font-weight: 500; }
.skeleton { background: var(--surface-2); border-radius: 8px; height: 14px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- overview ---------- */
.row { display: flex; gap: 16px; align-items: stretch; }
.row > .grow { flex: 1; min-width: 0; }
.row .w360 { width: 360px; flex: none; }
.row .w380 { width: 380px; flex: none; }
.row .w340 { width: 340px; flex: none; }
.row--top { align-items: flex-start; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; }
.bars .bar { flex: 1; background: var(--ink); border-radius: 4px; min-height: 4px; }
.bars .bar--today { background: var(--lime); border: 2px solid var(--outline); }
.axis { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.health-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.health-list { display: flex; flex-direction: column; gap: 14px; }
.list-rows .li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-rows .li:first-child { border-top: 0; padding-top: 4px; }
.li .t { font-size: 14px; font-weight: 700; }
.li .d { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.li .r { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* ---------- settings ---------- */
.banner { flex-direction: row; align-items: center; gap: 16px; }
.banner .txt { flex: 1; }
.banner .txt b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.banner .txt span { font-size: 13px; font-weight: 500; }
.setting {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line);
}
.setting:first-child { border-top: 0; }
.setting .what { flex: 1; min-width: 0; }
.setting .what b { display: block; font-size: 15px; font-weight: 700; }
.setting .what span { font-size: 13px; color: var(--ink-2); }
.setting .meta { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.impact {
  background: var(--surface-2); border: 2px solid var(--outline); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px;
}
.impact .head { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; }
.impact ul { margin: 0; padding-left: 18px; font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.impact .actions { display: flex; gap: 12px; }
.change { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.change:first-of-type { border-top: 0; padding-top: 0; }
.change .top { display: flex; justify-content: space-between; align-items: baseline; }
.change .top b { font-size: 14px; font-weight: 700; }
.change .arrow { font-size: 13px; font-weight: 800; }
.change .by { font-size: 12px; color: var(--ink-2); }
.games-table td { padding: 11px 20px; }
.tabs-note { font-size: 12px; font-weight: 500; color: var(--ink-2); }

/* ---------- drawer, popover ---------- */
.drawer h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.drawer .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer .meta { font-size: 12px; color: var(--ink-2); }
.drawer h3 { font-family: var(--font-ui); font-size: 14px; font-weight: 800; margin-top: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.kv span:first-child { color: var(--ink-2); font-weight: 500; }
.kv span:last-child { font-weight: 700; text-align: right; }
.pay-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.pay-row .amt { margin-left: auto; margin-right: 12px; font-weight: 800; }
.actions-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 12px; color: var(--ink-2); }

/* ---------- live map ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--lime);
  border: 2px solid var(--outline); box-shadow: 0 3px 0 var(--outline); font-size: 14px; font-weight: 800;
}
.live-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--outline); }
.live-pill--off { background: var(--surface-2); }
.live-pill--off::before { background: var(--gold); }
.map-card { position: relative; height: 600px; padding: 0; overflow: hidden; }
.map-card #map { position: absolute; inset: 0; }
.legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 5; background: var(--surface); border: 2px solid var(--outline);
  border-radius: 999px; padding: 8px 16px; display: flex; gap: 14px; font-size: 12px; font-weight: 700;
}
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--outline); margin-right: 6px; }
.feed-card { height: 600px; }
.feed { overflow-y: auto; margin: 0 -24px; padding: 0 24px; flex: 1; }
.feed-row { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.feed-row:first-child { border-top: 0; }
.feed-row:hover { background: var(--bg); }
.feed-row i { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--outline); margin-top: 3px; }
.feed-row .body { flex: 1; min-width: 0; }
.feed-row .t { font-size: 13px; font-weight: 700; }
.feed-row .d { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.feed-row .when { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.popover {
  position: absolute; z-index: 6; width: 300px; background: var(--surface); border: 2px solid var(--outline); border-radius: 20px;
  box-shadow: 0 4px 0 var(--outline); padding: 16px 18px; display: none; flex-direction: column; gap: 10px;
}
.popover.show { display: flex; }
.popover h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.popover .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.popover .btns { display: flex; gap: 10px; }
.c-lime { background: var(--lime); } .c-gold { background: var(--gold); } .c-sky { background: var(--sky); }
.c-violet { background: var(--violet); } .c-pink { background: var(--pink); } .c-neutral { background: var(--neutral); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 20px 8px; align-items: center; }
  .sidebar .logo-wrap, .sidebar-label, .nav-item span, .profile-chip .who, .profile-chip form { display: none; }
  .nav-item { width: 48px; justify-content: center; padding: 11px; }
  .profile-chip { padding: 8px; }
  .stats, .stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { flex-wrap: wrap; }
  .row .w360, .row .w380, .row .w340 { width: 100%; }
}

/* ---------- live map markers ---------- */
.area-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); pointer-events: none;
  white-space: nowrap;
}
.cluster-label {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--surface); font-size: 15px; font-weight: 800;
  pointer-events: none;
}
.pulse { position: relative; width: 0; height: 0; pointer-events: none; }
.pulse i {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--pulse, var(--lime));
  opacity: 0; animation: pulse-ring 1.2s ease-out forwards;
}
.pulse i:nth-child(2) { animation-delay: 0.2s; }
.pulse i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
.maplibregl-ctrl-attrib { font-size: 10px; }
