/* Original style section 1; order preserved. */

:root {
  --bg: #0a0d16; /* dark navy */
  --bg-soft: #111629;
  --card: #141a2b; /* dark card */
  --card2: #1b2236;
  --ink: #f5ecec; /* primary text */
  --muted: #a8908f; /* secondary */
  --tert: #6b5453; /* tertiary */
  --line: rgba(255, 255, 255, 0.08); /* separator */
  --fill: rgba(255, 255, 255, 0.06);
  --fill2: rgba(255, 255, 255, 0.11);
  --orange: #e23b2e; /* red tint */
  --orange-soft: #2a1210;
  --teal: #4fb0aa;
  --radius: 11px;
  --blur: saturate(160%) blur(20px);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  background-image:
    radial-gradient(
      1200px 600px at 72% -10%,
      rgba(205, 56, 38, 0.16) 0%,
      rgba(205, 56, 38, 0.1536) 6.96%,
      rgba(205, 56, 38, 0.135) 14.5%,
      rgba(205, 56, 38, 0.1082) 22.04%,
      rgba(205, 56, 38, 0.08) 29%,
      rgba(205, 56, 38, 0.0518) 35.96%,
      rgba(205, 56, 38, 0.025) 43.5%,
      rgba(205, 56, 38, 0.0064) 51.04%,
      rgba(205, 56, 38, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6%,
      rgba(44, 74, 160, 0.12) 0%,
      rgba(44, 74, 160, 0.1152) 7.2%,
      rgba(44, 74, 160, 0.1012) 15%,
      rgba(44, 74, 160, 0.0812) 22.8%,
      rgba(44, 74, 160, 0.06) 30%,
      rgba(44, 74, 160, 0.0388) 37.2%,
      rgba(44, 74, 160, 0.0187) 45%,
      rgba(44, 74, 160, 0.0048) 52.8%,
      rgba(44, 74, 160, 0) 60%
    );
  background-attachment: fixed;
  font-family:
    Manrope,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-weight: 700;
}
.mono {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
::selection {
  background: #e8590f33;
}

/* ---------- nav : frosted bar ---------- */
body > nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 13, 13, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 0.5px solid rgba(226, 59, 46, 0.14);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 590;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 99px;
  /* Transition only the needed properties. */
  transition: color 0.28s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 99px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s cubic-bezier(0.3, 0.8, 0.35, 1),
    transform 0.3s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:active {
  transform: scale(0.97);
}
.nav-links a.active {
  color: var(--ink);
  background: var(--fill2);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.nav-links a.active::before {
  opacity: 0;
}
.nav-links a.dis {
  opacity: 0.4;
  pointer-events: none;
}
.burger {
  display: none;
  background: var(--fill);
  border: none;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding-block: 96px 80px;
  position: relative;
  overflow-x: clip;
}
.hero-grid {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: #ee5d2e;
}
.hero h1 em svg {
  display: none;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(226, 59, 46, 0.2) 0%,
    rgba(226, 59, 46, 0.1921) 8.4%,
    rgba(226, 59, 46, 0.1688) 17.5%,
    rgba(226, 59, 46, 0.1353) 26.6%,
    rgba(226, 59, 46, 0.1) 35%,
    rgba(226, 59, 46, 0.0647) 43.4%,
    rgba(226, 59, 46, 0.0312) 52.5%,
    rgba(226, 59, 46, 0.0079) 61.6%,
    rgba(226, 59, 46, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 99px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    opacity 0.2s;
  border: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px -6px #e23b2e88;
}
.btn-primary:hover {
  box-shadow: 0 12px 30px -8px #e23b2eaa;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--fill);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--fill2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 52px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.stat b {
  font-size: 26px;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

/* floating map window */
.hero-visual {
  position: relative;
  margin-top: -40px;
  max-width: 100%;
  overflow: visible;
}
.orbit {
  position: absolute;
  inset: -8% -6% -8% -6%;
  border-radius: 14px;
  background:
    radial-gradient(120px 120px at 18% 22%, #f7c9a955, transparent 70%),
    radial-gradient(160px 160px at 88% 78%, #e8590f22, transparent 70%);
  filter: blur(4px);
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
.ping {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8590f;
  box-shadow:
    0 0 0 2px #1a0f10,
    0 2px 8px #e23b2e88;
}
.ping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e8590f;
  animation: ping 2.6s ease-out infinite;
}
.ping.p1 {
  top: 36%;
  left: 48%;
}
.ping.p2 {
  top: 35%;
  left: 69%;
  animation-delay: 0.8s;
}
.ping.p3 {
  top: 48%;
  left: 59%;
  animation-delay: 1.6s;
}
.ping.p2::after {
  animation-delay: 0.8s;
}
.ping.p3::after {
  animation-delay: 1.6s;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}
.readout {
  position: absolute;
  right: -14px;
  bottom: -72px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 11px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  transition: transform 0.25s ease-out;
}
.rd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.rd-val {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.rd-val b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rd-val em {
  font-style: normal;
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}
.rd-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 2px;
}
.rd-spark i {
  flex: 1;
  background: linear-gradient(180deg, #f5722e, var(--orange));
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: sparkGrow 0.5s ease-out forwards;
}
.rd-spark i:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.rd-spark i:nth-child(2) {
  height: 65%;
  animation-delay: 0.15s;
}
.rd-spark i:nth-child(3) {
  height: 50%;
  animation-delay: 0.2s;
}
.rd-spark i:nth-child(4) {
  height: 80%;
  animation-delay: 0.25s;
}
.rd-spark i:nth-child(5) {
  height: 55%;
  animation-delay: 0.3s;
}
.rd-spark i:nth-child(6) {
  height: 90%;
  animation-delay: 0.35s;
}
.rd-spark i:nth-child(7) {
  height: 70%;
  animation-delay: 0.4s;
}
.rd-spark i:nth-child(8) {
  height: 100%;
  animation-delay: 0.45s;
}
@keyframes sparkGrow {
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit,
  .ping::after,
  .rd-spark i {
    animation: none;
    transform: none;
  }
}
.window {
  background: var(--card);
  border-radius: 13px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 32px 80px -28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.25s ease-out;
  border: 0.5px solid var(--line);
  max-width: 100%;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--blur);
}
.win-bar .dots {
  display: flex;
  gap: 6px;
}
.win-bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fill2);
}
.win-bar .dots i:first-child {
  background: #ff5f57;
}
.win-bar .dots i:nth-child(2) {
  background: #febc2e;
}
.win-bar .dots i:nth-child(3) {
  background: #28c840;
}
.win-bar span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.win-body {
  position: relative;
  background:
    radial-gradient(420px 260px at 72% 78%, #f7c9a940, transparent 70%),
    radial-gradient(360px 220px at 12% 30%, #f0902e22, transparent 70%),
    linear-gradient(180deg, #1a0f10, #120a0b);
}
.heromap {
  padding: 26px 10px 40px;
  overflow: hidden;
}
.heromap svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  max-width: 100%;
}
.heromap path {
  fill: #3a2422;
  stroke: #1a0f10;
  stroke-width: 0.6;
}
.heromap path.d1 {
  fill: #7a2418;
}
.heromap path.d2 {
  fill: #a52c1c;
}
.heromap path.d3 {
  fill: #d13a24;
}
.heromap path.d4 {
  fill: #f5502e;
}
@media (prefers-reduced-motion: no-preference) {
  .heromap path.d3,
  .heromap path.d4 {
    animation: heat 4s ease-in-out infinite;
  }
  @keyframes heat {
    50% {
      opacity: 0.78;
    }
  }
}
.win-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.win-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}

/* ---------- sections ---------- */
section {
  padding: 88px 0;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sec-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

/* ---------- explorer (flagship layers) ---------- */
.explorer {
  background: var(--card);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
}
.exp-side {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.seg {
  display: inline-flex;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
  align-self: flex-start;
}
.seg button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 590;
  color: var(--muted);
  transition: 0.25s;
}
.seg button:hover {
  color: var(--ink);
}
.seg button.on {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.exp-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(79, 176, 170, 0.14);
  padding: 5px 11px;
  border-radius: 99px;
}
.exp-side h3 {
  font-size: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
}
.exp-side h3 .top {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 4px 10px;
  border-radius: 99px;
}
.exp-side p {
  font-size: 14.5px;
  color: var(--muted);
}
.exp-side .map-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--orange);
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 99px;
  transition: 0.2s;
  display: inline-flex;
  gap: 8px;
  box-shadow: 0 6px 18px -8px #e8590f80;
}
.exp-side .map-link:hover {
  transform: translateY(-1px);
}
.exp-side .map-link:active {
  transform: scale(0.97);
}
.exp-view {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      420px 300px at 60% 40%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 8.4%,
      rgba(226, 59, 46, 0.0844) 17.5%,
      rgba(226, 59, 46, 0.0677) 26.6%,
      rgba(226, 59, 46, 0.05) 35%,
      rgba(226, 59, 46, 0.0323) 43.4%,
      rgba(226, 59, 46, 0.0156) 52.5%,
      rgba(226, 59, 46, 0.004) 61.6%,
      rgba(226, 59, 46, 0) 70%
    ),
    linear-gradient(180deg, #160c0d, #0f0808);
}
.expmap {
  width: 100%;
  padding: 24px 22px;
}
.expmap svg {
  width: 100%;
  height: auto;
  display: block;
}
.expmap path {
  fill: #3a2422;
  stroke: #160c0d;
  stroke-width: 0.5;
}
.expmap path.d1 {
  fill: #7a2418;
}
.expmap path.d2 {
  fill: #a52c1c;
}
.expmap path.d3 {
  fill: #d13a24;
}
.expmap path.d4 {
  fill: #f5502e;
}
.exp-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.exp-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}
.exp-fade {
  transition:
    opacity 0.3s 0.05s,
    transform 0.3s 0.05s;
}
.exp-fade.out {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.exp-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* ---------- highlights dashboard ---------- */
#highlights {
  background: transparent;
  border: none;
}
.dash {
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 26px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur);
  flex-wrap: wrap;
}
.dash-head .t {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.dash-head .t i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}
.dash.in .dash-head {
  animation: fadeDown 0.5s ease both;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.crow {
  display: grid;
  grid-template-columns: 16px 118px 1fr 52px 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 0.5px solid var(--line);
  border-radius: 9px;
  transition: background 0.15s;
  opacity: 0;
  transform: translateX(-18px);
}
.dash.in .crow {
  animation: slideRow 0.45s ease both;
}
.dash.in .crow:nth-child(1) {
  animation-delay: 0.08s;
}
.dash.in .crow:nth-child(2) {
  animation-delay: 0.16s;
}
.dash.in .crow:nth-child(3) {
  animation-delay: 0.24s;
}
.dash.in .crow:nth-child(4) {
  animation-delay: 0.32s;
}
.dash.in .crow:nth-child(5) {
  animation-delay: 0.4s;
}
.dash.in .crow:nth-child(6) {
  animation-delay: 0.48s;
}
.dash.in .crow:nth-child(7) {
  animation-delay: 0.56s;
}
.dash.in .crow:nth-child(8) {
  animation-delay: 0.64s;
}
@keyframes slideRow {
  to {
    opacity: 1;
    transform: none;
  }
}
.minimap-wrap {
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.92);
}
.dash.in .minimap-wrap {
  animation: mapPop 0.7s cubic-bezier(0.22, 0.9, 0.36, 1) 0.3s both;
}
@keyframes mapPop {
  to {
    opacity: 1;
    transform: none;
  }
}
.dash-cell .sec-head,
.dash-cell .mini-seg {
  opacity: 0;
  transform: translateY(10px);
}
.dash.in .dash-cell .sec-head {
  animation: fadeUp 0.5s ease 0.05s both;
}
.dash.in .dash-cell .mini-seg {
  animation: fadeUp 0.5s ease 0.15s both;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.dash-main {
  display: grid;
  grid-template-columns: 1fr;
}
.cont-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
  align-items: center;
}
.impact-cell {
  border-top: 0.5px solid var(--line);
}
/* iOS storage-style stacked bar */
.ibar {
  display: flex;
  gap: 3px;
  height: 38px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.ibar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  min-width: 6px;
  position: relative;
  transition:
    flex-grow 0.9s cubic-bezier(0.22, 0.9, 0.36, 1),
    opacity 0.1s,
    transform 0.1s,
    box-shadow 0.1s;
  cursor: pointer;
  flex-grow: 0;
  flex-basis: 0;
  box-shadow: 0 0 4px 0px rgba(255, 255, 255, 0.08);
}
.ibar span:hover {
  transform: scaleY(1.12);
}
.ibar.dim span {
  opacity: 0.18;
}
.ibar.dim span.hot {
  opacity: 1;
  transform: scaleY(1.12);
}
.impact-cell .cell-head,
.impact-cell #wtip {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.impact-cell.in .cell-head {
  opacity: 1;
  transform: none;
}
.impact-cell.in #wtip {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.dash-cell {
  padding: 26px 28px;
  min-width: 0;
}
.dash-cell + .dash-cell {
  border-left: 0.5px solid var(--line);
}
.cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cell-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cell-head .hint {
  font-size: 11.5px;
  color: var(--tert);
  font-weight: 500;
}
.mini-seg {
  display: inline-flex;
  background: var(--fill);
  border-radius: 99px;
  padding: 2px;
  gap: 2px;
}
.mini-seg button {
  border: none;
  background: transparent;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 590;
  color: var(--muted);
  transition: 0.25s;
}
.mini-seg button:hover {
  color: var(--ink);
}
.mini-seg button.on {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.minimap-wrap {
  overflow: hidden;
  border-radius: 10px;
}
.minimap {
  width: 100%;
  height: auto;
  display: block;
}
.minimap path {
  fill: #7a6f6c;
  stroke: #1a0d0d;
  stroke-width: 0.5;
  transition:
    fill 0.25s,
    opacity 0.3s;
}
.minimap.dim path {
  opacity: 0.45;
}
.minimap.dim path.lit {
  opacity: 1;
  fill: var(--orange);
}
.crow {
  display: grid;
  grid-template-columns: 16px 118px 1fr 52px 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 0.5px solid var(--line);
  border-radius: 9px;
  transition: background 0.15s;
}
.crow:hover {
  background: var(--fill);
}
.crow:last-child {
  border: none;
}
.arr {
  font-size: 10px;
  text-align: center;
}
.arr.up {
  color: var(--orange);
}
.arr.dn {
  color: var(--teal);
}
.arr.fl {
  color: var(--tert);
}
.crow .cname {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5722e, var(--orange));
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.crow .pct,
.crow .ppl {
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.crow .pct {
  font-weight: 700;
}
.crow .ppl {
  color: var(--tert);
  font-size: 11.5px;
  font-weight: 500;
}

.waffle {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 3px;
  margin-bottom: 14px;
}
.waffle i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--fill);
  cursor: pointer;
  transition:
    transform 0.12s,
    opacity 0.25s;
}
.waffle i:hover {
  transform: scale(1.35);
}
.waffle.dim i {
  opacity: 0.15;
}
.waffle.dim i.hot {
  opacity: 1;
}
#wtip {
  font-size: 12px;
  color: var(--muted);
  min-height: 17px;
  margin-bottom: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#wtip b {
  color: var(--ink);
  font-weight: 700;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 28px 16px;
  border-top: 0.5px solid var(--line);
}
.strip-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.warn-title {
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 9px;
}
.warn-title > svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.info {
  position: relative;
  display: inline-flex;
  color: var(--tert);
  cursor: help;
  outline: none;
}
.info > svg {
  width: 15px;
  height: 15px;
  transition: color 0.2s;
}
.info:hover > svg,
.info:focus > svg {
  color: var(--orange);
}
.info .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: calc(100vw - 32px);
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: var(--blur);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 5;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
/* each legend line stays on one line; the tip grows to fit instead */
@media (min-width: 601px) {
  .info .tip .tip-row {
    white-space: nowrap;
  }
}
.tip-row > span:first-child {
  flex: none;
  white-space: nowrap;
}
.dbv-strip-head .warn-title .info {
  margin-left: 2px;
}
.info .tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(28, 28, 30, 0.92);
}
.info:hover .tip,
.info:focus .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.strip-head .hint {
  font-size: 11.5px;
  color: var(--tert);
  font-weight: 500;
}
.dash-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.rep-cell {
  padding: 18px 20px 16px;
  border-left: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}
.rep-cell:first-child {
  border-left: none;
}
.rep-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(226, 59, 46, 0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.rep-cell:hover::before {
  opacity: 1;
}
.rep-cell.top1 {
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.1), transparent);
}
.rep-cell .rk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.rep-cell .rk .num {
  font-size: 10px;
  color: var(--tert);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rep-cell .rk .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-cell .rk .flag {
  height: 16px;
  width: auto;
  border-radius: 2px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.15);
  flex: none;
  display: block;
  object-fit: contain;
}
.rep-cell .cn {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.rep-cell .cn b {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rep-cell .cn span {
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 600;
}
.rep-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
  position: relative;
}
.rep-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5722e, #c62d22);
  width: 0;
  animation: repGrow 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes repGrow {
  to {
    width: var(--w);
  }
}
.rep-cell .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 10px;
}
.trend.up {
  color: #f5722e;
  background: rgba(226, 59, 46, 0.16);
}
.trend.down {
  color: #4fb0aa;
  background: rgba(79, 176, 170, 0.16);
}
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 26px;
  border-top: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
}
.dash-foot span {
  font-size: 12.5px;
  color: var(--muted);
}
.dash-foot a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
}

/* ---------- data explorer (layers) ---------- */
.dx {
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.dx-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 0.5px solid var(--line);
  background: rgba(26, 13, 13, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.dx-arrow {
  flex: none;
  width: 52px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: 0.2s;
}
.dx-arrow:hover {
  color: #fff;
}
.dx-tabs {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.dx-tabs::-webkit-scrollbar {
  display: none;
}
.dx-tab {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 15px 22px 13px;
  border: none;
  background: transparent;
  text-align: left;
  position: relative;
  min-width: 150px;
  transition: background 0.2s;
}
.dx-tab .t-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dx-tab .t-name {
  font-weight: 600;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.dx-tab .t-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}
.dx-tab::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dx-tab:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dx-tab:hover .t-name {
  color: rgba(255, 255, 255, 0.8);
}

.dx-tab.on {
  background: rgba(255, 255, 255, 0.1);
}
.dx-tab.on .t-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.dx-tab.on::after {
  transform: scaleX(1);
}
.dx-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 236px;
}
.dx-detail {
  padding: 32px 36px;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.dx-detail.out {
  opacity: 0;
  transform: translateY(6px);
}
.dx-detail h3 {
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.dx-detail h3 i.fa-solid {
  font-size: 20px;
}
.dx-spec h4 i.fa-solid {
  margin-right: 6px;
  opacity: 0.5;
}

.dx-detail p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 56ch;
}
.dx-detail .btn {
  margin-top: 22px;
  font-size: 15px;
  padding: 11px 22px;
  background: rgba(224, 96, 42, 0.85);
  box-shadow: 0 6px 18px -8px rgba(224, 96, 42, 0.5);
}
.dx-spec {
  border-left: 0.5px solid var(--line);
  padding: 32px 36px;
  background: rgba(26, 13, 13, 0.35);
  display: flex;
  flex-direction: column;
  transition: opacity 0.22s;
}
.dx-spec.out {
  opacity: 0;
}
.dx-spec h4 {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 10px;
  font-weight: 600;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13.5px;
}
.spec-row:last-of-type {
  border: none;
}
.spec-row span {
  color: var(--muted);
}
.spec-row b {
  font-weight: 600;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.archive-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--orange);
  white-space: nowrap;
}

/* ---------- footer ---------- */
footer {
  color: var(--ink);
  border-top: 0.5px solid rgba(226, 59, 46, 0.14);
  background: linear-gradient(180deg, #100707, #0a0505);
}
.f-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 40px;
}
footer .brand {
  margin-bottom: 12px;
}
footer p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 36ch;
}
footer h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 14px;
  font-weight: 600;
}
footer a.fl {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4.5px 0;
  transition: color 0.2s;
}
footer a.fl:hover {
  color: var(--orange);
}
.f-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.f-logos span,
.f-logos a {
  display: flex;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.f-logos a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.f-logos img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 150, 110, 0.22));
}
.f-bottom {
  border-top: 0.5px solid var(--line);
  padding-top: 20px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--tert);
  flex-wrap: wrap;
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
#your-details[hidden] {
  display: none;
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .explorer {
    grid-template-columns: 1fr;
  }
  .dash-main {
    grid-template-columns: 1fr;
  }
  .dash-cell + .dash-cell {
    border-left: none;
    border-top: 0.5px solid var(--line);
  }
  .dash-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .rep-cell {
    border-top: 0.5px solid var(--line);
  }
  .rep-cell:nth-child(odd) {
    border-left: none;
  }
  .dx-body {
    grid-template-columns: 1fr;
  }
  .dx-spec {
    border-left: none;
    border-top: 0.5px solid var(--line);
  }
  .f-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: rgba(22, 12, 13, 0.95);
    backdrop-filter: var(--blur);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 11px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  }
  .nav-links.open {
    display: flex;
  }
  .burger {
    display: block;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .crow {
    grid-template-columns: 14px 92px 1fr 48px;
  }
  .cont-grid {
    grid-template-columns: 1fr;
  }
  .minimap-wrap {
    max-width: 240px;
    margin: 8px auto 0;
  }
  .crow .ppl {
    display: none;
  }
  .exp-side,
  .dx-detail,
  .dx-spec {
    padding: 24px;
  }
  .f-top {
    grid-template-columns: 1fr;
  }
}

/* ---- scrollbars: one slim thumb for every scrolling box and the page ----
   Chrome drops these pseudo-elements on any element with scrollbar-color or
   scrollbar-width:thin, so those two are kept for browsers without them in the
   @supports block below. */
/* :where() keeps these at the lowest weight, so any element's own rule wins */
:where(html, body *)::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
:where(html)::-webkit-scrollbar {
  width: 12px;
}
:where(html, body *)::-webkit-scrollbar-track {
  background: transparent;
}
:where(html, body *)::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
:where(html, body *)::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
:where(html, body *)::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
:where(html, body *)::-webkit-scrollbar-corner {
  background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }
  body * {
    scrollbar-width: thin;
  }
}

/* Original style section 2; order preserved. */

/* ---------- reveal engine ---------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s ease;
  transition-delay: calc(var(--i, 0) * 65ms);
}
.rv-l {
  transform: translateX(-30px);
}
.rv-r {
  transform: translateX(30px);
}
.rv-s {
  transform: scale(0.93);
}
.rv-b {
  transform: translateY(14px);
  filter: blur(9px);
}
.rv-d {
  transform: translateY(-16px);
}
.rv.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* headline: word by word */
/* the mask must clear descenders (g, y, p) while still hiding the rise */
.wsplit {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.wsplit > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 0.6s ease;
  transition-delay: calc(var(--w, 0) * 55ms);
}
.ah h1.in .wsplit > i {
  transform: none;
  opacity: 1;
}

/* section rule grows out from the label */
.sec-t::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.sec-t.in::after {
  transform: scaleX(1);
}

/* dataset detail: hard fade out, blank beat, staggered fade in */
.ds-body {
  opacity: 0;
  transition: opacity 0.13s ease;
}
.ds-body.shown {
  opacity: 1;
  transition: opacity 0.22s ease;
}
.ds-body > * {
  opacity: 0;
  transform: translateY(10px);
}
.ds-body.shown > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ds-body.shown h3 {
  transition-delay: 0s;
}
.ds-body.shown .ds-tags {
  transition-delay: 0.04s;
}
.ds-body.shown .ds-desc {
  transition-delay: 0.08s;
}
.ds-body.shown .ds-meta {
  transition-delay: 0.12s;
}

/* number pop on the archive steps */
.steps .sn {
  transform: scale(0.5);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) 0.12s,
    opacity 0.4s ease 0.12s,
    background 0.22s ease,
    border-color 0.22s ease;
}
.steps li.in .sn {
  transform: none;
  opacity: 1;
}

/* contact icon pop */
.ct-ico {
  transform: scale(0.6) rotate(-8deg);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s,
    opacity 0.5s ease 0.15s;
}
.ct.in .ct-ico {
  transform: none;
  opacity: 1;
}
.ct-mail {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease 0.34s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ct.in .ct-mail {
  opacity: 1;
  transform: none;
}

/* pull quote bar draws in */
.pull {
  position: relative;
  border-left: none;
  padding-left: 24px;
}
.pull::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(226, 59, 46, 0.5);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
}
.pull.in::before {
  transform: scaleY(1);
}

/* chips fade in as the panel settles */
.car-static code,
.car-track code {
  animation: chipIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* once revealed, interactive cards get their own (fast) hover timing */
.perm > div.in,
.pt-card.in,
.ds.in,
.acc.in,
.ct.in {
  transition:
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease;
}

.ah {
  padding-block: 74px 40px;
}
.ah h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18ch;
}
.ah h1 em {
  font-style: normal;
  color: #ee5d2e;
}
.ah p {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.68;
  max-width: 60ch;
  margin-top: 20px;
}

.sec {
  padding-block: 0 66px;
}
.sec-t {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-t::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--line);
}
.sec h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.sec p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.78;
}
.sec p.lead {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 26px;
}
.sec p + p {
  margin-top: 14px;
}
.sec p.it {
  font-style: italic;
  color: var(--tert);
}
.sec a.fl {
  color: var(--orange);
}

