:root {
  color-scheme: dark;
  --bg: #101318;
  --surface: #171b22;
  --surface-2: #202630;
  --line: #313946;
  --text: #f2f5f7;
  --muted: #9ea9b7;
  --red: #e23a3a;
  --amber: #d98b18;
  --blue: #2777d3;
  --green: #3aa981;
  --purple: #7c55c7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.night-mode {
  --bg: #07090d;
  --surface: #0d1117;
  --surface-2: #141923;
  --line: #222a35;
  --text: #d8e0ea;
  --muted: #818d9c;
  --red: #a83232;
  --amber: #a86e1a;
  --blue: #245f9f;
  --green: #2f7d64;
  --purple: #5f4597;
}

.night-mode {
  background: #07090d;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #141820;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-menu {
  position: relative;
}

.top-menu summary {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.top-menu summary::-webkit-details-marker {
  display: none;
}

.top-menu-panel {
  position: absolute;
  z-index: 90;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121821;
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
}

.top-menu-panel > * {
  justify-content: center;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(190px, 21vw, 276px);
  height: auto;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.status.live .status-dot {
  background: var(--green);
}

.status.error .status-dot {
  background: var(--red);
}

.shell {
  padding: 22px 28px 28px;
}

.seo-landing {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.seo-landing h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.seo-landing p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.seo-links,
.seo-places {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #131922;
}

.seo-links {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.seo-links h2,
.seo-places h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.seo-links p,
.seo-places p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.seo-link-grid,
.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-link-grid a,
.place-links a,
.seo-all-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.seo-link-grid a:hover,
.place-links a:hover,
.seo-all-link:hover {
  border-color: var(--blue);
  background: #1a2a3f;
}

.place-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.place-group h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.account-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-head.compact {
  min-height: 50px;
  padding: 12px 14px;
}

.panel-head.compact h2 {
  font-size: 16px;
}

.auth-form,
.preferences-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.modal-form {
  overflow: auto;
  max-height: min(680px, calc(100vh - 106px));
  padding: 18px 20px 20px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151d;
}

.auth-mode {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-mode.active {
  border-color: var(--blue);
  background: #1a2a3f;
  color: var(--text);
}

.auth-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-field[hidden] {
  display: none;
}

.auth-form input,
.preferences-form input,
.preferences-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12161d;
  color: var(--text);
  outline: none;
}

.auth-form input:focus,
.preferences-form input:focus,
.preferences-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(39 119 211 / 25%);
}

.auth-actions,
.geo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-btn,
.secondary-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.secondary-btn {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.primary-btn.small,
.secondary-btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.primary-btn.tiny,
.secondary-btn.tiny {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.share-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.preferences-form {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.55fr);
  align-items: end;
}

.preferences-form label,
.preferences-form legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preferences-form label input,
.preferences-form label select {
  margin-top: 6px;
}

.preferences-form fieldset {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 0 0;
  border: 0;
}

.preferences-form fieldset.region-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px 12px;
  padding-top: 4px;
}

.region-picker legend {
  grid-column: 1 / -1;
}

.region-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.zone-manager {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121821;
}

.zone-head h3 {
  color: var(--text);
  font-size: 15px;
}

.zone-head p,
.zone-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.zone-add-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1fr) 92px auto;
  gap: 8px;
  align-items: end;
}

.follow-add-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.rule-add-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 130px 120px minmax(150px, 1fr) 92px auto;
  gap: 8px;
  align-items: end;
}

.notification-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(120px, 0.7fr) 110px 110px minmax(150px, 1fr);
  gap: 8px;
  align-items: center;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 10px;
  border: 1px solid #2f6da7;
  border-radius: 8px;
  background: #101d2b;
}

.zone-chip.danger {
  border-color: #8c3b45;
  background: #24131a;
}

.zone-chip.rule {
  border-color: #4b8b6f;
  background: #102119;
}

