@font-face { font-family: Cinzel; src: url("./brand/cinzel-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Sora; src: url("./vendor/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face {
  font-family: Manrope;
  src: url("./vendor/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0c1018;
  --surface: #192831;
  --panel: #1c303b;
  --control: #263d49;
  --control-hover: #314d5b;
  --line: #3a515d;
  --text: #edf3f5;
  --muted: #adc1cd;
  --accent: #a9d8ea;
  --warm: #ff3b30;
  --shadow: 0 8px 28px rgb(0 0 0 / 28%);
  font: 14px/1.45 Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse at 0 0, #1b1520, transparent 56%), var(--page);
}
body.map-expanded { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.page {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(18px, 4.2vh, 44px) clamp(16px, 3vw, 40px) 24px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.title-group { display: flex; align-items: flex-start; gap: 13px; }
.title-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  margin-top: 3px;
  border: 1px solid #344c5b;
  border-radius: 8px;
  color: var(--accent);
  background: #15242e;
}
.title-icon .icon { width: 25px; height: 25px; }
h1, h2 { margin: 0; font: 400 clamp(1.75rem, 3.2vw, 2.65rem)/1.1 Georgia, serif; letter-spacing: -.025em; }
.page-heading p { margin: 7px 0 0; color: #bac5ce; font: .99rem/1.5 Georgia, serif; }
.sources-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #675040;
  border-radius: 8px;
  background: #0e131e;
  color: var(--warm);
  font-size: .88rem;
}
.sources-button:hover { background: #282225; }

.workspace {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  isolation: isolate;
  height: clamp(500px, calc(100dvh - 124px), 950px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 48px rgb(0 0 0 / 23%);
}
.workspace.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 20;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.toolbar, .map-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 12px;
  background: var(--surface);
}
.toolbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  border-radius: 2px 14px 0 0;
}
.map-footer {
  justify-content: space-between;
  gap: 8px;
  min-height: 57px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}
.is-expanded :is(.toolbar, .map-footer) { border-radius: 0; }
.search {
  position: relative;
  flex: 1 1 255px;
  min-width: 0;
  max-width: 420px;
  margin-inline-end: auto;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 9px 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--control);
  color: var(--muted);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd {
  flex: none;
  padding: 1px 6px;
  border: 1px solid #46606e;
  border-radius: 4px;
  font: 12px/1.55 ui-monospace, monospace;
}
.basemap-switch {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.basemap-switch button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
}
.basemap-switch button[aria-pressed="true"] {
  background: var(--control);
  color: var(--text);
}
.basemap-switch button:hover:enabled { color: var(--text); }
.events-controls {
  display: flex;
  align-items: center;
  flex: none;
  gap: 5px;
}
.events-legend summary {
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 8px;
  color: var(--muted);
  line-height: 44px;
  list-style-position: inside;
  cursor: pointer;
}
.events-legend summary:hover, .events-legend[open] summary {
  background: var(--control);
  color: var(--text);
}
.events-panel {
  position: absolute;
  z-index: 5;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 7px;
  width: min(350px, calc(100% - 14px));
  max-height: min(440px, 55dvh);
  padding: 12px;
  overflow: auto;
}
.events-panel p { margin: 0; color: var(--muted); font-size: .84rem; }
.events-hours, .events-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.events-hours { margin-top: 9px; }
.events-panel fieldset {
  min-inline-size: 0;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}
.events-panel legend { margin-bottom: 5px; padding: 0; font-weight: 700; }
.events-panel button {
  min-height: 36px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: .86rem;
}
.events-panel button:hover:enabled, .events-panel button[aria-pressed="true"] {
  background: var(--control);
  color: var(--text);
}
.event-filter { display: inline-flex; align-items: center; gap: 5px; }
.event-filter-swatch { width: 15px; height: 15px; border-radius: 50%; flex: none; }
.event-filter[aria-pressed="false"] { opacity: .65; }
.event-popup > div { margin-top: 4px; }
.event-popup-meta { color: var(--muted); font-weight: 400; }
.event-popup-sources { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.event-popup-sources a { color: var(--accent); overflow-wrap: anywhere; }
#events-status:not(:empty) { margin-top: 10px; }
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  white-space: nowrap;
  font-size: .9rem;
}
.tool-button .icon { color: var(--accent); }
.tool-button:hover:enabled, .tool-button[aria-pressed="true"] {
  background: var(--control);
}
.icon-only { padding: 0; }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.search-panel {
  position: absolute;
  top: calc(100% + 9px);
  z-index: 4;
  padding: 4px;
  left: 0;
  width: min(420px, calc(100vw - 58px));
  max-height: min(347px, 52dvh);
  overflow: auto;
}
.search-panel ul { margin: 0; padding: 0; list-style: none; }
.panel-note { margin: 0; padding: 10px 12px; color: var(--muted); }
.panel-note:empty { display: none; }
.search-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.search-panel li:is(:hover, [aria-selected="true"]) { background: var(--control-hover); }
.search-panel strong { font-weight: 700; }
.search-panel small { color: var(--muted); font-size: .77rem; }
.search-panel small { text-align: right; }

.map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #191b1c;
}
.map-stage.has-profile { grid-template-columns: minmax(0, 1fr) clamp(285px, 30vw, 365px); }
.map-viewport { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.map { position: absolute; inset: 0; }
.political-key {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #192831e8;
  color: var(--muted);
  pointer-events: none;
  font-size: .74rem;
}
.political-key span {
  width: 12px;
  height: 9px;
  border: 1px dashed var(--warm);
  border-radius: 8px;
  background: #edaa7c33;
}
.political-profile {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.political-profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 12px 12px 17px;
  border-bottom: 1px solid var(--line);
}
.political-profile-heading > div { min-width: 0; }
.political-profile-heading p {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
}
.political-profile-heading h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.political-content {
  display: flex;
  flex-direction: column;
  gap: 17px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 15px 17px 20px;
  scrollbar-color: var(--line) var(--surface);
}
.political-content section + section { padding-top: 13px; border-top: 1px solid #36505d; }
.political-content h3 {
  margin: 0 0 7px;
  font-size: .93rem;
  font-weight: 800;
}
.political-content p { margin: 0; font-size: .88rem; line-height: 1.58; }
.political-content .fact-sources { margin-top: 7px; color: var(--muted); font-size: .76rem; }
.political-content .fact-note { margin-top: 4px; color: var(--muted); font-size: .79rem; }
.political-content .verification { color: var(--muted); font-size: .76rem; }
.affiliation-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.affiliation-list li { min-width: 0; }
.affiliation-status { color: var(--muted); }
.political-related { display: grid; gap: 6px; }
.political-related button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  text-align: left;
}
.political-related button:hover { background: var(--control-hover); }
.map.is-measuring .maplibregl-canvas-container { cursor: crosshair; }
.map .maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map .maplibregl-ctrl-group button { width: 43px; height: 43px; }
.map .maplibregl-ctrl-group button:hover { background: var(--control-hover); }
.map .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(.94); }
.map .maplibregl-ctrl-scale {
  margin: 0 0 7px 12px;
  padding: 0 5px;
  border-color: #8fa0ad;
  color: #f0f4f7;
  background: rgb(14 19 30 / 86%);
  font: 11px/1.5 Manrope, sans-serif;
}
.map .maplibregl-ctrl-bottom-left { bottom: var(--attribution-height, 0px); }
.attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 2px 0 0 0;
  background: #192831e8;
  color: var(--muted);
  font-size: .72rem;
  overflow-wrap: anywhere;
  text-align: right;
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }
.shading-freshness-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.shading-freshness {
  max-width: 100%;
  margin-block: 3px 2px;
  padding: 2px 6px;
  border: 1px solid #496976;
  border-radius: 5px;
  background: #243d46;
  color: var(--accent);
  font-size: .78rem;
  line-height: 1.35;
  cursor: help;
}
.shading-freshness:is([data-stale="true"], [data-fallback="true"]) {
  border-color: #a57942;
  background: #453826;
  color: #ffe0a7;
}
.shading-freshness-detail {
  display: none;
  order: -1;
  max-width: min(320px, 100%);
  margin-block-start: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}
.shading-freshness-stack:is(:hover, :focus-within)
  .shading-freshness:not([hidden]) + .shading-freshness-detail:not(:empty) { display: block; }
.map-status {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 11px 15px;
  transform: translate(-50%, -50%);
}
.map-status button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
}
.map .maplibregl-popup-content {
  padding: 10px 30px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font: 700 13px/1.4 Manrope, sans-serif;
}
.map .maplibregl-popup-tip { border-top-color: var(--panel); }
.map .maplibregl-popup-close-button {
  min-width: 26px;
  min-height: 26px;
  color: var(--text);
  font-size: 19px;
}
.measurement {
  position: absolute;
  bottom: calc(var(--attribution-height, 0px) + 32px);
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 5px;
}
.measurement-copy { display: grid; padding: 3px 5px 3px 8px; }
.measurement-copy span { color: var(--muted); font-size: .8rem; }
.map-position, .footer-tools { display: flex; align-items: center; gap: 5px; }
.map-position {
  min-width: 0;
  color: var(--muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.map-position .icon { width: 16px; height: 16px; }
.notice { position: absolute; z-index: 5; right: 12px; bottom: 65px; padding: 10px 13px; }

dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 16px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(8 11 14 / 72%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.dialog-heading h2 { font-size: 1.75rem; }
dialog dl { margin: 0; }
dialog dt { margin-top: 12px; font-weight: 700; }
dialog dd { margin: 3px 0 0; color: var(--muted); }
#sources {
  width: min(590px, calc(100% - 24px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
}
#sources[open] { display: flex; flex-direction: column; }
#sources .dialog-heading {
  flex: none;
  margin: 0;
  padding: 12px clamp(16px, 4vw, 26px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.source-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px clamp(16px, 4vw, 26px) 24px;
  scrollbar-color: var(--line) var(--panel);
}
.map-key h3, .source-notes dt {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}
.map-key ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
  gap: 11px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.map-key li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .88rem;
}
.key-line, .key-area { flex: 0 0 25px; }
.key-national { border-top: 2px solid #b6c6cb; }
.key-admin { border-top: 1px dotted #8c9ca2; }
.key-disputed { border-top: 2px dashed #cfb89a; }
.key-blue-line { border-top: 2px dashed #5bd8ff; }
.key-area { height: 9px; border-radius: 2px; background: #a74c4e; }
.source-notes dt {
  margin: 18px 0 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.source-notes dd { font-size: .93rem; line-height: 1.55; }
.source-notes dd + dd { margin-top: 8px; }
.source-notes strong { color: var(--text); font-weight: 650; }
.archive-links { display: grid; justify-items: start; gap: 4px; }
#share-link {
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 620px) {
  .page { padding: 17px 12px 13px; }
  .page-heading { margin-bottom: 13px; }
  .title-group { gap: 9px; }
  .title-icon { width: 34px; height: 34px; margin-top: 0; }
  .title-icon .icon { width: 22px; height: 22px; }
  .page-heading p { font-size: .88rem; }
  .sources-button { padding-inline: 8px; }
  .workspace { height: max(440px, calc(100dvh - 112px)); }
  .toolbar, .map-footer { padding-inline: 7px; }
  .search-field { padding-inline: 8px; }
  .search-field kbd { display: none; }
  .tool-button { padding-inline: 7px; }
  .map .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 9px 9px 0 0; }
}
@media (max-width: 730px) {
  .map-stage.has-profile { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 44%); }
  .political-profile { border-left: 0; border-top: 1px solid var(--line); }
  .political-profile-heading { padding-block: 7px; }
}
@media (max-width: 560px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; max-width: none; }
  .events-controls { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .footer-tools { gap: 1px; }
  .footer-tools .tool-button { flex-direction: column; gap: 2px; font-size: .66rem; }
  .map-position { font-size: .67rem; }
  .map-position .icon { display: none; }
  .sources-button { justify-content: center; min-width: 44px; font-size: 0; }
  .sources-button .icon { width: 19px; height: 19px; }
}

.event-popup-title {
  margin: 6px 0;
  line-height: 1.35;
}

/* Latest events list and saved views */
.latest-panel { width: min(380px, calc(100% - 14px)); max-height: min(520px, 62dvh); }
.latest-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.latest-list .latest-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  text-align: start;
  line-height: 1.3;
}
.latest-item img { grid-row: span 2; width: 26px; height: 26px; align-self: center; }
.latest-item .latest-place { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.latest-item .latest-place small { margin-inline-start: 6px; color: var(--muted); font-weight: 400; }
.latest-item .latest-title { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.latest-list .latest-empty { color: var(--muted); font-size: .84rem; }
.views-panel { width: min(300px, calc(100% - 14px)); }
@media (max-width: 560px) {
  /* phones: Map/Earth and the event buttons share one row under the search */
  .events-controls { gap: 2px; }
  .events-legend summary { padding-inline: 7px; list-style: none; font-size: .88rem; }
  .events-legend summary::-webkit-details-marker { display: none; }
  .events-controls .tool-button { padding-inline: 7px; font-size: .88rem; }
  .basemap-switch button { min-width: 0; padding-inline: 8px; font-size: .8rem; }
}

/* History: day slider and changed areas */
.map-footer { position: relative; }
.history summary { list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history[open] summary { background: var(--control); color: var(--text); }
.history-panel {
  position: absolute;
  z-index: 6;
  inset-block-end: calc(100% + 8px);
  inset-inline-end: 7px;
  width: min(360px, calc(100% - 14px));
  padding: 12px 14px;
}
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.history-now {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
  color: var(--text);
  font-size: .84rem;
}
#history-day { width: 100%; margin: 8px 0 2px; accent-color: var(--accent); min-height: 32px; }
.history-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.history-panel p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.history-panel #history-summary { color: var(--text); }
.history-toggle { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .84rem; line-height: 1.6; }
.history-toggle input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.history-swatch { display: inline-block; width: 12px; height: 12px; margin: 0 4px 0 6px; border-radius: 3px; vertical-align: -1px; }
.history-swatch.gained { background: #ff4d4d; box-shadow: inset 0 0 0 2px #ffffff; }
.history-swatch.lost { background: #3ddc84; }
.history-badge {
  position: absolute;
  z-index: 4;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  font-size: .86rem;
  font-weight: 700;
}

/* Event card */
.event-card { display: grid; gap: 5px; font-size: .86rem; line-height: 1.4; }
.event-card-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin: -2px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem;
}
.event-card-nav button, .event-card-actions button, .event-card-more {
  min-width: 36px; min-height: 32px; padding: 2px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--control); color: var(--text); font: inherit;
}
.event-card-nav button:disabled { opacity: .35; }
.event-card-head { display: flex; align-items: center; gap: 9px; padding-right: 18px; }
.event-card-head img { width: 32px; height: 32px; flex: none; }
.event-card-head strong { display: block; font-size: 1rem; }
.event-card-side {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem;
}
.event-card-side::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--side); }
.event-card-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin-top: 3px; }
.event-card-place strong { font-size: .95rem; }
.event-card-place span, .event-card-meta { color: var(--muted); font-size: .8rem; }
.event-card-title { margin: 3px 0; color: var(--text); }
.event-card-count { margin-top: 4px; color: var(--warm); font-size: .8rem; font-weight: 700; }
.event-card-count.confirmed { color: #8fd694; }
.event-card-sources { display: grid; gap: 3px; margin: 2px 0 0; padding: 0; list-style: none; }
.event-card-sources li { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; }
.event-card-sources time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.event-card-sources a { color: var(--accent); overflow-wrap: anywhere; }
.event-card-more { justify-self: start; font-size: .8rem; }
.event-card-actions { display: flex; gap: 6px; margin-top: 4px; }
.event-post { margin-top: 8px; }
.event-post iframe {
  display: block; width: 100%; height: min(420px, calc(var(--card-max, 50vh) - 40px)); min-height: 260px;
  border: 1px solid var(--line); border-radius: 8px; background: #0e1621;
}
.event-post-step { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; color: var(--muted); }
.event-post-step button {
  min-width: 36px; min-height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--control); color: var(--text); font: inherit;
}
.event-card-popup .maplibregl-popup-content { max-height: var(--card-max, 50vh); overflow: auto; }
.events-heat-toggle small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }

/* Language picker */
.heading-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.language-picker {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: #0e131e; color: var(--accent);
}
.language-picker .icon { position: absolute; inset-inline-start: 10px; pointer-events: none; }
.language-picker select {
  min-height: 42px; padding-inline: 34px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer;
}
.language-picker select option { background: var(--panel); color: var(--text); }
@media (max-width: 420px) {
  .language-picker select { max-width: 110px; padding-inline-end: 4px; }
}

/* Layers panel */
.layers-panel { width: min(360px, calc(100% - 14px)); max-height: min(560px, 66dvh); }
.layers-group { margin: 0 0 10px; padding: 0; border: 0; }
.layers-group legend {
  display: flex; justify-content: space-between; width: 100%; margin-bottom: 4px;
  font-weight: 700; color: var(--text);
}
.layers-count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.layers-row {
  display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 2px 4px;
  border-radius: 8px; color: var(--text); font-size: .86rem; line-height: 1.3; cursor: pointer;
}
.layers-row:hover { background: var(--control); }
.layers-row input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.layers-swatch { width: 12px; height: 12px; flex: none; border-radius: 3px; opacity: .85; }
.layers-total {
  display: inline-block; min-width: 1.4em; margin-inline-start: 3px; padding: 0 5px; border-radius: 8px;
  background: var(--control); color: var(--text); font-size: .76rem; line-height: 1.5; text-align: center;
}
.layers-total:empty { display: none; }

/* Saved views */
.views-panel { width: min(330px, calc(100% - 14px)); }

.saved-views .saved-views-title { margin: 0 0 6px; color: var(--text); font-weight: 700; font-size: .86rem; }
.saved-views-list { display: grid; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.saved-views-list li { display: flex; gap: 5px; }
.saved-views-list .saved-view-open { flex: 1; min-height: 40px; text-align: start; overflow-wrap: anywhere; }
.saved-views-list .saved-view-delete { min-width: 40px; min-height: 40px; font-size: 1.1rem; line-height: 1; }
.saved-views-empty { color: var(--muted); font-size: .82rem; }
.save-view { display: flex; gap: 6px; }
.save-view input {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .86rem;
}
.save-view input:focus { border-color: var(--accent); outline: none; }
.save-view button { flex: none; min-height: 40px; }
.saved-views .saved-views-note { margin-top: 6px; font-size: .76rem; }
.basemap-switch button { white-space: nowrap; }
@media (max-width: 560px) {
  .basemap-switch button { padding-inline: 6px; font-size: .78rem; }
  .events-legend summary { padding-inline: 5px; font-size: .84rem; }
}
@media (max-width: 420px) {
  .layers-total { display: none; }
  .toolbar { gap: 3px; }
}

/* Label by the mouse */
.map-tooltip {
  position: absolute; z-index: 4; top: 0; left: 0; width: max-content; max-width: 260px;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: rgb(14 19 30 / 92%); color: var(--text); font-size: .8rem; line-height: 1.35;
  pointer-events: none; overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
}

/* ===== Layout: the map fills the screen, framed by flat panels ("Ink") =====
   top: one bar · left: the tool rail · right: the feed or a country profile.
   Phones: a search row and region chips on top, a tab bar below, panels as sheets above it. */
:root {
  --page: #05070c;
  --surface: #0a0e16;
  --panel: #0c111a;
  --control: #141b27;
  --control-hover: #1d2635;
  --line: #222a37;
  --hair: rgb(255 255 255 / 11%);
  --glass: rgb(8 11 18 / 95%);
  --text: #f0f4f7;
  --muted: #8f9bad;
  --accent: #f2f4f7;
  --pro: #f2f4f7;
  --pro-ink: #05070c;
  --alert: #ff4d3d;
  --radius: 4px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gap: 12px;
  --feed: 372px;
  --bar: 56px;
  --rail: 78px;
  --shadow: 0 10px 34px rgb(0 0 0 / 42%);
}
body { background: var(--page); overflow: hidden; }
.page { max-width: none; height: 100dvh; padding: 0; }
.workspace { position: relative; display: block; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; background: var(--page); }
.map-stage, .map-stage.has-profile { position: absolute; inset: 0; display: block; background: #2b2d36; }
.map-viewport { position: absolute; inset: 0; }
.panel { border-color: var(--hair); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }

/* top */
.app-bar {
  position: absolute; z-index: 8; inset: 0 0 auto 0; display: flex; align-items: center; gap: 10px;
  padding: var(--gap) var(--gap) 22px; pointer-events: none;
  background: linear-gradient(rgb(8 11 19 / 82%), rgb(8 11 19 / 0%));
}
.app-bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 44px; padding-inline: 11px 14px; border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.04rem; letter-spacing: -.015em; }
.brand-mark { width: 28px; height: 28px; background: url("./brand/mark-dark.svg") center / contain no-repeat; }
.brand-name { color: #f0f4f7; font: 800 .8rem/1 Manrope, sans-serif; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.search { flex: 0 1 300px; margin: 0; max-width: 300px; }
.search-field { border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.search-field:focus-within { border-color: var(--pro); }
.search-field input { font-size: .92rem; }
.search-field kbd { border-color: var(--line); color: var(--muted); }
.search-panel { width: min(400px, calc(100vw - 24px)); }
.map-status.is-splash { inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 22px; width: auto; max-width: none; padding: 20px; border: 0; border-radius: 0; background: #0e131e; transform: none; text-align: center; }
.map-status:not(.is-splash) .splash-logo { display: none; }
.splash-logo { width: min(190px, 46vw); height: auto; animation: splash 2.4s ease-in-out infinite; }
.is-splash span { color: var(--muted); font-size: .9rem; }
@keyframes splash { 50% { opacity: .55; } }
.welcome { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgb(8 11 14 / 58%); }
.welcome[hidden] { display: none; }
.welcome-card { display: grid; justify-items: center; gap: 12px; width: min(430px, 100%); padding: 30px 28px 28px; border: 1px solid var(--hair); border-radius: 8px; background: #0e131ef5; text-align: center; }
.welcome-card:focus { outline: none; }
.welcome-logo { width: 150px; height: 150px; }
.welcome-card h2 { margin: 4px 0 0; color: #f0f4f7; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.welcome-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.welcome-actions > * { display: grid; place-items: center; min-height: 46px; padding: 0 20px; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.welcome-explore { border: 0; background: var(--pro); color: var(--pro-ink); }
.welcome-pro { border: 1px solid rgb(255 255 255 / 50%); color: var(--pro); }
@media (prefers-reduced-motion: reduce) { .splash-logo { animation: none; } }
.region-menu { position: relative; flex: none; }
.region-menu[hidden] { display: none; }
.region-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 230px; padding-inline: 13px 11px; border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }
.region-menu summary::-webkit-details-marker { display: none; }
.region-menu summary span { overflow: hidden; text-overflow: ellipsis; }
.region-menu summary .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.region-menu[open] .region-arrow { rotate: 180deg; }
.region-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; border-radius: 8px; background: #0e131ef7; }
.region-list p { margin: 10px 10px 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.region-list button { display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: .9rem; text-align: start; }
.region-list button:hover { background: var(--control); }
.region-list button[aria-current="true"] { background: var(--pro); color: var(--pro-ink); font-weight: 700; }
.app-bar .heading-tools { display: flex; align-items: center; gap: 4px; flex: none; margin-inline-start: auto; padding: 4px 4px 4px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.utc-clock { flex: none; margin-inline-end: 6px; color: var(--muted); font: 500 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.app-bar .language-picker, .app-bar .sources-button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.app-bar .language-picker:hover, .app-bar .sources-button:hover { background: var(--control); color: var(--text); }
.app-bar .language-picker select { field-sizing: content; min-height: 36px; max-width: 160px; padding-inline-end: 24px; -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5bfd2' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 6px center / 13px no-repeat; }  /* as wide as the chosen language; own arrow, because Safari ignores the padding of a native one */
[dir="rtl"] .app-bar .language-picker select { background-position: left 6px center; }
.app-bar .sources-button { padding: 0 10px; }
.account-link { padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.account-link:hover { background: var(--control); }
.pro-button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--pro); color: var(--pro-ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.pro-button:hover { background: #ff5a50; }
body.is-pro .pro-button { display: none; }

/* right: the feed, or a country profile in its place */
.latest-dock, .political-profile {
  position: absolute; z-index: 6; inset: 74px var(--gap) var(--gap) auto; width: var(--feed);
  border: 1px solid var(--hair); border-radius: var(--radius); background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); overflow: hidden;
}
.latest-dock[open] { display: flex; flex-direction: column; }
.latest-dock:not([open]) { inset-block-end: auto; width: auto; }
.latest-dock > summary { display: flex; align-items: center; gap: 8px; padding: 13px 16px; list-style: none; cursor: pointer; font-weight: 800; font-size: 1.02rem; }
.latest-dock > summary::-webkit-details-marker { display: none; }
.latest-dock > summary:hover { background: var(--control); }
.latest-dock[open] > summary::after { content: "×"; margin-inline-start: auto; color: var(--muted); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.latest-dock .latest-panel { width: auto; max-height: none; min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 12px 14px; scrollbar-color: var(--line) transparent; }
.latest-dock .events-note { margin: 10px 4px 8px; color: var(--muted); font-size: .78rem; }
.latest-dock .latest-list { gap: 2px; margin: 0; }
.latest-dock .latest-list .latest-item {
  grid-template-columns: 30px minmax(0, 1fr); gap: 2px 11px; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text);
}
.latest-dock .latest-list li + li { border-top: 1px solid var(--hair); }
.latest-dock .latest-list .latest-item:hover { background: var(--control); }
.latest-item img { width: 30px; height: 30px; align-self: start; margin-top: 2px; }
.latest-item .latest-place { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.latest-item .latest-place small { flex: none; font-size: .74rem; font-variant-numeric: tabular-nums; }
.latest-item .latest-title { font-size: .83rem; line-height: 1.42; }
.map-stage.has-profile .latest-dock { display: none; }
.political-profile { display: grid; }
.political-profile[hidden] { display: none; }
.political-profile-heading h2 { font: 800 1.5rem/1.15 Manrope, system-ui, sans-serif; letter-spacing: -.02em; }
.political-profile-heading p { color: var(--pro); }

/* the day at a glance */
.today { margin: 2px 0 10px; padding: 14px; border: 1px solid var(--hair); border-radius: 8px; background: rgb(255 255 255 / 4%); font-size: .86rem; }
.today > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; list-style: none; cursor: pointer; }
.today > summary::-webkit-details-marker { display: none; }
.today > summary span { color: var(--muted); font-size: .76rem; }
.today-figure { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 12px; }
.today-figure strong { font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.today-figure span { color: var(--muted); }
.today-bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.today-bars button { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: start; }
.today-bars button:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.today-bars b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.today-bars i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ff6b4a var(--share), rgb(255 255 255 / 9%) var(--share)); }
.today-lines { display: grid; gap: 7px; margin: 13px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair); list-style: none; color: var(--muted); line-height: 1.4; }
.today-lines strong { color: var(--text); }
.today-lines li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.briefs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.briefs-tabs button { padding: 4px 10px; border: 1px solid var(--hair); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.briefs-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--text); }
.brief-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.brief-item { padding: 11px 0; border-bottom: 1px solid var(--hair); }
.brief-item:last-child { border-bottom: 0; }
.brief-item h4 { margin: 2px 0 0; font-size: .9rem; line-height: 1.35; }
.brief-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.brief-meta b { color: var(--accent); font-weight: 600; }
.brief-summary { margin: 6px 0 0; line-height: 1.45; }
.brief-why { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.brief-sources { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }
.brief-sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.briefs-note { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.briefs .lock-note { margin-top: 10px; }
.briefs.is-soon #briefs-when { padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--text); font-size: .7rem; letter-spacing: .02em; }
.briefs-soon-chip { padding: 4px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.briefs-soon { margin: 8px 0 0; line-height: 1.45; }
.lock-note { display: flex; align-items: center; gap: 9px; margin: 8px 0; padding: 8px 10px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 8px; background: rgb(255 255 255 / 6%); color: var(--muted); font-size: .8rem; line-height: 1.35; text-decoration: none; }
.lock-note[hidden] { display: none; }
.lock-note b { flex: none; padding: 2px 7px; border-radius: 8px; background: var(--pro); color: var(--pro-ink); font-size: .72rem; }
.lock-note:hover { color: var(--text); }
.layers-row.is-locked, fieldset:disabled .events-filters { opacity: .45; }
.pro-lock { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin: 0 0 4px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 8px; background: rgb(255 255 255 / 6%); font-size: .84rem; color: var(--muted); }
.pro-lock strong { color: var(--pro); }
.pro-lock span { grid-column: 1; }
.pro-lock a { grid-column: 2; grid-row: 1 / span 2; padding: 8px 13px; border-radius: 8px; background: var(--pro); color: var(--pro-ink); font-weight: 800; text-decoration: none; }

/* bottom: the dock */
.dock {
  position: absolute; z-index: 7; inset: auto auto 30px calc((100% - var(--feed) - var(--gap)) / 2); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 2px; width: max-content; max-width: calc(100% - var(--feed) - 4 * var(--gap));
  min-height: 0; padding: 5px; border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
#dock-latest, #dock-more { display: none; }
.dock-tools { display: flex; align-items: center; gap: 2px; padding-inline-start: 6px; margin-inline-start: 4px; border-inline-start: 1px solid var(--hair); }
.dock details { position: static; }
.dock summary, .dock .tool-button, .dock-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 62px; min-height: 50px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: .71rem; font-weight: 600; line-height: 1.2; list-style: none; cursor: pointer;
}
.dock summary::-webkit-details-marker { display: none; }
.dock .icon { width: 20px; height: 20px; color: inherit; }
.dock summary:hover, .dock .tool-button:hover:enabled, .dock-item:hover { background: var(--control); color: var(--text); }
.dock details[open] > summary, .dock .tool-button[aria-pressed="true"], .dock-item[aria-expanded="true"] { background: var(--control); color: var(--pro); }
.dock .layers-total { position: absolute; top: 2px; inset-inline-end: 8px; min-width: 18px; margin: 0; padding: 0 4px; background: var(--control-hover); font-size: .64rem; line-height: 1.6; }
.basemap-switch { margin-inline: 4px; border-color: var(--hair); border-radius: 8px; background: rgb(255 255 255 / 4%); }
.basemap-switch button { min-height: 40px; padding: 0 11px; border-radius: 8px; font-size: .8rem; font-weight: 600; }
.basemap-switch button[aria-pressed="true"] { background: var(--control-hover); color: var(--text); }
.map-position { display: none; }
.events-panel, .history-panel {
  position: absolute; inset: auto auto calc(100% + 10px) 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 190px)); padding: 16px; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--line) transparent;
}
.layers-panel { width: min(400px, calc(100vw - 24px)); }
.history-panel { width: min(560px, calc(100vw - 24px)); }
.events-panel button { border-color: var(--hair); border-radius: 8px; background: rgb(255 255 255 / 4%); }
.events-panel button:hover:enabled, .events-panel button[aria-pressed="true"] { background: var(--control-hover); color: var(--text); }
.layers-group { margin-bottom: 14px; }
.layers-group legend { color: var(--muted); font-size: .76rem; letter-spacing: .02em; }
.layers-row { min-height: 38px; padding: 2px 8px; border-radius: 8px; }
.layers-row input { order: 2; margin-inline-start: auto; }
/* switches */
.layers-row input, .history-toggle input {
  appearance: none; width: 34px; height: 20px; margin-block: 0; border-radius: 10px; background: var(--control-hover); cursor: pointer;
  background-image: radial-gradient(circle at 10px 10px, #dfe7eb 7px, transparent 7.6px); transition: background-color .15s;
}
.layers-row input:checked, .history-toggle input:checked { background-color: var(--pro); background-image: radial-gradient(circle at 24px 10px, #0a1014 7px, transparent 7.6px); }
[dir="rtl"] :is(.layers-row, .history-toggle) input { transform: scaleX(-1); }
#history-day { accent-color: var(--pro); }

/* on the map */
.map .maplibregl-ctrl-top-right { top: 74px; right: calc(var(--feed) + 2 * var(--gap)); }
.map .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 0; border-color: var(--hair); border-radius: 8px; background: var(--glass); }
.map .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.map .maplibregl-ctrl-bottom-left { bottom: 4px; left: 4px; }
.attribution { inset: auto calc(var(--feed) + 2 * var(--gap)) 0 auto; max-width: calc(100% - var(--feed) - 140px); border-radius: 2px 8px 0 0; background: rgb(14 19 30 / 72%); font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shading-freshness-stack { position: relative; display: inline-flex; align-items: flex-end; margin-inline-end: 10px; }
.attribution:has(.shading-freshness-stack:is(:hover, :focus-within)) { overflow: visible; }
.shading-freshness-detail { position: absolute; bottom: 100%; right: 0; width: 300px; white-space: normal; }
.shading-freshness { border: 0; background: none; padding: 1px 0; color: var(--muted); font-size: .7rem; }
.shading-freshness:is([data-stale="true"], [data-fallback="true"]) { border: 0; background: none; color: var(--alert); }
.political-key, .history-badge { top: 76px; left: var(--gap); border-color: var(--hair); border-radius: 8px; background: var(--glass); }
.measurement { bottom: 112px; left: 50%; transform: translateX(-50%); }
.notice { right: auto; left: 50%; bottom: 112px; transform: translateX(-50%); }
.map .maplibregl-popup-content { border-color: var(--hair); border-radius: var(--radius); background: rgb(14 19 30 / 96%); padding: 14px 32px 14px 16px; font-weight: 500; }
.map .maplibregl-popup-tip { border-top-color: rgb(14 19 30 / 96%); }
.event-card-nav button, .event-card-actions button, .event-card-more { border-color: var(--hair); border-radius: 8px; }
.pro-bar {
  position: absolute; left: calc((100% - var(--feed) - var(--gap)) / 2); bottom: 102px; z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(640px, calc(100% - var(--feed) - 48px)); padding: 8px 8px 8px 16px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 8px; background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.pro-bar p { margin: 0; color: #dbe3e7; font-size: .83rem; line-height: 1.4; }
.pro-bar p strong { color: var(--pro); }
.pro-dot { display: none; }
.pro-bar a { flex: none; padding: 8px 13px; border-radius: 8px; background: var(--pro); color: var(--pro-ink); font-weight: 800; font-size: .84rem; text-decoration: none; }
.pro-bar-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.pro-bar-close:hover { background: var(--control); color: var(--text); }
dialog { border-color: var(--hair); border-radius: 8px; }
.dialog-heading h2, h1, h2 { font-family: Manrope, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.dialog-heading h2 { font-size: 1.4rem; }

/* the feed closed: the map controls use the room */
.workspace:has(.latest-dock:not([open])):not(:has(.map-stage.has-profile)) { --feed: 0px; }
.workspace:has(.latest-dock:not([open])):not(:has(.map-stage.has-profile)) .latest-dock { width: auto; }
.workspace:has(.latest-dock:not([open])):not(:has(.map-stage.has-profile)) .maplibregl-ctrl-top-right { top: 132px; }
/* an open tool panel covers the Pro note */
.workspace:has(.dock details[open]) .pro-bar, .workspace.show-more .pro-bar { display: none; }
/* only the map */
.workspace.is-expanded { position: fixed; inset: 0; z-index: 20; height: 100%; --feed: 0px; }
.is-expanded :is(.app-bar, .latest-dock, .pro-bar) { display: none; }
.is-expanded .map .maplibregl-ctrl-top-right { top: var(--gap); }

@media (max-width: 1700px) { .utc-clock { display: none; } }
@media (max-width: 1500px) { .app-bar .sources-button span { display: none; } .search { flex-basis: 230px; } }
@media (max-width: 1240px) {
  :root { --feed: 332px; }
  .brand-name { display: none; }
  .brand { padding-inline: 9px; }
  .search { flex-basis: 220px; }
  .dock summary, .dock .tool-button, .dock-item { min-width: 50px; padding-inline: 5px; }
}
@media (max-width: 1020px) and (min-width: 731px) {
  .app-bar > nav { position: absolute; top: 66px; inset-inline-start: var(--gap); }
  #dock-more { display: flex; }
  .dock-tools { position: absolute; inset: auto 0 calc(100% + 10px) auto; display: none; flex-wrap: wrap; justify-content: center; gap: 6px; width: 330px; margin: 0; padding: 12px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgb(14 19 30 / 97%); }
  .show-more .dock-tools { display: flex; }
  .dock-tools .basemap-switch { order: -1; flex: 1 1 100%; margin: 0; }
  .dock-tools .basemap-switch button { flex: 1; }
  .political-key, .history-badge { top: 122px; }
}
@media (max-width: 730px) {
  :root { --feed: 0px; --gap: 8px; --tabs: calc(58px + env(safe-area-inset-bottom)); }
  .app-bar { flex-wrap: wrap; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 8px 16px; }
  .brand { order: 0; min-height: 42px; padding-inline: 8px; }
  .search { order: 1; }
  .app-bar::before { content: ""; order: 2; flex: 1 0 100%; height: 0; margin-top: -8px; }
  .search { flex: 1 1 120px; max-width: none; }
  .search-field { min-height: 42px; }
  .search-field kbd { display: none; }
  .search-field input { font-size: 16px; min-width: 0; }
  .app-bar .heading-tools { display: contents; }
  .pro-button { order: 1; min-height: 42px; border-radius: 8px; }
  .app-bar :is(.language-picker, .sources-button, .account-link) { order: 4; min-height: 36px; border: 1px solid var(--hair); border-radius: 8px; background: var(--glass); }
  .app-bar .language-picker { width: 36px; overflow: hidden; }
  .app-bar .language-picker select { width: 36px; padding: 0; background-image: none; color: transparent; }
  .app-bar .sources-button { min-width: 36px; padding: 0; justify-content: center; }
  .account-link { padding: 8px 6px; font-size: .8rem; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .pro-button { padding-inline: 10px; font-size: .8rem; }
  .app-bar > nav { order: 3; flex: 1 1 0; min-width: 0; }
  .region-menu summary { min-height: 36px; width: max-content; max-width: 100%; }
  .region-list { max-height: 60vh; }
  .dock { inset: auto 0 0 0; transform: none; width: 100%; max-width: none; gap: 0; padding: 4px 6px env(safe-area-inset-bottom); border-width: 1px 0 0; border-radius: 0; }
  #dock-latest, #dock-more { display: flex; }
  .dock > * { flex: 1 1 0; min-width: 0; }
  .dock summary, .dock-item { min-width: 0; }
  .dock .layers-total { inset-inline-end: calc(50% - 22px); }
  .dock-tools { position: absolute; inset: auto 0 100% 0; display: none; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 12px; border: 0; border-top: 1px solid var(--hair); background: rgb(14 19 30 / 97%); }
  .show-more .dock-tools { display: flex; }
  .dock-tools > details, .dock-tools > .tool-button { flex: 1 1 22%; }
  .dock-tools .basemap-switch { order: -1; flex: 1 1 100%; margin: 0; }
  .dock-tools .basemap-switch button { flex: 1; min-height: 44px; }
  .map-position { display: flex; flex: 1 1 100%; justify-content: center; }
  .events-panel, .history-panel, .layers-panel {
    inset: auto 0 100% 0; transform: none; width: 100%; max-height: min(64dvh, 560px); border-width: 1px 0 0; border-radius: 0; background: rgb(14 19 30 / 97%);
  }
  .latest-dock, .latest-dock[open], .political-profile { inset: auto 0 var(--tabs) 0; width: 100%; height: min(62dvh, 560px); border-width: 1px 0 0; border-radius: 0; background: rgb(14 19 30 / 97%); }
  .latest-dock:not([open]) { display: none; }
  .map-stage.has-profile .map-viewport { inset: 0; }
  .political-profile { grid-template-rows: auto minmax(0, 1fr); }
  .workspace .map .maplibregl-ctrl-top-right, .workspace:has(.latest-dock:not([open])):not(:has(.map-stage.has-profile)) .maplibregl-ctrl-top-right { top: 112px; right: 8px; }
  .map .maplibregl-ctrl-group button { width: 38px; height: 38px; }
  .map .maplibregl-ctrl-bottom-left { bottom: calc(var(--tabs) + 2px); }
  .attribution { inset: auto 0 var(--tabs) auto; max-width: 76%; font-size: .6rem; white-space: normal; }
  .shading-freshness-detail { width: 240px; }
  .political-key { display: none; }
  .history-badge { top: 112px; }
  .measurement, .notice { bottom: calc(var(--tabs) + 44px); width: max-content; }
  .pro-bar { left: 8px; right: 8px; bottom: calc(var(--tabs) + 44px); width: auto; max-width: none; transform: none; gap: 8px; padding: 6px 6px 6px 12px; }
  .pro-bar p { font-size: .76rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pro-bar a { padding: 8px 10px; }
  .is-expanded .dock { display: flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .events-panel, .history-panel, .latest-dock, .political-profile { animation: rise .18s ease-out; }
  @keyframes rise { from { opacity: 0; } }
}

/* ===== Ink, from tablets up: one bar, a tool rail, the feed flush at the right ===== */
@media (min-width: 731px) {
  .app-bar { gap: 0; height: var(--bar); padding: 0; background: var(--glass); border-bottom: 1px solid var(--hair); }
  .brand, .search-field, .region-menu summary, .app-bar .heading-tools { border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { min-height: var(--bar); padding-inline: 18px; border-inline-end: 1px solid var(--hair); }
  .search { align-self: stretch; display: grid; align-items: center; border-inline-end: 1px solid var(--hair); }
  .app-bar > nav { position: static; }
  .region-menu summary { min-height: calc(var(--bar) - 1px); padding-inline: 16px 14px; border-inline-end: 1px solid var(--hair); }
  .region-list { top: 100%; border-top: 0; }
  .app-bar .heading-tools { padding-inline: 12px; }
  .dock { inset: var(--bar) auto 0 0; transform: none; flex-direction: column; justify-content: flex-start; gap: 0; width: var(--rail); max-width: none; padding: 6px 0; border-width: 0 1px 0 0; border-radius: 0; box-shadow: none; }
  #dock-more { display: none; }
  .dock summary, .dock .tool-button, .dock-item { width: 100%; min-width: 0; min-height: 56px; padding-inline: 3px; border-radius: 0; overflow-wrap: anywhere; text-align: center; }
  .dock > details, .dock-tools > details { width: 100%; }
  .dock-tools, .show-more .dock-tools { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; margin: 6px 0 0; padding: 6px 0 0; border: 0; border-top: 1px solid var(--hair); background: none; }
  .dock-tools .basemap-switch { order: 0; flex: none; flex-direction: column; width: 62px; margin: 4px 0; }
  .dock-tools .basemap-switch button { flex: none; width: 100%; min-height: 32px; padding: 0 2px; border-radius: 0; font-size: .74rem; }
  .dock .layers-total { inset-inline-end: 6px; }
  .events-panel, .history-panel { inset: 8px auto auto calc(100% + 8px); transform: none; max-height: calc(100dvh - var(--bar) - 44px); }
  .events-panel { width: min(380px, calc(100vw - var(--rail) - 24px)); }
  .layers-panel { width: min(400px, calc(100vw - var(--rail) - 24px)); }
  .history-panel { width: min(560px, calc(100vw - var(--rail) - 24px)); }
  .latest-dock, .political-profile { inset: var(--bar) 0 0 auto; border-width: 0 0 0 1px; border-radius: 0; box-shadow: none; }
  .latest-dock:not([open]) { inset-block-end: auto; border-width: 0 0 1px 1px; }
  .map .maplibregl-ctrl-top-right { top: calc(var(--bar) + 10px); right: calc(var(--feed) + 10px); }
  .workspace:has(.latest-dock:not([open])):not(:has(.map-stage.has-profile)) .maplibregl-ctrl-top-right { top: calc(var(--bar) + 62px); }
  .map .maplibregl-ctrl-bottom-left { bottom: 4px; left: calc(var(--rail) + 6px); }
  .attribution { inset: auto var(--feed) 0 auto; max-width: calc(100% - var(--feed) - var(--rail) - 130px); border-radius: 0; }
  .political-key, .history-badge { top: calc(var(--bar) + 10px); left: calc(var(--rail) + 10px); }
  .measurement, .notice, .pro-bar { left: calc(var(--rail) + (100% - var(--feed) - var(--rail)) / 2); bottom: 40px; }
  .pro-bar { max-width: min(640px, calc(100% - var(--feed) - var(--rail) - 40px)); }
  .is-expanded .dock { top: 0; }
  .is-expanded .political-key, .is-expanded .history-badge { top: 10px; }
}
@media (min-width: 731px) and (max-width: 1020px) {
  .search { flex: 1 1 130px; min-width: 0; }
  .search-field { min-width: 0; }
  .search-field kbd { display: none; }
}
@media (min-width: 731px) and (max-height: 700px) {
  .dock summary, .dock .tool-button, .dock-item { min-height: 45px; font-size: .64rem; gap: 1px; }
  .dock-tools .basemap-switch button { min-height: 26px; }
}
@media (min-width: 731px) and (max-height: 560px) {
  .dock-tools span { display: none; }
  .dock summary, .dock .tool-button, .dock-item { min-height: 36px; }
  .dock-tools .basemap-switch button { min-height: 22px; }
}

/* how many channels report an event */
.latest-item .latest-source { grid-column: 2; }
:not(.latest-item) > .latest-source { margin-inline-start: 10px; }
.latest-source { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--muted); font-size: .76rem; font-weight: 600; }
.latest-source::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.latest-source.several { color: #8fd694; }
.latest-source.several::before { background: currentColor; }
.legal-links { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }

/* Situation Room: mono labels on the map's cards, like the rest of Globe Intelligence */
.today > summary strong, .feed-title, .briefs-tabs button, .briefs-soon-chip { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; font-weight: 500; }
.today > summary span { font-family: var(--mono); letter-spacing: .04em; }
.briefs.is-soon #briefs-when { border-radius: 2px; border-color: var(--alert); font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--alert); }
.today, .briefs-tabs button, .briefs-soon-chip, .lock-note, .pro-lock { border-radius: 3px !important; }

/* ---- Globe Intelligence "Situation Room" look for the map app, matching the home page:
   flat near-black surfaces, hairlines, square corners, small mono uppercase labels, white marks, red labels. */
:root { --glass: rgb(5 7 12 / 96%); --radius: 2px; }
body { background: var(--page); }
.panel, .latest-dock, .political-profile, .dock, .events-panel, .history-panel, .layers-panel, .search-panel, .region-list,
.welcome-card, .pro-bar, .measurement, .notice { border-radius: 2px !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.latest-dock, .political-profile { background: var(--page); border-color: var(--hair); }

/* labels: the home page's mono uppercase */
.latest-dock > summary, .dock summary, .dock .tool-button, .dock-item, .basemap-switch button, .account-link, .pro-button,
.region-menu summary, .layers-group legend, .region-list p, .today-lines li > :first-child, .lock-note b, .pro-lock strong,
.welcome-actions > *, .pro-bar a, .app-bar .sources-button, .app-bar .language-picker select {
  font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.latest-dock > summary { padding: 15px 16px; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--hair); }
.latest-dock > summary::before { content: "// "; color: var(--alert); }
.dock summary, .dock .tool-button, .dock-item { font-size: .6rem; }
.dock summary:hover, .dock .tool-button:hover:enabled, .dock-item:hover,
.dock details[open] > summary, .dock .tool-button[aria-pressed="true"], .dock-item[aria-expanded="true"] { background: transparent; }
.dock details[open] > summary, .dock .tool-button[aria-pressed="true"], .dock-item[aria-expanded="true"] { box-shadow: inset 2px 0 0 var(--pro); }
.basemap-switch { border-radius: 2px; background: transparent; }
.basemap-switch button { border-radius: 0; font-size: .6rem; }
.basemap-switch button[aria-pressed="true"] { background: transparent; color: var(--pro); }
.account-link, .app-bar .sources-button { font-size: .7rem; color: var(--muted); border-radius: 0; }
.account-link:hover, .app-bar .sources-button:hover, .app-bar .language-picker:hover { background: transparent; color: var(--text); }
.app-bar .language-picker select { font-size: .7rem; }
.pro-button { min-height: 34px; border-radius: 2px; font-size: .7rem; font-weight: 600; }
.pro-button:hover { background: #ffffff; }
.region-menu summary { font-size: .7rem; }

/* cards in the side panel: sections divided by hairlines, like the home page's columns */
.latest-dock .latest-panel { padding: 0 16px 14px; }
.today { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0 !important; background: none; }
.today > summary strong { color: var(--pro); }
.today > summary strong::before { content: "// "; }
.today-figure strong { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }
.today-figure span, .today-lines, .events-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.today-lines li > :first-child { color: var(--pro); }
.today-bars i { height: 2px; border-radius: 0; background: linear-gradient(90deg, var(--pro) var(--share), rgb(255 255 255 / 8%) var(--share)); }
.briefs-tabs button, .briefs-soon-chip { border-radius: 0 !important; border-color: var(--hair); }
.briefs-soon { color: var(--muted); }
.lock-note, .pro-lock { border-radius: 0 !important; border-color: var(--hair); background: none; }
.lock-note b, .pro-lock a { border-radius: 0; }
.latest-dock .latest-list .latest-item { border-radius: 0; }
.latest-item .latest-place small { font-family: var(--mono); color: var(--pro); }
.welcome-actions > *, .pro-bar a { border-radius: 2px; font-size: .74rem; }
.pro-bar { border-color: var(--hair); background: var(--page); }
.map-status.is-splash { background: var(--page); }
.is-splash span { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* ===== "Glass" design (chosen 3 December 2026), matching the home page: Sora, frosted panels floating over the map,
   round corners, red pill action, green only for live. Overrides the Situation Room rules above. ===== */
:root { --page: #04060a; --glass: rgb(10 13 20 / 66%); --hair: rgb(255 255 255 / 11%); --text: #f4f6fa; --muted: #9aa3b2;
  --red: #ff3b30; --ok: #34d399; --alert: #ff3b30; --pro: #ffffff; --radius: 16px; --mono: Sora, system-ui, sans-serif;
  font: 14px/1.5 Sora, system-ui, sans-serif; }
:focus-visible { outline-color: var(--red); }
.brand, .search-field, .region-menu summary, .app-bar .heading-tools { border-radius: 14px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand-name { font: 700 .95rem/1 Sora, sans-serif; letter-spacing: -.01em; text-transform: none; }
.utc-clock { font: 500 .78rem/1 Sora, sans-serif; font-variant-numeric: tabular-nums; }
.panel, .latest-dock, .political-profile, .dock, .events-panel, .history-panel, .layers-panel, .search-panel, .region-list,
.pro-bar, .measurement, .notice { border-radius: 18px !important; background: var(--glass); backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15); }
.welcome-card { border-radius: 24px !important; background: rgb(12 16 24 / 88%); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.latest-dock, .political-profile { border-color: var(--hair); overflow: hidden; }

/* labels: Sora, no mono */
.latest-dock > summary, .dock summary, .dock .tool-button, .dock-item, .basemap-switch button, .account-link, .pro-button,
.region-menu summary, .layers-group legend, .region-list p, .today-lines li > :first-child, .lock-note b, .pro-lock strong,
.welcome-actions > *, .pro-bar a, .app-bar .sources-button, .app-bar .language-picker select,
.today > summary strong, .feed-title, .briefs-tabs button, .briefs-soon-chip, .today > summary span,
.today-figure span, .today-lines, .events-note, .latest-item .latest-place small, .is-splash span, .briefs.is-soon #briefs-when {
  font-family: Sora, sans-serif; letter-spacing: 0; text-transform: none;
}
.latest-dock > summary { font-size: .86rem; font-weight: 600; color: #fff; }
.latest-dock > summary::before, .today > summary strong::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-inline-end: 9px; background: var(--red); vertical-align: 4px; }
.today > summary strong, .feed-title { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.dock summary, .dock .tool-button, .dock-item, .basemap-switch button { font-size: .66rem; font-weight: 500; }
.dock details[open] > summary, .dock .tool-button[aria-pressed="true"], .dock-item[aria-expanded="true"] { box-shadow: none; background: rgb(255 255 255 / 9%); border-radius: 12px; }
.basemap-switch { border-radius: 999px; }
.basemap-switch button { border-radius: 999px; }
.basemap-switch button[aria-pressed="true"] { background: rgb(255 255 255 / 12%); color: #fff; }
.account-link, .app-bar .sources-button, .app-bar .language-picker select { font-size: .82rem; border-radius: 10px; }
.account-link { padding: 7px 14px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; color: #fff; }
.account-link:hover { border-color: rgb(255 255 255 / 40%); }
.pro-button { min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: .84rem; font-weight: 600; }
.pro-button:hover { background: #ff5a50; }
.region-list button { border-radius: 10px; }
.region-list button[aria-current="true"] { background: var(--red); color: #fff; }

/* side panel cards */
.today-figure strong { font-family: Sora, sans-serif; font-weight: 700; letter-spacing: -.04em; }
.today-figure span, .today-lines, .events-note { font-size: .8rem; }
.today-lines li > :first-child, .latest-item .latest-place small { color: var(--red); font-weight: 600; }
.today-bars i { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--share), rgb(255 255 255 / 8%) var(--share)); }
.today, .briefs-tabs button, .briefs-soon-chip, .lock-note, .pro-lock { border-radius: 12px !important; }
.today { border-radius: 0 !important; }
.briefs.is-soon #briefs-when { border-radius: 999px; color: var(--red); border-color: var(--red); }
.lock-note b, .pro-lock a { border-radius: 999px; }
.latest-dock .latest-list .latest-item { border-radius: 12px; }
.welcome-actions > *, .pro-bar a { border-radius: 999px; font-size: .9rem; font-weight: 600; }
.welcome-explore { background: var(--red); color: #fff; }
.welcome-pro { border-color: rgb(255 255 255 / 30%); color: #fff; }
.pro-bar { background: var(--glass); }
.map-status.is-splash { background: var(--page); }
.is-splash span { font-size: .86rem; }
.map .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; }

/* loading: the account button waits for the answer (or shows itself after 3 s anyway); the events number is a soft bar */
#account-link:not(.is-ready) { visibility: hidden; animation: account-show 0s 3s forwards; }
@keyframes account-show { to { visibility: visible; } }

/* Show events, under "Events are hidden." in Latest */
.latest-list .latest-empty { display: grid; justify-items: start; gap: 10px; padding: 6px 4px; }
.latest-show { padding: 7px 14px; border: 1px solid var(--hair); border-radius: 999px; background: rgb(255 255 255 / 6%); color: var(--text); font: 500 .8rem Sora, sans-serif; cursor: pointer; }
.latest-show:hover { border-color: #fff; }
/* Intelligence Room while Coming soon: one small line, nothing to open */
.briefs.is-soon { padding: 10px 14px; }
.briefs.is-soon > summary { cursor: default; pointer-events: none; align-items: center; }
.briefs.is-soon .briefs-tabs, .briefs.is-soon #briefs-list, .briefs.is-soon .briefs-note { display: none; }