.ds {
  display: grid;
  grid-template-columns: 290px 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      560px 320px at 84% 12%,
      rgba(226, 59, 46, 0.12) 0%,
      rgba(226, 59, 46, 0.1152) 7.92%,
      rgba(226, 59, 46, 0.1012) 16.5%,
      rgba(226, 59, 46, 0.0812) 25.08%,
      rgba(226, 59, 46, 0.06) 33%,
      rgba(226, 59, 46, 0.0388) 40.92%,
      rgba(226, 59, 46, 0.0187) 49.5%,
      rgba(226, 59, 46, 0.0048) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.ds-list {
  border-right: 0.5px solid var(--line);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.ds-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0.5px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.ds-item + .ds-item {
  margin-top: 6px;
}
.ds-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.ds-item b {
  font-weight: 600;
}
.ds-item.on {
  background: rgba(226, 59, 46, 0.18);
  border-color: rgba(226, 59, 46, 0.35);
  color: #ffd9cf;
}
.ds-item small {
  display: block;
  font-size: 11px;
  color: var(--tert);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.03em;
}
.ds-item.on small {
  color: rgba(255, 217, 207, 0.6);
}

.ds-body {
  padding: 30px 34px 32px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.ds-body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.ds-tags {
  display: flex;
  gap: 7px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 99px;
  border: 0.5px solid var(--line);
  color: var(--muted);
  background: var(--fill);
}
.tag.m {
  background: rgba(226, 59, 46, 0.18);
  border-color: rgba(226, 59, 46, 0.36);
  color: #ffd9cf;
}
.tag.f {
  background: rgba(240, 165, 40, 0.16);
  border-color: rgba(240, 165, 40, 0.34);
  color: #ffe0ac;
}
.ds-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.ds-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}
.ds-meta > div {
  padding: 16px 0 0;
  border-top: 0.5px solid var(--line);
}
.ds-meta > div:nth-child(even) {
  padding-left: 30px;
  border-left: 0.5px solid var(--line);
}
.ds-meta > div:nth-child(odd) {
  padding-right: 36px;
}
.ds-meta > div > dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.72);
  margin-bottom: 12px;
}
.ds-meta dd {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.ds-meta code {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12px;
  color: #ffc7b8;
  background: rgba(226, 59, 46, 0.13);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

/* chip carousel */
.car {
  display: flex;
  align-items: center;
  gap: 8px;
}
.car-vp {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.car-track {
  display: flex;
  gap: 6px;
  width: max-content;
}
.car-btn {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.car-btn:hover {
  background: rgba(226, 59, 46, 0.24);
  color: #ffd9cf;
  border-color: rgba(226, 59, 46, 0.4);
}
.car-btn:active {
  transform: scale(0.92);
}
.car-static {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* technical note as key/value rows */
.kv {
  display: flex;
  flex-direction: column;
}
.kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  animation: kvIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.kv > div:first-child {
  border-top: none;
  padding-top: 0;
}
.kv dt {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.kv dd {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12.5px;
  color: #ffc7b8;
  text-align: right;
  white-space: nowrap;
}
@keyframes kvIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ds-legend {
  font-size: 12px;
  color: var(--tert);
  margin-top: 16px;
}
.ds-legend b {
  color: var(--muted);
  font-weight: 600;
}

.pt {
  display: grid;
  gap: 14px;
}
.pt-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 11px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 0.25s;
}
.pt-card:hover {
  border-color: rgba(226, 59, 46, 0.3);
}
.pt-logo {
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.022);
  border-right: 0.5px solid var(--line);
}
.pt-logo img {
  max-width: 152px;
  height: auto;
  display: block;
}
.pt-txt {
  position: relative;
  z-index: 1;
  padding: 26px 30px 28px;
}
.pt-txt h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pt-txt p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  max-width: none;
}

.lk {
  display: grid;
  grid-template-columns: 1fr;
}
.lk a {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 16px 0;
  border-top: 0.5px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lk a:last-child {
  border-bottom: 0.5px solid var(--line);
}
.lk a > i,
.lk a > span {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lk a:hover {
  background: rgba(226, 59, 46, 0.07);
}
.lk a:hover > i {
  transform: translateX(3px);
}
.lk a span {
  color: var(--tert);
  font-size: 12.5px;
  margin-left: auto;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.lk a i {
  color: var(--orange);
  font-size: 11px;
}

.ct {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 90px;
  border-radius: 13px;
  padding: 34px 36px 36px;
  text-align: center;
  overflow: hidden;
}
.ct-orb {
  position: absolute;
  z-index: 0;
  width: 480px;
  height: 480px;
  left: 50%;
  top: -88%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(226, 59, 46, 0.12),
    rgba(226, 59, 46, 0.03) 58%,
    transparent 74%
  );
  transform: translateX(-50%);
  animation: ctFloat 11s ease-in-out infinite;
}
@keyframes ctFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-46%) translateY(26px) scale(1.07);
  }
}
.ct-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.ct-head h2 {
  line-height: 1;
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0;
}
.ct-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: #ffd9cf;
  font-size: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ct h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.ct p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.ct-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 6px 6px 8px;
  border-radius: 99px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px -16px rgba(0, 0, 0, 0.85);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.ct-mail:hover {
  border-color: rgba(226, 59, 46, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 38px -16px rgba(226, 59, 46, 0.5);
}
.ct .mail {
  font-size: 16.5px;
  font-weight: 600;
  color: #ffb9a6;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 99px;
  transition:
    color 0.2s,
    background 0.2s;
}
.ct .mail:hover {
  color: #fff;
}
.ct-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  padding: 9px 15px;
  border-radius: 99px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.ct-copy:hover {
  background: rgba(226, 59, 46, 0.26);
  color: #ffd9cf;
}
.ct-copy:active {
  transform: scale(0.96);
}
.ct-copy.done {
  background: rgba(72, 200, 150, 0.22);
  color: #9ff0cd;
}
@media (max-width: 560px) {
  .ct-mail {
    flex-direction: column;
    border-radius: 11px;
    padding: 10px;
  }
  .ct .mail {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .ds {
    grid-template-columns: 1fr;
  }
  .ds-list {
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .ds-item {
    white-space: nowrap;
    flex: none;
  }
  .ds-meta {
    grid-template-columns: 1fr;
  }
  .ds-meta > div:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .pt-card {
    grid-template-columns: 1fr;
  }
  .pt-logo {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  }
}

/* Original style section 3; order preserved. */

/* archive steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px 4px 0;
  border-top: 0.5px solid var(--line);
  transition: border-color 0.22s ease;
}
.steps li:hover {
  border-top-color: rgba(226, 59, 46, 0.34);
}
.steps .sn {
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}
.steps li:hover .sn {
  background: rgba(226, 59, 46, 0.32);
  border-color: rgba(226, 59, 46, 0.5);
}
.steps .sn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffd9cf;
  background: rgba(226, 59, 46, 0.22);
  border: 0.5px solid rgba(226, 59, 46, 0.38);
}
.steps h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.steps p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* licence permission tiles */
.perm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.perm > div {
  border-radius: 11px;
  border: 0.5px solid var(--line);
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s;
}
.perm > div:hover {
  border-color: rgba(226, 59, 46, 0.3);
}
.perm i {
  color: #f3f4f6;
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
}
.perm b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.perm span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* pull quote */
.pull {
  border-left: 2px solid rgba(226, 59, 46, 0.5);
  padding: 4px 0 4px 22px;
  margin: 0 0 24px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* accordion */
.acc {
  border-radius: 10px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.acc summary {
  position: relative;
  z-index: 1;
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary:hover {
  background: rgba(226, 59, 46, 0.07);
}
.acc summary:focus-visible {
  outline: 2px solid rgba(226, 59, 46, 0.5);
  outline-offset: -2px;
}
.acc summary i {
  color: var(--orange);
  font-size: 12px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc[open] summary i {
  transform: rotate(180deg);
}
.acc-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc.open .acc-wrap {
  grid-template-rows: 1fr;
}
.acc-in {
  overflow: hidden;
  padding: 0 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease 0.06s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s,
    padding 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc.open .acc-in {
  opacity: 1;
  transform: none;
  padding: 16px 22px 22px;
  border-top: 0.5px solid var(--line);
}
.acc-in p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
}
.acc-in p + p {
  margin-top: 12px;
}

/* grant line */
.grant {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--tert);
  margin-top: 20px;
  line-height: 1.7;
}
.grant i {
  color: var(--orange);
  font-size: 12px;
}
.grant em {
  font-style: italic;
}

@media (max-width: 1000px) {
  .steps,
  .perm {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps,
  .perm {
    grid-template-columns: 1fr;
  }
}

/* Original style section 4; order preserved. */

/* ---------- iOS-style glass ---------- */
.ds,
.perm > div,
.acc,
.ct {
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 16px 40px -20px rgba(0, 0, 0, 0.7);
}

/* Same panel style as Browse all data layers on the home page. */
.ds {
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.ds-list {
  background: rgba(0, 0, 0, 0.14);
  border-right: 0.5px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}
.ds-item.on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.perm > div {
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.022) 42%,
      rgba(255, 255, 255, 0.038)
    ),
    radial-gradient(
      300px 180px at 84% 10%,
      rgba(96, 120, 160, 0.1) 0%,
      rgba(96, 120, 160, 0.096) 8.16%,
      rgba(96, 120, 160, 0.0844) 17%,
      rgba(96, 120, 160, 0.0677) 25.84%,
      rgba(96, 120, 160, 0.05) 34%,
      rgba(96, 120, 160, 0.0323) 42.16%,
      rgba(96, 120, 160, 0.0156) 51%,
      rgba(96, 120, 160, 0.004) 59.84%,
      rgba(96, 120, 160, 0) 68%
    ),
    rgba(13, 15, 22, 0.74);
  transition:
    border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease;
}
/* ---- shared cursor-tracked glass sheen ---- */
.glassy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.glassy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    var(--sheen, 220px) calc(var(--sheen, 220px) * 0.72) at var(--mx, 50%) var(--my, 0%),
    var(--sheen-a, rgba(255, 255, 255, 0.07)),
    var(--sheen-b, rgba(226, 59, 46, 0.05)) 45%,
    transparent 74%
  );
}
.glassy:hover::before {
  opacity: 1;
}
.glassy::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--edge, rgba(255, 190, 165, 0.32)),
    transparent
  );
  opacity: 0;
  transition:
    opacity 0.35s ease,
    left 0.45s ease,
    right 0.45s ease;
}
.glassy:hover::after {
  opacity: 1;
  left: 8%;
  right: 8%;
}
.ds:hover::after,
.acc:hover::after,
.ct:hover::after,
.pt-card:hover::after {
  left: 20%;
  right: 20%;
}
.glassy > * {
  position: relative;
  z-index: 1;
}
/* size + tint tuned to each surface's own colour */
.ds,
.acc {
  --sheen: 620px;
  --sheen-a: rgba(255, 214, 198, 0.035);
  --sheen-b: rgba(226, 59, 46, 0.024);
  --edge: rgba(255, 196, 172, 0.16);
}
.ct {
  --sheen: 640px;
  --sheen-a: rgba(255, 205, 186, 0.04);
  --sheen-b: rgba(226, 59, 46, 0.03);
  --edge: rgba(255, 170, 145, 0.2);
}
.pt-card {
  --sheen: 520px;
  --sheen-a: rgba(255, 255, 255, 0.026);
  --sheen-b: rgba(226, 59, 46, 0.018);
  --edge: rgba(255, 220, 205, 0.14);
}
.perm > div {
  --sheen: 240px;
  --sheen-a: rgba(226, 232, 242, 0.085);
  --sheen-b: rgba(120, 140, 175, 0.04);
  --edge: rgba(190, 215, 255, 0.34);
}
.perm i,
.perm b,
.perm span {
  position: relative;
  z-index: 1;
}
.perm i {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.28s ease;
}
.perm > div:hover i {
  transform: translateY(-2px) scale(1.06);
  color: #fff;
}
.perm > div:hover {
  border-color: rgba(120, 165, 245, 0.34);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 22px 46px -20px rgba(0, 0, 0, 0.78);
}

.pt-card {
  isolation: isolate;
  border: 0.5px solid rgba(226, 59, 46, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 46%),
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.12) 0%,
      rgba(226, 59, 46, 0.1152) 8.16%,
      rgba(226, 59, 46, 0.1012) 17%,
      rgba(226, 59, 46, 0.0812) 25.84%,
      rgba(226, 59, 46, 0.06) 34%,
      rgba(226, 59, 46, 0.0388) 42.16%,
      rgba(226, 59, 46, 0.0187) 51%,
      rgba(226, 59, 46, 0.0048) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 7.92%,
      rgba(226, 59, 46, 0.0591) 16.5%,
      rgba(226, 59, 46, 0.0474) 25.08%,
      rgba(226, 59, 46, 0.035) 33%,
      rgba(226, 59, 46, 0.0226) 40.92%,
      rgba(226, 59, 46, 0.0109) 49.5%,
      rgba(226, 59, 46, 0.0028) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #201113, #180d0e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 16px 40px -20px rgba(0, 0, 0, 0.7);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.pt-card:hover {
  border-color: rgba(226, 59, 46, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 22px 48px -22px rgba(0, 0, 0, 0.78);
}
.pt-logo {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.022);
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.acc {
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01) 44%,
      rgba(255, 255, 255, 0.018)
    ),
    radial-gradient(
      560px 280px at 80% 16%,
      rgba(226, 59, 46, 0.13) 0%,
      rgba(226, 59, 46, 0.1248) 8.16%,
      rgba(226, 59, 46, 0.1097) 17%,
      rgba(226, 59, 46, 0.088) 25.84%,
      rgba(226, 59, 46, 0.065) 34%,
      rgba(226, 59, 46, 0.042) 42.16%,
      rgba(226, 59, 46, 0.0203) 51%,
      rgba(226, 59, 46, 0.0052) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      480px 250px at 10% 86%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 7.92%,
      rgba(226, 59, 46, 0.0591) 16.5%,
      rgba(226, 59, 46, 0.0474) 25.08%,
      rgba(226, 59, 46, 0.035) 33%,
      rgba(226, 59, 46, 0.0226) 40.92%,
      rgba(226, 59, 46, 0.0109) 49.5%,
      rgba(226, 59, 46, 0.0028) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #201113, #180d0e);
}
.acc.open .acc-in {
  border-top: 0.5px solid var(--line);
}

.ct {
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 46%),
    radial-gradient(
      420px 240px at 88% 20%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 8.16%,
      rgba(226, 59, 46, 0.0591) 17%,
      rgba(226, 59, 46, 0.0474) 25.84%,
      rgba(226, 59, 46, 0.035) 34%,
      rgba(226, 59, 46, 0.0226) 42.16%,
      rgba(226, 59, 46, 0.0109) 51%,
      rgba(226, 59, 46, 0.0028) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    linear-gradient(180deg, rgba(26, 13, 13, 0.86), rgba(20, 10, 11, 0.9));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ds {
    background: linear-gradient(180deg, #1f1112, #170c0d);
  }
  .ct {
    background: linear-gradient(180deg, #1a0d0d, #140a0b);
  }
  .perm > div {
    background: linear-gradient(180deg, #12141c, #0c0e14);
  }
  .acc {
    background: linear-gradient(180deg, #1f1112, #170c0d);
  }
}

/* Original style section 5; order preserved. */

@media (prefers-reduced-motion: reduce) {
  .rv,
  .wsplit > i,
  .steps .sn,
  .ct-ico,
  .ct-mail {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .sec-t::after,
  .pull::before {
    transform: none;
  }
  .car-static code,
  .car-track code {
    animation: none;
  }
  .ct-orb {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Original style section 6; order preserved. */

/* ============ responsive hardening (shared across all pages) ============ */

/* never allow sideways scroll caused by a single wide child */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
/* Horizontal rails contain their overscroll (step tabs, category chips,
   table). */
.ed-steps,
.ed-cats,
.db-scroll,
.dbv-strip,
.ed-pick-list,
.ov-bars {
  overscroll-behavior-x: contain;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}

/* long strings (emails, URLs, EPSG codes) must not push the layout */
p,
li,
dd,
td,
th,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ---- container padding scales down on small screens ---- */
@media (max-width: 1020px) {
  .wrap {
    padding-inline: 32px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-inline: 26px;
  }
}
@media (max-width: 420px) {
  .wrap {
    padding-inline: 22px;
  }
}

/* full-bleed panels must never eat into the gutter on small screens */
@media (max-width: 900px) {
  .ct {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .lk a {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* slim, unobtrusive scrollbars for the horizontal strips */
.ds-list::-webkit-scrollbar,
.mv-side::-webkit-scrollbar,
.dx-strip::-webkit-scrollbar,
.tbl-scroll::-webkit-scrollbar {
  height: 6px;
}
.ds-list::-webkit-scrollbar-track,
.mv-side::-webkit-scrollbar-track,
.dx-strip::-webkit-scrollbar-track,
.tbl-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ds-list::-webkit-scrollbar-thumb,
.mv-side::-webkit-scrollbar-thumb,
.dx-strip::-webkit-scrollbar-thumb,
.tbl-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

/* ---- Navigation below ~900px (six links don't fit) ---- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: #170c0d;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 11px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 60;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
  .burger {
    display: block;
  }
  nav .nav-in {
    position: relative;
  }
}

/* ---- comfortable touch targets on finger-driven devices ---- */
@media (pointer: coarse) {
  .car-btn {
    width: 34px;
    height: 34px;
  }
  .chip,
  .pl-tab,
  .seg button,
  .mini-seg button {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ds-item {
    padding: 14px;
  }
  .lk a {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* ---- tables scroll horizontally instead of breaking the page ---- */
.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 720px) {
  table.tbl {
    min-width: 560px;
  }
}

/* ---- hero / headline scaling ---- */
@media (max-width: 640px) {
  .hero {
    padding-block: 56px 48px;
  }
  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
  .hero p,
  .ah p,
  .sec p {
    font-size: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---- footer ---- */
@media (max-width: 760px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .f-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  .f-logos {
    flex-wrap: wrap;
  }
}

/* Original style section 7; order preserved. */

/* ============ page-specific responsive rules ============ */

/* ---------- maps.html : layer viewer ---------- */
@media (max-width: 900px) {
  .mv {
    grid-template-columns: 1fr;
  }
  .mv-side {
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
  }
  .mv-side h4 {
    display: none;
  }
  #lyList {
    display: flex;
    gap: 8px;
  }
  .ly {
    white-space: nowrap;
    flex: none;
    width: auto;
    margin-bottom: 0;
  }
}
@media (max-width: 640px) {
  .mv-canvas {
    padding: 14px 10px 4px;
    min-height: 240px;
  }
  .tl {
    padding: 12px 16px 16px;
  }
  .tl-top {
    gap: 10px;
  }
  .tl-date {
    font-size: 13.5px;
  }
  .badge {
    top: 12px;
    right: 14px;
    font-size: 10px;
    padding: 5px 10px;
  }
  .lgd {
    gap: 1px;
  }
  .lgd i {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .lgd b {
    width: 100%;
    margin-bottom: 6px;
  }
  .lgd em {
    width: 100%;
    margin: 6px 0 0;
  }
  .p-head,
  .p-foot {
    padding: 12px 16px;
  }
  .p-body {
    padding: 18px 16px;
  }
  .dx-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dx-tab {
    white-space: nowrap;
  }
}

/* ---------- archive.html : request form ---------- */
@media (max-width: 860px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .row {
    gap: 8px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  #fmt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #fmt .chip {
    text-align: center;
  }
}

/* ---------- impacts.html : country rows ---------- */
@media (max-width: 760px) {
  .ic-row {
    grid-template-columns: 26px 1fr 56px;
    gap: 10px;
    padding: 12px 10px;
  }
  .ic-bar,
  .ic-cat {
    display: none;
  }
  .ic-name {
    font-size: 13.5px;
  }
  .cat-bar {
    height: 30px;
  }
}
@media (max-width: 520px) {
  .cat-bar span {
    min-width: 4px;
  }
}

/* ---------- globe.html ---------- */
@media (max-width: 900px) {
  #globe {
    height: min(58vh, 520px);
  }
}
@media (max-width: 640px) {
  #globe {
    height: min(52vh, 420px);
    margin-top: 0;
  }
  .globe-head {
    padding-block: 40px 4px;
  }
  .lb-x {
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  #lbsvg {
    width: 86vw;
    height: 46vh;
  }
  .lb-name {
    font-size: 21px;
  }
}

/* ---------- about.html ---------- */
@media (max-width: 900px) {
  .ds {
    grid-template-columns: 1fr;
  }
  .ds-list {
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ds-item {
    white-space: nowrap;
    flex: none;
    width: auto;
  }
  .ds-item + .ds-item {
    margin-top: 0;
  }
  .ds-meta {
    grid-template-columns: 1fr;
  }
  .ds-meta > div:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .ds-meta > div:nth-child(odd) {
    padding-right: 0;
  }
  .pt-card {
    grid-template-columns: 1fr;
  }
  .pt-logo {
    border-right: none;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
    padding: 22px;
  }
  .pt-logo img {
    max-width: 130px;
  }
}
@media (max-width: 640px) {
  .ah {
    padding-block: 52px 30px;
  }
  .ds-body {
    padding: 22px 18px 24px;
  }
  .ds-body h3 {
    font-size: 18px;
  }
  .kv > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .kv dd {
    text-align: left;
    white-space: normal;
  }
  .sec {
    padding-block: 0 48px;
  }
  .steps li {
    padding: 16px 0 4px;
  }
  .ct {
    padding: 26px 22px 28px;
  }
  .ct-head {
    gap: 10px;
  }
  .ct h2 {
    font-size: 20px;
  }
  .ct-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 14px;
  }
  .ct-head h2 {
    height: 36px;
  }
  .acc summary {
    padding: 14px 16px;
    font-size: 13.5px;
  }
  .acc-in {
    padding: 14px 16px 18px;
  }
  .lk a {
    padding: 14px 4px;
    font-size: 13.5px;
    gap: 10px;
  }
  .lk a span {
    font-size: 11.5px;
  }
}
@media (max-width: 420px) {
  .lk a {
    flex-wrap: wrap;
  }
  .lk a span {
    margin-left: 0;
    width: 100%;
    padding-left: 23px;
  }
}

/* ---------- index.html : dashboard ---------- */
@media (max-width: 640px) {
  .dash-strip {
    grid-template-columns: 1fr;
  }
  .rep-cell {
    border-left: none;
  }
  .strip-head,
  .dash-head,
  .dash-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .dash-cell {
    padding: 20px 18px;
  }
  .ibar {
    height: 30px;
  }
}

/* Original style section 8; order preserved. */

/* ============ about page: generous mobile gutters (final override) ============ */
@media (max-width: 900px) {
  .wrap {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
  /* panels sit inside the gutter, never flush to the screen edge */
  .ds,
  .acc,
  .ct,
  .pt-card,
  .perm > div {
    border-radius: 11px;
  }
  .ds-body {
    padding: 24px 22px 26px;
  }
  .ds-list {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  .ah {
    padding-block: 44px 26px;
  }
  .ah h1 {
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.08;
  }
  .ah p {
    font-size: 14.5px;
    line-height: 1.62;
  }
  .sec {
    padding-block: 0 44px;
  }
  .sec-t {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .sec p {
    font-size: 14px;
  }
  .ds-body {
    padding: 20px 18px 22px;
  }
  .ds-body h3 {
    font-size: 17px;
    line-height: 1.25;
  }
  .ds-desc {
    font-size: 13.5px;
    line-height: 1.7;
  }
  .ds-item {
    padding: 11px 13px;
    font-size: 12.5px;
  }
  .ds-item small {
    font-size: 10.5px;
  }
  .tag {
    font-size: 10px;
    padding: 4px 9px;
  }
  .steps li {
    padding: 15px 0 4px;
    gap: 12px;
  }
  .steps h4 {
    font-size: 13.5px;
  }
  .steps p {
    font-size: 12px;
  }
  .perm > div {
    padding: 17px 17px 19px;
  }
  .perm b {
    font-size: 13.5px;
  }
  .perm span {
    font-size: 12px;
  }
  .pull {
    font-size: 14px;
    padding-left: 18px;
  }
  .pt-txt {
    padding: 20px 20px 22px;
  }
  .pt-txt h4 {
    font-size: 14.5px;
  }
  .pt-txt p {
    font-size: 12.5px;
  }
  .grant {
    font-size: 12px;
  }
}
@media (max-width: 400px) {
  .wrap {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
  .ah h1 {
    font-size: clamp(24px, 7.4vw, 30px);
  }
  .ct {
    padding: 24px 18px 26px;
  }
  .ct-mail {
    width: 100%;
  }
  .ct .mail {
    font-size: 14px;
    padding: 8px 6px;
  }
}

/* Original style section 9; order preserved. */

/* ============ subset range chart ============ */
.sub-none {
  color: var(--tert);
  font-size: 13px;
}

.rg {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.rg-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  animation: kvIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.rg-lab {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.rg-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}
.rg-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0a528, #e25a1f);
  transform-origin: left;
  animation: rgIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes rgIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.rg-row:hover .rg-fill {
  filter: brightness(1.18);
}
.rg-row:hover .rg-lab {
  color: #ffc7b8;
}

.rg-axis {
  position: relative;
  height: 15px;
  margin-left: 94px;
  margin-top: 1px;
}
.rg-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--tert);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.rg-axis span:first-child {
  transform: none;
}
.rg-axis span.rg-last {
  transform: translateX(-100%) translateX(calc(-1 * var(--off, 6px)));
}
.rg-cap {
  font-size: 11px;
  color: var(--tert);
  margin-top: 3px;
}

@media (max-width: 600px) {
  .rg-row {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
  .rg-lab {
    font-size: 10.5px;
  }
  .rg-axis {
    margin-left: 80px;
  }
}

/* ---- brand mark, footer and link colour ------------------------------ */
/* Nav logo is offset left so the T aligns with the page gutter; the footer
   logo does the same and is larger. */
.brand-logo {
  width: auto;
  height: 60px;
  max-width: none;
  display: block;
  margin-left: -5px;
}
footer .brand {
  margin-bottom: 14px;
}
footer .brand-logo {
  height: 62px;
  margin-left: -6px;
}

/* Links use the site accent instead of default blue. */
footer a.fl:hover {
  color: var(--orange);
}
.f-bottom a {
  color: inherit;
  transition: color 0.2s;
}
.f-bottom a:hover,
.f-bottom span a:hover {
  color: var(--orange);
}

/* Tablet footer: three columns don't fit, so the layout changes here. */
@media (max-width: 1020px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .f-top > div:first-child {
    grid-column: 1 / -1;
  }
  footer p {
    max-width: 52ch;
  }
  .f-logos {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}
@media (max-width: 1000px) {
  .brand-logo {
    height: 52px;
  }
  footer .brand-logo {
    height: 54px;
  }
}
@media (max-width: 760px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .f-top > div:first-child {
    grid-column: auto;
  }
  .f-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .brand-logo {
    height: 44px;
  }
  footer .brand-logo {
    height: 46px;
  }
}
@media (max-width: 430px) {
  .brand-logo {
    height: 36px;
  }
  footer .brand-logo {
    height: 40px;
  }
  .f-logos img {
    height: 34px;
  }
}

/* ---- Footer: shared responsive rules for all pages ----
   Fluid sizing, no breakpoint jumps. */
footer .brand {
  margin-bottom: 16px;
}
.f-top {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.f-top > div {
  min-width: 0;
}
footer p {
  max-width: 38ch;
}
.f-logos {
  gap: clamp(14px, 2vw, 24px);
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.f-logos img {
  height: clamp(30px, 3.4vw, 42px);
  width: auto;
  filter: none;
}
.f-logos span,
.f-logos a {
  display: flex;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.f-logos a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.f-bottom {
  margin-top: 8px;
  padding-top: 22px;
  padding-bottom: clamp(26px, 3vw, 34px);
  align-items: center;
  row-gap: 10px;
}
@media (max-width: 1020px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
  }
  .f-top > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  footer .brand {
    margin-bottom: 14px;
  }
  footer p {
    max-width: 46ch;
  }
  .f-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
}

/* ---- Back to top ----
   Shown only after scrolling past the first screen; doesn't overlap the map controls on phones. */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 13, 13, 0.72);
  color: var(--muted);
  font-size: 14px;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.3, 0.9, 0.35, 1),
    visibility 0.35s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
#toTop.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#toTop:hover {
  color: var(--ink);
  background: rgba(226, 59, 46, 0.26);
  border-color: rgba(226, 59, 46, 0.4);
}
#toTop:active {
  transform: scale(0.94);
}
@media (max-width: 760px) {
  #toTop {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #toTop {
    transition: opacity 0.2s;
  }
}

/* ---- phones: cut what the GPU cannot afford --------------------------- */
@media (max-width: 760px) {
  nav,
  .ds,
  .acc,
  .pt-card,
  .ct,
  .perm > div,
  #toTop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
/* Phones: no glass on the stat tiles. While the view fades in, the browser
   drops a backdrop blur and restores it at the end, so glass tiles snap in;
   over the plain page the blur adds nothing visible. */
@media (max-width: 760px), (pointer: coarse) {
  .ed-stats .st {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ---- Sticky nav ----
   Own compositing layer so the backdrop blur doesn't flash while scrolling.
   Phones get a flat background instead of backdrop-filter. */
/* No contain:paint here: it clipped the mobile dropdown to the 64px nav
   box. The layer promotion stays. */
body > nav {
  transform: translateZ(0);
  will-change: transform;
}
.nav-links {
  z-index: 60;
}
footer {
  contain: layout paint;
}
@media (max-width: 760px) {
  body > nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(20, 11, 12, 0.96);
  }
}

/* ---- phones: nav ------------------------------------------------------- */
@media (max-width: 760px) {
  .burger {
    width: 44px;
    height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .burger:active {
    background: var(--fill2);
  }
}

/* ---- Phones: open menu ----
   Larger tap targets for the menu links. */
@media (max-width: 760px) {
  .nav-links.open {
    gap: 2px;
    padding: 8px;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a::before {
    border-radius: 12px;
  }
  .nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Original style section 10; order preserved. */

/* ---------- archive : shared shell ---------- */
.ah-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  max-width: 720px;
}
.ah-stats .stat {
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.ah-stats .stat b {
  font-size: 22px;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ah-stats .stat span {
  font-size: 10.5px;
  color: var(--tert);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  min-height: 1.2em;
}
.ah-stats .stat b {
  min-height: 1.15em;
}
.ah-stats .stat.typing span::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--orange);
  animation: caret 0.7s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.panel {
  border-radius: 12px;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(
      560px 320px at 84% 12%,
      rgba(226, 59, 46, 0.12) 0%,
      rgba(226, 59, 46, 0.1152) 7.92%,
      rgba(226, 59, 46, 0.1012) 16.5%,
      rgba(226, 59, 46, 0.0812) 25.08%,
      rgba(226, 59, 46, 0.06) 33%,
      rgba(226, 59, 46, 0.0388) 40.92%,
      rgba(226, 59, 46, 0.0187) 49.5%,
      rgba(226, 59, 46, 0.0048) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.panel > * {
  min-width: 0;
}

/* accent scheme, one per data layer -- shared by the builder and the form */
.rq-scope {
  --acc: #e23b2e;
  --acc-glow: rgba(226, 59, 46, 0.12);
  --acc-line: rgba(226, 59, 46, 0.35);
  --acc-soft: rgba(226, 59, 46, 0.18);
  --acc-ink: #ffd9cf;
  --acc-edge: rgba(226, 59, 46, 0.72);
  --acc-t1: rgba(226, 59, 46, 0.34);
  --acc-t2: rgba(140, 36, 28, 0.26);
  --acc-btn: #cf5045;
  --acc-bg1: #1a0d0d;
  --acc-bg2: #140a0b;
  /* Default single-layer background; pick() writes one radial per selected
       layer. */
  --acc-mesh:
    radial-gradient(560px 320px at 84% 12%, var(--acc-glow), transparent 66%),
    radial-gradient(420px 300px at 4% 96%, var(--acc-glow), transparent 62%),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
.panel.rq,
#reqForm {
  border-color: var(--acc-line);
  background: var(--acc-mesh);
  transition:
    border-color 0.5s ease,
    background 0.5s ease;
}
#reqForm .fld > span {
  transition: color 0.5s ease;
}
#reqForm input:focus,
#reqForm textarea:focus,
#reqForm .xsel.open .xsel-b {
  border-color: rgba(255, 255, 255, 0.22);
}
#reqForm .chk a {
  color: var(--acc-ink);
}
.submit {
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.18s;
}
#reqForm .submit {
  background: var(--acc-btn);
  box-shadow: 0 6px 20px -8px var(--acc);
}
#reqForm .submit:hover {
  box-shadow: 0 12px 30px -10px var(--acc);
}
.rq-scope .sec-t {
  transition: color 0.5s ease;
}
.rq-list,
.rq-side {
  transition: background 0.5s ease;
}

/* ---------- request builder ---------- */
.rq {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
}
.rq-list {
  border-right: 0.5px solid var(--line);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px 0 0 12px;
}
.rq .ds-item.on {
  background: var(--li-soft);
  border-color: var(--li-line);
  color: var(--li-ink);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}
.rq .ds-item.on small {
  color: var(--li-ink);
  opacity: 0.62;
}
.rq .ds-item.on b {
  position: relative;
}
.rq-body input:focus,
.rq-body select:focus,
.rq-body textarea:focus {
  border-color: var(--acc-line);
}
.rq .ds-item.on b::before {
  content: none;
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
}
.rq-body {
  padding: 26px 30px 30px;
  min-width: 0;
}
.rq-side {
  border-left: 0.5px solid var(--line);
  padding: 22px;
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
}

/* jump to the request form */
.jump {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  padding: 15px 22px 16px 23px;
  font-size: 11px;
}

/* ---------- layer switch choreography ---------- */
.panel.rq,
#reqForm {
  position: relative;
}
.panel.rq::after,
#reqForm::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 round 12px);
  background: linear-gradient(
    104deg,
    transparent 34%,
    var(--acc-glow) 48%,
    var(--acc-glow) 52%,
    transparent 66%
  );
}
.panel.rq.sweep::after,
#reqForm.sweep::after {
  animation: rqSweep 0.75s cubic-bezier(0.3, 0.7, 0.3, 1);
}
@keyframes rqSweep {
  0% {
    opacity: 0;
    transform: translateX(-26%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(26%);
  }
}

.rq-body.swap .fgrp {
  animation: fgIn 0.52s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.rq-body.swap .fgrp:nth-child(1) {
  animation-delay: 0.02s;
}
.rq-body.swap .fgrp:nth-child(2) {
  animation-delay: 0.07s;
}
.rq-body.swap .fgrp:nth-child(3) {
  animation-delay: 0.12s;
}
.rq-body.swap .fgrp:nth-child(4) {
  animation-delay: 0.17s;
}
@keyframes fgIn {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.rq-body.swap .tsub button,
.rq-body.swap .subnone {
  animation: chipPop 0.46s cubic-bezier(0.2, 0.95, 0.3, 1) both;
  animation-delay: calc(0.1s + var(--i, 0) * 45ms);
}
.rq-body.swap .tsub {
  animation: fgIn 0.4s ease both;
  animation-delay: 0.06s;
}
@keyframes chipPop {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rq-side.swap .sum > div,
.rq-side.swap .est,
.rq-side.swap .jump {
  animation: valIn 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.rq-side.swap .sum > div:nth-child(1) {
  animation-delay: 0.04s;
}
.rq-side.swap .sum > div:nth-child(2) {
  animation-delay: 0.08s;
}
.rq-side.swap .sum > div:nth-child(3) {
  animation-delay: 0.12s;
}
.rq-side.swap .sum > div:nth-child(4) {
  animation-delay: 0.16s;
}
.rq-side.swap .sum > div:nth-child(5) {
  animation-delay: 0.2s;
}
.rq-side.swap .est {
  animation-delay: 0.24s;
}
.rq-side.swap .jump {
  animation-delay: 0.28s;
}
@keyframes valIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rq .ds-item.on {
  animation: itemOn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes itemOn {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.015);
  }
  100% {
    transform: none;
  }
}
.rq .ds-item {
  transform-origin: left center;
}

.fgrp {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 0.5px solid var(--line);
  position: relative;
}
.fgrp:first-child,
.only-sm + .fgrp {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.flab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc-ink);
  opacity: 0.82;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flab span {
  color: var(--tert);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 11.5px;
}

/* ---- recessed subset rail (same language as the viewer toolbar) ---- */
.tsub {
  display: inline-flex;
  gap: 0;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.09),
    inset 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tsub::-webkit-scrollbar {
  display: none;
}
.tsub::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.tsub button {
  position: relative;
  flex: none;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 9px 16px 10px;
  cursor: pointer;
  color: var(--tert);
  background: transparent;
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.tsub button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease;
}
.tsub button:hover {
  color: var(--ink);
}
.tsub button.on {
  color: var(--acc-ink);
}
.tsub button.on::before,
.tsub button.on + button::before {
  opacity: 0;
}
.tsub-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, var(--acc-t1), var(--acc-t2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 0.5px var(--acc-line),
    0 0 14px -4px var(--acc);
  will-change: transform, width;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1),
    width 0.28s cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 0.18s ease,
    background 0.45s ease,
    box-shadow 0.45s ease;
}
.tsub-thumb.on {
  opacity: 1;
}
.tsub-thumb::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--acc-ink);
  box-shadow: 0 0 6px var(--acc);
}
.subnone {
  font-size: 13px;
  color: var(--tert);
}

/* ---- one subset rail per selected layer ---- */
.subs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 100%;
}
.sub-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}
.sub-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tert);
}
.fnote {
  font-size: 12px;
  color: var(--tert);
  margin-top: 10px;
}

/* ---- multi-select layer list ---- */
.rq-list-t {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--acc-ink);
  opacity: 0.8;
  padding: 2px 4px 12px;
}
.rq-list-t span {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 11px;
  color: var(--tert);
}
/* Checkbox tick signals multiple choice. */
.ds-tick {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.ds-tick::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--li-ink, var(--acc-ink));
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg) scale(0.5);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
/* Grid layout so the tick stays aligned with the title row on two-line
     names. */
.rq .ds-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
}
.rq .ds-item .ds-tick {
  grid-column: 1;
  grid-row: 1;
  /* nudged to sit on the first line's centre, not the top of its box */
  margin-top: calc((1.35em - 14px) / 2);
}
.rq .ds-item b {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.35;
}
.rq .ds-item small {
  grid-column: 2;
  grid-row: 2;
}
.rq .ds-item.on .ds-tick {
  background: var(--li-soft);
  border-color: var(--li-line);
}
.rq .ds-item.on .ds-tick::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}
/* the first pick owns the panel accent; a hairline says which one that is */
.rq .ds-item.lead {
  box-shadow:
    inset 2px 0 0 var(--li-edge),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Caption tinted to match its rail, linking the subset row to its layer. */
.sub-cap {
  color: var(--li-ink, var(--tert));
}

/* ---- angled HUD button (same language as the viewer layer rail) ---- */
.hudbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 13px 19px 14px 20px;
  cursor: pointer;
  color: var(--acc-ink);
  text-decoration: none;
  background: var(--acc-edge);
  border: none;
  overflow: hidden;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.18s ease;
}
.hudbtn::before {
  content: '';
  position: absolute;
  inset: 1.2px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s ease;
}
.hudbtn::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 22%,
    rgba(255, 235, 225, 0.14) 50%,
    transparent 74%
  );
  transform: translateX(-120%);
  animation: hudSweep 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes hudSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}
.hudbtn > * {
  position: relative;
  z-index: 2;
}
.hudbtn:hover::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
.hudbtn:active {
  transform: scale(0.978);
}
.hudbtn svg {
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hudbtn:hover svg {
  transform: translateY(2px);
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opts label {
  position: relative;
  cursor: pointer;
}
.opts input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opts i {
  font-style: normal;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 99px;
  border: 0.5px solid var(--line);
  color: var(--muted);
  background: var(--fill);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.opts label:hover i {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}
.opts input:checked + i {
  background: var(--acc-soft);
  border-color: var(--acc-line);
  color: var(--acc-ink);
}
.opts input:focus-visible + i {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.opts.empty {
  font-size: 13px;
  color: var(--tert);
}

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fld > span {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
}
input[type='date'],
input[type='text'],
input[type='email'],
select,
textarea {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(226, 59, 46, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
input::placeholder,
textarea::placeholder {
  color: var(--tert);
}
input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.45;
  cursor: pointer;
}
.fld.bad input,
.fld.bad select,
.fld.bad textarea {
  border-color: rgba(226, 59, 46, 0.75);
}

/* summary rail */
.rq-side h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc-ink);
  opacity: 0.82;
  margin-bottom: 14px;
}
.sum {
  display: flex;
  flex-direction: column;
}
.sum > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.sum > div:first-child {
  border-top: none;
  padding-top: 0;
}
.sum dt {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sum dd {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12.5px;
  color: var(--acc-ink);
  text-align: right;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.sum dd.na {
  color: var(--tert);
}
.est {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 7px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.est {
  border-color: var(--acc-line);
}
.est b {
  display: block;
  font-size: 20px;
  color: var(--acc-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.est span {
  font-size: 11px;
  color: var(--tert);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.note {
  font-size: 11.5px;
  color: var(--tert);
  line-height: 1.65;
  margin: 0 0 18px;
}

/* ---------- custom dropdown ---------- */
select.xs-src {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}
.xsel {
  position: relative;
  width: 100%;
}
.xsel-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.xsel-b:hover {
  background: rgba(255, 255, 255, 0.08);
}
.xsel-b > span {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  min-width: 0;
}
.xsel-b > span > em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.xsel-b > span.ph {
  color: var(--tert);
}
.xsel-b > i {
  font-style: normal;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.xsel.open .xsel-b {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}
.xsel.open .xsel-b > i {
  transform: rotate(180deg);
}
.xsel-b .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.xsel-p {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  background: rgba(21, 17, 20, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 60px -20px rgba(0, 0, 0, 0.92);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.xsel.up .xsel-p {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom center;
}
.xsel.open .xsel-p {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.xsel-p::-webkit-scrollbar {
  width: 10px;
}
.xsel-p::-webkit-scrollbar-track {
  background: transparent;
  margin: 9px 0;
}
.xsel-p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.xsel-p::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
  background-clip: content-box;
}
.xsel-o {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 10px 11px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.xsel-o + .xsel-o {
  margin-top: 2px;
}
.xsel-o:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
.xsel-o > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xsel-o > b {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--tert);
  flex: none;
}
.xsel-o .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  margin-top: 3px;
}
.xsel-o:not(.two) .dot {
  margin-top: 0;
}
.xsel-o.on {
  background: var(--acc-soft, rgba(226, 59, 46, 0.18));
  color: var(--acc-ink, #ffd9cf);
}
.xsel-o.on > b {
  color: inherit;
  opacity: 0.7;
}
.xsel-o.cur {
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
}

/* Chromium clips button contents, which cut the dot glow on its left */
.xsel-b,
.xsel-o {
  overflow: visible;
}
.xsel-b > span {
  overflow: visible;
}
.xsel-b > span > em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* confirmed state mirrors the button */
.xsel.okc .xsel-b {
  background: linear-gradient(180deg, rgba(72, 200, 150, 0.24), rgba(72, 200, 150, 0.1));
  border-color: rgba(72, 200, 150, 0.5);
  color: #eafff4;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}
.xsel.pill {
  width: auto;
  min-width: 158px;
  max-width: 100%;
}
.xsel.pill .xsel-b {
  border-radius: 99px;
  font-size: 12.5px;
  padding: 8px 14px;
}
.xsel.pill .xsel-p {
  left: auto;
  right: 0;
  min-width: 190px;
}
.xsel.pill .xsel-p {
  border-radius: 7px;
}
.xsel-o small {
  display: block;
  font-size: 11px;
  color: var(--tert);
  margin-top: 2px;
  font-weight: 400;
}
.xsel-o.on small {
  color: inherit;
  opacity: 0.6;
}
.xsel-o.two {
  align-items: flex-start;
}
.xsel-o.two > span {
  white-space: normal;
}

/* ---------- custom date picker ---------- */
input.xd-src {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}
.xdate {
  position: relative;
  width: 100%;
}
.xd-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.xd-b:hover {
  background: rgba(255, 255, 255, 0.08);
}
.xd-b > span {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.xd-b > span.ph {
  color: var(--tert);
}
.xd-b > i {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.xdate.open .xd-b {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--acc-line, rgba(226, 59, 46, 0.5));
}
.fld.bad .xd-b,
.fld.bad .xsel-b {
  border-color: rgba(226, 59, 46, 0.75);
}

.xd-p {
  position: absolute;
  z-index: 90;
  left: 0;
  top: calc(100% + 7px);
  width: 306px;
  max-width: calc(100vw - 44px);
  background: rgba(21, 17, 20, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 64px -20px rgba(0, 0, 0, 0.92);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.xdate.open .xd-p {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.xdate.up .xd-p {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom left;
}
.xdate.rt .xd-p {
  left: auto;
  right: 0;
  transform-origin: top right;
}
.xdate.rt.up .xd-p {
  transform-origin: bottom right;
}

.xd-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
}
.xd-head .xsel {
  flex: 1;
  min-width: 0;
}
.xd-head .xsel-b {
  padding: 7px 10px;
  font-size: 12.5px;
  border-radius: 6px;
}
.xd-head .xsel-p {
  max-height: 210px;
}
.xd-nav {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.xd-nav:hover {
  background: var(--acc-soft, rgba(226, 59, 46, 0.18));
  border-color: var(--acc-line, rgba(226, 59, 46, 0.4));
  color: var(--acc-ink, #ffd9cf);
}
.xd-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.xd-wd {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 3px;
}
.xd-wd span {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tert);
  padding: 4px 0;
}
.xd-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.xd-grid button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s,
    box-shadow 0.14s;
}
.xd-grid button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.xd-grid button.out {
  color: rgba(255, 255, 255, 0.17);
}
.xd-grid button:disabled {
  opacity: 0.2;
  cursor: default;
}
.xd-grid button.today:not(.on) {
  box-shadow: inset 0 0 0 1px var(--acc-line, rgba(226, 59, 46, 0.4));
}
.xd-grid button.on {
  background: var(--acc-soft, rgba(226, 59, 46, 0.2));
  color: var(--acc-ink, #ffd9cf);
  box-shadow: inset 0 0 0 0.5px var(--acc-line, rgba(226, 59, 46, 0.45));
}
.xd-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
.xd-foot button {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: var(--fill);
  border: 0.5px solid var(--line);
  border-radius: 99px;
  padding: 6px 13px;
  transition: 0.18s;
}
.xd-foot button:hover {
  background: var(--acc-soft, rgba(226, 59, 46, 0.18));
  border-color: var(--acc-line, rgba(226, 59, 46, 0.4));
  color: var(--acc-ink, #ffd9cf);
}

/* mobile layer picker */
.only-sm {
  display: none;
}

/* ---------- confirmation ---------- */
.hudbtn.ok {
  color: #eafff4;
}
.hudbtn.ok::before {
  background:
    linear-gradient(180deg, rgba(72, 200, 150, 0.3), rgba(72, 200, 150, 0.12)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
.hudbtn.ok {
  background: rgba(72, 200, 150, 0.7);
}
.hudbtn .lbl-go,
.hudbtn .lbl-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hudbtn .lbl-ok {
  display: none;
}
.hudbtn.ok .lbl-go {
  display: none;
}
.hudbtn.ok .lbl-ok {
  display: inline-flex;
}
.hudbtn.ok svg {
  animation: tick 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes tick {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* a spark runs the rim once the selection locks in */
.hudbtn .rim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  padding: 1.6px;
  border-radius: 1px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hudbtn .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 60%,
    rgba(127, 227, 182, 0.35) 74%,
    #7fe3b6 82%,
    #eafff4 86%,
    rgba(127, 227, 182, 0.35) 90%,
    transparent 96%
  );
}
.hudbtn.ok .rim {
  animation: rimShow 2.1s ease-out both;
}
.hudbtn.ok .rim > b {
  animation: rimSpin 1.05s linear 2;
}
@keyframes rimShow {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rimSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hudbtn .rim {
    display: none;
  }
}

/* each summary row ticks over in turn */
.sum > div {
  position: relative;
}
.sum.locking > div {
  animation: rowLock 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.sum.locking > div:nth-child(1) {
  animation-delay: 0s;
}
.sum.locking > div:nth-child(2) {
  animation-delay: 0.06s;
}
.sum.locking > div:nth-child(3) {
  animation-delay: 0.12s;
}
.sum.locking > div:nth-child(4) {
  animation-delay: 0.18s;
}
.sum.locking > div:nth-child(5) {
  animation-delay: 0.24s;
}
@keyframes rowLock {
  0% {
    background: transparent;
  }
  35% {
    background: rgba(72, 200, 150, 0.16);
  }
  100% {
    background: transparent;
  }
}
.sum > div > dd {
  position: relative;
  padding-right: 0;
  transition: padding-right 0.25s ease;
}
.sum.locked > div > dd {
  padding-right: 17px;
}
.sum > div > dd::after {
  content: '\2713';
  position: absolute;
  right: 0;
  top: 0;
  font-family: inherit;
  color: #7fe3b6;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.sum.locked > div > dd::after {
  opacity: 1;
  transform: none;
}
.sum.locking > div:nth-child(1) > dd::after {
  transition-delay: 0.06s;
}
.sum.locking > div:nth-child(2) > dd::after {
  transition-delay: 0.12s;
}
.sum.locking > div:nth-child(3) > dd::after {
  transition-delay: 0.18s;
}
.sum.locking > div:nth-child(4) > dd::after {
  transition-delay: 0.24s;
}
.sum.locking > div:nth-child(5) > dd::after {
  transition-delay: 0.3s;
}

/* the receipt that lands at the top of the form */
.receipt {
  grid-column: 1/-1;
  display: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 0.5px solid rgba(150, 235, 205, 0.2);
  border-radius: 10px;
  padding: 16px 18px;
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(190, 255, 230, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 16px 40px -28px rgba(72, 200, 150, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 55%),
    linear-gradient(180deg, rgba(72, 200, 150, 0.07), rgba(72, 200, 150, 0.026)),
    linear-gradient(180deg, rgba(6, 10, 9, 0.62), rgba(4, 7, 6, 0.7));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .receipt {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%),
      linear-gradient(180deg, #0b1512, #08100e);
  }
}
.receipt.on {
  display: block;
  animation: stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.receipt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    104deg,
    transparent 34%,
    rgba(160, 255, 215, 0.085) 50%,
    transparent 66%
  );
  transform: translateX(-120%);
}
@keyframes rcSweep {
  to {
    transform: translateX(120%);
  }
}
/* re-confirmation: the card flashes so the change is visible */
.receipt.on.upd {
  animation: rcPulse 0.66s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes rcPulse {
  0% {
    border-color: rgba(150, 235, 205, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 0 0 3px rgba(72, 200, 150, 0.18),
      0 16px 40px -28px rgba(72, 200, 150, 0.3);
  }
  100% {
    border-color: rgba(150, 235, 205, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 0 0 0 rgba(72, 200, 150, 0),
      0 16px 40px -28px rgba(72, 200, 150, 0.3);
  }
}
.receipt.on.upd::after {
  animation: rcSweep 0.9s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.receipt.on .rc-list .rc-k {
  opacity: 0;
}
.receipt.on.upd .rc-list .rc-k {
  animation: rcChip 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.receipt.on.upd .rc-list .rc-k:nth-child(2) {
  animation-delay: 0.07s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(3) {
  animation-delay: 0.14s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(4) {
  animation-delay: 0.21s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(5) {
  animation-delay: 0.28s;
}
@keyframes rcChip {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(0.94);
    filter: blur(3px);
    background: rgba(72, 200, 150, 0.3);
    border-color: rgba(150, 235, 205, 0.55);
    color: #eafff4;
  }
  45% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(150, 235, 205, 0.16);
    color: #cbe8dc;
  }
}
.receipt.on.upd .rc-head i {
  animation: tick 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .receipt.on.upd,
  .receipt.on.upd::after,
  .receipt.on.upd .rc-list .rc-k,
  .receipt.on.upd .rc-head i {
    animation: none;
  }
  .receipt.on .rc-list .rc-k {
    opacity: 1;
  }
}
.rc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.rc-head i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #8fdcb8;
  font-size: 9px;
  font-style: normal;
  box-shadow: inset 0 0 0 0.5px rgba(150, 235, 205, 0.24);
}
.rc-head b {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  color: #8fceb2;
}
.rc-head a {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #8fceb2;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(72, 200, 150, 0.28);
}
.rc-head a:hover {
  color: #d6fff0;
  border-bottom-color: rgba(72, 200, 150, 0.5);
}
.rc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rc-k {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #cbe8dc;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(150, 235, 205, 0.16);
  border-radius: 99px;
  padding: 5px 12px 5px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.rc-k em {
  font-style: normal;
  flex: none;
  color: rgba(159, 240, 205, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rc-k .v {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* a glyph per kind, so the four chips are told apart before they are read */
.rc-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: rgba(159, 240, 205, 0.5);
}
.rc-ico svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Order summary on its own line, bolder; single green accent on the
     card. */
.rc-k[data-k='layers'] {
  flex: 1 0 100%;
  border-radius: 13px;
  padding: 8px 13px 8px 11px;
  background: linear-gradient(180deg, rgba(72, 200, 150, 0.13), rgba(72, 200, 150, 0.05));
  border-color: rgba(150, 235, 205, 0.32);
}
.rc-k[data-k='layers'] .v {
  color: #eafff5;
  font-weight: 600;
  font-size: 11.5px;
}
.rc-k[data-k='layers'] .rc-ico {
  color: rgba(159, 240, 205, 0.85);
}

/* the qualifier gets its own line too; it is the longest of the four */
.rc-k[data-k='subsets'] {
  flex: 1 0 100%;
  border-radius: 13px;
  padding: 6px 13px 6px 11px;
  background: rgba(255, 255, 255, 0.035);
}
/* period and format are short values, shown side by side in a smaller style */
.rc-k[data-k='period'] .v,
.rc-k[data-k='format'] .v {
  font-variant-numeric: tabular-nums;
}
.rc-k[data-k='format'] {
  background: rgba(72, 200, 150, 0.07);
}
.rc-k[data-k='format'] .v {
  color: #9ff0cd;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------- requester form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.chk {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
/* Custom checkbox, same style as the layer list tick. */
.chk input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  padding: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.chk input:hover {
  border-color: rgba(255, 255, 255, 0.34);
}
/* the same tick glyph as the lists */
.chk input::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 0 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 236, 230, 0.82);
  transform: scale(0.55);
  opacity: 0;
  transition:
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1);
}
/* chosen: the deep red box and softened tick of the desk's other lists */
.chk input:checked {
  background: #8e3029;
  border-color: #a8392f;
  box-shadow: none;
}
.chk input:checked::after {
  opacity: 1;
  transform: none;
}
.chk input:focus-visible {
  outline: 2px solid var(--acc-line, rgba(226, 59, 46, 0.38));
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .chk input,
  .chk input::after {
    transition: none;
  }
}
.chk a {
  color: var(--orange);
}
.fbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 99px;
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px -8px #e23b2e88;
  transition:
    transform 0.18s,
    box-shadow 0.2s;
}
.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px #e23b2eaa;
}
.submit:active {
  transform: scale(0.97);
}
.fmsg {
  font-size: 12.5px;
  color: var(--tert);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.fmsg.err {
  color: #ff9b8c;
}
.fmsg.ok {
  color: #9ff0cd;
}
.fmsg.warn {
  color: #e9b35f;
}
.fmsg-b {
  margin: 0 0 0 8px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 0.5px solid rgba(233, 179, 95, 0.5);
  background: rgba(233, 179, 95, 0.1);
  color: #f3d29c;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.fmsg-b:hover {
  background: rgba(233, 179, 95, 0.2);
  color: #fff;
}

@media (max-width: 1100px) {
  .rq {
    grid-template-columns: 238px 1fr;
  }
  .rq-side {
    grid-column: 1/-1;
    border-left: none;
    border-top: 0.5px solid var(--line);
    border-radius: 0 0 12px 12px;
  }
  .jump {
    margin-top: 20px;
  }
  .rq-list {
    border-radius: 12px 0 0 0;
  }
}
@media (max-width: 900px) {
  .ah-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rq {
    grid-template-columns: 1fr;
  }
  .only-sm + .fgrp {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 0.5px solid var(--line);
  }
  /* Multi-select can't use a <select>, so on narrow screens it becomes a
       scrolling rail. */
  .rq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    border-radius: 12px 12px 0 0;
    padding: 14px;
  }
  /* Overrides about.html's @900 nowrap rule; these labels stay full-width
       rows. */
  .rq-list .ds-item {
    flex: 1 0 100%;
    width: auto;
    margin-top: 0;
    white-space: normal;
  }
  .rq-list .ds-item + .ds-item {
    margin-top: 0;
  }
  .rq-list-t {
    flex: 1 0 100%;
    padding: 0 2px 2px;
  }
  .rq-body {
    border-radius: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .dates {
    grid-template-columns: 1fr;
  }
  .rq-body {
    padding: 22px 18px 24px;
  }
}

/* Original style section 11; order preserved. */

/* tighter gap between the contact card and the footer */
.ct {
  margin-bottom: 0;
}
main > section.wrap.sec:last-of-type {
  padding-bottom: 64px;
}

/* Original style section 12; order preserved. */

/* hero sized like the viewer page */
.ah {
  padding-block: 44px 30px;
}
.ah h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}
.ah p {
  font-size: 15px;
  line-height: 1.62;
  margin-top: 12px;
  max-width: 62ch;
}
@media (max-width: 760px) {
  .ah {
    padding-block: 34px 22px;
  }
  .ah h1 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.12;
  }
  .ah p {
    font-size: 14.5px;
  }
}

/* Original style section 13; order preserved. */

/* Autofill: long transition keeps the field's own background; inset shadow
   as fallback. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px rgba(24, 16, 17, 1) inset;
  box-shadow: 0 0 0 60px rgba(24, 16, 17, 1) inset;
  border: 0.5px solid var(--line);
  border-radius: 7px;
  transition:
    background-color 600000s 0s,
    color 600000s 0s;
}
input:-webkit-autofill:focus {
  border-color: var(--acc-line);
}
input:autofill {
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}
/* Firefox */
input:-moz-autofill,
input:-moz-autofill-preview {
  filter: none;
  background-image: none;
  color: var(--ink);
}

/* Original style section 14; order preserved. */

/* =============================================================
   Colour vision correction
   html[data-cb]: off | protan | deuter | tritan | achroma
   Daltonisation (LMS-based), matrices built in the script below.
   ============================================================= */

/* Filter goes on each direct child of body, not on body/html: a filtered
   ancestor becomes the containing block for position:fixed and would break
   the sticky nav, back-to-top button and intro overlay. */
html[data-cb='protan'] body > * {
  filter: url(#td-cb-protan);
}
html[data-cb='deuter'] body > * {
  filter: url(#td-cb-deuter);
}
html[data-cb='tritan'] body > * {
  filter: url(#td-cb-tritan);
}
html[data-cb='achroma'] body > * {
  filter: grayscale(1) contrast(1.08);
}
html[data-cb]:not([data-cb='off']) #td-cb-defs {
  filter: none;
}

/* colour is never the only signal, whatever the mode */
html[data-cb]:not([data-cb='off']) .ds-item,
html[data-cb]:not([data-cb='off']) .cbtn {
  position: relative;
}
html[data-cb]:not([data-cb='off']) .ds-item.on::after,
html[data-cb]:not([data-cb='off']) .cbtn.on::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}
html[data-cb]:not([data-cb='off']) .tsub button.on {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nav layout: links are taken out of the flex flow so they stay centred
   regardless of what's on either side. */
@media (min-width: 761px) {
  /* brand keeps the left edge, menu and the control sit together on the right */
  nav .nav-in {
    justify-content: flex-start;
    gap: 18px;
  }
  nav .nav-in > .nav-links {
    margin: 0 0 0 auto;
  }
  nav .nav-in > .td-a11y {
    margin: 0;
  }
  /* Between 761 and 900px the burger is visible; the control sits next to
     it. */
  nav .nav-in > .burger {
    margin-left: auto;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  nav .nav-in > .td-a11y {
    margin-left: auto;
  }
  nav .nav-in > .burger {
    margin-left: -10px;
  }
}

/* =============================================================
   the control  \00B7   same HUD language as the viewer toolbar
   ============================================================= */
/* Trigger uses the same pill as the nav links (one control group). */
.td-a11y {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
}
.td-a11y-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  transition:
    color 0.28s cubic-bezier(0.3, 0.8, 0.35, 1),
    background 0.28s cubic-bezier(0.3, 0.8, 0.35, 1),
    box-shadow 0.28s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.td-a11y-btn:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}
.td-a11y-btn:active {
  transform: scale(0.97);
}
.td-a11y.open .td-a11y-btn {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.td-a11y.on .td-a11y-btn {
  background: rgba(226, 59, 46, 0.22);
  color: #ffd9cf;
  box-shadow: inset 0 0 0 0.5px rgba(226, 59, 46, 0.4);
}
/* a live dot marks that a correction is running */
.td-a11y.on .td-a11y-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd9cf;
  box-shadow: 0 0 6px #e23b2e;
}

.td-a11y-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 200;
  width: 246px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(226, 59, 46, 0.2);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.td-a11y-pop::before {
  content: '';
  position: absolute;
  inset: 0.5px;
  z-index: 0;
  border-radius: 10.5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(26, 15, 16, 0.97), rgba(18, 10, 11, 0.98));
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
}
.td-a11y-pop > * {
  position: relative;
  z-index: 1;
}
.td-a11y.open .td-a11y-pop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.td-a11y-pop h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  font:
    700 9.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.72);
}
.td-a11y-pop h5 span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 59, 46, 0.4), transparent);
}

.td-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-list button.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  padding: 8px 10px;
  background: transparent;
  font:
    600 12.5px Manrope,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--muted);
  border-radius: 99px;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.td-list button.opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.td-list button.opt[aria-pressed='true'] {
  background: rgba(226, 59, 46, 0.2);
  color: #ffd9cf;
}
/* the badge carries the mode code, so the row reads without colour */
.td-list button.opt b {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--tert);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.td-list button.opt b svg {
  display: block;
}
.td-list button.opt:hover b {
  color: var(--ink);
}
.td-list button.opt[aria-pressed='true'] b {
  background: rgba(226, 59, 46, 0.34);
  color: #ffd9cf;
  box-shadow: inset 0 0 0 0.5px rgba(226, 59, 46, 0.5);
}
.td-list button.opt span {
  flex: 1;
  min-width: 0;
}
.td-list button.opt em {
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--tert);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.td-list button.opt:hover em,
.td-list button.opt[aria-pressed='true'] em {
  opacity: 1;
}

@media (max-width: 760px) {
  /* Negative margin to offset nav-in's flex gap next to the burger. */
  nav .nav-in {
    gap: 8px;
  }
  .td-a11y {
    margin-left: auto;
    margin-right: 0;
  }
  /* nav carries transform:translateZ(0), so it is the containing block for
     anything fixed inside it; the panel therefore stays absolute here */
  .td-a11y-pop {
    right: -4px;
    width: min(258px, calc(100vw - 26px));
  }
}

/* Original style section 15; order preserved. */

/* ============================================================
   IMPACT DESK
   Reuses the site's panels, fields and selects; only page-specific styles
   below.
   ============================================================ */

/* the site's base rule lists input types one by one; this page adds a few more */
input[type='url'],
input[type='search'],
input[type='password'] {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input[type='url']:focus,
input[type='search']:focus,
input[type='password']:focus {
  outline: none;
  border-color: rgba(226, 59, 46, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
input[type='search']::-webkit-search-cancel-button {
  display: none;
}
/* .submit and .ghost set their own display, which would win over [hidden] */
[hidden] {
  display: none !important;
}

.ed-gate {
  padding-block: 56px 90px;
  max-width: 1080px;
}
.ed-gate h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 12px;
}
.ed-gate h1 em {
  font-style: normal;
  color: #ee5d2e;
}
.ed-gate > p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 26px;
  line-height: 1.7;
}

/* Editor dropdown extends beyond the card, so the panel can't clip; the side
   column carries the rounded corner. */
.ed-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  overflow: visible;
}
/* the two extra fields for setting a new password, folded away until asked for */
.pwch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.pwch[hidden] {
  display: none;
}
.pwch-go {
  align-self: flex-start;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--tert);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.16s ease;
}
.pwch-go:hover {
  color: var(--ink);
}
.ed-login-in {
  padding: 30px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-login-in .submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.ed-keep {
  font-size: 12.5px;
}
.ed-login-side {
  padding: 30px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 0.5px solid var(--line);
  border-radius: 0 12px 12px 0;
}
.ed-login-side h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 16px;
}
.ed-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ed-perks li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  align-items: start;
}
.ed-perks i {
  grid-row: 1/3;
  width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #ffb59c;
  text-shadow: 0 0 10px rgba(226, 59, 46, 0.55);
  margin-top: 1px;
}
.ed-perks b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.ed-perks span {
  font-size: 12.5px;
  color: var(--tert);
  line-height: 1.55;
}
#lgCount {
  font-variant-numeric: tabular-nums;
  animation: lgCountIn 0.9s ease both;
}
#lgCount.tick {
  color: #ffd9cf;
}
@keyframes lgCountIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #lgCount {
    animation: none;
  }
}

/* ---------- login ---------- */
/* Richer background than .panel, plus a light top edge. */
.ed-login {
  position: relative;
  background:
    radial-gradient(
      520px 300px at 88% 6%,
      rgba(226, 59, 46, 0.15) 0%,
      rgba(226, 59, 46, 0.144) 7.68%,
      rgba(226, 59, 46, 0.1266) 16%,
      rgba(226, 59, 46, 0.1015) 24.32%,
      rgba(226, 59, 46, 0.075) 32%,
      rgba(226, 59, 46, 0.0485) 39.68%,
      rgba(226, 59, 46, 0.0234) 48%,
      rgba(226, 59, 46, 0.006) 56.32%,
      rgba(226, 59, 46, 0) 64%
    ),
    radial-gradient(
      420px 300px at 2% 98%,
      rgba(200, 70, 60, 0.1) 0%,
      rgba(200, 70, 60, 0.096) 7.44%,
      rgba(200, 70, 60, 0.0844) 15.5%,
      rgba(200, 70, 60, 0.0677) 23.56%,
      rgba(200, 70, 60, 0.05) 31%,
      rgba(200, 70, 60, 0.0323) 38.44%,
      rgba(200, 70, 60, 0.0156) 46.5%,
      rgba(200, 70, 60, 0.004) 54.56%,
      rgba(200, 70, 60, 0) 62%
    ),
    linear-gradient(180deg, #1a0d0d, #130a0b);
  border-color: rgba(226, 59, 46, 0.26);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
.ed-login::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: -0.5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 70, 60, 0.6), transparent);
  pointer-events: none;
}
.ed-login-side {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.3));
}
.ed-perks li {
  padding: 2px 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-perks li:hover {
  transform: translateX(3px);
}
.ed-perks i {
  transition: color 0.25s ease;
}
.ed-perks li:hover i {
  color: #ffd3c3;
}
.ed-login-in .fld > span {
  transition: color 0.2s ease;
}
.ed-login-in .fld:focus-within > span {
  color: #ffd9cf;
}
/* same tone as the home page's Explore the maps button */
.ed-login-in .submit {
  background: #c8463c;
  color: #fff;
  box-shadow: 0 6px 20px -6px #e23b2e88;
  transition:
    background 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}
.ed-login-in .submit:hover {
  box-shadow: 0 12px 30px -8px #e23b2eaa;
}
.ed-keep {
  font-size: 12.5px;
  align-items: center;
}
.ed-keep input {
  margin-top: 0;
}

/* password reveal */
.pw {
  position: relative;
  display: block;
  width: 100%;
}
.pw input {
  padding-right: 42px;
}
.pw-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.pw-eye i {
  display: block;
  line-height: 1;
  width: 1em;
  font-size: 14px;
  color: inherit;
  text-align: center;
}
.pw-eye:hover {
  color: var(--ink);
}
.pw-eye:focus-visible {
  outline: 2px solid rgba(226, 59, 46, 0.5);
  outline-offset: 1px;
}

/* ---------- desk chrome ---------- */
.ed-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 26px 8px;
}
.ed-who {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  /* the five-tap shortcut into preview mode lives here, so the name must not
     select or flash blue under a finger */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* a short message that does not depend on being scrolled to, which the one in
   the report form does */
.td-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9999;
  max-width: min(92vw, 430px);
  padding: 11px 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #c9f5dd;
  background: rgba(10, 26, 20, 0.94);
  border: 0.5px solid rgba(130, 235, 185, 0.34);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.td-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .td-toast {
    transition: none;
  }
}
.ed-who .ed-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 26px;
  color: #f5e2da;
  background: none;
  border: 0;
  filter: drop-shadow(0 0 9px rgba(200, 70, 60, 0.75)) drop-shadow(0 0 20px rgba(200, 70, 60, 0.35));
}
.ed-who .ed-avatar i {
  display: block;
  line-height: 1;
  color: #f5e2da;
}
.ed-who b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.ed-who span {
  display: block;
  font-size: 11.5px;
  color: var(--tert);
  margin-top: 1px;
}
.ed-who.admin b {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.ed-who.admin .ed-avatar {
  font-size: 25px;
  color: #f6dfb4;
  filter: drop-shadow(0 0 9px rgba(243, 181, 74, 0.55))
    drop-shadow(0 0 20px rgba(243, 181, 74, 0.22));
}
.ed-who.admin .ed-avatar i {
  color: #f6dfb4;
}
.ed-out {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 8px 2px;
  transition: color 0.2s ease;
}
.ed-out i {
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-out:hover {
  color: #ff9c8a;
}
.ed-out:hover i {
  transform: translateX(3px);
}
.ed-out:focus-visible {
  outline: 2px solid rgba(226, 59, 46, 0.5);
  outline-offset: 4px;
  border-radius: 6px;
}

.ed-tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 99px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 3px rgba(0, 0, 0, 0.55);
}
.ed-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tert);
  background: transparent;
  border-radius: 99px;
  padding: 9px 19px;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease;
}
.ed-tabs button i {
  font-size: 10px;
  opacity: 0.55;
  transition:
    opacity 0.22s ease,
    color 0.22s ease,
    transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-tabs button:hover {
  color: var(--muted);
}
.ed-tabs button:hover i {
  opacity: 0.85;
  transform: translateY(-1px);
}
.ed-tabs button.on {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ed-tabs button.on i {
  opacity: 1;
  color: #ffe0d2;
  transform: none;
}
.ed-tab-thumb {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #d4514550, #c8463c);
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 175, 0.45),
    0 4px 12px -5px rgba(226, 59, 46, 0.95);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1),
    width 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.ed-view {
  display: none;
  padding-block: 10px 70px;
}
.ed-view.on {
  display: block;
  animation: edIn 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes edIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- the form ---------- */
.ed-form {
  padding: 0;
  overflow: visible;
}
/* Step rail: lit track along the top of the card with numbered beads. */
.ed-steps {
  position: relative;
  display: flex;
  gap: 0;
  isolation: isolate;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.12));
  border-radius: 12px 12px 0 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.ed-steps::-webkit-scrollbar {
  display: none;
}
/* lit top edge, brightest over the middle of the rail */
.ed-steps::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}
/* the line under the step tabs */
.ed-steps::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.03)
  );
  pointer-events: none;
}

/* mobile-only step arrows: pinned to the ends of the scrolling rail */
.ed-steps .ed-sarw {
  display: none;
}
@media (max-width: 760px) {
  .ed-steps .ed-sarw {
    display: flex;
    position: sticky;
    z-index: 3;
    flex: 0 0 auto;
    width: 36px;
    padding: 0;
    font-size: 12px;
    color: var(--tert);
    transition:
      color 0.2s ease,
      opacity 0.2s ease;
  }
  .ed-steps .ed-sarw.prev {
    left: 0;
    border-radius: 12px 0 0 0;
    background: linear-gradient(90deg, #140b0b 62%, rgba(20, 11, 11, 0));
  }
  .ed-steps .ed-sarw.next {
    right: 0;
    border-radius: 0 12px 0 0;
    background: linear-gradient(270deg, #140b0b 62%, rgba(20, 11, 11, 0));
  }
  .ed-steps .ed-sarw::before,
  .ed-steps .ed-sarw::after {
    display: none;
  }
  .ed-steps .ed-sarw:disabled {
    opacity: 0.25;
    cursor: default;
  }
  .ed-steps .ed-sarw:not(:disabled):active {
    color: #ffd9cf;
  }
}
.ed-steps button {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--tert);
  letter-spacing: 0.01em;
  background: transparent;
  padding: 17px 20px;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}
/* hairline between steps, fading out at both ends */
.ed-steps button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

/* Marker is a bare glyph, shown only when the step has a state. Label colour is
   set on <em> so background-clip doesn't paint a box. */
.ed-steps button b {
  width: 0;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: visible;
  transition:
    width 0.3s cubic-bezier(0.2, 0.9, 0.25, 1),
    margin-right 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-steps button b > span {
  display: none;
}
.ed-steps button b::before {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 1.5, 0.5, 1);
}

/* Labels in spaced caps. */
.ed-steps button {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  font-weight: 700;
}
.ed-steps button em {
  font-style: normal;
}
.ed-steps button:hover {
  color: var(--muted);
}

/* active: the label is filled with a gradient, no badge */
.ed-steps button.on {
  color: #fff;
}
.ed-steps button.on em {
  color: #fff;
}
.ed-steps button.on::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    130% 140% at 50% 116%,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.022) 54%,
    transparent 76%
  );
}

/* everything required is filled in -- green tick, green label */
.ed-steps button.ok {
  color: #a8ddc2;
}
.ed-steps button.ok b {
  width: 15px;
  margin-right: 9px;
}
.ed-steps button.ok b::before {
  content: '\2713';
  color: #7fd9a8;
  opacity: 1;
  transform: none;
  text-shadow: 0 0 12px rgba(93, 196, 141, 0.85);
}
.ed-steps button.on.ok em {
  color: #9ce8c1;
}
.ed-steps button.on.ok::after {
  background: radial-gradient(
    120% 130% at 50% 118%,
    rgba(60, 180, 120, 0.26),
    rgba(60, 180, 120, 0.06) 52%,
    transparent 74%
  );
}

/* the editor tried to move on with gaps -- red cross, red label */
.ed-steps button.bad {
  color: #ffa99c;
}
.ed-steps button.bad b {
  width: 15px;
  margin-right: 9px;
}
.ed-steps button.bad b::before {
  content: '\2715';
  color: #ff8f7e;
  opacity: 1;
  transform: none;
  text-shadow: 0 0 12px rgba(226, 59, 46, 0.9);
}
.ed-steps button.on.bad em {
  color: #ffb0a2;
}
.ed-steps button.on.bad::after {
  background: radial-gradient(
    120% 130% at 50% 118%,
    rgba(226, 59, 46, 0.3),
    rgba(226, 59, 46, 0.07) 52%,
    transparent 74%
  );
}

@media (prefers-reduced-motion: reduce) {
  .ed-steps button b,
  .ed-steps button b::before {
    transition: none;
  }
}

/* the underline slides along the rail */
.ed-thumb {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  z-index: 3;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5) 24%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.5) 76%,
    rgba(255, 255, 255, 0)
  );
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.32);
  pointer-events: none;
  transition:
    transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1),
    width 0.34s cubic-bezier(0.2, 0.9, 0.25, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.ed-thumb.ok {
  background: linear-gradient(
    90deg,
    rgba(60, 180, 120, 0),
    #4fc98d 22%,
    #8fe8b9 50%,
    #4fc98d 78%,
    rgba(60, 180, 120, 0)
  );
  box-shadow: 0 0 12px rgba(79, 201, 141, 0.85);
}
.ed-thumb.bad {
  background: linear-gradient(
    90deg,
    rgba(226, 59, 46, 0),
    #e23b2e 22%,
    #ff8f7e 50%,
    #e23b2e 78%,
    rgba(226, 59, 46, 0)
  );
  box-shadow: 0 0 12px rgba(226, 59, 46, 0.9);
}
@media (prefers-reduced-motion: reduce) {
  .ed-thumb {
    transition: none;
  }
}

.ed-step {
  display: none;
  padding: 26px 30px 4px;
}
.ed-step.on {
  display: block;
  animation: edStep 0.42s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes edStep {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ed-hint {
  font-size: 13px;
  color: var(--tert);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: none;
}

/* ---------- desk ---------- */
/* Same accent background as the login card. */
.ed-form {
  background:
    radial-gradient(
      620px 340px at 92% 0%,
      rgba(226, 59, 46, 0.13) 0%,
      rgba(226, 59, 46, 0.1248) 7.44%,
      rgba(226, 59, 46, 0.1097) 15.5%,
      rgba(226, 59, 46, 0.088) 23.56%,
      rgba(226, 59, 46, 0.065) 31%,
      rgba(226, 59, 46, 0.042) 38.44%,
      rgba(226, 59, 46, 0.0203) 46.5%,
      rgba(226, 59, 46, 0.0052) 54.56%,
      rgba(226, 59, 46, 0) 62%
    ),
    radial-gradient(
      460px 320px at 0% 100%,
      rgba(200, 70, 60, 0.08) 0%,
      rgba(200, 70, 60, 0.0768) 7.2%,
      rgba(200, 70, 60, 0.0675) 15%,
      rgba(200, 70, 60, 0.0541) 22.8%,
      rgba(200, 70, 60, 0.04) 30%,
      rgba(200, 70, 60, 0.0259) 37.2%,
      rgba(200, 70, 60, 0.0125) 45%,
      rgba(200, 70, 60, 0.0032) 52.8%,
      rgba(200, 70, 60, 0) 60%
    ),
    linear-gradient(180deg, #1a0d0d, #130a0b);
  border-color: rgba(226, 59, 46, 0.22);
  box-shadow: 0 26px 60px -36px rgba(0, 0, 0, 0.9);
}
.ed-step .fld > span {
  transition: color 0.2s ease;
}
.ed-step .fld:focus-within > span {
  color: #ffd9cf;
}
/* One button slot for Continue / Save / Saved / New report, all the same
   size. */
.ed-bar .submit {
  font-size: 12px;
  gap: 8px;
  padding: 10px 16px;
  border: 0.5px solid transparent;
}
.ed-bar .submit {
  position: relative;
  background: #c8463c;
  box-shadow: 0 6px 20px -6px #e23b2e88;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}
.ed-bar .submit:hover {
  box-shadow: 0 12px 30px -8px #e23b2eaa;
}
/* Incomplete: still clickable, styled as not ready. */
.ed-bar .submit.dim {
  opacity: 0.5;
  box-shadow: none;
}
.ed-bar .submit.dim:hover {
  transform: none;
  box-shadow: 0 6px 20px -6px #e23b2e88;
  opacity: 0.72;
}
/* pressed anyway: it refuses with a shake and a red halo */
.ed-bar .submit.nope {
  opacity: 1;
  animation: nope 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  box-shadow:
    0 0 0 3px rgba(226, 59, 46, 0.3),
    0 10px 28px -6px rgba(226, 59, 46, 0.85);
}
@keyframes nope {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(4px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-8px);
  }
  40%,
  60% {
    transform: translateX(8px);
  }
  100% {
    transform: none;
  }
}
/* every gap in the review flares in turn so it is obvious what is missing */
.rev-r.flare {
  animation: missFlare 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--j, 0) * 95ms);
}
@keyframes missFlare {
  0% {
    background: rgba(226, 59, 46, 0.11);
    box-shadow: inset 0 0 0 0.5px rgba(226, 59, 46, 0.3);
  }
  22% {
    background: rgba(226, 59, 46, 0.34);
    transform: translateX(4px);
    box-shadow:
      inset 0 0 0 1px rgba(255, 140, 120, 0.8),
      0 0 0 3px rgba(226, 59, 46, 0.18);
  }
  44% {
    transform: translateX(-4px);
  }
  66% {
    transform: translateX(2px);
  }
  100% {
    background: rgba(226, 59, 46, 0.11);
    transform: none;
    box-shadow: inset 0 0 0 0.5px rgba(226, 59, 46, 0.3);
  }
}
/* and the step tabs that hold them pulse red at the same time */
.ed-steps.warn button.bad em {
  animation: badBeat 0.8s ease both;
}
.ed-steps.warn button.bad b::before {
  animation: badBeat 0.8s ease both;
}
@keyframes badBeat {
  0%,
  100% {
    transform: none;
    text-shadow: 0 0 12px rgba(226, 59, 46, 0.9);
  }
  30% {
    transform: scale(1.12);
    text-shadow: 0 0 18px rgba(255, 120, 100, 1);
  }
  60% {
    transform: scale(1);
  }
}
.fmsg.err.beat {
  animation: msgBeat 0.8s ease both;
}
@keyframes msgBeat {
  0%,
  100% {
    opacity: 1;
  }
  25% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.55;
  }
}
/* the missing-field line shakes itself once the page has scrolled to it */
.fmsg.err.quake {
  animation: msgQuake 0.62s cubic-bezier(0.32, 0.7, 0.35, 1) both;
  text-shadow: 0 0 14px rgba(226, 59, 46, 0.55);
}
@keyframes msgQuake {
  0% {
    transform: none;
  }
  12% {
    transform: translateX(-7px) scale(1.03);
  }
  26% {
    transform: translateX(6px) scale(1.03);
  }
  40% {
    transform: translateX(-5px);
  }
  54% {
    transform: translateX(4px);
  }
  68% {
    transform: translateX(-3px);
  }
  82% {
    transform: translateX(2px);
  }
  100% {
    transform: none;
  }
}
/* saved: the button goes green, swaps its label and a spark runs the rim */
.submit .lbl-ok {
  display: none;
}
.submit.ok .lbl-go {
  display: none;
}
.submit.ok .lbl-ok {
  display: inline;
}
.ed-bar .submit.ok {
  background: #2ea87a;
  box-shadow: 0 8px 26px -6px rgba(72, 200, 150, 0.75);
}
.ed-bar .submit.ok:hover {
  box-shadow: 0 12px 30px -8px rgba(72, 200, 150, 0.85);
}
/* Held-state buttons ease in (fill-mode backwards so hover transforms still
   work). */
.ed-ov:not([hidden]),
.ed-bar .submit.ed-again:not([hidden]) {
  animation: cmtRise 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) 0.05s backwards;
}
.ed-bar .submit.ed-again:not([hidden]) {
  animation-delay: 0.13s;
}
@media (prefers-reduced-motion: reduce) {
  .ed-ov,
  .ed-bar .submit.ed-again {
    animation: none !important;
  }
}
.ed-bar .submit.ed-again {
  background: #2ea87a;
  box-shadow: 0 6px 18px -8px rgba(72, 200, 150, 0.7);
}
.ed-bar .submit.ed-again:hover {
  box-shadow: 0 10px 24px -8px rgba(72, 200, 150, 0.85);
}
.submit.ok > i::before {
  content: '\f00c';
}
.submit.ok > i {
  animation: okTick 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes okTick {
  from {
    transform: scale(0.4) rotate(-14deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.submit .rim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: 99px;
  padding: 1.6px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.submit .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 60%,
    rgba(127, 227, 182, 0.35) 74%,
    #7fe3b6 82%,
    #eafff4 86%,
    rgba(127, 227, 182, 0.35) 90%,
    transparent 96%
  );
}
.submit.rimgo .rim {
  animation: rimShow 2s ease-out both;
}
.submit.rimgo .rim > b {
  animation: rimSpin 1s linear 2;
}
@keyframes rimShow {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rimSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.ed-seg button {
  padding: 8px 22px;
}
.ed-seg-thumb {
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 175, 0.45),
    0 3px 10px -4px rgba(226, 59, 46, 0.9);
}
.ed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ed-grid .full {
  grid-column: 1/-1;
}
.fld > span i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(200, 70, 60, 0.95);
  margin-left: 7px;
}
.fld-note {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--tert);
  margin-top: 6px;
  line-height: 1.5;
}
.fld-note.warn {
  color: #e9b35f;
} /* the gold of the report's countries on the map */
.fld-note.ok {
  color: #8fceb2;
}
.fld-note.err {
  color: #ff9c8a;
}
.ac-p {
  max-height: 260px;
}
.fld.bad input,
.fld.bad textarea,
.fld.bad .xsel-b {
  border-color: rgba(226, 59, 46, 0.6);
}
/* a required field left empty after Continue */
.fld.bad > span,
.fgrp.bad > .flab {
  color: #ffa99c;
  transition: color 0.2s ease;
}
.fld.bad .ed-pick,
.fld.bad .kw {
  border-color: rgba(226, 59, 46, 0.6);
}

/* a two-state segment, same language as the viewer's mode switch */
.ed-seg {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border-radius: 99px;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.26));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.09),
    inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.ed-seg button {
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tert);
  background: transparent;
  border-radius: 99px;
  padding: 8px 22px;
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease;
}
.ed-seg button:hover {
  color: var(--muted);
}
.ed-seg button.on {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.ed-seg-thumb {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #d4514550, #c8463c);
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 175, 0.45),
    0 3px 10px -4px rgba(226, 59, 46, 0.9);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1),
    width 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* category cards: the guided part of the form */
/* Impact categories: one tray, one row, chips in a carousel, coloured as in
   the public categories chart. */
.ed-catrail {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -4px;
}
.ed-rail-nav {
  flex: none;
  width: 26px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--tert);
  font-size: 12px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ed-rail-nav:hover {
  color: var(--ink);
  transform: scale(1.15);
}
.ed-rail-nav.off {
  opacity: 0.22;
  pointer-events: none;
}
.ed-catrail.no-scroll .ed-rail-nav {
  display: none;
}
.ed-cats {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Own compositing layer for the masked scroller (avoids stale tiles on
     hover). */
  will-change: scroll-position;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 46px,
    #000 calc(100% - 46px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 46px,
    #000 calc(100% - 46px),
    transparent 100%
  );
}
.ed-catrail.at-start .ed-cats {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 46px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 46px), transparent 100%);
}
.ed-catrail.at-end .ed-cats {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 46px, #000 100%);
}
.ed-catrail.no-scroll .ed-cats,
.ed-catrail.open .ed-cats {
  -webkit-mask-image: none;
  mask-image: none;
}
/* expanded: a plain list, one category per row */
.ed-catrail.open .ed-cats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: visible;
  padding: 12px 4px;
  scroll-behavior: auto;
}
.ed-catrail.open .ed-cats button {
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  padding: 12px 16px 12px 13px;
}
.ed-catrail.open .ed-rail-nav {
  display: none;
}
/* No clipping and no per-chip blur during the layout swap (blur caused
   stutter). */