.zone-chip strong,
.zone-chip span {
  display: block;
}

.zone-chip strong {
  color: var(--text);
  font-size: 13px;
}

.zone-chip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preferences-form fieldset label,
.geo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
}

.preferences-form fieldset input,
.geo-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.geo-row,
.geo-status,
.preferences-form > .auth-actions,
.preferences-status,
.form-status {
  grid-column: 1 / -1;
}

.radius-label {
  max-width: 120px;
}

.geo-status,
.form-status {
  min-height: 18px;
  color: #f4c36f;
  font-size: 12px;
  font-weight: 700;
}

.secondary-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.is-hidden {
  display: none;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
}

.admin-modal-shell {
  width: 100%;
  min-height: min(720px, calc(100vh - 32px));
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #11161d;
}

.admin-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171d26;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tab.active {
  border-color: #4d83d8;
  background: #1d2f4a;
  color: #f6f8fb;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  overflow: auto;
  background: var(--line);
  border-top: 0;
}

.admin-overview-hero,
.admin-feature-grid,
.admin-user-summary,
.admin-list-card {
  grid-column: 1 / -1;
}

.admin-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #151a22;
}

.admin-overview-hero span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-overview-hero strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.admin-overview-hero p {
  margin-top: 8px;
  color: #c7d0dc;
  font-size: 14px;
  font-weight: 800;
}

.admin-health-row,
.admin-user-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111821;
  color: #dbe2ea;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.admin-status-pill.good,
.admin-feature-card.green {
  border-color: #2c795e;
  background: #102119;
}

.admin-status-pill.warning,
.admin-feature-card.warning,
.admin-feature-card.amber {
  border-color: #8a641e;
  background: #241c10;
}

.admin-status-pill.blue,
.admin-feature-card.blue {
  border-color: #3267a8;
  background: #112136;
}

.admin-feature-card.red {
  border-color: #874044;
  background: #251416;
}

.admin-feature-card.purple {
  border-color: #604a9b;
  background: #1d1732;
}

.admin-feature-grid,
.admin-user-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
}

.admin-feature-card {
  min-height: 108px;
  grid-column: span 2;
  padding: 14px;
  border: 0;
  border-left: 1px solid transparent;
  background: #151a22;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-feature-card:hover,
.admin-feature-card:focus-visible {
  outline: 2px solid #4d83d8;
  outline-offset: -2px;
}

.admin-feature-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}

.admin-feature-card span {
  color: #c7d0dc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-section-title {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: #11161d;
}

.admin-section-title span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-section-title strong {
  color: #f6f8fb;
  font-size: 20px;
}

.admin-card,
.admin-empty {
  min-height: 88px;
  padding: 14px;
  background: #151a22;
}

.admin-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 23px;
}

.admin-card h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

.admin-card p,
.admin-empty {
  color: #dbe2ea;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-card.wide {
  grid-column: span 3;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #dbe2ea;
  font-size: 13px;
  font-weight: 800;
}

.admin-list li:last-child {
  border-bottom: 0;
}

.admin-list span {
  color: var(--muted);
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(140px, 0.7fr) minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #121821;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
}

.admin-user-row > div > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-row > div > strong {
  color: #f2f5f7;
  font-size: 13px;
  line-height: 1.35;
}

.admin-empty-inline {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: #0b0f14;
}

.admin-page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #11161d;
}

.admin-page-head h1 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.admin-page-head p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-page-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-page-panel {
  min-height: 620px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--line);
}

.admin-action-card p {
  margin-bottom: 12px;
}

.admin-input-modal {
  width: min(560px, calc(100vw - 28px));
}

.admin-input-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-input-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-input-grid input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151d;
  color: var(--text);
}

.admin-input-grid input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--blue);
}

.ad-slot {
  display: none;
  min-height: 72px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px dashed #465263;
  border-radius: 8px;
  background: #141a21;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ads-enabled .ad-slot {
  display: grid;
}