.ed-catrail.flipping .ed-cats {
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible;
}
.ed-catrail.flipping .ed-cats button {
  will-change: transform;
}
.ed-cats::-webkit-scrollbar {
  display: none;
}
.ed-cats button {
  --rgb: 106, 113, 126;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 0.5px solid rgba(var(--rgb), 0.3);
  border-radius: 13px;
  padding: 9px 15px 9px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(var(--rgb), 0.17), rgba(var(--rgb), 0.05));
  /* no backdrop-filter here: inside the masked, scrolling rail it made Chromium
     leave stale slivers of the hover border on neighbouring chips */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.24s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-cats button i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--rgb), 0.5);
  background: rgba(var(--rgb), 0.14);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.24s ease;
}
.ed-cats button i::before {
  content: '\2713';
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  margin: 1.5px 1.5px 0 0;
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.18s ease,
    transform 0.26s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.ed-cats button:hover {
  color: var(--ink);
  border-color: rgba(var(--rgb), 0.55);
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(var(--rgb), 0.26), rgba(var(--rgb), 0.09));
}
.ed-cats button:hover i {
  background: rgba(var(--rgb), 0.3);
  border-color: rgba(var(--rgb), 0.75);
}
.ed-cats button.on {
  color: #fff;
  border-color: rgba(var(--rgb), 0.8);
  background: linear-gradient(180deg, rgba(var(--rgb), 0.42), rgba(var(--rgb), 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 7px 18px -12px rgb(var(--rgb));
}
.ed-cats button.on i {
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), rgb(var(--rgb));
  border-color: rgba(var(--rgb), 0.75);
  box-shadow: 0 0 8px -4px rgb(var(--rgb));
}
.ed-cats button.on i::before {
  opacity: 1;
  transform: none;
  color: rgba(255, 248, 240, 0.85);
}
.ed-cats.out button {
  animation: chipOut 0.24s cubic-bezier(0.4, 0, 0.7, 0.2) forwards;
  animation-delay: calc(var(--i, 0) * 9ms);
}
@keyframes chipOut {
  to {
    opacity: 0;
    transform: translateY(-9px) scale(0.95);
    filter: blur(4px);
  }
}
.ed-cats.fresh button {
  animation: chipIn 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.ed-cats button.just {
  animation: pickPop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pickPop {
  0% {
    transform: scale(0.97);
  }
  55% {
    transform: scale(1.035);
  }
  100% {
    transform: none;
  }
}
.ed-subs button.just {
  animation: subPop 0.38s cubic-bezier(0.3, 0.9, 0.35, 1);
}
@keyframes subPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}
.flab i {
  color: rgba(200, 70, 60, 0.95);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.ed-lbtns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Button labels don't wrap. */
.ed-ghost,
.ed-clear {
  white-space: nowrap;
  flex: none;
}
@media (max-width: 620px) {
  /* Buttons wrap below the row label when space is tight. */
  .flab {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .ed-lbtns {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .ed-ghost,
  .ed-clear {
    padding: 6px 0;
    font-size: 10.5px;
    letter-spacing: 0.07em;
  }
}
.ed-ghost,
.ed-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.ed-ghost {
  color: var(--muted);
}
.ed-ghost:hover {
  color: var(--ink);
}
.ed-clear {
  color: #ffb3a4;
}
.ed-clear::before {
  content: '\00d7';
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-top: -1px;
}
.ed-clear:hover {
  color: #fff;
}
.ed-catpick {
  font-size: 12px;
  color: var(--tert);
  min-height: 17px;
  margin: 10px 0 0;
  line-height: 1.7;
}
.ed-catpick b {
  color: var(--ink);
  font-weight: 700;
}
.ed-catpick em {
  font-style: normal;
  font-weight: 500;
  filter: saturate(0.5);
}
.ed-catpick button {
  font-style: normal;
  font-weight: 500;
  filter: saturate(0.95);
}
.ed-catpick button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition:
    filter 0.18s ease,
    border-color 0.18s ease,
    text-shadow 0.22s ease;
}
.ed-catpick button {
  opacity: 0.95;
}
.ed-catpick button::after {
  content: '\2193';
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
}
.ed-catpick button:hover {
  filter: saturate(1) brightness(1.08);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 7px currentColor;
}
.ed-catpick .hint {
  color: var(--tert);
  font-size: 11px;
}
/* a one-off tip on its own line under the names: it opens when the first
   category is picked and folds away again after a few seconds */
.ed-cathint {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transition:
    grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease;
}
.ed-cathint.on {
  grid-template-rows: 1fr;
  opacity: 1;
}
.ed-cathint > span {
  display: block;
  min-height: 0;
  overflow: hidden;
  padding-top: 3px;
  font-size: 11px;
  color: var(--tert);
}
.ed-subback {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* checkbox pickers for country and lower geographic unit */
.ed-pick {
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.ed-pick input.ed-pick-q {
  border: 0;
  border-bottom: 0.5px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  padding: 9px 12px;
}
.ed-pick input.ed-pick-q:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}
.ed-pick-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ed-pick-list::-webkit-scrollbar {
  width: 9px;
}
.ed-pick-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.ed-pick-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 0.5px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.ed-pick-list button i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.ed-pick-list button i::before {
  content: '\2713';
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin: 1px 1px 0 0;
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.ed-pick-list button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.ed-pick-list button.on {
  color: #fff;
  background: rgba(200, 70, 60, 0.16);
  border-color: rgba(200, 70, 60, 0.45);
}
/* chosen boxes in a deep tone with a softened tick, so they do not glare */
.ed-pick-list button.on i {
  background: #8e3029;
  border-color: #a8392f;
}
.ed-pick-list button.on i::before {
  color: rgba(255, 236, 230, 0.82);
}
.ed-pick-list button.on i::before {
  opacity: 1;
  transform: none;
}
.ed-pick-h {
  grid-column: 1/-1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tert);
  padding: 8px 2px 2px;
}
.ed-pick-none {
  grid-column: 1/-1;
  font-size: 12.5px;
  color: var(--tert);
  padding: 8px 4px;
  margin: 0;
}
/* empty picker matches a plain input, so the first view of the step lines up */
.ed-pick.empty {
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}
.ed-pick.empty .ed-pick-list {
  padding: 0;
  max-height: none;
  overflow: visible;
}
.ed-pick.empty .ed-pick-none {
  font-size: 13.5px;
  padding: 10px 12px;
  line-height: 1.6;
}
/* free-text places: one row per entry, with the countries it lies in */
.pl-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
}
.pl-list:empty {
  padding-top: 0;
}
.pl-row {
  display: grid;
  grid-template-columns: minmax(0, max-content) 1fr auto;
  grid-template-areas: 'n in x';
  align-items: center;
  gap: 6px 10px;
  padding: 6px 6px 6px 12px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease;
  animation: plIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pl-row.still {
  animation: none;
}
.pl-row,
.ln-row {
  position: relative;
}
.pl-row.lift,
.ln-row.lift {
  z-index: 60;
}
.pl-row.out {
  animation: plOut 0.18s ease both;
}
.pl-row.dupe {
  animation: kwDupe 0.5s ease both;
}
/* the gold a report's countries rise in on the map */
.pl-row.warn {
  border-color: rgba(255, 217, 154, 0.42);
}
.pl-n {
  grid-area: n;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-in {
  grid-area: in;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.pl-co {
  grid-area: in;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 3px 2px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.pl-co i {
  font-size: 9px;
  color: var(--tert);
  transition: color 0.15s ease;
}
.pl-co:hover,
.pl-co:hover i {
  color: var(--ink);
}
.pl-co.fixed {
  cursor: default;
}
.pl-co.fixed:hover {
  color: var(--muted);
}
.pl-in.fresh {
  animation: plIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* Add inside a place field, shown once something is typed */
.pl-add {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 5px 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    color 0.15s ease;
}
.pl-add i {
  font-size: 10px;
}
.pl-add:hover {
  color: var(--ink);
}
.xsel.ac.has .pl-add {
  opacity: 1;
  pointer-events: auto;
}
.xsel.ac.has input {
  padding-right: 68px;
}
/* closes the ticks; set apart from the remove cross so the two are not mixed up */
.pl-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 4px 4px 12px;
  border: 0;
  white-space: nowrap;
  overflow: hidden;
  flex: none;
  border-left: 0.5px solid var(--line);
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #8fceb2;
  cursor: pointer;
  transition: color 0.15s ease;
}
.pl-ok i {
  font-size: 10px;
}
.pl-ok:hover {
  color: #c9f0dd;
}
.pl-row.gone {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'n x';
  background: none;
  border-style: dashed;
}
.pl-row.gone .pl-n {
  color: var(--tert);
}
.pl-undo {
  grid-area: x;
  border: 0;
  background: none;
  padding: 3px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.15s ease;
}
.pl-undo:hover {
  color: var(--ink);
}
/* a removed continent: a dashed line with Undo in place of its row */
.pick-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px 0 12px;
  border: 0.5px dashed var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--tert);
  animation: plIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pick-undo.out {
  animation: plOut 0.18s ease both;
}
.pl-x {
  grid-area: x;
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--tert);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.pl-x:hover {
  color: #fff;
}
/* small tick toggles: the countries of a place, the places of an impact */
.as-b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 4px 9px 4px 7px;
  cursor: pointer;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
/* the same tick box as the continent, country and region lists */
.as-b i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.as-b i::before {
  content: '\2713';
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin: 1px 3px 0 0;
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.as-b:hover {
  color: var(--ink);
}
.as-b.on {
  color: #fff;
}
.as-b.on i {
  background: #8e3029;
  border-color: #a8392f;
}
.as-b.on i::before {
  color: rgba(255, 236, 230, 0.82);
}
.as-b.on i::before {
  opacity: 1;
  transform: none;
}
.as-b.no {
  animation: asNo 0.36s ease;
}
/* the options dropdown, pressed into the row like the paywall switch */
.as-dd {
  position: relative;
  display: inline-flex;
}
.as-dd-b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  font: inherit;
  font-size: 11.5px;
  color: #fff;
  padding: 6px 10px 6px 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
  transition: color 0.15s ease;
}
.as-dd-b {
  -webkit-user-select: none;
  user-select: none;
}
.as-dd-b span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-dd-b i {
  flex: none;
  font-size: 9px;
  color: var(--tert);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.15s ease;
}
.as-dd-b.none {
  color: var(--muted);
}
/* an impact that applies everywhere reads quieter than one narrowed down */
.as-dd-b.all {
  color: var(--muted);
}
.as-dd-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tert);
  padding: 9px 9px 4px;
}
.as-dd-l > .as-dd-h:first-child,
.as-dd-all[hidden] + .as-dd-h,
.as-dd-all.gone + .as-dd-h,
.as-dd-all.q + .as-dd-h {
  padding-top: 3px;
}
.as-dd-h {
  transition: padding-top 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.as-dd-all.q {
  display: none;
}
.as-dd-b span.swap {
  animation: ddTxt 0.26s ease both;
}
@keyframes ddTxt {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
}
.as-fl {
  flex: none;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.as-dd-h .as-fl {
  opacity: 0.85;
}
.as-dd-h[hidden] {
  display: none;
}
.as-dd-all {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  padding: 1px 9px 7px;
  margin-bottom: 3px;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #8fceb2;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.as-dd-all i {
  font-size: 11px;
  width: 16px;
  text-align: center;
}
.as-dd-all:hover {
  color: #c9f0dd;
}
.as-dd-all[hidden] {
  display: none;
}
/* in an impact row the list takes the colour of the row's category */
.ln-row .as-dd-p {
  background:
    linear-gradient(180deg, rgba(var(--rgb), 0.13), rgba(var(--rgb), 0.05)), rgba(21, 17, 20, 0.96);
  border-color: rgba(var(--rgb), 0.38);
}
.ln-row .as-dd-o:hover {
  background: rgba(var(--rgb), 0.08);
}
.ln-row .as-dd-o.on {
  background: rgba(var(--rgb), 0.16);
}
.ln-row .as-b.on i {
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), rgb(var(--rgb));
  border-color: rgba(var(--rgb), 0.75);
}
.ln-row .as-dd-h {
  color: rgba(var(--rgb), 0.8);
  color: color-mix(in srgb, rgb(var(--rgb)) 25%, #fff);
}
.ln-row .as-dd-all {
  border-bottom-color: rgba(var(--rgb), 0.25);
}
.ln-row .as-dd-s input.as-dd-q {
  border-color: rgba(var(--rgb), 0.3);
}
/* a place still missing its country asks in the button itself */
.pl-row.warn .as-dd-b.none {
  color: #ffd99a;
}
/* the label clips for its ellipsis, so it gets room for the glow to fade out */
.pl-row.warn .as-dd-b.none span {
  text-shadow: 0 0 6px rgba(233, 179, 95, 0.45);
  padding: 8px 10px;
  margin: -8px -10px;
}
.as-dd-b:hover i {
  color: var(--ink);
}
.as-dd.open .as-dd-b i {
  transform: rotate(180deg);
}
.as-dd-p {
  position: absolute;
  z-index: 90;
  right: 0;
  top: calc(100% + 7px);
  width: max-content;
  min-width: 250px;
  max-width: min(460px, 92vw);
  background: rgba(21, 17, 20, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 60px -20px rgba(0, 0, 0, 0.92);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.as-dd.up .as-dd-p {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom right;
}
.as-dd.open .as-dd-p {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.as-dd-s {
  position: relative;
  margin-bottom: 6px;
}
.as-dd-s i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  color: var(--tert);
  pointer-events: none;
  transition: color 0.15s ease;
}
.as-dd-s:focus-within i {
  color: var(--muted);
}
/* outranks the general text-input rule, which sets its own padding and size */
.as-dd-s input.as-dd-q {
  width: 100%;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 10px 5px 29px;
  border-radius: 7px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  outline: none;
}
.as-dd-s input.as-dd-q:focus {
  border-color: rgba(255, 255, 255, 0.22);
}
/* the list reaches into the panel's right padding, so its scrollbar runs
   along the panel edge rather than beside the options */
.as-dd-l {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -6px;
  padding-right: 4px;
}
.as-dd-l::-webkit-scrollbar {
  width: 9px;
}
.as-dd-l::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.as-dd-o {
  width: 100%;
  justify-content: flex-start;
  padding: 7px 9px 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.as-dd-o i {
  order: 3;
  margin-left: auto;
}
.as-dd-o .as-fl {
  order: 1;
}
.as-dd-o span {
  order: 2;
  margin-right: 14px;
}
.as-dd-o span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.as-dd-o[hidden] {
  display: none;
}
.as-dd-o.on {
  background: rgba(255, 255, 255, 0.06);
}
@keyframes asNo {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
/* impacts tied to places */
.ln-fld.fold {
  overflow: hidden;
  transition:
    height 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s ease;
}
.ln-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ln-row {
  --rgb: 106, 113, 126;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 7px 7px 7px 12px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  background: rgba(var(--rgb), 0.075);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
/* coloured like the subcategories on the Impact step; a narrowed impact,
   and the one whose list is open for editing, take their chosen look */
.ln-row.part,
.ln-row.lift {
  border-color: rgba(var(--rgb), 0.6);
  background: linear-gradient(180deg, rgba(var(--rgb), 0.28), rgba(var(--rgb), 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px -16px rgb(var(--rgb));
}
.ln-n {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
}
.ln-row .pl-in {
  margin-left: auto;
}
/* phones: the name and its remove button on one line, the ticks below */
@media (max-width: 640px) {
  .pl-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'n x' 'in in';
  }
  .pl-in {
    justify-content: flex-start;
  }
  .pl-co {
    justify-self: start;
  }
  .as-dd-p {
    right: auto;
    left: 0;
    transform-origin: top left;
  }
  .ln-row .pl-in {
    margin-left: 0;
  }
}
.ln-n code {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10.5px;
  color: rgba(var(--rgb), 0.85);
  margin-right: 8px;
}
.ln-row.part .ln-n code,
.ln-row.lift .ln-n code {
  color: rgb(var(--rgb));
}
@keyframes plIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes plOut {
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}
.ed-subgrp.flash > h4 {
  animation: hFlash 1s ease;
}
@keyframes hFlash {
  0%,
  100% {
    filter: none;
  }
  30% {
    filter: brightness(1.55);
    text-shadow:
      0 0 24px rgba(var(--rgb), 0.9),
      0 0 8px rgba(var(--rgb), 0.6);
  }
}
.ed-subgrp.flash .ed-subs button {
  animation: rowFlash 0.85s ease;
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes rowFlash {
  0%,
  100% {
    box-shadow: none;
  }
  35% {
    box-shadow:
      inset 0 0 0 1px rgba(var(--rgb), 0.55),
      0 0 16px -6px rgb(var(--rgb));
  }
}
.ed-catpick,
.ed-cat-d {
  transition: opacity 0.25s ease;
}
.ed-catpick.swap,
.ed-cat-d.swap {
  opacity: 0;
}
.ed-subwrap {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.ed-subgrp {
  --rgb: 106, 113, 126;
}
.ed-subgrp > h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--rgb));
  text-shadow:
    0 0 18px rgba(var(--rgb), 0.55),
    0 0 6px rgba(var(--rgb), 0.35);
}
.ed-subgrp .ed-subs button {
  border-color: transparent;
  background: rgba(var(--rgb), 0.075);
}
.ed-subgrp .ed-subs button code {
  color: rgba(var(--rgb), 0.85);
}
.ed-subgrp .ed-subs button:hover {
  background: rgba(var(--rgb), 0.15);
  color: var(--ink);
}
.ed-subgrp .ed-subs button.on {
  color: #fff;
  border-color: rgba(var(--rgb), 0.6);
  background: linear-gradient(180deg, rgba(var(--rgb), 0.28), rgba(var(--rgb), 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px -16px rgb(var(--rgb));
}
.ed-subgrp .ed-subs button.on code {
  color: rgb(var(--rgb));
}
.ed-subgrp.fresh {
  animation: grpIn 0.4s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
}
.ed-subgrp.fresh .ed-subs button {
  animation: subIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 24ms);
}
@keyframes grpIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes subIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ed-grid.gap-top {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 0.5px solid var(--line);
}
.ed-cat-d {
  font-size: 12.5px;
  color: var(--tert);
  line-height: 1.6;
  margin-top: 12px;
  min-height: 1.2em;
}
.ed-subs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ed-subs button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 0.5px solid transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.22s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-subs button code {
  flex: none;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tert);
  min-width: 30px;
}
.ed-subs button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  transform: translateX(2px);
}
.ed-subs button.on {
  background: rgba(200, 70, 60, 0.18);
  border-color: rgba(200, 70, 60, 0.4);
  color: #ffd9cf;
}
.ed-subs button.on code {
  color: #ffc7b8;
}
.ed-none {
  font-size: 12.5px;
  color: var(--tert);
}

.ed-review {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 6px;
}
.rev-r {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  font-size: 13px;
}
.rev-r > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tert);
}
.rev-r > b {
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.rev-r.miss {
  background: rgba(226, 59, 46, 0.11);
  box-shadow: inset 0 0 0 0.5px rgba(226, 59, 46, 0.3);
}
.rev-r.miss > b {
  color: #ff9a8a;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* the rows land one after another when the review step opens */
.rev-r {
  position: relative;
}
.ed-review.enter .rev-r {
  animation: revIn 0.42s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes revIn {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
/* and they lock over to green, in the same order, once the report is saved */
.ed-review.saved .rev-r {
  animation: revLock 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes revLock {
  0% {
    background: rgba(255, 255, 255, 0.028);
    box-shadow: inset 0 0 0 0.5px rgba(127, 227, 182, 0);
  }
  32% {
    background: rgba(72, 200, 150, 0.2);
    box-shadow: inset 0 0 0 0.5px rgba(127, 227, 182, 0.5);
  }
  100% {
    background: rgba(72, 200, 150, 0.075);
    box-shadow: inset 0 0 0 0.5px rgba(127, 227, 182, 0.2);
  }
}
.ed-review.saved .rev-r > b {
  color: var(--ink);
  padding-right: 22px;
}
.rev-r::after {
  content: '\2713';
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #7fe3b6;
  opacity: 0;
  transform: scale(0.5);
}
.ed-review.saved .rev-r::after {
  animation: revTick 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 0.14s);
}
@keyframes revTick {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Commit animation ----
   After all rows are valid: segmented progress bar, percentage and three stages,
   with the spark on the button rim. */
.ed-step[data-s='3'] {
  position: relative;
}
/* Overlay inside the step, same corner radius, darkens the rows with a faint
   green tint. */
.cmt {
  position: absolute;
  top: 14px;
  right: 16px;
  bottom: 6px;
  left: 16px;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 10px;
  background: radial-gradient(
    130% 100% at 50% 45%,
    rgba(6, 17, 13, 0.9) 0,
    rgba(2, 6, 5, 0.965) 100%
  );
  box-shadow: inset 0 0 0 0.5px rgba(127, 227, 182, 0.14);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: cmtIn 0.62s cubic-bezier(0.33, 0.9, 0.28, 1) both;
}
@keyframes cmtIn {
  from {
    opacity: 0;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
  }
}
.cmt.out {
  animation: cmtOut 0.42s ease forwards;
}
@keyframes cmtOut {
  to {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(2px);
  }
}
/* Frame as a 1px plate behind the panel (same line on angled corners). */
.cmt-box {
  position: relative;
  width: min(440px, 100%);
  padding: 1.5px;
  clip-path: polygon(
    15px 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%,
    0 15px
  );
  background: rgba(127, 227, 182, 0.34);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 30px rgba(72, 200, 150, 0.22));
  animation: cmtBox 0.78s cubic-bezier(0.16, 0.86, 0.24, 1) 0.12s both;
  transition:
    background 0.35s ease,
    filter 0.35s ease;
}
@keyframes cmtBox {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.965);
    filter: blur(7px) drop-shadow(0 0 0 transparent);
  }
  55% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
  }
  100% {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.75))
      drop-shadow(0 0 30px rgba(72, 200, 150, 0.22));
  }
}
/* the contents fade in shortly after the frame has finished its entrance */
.cmt-in > * {
  animation: cmtRise 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.cmt-in > .cmt-h {
  animation-delay: 0.3s;
}
.cmt-in > .cmt-bar {
  animation-delay: 0.36s;
}
.cmt-in > .cmt-meta {
  animation-delay: 0.42s;
}
.cmt-in > .cmt-steps {
  animation-delay: 0.48s;
}
.cmt-in > .cmt-scan,
.cmt-in > .cmt-go {
  animation: none;
}
@keyframes cmtRise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Inner cut inset by 0.586 x line width so 45deg edges match the straight
   ones. */
.cmt-in {
  position: relative;
  overflow: hidden;
  padding: 19px 22px 17px;
  clip-path: polygon(
    14.1px 0,
    100% 0,
    100% calc(100% - 14.1px),
    calc(100% - 14.1px) 100%,
    0 100%,
    0 14.1px
  );
  background: linear-gradient(180deg, rgba(22, 58, 46, 0.96), rgba(7, 18, 15, 0.98));
}
/* a scanline crawls the rack while the write is in flight */
.cmt-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(127, 227, 182, 0.1), transparent);
  animation: cmtScan 1.5s linear infinite;
  transition: opacity 0.3s ease;
}
@keyframes cmtScan {
  from {
    transform: translateY(-130%);
  }
  to {
    transform: translateY(400%);
  }
}
.cmt-h {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #d3f5e4;
}
/* Dots inside the label so they stay with the last word when it wraps. */
.cmt-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-left: 5px;
  vertical-align: -1px;
  transition: opacity 0.3s ease;
}
.cmt-dots u {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(127, 227, 182, 0.6);
  animation: cmtDot 1.05s ease-in-out infinite;
}
.cmt-dots u:nth-child(2) {
  animation-delay: 0.17s;
}
.cmt-dots u:nth-child(3) {
  animation-delay: 0.34s;
}
.cmt.done .cmt-dots {
  opacity: 0;
}
/* Keep the dots attached to the last word. */
.cmt-h > span {
  min-width: 0;
}
.cmt-nb {
  font-style: normal;
  white-space: nowrap;
}
/* up in the free top-right corner, clear of and above the row count */
.cmt-x {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: rgba(127, 227, 182, 0.6);
  transition:
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.cmt-x:hover {
  color: #eafff4;
}
.cmt-x:focus-visible {
  outline: 2px solid #eafff4;
  outline-offset: 1px;
  border-radius: 4px;
}
.cmt-in > .cmt-x {
  animation-delay: 0.3s;
}
/* the row count lives in the status line, leaving the top-right corner to the cross */
.cmt-rows {
  font-style: normal;
  white-space: nowrap;
  color: rgba(127, 227, 182, 0.5);
}
.cmt-rows::before {
  content: '/';
  margin: 0 0.6em;
}
.cmt-bar {
  position: relative;
  height: 6px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(127, 227, 182, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(127, 227, 182, 0.22);
}
.cmt-bar u {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #1c8963, #4fd39c 62%, #d9fff0);
  box-shadow: 0 0 16px rgba(80, 210, 155, 0.8);
}
.cmt-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 9px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(127, 227, 182, 0.7);
}
.cmt-pct {
  color: #eafff4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cmt-steps {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}
.cmt-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  font-size: 11.5px;
  color: rgba(190, 224, 209, 0.5);
  border-top: 0.5px solid rgba(127, 227, 182, 0.13);
  transition: color 0.3s ease;
}
.cmt-steps li b {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(127, 227, 182, 0.38);
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.cmt-steps li span {
  flex: 1;
  letter-spacing: 0.02em;
}
.cmt-steps li i {
  position: relative;
  flex: none;
  width: 36px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
@keyframes cmtDot {
  0%,
  100% {
    opacity: 0.16;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}
/* a buffer ring turns on the stage that is currently working */
.cmt-steps li i s {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  text-decoration: none;
  border: 1.5px solid rgba(127, 227, 182, 0.16);
  border-top-color: rgba(127, 227, 182, 0.34);
  animation: cmtSpin 0.82s linear infinite;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
@keyframes cmtSpin {
  to {
    transform: rotate(360deg);
  }
}
.cmt-steps li.run i s {
  border-color: rgba(127, 227, 182, 0.24);
  border-top-color: #7fe3b6;
  box-shadow: 0 0 12px -2px rgba(127, 227, 182, 0.6);
}
.cmt-steps li.ok i s {
  opacity: 0;
  transform: scale(0.4);
  animation: none;
}
.cmt-steps li i::after {
  content: '\2713';
  position: absolute;
  right: 0;
  font-size: 12px;
  font-weight: 800;
  color: #7fe3b6;
  text-shadow: 0 0 12px rgba(127, 227, 182, 0.8);
  opacity: 0;
  transform: scale(0.4) translateX(-5px);
}
.cmt-steps li.ok i::after {
  animation: cmtTick 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) 0.16s forwards;
}
@keyframes cmtTick {
  to {
    opacity: 1;
    transform: none;
  }
}
.cmt-steps li.run {
  color: #bfe3d3;
}
.cmt-steps li.run b {
  color: rgba(127, 227, 182, 0.62);
}
.cmt-steps li.ok {
  color: #dffaee;
}
.cmt-steps li.ok b {
  color: #7fe3b6;
  text-shadow: 0 0 10px rgba(127, 227, 182, 0.75);
}
.cmt.done .cmt-scan {
  opacity: 0;
}
.cmt.done .cmt-box {
  background: rgba(127, 227, 182, 0.62);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 34px rgba(72, 200, 150, 0.4));
}
.cmt.done .cmt-bar u {
  background: linear-gradient(90deg, #2ea87a, #7fe3b6 70%, #eafff4);
}
/* the hand-off is the editor's to make: nothing moves until this is pressed */
.cmt-go {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.3s ease,
    margin-top 0.45s ease;
}
.cmt.done .cmt-go {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 15px;
}
.cmt-go > div {
  overflow: hidden;
}
.cmt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 12px 18px;
  text-shadow: 0 1px 2px rgba(0, 40, 26, 0.4);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  background: linear-gradient(180deg, #3fbb8b, #1f8f66);
  box-shadow: 0 10px 26px -10px rgba(72, 200, 150, 0.8);
  transition:
    filter 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1),
    box-shadow 0.2s ease;
}
.cmt-btn i {
  font-style: normal;
  font-size: 13px;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.cmt-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px -10px rgba(72, 200, 150, 0.95);
}
.cmt-btn:hover i {
  transform: translateX(3px);
}
.cmt-btn:active {
  transform: translateY(1px);
}
.cmt-btn:focus-visible {
  outline: 2px solid #eafff4;
  outline-offset: 3px;
}

.ed-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 30px 24px;
  border-top: 0.5px solid var(--line);
  margin-top: 22px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 0 0 12px 12px;
}
.ed-bar .fmsg {
  margin: 0;
  flex: 1 1 auto;
  min-width: 120px;
}
/* Indicates that an existing report is being edited. */
.ed-editing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffd9cf;
}
.ed-editing[hidden] {
  display: none;
}
.ed-skip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: baseline;
  margin: 22px 30px -8px;
  padding: 12px 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: 8px;
  background: rgba(243, 181, 74, 0.05);
  border: 0.5px solid rgba(243, 181, 74, 0.22);
}
.ed-skip[hidden] {
  display: none;
}
.ed-skip i {
  font-size: 11px;
  color: #f3c26a;
}
.ed-skip b {
  font-weight: 600;
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: rgba(243, 181, 74, 0.5);
}
.ed-skip span,
.ed-skip b {
  grid-column: 2;
}
.ed-editing > i {
  font-size: 10.5px;
  color: var(--orange, #e2593a);
}
/* Inline text action (underlined, with a divider), not a nested pill. */
.ed-editing > button {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 2px 2px 12px;
  margin-left: 2px;
  border: 0;
  background: none;
  border-left: 1px solid rgba(255, 170, 150, 0.28);
  color: rgba(255, 190, 175, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 170, 150, 0.35);
  transition:
    color 0.16s ease,
    text-decoration-color 0.16s ease;
}
.ed-editing > button:hover {
  color: #fff;
  text-decoration-color: rgba(255, 190, 175, 0.9);
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--tert);
  background: transparent;
  border: 0.5px solid var(--line);
  border-radius: 99px;
  padding: 10px 16px;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}
.ghost[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
/* preview only: fills the form with nonsense so the sequence can be watched */
/* Bottom position (the tour bar is at the top). */
body.td-preview::before {
  content: 'PREVIEW: nothing is saved';
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #062a1e;
  background: #7fe3b6;
  padding: 4px 14px 3px;
  border-radius: 9px 9px 0 0;
  box-shadow: 0 -6px 18px -8px rgba(72, 200, 150, 0.9);
}
.ed-demo,
.ed-ov {
  border-color: rgba(150, 235, 205, 0.3);
  color: #8fceb2;
}
/* preview: the country count for the random report */
.ed-demo-n {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 99px;
  border: 0.5px solid rgba(150, 235, 205, 0.25);
  background: rgba(72, 200, 150, 0.05);
}
.ed-demo-n[hidden] {
  display: none;
}
.ed-demo-n em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 206, 178, 0.7);
  padding: 0 6px 0 8px;
}
.ed-demo-n button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #8fceb2;
  padding: 5px 9px;
  border-radius: 99px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.ed-demo-n button:hover {
  color: #eafff4;
}
.ed-demo-n button.on {
  background: rgba(72, 200, 150, 0.22);
  color: #eafff4;
}
@media (max-width: 760px) {
  .ed-demo-n em {
    display: none;
  }
  .ed-demo-n button {
    padding: 5px 7px;
  }
}
.ed-demo:hover,
.ed-ov:hover {
  color: #eafff4;
  border-color: rgba(150, 235, 205, 0.6);
  background: rgba(72, 200, 150, 0.12);
}
.ed-ov i {
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-ov:hover i {
  transform: translateX(3px);
}

/* ---------- database ---------- */
.ed-db {
  padding: 0;
  overflow: hidden;
}
/* Same labelled fields as the report form, on a fixed grid. */
/* 4 columns, 6 fields over two rows (search spans 2; Years spans 2).
   Reset moved to the count bar. */
.db-bar {
  display: grid;
  gap: 14px 10px;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}
.db-bar .db-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.db-bar .db-f > span {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
}
.db-f-q {
  grid-column: span 2;
}
.db-f-yr {
  grid-column: span 2;
}
.db-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.db-search i {
  position: absolute;
  left: 13px;
  font-size: 12px;
  color: var(--tert);
  pointer-events: none;
}
.db-search input {
  width: 100%;
  padding: 10px 32px 10px 34px;
}
.db-search button {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--tert);
  background: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    color 0.16s ease;
}
.db-search button:hover {
  color: var(--ink);
}
.db-search.has button {
  opacity: 1;
  pointer-events: auto;
}
.db-bar .xsel {
  width: 100%;
}
/* Value and caption stacked. */
.db-meta {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--tert);
  border-bottom: 0.5px solid var(--line);
}
.db-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 18px 0 13px;
  position: relative;
}
.db-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--orange, #e2593a), rgba(226, 59, 46, 0));
}
.db-stat.sub::before {
  background: rgba(255, 255, 255, 0.16);
}
.db-stat > span {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tert);
  line-height: 1;
}
.db-stat > b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.db-stat.sub > b {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}
.db-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
/* Sync status for the shared store: muted when OK, amber when reports are
   waiting to be sent. */
/* on a line of its own under the counts and controls, so a long message
   never squeezes the buttons; plain text, no badge */
.db-meta {
  flex-wrap: wrap;
}
.api-note {
  order: 10;
  flex: 1 1 100%;
  margin: 10px 0 0;
  padding: 0 0 0 13px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--tert);
  overflow: hidden;
}
.api-note[hidden] {
  display: none;
}
.api-note.ok {
  color: #9fe0b0;
}
.api-note.warn {
  color: #ffcaa8;
}
@media (max-width: 760px) {
  .api-note {
    padding: 0;
    text-align: center;
  }
}
.db-meta b {
  font-variant-numeric: tabular-nums;
}
/* Checked row: only the box changes (no reflow). */
.xsel.multi .xsel-p {
  max-height: 300px;
}
/* the same custom tick as the consent checkbox: a soft-filled box with a glow */
.xsel-o .ck {
  flex: none;
  width: 17px;
  height: 17px;
  position: relative;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.xsel-o:hover .ck {
  border-color: rgba(255, 255, 255, 0.34);
}
.xsel-o .ck::after {
  content: '';
  position: absolute;
  left: 6.2px;
  top: 3.2px;
  width: 4px;
  height: 8.5px;
  border: solid var(--acc-ink, #ffd9cf);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(42deg) scale(0.5);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.xsel-o.on .ck {
  background: var(--acc-soft, rgba(226, 59, 46, 0.19));
  border-color: var(--acc-line, rgba(226, 59, 46, 0.38));
  box-shadow: 0 0 12px -4px var(--acc, #e23b2e);
}
.xsel-o.on .ck::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}
/* Checkbox doubles as the colour swatch, but only on hover and when ticked;
   otherwise it is the plain neutral box. --oc set inline per option. */
/* a category is shown in its own colour, the way the table names it,
   rather than with a swatch beside it */
/* the list itself stays neutral; a category takes its colour on hover and
   once picked, and the closed field is then washed in it */
.xsel-o.tint:hover,
.xsel-o.tint.on {
  background: color-mix(in srgb, var(--oc) 17%, transparent);
}
.xsel-o.tint:hover > span,
.xsel-o.tint.on > span {
  color: color-mix(in srgb, var(--oc) 50%, #fff);
}
.xsel-b.tint {
  background: color-mix(in srgb, var(--oc) 15%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--oc) 40%, transparent);
}
.xsel-b.tint:hover,
.xsel.open .xsel-b.tint {
  background: color-mix(in srgb, var(--oc) 21%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--oc) 55%, transparent);
}
.xsel-b em.tint {
  color: color-mix(in srgb, var(--oc) 50%, #fff);
  font-weight: 600;
}
.xsel-o:hover .ck.tint {
  border-color: var(--oc);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 10px -4px var(--oc);
}
.xsel-o.on .ck.tint {
  background: var(--oc);
  border-color: var(--oc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 12px -3px var(--oc);
}
/* Tinted glass chip via color-mix. No backdrop-filter: it leaves repaint
   artefacts inside scrolling lists. */
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .xsel-o:hover .ck.tint {
    background:
      linear-gradient(157deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 58%),
      color-mix(in srgb, var(--oc) 20%, transparent);
  }
  .xsel-o.on .ck.tint {
    background:
      linear-gradient(157deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.03) 62%),
      color-mix(in srgb, var(--oc) 74%, transparent);
  }
}
/* white tick, with a soft shadow so it still reads on the pale colours */
.xsel-o.on .ck.tint::after {
  border-color: #fff;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
}
@media (prefers-reduced-motion: reduce) {
  .xsel-o .ck,
  .xsel-o .ck::after {
    transition: none;
  }
}
/* from-year to-year, reading as one control */
.db-range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.db-range .xsel {
  flex: 1 1 0;
  min-width: 0;
}
.db-range > em {
  color: var(--tert);
  font-style: normal;
  font-size: 13px;
  flex: none;
}
/* ---- breakdown of the current filter ---- */
.db-viz {
  padding: 18px 18px 0;
  border-bottom: 0.5px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
}
.db-viz[hidden] {
  display: none;
}
/* Shared open/close motion; hidden is applied only after the exit ends. */
.db-viz {
  box-sizing: border-box;
}
.db-viz.animating {
  overflow: hidden;
  will-change: height, opacity;
}
.db-viz.entering > * {
  animation: dbvRise 0.48s cubic-bezier(0.3, 0.6, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes dbvRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .db-viz.entering > * {
    animation: none;
  }
}
.dbv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.dbv-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.dbv-head .hint,
.dbv-strip-head .hint {
  font-size: 11.5px;
  color: var(--tert);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Chart export menu. The count bar button exports the whole table. */
.dbv-dl {
  position: relative;
  margin-left: auto;
}
.dbv-trig {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 99px;
  border: 0.5px solid rgba(226, 59, 46, 0.55);
  color: #ffe6df;
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.42), rgba(226, 59, 46, 0.24));
  box-shadow:
    0 6px 18px -10px rgba(226, 59, 46, 0.9),
    inset 0 1px 0 rgba(255, 190, 175, 0.28);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}
.dbv-trig:hover {
  border-color: rgba(226, 59, 46, 0.85);
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.56), rgba(226, 59, 46, 0.34));
  box-shadow:
    0 8px 22px -10px rgba(226, 59, 46, 1),
    inset 0 1px 0 rgba(255, 190, 175, 0.38);
}
.dbv-trig > i.ch {
  font-size: 10px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dbv-dl.open .dbv-trig > i.ch {
  transform: rotate(180deg);
}
.dbv-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  right: 0;
  min-width: 186px;
  padding: 6px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: #1b1110;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dbv-dl.open .dbv-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dbv-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.dbv-menu button:hover {
  background: rgba(226, 59, 46, 0.18);
  color: var(--ink);
}
.dbv-menu button > i {
  width: 15px;
  text-align: center;
  font-size: 12px;
  color: var(--tert);
}
.dbv-menu button:hover > i {
  color: var(--orange, #e2593a);
}
.dbv-menu button > em {
  font-style: normal;
  margin-left: auto;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tert);
}
/* while the flags are being fetched the row says so rather than looking dead */
.dbv-menu button.busy {
  color: var(--tert);
  pointer-events: none;
}
.dbv-menu button.busy > em {
  color: transparent;
}
.dbv-menu button.busy > em::after {
  content: '\2026';
  color: var(--tert);
}
@media (prefers-reduced-motion: reduce) {
  .dbv-menu,
  .dbv-trig > i.ch {
    transition: none;
  }
}
.dbv-tip {
  font-size: 12px;
  color: var(--muted);
  min-height: 17px;
  margin-bottom: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dbv-tip b {
  color: var(--ink);
  font-weight: 700;
}
/* the stacked category bar, lifted from the home dashboard */
.ibar {
  display: flex;
  gap: 3px;
  height: 27px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.ibar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  min-width: 6px;
  position: relative;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    filter 0.12s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
  flex-basis: 0;
  box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.08);
  transform-origin: left center;
  will-change: transform;
  animation: ibarIn 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes ibarIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
/* Same corner radius on every segment (narrow end segments became half
   circles). */
.ibar span:hover {
  transform: scaleY(1.15);
  filter: brightness(1.18);
  box-shadow: 0 0 9px 1px currentColor;
}
.ibar.dim span {
  opacity: 0.18;
}
.ibar.dim span.hot {
  opacity: 1;
  transform: scaleY(1.15);
  filter: brightness(1.2);
  box-shadow: 0 0 10px 1.5px currentColor;
}
.dbv-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 0.5px solid var(--line);
}
.dbv-strip-head .warn-title,
.dbv-strip-head .hint {
  line-height: 20px;
}
/* Colour square + category name, truncated (full name on hover). */
.dbv-strip .meta .sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 7px -1px currentColor;
}
.dbv-strip .meta .cat {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbbcb6;
}
/* a category name cut short by its card shows in full on hover */
.cat-pop {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #1b1110;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.95);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink, #f3ece8);
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(calc(-100% - 7px));
  opacity: 0;
  transition: opacity 0.14s ease;
}
.cat-pop.on {
  opacity: 1;
}
/* the hover wash over a card must not swallow the pointer, or the category
   name under it can never be hovered */
.rep-cell::before {
  pointer-events: none;
}
.cat-pop i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.warn-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.01em;
}
.warn-title svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.dbv-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 -18px;
}
.dbv-strip.fresh .rep-cell {
  animation: dbvCell 0.65s cubic-bezier(0.3, 0.6, 0.3, 1) both;
  animation-delay: calc(60ms + var(--i, 0) * 60ms);
}
@keyframes dbvCell {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dbv-strip.fresh .rep-cell {
    animation: none;
  }
}
.dbv-strip .rep-cell {
  padding: 16px 18px 15px;
  border-left: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  animation: ovbRise 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.dbv-strip .rep-cell:first-child {
  border-left: none;
}
.dbv-strip .rep-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(226, 59, 46, 0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.dbv-strip .rep-cell:hover::before {
  opacity: 1;
}
.dbv-strip .rep-cell.top1 {
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.1), transparent);
}
.dbv-strip .rk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dbv-strip .rk .num {
  font-size: 10px;
  color: var(--tert);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dbv-strip .rk .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbv-strip .rk .flag {
  height: 16px;
  width: auto;
  border-radius: 2px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.15);
  flex: none;
  display: block;
}
.dbv-strip .cn {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.dbv-strip .cn b {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dbv-strip .cn span {
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 600;
}
.dbv-strip .rep-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dbv-strip .rep-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5722e, #c62d22);
  width: 0;
  animation: repGrow 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes repGrow {
  to {
    width: var(--w);
  }
}
/* ---- Country cards: category mix bar ----
   Largest segment first. */
.rep-hit {
  padding: 7px 0;
  margin: -7px 0;
}
.rep-hit .rep-bar {
  transition: transform 0.15s ease;
}
.rep-hit:hover .rep-bar {
  transform: scaleY(1.8);
}
.rep-hit .rep-bar i.mix {
  display: flex;
  gap: 1.5px;
  background: transparent;
}
.rep-hit .rep-bar i.mix b {
  display: block;
  height: 100%;
  flex: none;
  min-width: 2px;
  transition:
    opacity 0.12s ease,
    filter 0.12s ease,
    width 0.35s ease;
}
/* Blocks are share minus the 1.5px gap; the last one fills the
   remainder. */
.rep-hit .rep-bar i.mix b:last-child {
  flex: 1 1 auto;
}
.rep-hit .rep-bar.none {
  visibility: hidden;
}
.rep-hit.dim i.mix b {
  opacity: 0.25;
}
.rep-hit.dim i.mix b.hot {
  opacity: 1;
  filter: brightness(1.2);
}
.cat-pop.below {
  transform: translateY(4px);
}
.cat-pop b {
  font-weight: 800;
}
.cat-pop em {
  font-style: normal;
  color: var(--tert);
  font-weight: 600;
}
/* not clipped here (the name itself ellipses), so the swatch glow is whole */
.dbv-strip .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
}
.dbv-strip .meta i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: none;
}
.db-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.db-csv,
.db-reset {
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.16);
}
.db-csv:hover,
.db-reset:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
/* both table exports under one button, in the menu the chart download uses */
.db-exp {
  position: relative;
}
.db-exp .ch {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.db-exp.open .ch {
  transform: rotate(180deg);
}
.db-exp.open .dbv-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.db-acts .db-exp .dbv-menu button {
  flex: none;
  max-width: none;
  white-space: nowrap;
  justify-content: flex-start;
}
/* nothing to reset: the button rests dimmed until a filter, the grouping or
   the order changes */
.db-reset {
  transition:
    opacity 0.25s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.db-reset.idle {
  opacity: 0.4;
  pointer-events: none;
}
.db-head,
.db-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 3fr) 176px 124px 140px 130px;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
}
.db-head {
  height: 38px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tert);
  border-bottom: 0.5px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.db-head span {
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-head span[data-c='6'] {
  text-align: center;
}
/* one arrow per column, shown only on the sorted one: it fades and grows in,
   and turns over when the order flips; pointing up it sits 1px higher */
.db-head span::after {
  content: '\25B2';
  display: inline-block;
  width: 0;
  margin-left: 0;
  line-height: 1;
  text-align: center;
  font-size: 7px;
  color: currentColor;
  opacity: 0;
  transform: translateY(-1px) scale(0.4);
  transition:
    opacity 0.25s ease,
    width 0.25s ease,
    margin 0.25s ease,
    transform 0.42s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.db-head span.srt::after {
  width: 7px;
  margin-left: 5px;
  opacity: 1;
  transform: translateY(-1px);
}
.db-head span.srt.desc::after {
  transform: translateY(-1.5px) rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .db-head span::after {
    transition: none;
  }
}
.db-scroll {
  height: min(62vh, 660px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior: contain;
}
.db-scroll::-webkit-scrollbar-track {
  margin: 6px 0;
}
.db-pad {
  position: relative;
}
.db-rows {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.db-row {
  height: 46px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 0.12s ease;
}
.db-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-row .t {
  color: var(--ink);
}
.db-row .d {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 11px;
  color: var(--tert);
  font-variant-numeric: tabular-nums;
}
/* Block so the ellipsis is on the cell and the glow isn't clipped to the text
   box. Tall line-height gives the shadow room. */
.db-row .cat {
  display: block;
  text-align: left;
  min-width: 0;
  line-height: 40px;
}
.db-row .cat i {
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
}
/* Gap between the truncated title and the category. */
.db-head span[data-c='1'],
.db-row .cat {
  padding-left: 16px;
}
/* Category colour as an edge stripe and a tinted chip. */
.db-row {
  position: relative;
}
.db-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--cc, transparent);
}
/* Own rows get a full-width warm tint (doesn't clash with the category
   stripe). */
.db-row.mine {
  background: linear-gradient(
    90deg,
    rgba(236, 112, 50, 0.115),
    rgba(236, 112, 50, 0.05) 58%,
    rgba(236, 112, 50, 0.02)
  );
}
/* Category shown as coloured text, not a filled pill. */
.db-chip {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--ct);
  text-shadow: 0 0 11px var(--cg, transparent);
}
.db-row .cat i {
  box-shadow: 0 0 8px -1px currentColor;
}
/* and the row answers in the same colour when the pointer is on it */
.db-row:hover {
  background: var(--ch, rgba(255, 255, 255, 0.04));
}
.db-row.mine:hover {
  background:
    linear-gradient(
      90deg,
      rgba(236, 112, 50, 0.115),
      rgba(236, 112, 50, 0.05) 58%,
      rgba(236, 112, 50, 0.02)
    ),
    var(--ch, rgba(255, 255, 255, 0.04));
}
/* Flag centred in its column; country name shown as a tooltip. */
.db-row .co {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.db-row .co .nm {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 10px);
  z-index: 6;
  padding: 4px 10px;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  background: #1b1110;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}
.db-row .co .db-flag:hover + .nm {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* the topmost row has nothing above it to hang the plate on, so it drops */
.db-row:first-child .co .nm {
  bottom: auto;
  top: calc(50% + 10px);
  transform: translate(-50%, -4px);
}
.db-row:first-child .co .db-flag:hover + .nm {
  transform: translate(-50%, 0);
}
/* nothing hovers on a touch screen: the name goes back into the row */
@media (hover: none) {
  .db-row .co {
    justify-content: flex-start;
    overflow: hidden;
  }
  .db-row .co .nm {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-weight: 500;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 2px;
  }
}
.db-more {
  font-size: 11px;
  font-style: normal;
  color: var(--tert);
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 1px;
}
.db-more b {
  font-weight: 600;
  color: var(--muted);
}
.db-multi {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.db-multi .db-chip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-plus {
  flex: none;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--tert);
  cursor: default;
}
.db-flag {
  height: 12px;
  width: auto;
  max-width: 20px;
  border-radius: 2px;
  flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35);
  vertical-align: -1px;
}
/* how many lines of the table this one article stands for */
.db-n {
  font-style: normal;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--tert);
  margin-left: 8px;
}
.db-group {
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.16);
}
.db-group:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.db-group.on {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}
/* sort: a plain dropdown in the toolbar, the same box as the filters above */
.db-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.db-sort + .db-acts {
  margin-left: 6px;
}
.db-sort > span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tert);
  white-space: nowrap;
}
.db-sort .xsel {
  width: auto;
  min-width: 168px;
}
.db-sort .xsel-b {
  font-size: 12px;
  padding: 9px 12px;
}
.db-sort .xsel.open .xsel-b {
  border-color: rgba(255, 255, 255, 0.24);
}
.db-sort .xsel-p {
  left: auto;
  right: 0;
  min-width: 200px;
}
/* sorting: rows that stay on screen move to their new place, the rest
   fade out while the new order enters from the top */