.ad-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid #3c536c;
  border-radius: 8px;
  background: linear-gradient(135deg, #142232, #1c2723);
  color: #f3f7fb;
  text-decoration: none;
}

.ad-card:hover,
.ad-card:focus-visible {
  border-color: #70a6d9;
  outline: none;
}

.ad-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.ad-card em {
  color: #c9d5e2;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.ad-label {
  color: #8fb8dd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-card-feed {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.ad-card-detail {
  margin: 12px 0;
}

.tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.2fr) auto;
  gap: 10px 14px;
  align-items: end;
  position: relative;
  z-index: 60;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111720;
}

.live-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #151a22;
}

.live-focus[hidden] {
  display: none;
}

.live-focus h2 {
  margin: 4px 0 7px;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.25;
}

.live-focus p {
  color: #dbe2ea;
  font-size: 14px;
  line-height: 1.45;
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mobile-view-tabs {
  display: none;
}

.search-wrap label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-control {
  position: relative;
}

.search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.search-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(39 119 211 / 25%);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.search-clear:hover,
.search-clear:focus-visible {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.search-clear[hidden] {
  display: none;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-control {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.region-filter {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  z-index: 70;
  justify-self: end;
}

.region-filter summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.region-filter summary::-webkit-details-marker {
  display: none;
}

.region-filter summary strong {
  color: var(--blue);
  font-size: 12px;
}

.region-filter-menu {
  position: absolute;
  z-index: 80;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, calc(100vw - 32px));
  max-height: 360px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 12px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121821;
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
}

.region-filter-menu label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.region-filter-actions {
  position: sticky;
  bottom: -12px;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0;
  background: #121821;
  border-top: 1px solid var(--line);
}

.seg,
.time-seg {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.time-seg {
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.seg:hover,
.seg.active,
.time-seg:hover,
.time-seg.active {
  border-color: var(--blue);
  color: var(--text);
  background: #1a2a3f;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary > div {
  min-height: 52px;
  padding: 9px 14px;
  background: var(--surface);
}

.metric {
  display: block;
  margin-bottom: 2px;
  font-size: 21px;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.25fr);
  gap: 18px;
  min-height: calc(100vh - 278px);
}

.feed-panel,
.map-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.map-panel {
  position: relative;
  z-index: 1;
}

.heatmap-panel {
  position: absolute;
  z-index: 700;
  top: 12px;
  right: 12px;
  width: min(320px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: rgb(14 20 29 / 92%);
  box-shadow: 0 14px 40px rgb(0 0 0 / 28%);
  backdrop-filter: blur(10px);
}

.heatmap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.heatmap-head strong {
  display: block;
  margin-top: 2px;
  color: #dbe2ea;
  font-size: 13px;
  line-height: 1.3;
}

.heatmap-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.heatmap-window {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151c;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.heatmap-window.active,
.heatmap-toggle.active {
  border-color: #f59e0b;
  color: #fff;
}

.heatmap-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #263241;
  border-radius: 8px;
  background: #111923;
  color: #dbe2ea;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.heatmap-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-row strong {
  color: #fbbf24;
}

.heatmap-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 17px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.feed-list {
  height: calc(100% - 91px);
  max-height: calc(100vh - 332px);
  min-height: 429px;
  overflow: auto;
}

.screen-mode .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  padding: 10px 24px;
}

.screen-mode .brand img {
  width: clamp(168px, 16vw, 224px);
}

.screen-mode .top-actions > :not(.status):not(.top-menu) {
  display: none;
}

.screen-mode .top-menu-panel > :not(#screenModeBtn):not(#nightModeBtn) {
  display: none;
}

.screen-mode .shell {
  padding-top: 14px;
}

.screen-mode .tools,
.screen-mode .seo-landing,
.screen-mode .seo-places,
.screen-mode .seo-links,
.screen-mode .ad-slot {
  display: none;
}

.screen-mode .live-focus {
  margin-bottom: 10px;
  padding: 18px 20px;
  background: #181f28;
}

.screen-mode .live-focus h2 {
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.14;
}

.screen-mode .live-focus p {
  font-size: clamp(15px, 1.15vw, 19px);
}

.screen-mode .focus-meta {
  font-size: 13px;
}

.screen-mode .summary {
  margin-bottom: 10px;
}

.screen-mode .summary > div {
  min-height: 64px;
  padding: 11px 16px;
}

.screen-mode .metric {
  font-size: 28px;
}

.screen-mode .workspace {
  grid-template-columns: minmax(420px, 0.86fr) minmax(520px, 1.3fr);
  gap: 12px;
  min-height: calc(100vh - 252px);
}

.screen-mode .feed-panel,
.screen-mode .map-panel,
.screen-mode #map {
  min-height: calc(100vh - 252px);
}

.screen-mode .feed-list {
  max-height: calc(100vh - 323px);
  min-height: calc(100vh - 323px);
}

.screen-mode .message {
  padding: 16px;
}

.screen-mode .message h3 {
  font-size: 18px;
}

.night-mode .topbar {
  background: #090d13;
}

.night-mode .live-focus {
  border-left-color: #7f2b2b;
  background: #0d1219;
}

.night-mode .message:hover,
.night-mode .message:focus-visible {
  background: #111822;
}

.night-mode .message.is-new {
  animation: none;
  background: #121b25;
}

.night-mode .incident-count {
  border-color: #2a5b87;
  background: #0d1a29;
  color: #86b7df;
}

.night-mode .leaflet-tile-pane {
  filter: brightness(0.68) contrast(0.9) saturate(0.72);
}

.night-mode .leaflet-control-zoom a,
.night-mode .leaflet-popup-content-wrapper,
.night-mode .leaflet-popup-tip {
  filter: brightness(0.82);
}

.retention-note {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.message {
  display: grid;
  grid-template-columns: 5px 1fr;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.message:hover,
.message:focus-visible {
  background: #1a2029;
  outline: none;
}

.message.is-new {
  animation: messagePulse 2.6s ease-out 1;
}

@keyframes messagePulse {
  0% {
    background: #233244;
  }

  100% {
    background: transparent;
  }
}

.message:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.message::before {
  content: "";
  background: var(--green);
}

.message.brandweer::before {
  background: var(--red);
}

.message.ambulance::before {
  background: var(--amber);
}

.message.politie::before {
  background: var(--blue);
}

.message.lifeliner::before {
  background: var(--purple);
}

.message-main {
  padding: 14px 15px 15px;
}

.message-top,
.message-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.priority,
.incident-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.priority {
  color: #f4c36f;
}

.incident-count {
  border: 1px solid #3d7dbd;
  background: #132338;
  color: #9fd0ff;
}

.message time,
.message-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.message h3 {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.3;
}

.message p {
  margin-top: 7px;
  color: #cdd5df;
  font-size: 14px;
  line-height: 1.45;
}

.incident-related {
  display: grid;
  gap: 5px;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid #2d3846;
  border-radius: 8px;
  background: #121821;
  color: #b9c6d5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.incident-related span {
  overflow-wrap: anywhere;
}

.message-meta {
  justify-content: space-between;
  margin-top: 12px;
}

.message-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.link-btn {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: #dbe2ea;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.link-btn:hover {
  border-color: var(--blue);
  color: #ffffff;
}

.detail-hint {
  color: #86bdf5;
  font-size: 12px;
  font-weight: 800;
}

.detail-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
}

.detail-modal::backdrop {
  background: rgb(5 8 12 / 72%);
}

.modal-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #141820;
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.25;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-body {
  overflow: auto;
  padding: 18px 20px 20px;
}

.archive-modal {
  width: min(940px, calc(100vw - 28px));
}

.archive-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.archive-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.archive-form input,
.archive-form select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151c;
  color: var(--text);
  font: inherit;
}

.archive-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.archive-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.archive-row {
  border-left: 4px solid #3d7dbd;
}

.analytics-modal {
  width: min(960px, calc(100vw - 28px));
}

.analytics-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.analytics-window {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151c;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.analytics-window.active {
  border-color: var(--blue);
  background: #18263a;
  color: #fff;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.analytics-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a22;
}

.analytics-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analytics-kpis h3 {
  grid-column: 1 / -1;
}

.analytics-kpis strong {
  display: block;
  font-size: 26px;
}

.analytics-kpis span,
.analytics-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analytics-list {
  display: grid;
  gap: 7px;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #263241;
  border-radius: 8px;
  background: #101720;
}

.analytics-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbe2ea;
  font-size: 13px;
  font-weight: 800;
}

.analytics-row strong {
  color: #9fd0ff;
  font-size: 12px;
}

.analytics-row em {
  grid-column: 1 / -1;
  color: #f4c36f;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.modal-summary,
.modal-actions,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-summary time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-message {
  margin: 12px 0 16px;
  color: #dbe2ea;
  font-size: 16px;
  line-height: 1.5;
}

.detail-map-card {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a22;
}

.detail-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-map-head h3 {
  margin-bottom: 3px;
  font-size: 15px;
}

.detail-map-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-map-head a {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #1a2a3f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.detail-map {
  width: 100%;
  height: 210px;
  background: #0c1116;
}

.detail-map > span {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-grid > div {
  min-width: 0;
  padding: 12px;
  background: #151a22;
}

.detail-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  margin-top: 16px;
}

.detail-section h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.capcode-list {
  display: grid;
  gap: 8px;
}

.capcode-row {
  display: grid;
  grid-template-columns: 86px 72px minmax(120px, 0.7fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a22;
}

.capcode-row strong {
  font-size: 13px;
}

.capcode-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.capcode-row p {
  color: #dbe2ea;
  font-size: 13px;
  line-height: 1.35;
}

.tag-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: #dbe2ea;
  font-size: 12px;
  font-weight: 800;
}

.modal-actions {
  margin-top: 18px;
}

.modal-action-status {
  min-height: 18px;
  margin-top: 10px;
  color: #f4c36f;
  font-size: 12px;
  font-weight: 800;
}

.modal-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #1a2a3f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.modal-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.followed-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.saved-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a22;
}

.saved-row h3 {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
}

.saved-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.saved-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.empty {
  padding: 24px;
  color: var(--muted);
}

#map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #0c1116;
}

#map .leaflet-pane,
#map .leaflet-top,
#map .leaflet-bottom {
  z-index: 1;
}

#map .leaflet-popup-pane {
  z-index: 2;
}