.db-rows.db-ghost {
  pointer-events: none;
  z-index: 1;
  animation: dbGhost 0.22s ease forwards;
}
@keyframes dbGhost {
  to {
    opacity: 0;
    transform: var(--gy) translateY(-6px);
  }
}
.db-row.db-mv {
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.db-row.db-in {
  animation: dbIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes dbIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* deleting: the removed rows tint, slide aside and fade while the rest close
   the gap */
.db-rows.db-ghost.del {
  animation: none;
}
.db-rows.db-ghost.del > .db-row {
  animation: dbGone 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: linear-gradient(90deg, rgba(226, 59, 46, 0.12), rgba(226, 59, 46, 0.03) 70%);
}
@keyframes dbGone {
  30% {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-22px);
  }
}
.db-empty {
  padding: 40px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--tert);
}

/* the row opens into a detail sheet rather than a new page */
.db-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 4, 5, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.db-sheet.on {
  display: grid;
  animation: edIn 0.3s ease both;
}
.db-card {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 11px;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a0d0d, #140a0b);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
/* the content scrolls inside the card, so the close button stays put */
.db-card > .in {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px 28px 24px;
}
/* same slim thumb as the table, kept clear of the rounded corners */
.db-card > .in::-webkit-scrollbar {
  width: 10px;
}
.db-card > .in::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}
.db-card > .in::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.db-card > .in::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.19);
  background-clip: content-box;
}
.db-card > .in::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.db-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  padding-right: 40px;
}
/* the article link: open or copy, with tracking parameters left out of the display */
.db-lk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.db-lk a,
.db-lk button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  border: 0;
  background: none;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}
.db-lk a:hover,
.db-lk button:hover {
  color: var(--ink);
}
.db-lk a {
  color: #ffb39a;
}
.db-lk a:hover {
  color: #ffd2c2;
}
.db-lk a em {
  font-style: normal;
  font-weight: 500;
  color: var(--tert);
}
.db-lk-copy.done,
.db-lk-copy.done:hover {
  color: #9ff0cd;
}
.db-lk-copy:active {
  transform: scale(0.97);
}
/* the label rolls from Copy link to Copied, as the e-mail copy on About does;
   both share one grid cell, so the button keeps its width */
.db-lk .cp-roll {
  display: inline-grid;
  overflow: hidden;
  line-height: 1.5;
}
.db-lk .cp-roll > span {
  grid-area: 1/1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.35s ease;
}
.db-lk .cp-b {
  transform: translateY(105%);
  opacity: 0;
  color: #9ff0cd;
}
.db-lk-copy.done .cp-a {
  transform: translateY(-105%);
  opacity: 0;
}
.db-lk-copy.done .cp-b {
  transform: none;
  opacity: 1;
}
.db-lk-copy.done .cp-b i {
  animation: cpTick 0.55s cubic-bezier(0.3, 1.7, 0.5, 1) 0.12s both;
}
@keyframes cpTick {
  from {
    transform: scale(0.2) rotate(-30deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .db-lk .cp-roll > span {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
  .db-lk-copy.done .cp-b i {
    animation: none;
  }
}
.db-card .rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}
/* the one action a record offers, under its fields */
.db-act {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
}
.db-act > em {
  font-style: normal;
  font-size: 11px;
  color: var(--tert);
}
/* administrator only: plain red text at the far end, armed on first click */
.db-del {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 6px 0;
  color: rgba(255, 150, 130, 0.7);
  transition: color 0.18s ease;
}
.db-del:hover {
  color: #ffb4a4;
}
/* the confirmation sits over the report sheet, dimming it */
.db-confirm {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: rgba(6, 3, 4, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.db-confirm.on {
  opacity: 1;
}
/* the choice scrolls when the sheet is shorter than it (a phone on its side) */
.db-cf-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.db-cf-scroll > .db-cf-box {
  margin: auto;
}
.db-cf-box {
  position: relative;
  overflow: hidden;
  width: min(460px, 100%);
  padding: 22px 22px 18px;
  border-radius: 12px;
  background:
    radial-gradient(
      90% 55% at 0 0,
      rgba(232, 71, 58, 0.09) 0%,
      rgba(232, 71, 58, 0.0864) 8.4%,
      rgba(232, 71, 58, 0.0759) 17.5%,
      rgba(232, 71, 58, 0.0609) 26.6%,
      rgba(232, 71, 58, 0.045) 35%,
      rgba(232, 71, 58, 0.0291) 43.4%,
      rgba(232, 71, 58, 0.0141) 52.5%,
      rgba(232, 71, 58, 0.0036) 61.6%,
      rgba(232, 71, 58, 0) 70%
    ),
    linear-gradient(180deg, #140b0b, #0b0606);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 175, 0.08),
    0 34px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translateY(10px) scale(0.975);
  opacity: 0.6;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 0.25s ease,
    filter 0.25s ease;
}
.db-confirm.on .db-cf-box {
  transform: none;
  opacity: 1;
}
.db-cf-rec,
.db-cf-go {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
    filter 0.16s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.db-confirm.on .db-cf-rec,
.db-confirm.on .db-cf-go {
  opacity: 1;
  transform: none;
}
.db-confirm.on .db-cf-rec {
  transition-delay: 0.05s;
}
.db-confirm.on .db-cf-go.row {
  transition-delay: 0.1s, 0.1s, 0s, 0s, 0s;
}
.db-confirm.on .db-cf-go.all {
  transition-delay: 0.15s, 0.15s, 0s, 0s, 0s;
}
.db-cf-go:active {
  transform: translateY(1px) !important;
}
.db-cf-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.db-cf-ico {
  flex: none;
  width: 24px;
  height: 24px;
  color: #e8473a;
}
.db-cf-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}
.db-cf-eye {
  display: block;
  font:
    700 9.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8a72;
  margin-bottom: 6px;
  font-style: normal;
}
.db-cf-box h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.db-cf-t {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.db-cf-t b {
  display: block;
  margin-bottom: 5px;
  font:
    700 9.5px/1.4 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9806e;
}
/* the opened row, then one button per choice */
.db-cf-rec {
  position: relative;
  margin-bottom: 14px;
  padding: 11px 14px 11px 17px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c) 9%, transparent),
    rgba(255, 255, 255, 0.02) 55%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
}
.db-cf-rec::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.db-cf-rec b {
  display: block;
  margin-bottom: 4px;
  font:
    700 9.5px/1.4 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tert);
}
.db-cf-stack {
  display: grid;
  gap: 8px;
}
.db-cf-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 8px;
}
.db-cf-go > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.db-cf-go em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-cf-go small {
  flex: none;
  font:
    500 10.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.db-cf-go i {
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.db-cf-go:hover i {
  transform: scale(1.12);
}
.db-cf-go.row {
  color: #ffc2b5;
  background: rgba(226, 59, 46, 0.04);
  border: 0.5px solid rgba(255, 110, 90, 0.38);
}
.db-cf-go.row:hover {
  background: rgba(226, 59, 46, 0.09);
  border-color: rgba(255, 110, 90, 0.6);
}
.db-cf-go.all {
  color: #fff;
  background: linear-gradient(180deg, #c3382c, #a8291f);
  border: 0.5px solid rgba(255, 130, 110, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 195, 0.18),
    0 10px 24px -14px rgba(200, 45, 32, 0.8);
}
.db-cf-go.all:hover {
  filter: brightness(1.1);
}
.db-cf-go.busy {
  opacity: 0.7;
  cursor: default;
  filter: none;
}
.db-cf-no {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.db-cf-no:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}
.db-cf-warn {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--tert);
  text-align: center;
}
.db-cf-err {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #ffb4a4;
  text-align: center;
}
/* second step: a small are-you-sure over the dimmed choice */
.db-confirm.ask .db-cf-box {
  transform: scale(0.97);
  filter: brightness(0.42);
}
.db-cf-sure {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(300px, calc(100% - 40px));
  padding: 20px 20px 16px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.96);
  background:
    radial-gradient(
      120% 70% at 50% 0,
      rgba(232, 71, 58, 0.16) 0%,
      rgba(232, 71, 58, 0.1536) 7.44%,
      rgba(232, 71, 58, 0.135) 15.5%,
      rgba(232, 71, 58, 0.1082) 23.56%,
      rgba(232, 71, 58, 0.08) 31%,
      rgba(232, 71, 58, 0.0518) 38.44%,
      rgba(232, 71, 58, 0.025) 46.5%,
      rgba(232, 71, 58, 0.0064) 54.56%,
      rgba(232, 71, 58, 0) 62%
    ),
    linear-gradient(180deg, #1b0e0e, #0f0707);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 175, 0.1),
    0 30px 70px -20px rgba(0, 0, 0, 0.95);
  transition:
    opacity 0.2s ease,
    transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.db-cf-sure::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 120, 0.7), transparent);
}
.db-cf-bin {
  display: block;
  width: 30px;
  height: 34px;
  margin: 2px auto 12px;
  color: #ff6b55;
  filter: drop-shadow(0 4px 14px rgba(232, 71, 58, 0.45));
}
.db-cf-bin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.db-cf-bin .lid {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.3);
}
.db-confirm.ask .db-cf-bin .lid {
  animation: binPeek 0.7s 0.18s cubic-bezier(0.3, 0.9, 0.3, 1) backwards;
}
.db-cf-sure:has(.db-cf-y:hover) .db-cf-bin .lid,
.db-cf-sure:has(.db-cf-y:focus-visible) .db-cf-bin .lid {
  transform: translate(-1px, -2px) rotate(-26deg);
}
@keyframes binPeek {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translate(-1px, -2px) rotate(-22deg);
  }
}
.db-cf-sure p b {
  color: var(--ink);
  font-weight: 600;
}
.db-confirm.ask .db-cf-sure {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.db-cf-sure h5 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.db-cf-sure p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.db-cf-sure .db-cf-warn.soft {
  color: var(--tert);
}
.db-cf-sure .db-cf-warn {
  display: inline-block;
  margin-top: 10px;
  font:
    700 9.5px/1.4 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9806e;
}
.db-cf-yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.db-cf-yn button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition:
    filter 0.16s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.db-cf-n {
  background: none;
  color: var(--ink);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
}
.db-cf-n:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
}
.db-cf-y {
  color: #fff;
  background: linear-gradient(180deg, #c3382c, #a8291f);
  border: 0.5px solid rgba(255, 130, 110, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 210, 195, 0.18);
}
.db-cf-y:hover {
  filter: brightness(1.1);
}
.db-cf-y.busy {
  opacity: 0.7;
  cursor: default;
  filter: none;
}
/* the bin the deleted report is thrown into */
.db-bin {
  position: fixed;
  z-index: 130;
  width: 58px;
  height: 66px;
  margin: -33px 0 0 -29px;
  pointer-events: none;
  color: #f4ece9;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
}
.db-bin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.db-bin .lid {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
.db-bin-n {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 8px;
  transform-origin: 50% 0;
  translate: -50% 0;
  font:
    700 12px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  color: #ffb4a4;
  white-space: nowrap;
}
.db-binsheet {
  position: fixed;
  pointer-events: none;
  background: linear-gradient(180deg, #1a0d0d, #140a0b);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
/* trash (administrator): deleted reports and rows, restorable for 30 days */
.db-trash em {
  font-style: normal;
  font-weight: 500;
  color: var(--tert);
  margin-left: 2px;
}
.db-trash em:empty {
  display: none;
}
.tr-card {
  width: min(720px, 100%);
}
.tr-top {
  flex: none;
  padding: 22px 28px 16px;
  border-bottom: 0.5px solid var(--line);
}
.tr-card > .in {
  padding-top: 18px;
}
@media (max-width: 560px) {
  .tr-top {
    padding: 20px 18px 14px;
  }
}
.tr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
}
.tr-ico {
  flex: none;
  width: 26px;
  height: 30px;
  color: #ff6b55;
}
.tr-ico svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tr-ico .lid {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
.db-sheet.on .tr-ico .lid {
  animation: binPeek 0.7s 0.25s cubic-bezier(0.3, 0.9, 0.3, 1) backwards;
}
.tr-head h3 {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tr-head h3 em {
  font:
    600 17px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-style: normal;
  color: var(--tert);
}
.tr-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tert);
}
.tr-g {
  display: block;
  margin: 18px 0 8px;
  font:
    700 9.5px/1.4 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tert);
}
.tr-g:first-child {
  margin-top: 0;
}
.tr-list {
  display: flex;
  flex-direction: column;
}
.tr-it {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: center;
  margin-bottom: 8px;
  padding: 14px 16px 13px 19px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c) 7%, transparent),
    rgba(255, 255, 255, 0.018) 45%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
  animation: trIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.tr-it::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.tr-it:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
@keyframes trIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.tr-list.q .tr-it {
  animation: none;
}
.tr-k {
  display: block;
  margin-bottom: 5px;
  font:
    700 9.5px/1.4 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9806e;
}
.tr-t {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tr-w {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tr-w b {
  font-weight: 600;
  color: var(--cc, var(--muted));
}
.tr-m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--tert);
}
/* days left, coloured by how close the final removal is */
.tr-life {
  font:
    600 10.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  color: #9cc7a8;
}
.tr-life.mid {
  color: #e6b764;
}
.tr-life.soon {
  color: #ff8a72;
}
.tr-a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tr-a button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  white-space: nowrap;
  transition:
    color 0.16s ease,
    opacity 0.16s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.tr-a .tr-res {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 6px;
  color: var(--ink);
  border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
}
.tr-a .tr-res:hover {
  color: #bff0cd;
  border-color: rgba(130, 220, 160, 0.55) !important;
  background: rgba(80, 200, 120, 0.07);
}
.tr-res i {
  font-size: 10px;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.tr-res:hover i {
  transform: rotate(-360deg);
}
.tr-a .tr-kill {
  font-size: 11px;
  font-weight: 600;
  padding: 0 2px;
  color: rgba(255, 150, 130, 0.6);
}
.tr-kill i {
  font-size: 10px;
}
.tr-a .tr-kill:hover {
  color: #ffb4a4;
}
.tr-a button:disabled {
  opacity: 0.35;
  cursor: default;
}
.tr-a button:disabled:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: none;
}
.tr-need {
  white-space: nowrap;
  font-size: 11px;
  color: var(--tert);
  text-align: right;
}
.tr-it.back {
  border-color: rgba(130, 220, 160, 0.45);
  background-color: rgba(80, 200, 120, 0.08);
}
.tr-it.gone {
  border-color: rgba(255, 107, 85, 0.35);
  background-color: rgba(226, 59, 46, 0.07);
}
.tr-none {
  padding: 30px 0 22px;
  text-align: center;
}
.tr-none span {
  display: block;
  width: 44px;
  height: 50px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.16);
}
.tr-none svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tr-none b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.tr-none em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  color: var(--tert);
}
.tr-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
}
.tr-foot em {
  font-style: normal;
  font-size: 11px;
  color: var(--tert);
}
.tr-err {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #ffb4a4;
}
@media (max-width: 560px) {
  .tr-it {
    grid-template-columns: 1fr;
  }
  .tr-a {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tr-it {
    animation: none;
  }
  .db-sheet.on .tr-ico .lid {
    animation: none;
  }
}
.db-cf-box button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 520px) {
  .db-cf-box {
    padding: 20px 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .db-confirm,
  .db-cf-box,
  .db-cf-rec,
  .db-cf-go,
  .db-cf-sure,
  .db-cf-bin .lid {
    transition: none;
    animation: none;
  }
}
/* the administrator's tag beside the name: a small gold label */
.ed-role {
  display: inline-flex;
  align-items: center;
  margin-left: 9px;
  padding: 3px 7px;
  vertical-align: 2px;
  transform: translateY(-0.75px);
  font:
    700 9.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: #f3c26a;
  border: 0.5px solid rgba(243, 181, 74, 0.55);
  border-radius: 4px;
  background: rgba(243, 181, 74, 0.08);
}
.db-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 9px 15px;
  border-radius: 99px;
  color: #ffe6df;
  border: 0.5px solid rgba(226, 59, 46, 0.55);
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.42), rgba(226, 59, 46, 0.24));
  box-shadow:
    0 6px 18px -10px rgba(226, 59, 46, 0.9),
    inset 0 1px 0 rgba(255, 190, 175, 0.28);
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.db-edit:hover {
  border-color: rgba(226, 59, 46, 0.85);
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.56), rgba(226, 59, 46, 0.34));
}
.db-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: none;
  font-size: 24px;
  line-height: 1;
  transition: color 0.18s ease;
}
.db-close:hover {
  color: var(--ink);
}