#map .leaflet-control-container {
  position: relative;
  z-index: 3;
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #ffffff;
  color: #141820;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: #0d1117;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a[aria-current="page"],
.footer-nav a:hover {
  border-color: var(--blue);
  background: #152235;
}

.footer-nav a.footer-contact {
  border-color: #2f8f61;
  background: #102119;
}

.footer-nav a.footer-contact:hover {
  border-color: var(--green);
  background: #153424;
}

.info-page {
  display: grid;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.info-hero,
.info-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.info-hero p,
.info-section p,
.info-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.info-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.source-list,
.policy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.source-list strong,
.policy-list strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .tools,
  .live-focus,
  .seo-links,
  .workspace,
  .screen-mode .workspace {
    grid-template-columns: 1fr;
  }

  .timeline-control {
    grid-column: 1 / -1;
  }

  .region-filter {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
  }

  .region-filter summary {
    width: 100%;
    justify-content: space-between;
  }

  .screen-mode .feed-panel,
  .screen-mode .map-panel,
  .screen-mode #map {
    min-height: 420px;
  }

  .screen-mode .feed-list {
    min-height: 330px;
    max-height: 54vh;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .admin-feature-grid,
  .admin-user-summary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .admin-feature-card {
    grid-column: span 1;
  }

  .admin-overview-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-user-row {
    grid-template-columns: 1fr 1fr;
  }

  .archive-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-modal {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
  }

  .admin-modal-shell {
    min-height: calc(100vh - 10px);
  }

  .admin-modal .modal-head {
    align-items: stretch;
  }

  .admin-modal .modal-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-feature-grid,
  .admin-user-summary,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card.wide,
  .admin-feature-card {
    grid-column: 1 / -1;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    min-height: auto;
    padding: 14px 16px;
  }

  .top-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .brand {
    min-height: 42px;
  }

  .brand img {
    width: 178px;
  }

  .top-actions .status {
    min-width: 104px;
  }

  .top-actions .account-chip,
  .top-actions .secondary-action {
    display: none;
  }

  .top-menu {
    margin-left: auto;
  }

  .top-menu-panel {
    right: 0;
  }

  .tools {
    gap: 10px;
  }

  .search-wrap label {
    display: none;
  }

  .control-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .seg,
  .time-seg {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 11px;
  }

  .timeline-control {
    justify-content: flex-start;
    gap: 6px;
  }

  .timeline-control span {
    width: 100%;
  }

  .live-focus {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left-width: 4px;
  }

  .live-focus .eyebrow {
    margin-bottom: 1px;
    font-size: 10px;
  }

  .live-focus h2 {
    margin: 1px 0 3px;
    font-size: 15px;
    line-height: 1.25;
  }

  .live-focus p {
    display: none;
  }

  .focus-meta {
    gap: 6px;
    margin-top: 5px;
    font-size: 11px;
  }

  .live-focus .primary-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  .summary > div {
    min-height: 46px;
    padding: 8px 10px;
  }

  .metric {
    font-size: 19px;
  }

  .metric-label {
    font-size: 11px;
  }

  .mobile-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #10151d;
  }

  .mobile-view-tab {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
  }

  .mobile-view-tab.active {
    border-color: var(--blue);
    background: #1a2a3f;
    color: var(--text);
  }

  .workspace {
    gap: 0;
  }

  .feed-panel.is-mobile-hidden,
  .map-panel.is-mobile-hidden {
    display: none;
  }

  .map-panel,
  #map {
    min-height: calc(100vh - 310px);
  }

  .heatmap-panel {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
  }

  .screen-mode .topbar {
    position: static;
    padding: 12px 16px;
  }

  .screen-mode .live-focus {
    grid-template-columns: 1fr;
  }

  .preferences-form {
    grid-template-columns: 1fr;
  }

  .zone-add-row {
    grid-template-columns: 1fr;
  }

  .follow-add-row {
    grid-template-columns: 1fr;
  }

  .rule-add-row {
    grid-template-columns: 1fr;
  }

  .notification-grid {
    grid-template-columns: 1fr;
  }

  .archive-form {
    grid-template-columns: 1fr;
  }

  .analytics-kpis {
    grid-template-columns: 1fr;
  }

  .preferences-form fieldset.region-picker {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 16px;
  }

  .site-footer {
    padding: 16px;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-card.wide {
    grid-column: 1 / -1;
  }

  .region-filter {
    justify-self: stretch;
  }

  .region-filter summary {
    width: 100%;
    justify-content: space-between;
  }

  .region-filter-menu {
    left: 0;
    right: auto;
    grid-template-columns: 1fr;
    max-height: min(360px, 58vh);
  }

  .detail-grid,
  .capcode-row,
  .saved-row {
    grid-template-columns: 1fr;
  }

  .saved-actions {
    justify-content: flex-start;
  }

  .modal-head,
  .modal-body {
    padding: 16px;
  }
}