/* ---------- overview ---------- */
/* the receipt that greets the editor in Overview right after a save */
.ov-new {
  display: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 0.5px solid rgba(150, 235, 205, 0.22);
  border-radius: 11px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(72, 200, 150, 0.1), rgba(72, 200, 150, 0.03)),
    linear-gradient(180deg, rgba(10, 18, 16, 0.72), rgba(6, 12, 11, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(190, 255, 230, 0.14),
    0 18px 44px -30px rgba(72, 200, 150, 0.55);
}
.ov-new.on {
  display: block;
  animation: ovStamp 0.82s cubic-bezier(0.16, 0.86, 0.24, 1) both;
}
@keyframes ovStamp {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.965);
    filter: blur(9px);
    clip-path: inset(0 0 78% 0 round 11px);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 0 0 rgba(72, 200, 150, 0);
  }
  38% {
    opacity: 1;
    filter: blur(2px);
    clip-path: inset(0 0 0 0 round 11px);
  }
  62% {
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.3),
      0 0 44px -10px rgba(72, 200, 150, 0.8);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 11px);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 18px 44px -30px rgba(72, 200, 150, 0.55);
  }
}
.ov-new.on .ov-new-t {
  animation: ovChip 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.26s backwards;
}
.ov-new::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    104deg,
    transparent 34%,
    rgba(160, 255, 215, 0.11) 50%,
    transparent 66%
  );
  transform: translateX(-120%);
}
.ov-new.on::after {
  animation: ovSweep 1.15s cubic-bezier(0.3, 0.7, 0.3, 1) 0.3s;
}
@keyframes ovSweep {
  to {
    transform: translateX(120%);
  }
}
.ov-new-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ov-new-h i {
  flex: none;
  color: #9ff0cd;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 12px rgba(120, 230, 180, 0.5);
}
.ov-new.on .ov-new-h i {
  animation: ovTick 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.12s both;
}
@keyframes ovTick {
  from {
    transform: scale(0.3) rotate(-16deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.ov-new-h b {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8fceb2;
}
.ov-new-t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 11px;
  overflow-wrap: anywhere;
}
.ov-new-l {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ov-new-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 11.5px;
  color: #cbe8dc;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(150, 235, 205, 0.18);
  border-radius: 99px;
  padding: 5px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-new-k em {
  font-style: normal;
  font-weight: 700;
  color: #7fe3b6;
  flex: none;
}
/* "+N more" inside a long chip, and the chip once opened (it wraps) */
.ov-new-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #7fe3b6;
  transition: color 0.18s ease;
}
.ov-new-more b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ov-new-more i {
  font-size: 7.5px;
  opacity: 0.75;
  margin-left: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.ov-new-more:hover {
  color: #c9ffe6;
}
.ov-new-more:hover i {
  transform: translateY(1px);
  opacity: 1;
}
.ov-new-k.open {
  white-space: normal;
  border-radius: 12px;
  align-items: flex-start;
  padding: 6px 12px;
}
.ov-new-k.open .ov-new-v {
  line-height: 1.5;
}
.ov-new-k em::after {
  content: ':';
}
.ov-new.on .ov-new-k {
  animation: ovChip 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
  animation-delay: calc(0.32s + var(--i, 0) * 70ms);
}
@keyframes ovChip {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
/* the title and the wordy chips type themselves in, the same caret the tiles use */
.ov-new-v {
  display: inline-block;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* a long list keeps its "+N more" in view: the names give way (ellipsis) */
.ov-new-k.open .ov-new-v {
  overflow: visible;
}
.ov-new-t.typing::after,
.ov-new-v.typing::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: #7fe3b6;
  animation: stCaret 0.7s steps(1) infinite;
}
/* Date as slot reels, started together, stopping left to right. */
.ov-reel {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.9;
  margin: -0.275em 0;
  /* Reel window taller than the glyphs with faded top/bottom edges. 1.9 - 2 x .275 = 1.35. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}
/* Partial side fade while spinning; removed once the reel stops. */
.ov-reel.go:not(.done) {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.32) 0,
      #000 4px,
      #000 calc(100% - 4px),
      rgba(0, 0, 0, 0.32) 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.32) 0,
      #000 4px,
      #000 calc(100% - 4px),
      rgba(0, 0, 0, 0.32) 100%
    );
  mask-composite: intersect;
}
.ov-reel > i {
  display: block;
  font-style: normal;
  visibility: hidden;
  white-space: pre;
}
.ov-reel > b {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: inherit;
}
.ov-reel > b > u {
  display: block;
  text-decoration: none;
  white-space: pre;
  line-height: inherit;
}
.ov-reel.go > b {
  will-change: transform, filter;
  animation: ovReel var(--d, 1.4s) var(--sd, 0s) both;
}
@keyframes ovReel {
  0% {
    transform: translateY(0);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.5, 0, 0.72, 0.5);
  }
  12% {
    filter: blur(3.2px);
    animation-timing-function: linear;
  }
  58% {
    filter: blur(3.2px);
    animation-timing-function: cubic-bezier(0.12, 0.76, 0.28, 1);
  }
  /* Strip overshoots its stop, pauses, then eases back. */
  82% {
    transform: translateY(calc(var(--end, 0px) - 14px));
    filter: blur(0.5px);
    animation-timing-function: cubic-bezier(0.24, 0.6, 0.3, 1);
  }
  90% {
    transform: translateY(calc(var(--end, 0px) - 10px));
    filter: blur(0.15px);
    animation-timing-function: cubic-bezier(0.42, 0, 0.7, 0.98);
  }
  97% {
    transform: translateY(calc(var(--end, 0px) + 2.5px));
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.22, 0.86, 0.34, 1);
  }
  100% {
    transform: translateY(var(--end, 0px));
    filter: blur(0);
  }
}
/* the chip flashes as the last reel locks */
.ov-new-k.lock {
  animation: ovLock 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes ovLock {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  28% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 22px -4px rgba(120, 235, 180, 0.7);
    border-color: rgba(150, 235, 205, 0.5);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}
/* the rest of the page assembles itself behind the receipt */
.ed-stats.intro .st {
  will-change: transform, opacity;
  animation:
    ovTile 0.52s cubic-bezier(0.22, 0.9, 0.28, 1) backwards,
    stGlow 1.6s cubic-bezier(0.33, 0, 0.25, 1) backwards;
  animation-delay:
    calc(var(--t0, 1.45s) + var(--i, 0) * 80ms), calc(var(--t0, 1.45s) + 0.06s + var(--i, 0) * 80ms);
}
@keyframes ovTile {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Separate slow glow animation; all keyframes have the same four shadow layers. */
@keyframes stGlow {
  0% {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 0 34px -12px rgba(255, 255, 255, 0),
      0 0 40px -14px rgba(255, 255, 255, 0),
      0 10px 24px -20px rgba(0, 0, 0, 0.9);
  }
  34% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      inset 0 0 34px -12px rgba(255, 255, 255, 0.26),
      0 0 40px -14px rgba(255, 255, 255, 0.2),
      0 10px 24px -20px rgba(0, 0, 0, 0.9);
  }
  60% {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 0 34px -12px rgba(255, 255, 255, 0.17),
      0 0 40px -14px rgba(255, 255, 255, 0.13),
      0 10px 24px -20px rgba(0, 0, 0, 0.9);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 0 34px -12px rgba(255, 255, 255, 0),
      0 0 40px -14px rgba(255, 255, 255, 0),
      0 10px 24px -20px rgba(0, 0, 0, 0.9);
  }
}
.ed-stats.intro .st b {
  animation: ovNum 1.4s cubic-bezier(0.33, 0, 0.25, 1) backwards;
  animation-delay: calc(var(--t0, 1.45s) + 0.08s + var(--i, 0) * 80ms);
}
/* Value brightens towards white and back; two shadow layers throughout. */
@keyframes ovNum {
  0% {
    opacity: 0;
    color: #fff;
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0),
      0 0 30px rgba(255, 255, 255, 0);
  }
  26% {
    opacity: 1;
    color: #fff;
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.4),
      0 0 30px rgba(255, 255, 255, 0.26);
  }
  55% {
    color: #fff;
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.26),
      0 0 30px rgba(255, 255, 255, 0.16);
  }
  100% {
    opacity: 1;
    text-shadow:
      0 0 20px rgba(255, 255, 255, 0.16),
      0 0 30px rgba(255, 255, 255, 0);
  }
}
/* the caption comes up pale and settles into its usual grey */
.ed-stats.intro .st span {
  animation: ovCap 1.5s cubic-bezier(0.33, 0, 0.25, 1) backwards;
  animation-delay: calc(var(--t0, 1.45s) + 0.12s + var(--i, 0) * 80ms);
}
@keyframes ovCap {
  0% {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  }
  45% {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
  }
  100% {
    color: var(--tert);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0);
  }
}
/* Scope switch (Latest / Mine / All): tiles stay, only values animate. */
.ed-mapwrap.veiled {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  filter: blur(10px);
  pointer-events: none;
}
.ed-mapwrap.reveal {
  animation: ovMapIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
/* Entrance: a spark runs around the frame. */
@keyframes ovMapIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
    filter: blur(10px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
#vMap.intro .ov-side:nth-of-type(1) {
  animation: ovRise 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 2.4s backwards;
}
#vMap.intro .ov-side:nth-of-type(2) {
  animation: ovRise 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 2.5s backwards;
}
#vMap.intro .ov-side:nth-of-type(3) {
  animation: ovRise 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 2.6s backwards;
}
@keyframes ovRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
/* the two chart panels replay themselves once the map has had its moment */
/* a row that is new to the list slides in beside the ones that stayed */
.ovb.enter {
  animation: ovbEnter 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes ovbEnter {
  from {
    opacity: 0;
    transform: translateX(-14px) scaleY(0.72);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Removed rows fade out in place while the others slide up. */
.ovb.leave {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  animation: ovbLeave 0.42s cubic-bezier(0.4, 0, 0.7, 0.4) forwards;
}
@keyframes ovbLeave {
  to {
    opacity: 0;
    transform: translateX(14px) scaleY(0.66);
    filter: blur(2px);
  }
}
/* rows that survive the change travel to their new rank */
.ovb.flip {
  transition: transform 0.55s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.ovb.rise {
  animation: ovbRise 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--b, 0ms) + var(--i, 0) * 65ms);
}
/* the row's colour rail draws itself down with a short glow, and the head of
   its meter flares while the bar fills */
.ovb.rise::before {
  animation: ovbRail 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(0.1s + var(--i, 0) * 65ms);
  transform-origin: 50% 0;
}
@keyframes ovbRail {
  0% {
    transform: scaleY(0);
    opacity: 1;
    box-shadow: 0 0 12px var(--c, #e2622e);
  }
  60% {
    opacity: 1;
    box-shadow: 0 0 12px var(--c, #e2622e);
  }
}
.ovb.rise .tr b::after {
  animation: ovbHead 1.1s ease-out backwards;
  animation-delay: calc(var(--b, 0ms) + 0.12s + var(--i, 0) * 65ms);
}
@keyframes ovbHead {
  0% {
    box-shadow: 0 0 14px 4px var(--c, #e2622e);
    transform: translate(45%, -50%) scale(1.8);
  }
  100% {
    box-shadow: 0 0 8px 1px var(--c, #e2622e);
    transform: translate(45%, -50%) scale(1);
  }
}
/* rewrite: deltas, new and dropped entries, a moved month */
.ovb .vl {
  position: relative;
}
.ovb-dl {
  position: absolute;
  right: 0;
  top: -2px;
  font:
    800 11px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  pointer-events: none;
  animation: ovbDl 1.8s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.ovb-dl.up {
  color: #8fe3ad;
  text-shadow: 0 0 10px rgba(80, 210, 130, 0.6);
}
.ovb-dl.dn {
  color: #ff8a72;
  text-shadow: 0 0 10px rgba(255, 90, 70, 0.6);
}
@keyframes ovbDl {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translateY(-10px) scale(1.15);
  }
  70% {
    opacity: 1;
    transform: translateY(-16px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px);
  }
}
.ovb-new {
  margin-left: 2px;
  padding: 0;
  font:
    700 8.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: #8fe3ad;
  animation: ovbNewTag 0.5s ease 0.3s backwards;
}
@keyframes ovbNewTag {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
}
.ovb.gain::before {
  background: #5fd38d;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(95, 211, 141, 0.7);
}
.slowx .ovb.leave {
  animation-duration: 0.7s;
}
.ovb.leave.drop .nm {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 85, 0.8);
}
.ovb.leave.drop::before {
  background: #ff6b55;
  opacity: 1;
}
.ov-note.shift b {
  display: inline-block;
  animation: spShift 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
@keyframes spShift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ov-note .sp-from {
  display: block;
  margin-top: 4px;
  font:
    600 10.5px/1.3 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-style: normal;
  color: var(--tert);
  animation: spShift 0.6s ease 0.25s both;
}
@keyframes ovbRise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* the rows belonging to this report brighten briefly; no coloured block behind them */
.ovb.mark {
  animation: ovbMark 1.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--b, 0ms) + 0.15s + var(--i, 0) * 65ms);
}
@keyframes ovbMark {
  0% {
    filter: none;
  }
  22% {
    filter: brightness(1.5) drop-shadow(0 0 12px rgba(255, 190, 150, 0.55));
  }
  100% {
    filter: none;
  }
}
/* a marked row still rises with the others; the brightening follows */
.ovb.rise.mark {
  animation:
    ovbRise 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) backwards,
    ovbMark 1.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay:
    calc(var(--b, 0ms) + var(--i, 0) * 65ms), calc(var(--b, 0ms) + 0.45s + var(--i, 0) * 65ms);
}
.ovb.mark .nm,
.ovb.mark .vl b {
  color: #ffd9cf;
}
.ovb.mark .rk {
  color: #ffb8a4;
}
/* a freshly built curve is held back for the one frame between the markup
   landing and sparkDraw arming it */
.ov-spark.arm .sp-line,
.ov-spark.arm .sp-spark,
.ov-spark.arm .sp-area {
  opacity: 0;
}
.ov-spark .sp-line {
  filter: drop-shadow(0 0 6px rgba(226, 59, 46, 0.45));
}
/* A replacement curve fades in (morphing d with dash + highlight broke the
   line). */
.ov-spark.fade svg,
.ov-spark.fade .sp-grid,
.ov-spark.fade .sp-labs {
  animation: spFade 0.38s ease;
}
@keyframes spFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* two knocks, straight after one another, and never an outline */
.ov-map path.beat {
  animation: ovBeat 1.15s ease-out 1;
}
.ov-lg {
  transition: opacity 0.25s ease;
}
.ov-lg.dodge {
  opacity: 0.12;
}
.ov-map #ovDots circle {
  stroke: rgba(10, 12, 18, 0.85);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    fill 0.45s ease;
}
.ov-map #ovDots circle.solo {
  fill: #e9b35f;
  filter: drop-shadow(0 0 4px rgba(233, 179, 95, 0.7));
}
.ov-map #ovDots circle.bare {
  fill: #3a4150;
  stroke: #5a6274;
}
.ov-map #ovDots circle.off {
  opacity: 0;
  pointer-events: none;
}
.ov-map #ovDots circle:hover {
  filter: brightness(1.25);
}

/* the burst's country list sits above the floating copies; this relies on the
   map frame's entrance leaving no transform or filter behind, which would make
   the frame a stacking context */
.ov-pop.multi {
  z-index: 61;
}
/* the burst's floating copies, over the page so they are never cut off */
.ov-float {
  position: absolute;
  z-index: 60;
  overflow: visible;
  pointer-events: none;
}
.ov-float path {
  fill: #e9b35f;
  stroke: #3d4454;
  stroke-width: var(--sw, 0.4px);
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: ovFloat var(--ld, 4.5s) linear both;
}
.ov-map path.solo.ghost {
  fill-opacity: 0.32;
  transition: fill-opacity 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ov-float {
    display: none;
  }
}
/* many countries at once: each copy's own animated glow is what made the burst stutter. */
.ov-float.lite path {
  filter: none !important;
  stroke: rgba(255, 222, 160, 0.7);
  stroke-width: 0.9px;
}

@keyframes ovBeat {
  0% {
    fill: var(--f, #252a36);
  }
  16% {
    fill: var(--bf, #ff6a4d);
  }
  34% {
    fill: var(--f, #252a36);
  }
  50% {
    fill: var(--bf, #ff6a4d);
  }
  74% {
    fill: var(--f, #252a36);
  }
  100% {
    fill: var(--f, #252a36);
  }
}
/* a spark runs the rim of the receipt as it lands */
.ov-new .rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: 11px;
  padding: 1.4px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.ov-new .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 62%,
    rgba(127, 227, 182, 0.3) 76%,
    #7fe3b6 84%,
    #eafff4 88%,
    rgba(127, 227, 182, 0.3) 92%,
    transparent 97%
  );
}
.ov-new.on .rim {
  animation: rimShow 1.5s ease-out 0.18s both;
}
.ov-new.on .rim > b {
  animation: rimSpin 1.2s linear 0.18s 1;
}
/* the receipt can be dismissed */
.ov-new-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: #6f9e88;
  font-size: 14px;
  line-height: 1;
  transition: color 0.18s ease;
}
.ov-new-x:hover {
  color: #eafff4;
}
.ov-new-x:focus-visible {
  outline: 2px solid rgba(150, 235, 205, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}
.ov-new-h {
  padding-right: 34px;
}
.ov-new-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: #e0b48f;
}
.ov-new.out {
  animation: ovOut 0.3s ease forwards;
}
@keyframes ovOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ed-review.enter .rev-r,
  .ed-review.saved .rev-r,
  .ed-review.saved .rev-r::after,
  .rev-r.flare,
  .submit.nope,
  .ed-steps.warn button.bad em,
  .ed-steps.warn button.bad b::before,
  .fmsg.err.beat,
  .submit.ok > i,
  .submit .rim,
  .ov-new.on,
  .ov-new.on::after,
  .ov-new.on .ov-new-h i,
  .ov-new.on .ov-new-k,
  .ed-stats.intro .st,
  #vMap.intro .ed-mapwrap,
  #vMap.intro .ov-side,
  .ov-map path.beat,
  .ov-new.out,
  .ov-new.on .rim,
  .ov-new.on .rim > b,
  .ovb.rise,
  .ovb.mark,
  .ovb.enter,
  .ovb.leave,
  .ov-spark.fade svg,
  .ov-reel.go > b,
  .ov-new-k.lock {
    animation: none;
  }
  .ovb.flip {
    transition: none;
  }
  .ov-side .rim {
    display: none;
  }
  .ed-mapwrap > .rim {
    display: none;
  }
  .ov-new .rim {
    display: none;
  }
  .submit .rim {
    display: none;
  }
  .ed-review.saved .rev-r {
    background: rgba(72, 200, 150, 0.075);
  }
  .ed-review.saved .rev-r::after {
    opacity: 1;
    transform: none;
  }
}
.ed-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
/* Tiles hidden during the tour (row collapses). */
.ed-stats.stowed {
  margin-bottom: 0;
  pointer-events: none;
  overflow: hidden;
  height: 0;
}
/* Container animates height only; each tile fades on its own. */
.ed-stats {
  transition:
    height 0.55s cubic-bezier(0.25, 0.9, 0.3, 1),
    margin-bottom 0.55s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.ed-stats.opening {
  overflow: hidden;
}
/* compact glass plates: a thin top rule, tabular figure, typed caption */
.ed-stats .st {
  position: relative;
  overflow: hidden;
  padding: 11px 13px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px -20px rgba(0, 0, 0, 0.9);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ed-stats .st:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.ed-stats .st b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  min-height: 1.15em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
}
.ed-stats .st span {
  display: block;
  min-height: 1.25em;
  contain: layout style;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 8.5px;
  color: var(--tert);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the caption types itself, with the same caret the home page uses */
.ed-stats .st.typing span::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--orange);
  animation: stCaret 0.7s steps(1) infinite;
}
@keyframes stCaret {
  50% {
    opacity: 0;
  }
}
.ed-stats .st.hot b {
  color: #ffc7b8;
  text-shadow: 0 0 22px rgba(255, 150, 120, 0.3);
}
/* a tile changing its accent between views eases into it (statsMorph) */
.ed-stats .st b {
  transition:
    color 0.5s ease,
    text-shadow 0.5s ease;
}
@media (max-width: 700px) {
  .ed-stats .st b {
    font-size: 19px;
  }
}
.ed-mapwrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}
/* Spark rim: padded ring cut out with an xor mask over a rotating conic gradient. */
.ed-mapwrap > .rim {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: inherit;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* Oversized so the square covers the corners of a wide panel; wider lit arc
   than the receipt so it stays visible on long edges. */
.ed-mapwrap > .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 44%,
    rgba(226, 59, 46, 0.22) 62%,
    rgba(226, 59, 46, 0.75) 78%,
    #e23b2e 85%,
    #ffd9cf 90%,
    rgba(226, 59, 46, 0.35) 95%,
    transparent 99%
  );
}
/* it starts a third of a second in, once the panel has stopped blurring */
.ed-mapwrap.reveal > .rim {
  animation: rimShow 1.6s ease-out 0.3s both;
}
.ed-mapwrap.reveal > .rim > b {
  animation: rimSpin 1.3s linear 0.3s 1;
}
/* full screen has no frame to run and the spark would sit across the map */
.ed-mapwrap.pseudo-full > .rim,
.ed-mapwrap:fullscreen > .rim {
  display: none;
}
.ov-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}
/* Title stays left; when the bar wraps, the controls stay right-aligned. */
.ov-bar .t {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-right: auto;
  min-width: 0;
  flex: 1 1 240px;
}
.ov-bar .t b {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc7b8;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(226, 59, 46, 0.35);
}
/* Title and count on one line, joined by a short vertical rule; count in
   the same mono caps, dimmer, number highlighted. */
.ov-bar .t em {
  position: relative;
  padding-left: 23px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-bar .t em:empty {
  display: none;
}
.ov-bar .t em::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255, 199, 184, 0.28);
}
.ov-bar .t em span {
  color: #ffc7b8;
}
@media (max-width: 900px) {
  .ov-bar .t em {
    display: none;
  }
}
.ov-bar .xsel {
  flex: 0 1 auto;
}
.ov-bar #ovCat + .xsel {
  width: 214px;
}
.ov-bar #ovYear + .xsel {
  width: 120px;
}
/* the two filters sit at the same height as the scope switch beside them */
.ov-bar .xsel-b {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 10px;
}
.ov-bar .xsel-b .dot {
  width: 8px;
  height: 8px;
}
/* the button stays narrow, the list opens as wide as its longest label */
.ov-bar .xsel-p {
  right: 0;
  left: 0;
  min-width: 0;
}
.ov-bar .xsel-o {
  padding: 7px 10px;
  font-size: 12px;
}
/* Button and list have the same width; long names wrap. */
.ov-bar .xsel-o > span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}
.ov-mine {
  font-size: 12px;
  flex: none;
}
.ov-map {
  position: relative;
  background: radial-gradient(680px 420px at 50% 42%, #10151f, #090b11 70%);
  touch-action: pan-y;
}
.ov-map svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
}
.ov-map.drag svg {
  cursor: grabbing;
}
/* ---- country panel, the viewer's readout with a sci-fi arrival ---- */
/* Tour running: progress line at the top of the window and a note that
   scrolling stops it. */
.tour-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* only the pill takes clicks; the line itself must not swallow them */
.tour-bar > span {
  pointer-events: auto;
}
/* low-emphasis pill: styled as a note, not as a call to action */
/* Plain text, no inner chip; the underline indicates the action. */
.tour-bar button {
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 4px 15px 4px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  line-height: 11px;
  align-self: center;
  color: rgba(255, 205, 190, 0.62);
  transition:
    color 0.16s ease,
    text-shadow 0.18s ease;
}
/* Arrows shown on hover in reserved padding (no layout shift). */
.tour-bar button::after {
  content: '\00bb';
  position: absolute;
  right: 3px;
  top: 50%;
  font-size: 11px;
  line-height: 0;
  color: #ffbda8;
  opacity: 0;
  transform: translate(-5px, -50%);
  transition:
    opacity 0.18s ease,
    transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.tour-bar button:hover,
.tour-bar button:focus-visible {
  color: #fff;
  outline: none;
  text-shadow: 0 0 12px rgba(255, 140, 110, 0.6);
}
.tour-bar button:hover::after,
.tour-bar button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
  animation: tourNudge 1.1s ease-in-out 0.24s infinite;
}
@keyframes tourNudge {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(3px, -50%);
  }
}
.tour-bar button:active {
  transform: translateY(1px);
}
.tour-bar.on {
  opacity: 1;
}
/* Thin progress band with a soft glow at the leading edge. */
.tour-bar > b {
  display: block;
  position: relative;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(226, 89, 58, 0.35), rgba(226, 89, 58, 0.9) 60%, #ffbda8);
  box-shadow: 0 0 12px -3px rgba(226, 89, 58, 0.8);
}
.tour-bar > b > u {
  position: absolute;
  right: -1px;
  top: -2px;
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: radial-gradient(closest-side, rgba(255, 214, 198, 0.95), rgba(255, 150, 120, 0));
  animation: tourComet 1.9s ease-in-out infinite;
}
@keyframes tourComet {
  0%,
  100% {
    opacity: 0.55;
    width: 22px;
  }
  50% {
    opacity: 1;
    width: 34px;
  }
}
/* Attached to the bar with a square top edge; the live dot indicates it's
   still running. */
/* Flush with the top of the window, translucent over the site header. */
.tour-bar > span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 6px 10px;
  border-radius: 0 0 13px 13px;
  white-space: nowrap;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 222, 210, 0.92);
  background: rgba(38, 20, 17, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 0.5px solid rgba(255, 160, 130, 0.22);
  border-top: 0;
  box-shadow:
    0 12px 30px -16px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 170, 140, 0.08);
}
/* a dial rather than a blinking dot: it says how much is left, not just that
   something is happening */
.tour-ring {
  flex: none;
  width: 15px;
  height: 15px;
  transform: rotate(-90deg);
}
.tour-ring circle {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
}
.tour-ring .tk {
  stroke: rgba(255, 170, 140, 0.2);
}
.tour-ring .pr {
  stroke: #ff9a78;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
  filter: drop-shadow(0 0 3px rgba(255, 120, 80, 0.7));
}
@media (max-width: 620px) {
  .tour-bar > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-bar {
    display: none;
  }
}
/* blur is expensive on phones and the pill is hidden there anyway */
@media (max-width: 760px) {
  .tour-bar > span {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(30, 16, 14, 0.95);
  }
}
/* Keywords --------------------------------------------------------------
   Each keyword/phrase becomes a chip when entered. */
.kw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
  cursor: text;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.kw:focus-within {
  border-color: rgba(226, 89, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 89, 58, 0.12);
}
.kw.bad {
  border-color: rgba(226, 59, 46, 0.75);
}
.kw > input[type='text'] {
  flex: 1 1 140px;
  min-width: 120px;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  padding: 5px 4px;
}
/* More spacing around the remove button; glyph centred in a monospace box. */
.kw-t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 8px 5px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffe2d8;
  border: 0.5px solid rgba(226, 89, 58, 0.42);
  background: rgba(226, 89, 58, 0.16);
  animation: kwIn 0.24s cubic-bezier(0.2, 0.9, 0.28, 1) both;
}
.kw-t.dupe {
  animation: kwDupe 0.5s ease both;
}
/* the chip is an <i>: italic text needs a little room on the right or the
   clip takes the tail of the last letter */
.kw-t > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.24em;
}
.kw-t > b {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-style: normal;
  border-radius: 50%;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    Consolas,
    monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #ffc3b0;
  background: none;
  transition: color 0.15s ease;
}
.kw-t > b:hover {
  color: #fff;
}
/* a phrase is worth telling apart from a single word at a glance */
.kw-t.phrase {
  border-style: dashed;
}
.kw-n {
  margin-left: auto;
  flex: none;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tert);
  padding-right: 4px;
}
@keyframes kwIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kwDupe {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kw-t,
  .kw-t.dupe {
    animation: none;
  }
}
.ov-pop {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  min-width: 230px;
  max-width: 320px;
  padding: 15px 17px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(10, 14, 22, 0.32);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: saturate(72%) contrast(104%) brightness(0.92) blur(44px);
  backdrop-filter: saturate(72%) contrast(104%) brightness(0.92) blur(44px);
  /* tight shadow: a wide one darkened the map round the card and hid the
     selected country's glow */
  box-shadow:
    0 8px 20px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(-4px) scale(0.92);
  transform-origin: 50% 100%;
  transition:
    opacity 0.13s ease,
    transform 0.13s ease,
    visibility 0.13s;
}
.ov-pop.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -100%) translateY(-11px) scale(1);
  transition:
    opacity 0.2s ease,
    transform 0.34s cubic-bezier(0.2, 1.25, 0.36, 1),
    visibility 0s;
}
/* anchored beside the country instead of over it: no tail, no vertical offset */
.ov-pop.side {
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(0.94);
}
.ov-pop.side.on {
  transform: translate(-50%, -50%) scale(1);
}
.ov-pop.side::after {
  display: none;
}
.ov-pop.below {
  transform-origin: 50% 0;
  transform: translate(-50%, 0) translateY(4px) scale(0.92);
}
.ov-pop.below.on {
  transform: translate(-50%, 0) translateY(11px) scale(1);
}
/* No room above/below: the panel sits beside the country and the tail
   turns. */
.ov-pop.at-right {
  transform-origin: 0 50%;
  transform: translate(0, -50%) translateX(4px) scale(0.92);
}
.ov-pop.at-right.on {
  transform: translate(0, -50%) translateX(12px) scale(1);
}
.ov-pop.at-left {
  transform-origin: 100% 50%;
  transform: translate(-100%, -50%) translateX(-4px) scale(0.92);
}
.ov-pop.at-left.on {
  transform: translate(-100%, -50%) translateX(-12px) scale(1);
}
.ov-pop.at-right::after,
.ov-pop.at-left::after {
  left: auto;
  bottom: auto;
  top: calc(50% + var(--tail-y, 0px));
  transform: translateY(-50%) rotate(45deg);
}
.ov-pop.at-right::after {
  left: -7px;
  border: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.24);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.ov-pop.at-left::after {
  right: -7px;
  border: 0;
  border-right: 0.5px solid rgba(255, 255, 255, 0.24);
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.ov-pop::after {
  content: '';
  position: absolute;
  left: calc(50% + var(--tail, 0px));
  bottom: -7px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  /* the tail cannot share the card's backdrop blur, so it carries a denser tint
     that reads as the same glass */
  background: rgba(10, 14, 22, 0.5);
  border-right: 0.5px solid rgba(255, 255, 255, 0.24);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.ov-pop.below::after {
  bottom: auto;
  top: -7px;
  border: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.2);
  border-top: 0.5px solid rgba(255, 255, 255, 0.24);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* the arrival: the shell wipes open, a scanline crosses it, corner ticks snap in */
.ov-pop.boot {
  animation: ovPopBoot 0.5s cubic-bezier(0.2, 0.9, 0.28, 1) both;
}
@keyframes ovPopBoot {
  /* negative side insets: the clip must not cut off the tail, which sits outside the box */
  0% {
    clip-path: inset(46% -16px 46% -16px);
    filter: brightness(1.7) blur(2px);
  }
  55% {
    clip-path: inset(-16px -16px -16px -16px);
    filter: brightness(1.12) blur(0);
  }
  100% {
    clip-path: inset(-16px -16px -16px -16px);
    filter: none;
  }
}
.ov-pop-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
}
.ov-pop.boot .ov-pop-scan::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 140, 0.22), transparent);
  animation: ovPopScan 0.72s ease-out 0.1s 1 both;
}
@keyframes ovPopScan {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}
.ov-pop-c {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 199, 184, 0.3);
  opacity: 0;
}
.ov-pop.on .ov-pop-c {
  animation: ovPopCorner 0.4s ease 0.16s both;
}
@keyframes ovPopCorner {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 0.75;
    transform: none;
  }
}
.ov-pop-c.tl {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 9px;
}
.ov-pop-c.tr {
  top: 6px;
  right: 6px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 9px;
}
.ov-pop-c.bl {
  bottom: 6px;
  left: 6px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 9px;
}
.ov-pop-c.br {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 9px;
}
.ov-pop-x {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: var(--tert);
  background: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.ov-pop-x:hover {
  color: var(--ink);
  background: none;
}
.ov-pop-c {
  display: none;
}
.ov-pop-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 24px;
}
.ov-pop-flag {
  height: 15px;
  width: auto;
  max-width: 30px;
  flex: none;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  animation: ovPopFlag 0.5s cubic-bezier(0.2, 1.3, 0.35, 1) both;
}
@keyframes ovPopFlag {
  from {
    opacity: 0;
    transform: translateX(-7px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ov-pop-flag[hidden] {
  display: none;
}
.ov-pop-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
/* the caret that follows the name being typed out */
.ov-pop.typing .ov-pop-name::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -1px;
  background: #ffc7b8;
  animation: ovPopCaret 0.6s steps(1, end) infinite;
}
@keyframes ovPopCaret {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}
.ov-pop-date {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
}
.ov-pop-total {
  margin-top: 11px;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.14);
}
.ov-pop-total b {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.4),
    0 0 7px rgba(255, 255, 255, 0.22);
}
.ov-pop-total span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.ov-pop-rows {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ov-pop-rows .r {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  animation: ovPopRow 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(160ms + var(--i, 0) * 40ms);
}
@keyframes ovPopRow {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ov-pop-rows .r i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  background: var(--c, #6a717e);
  filter: drop-shadow(0 0 3px var(--c, #6a717e));
}
.ov-pop-rows .r span {
  flex: 1;
  min-width: 0;
}
.ov-pop-rows .r b {
  color: var(--ink);
  font-weight: 700;
}
.ov-pop-rows .r img.fl {
  height: 10px;
  width: auto;
  max-width: 16px;
  flex: none;
  border-radius: 1.5px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}
.ov-pop-none {
  margin-top: 6px;
  font-size: 11px;
  color: var(--tert);
}
.ov-pop-rows .r.more {
  color: var(--tert);
}
.ov-pop-rows .r.more i {
  background: rgba(255, 255, 255, 0.16);
  filter: none;
}
.ov-pop-rows .r.more b {
  color: var(--tert);
  font-weight: 600;
}
.ov-pop-go {
  margin-top: 12px;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd9cf;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(226, 59, 46, 0.22);
  box-shadow: inset 0 0 0 0.5px rgba(255, 190, 175, 0.35);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.ov-pop-go:hover {
  background: rgba(226, 59, 46, 0.42);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .ov-pop.boot {
    animation: none;
  }
  .ov-pop-rows .r,
  .ov-pop-flag {
    animation: none;
  }
}

/* the sweep that travels across the reported countries, as in the viewer */
#ovScan {
  pointer-events: none;
  will-change: transform;
}
#ovScan rect {
  animation: ovSweep 6.5s linear infinite;
}
@keyframes ovSweep {
  0% {
    transform: translateX(-260px);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  92% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(1700px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ovScan {
    display: none;
  }
}
.ov-map path {
  fill: #252a36;
  stroke: #3d4454;
  stroke-width: var(--sw, 0.4px);
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
  transition:
    fill 0.45s ease,
    fill-opacity 0.45s ease;
}
.ov-map path:hover {
  fill: #333a49;
}
.ov-map path.hit {
  cursor: pointer;
}
.ov-map path.hit:hover {
  filter: brightness(1.18);
}
/* in solo view only the report's own countries answer the pointer */
.ov-map.is-solo path.hit:hover {
  filter: none;
  cursor: default;
}
.ov-map.is-solo path.solo:hover {
  filter: brightness(1.15);
  cursor: pointer;
}
/* Solo intro: only the report's countries are coloured; each lifts as the
   frame reaches it. */
.ov-map path.solo {
  fill: #e9b35f;
}
.ov-map path.sel {
  filter: brightness(1.22) drop-shadow(0 0 4px rgba(233, 179, 95, 0.7));
  transition: filter 0.25s ease;
}
.ov-map path.sel:hover {
  filter: brightness(1.22) drop-shadow(0 0 4px rgba(233, 179, 95, 0.7));
}
/* the country picked in the list beside the charts */
.ovb {
  cursor: pointer;
}
.ovb.on {
  background: rgba(255, 255, 255, 0.05);
}
.ovb.on .nm {
  color: var(--ink);
}
/* Lift pivot = centre of the country's main landmass. */
.ov-map path.solo.paint {
  transform-box: view-box;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: ovLift var(--ld, 1.6s) linear both;
}
/* the many-countries burst: up, a long float with a slow bob, down */
.ov-map path.solo.paint.float {
  animation-name: ovFloat;
}
/* where a lift lands: exactly ovLift's last frame, and like an animation's held
   end it outranks hover and selection styles */
.ov-map path.solo.lit {
  fill: #e9b35f !important;
  filter: drop-shadow(0 0 3px rgba(233, 179, 95, 0.5)) !important;
}
.ov-map svg.ov-lift {
  position: absolute;
  display: block;
  flex: none;
  pointer-events: none;
  cursor: default;
  contain: strict;
}
@keyframes ovFloat {
  0% {
    fill: #252a36;
    transform: none;
    filter: none;
    animation-timing-function: cubic-bezier(0.16, 0.8, 0.3, 1);
  }
  5% {
    fill: #fff1d6;
  }
  12% {
    fill: #ffd99a;
    transform: translateY(var(--ty, -4px)) scale(var(--ls, 1.11));
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 6px rgba(233, 179, 95, 0.9));
    animation-timing-function: ease-in-out;
  }
  /* slow brightness pulse while it floats */
  30% {
    fill: #ffe4b3;
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 10px rgba(255, 214, 140, 1));
  }
  46% {
    fill: #f0c27a;
    transform: translateY(calc(var(--ty, -4px) * 0.78)) scale(var(--ls, 1.11));
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 4px rgba(233, 179, 95, 0.6));
  }
  63% {
    fill: #ffe4b3;
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 10px rgba(255, 214, 140, 1));
  }
  80% {
    fill: #ffd99a;
    transform: translateY(var(--ty, -4px)) scale(var(--ls, 1.11));
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 6px rgba(233, 179, 95, 0.9));
    animation-timing-function: cubic-bezier(0.4, 0, 0.25, 1);
  }
  100% {
    fill: #e9b35f;
    transform: none;
    filter: drop-shadow(0 0 3px rgba(233, 179, 95, 0.5));
  }
}
/* Fast rise, short hold, single continuous ease back down. */
@keyframes ovLift {
  0% {
    fill: #252a36;
    transform: none;
    filter: none;
    animation-timing-function: cubic-bezier(0.16, 0.8, 0.3, 1);
  }
  16% {
    fill: #fff1d6;
  }
  34% {
    fill: #ffd99a;
    transform: translateY(var(--ty, -4px)) scale(var(--ls, 1.11));
    filter: drop-shadow(0 1.6px 3px rgba(0, 0, 0, 0.85))
      drop-shadow(0 0 6px rgba(233, 179, 95, 0.9));
    animation-timing-function: linear;
  }
  52% {
    transform: translateY(var(--ty, -4px)) scale(var(--ls, 1.11));
    animation-timing-function: cubic-bezier(0.4, 0, 0.25, 1);
  }
  100% {
    fill: #e9b35f;
    transform: none;
    filter: drop-shadow(0 0 3px rgba(233, 179, 95, 0.5));
  }
}
/* The rest of the map fades back in as a wave after Show all. */
.ov-map.wash path {
  transition: fill 0.55s ease;
  transition-delay: calc(var(--w, 0) * 1ms);
}
/* one control carries all three views of the map: plain labels between thin
   separators, the chosen one lit in white */
.ov-scope {
  flex: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 0;
  padding: 0;
  background: none;
}
.ov-scope button {
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tert);
  background: transparent;
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}
.ov-scope button + button::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.ov-scope button:hover {
  color: var(--muted);
}
.ov-scope button.on {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}
.ov-scope button[disabled] {
  opacity: 0.35;
  cursor: default;
}
.ov-scope button:focus-visible {
  outline: 2px solid rgba(255, 190, 175, 0.7);
  outline-offset: 2px;
}
/* while a fresh report is on the map, the view that shows it advertises itself */
.ov-scope button[data-s='this'].fresh:not(.on) {
  color: #ffd9cf;
}
.ov-scope button[data-s='this'].fresh:not(.on)::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff8a70;
  box-shadow: 0 0 9px rgba(255, 138, 112, 0.95);
  animation: ovFresh 1.6s ease-in-out infinite;
}
@keyframes ovFresh {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}
.ov-skip {
  flex: none;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tert);
  border-radius: 99px;
  padding: 7px 14px;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.ov-skip[hidden] {
  display: none;
}
/* Showing/hiding these buttons rewraps the bar; its height is animated
   and the button hides first. */
.ov-skip {
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ov-skip.tuck {
  opacity: 0;
  transform: scale(0.92);
}
.ov-bar.flow {
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ov-replay {
  border-color: rgba(233, 179, 95, 0.45);
  color: #e9b35f;
}
.ov-replay:hover {
  color: #ffe2b0;
  border-color: rgba(233, 179, 95, 0.7);
}
.ov-skip:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}
.ov-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  font-size: 11.5px;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--ink);
  background: rgba(22, 12, 13, 0.94);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.9);
  transition: opacity 0.15s ease;
}
.ov-tip.on {
  opacity: 1;
}
.ov-tip b {
  color: #ffc7b8;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.ov-foot {
  display: grid;
  grid-template-rows: 1fr;
  padding: 0 18px;
  font-size: 11px;
  color: var(--tert);
  border-top: 0.5px solid var(--line);
  transition:
    grid-template-rows 0.5s cubic-bezier(0.2, 0.85, 0.25, 1),
    border-color 0.35s ease;
}
/* slides shut (and open) instead of popping; the text stays while it closes */
.ov-foot.shut {
  grid-template-rows: 0fr;
  border-top-color: transparent;
}
.ov-fi {
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.ov-fi .ov-un {
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.ov-foot.shut .ov-un {
  opacity: 0;
  transform: translateY(-6px);
}
.ov-un {
  margin-left: auto;
  color: #ff7a63;
  padding: 11px 0;
  text-align: right;
}
.ov-un.calm {
  color: var(--tert);
}

/* ---- map chrome, same language as the viewer ---- */
.ov-zoom {
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.ov-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(22, 12, 13, 0.82);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.12s ease;
}
.ov-btn:hover {
  background: rgba(226, 59, 46, 0.4);
}
.ov-btn:active {
  transform: scale(0.92);
}
.ov-btn[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.ov-btn:focus-visible {
  outline: 2px solid rgba(255, 150, 110, 0.6);
  outline-offset: 2px;
}
/* Zoom factor as plain text on the map (no chip). */
#ovZlbl {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  line-height: 1;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.6);
}
.ov-zbadge {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  pointer-events: none;
  user-select: none;
  font-size: 11px;
  font-weight: 700;
  color: #ffc7b8;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(22, 12, 13, 0.78);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
/* ---- stepped legend, floating over the map ---- */
.ov-lg {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  left: 14px;
  bottom: 14px;
  padding: 11px 13px 10px;
  border-radius: 10px;
  contain: layout paint;
  background: rgba(22, 12, 13, 0.8);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.ov-lg h5 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.75);
  margin-bottom: 8px;
}
.ov-lg h5 em {
  font-style: normal;
  color: var(--tert);
  letter-spacing: 0.04em;
}
.lg-bar {
  display: flex;
  gap: 1px;
  width: 268px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.lg-bar span {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  transform-origin: 50% 100%;
}
/* Each legend block shows the value it starts at, in a grid matching the
   bar. */
.lg-ticks {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  column-gap: 1px;
  height: 14px;
  width: 268px;
  margin-top: 5px;
}
.lg-ticks b {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--tert);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: left;
  overflow: hidden;
  text-overflow: clip;
}
.lg-ticks b.wide {
  grid-column: 1/-1;
  color: rgba(255, 199, 184, 0.72);
  letter-spacing: 0.03em;
  padding-top: 1px;
}
/* the blocks stack themselves in when the legend is (re)drawn */
.ov-lg.lg-go .lg-bar span {
  animation: lgStack 0.44s cubic-bezier(0.2, 1.25, 0.35, 1) both;
  animation-delay: calc(var(--i, 0) * 42ms);
}
.ov-lg.lg-go .lg-ticks b {
  animation: lgTick 0.4s ease both;
  animation-delay: calc(0.12s + var(--i, 0) * 42ms);
}
@keyframes lgStack {
  from {
    opacity: 0;
    transform: scaleY(0.15);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lgTick {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* chrome arrives with the panel */
.ed-mapwrap.reveal .ov-zoom,
.ed-mapwrap.reveal .ov-zbadge,
.ed-mapwrap.reveal .ov-lg {
  animation: ovChrome 0.5s ease both;
}
.ed-mapwrap.reveal .ov-zoom {
  animation-delay: 0.85s;
}
.ed-mapwrap.reveal .ov-zbadge {
  animation-delay: 0.95s;
}
.ed-mapwrap.reveal .ov-lg {
  animation-delay: 1.05s;
}
@keyframes ovChrome {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---- fullscreen ---- */
body.ov-maximised {
  overflow: hidden;
}
/* the back-to-top button (z 900) sat over the fullscreen map */
body.ov-maximised #toTop {
  display: none;
}
/* Fullscreen map is position:fixed; ancestors with transform / will-change /
   filter / animation drop them while maximised. */
.fs-host {
  transform: none !important;
  will-change: auto !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  contain: none !important;
  perspective: none !important;
  animation: none !important;
  z-index: auto !important;
  isolation: auto !important;
}
.ed-mapwrap.pseudo-full {
  position: fixed;
  inset: 0;
  z-index: 10000;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #090b11;
}
.ed-mapwrap:fullscreen {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: #090b11;
}
.ed-mapwrap.pseudo-full .ov-map,
.ed-mapwrap:fullscreen .ov-map {
  flex: 1;
  min-height: 0;
}
.ed-mapwrap.pseudo-full .ov-map svg,
.ed-mapwrap:fullscreen .ov-map svg {
  width: 100%;
  height: 100%;
}
/* ---- Phones, fullscreen ----
   Header keeps only its controls; overlays respect safe-area insets. */
@media (pointer: coarse) and (max-width: 900px), (pointer: coarse) and (max-height: 500px) {
  .ed-mapwrap.pseudo-full .ov-bar,
  .ed-mapwrap:fullscreen .ov-bar {
    padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px))
      8px calc(10px + env(safe-area-inset-left, 0px));
    gap: 8px;
  }
  .ed-mapwrap.pseudo-full .ov-bar .t,
  .ed-mapwrap:fullscreen .ov-bar .t,
  .ed-mapwrap.pseudo-full .ov-replay,
  .ed-mapwrap:fullscreen .ov-replay {
    display: none;
  }
  .ed-mapwrap.pseudo-full .ov-zoom,
  .ed-mapwrap:fullscreen .ov-zoom {
    right: calc(9px + env(safe-area-inset-right, 0px));
  }
  .ed-mapwrap.pseudo-full .ov-lg,
  .ed-mapwrap:fullscreen .ov-lg {
    left: calc(9px + env(safe-area-inset-left, 0px));
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
  .ed-mapwrap.pseudo-full .ov-zbadge,
  .ed-mapwrap:fullscreen .ov-zbadge {
    right: calc(9px + env(safe-area-inset-right, 0px));
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
  .ed-mapwrap.pseudo-full .ov-foot,
  .ed-mapwrap:fullscreen .ov-foot {
    display: none;
  }
}
/* upright: two selects side by side, the scope switch full width under them */
@media (pointer: coarse) and (max-width: 700px) and (orientation: portrait) {
  .ed-mapwrap.pseudo-full .ov-bar .xsel,
  .ed-mapwrap:fullscreen .ov-bar .xsel {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }
  .ed-mapwrap.pseudo-full .ov-scope,
  .ed-mapwrap:fullscreen .ov-scope {
    width: 100%;
  }
}
/* Landscape: one row and a compact corner legend; no zoom readout. */
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .ed-mapwrap.pseudo-full .ov-bar,
  .ed-mapwrap:fullscreen .ov-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .ed-mapwrap.pseudo-full .ov-bar .xsel,
  .ed-mapwrap:fullscreen .ov-bar .xsel {
    flex: 0 1 190px;
    width: auto !important;
    min-width: 0;
  }
  .ed-mapwrap.pseudo-full .ov-scope,
  .ed-mapwrap:fullscreen .ov-scope {
    width: auto;
    margin-left: auto;
  }
  .ed-mapwrap.pseudo-full .ov-scope button,
  .ed-mapwrap:fullscreen .ov-scope button {
    padding: 6px 11px;
    font-size: 11px;
  }
  .ed-mapwrap.pseudo-full .ov-zbadge,
  .ed-mapwrap:fullscreen .ov-zbadge {
    display: none;
  }
  .ed-mapwrap.pseudo-full .ov-lg,
  .ed-mapwrap:fullscreen .ov-lg {
    padding: 6px 9px 5px;
  }
  .ed-mapwrap.pseudo-full .ov-zoom,
  .ed-mapwrap:fullscreen .ov-zoom {
    top: 8px;
    gap: 5px;
  }
  .ed-mapwrap.pseudo-full .ov-btn,
  .ed-mapwrap:fullscreen .ov-btn {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }
}
/* phone held upright in fullscreen: a one-off nudge to turn it */
.ov-rot {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: #ffd9cf;
  background: rgba(22, 12, 13, 0.9);
  border: 0.5px solid rgba(255, 150, 110, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ov-rot.on {
  opacity: 1;
}
.ov-rot i {
  font-size: 14px;
  animation: ovRotI 1.8s ease-in-out infinite;
}
@keyframes ovRotI {
  0%,
  30% {
    transform: rotate(0);
  }
  60%,
  100% {
    transform: rotate(-90deg);
  }
}
/* while a phone turns (script in <head>) the map dims and nothing slides */
.ov-map > svg {
  transition: opacity 0.22s ease;
}
.ov-map.hi-wait > svg {
  opacity: 0;
}
html.td-rotating .ov-map > svg {
  opacity: 0.25;
  transition: opacity 0.12s ease;
}
html.td-rotating .ed-mapwrap *:not(svg):not(svg *) {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.td-rotating .ov-map > svg {
    opacity: 1;
  }
  .ov-rot i {
    animation: none;
  }
}
.ov-map {
  position: relative;
  display: flex;
}
.ov-map svg {
  flex: 1;
  min-width: 0;
}
.ed-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
/* No scroll anchoring for height changes inside the panels. */
html {
  overflow-anchor: none;
}
.ed-cols,
.ov-side,
.ed-mapwrap,
.ed-stats {
  overflow-anchor: none;
}
/* No scroll anchoring during the tour (caused a 1-2 px jump). */
body.td-tour {
  overflow-anchor: none;
}
.ov-side {
  padding: 15px 16px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(74vh, 640px);
  transition: height 0.5s cubic-bezier(0.2, 0.85, 0.25, 1);
}
/* Category list scrolls inside its panel so both columns have the same
   height. */
.ov-side > .ov-bars {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 12px;
  scrollbar-gutter: stable;
}
.ov-side > .ov-bars::-webkit-scrollbar {
  width: 6px;
}
.ov-side > .ov-bars::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}
.ov-side > .ov-bars::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
.ov-side > .ov-bars::-webkit-scrollbar-track {
  background: transparent;
}
/* a hint that the list continues past the fold */
.ov-side.more::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(12, 8, 10, 0.92));
}
.ov-side::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px 160px at 0% 0%,
    rgba(226, 59, 46, 0.09) 0%,
    rgba(226, 59, 46, 0.0864) 8.4%,
    rgba(226, 59, 46, 0.0759) 17.5%,
    rgba(226, 59, 46, 0.0609) 26.6%,
    rgba(226, 59, 46, 0.045) 35%,
    rgba(226, 59, 46, 0.0291) 43.4%,
    rgba(226, 59, 46, 0.0141) 52.5%,
    rgba(226, 59, 46, 0.0036) 61.6%,
    rgba(226, 59, 46, 0) 70%
  );
}
/* the same corner ticks as the country panel, at low opacity */
.ov-side::after,
.ov-side .ov-corner {
  pointer-events: none;
}
.ov-side .ov-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 199, 184, 0.16);
  z-index: 1;
}
/* Rim spark on entry (red, the receipt uses green). */
.ov-side .rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: inherit;
  padding: 1.4px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.ov-side .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 62%,
    rgba(226, 59, 46, 0.3) 76%,
    #e23b2e 84%,
    #ffd9cf 88%,
    rgba(226, 59, 46, 0.3) 92%,
    transparent 97%
  );
}
.ov-side.spark .rim {
  animation: rimShow 1.5s ease-out both;
}
.ov-side.spark .rim > b {
  animation: rimSpin 1.2s linear 1;
}
.ov-side.spark:nth-of-type(2) .rim,
.ov-side.spark:nth-of-type(2) .rim > b {
  animation-delay: 0.12s;
}
.ov-side.spark:nth-of-type(3) .rim,
.ov-side.spark:nth-of-type(3) .rim > b {
  animation-delay: 0.24s;
}
/* During the report intro the panels appear at 2.4 s / 2.5 s; the spark is
   delayed to match. Higher specificity than the plain .spark rules. */
#vMap.intro .ov-side:nth-of-type(1) .rim {
  animation: rimShow 1.5s ease-out 2.5s both;
}
#vMap.intro .ov-side:nth-of-type(1) .rim > b {
  animation: rimSpin 1.2s linear 2.5s 1;
}
#vMap.intro .ov-side:nth-of-type(2) .rim {
  animation: rimShow 1.5s ease-out 2.6s both;
}
#vMap.intro .ov-side:nth-of-type(2) .rim > b {
  animation: rimSpin 1.2s linear 2.6s 1;
}
#vMap.intro .ov-side:nth-of-type(3) .rim {
  animation: rimShow 1.5s ease-out 2.7s both;
}
#vMap.intro .ov-side:nth-of-type(3) .rim > b {
  animation: rimSpin 1.2s linear 2.7s 1;
}
.ov-side .ov-corner.tl {
  top: 9px;
  left: 9px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 9px;
}
.ov-side .ov-corner.tr {
  top: 9px;
  right: 9px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 9px;
}
.ov-side .ov-corner.bl {
  bottom: 9px;
  left: 9px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 9px;
}
.ov-side .ov-corner.br {
  bottom: 9px;
  right: 9px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 9px;
}
.ov-side h4 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.7);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--line);
}
/* No marker before panel titles. */
.ov-side h4::before {
  display: none;
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--orange);
  box-shadow: 0 0 7px rgba(226, 59, 46, 0.7);
  animation: ovPip 3.4s ease-in-out infinite;
}
@keyframes ovPip {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}
/* Warning icon (as on the home page) with drop-shadow glow. */
.ov-side h4.warn-title::before {
  display: none;
}
.ov-side h4.warn-title {
  color: var(--orange);
}
.ov-side h4.warn-title svg {
  width: 15px;
  height: 15px;
  flex: none;
  animation: ovMark 3.4s ease-in-out infinite;
}
@keyframes ovMark {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(226, 59, 46, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(226, 59, 46, 0.85));
  }
}
.ov-side h4.h-in {
  animation: ovH4In 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: var(--hd, 0s);
}
@keyframes ovH4In {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: none;
  }
}
.ov-spark .sp-beam {
  position: absolute;
  top: 6px;
  left: 0;
  width: 40px;
  height: 92px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 120, 95, 0.16) 70%,
    rgba(255, 190, 170, 0.35) 96%,
    transparent
  );
  border-radius: 10px;
  mix-blend-mode: screen;
}
.ov-side h4 em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--tert);
}
.ov-h2 {
  margin-top: 34px;
}
.ov-bars {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Row per class/country: colour rail, rank, name, count, share, meter. */
.ovb {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 10px 11px 12px;
  border-radius: 11px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--muted);
  transition:
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ovb:first-child {
  border-top: 0;
}
/* the rail carries the row's colour and lights up under the pointer */
.ovb::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 10px;
  width: 2px;
  border-radius: 99px;
  background: var(--c, #e2622e);
  opacity: 0.28;
  transition:
    opacity 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.ovb:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}
.ovb:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--c, #e2622e);
}
.ovb .rk {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
  transition: color 0.22s ease;
}
.ovb:hover .rk {
  color: var(--c, #e2622e);
}
.ovb .nm {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease;
}
.ovb:hover .nm {
  color: var(--ink);
}
.ovb .nm img {
  height: 13px;
  width: auto;
  flex: none;
  border-radius: 3px;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 2px 6px -2px rgba(0, 0, 0, 0.8);
}
.ovb .vl {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
}
.ovb .vl b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* Share shown as a small chip. */
.ovb .vl span {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}
.ovb .tr {
  position: relative;
  grid-column: 2/-1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
/* faint quarter ticks behind the meter */
.ovb .tr::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 99px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 24.5%,
    rgba(255, 255, 255, 0.09) 24.5% 25%
  );
}
.ovb .tr b {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 99px;
  width: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c, #e2622e) 55%, #000) 0%,
    var(--c, #e2622e) 100%
  );
  transition:
    width 0.8s cubic-bezier(0.2, 0.85, 0.25, 1),
    filter 0.22s ease;
}
/* the lit head of the meter */
.ovb .tr b::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(45%, -50%);
  background: color-mix(in srgb, var(--c, #e2622e) 26%, #fff);
  box-shadow: 0 0 8px 1px var(--c, #e2622e);
  opacity: 0.95;
}
.ovb:hover .tr b {
  filter: brightness(1.2);
}
.ovb.top1 .vl b {
  color: #ffd0c0;
}
.ovb.top1 .vl span {
  color: rgba(255, 217, 207, 0.8);
}
.ovb.top1::before {
  opacity: 0.75;
}
.ovb em {
  font-style: normal;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 11.5px;
  color: #ffc7b8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* ---- simplified lists: name and count, nothing else per row ---- */
.ovb {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
  border-top: 0;
  row-gap: 0;
}
.ovb::before,
.ovb .rk,
.ovb .tr {
  display: none;
}
.ovb .dt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--c, #e2622e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #e2622e) 14%, transparent);
}
.ovb .vl b {
  font-size: 14px;
  font-weight: 700;
}
.ovb .vl span {
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.ovb:hover .vl span,
.ovb.hl .vl span {
  opacity: 1;
  transform: none;
}
.ovb.hl {
  background: rgba(255, 255, 255, 0.04);
}
.ovb.hl .nm {
  color: var(--ink);
}
.ovb.big {
  padding: 10px 10px;
}
.ovb.big .nm {
  font-size: 14px;
  color: var(--ink);
}
.ovb.big .nm img {
  height: 16px;
}
.ovb.big .vl b {
  font-size: 18px;
  font-weight: 800;
}
.ovb.big + .ovb:not(.big) {
  margin-top: 6px;
}
.ovb.gain .nm {
  color: #c9f2d6;
}
.ov-list:not(.all) > .ovb.x {
  display: none;
}
.ov-more {
  align-self: flex-start;
  margin: 8px 0 0 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 199, 184, 0.75);
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.ov-more:hover,
.ov-more:active {
  color: #fff;
  background: none;
}
.ov-more[hidden] {
  display: none;
}
/* ---- the dashboard: one frame, built like the home page's live summary
   (head bar, cells split by plain hairlines, foot bar) ---- */
.ov-side.ov-dash {
  display: block;
  max-height: none;
  padding: 0;
  grid-column: 1/-1;
  border-radius: 13px;
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.ov-side.ov-dash::before {
  display: none;
}
/* head bar: what the dashboard shows, and the switch */
.ov-dash .ov-dashbar {
  margin: 0;
  padding: 10px 14px 10px 24px;
  gap: 14px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.ov-dash .ov-dashbar.veiled {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}
.ov-dash .ov-dashbar.reveal {
  animation: none;
}
.ov-dash .ov-dashbar .t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov-dash #ovDashScope button {
  padding: 5px 12px;
  font-size: 12px;
}
/* cells */
.dash-sec {
  position: relative;
  padding: 22px 26px 24px;
  min-width: 0;
}
.dash-when {
  border-top: 0.5px solid var(--line);
}
/* the trend sits on its own dark background inside the hub, so the line and
   sparks keep full contrast */
.ov-dash .dash-when .ov-spark {
  padding: 20px 22px 12px 14px;
  border-radius: 11px;
  /* built like the country cards, only a shade deeper so the neon line keeps its contrast */
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.12));
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}
.dash-grid > .dash-sec + .dash-sec {
  border-left: 0.5px solid var(--line);
}
/* headings as on the home page: plain title, a muted note on the right */
.ov-dash h4 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  gap: 10px;
}
.ov-dash h4.warn-title {
  color: var(--orange);
}
.ov-dash h4.warn-title svg {
  width: 17px;
  height: 17px;
}
.dash-hint {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--tert);
}
.dash-read {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  letter-spacing: 0;
  text-transform: none;
}
/* two readouts, instrument style: a spaced label, the figure in the
   technical face, its month beside it, split by a hairline */
.dash-read > span {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 5px;
  align-items: baseline;
  padding: 0 0 0 18px;
  white-space: nowrap;
}
.dash-read > span + span {
  margin-left: 18px;
  border-left: 0.5px solid rgba(255, 255, 255, 0.1);
}
.dash-read i {
  grid-column: 1/-1;
  font:
    600 8px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 215, 205, 0.42);
}
.dash-read b {
  font:
    600 17px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dash-read em {
  font:
    500 9.5px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tert);
}
.dash-read .pk b {
  color: #ffd0c0;
  text-shadow: 0 0 12px rgba(255, 120, 95, 0.4);
}
/* the trend: a plot with value rows and quarter columns, years under it */
.ov-dash .ov-spark {
  --sph: 150px;
  padding: 2px 0 0;
  margin: 0;
}
.ov-spark::before,
.ov-spark::after {
  display: none;
}
.sp-plot {
  position: relative;
  margin-left: 38px;
  height: var(--sph);
}
.ov-dash .ov-spark svg {
  position: relative;
  z-index: 1;
  height: var(--sph);
}
.sp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sp-grid .gh {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}
.sp-grid .gh.z {
  border-top: 0.5px solid rgba(255, 199, 184, 0.24);
}
.sp-grid .gh em {
  position: absolute;
  right: calc(100% + 9px);
  top: 0;
  transform: translateY(-50%);
  font:
    600 9.5px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  color: var(--tert);
  font-variant-numeric: tabular-nums;
}
.sp-grid .gv {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.04);
}
.sp-grid .gv.y {
  border-left: 0.5px solid rgba(255, 199, 184, 0.12);
}
.ov-spark .sp-beam {
  top: 0;
  height: 100%;
}
.ov-dash .sp-cross,
.ov-dash .sp-dot,
.ov-dash .sp-tip {
  z-index: 3;
}
.sp-band,
.sp-hg {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ov-spark.probe .sp-band,
.ov-spark.probe .sp-hg {
  opacity: 1;
}
.sp-band {
  height: 100%;
  /* a soft glow rising from the floor under the month, no hard edges */
  background: radial-gradient(
    50% 85% at 50% 100%,
    rgba(255, 96, 64, 0.17),
    rgba(226, 59, 46, 0.07) 50%,
    rgba(226, 59, 46, 0) 100%
  );
}
.sp-hg {
  height: 0;
  border-top: 1px dashed rgba(255, 170, 150, 0.22);
  z-index: 2;
}
/* the spark: the stretch of line just behind the dot, stroked with a gradient
   that runs from nothing at the tail to white at the dot, so it fades out
   continuously */
.sp-tr {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ov-spark.probe .sp-tr {
  opacity: 1;
}
.sp-spark {
  fill: none;
  stroke: url(#spkg);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 80, 50, 0.75));
}
/* everything that follows the pointer glides between months */
.ov-dash .sp-cross,
.ov-dash .sp-dot,
.ov-dash .sp-tip,
.sp-band,
.sp-hg {
  transition:
    opacity 0.2s ease,
    transform 0.26s cubic-bezier(0.22, 0.8, 0.3, 1),
    width 0.26s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.ov-spark.snap .sp-cross,
.ov-spark.snap .sp-dot,
.ov-spark.snap .sp-tip,
.ov-spark.snap .sp-band,
.ov-spark.snap .sp-hg,
.ov-spark.snap .sp-tip::after {
  transition: opacity 0.2s ease;
}
/* markers are points of light: a bright core that fades into its own
   glow, no edge, no rim */
.ov-dash .sp-dot {
  width: 4px;
  height: 4px;
  margin: 2px 0 0 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px 2px #ff5a3c,
    0 0 14px 3px rgba(226, 59, 46, 0.55);
}
/* the readout: the same glass card as a country on the map */
.ov-dash .sp-tip {
  display: block;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  padding: 9px 12px 9px;
  border-radius: 9px;
  overflow: visible;
  color: var(--ink);
  background: rgba(16, 11, 14, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: saturate(72%) contrast(104%) brightness(0.9) blur(30px);
  backdrop-filter: saturate(72%) contrast(104%) brightness(0.9) blur(30px);
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* tail: under the card over the point, on top when the card hangs below,
   on the near edge when it sits beside the point */
.ov-dash .sp-tip::after {
  content: '';
  position: absolute;
  left: var(--tx, 50%);
  bottom: -6px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(20, 13, 16, 0.78);
  border-right: 0.5px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition:
    left 0.26s cubic-bezier(0.22, 0.8, 0.3, 1),
    top 0.26s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.ov-dash .sp-tip.under::after {
  bottom: auto;
  top: -6px;
  border: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.16);
  border-top: 0.5px solid rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ov-dash .sp-tip.at-r::after,
.ov-dash .sp-tip.at-l::after {
  bottom: auto;
  top: calc(50% + var(--ty, 0px));
  margin-top: -5.5px;
  transform: rotate(45deg);
}
.ov-dash .sp-tip.at-r::after {
  left: -6px;
  border: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.ov-dash .sp-tip.at-l::after {
  left: auto;
  right: -6px;
  border: 0;
  border-right: 0.5px solid rgba(255, 255, 255, 0.22);
  border-top: 0.5px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.ov-dash .sp-tip.notail::after {
  display: none;
}
.ov-dash .sp-tip .tp-n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
}
.ov-dash .sp-tip .tp-d {
  margin-top: 3px;
  font:
    500 9.5px/1.2 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
.ov-dash .sp-tip .tp-d i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}
.ov-dash .sp-tip .tp-d.up {
  color: #ff9a7a;
}
.ov-dash .sp-tip .tp-d.dn {
  color: #7ccfc8;
}
.ov-dash .sp-tip .tp-t {
  margin-top: 7px;
  padding-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.14);
}
.ov-dash .sp-tip .tp-t b {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.35),
    0 0 6px rgba(255, 255, 255, 0.2);
}
.ov-dash .sp-tip .tp-t span {
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 760px) {
  .ov-dash .sp-tip {
    padding: 8px 11px;
  }
  .ov-dash .sp-tip .tp-t b {
    font-size: 17px;
  }
}
.dash-when .sp-line {
  stroke-width: 1.5;
  stroke: #ff4a34;
  filter: drop-shadow(0 0 1.5px #ff6a50) drop-shadow(0 0 6px rgba(255, 50, 30, 0.75))
    drop-shadow(0 0 14px rgba(226, 40, 26, 0.4));
}
.dash-when .sp-grid .gh {
  border-top-color: rgba(255, 255, 255, 0.05);
}
.dash-when .sp-grid .gv {
  border-left-color: rgba(255, 255, 255, 0.03);
}
.dash-when .sp-grid .gv.y {
  border-left-color: rgba(255, 120, 95, 0.12);
}
/* the latest month carries no marker; the heading already reads it */
.dash-when .sp-lab.now {
  display: none;
}
.sp-drop {
  stroke: rgba(255, 208, 192, 0.5);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.sp-labs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.ov-spark.arm .sp-labs {
  opacity: 0;
}
.ov-spark.lab-in .sp-lab {
  animation: spLab 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 1s backwards;
}
@keyframes spLab {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
.sp-lab {
  position: absolute;
  width: 0;
  height: 0;
}
.sp-lab i {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px 2px #ff5a3c,
    0 0 14px 3px rgba(226, 59, 46, 0.55);
}
.sp-lab.pk i {
  opacity: 0.8;
}
.sp-lab.now i::after {
  display: none;
}
.sp-lab.now i::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid #ff7a5c;
  animation: spPing 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
@keyframes spPing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
.sp-yrs {
  position: relative;
  height: 14px;
  margin: 9px 0 0 38px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--tert);
}
.sp-yrs span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sp-yrs span.s {
  transform: none;
}
/* categories: ring beside the list */
.dash-cat {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.ov-ring {
  position: relative;
  width: 172px;
  aspect-ratio: 1;
  margin-top: 2px;
}
.ov-ring[hidden] {
  display: none;
}
.ov-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rg-tk {
  fill: none;
  stroke: rgba(255, 199, 184, 0.24);
  stroke-width: 0.5;
  transform-origin: 60px 60px;
}
.rg-tr {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 7;
}
.rg-in {
  fill: none;
  stroke: rgba(255, 199, 184, 0.16);
  stroke-width: 0.4;
  stroke-dasharray: 0.6 2.2;
}
.rg-segs {
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.rg-seg {
  fill: none;
  stroke: color-mix(in srgb, var(--c, #e2622e) 78%, #1a0d0e);
  stroke-width: 7;
  cursor: pointer;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--c, #e2622e) 40%, transparent));
  transition:
    stroke-dasharray 0.9s cubic-bezier(0.2, 0.85, 0.25, 1),
    stroke-dashoffset 0.9s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.2s ease,
    stroke-width 0.2s ease;
}
.ov-ring.hov .rg-seg:not(.hl) {
  opacity: 0.22;
}
.rg-seg.hl {
  stroke-width: 10;
  stroke: var(--c, #e2622e);
}
.rg-c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: --c 0.38s ease;
}
/* the reading in the ring: small, technical, monospaced */
.rg-c i {
  font:
    600 8px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 215, 205, 0.4);
}
.rg-c b {
  margin-top: 6px;
  font:
    600 30px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px color-mix(in srgb, var(--c, #e2622e) 55%, transparent);
}
.rg-c b::after {
  content: '%';
  margin-left: 1px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}
.rg-c span {
  margin-top: 8px;
  max-width: 88px;
  font:
    600 8.5px/1.35 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c, #e2622e) 65%, #fff);
}
.rg-c em {
  margin-top: 4px;
  font-style: normal;
  font:
    500 8.5px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tert);
}
.ov-ring.grow .rg-segs {
  animation: rgIn 1.3s cubic-bezier(0.2, 0.85, 0.25, 1) 0.1s backwards;
}
@keyframes rgIn {
  from {
    transform: rotate(-250deg);
    opacity: 0;
  }
}
.ov-ring.grow .rg-c {
  animation: rgC 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) 0.6s backwards;
}
@keyframes rgC {
  from {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(4px);
  }
}
.ov-ring .rg-tkw {
  position: absolute;
  inset: 0;
}
.ov-ring.grow .rg-tkw {
  animation: rgTk 1.6s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
}
@keyframes rgTk {
  from {
    transform: rotate(90deg);
    opacity: 0;
  }
}
/* the outer tick ring turns slowly, only where it costs nothing to watch */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ov-ring:not(.grow) .rg-tkw {
    animation: rgSpin 120s linear infinite;
  }
  @keyframes rgSpin {
    to {
      transform: rotate(360deg);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-lab.now i::after {
    animation: none;
    opacity: 0;
  }
}
/* ---- ruler meters (both lists): a hairline track over a scale, minor
   ticks every 5 %, major every 25 %, the lit head riding the track ---- */
.ov-dash #ovCats .ovb {
  row-gap: 6px;
  padding: 8px 10px 11px;
}
.ov-dash #ovCats .ovb .tr,
.ov-dash #ovTop > .ovb:not(.big) .tr {
  display: block;
  grid-column: 1/-1;
  position: relative;
  height: 2px;
  margin: 2px 0 7px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.ov-dash .ovb .tr::after {
  display: block !important;
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 5px;
  border-radius: 0;
  pointer-events: none;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 25%) 0 0/100%
      5px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5%) 0 0/100%
      2.5px no-repeat;
}
.ov-dash .ovb .tr b {
  border-radius: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c, #e2622e) 35%, transparent),
    var(--c, #e2622e)
  );
}
.ov-dash .ovb .tr b::after {
  width: 4px;
  height: 4px;
}
.ov-dash .ovb:hover .tr::after,
.ov-dash .ovb.hl .tr::after {
  border-right-color: rgba(255, 255, 255, 0.35);
  background:
    repeating-linear-gradient(
        90deg,
        color-mix(in srgb, var(--c, #e2622e) 70%, #fff) 0 1px,
        transparent 1px 25%
      )
      0 0/100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 5%) 0 0/100%
      2.5px no-repeat;
}
.ov-dash #ovCats .ovb .ld {
  display: none;
}
/* category rows: a small share gauge, the name, a dotted leader to the count */
.ov-dash #ovCats .ovb {
  padding: 8px 10px;
}
.ovb .gg {
  width: 18px;
  height: 18px;
  flex: none;
  transform: rotate(-90deg);
  overflow: visible;
}
.ovb .gg .g0 {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.6;
}
.ovb .gg .g1 {
  fill: none;
  stroke: var(--c, #e2622e);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--c, #e2622e) 80%, transparent));
}
.ovb.rise .gg .g1,
.ovb.enter .gg .g1 {
  animation: ggIn 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--b, 0ms) + 0.15s + var(--i, 0) * 65ms);
}
@keyframes ggIn {
  from {
    stroke-dasharray: 0 100;
  }
}
.ovb .ld {
  flex: 1 1 auto;
  min-width: 0;
  align-self: flex-end;
  margin: 0 2px 4px 4px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease;
}
.ovb:hover .ld,
.ovb.hl .ld {
  border-bottom-color: color-mix(in srgb, var(--c, #e2622e) 70%, transparent);
}
.ov-dash #ovCats .ovb .nt {
  flex: 0 1 auto;
}
/* the ring's centre already reads the hovered category's share */
.ov-dash #ovCats .ovb .vl > span {
  display: none;
}
.ov-dash #ovCats .ovb:hover .nt,
.ov-dash #ovCats .ovb.hl .nt {
  color: color-mix(in srgb, var(--c, #e2622e) 30%, #fff);
}
/* a category row takes on its colour under the pointer: a soft glow behind
   it that fades out on every side, not a box with an edge */
.ov-dash #ovCats .ovb {
  isolation: isolate;
}
.ov-dash #ovCats .ovb:hover,
.ov-dash #ovCats .ovb.hl {
  background: none;
}
.ov-dash #ovCats .ovb::before {
  display: block;
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  /* kept inside the row by more than its blur, so the scrolling list's
     edge never cuts it off */
  left: 4px;
  right: 4px;
  top: 3px;
  bottom: 3px;
  width: auto;
  border-radius: 11px;
  transform: none;
  box-shadow: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c, #e2622e) 17%, transparent),
    color-mix(in srgb, var(--c, #e2622e) 6%, transparent) 60%,
    color-mix(in srgb, var(--c, #e2622e) 2%, transparent)
  );
  filter: blur(1.5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ov-dash #ovCats .ovb:hover::before,
.ov-dash #ovCats .ovb.hl::before {
  opacity: 1;
  box-shadow: none;
}
/* countries: the leading three as cards, the rest two to a row */
.ov-dash #ovTop {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  align-content: start;
}
.ov-dash #ovTop > .ovb {
  grid-column: 1/-1;
}
.ov-dash #ovTop > .ovb.big {
  grid-column: span 2;
}
.ov-dash #ovTop[data-big='1'] > .ovb.big {
  grid-column: span 6;
}
.ov-dash #ovTop[data-big='2'] > .ovb.big {
  grid-column: span 3;
}
/* the rows under the cards: one country a line, a meter with a lit head, scaled to these rows */
.ov-dash #ovTop > .ovb:not(.big) {
  row-gap: 7px;
  padding: 9px 10px 10px;
  border-radius: 9px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}
.ov-dash #ovTop > .ovb.big + .ovb:not(.big) {
  border-top: 0;
}
.ov-dash #ovTop > .ovb:not(.big) .tr {
  display: block;
  grid-column: 1/-1;
  height: 3px;
}
.ov-dash #ovTop .ovb .tr::after {
  display: none;
}
.ov-dash #ovTop > .ovb:not(.big) .tr b::after {
  width: 4px;
  height: 4px;
}
.ov-dash #ovTop .ovb.big {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'rk sh' 'nm nm' 'ct ct' 'mx mx' 'tc tc';
  align-items: center;
  row-gap: 7px;
  margin-bottom: 12px;
  padding: 12px 13px 11px;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ov-dash #ovTop .ovb.big.top1 {
  border-color: rgba(226, 59, 46, 0.3);
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.16), rgba(226, 59, 46, 0.03));
}
.ov-dash #ovTop .ovb.big:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}
.ov-dash #ovTop .ovb.big.top1:hover {
  border-color: rgba(255, 120, 95, 0.5);
}
.ov-dash #ovTop .ovb.big .rk {
  display: block;
  grid-area: rk;
  font:
    700 9.5px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  color: var(--tert);
}
.ov-dash #ovTop .ovb.big.top1 .rk {
  color: #ff8a72;
}
.ov-dash #ovTop .ovb.big .nm {
  grid-area: nm;
  font-size: 13px;
  color: var(--ink);
}
.ov-dash #ovTop .ovb.big .nm img {
  height: 14px;
}
.ov-dash #ovTop .ovb.big .vl {
  display: contents;
}
.ov-dash #ovTop .ovb.big .vl > span {
  grid-area: sh;
  justify-self: end;
  opacity: 1;
  transform: none;
  font-size: 10px;
  color: rgba(255, 217, 207, 0.7);
}
.ov-dash #ovTop .ovb.big .vl > b {
  grid-area: ct;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ov-dash #ovTop .ovb.big.top1 .vl > b {
  color: #ffd0c0;
  text-shadow: 0 0 22px rgba(255, 120, 95, 0.35);
}
/* a rewrite's +N / -N floats beside the card's count */
.ov-dash #ovTop .ovb.big .ovb-dl {
  top: 58px;
  right: 13px;
}
.ovb .mx {
  grid-area: mx;
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}
.ovb .tc {
  grid-area: tc;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  color: var(--tert);
  white-space: nowrap;
}
.ovb .tc i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: none;
  background: var(--c, #e2622e);
  box-shadow: 0 0 6px -1px var(--c, #e2622e);
}
.ovb .tc span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbbcb6;
}
.ovb .tc em {
  margin-left: auto;
  padding-left: 6px;
  font-style: normal;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  color: var(--tert);
}
/* an unfolded list scrolls inside the dashboard */
.dash-col {
  position: relative;
}
/* the scrollbar's lane is kept at all times, so unfolding never narrows
   the rows */
.dash-col .ov-list {
  padding-right: 12px;
}
.dash-col .ov-list.all {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dash-col .ov-list::-webkit-scrollbar {
  display: none;
}
/* the list's own scrollbar: a hairline track and a thumb that fade and slide
   in once the list has unfolded, and out again before it folds */
.ov-sb {
  position: absolute;
  right: 0;
  width: 3px;
  border-radius: 99px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: 50% 0;
  transition:
    opacity 0.25s ease,
    transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.ov-sb b {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 170, 150, 0.55), rgba(255, 120, 95, 0.35));
  box-shadow: 0 0 6px rgba(255, 110, 85, 0.35);
  transition: height 0.3s ease;
}
.dash-col.sb-on .ov-sb {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s, 0.18s;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
}
/* a wider invisible grip than the 3px line, and the line thickens under the pointer */
.ov-sb::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  right: -5px;
}
.ov-sb {
  transition:
    opacity 0.25s ease,
    transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1),
    width 0.18s ease,
    background 0.18s ease;
}
.dash-col.sb-on .ov-sb:hover,
.dash-col.sb-on .ov-sb.drag {
  width: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.ov-sb b {
  cursor: grab;
}
.ov-sb.drag b {
  cursor: grabbing;
  background: linear-gradient(180deg, rgba(255, 190, 170, 0.8), rgba(255, 130, 105, 0.6));
}
.ovb .nt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* an unfolded list fades at its lower edge until it is scrolled to the end */
.dash-col .ov-list.all:not(.end) {
  -webkit-mask: linear-gradient(#000 calc(100% - 34px), transparent);
  mask: linear-gradient(#000 calc(100% - 34px), transparent);
}
.ov-dash #ovTop > .ov-note {
  grid-column: 1/-1;
}
/* list counts in the site's technical face */
.ov-dash .ovb:not(.big) .vl b {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@keyframes ovbSwIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* plain opening of the Overview: a simple fade-up, no fill-mode left behind */
.ov-dash.soft {
  animation: dashSoft 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
}
@keyframes dashSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.ov-dash.soft .ovb {
  animation: ovbSwIn 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(0.15s + var(--i, 0) * 40ms);
}
@media (prefers-reduced-motion: reduce) {
  .ov-dash.soft,
  .ov-dash.soft .ovb {
    animation: none;
  }
}
/* view change: every row and card keeps its element; its colour, meters and
   figures run to the new values */
@property --c {
  syntax: '<color>';
  inherits: true;
  initial-value: #e2622e;
}
.ov-dash .ovb {
  transition:
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1),
    --c 0.62s ease;
}
.ov-dash .ovb.flip {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.85, 0.25, 1),
    --c 0.62s ease;
}
/* the card meter: the country's whole category mix, in colour */
.ovb .mx.mix {
  display: flex;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.ovb .mx.mix > b {
  display: block;
  min-width: 2px;
  height: 100%;
  /* solid colour mixed toward the card, not opacity, and no glow, so every block
     keeps the same apparent width as its neighbours */
  background: color-mix(in srgb, var(--c, #e2622e) var(--k, 100%), #2a1719);
  transition:
    flex-grow 0.62s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.3s ease;
}
/* the gaps are margins; the meter's own rounded, clipped ends give the caps, so
   no block changes shape when another becomes first or last */
.ovb .mx.mix > b {
  margin-left: 1.5px;
  transition:
    flex-grow 0.62s cubic-bezier(0.2, 0.85, 0.25, 1),
    min-width 0.62s ease,
    margin 0.62s ease,
    opacity 0.3s ease;
}
.ovb .mx.mix > b:first-child {
  margin-left: 0;
}
.sp-sink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.sp-sinkrow {
  pointer-events: none;
  z-index: 2;
}
.sp-sinkrow .mo-b {
  transform-origin: 50% 100%;
}
.ov-dash .mo-b {
  transform-origin: 50% 100%;
}
.ov-dashbar .t.tswap {
  animation: tSwap 0.5s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes tSwap {
  from {
    opacity: 0;
    transform: translateY(5px);
    filter: blur(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-dashbar .t.tswap {
    animation: none;
  }
}
/* ---- the dashboard's entrance (chartsIntro adds .intro2 for ~3 s) ---- */
#ovTop .ovb.big.settled {
  animation: none;
}
/* the frame unrolls from its head bar while a scan line runs down with it */
#vMap .ed-cols.reveal > .ov-side.ov-dash {
  animation: dashOpen 1.05s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes dashOpen {
  0% {
    clip-path: inset(0 0 calc(100% - 50px) 0 round 13px);
    opacity: 0;
    transform: translateY(14px);
  }
  14% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0 round 13px);
    opacity: 1;
    transform: none;
  }
}
.ov-dash.intro2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 110, 80, 0.07) 75%,
    rgba(255, 170, 140, 0.42) 99%,
    transparent
  );
  animation: dashScan 1.05s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes dashScan {
  0% {
    top: -20px;
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 70px);
    opacity: 0;
  }
}
/* head bar: title wipes in, the switch follows */
.ov-dash .ov-dashbar {
  position: relative;
}
.ov-dash.intro2 .ov-dashbar .t {
  animation: ovH4In 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) 0.12s backwards;
}
.ov-dash.intro2 #ovDashScope {
  animation: dashUp 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 0.28s backwards;
}
@keyframes dashUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
/* the dividers draw in bright, then fade to hairlines */
.ov-dash.intro2 .ov-dashbar::after,
.ov-dash.intro2 .dash-when::after,
.ov-dash.intro2 .dash-grid > .dash-sec + .dash-sec::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.ov-dash.intro2 .ov-dashbar::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 120, 90, 0), #ff7a5c 70%, #ffd0c0);
  animation: divX 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) 0.2s both;
}
.ov-dash.intro2 .dash-when::after {
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 120, 90, 0), #ff7a5c 70%, #ffd0c0);
  animation: divX 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) 0.85s both;
}
.ov-dash.intro2 .dash-grid > .dash-sec + .dash-sec::after {
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 120, 90, 0), #ff7a5c 70%, #ffd0c0);
  animation: divY 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) 0.4s both;
}
@keyframes divX {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  65% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes divY {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  65% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
/* the ring: dial first, then the arcs swing in, then the reading counts up */
.ov-dash.intro2 .ov-ring.grow .rg-tkw {
  animation-delay: 0.3s;
}
.ov-dash.intro2 .ov-ring.grow .rg-segs {
  animation-delay: 0.45s;
}
.ov-dash.intro2 .ov-ring.grow .rg-c {
  animation-delay: 0.95s;
}
/* country cards flip up one after another, a glare crossing each */
.ov-dash.intro2 #ovTop .ovb.big.rise {
  animation: cardIn 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(var(--b, 0ms) + var(--i, 0) * 110ms);
  transform-origin: 50% 100%;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: perspective(700px) rotateX(58deg) translateY(10px);
  }
}
.ov-dash.intro2 #ovTop .ovb.big::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 215, 195, 0.16) 50%,
    transparent 65%
  );
  transform: translateX(-110%);
  animation: cardGlare 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--b, 0ms) + 350ms + var(--i, 0) * 110ms);
}
@keyframes cardGlare {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}
/* the trend: grid columns rise left to right, value rows draw, then the line */
.ov-dash.intro2 .sp-grid .gv {
  transform-origin: 50% 100%;
  animation: gvIn 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(0.95s + var(--g, 0) * 26ms);
}
@keyframes gvIn {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}
.ov-dash.intro2 .sp-grid .gh {
  transform-origin: 0 50%;
  animation: ghIn 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(0.9s + var(--g, 0) * 60ms);
}
@keyframes ghIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
}
.ov-dash.intro2 .sp-yrs,
.ov-dash.intro2 .dash-read {
  animation: dashUp 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 1.25s backwards;
}
/* one-month view: the trend's own frame and value grid, twelve slots,
   the report's month a lit column */
.sp-mo {
  padding: 2px 0 0;
}
.mo-plot {
  height: var(--sph);
}
.mo-row {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(4px, 1vw, 12px);
  padding: 0 6px;
  z-index: 1;
}
.mo {
  position: relative;
  height: 100%;
  min-width: 0;
}
.mo-b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}
.mo.on .mo-b {
  left: 16%;
  right: 16%;
  height: var(--h);
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 112, 82, 0.62),
    rgba(226, 59, 46, 0.24) 55%,
    rgba(226, 40, 26, 0.06)
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 160, 130, 0.45),
    inset 0 1px 0 rgba(255, 220, 205, 0.35),
    0 0 22px -6px rgba(226, 59, 46, 0.6);
}
/* the rim of the column: a hot top edge with the spark on it */
.mo.on .mo-b::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: -0.5px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 140, 110, 0), #ffb39c 50%, rgba(255, 140, 110, 0));
  box-shadow: 0 0 8px rgba(255, 120, 90, 0.9);
}
.mo.on .mo-b::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 6px 2px #ff5a3c,
    0 0 16px 4px rgba(226, 59, 46, 0.6);
}
/* a faint band runs the full height behind the lit month, like the trend's probe */
.mo-bd {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 110, 80, 0),
    rgba(255, 110, 80, 0.07) 60%,
    rgba(255, 110, 80, 0.12)
  );
  box-shadow: inset 0 0 0 0.5px rgba(255, 140, 110, 0.08);
}
.mo.on > b {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) + 10px);
  transform: translateX(-50%);
  font:
    600 14px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 120, 95, 0.55);
  white-space: nowrap;
}
.mo-ax {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(4px, 1vw, 12px);
  margin: 9px 0 0 38px;
  padding: 0 6px;
}
.mo-ax em {
  font:
    600 9.5px/1 JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tert);
  overflow: hidden;
}
.mo-ax em.on {
  color: #ffd0c0;
  text-shadow: 0 0 10px rgba(255, 120, 95, 0.5);
}
/* the note becomes a muted caption under the axis */
.ov-dash .sp-mo .ov-note {
  padding: 14px 0 2px 38px;
  text-align: left;
  font-size: 11.5px;
}
.ov-dash .sp-mo .ov-note b {
  display: inline;
  font-size: 11.5px;
  margin: 0 0 0 6px;
  color: #ffc7b8;
}
.ov-dash .sp-mo .ov-note .sp-from {
  display: inline;
  margin: 0 0 0 8px;
}
/* entrances: tour (intro2) and plain opening (soft) */
.ov-dash.intro2 .mo-b,
.ov-dash.intro2 .mo-ax em {
  animation: dashUp 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) backwards;
  animation-delay: calc(1s + var(--m, 0) * 40ms);
}
.ov-dash.intro2 .mo-ax em {
  animation-delay: calc(1.05s + var(--m, 0) * 40ms);
}
.ov-dash.intro2 .mo.on .mo-b,
.ov-dash.soft .mo.on .mo-b {
  transform-origin: 50% 100%;
  animation: moGrow 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 1.45s backwards;
}
.ov-dash.soft .mo.on .mo-b {
  animation-duration: 0.7s;
  animation-delay: 0.35s;
}
@keyframes moGrow {
  from {
    transform: scaleY(0);
  }
}
.ov-dash.intro2 .mo-bd {
  animation: dashUp 0.8s ease 1.4s backwards;
}
.ov-dash.intro2 .mo.on > b {
  animation: dashUp 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) 2.1s backwards;
}
.ov-dash.soft .mo.on > b,
.ov-dash.soft .mo-bd {
  animation: dashUp 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) 0.8s backwards;
}
.ov-dash.intro2 .sp-mo .ov-note {
  animation: dashUp 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 1.5s backwards;
}
@media (max-width: 760px) {
  .mo-ax em {
    font-size: 8px;
    letter-spacing: 0;
  }
  .mo-ax {
    margin-left: 30px;
  }
  .ov-dash .sp-mo .ov-note {
    padding-left: 30px;
  }
  .ov-dash .sp-mo .ov-note b {
    display: block;
    margin: 4px 0 0;
  }
  .mo.on .mo-b {
    left: 4%;
    right: 4%;
  }
}
/* the foot comes last */
.ov-dash.intro2 .dash-foot > * {
  animation: dashUp 0.6s cubic-bezier(0.2, 0.85, 0.25, 1) 1.55s backwards;
}
@media (prefers-reduced-motion: reduce) {
  #vMap .ed-cols.reveal > .ov-side.ov-dash {
    animation: none;
  }
}
/* foot bar */
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.dash-foot span {
  font-size: 12px;
  color: var(--muted);
}
.dash-foot button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #ff6a4a;
  transition: color 0.18s ease;
}
.dash-foot button:hover {
  color: #ffb4a4;
}
@media (max-width: 1320px) {
  .dash-cat {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 20px;
  }
  .ov-ring {
    width: 148px;
  }
  .rg-c b {
    font-size: 25px;
  }
}
@media (max-width: 1050px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-grid > .dash-sec + .dash-sec {
    border-left: 0;
    border-top: 0.5px solid var(--line);
  }
}
@media (max-width: 760px) {
  .ov-dash .ov-dashbar {
    padding: 10px 12px 10px 16px;
  }
  .dash-sec {
    padding: 16px 14px 18px;
  }
  .ov-dash .ov-spark {
    --sph: 118px;
  }
  .sp-plot,
  .sp-yrs {
    margin-left: 30px;
  }
  .ov-dash #ovDashScope button {
    padding: 6px 4px;
    font-size: 11px;
  }
  /* the ring sits above its list, so the category names keep their width */
  .dash-cat {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ov-ring {
    width: 150px;
    margin: 0 auto;
  }
  .rg-c b {
    font-size: 25px;
  }
  .dash-read {
    gap: 12px;
  }
  .dash-read .pk {
    display: none;
  }
  .dash-hint {
    display: none;
  }
  .ov-dash #ovTop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-dash #ovTop > .ovb {
    grid-column: span 2;
  }
  .ov-dash #ovTop > .ovb.big {
    grid-column: span 1;
  }
  .ov-dash #ovTop > .ovb.big.top1,
  .ov-dash #ovTop[data-big='1'] > .ovb.big {
    grid-column: span 2;
  }
  .ov-dash #ovTop[data-big='2'] > .ovb.big {
    grid-column: span 1;
  }
  .ov-dash #ovTop .ovb.big .vl > b {
    font-size: 21px;
  }
  .dash-foot {
    padding: 11px 16px;
  }
}
.ov-spark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 92px;
  z-index: -1;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
}
.ov-spark svg {
  display: block;
  width: 100%;
  height: 92px;
  overflow: visible;
}
/* Faint grid behind the trend line. */
.ov-spark::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 92px;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px) 0 0/100% 23px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px) 0 0/8.33% 100%;
  -webkit-mask: linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000);
}
/* crosshair, marker and the little readout */
.sp-cross,
.sp-dot,
.sp-tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 2;
}
.ov-spark.probe .sp-cross,
.ov-spark.probe .sp-dot,
.ov-spark.probe .sp-tip {
  opacity: 1;
}
.sp-cross {
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(226, 59, 46, 0),
    rgba(255, 150, 120, 0.55),
    rgba(226, 59, 46, 0)
  );
}
.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 10px 2px rgba(226, 59, 46, 0.9),
    0 0 0 1px rgba(255, 190, 175, 0.6);
}
.sp-tip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(12, 10, 14, 0.9);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
}
.sp-tip b {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.sp-tip span {
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tert);
}
.ov-spark {
  cursor: crosshair;
  touch-action: pan-y;
}
.ov-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    Menlo,
    monospace;
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.06em;
}
.ov-note {
  font-size: 12px;
  color: var(--tert);
  padding: 26px 0 28px;
  text-align: center;
}
.ov-note b {
  display: block;
  color: #ffc7b8;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 700;
}

/* ---- the strip above the panels: what they are showing, and the switch ---- */
.ov-dashbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 2px 12px;
  padding: 0;
}
.ov-dashbar[hidden] {
  display: none;
}
.ov-dashbar .t {
  margin-right: auto;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 0.3s ease;
}
#ovDashScope button {
  padding: 6px 12px;
}
/* the panels stay out of sight until the sequence reaches them */
.ed-cols.veiled,
.ov-dashbar.veiled {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(9px);
  pointer-events: none;
}
.ov-dashbar.reveal {
  animation: ovColsIn 0.7s cubic-bezier(0.16, 0.86, 0.24, 1) both;
}
/* Second selector only to outrank #vMap.intro .ov-side:nth-of-type(). */
.ed-cols.reveal > *,
#vMap .ed-cols.reveal > .ov-side {
  animation: ovColsIn 0.8s cubic-bezier(0.16, 0.86, 0.24, 1) both;
}
.ed-cols.reveal > *:nth-child(2),
#vMap .ed-cols.reveal > .ov-side:nth-child(2) {
  animation-delay: 0.12s;
}
.ed-cols.reveal > *:nth-child(3),
#vMap .ed-cols.reveal > .ov-side:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes ovColsIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
    filter: blur(9px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ---------- Tablet and phone ----------
   Nothing may exceed its parent's width: fixed-px grids are reduced to columns
   that work at 360px, elements that can't shrink are hidden. */
#mainWrap {
  overflow-x: clip;
}
@media (max-width: 1050px) {
  .ed-login {
    grid-template-columns: 1fr;
  }
  .ed-login-side {
    border-left: none;
    border-top: 0.5px solid var(--line);
    border-radius: 0 0 12px 12px;
  }
  .ed-cols {
    grid-template-columns: 1fr;
  }
  .db-head,
  .db-row {
    grid-template-columns: 84px minmax(0, 3fr) 150px 124px;
  }
  .db-head span:nth-child(n + 5),
  .db-row > span:nth-child(n + 5) {
    display: none;
  }
  .db-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .db-f-q,
  .db-f-yr {
    grid-column: span 2;
  }
  .dbv-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dbv-strip .rep-cell:nth-child(odd) {
    border-left: none;
  }
  .dbv-strip .rep-cell:nth-child(n + 3) {
    border-top: 0.5px solid var(--line);
  }
}
@media (max-width: 760px) {
  .ed-grid {
    grid-template-columns: 1fr;
  }
  .ed-step {
    padding: 20px 18px 4px;
  }
  .ed-skip {
    margin: 18px 18px -6px;
  }
  .ed-bar {
    padding: 16px 18px 18px;
  }
  .ed-login-in {
    padding: 24px 20px 22px;
  }
  .ed-top {
    gap: 12px;
  }
  .ed-out span {
    display: none;
  }
  .ed-tabs {
    width: 100%;
    order: 3;
  }
  .ed-tabs button {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
  }
  .db-bar {
    padding: 14px;
  }
  /* Phones: date and source hidden (row opens the full record). */
  .db-head,
  .db-row {
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 10px;
    padding: 0 14px;
  }
  /* 122px category cell: chip padding removed and only the count is shown. */
  .db-chip {
    font-size: 11px;
  }
  .db-more span {
    display: none;
  }
  .db-acts button {
    white-space: nowrap;
  }
  .db-gx {
    display: none;
  }
  .db-head span:nth-child(1),
  .db-row > span:nth-child(1) {
    display: none;
  }
  .db-head span:nth-child(n + 4),
  .db-row > span:nth-child(n + 4) {
    display: none;
  }
  .db-row {
    padding-block: 0;
  }
  .db-scroll {
    height: min(58vh, 520px);
  }
  /* the counts sit centred on their own line, the two actions on the next */
  .db-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    padding: 15px 14px;
  }
  .db-meta .db-stat {
    padding: 0 0 0 11px;
  }
  .db-meta .db-acts {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
    gap: 10px;
  }
  .db-meta .db-acts button {
    flex: 1 1 0;
    max-width: 190px;
    justify-content: center;
  }
  .db-csv {
    margin-left: 0;
  }
  .db-meta .db-sort {
    flex: 1 1 100%;
    justify-content: center;
    margin-left: 0;
  }
  .db-meta .db-sort .xsel {
    flex: 1 1 auto;
    max-width: 260px;
  }
  /* four actions do not fit one phone row: two by two */
  .db-meta .db-acts {
    flex-wrap: wrap;
  }
  .db-meta .db-acts > button,
  .db-meta .db-acts > .db-exp {
    flex: 1 1 calc(50% - 5px);
    max-width: none;
  }
  .db-meta .db-acts .db-exp > button {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  .db-viz {
    padding: 14px 14px 0;
  }
  .dbv-head {
    gap: 8px;
  }
  .dbv-head h3 {
    font-size: 14px;
  }
  .dbv-dl {
    margin-left: 0;
    width: 100%;
  }
  .dbv-dl button {
    flex: 1;
  }
  .dbv-strip {
    margin: 0 -14px;
  }
  .ibar {
    height: 22px;
  }
  /* Headline tile full width, the other four in a 2 x 2 grid. */
  .ed-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-stats .st:first-child {
    grid-column: 1/-1;
  }
  .ed-stats .st:first-child b {
    font-size: 25px;
  }
  .ovb {
    column-gap: 8px;
    padding: 8px 8px;
    font-size: 11.5px;
  }
  .ovb .nm {
    font-size: 11.5px;
    gap: 7px;
  }
  .ovb .vl {
    gap: 5px;
  }
  .ovb .vl b {
    font-size: 14px;
  }
  .ovb .vl span {
    font-size: 9px;
  }
  /* the overview bar stops trying to keep its controls on one line */
  .ov-bar {
    padding: 12px 14px;
    gap: 10px;
  }
  .ov-bar .t {
    flex: 1 1 100%;
    margin-right: 0;
  }
  .ov-bar .xsel {
    flex: 1 1 140px;
  }
  .ov-scope {
    width: 100%;
  }
  .ov-scope button {
    flex: 1;
    padding: 7px 6px;
    font-size: 11px;
  }
  .ov-foot {
    padding: 0 14px;
  }
  /* ~175px map frame on phones: smaller, non-overlapping overlays. */
  .ov-lg {
    left: 9px;
    bottom: 9px;
    padding: 7px 9px 6px;
    border-radius: 10px;
    background: rgba(22, 12, 13, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ov-lg h5 {
    font-size: 8px;
    gap: 5px;
    margin-bottom: 5px;
  }
  .lg-bar {
    width: 148px;
    height: 7px;
    border-radius: 2px;
  }
  .lg-ticks {
    width: 148px;
    height: 11px;
    margin-top: 3px;
  }
  .lg-ticks b {
    font-size: 7px;
  }
  /* the top of the scale is already the last tick, so the separate max chip
     only made the plate wider */
  .ov-lg h5 em {
    display: none;
  }
  /* Legend hidden while the tour zooms the map. */
  .ov-lg {
    transition: opacity 0.45s ease;
  }
  /* important: the map frame's entrance animates the legend in, and an
     animation outranks a plain rule, so the legend would reappear mid-tour */
  body.td-tour .ov-lg {
    opacity: 0 !important;
  }
  /* compact zoom rail, so the reading stays clear of its last button */
  .ov-zoom {
    top: 9px;
    right: 9px;
    gap: 5px;
  }
  .ov-btn {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    font-size: 11px;
    background: rgba(22, 12, 13, 0.9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ov-zbadge {
    right: 9px;
    bottom: 9px;
    padding: 4px 8px;
    font-size: 10px;
    background: rgba(22, 12, 13, 0.9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Opaque plate here (a moving 44px backdrop blur made the tour stutter). */
  /* opaque: on a phone the card reaches over the bar above the map */
  .ov-pop {
    background: #0c1018;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ov-pop::after {
    background: #0c1018;
  }
  /* Card capped to the ~175px map height; the category list scrolls. */
  .ov-pop {
    min-width: 170px;
    max-width: min(260px, calc(100vw - 48px));
    padding: 12px 13px 11px;
    border-radius: 10px;
    max-height: var(--pmax, calc(100% - 14px));
    display: flex;
    flex-direction: column;
  }
  .ov-pop-rows {
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  /* Overflowing list: last line fades to indicate scrolling. */
  .ov-pop-rows.more {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 16px), transparent);
  }
  .ov-pop-date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ov-pop-hd,
  .ov-pop-date,
  .ov-pop-total,
  .ov-pop-go {
    flex: none;
  }
  .ov-pop-hd {
    gap: 7px;
    padding-right: 20px;
  }
  .ov-pop-flag {
    height: 13px;
  }
  .ov-pop-name {
    font-size: 12.5px;
  }
  .ov-pop-date {
    font-size: 9.5px;
    margin-top: 3px;
  }
  .ov-pop-total {
    margin-top: 9px;
    padding-top: 8px;
    gap: 7px;
  }
  .ov-pop-total b {
    font-size: 21px;
  }
  .ov-pop-total span {
    font-size: 8.5px;
    letter-spacing: 0.09em;
  }
  .ov-pop-rows {
    margin-top: 7px;
    gap: 3px;
  }
  .ov-pop-rows .r {
    font-size: 10.5px;
    gap: 7px;
  }
  .ov-pop-go {
    margin-top: 10px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .ov-pop-x {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }
  .rev-r {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* the narrowest phones (320px): the three scope buttons still fit */
@media (max-width: 360px) {
  .ov-scope button {
    padding: 7px 2px;
    font-size: 10.5px;
    letter-spacing: 0;
    min-width: 0;
  }
}
/* the smallest phones: the many-countries card drops its subtitle so the
   count and at least one country fit the short map */
@media (max-width: 400px) {
  .ov-pop.multi .ov-pop-date {
    display: none;
  }
  .ov-pop.multi .ov-pop-total {
    margin-top: 6px;
    padding-top: 6px;
  }
}
@media (max-width: 560px) {
  .dbv-strip {
    grid-template-columns: 1fr;
  }
  .dbv-strip .rep-cell {
    border-left: none;
    border-top: 0.5px solid var(--line);
  }
  .dbv-strip .rep-cell:first-child {
    border-top: none;
  }
  .ed-stats {
    grid-template-columns: 1fr 1fr;
  }
  .db-head,
  .db-row {
    gap: 8px;
    padding: 0 12px;
  }
  .ov-new-k {
    font-size: 11px;
    padding: 4px 10px;
  }
  .db-card {
    max-height: 90vh;
  }
  .db-card > .in {
    padding: 19px 18px 20px;
  }
  .db-card h3 {
    font-size: 15.5px;
  }
}
@media (max-width: 400px) {
  .ed-stats {
    grid-template-columns: 1fr;
  }
  .dbv-dl button {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .db-bar {
    grid-template-columns: 1fr;
  }
  .db-f-q,
  .db-f-yr {
    grid-column: span 1;
  }
}

/* Original style section 16; order preserved. */

/* scrollbar track: the page background lives on html, and turns into the footer colour where the footer starts.
   Top glows scroll with the page (they stay at the top instead of following the viewport). */
html {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(205, 56, 38, 0.16) 0%,
      rgba(205, 56, 38, 0.1536) 6.96%,
      rgba(205, 56, 38, 0.135) 14.5%,
      rgba(205, 56, 38, 0.1082) 22.04%,
      rgba(205, 56, 38, 0.08) 29%,
      rgba(205, 56, 38, 0.0518) 35.96%,
      rgba(205, 56, 38, 0.025) 43.5%,
      rgba(205, 56, 38, 0.0064) 51.04%,
      rgba(205, 56, 38, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(44, 74, 160, 0.12) 0%,
      rgba(44, 74, 160, 0.1152) 7.2%,
      rgba(44, 74, 160, 0.1012) 15%,
      rgba(44, 74, 160, 0.0812) 22.8%,
      rgba(44, 74, 160, 0.06) 30%,
      rgba(44, 74, 160, 0.0388) 37.2%,
      rgba(44, 74, 160, 0.0187) 45%,
      rgba(44, 74, 160, 0.0048) 52.8%,
      rgba(44, 74, 160, 0) 60%
    ),
    linear-gradient(180deg, #100707, #0a0505) 0 100%/100% 0 no-repeat scroll,
    var(--bg);
}
body {
  background: transparent;
}

/* Original style section 17; order preserved. */

/* phones: headings, intros, section labels and footer centred; forms, tables
   and panel content stay left-aligned */
@media (max-width: 760px) {
  .ah,
  .vw-head,
  .ed-gate > .kicker,
  .ed-gate > h1,
  .ed-gate > p {
    text-align: center;
  }
  .ah > h1,
  .ah > p,
  .vw-head > h1,
  .vw-head > p,
  .ed-gate > h1,
  .ed-gate > p {
    margin-inline: auto;
  }
  .vw-jumps {
    justify-content: center;
  }
  .ah-stats .stat {
    text-align: center;
  }
  .sec-t {
    justify-content: center;
  }
  .sec-t::before {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
  }
  .sec-t.in::before {
    transform: scaleX(1);
  }
  footer .f-top {
    text-align: center;
  }
  footer .brand,
  footer .f-logos {
    justify-content: center;
  }
  footer .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }
  footer p {
    margin-inline: auto;
  }
  footer .f-bottom {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 760px) {
  .ah-stats {
    margin-inline: auto;
  }
  .ah-stats .stat,
  .ah-stats .stat:first-child,
  .ah-stats .stat:nth-child(odd) {
    align-items: center;
    padding: 0 12px;
  }
  .perm {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .sec-t::before {
    transform: none;
    transition: none;
  }
}

/* Original style section 18; order preserved. */

/* page scrollbar drawn over the page: the native one is hidden (desktop only, set by
   the script below), so no strip is reserved beside the content */
html.pgsb {
  scrollbar-width: none;
}
html.pgsb::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#pgSb {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  z-index: 2147483000;
  pointer-events: none;
}
#pgSb i {
  position: absolute;
  top: 0;
  right: 3px;
  width: 6px;
  height: 40px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  transition:
    opacity 0.45s ease,
    width 0.2s ease,
    right 0.2s ease,
    background-color 0.2s ease;
}
#pgSb.on i {
  opacity: 1;
  transition-duration: 0.18s, 0.2s, 0.2s, 0.2s;
}
#pgSb i:hover,
#pgSb.drag i {
  width: 8px;
  right: 2px;
  background: rgba(255, 255, 255, 0.32);
}
#pgSb.off {
  display: none;
}
html.pgsb-drag,
html.pgsb-drag * {
  user-select: none !important;
  -webkit-user-select: none !important;
}
