/* Alveos login + dashboard — same violet / gold-orange tokens as www */
:root {
  --al-ink: #FDF8FB;
  --al-muted: #B399AA;
  --al-bg: #190914;
  --al-bg-mid: #1F0C18;
  --al-card: #25101E;
  --al-card-hover: #2D1425;
  --al-border: rgba(255, 255, 255, 0.08);
  --al-accent: #E87A38;
  --al-accent-hover: #F2965A;
  --al-accent-glow: rgba(232, 122, 56, 0.28);
}

html { background: var(--al-bg); }

body {
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
  isolation: isolate;
  background: var(--al-bg);
  background-image:
    radial-gradient(900px 560px at 12% 6%, rgb(232 122 56 / 34%), transparent 62%),
    radial-gradient(800px 420px at 88% 0%, rgb(139 52 90 / 36%), transparent 58%),
    radial-gradient(circle at 15% 28%, rgba(70, 20, 50, 0.72) 0%, var(--al-bg) 55%);
  color: var(--al-ink);
  min-height: 100vh;
}

/* Same aurora + honeycomb as www landing / pricing */
.al-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.al-aurora .blob {
  position: absolute;
  left: -12%;
  top: -18%;
  width: 72vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(232 122 56 / 38%), transparent 70%);
  animation: al-site-drift 22s ease-in-out infinite alternate;
}

.al-aurora .blob.b2 {
  left: 52%;
  top: -8%;
  width: 58vw;
  background: radial-gradient(closest-side, rgb(139 52 90 / 34%), transparent 70%);
  animation-duration: 28s;
}

.al-aurora .blob.b3 {
  left: 8%;
  top: 52%;
  width: 54vw;
  background: radial-gradient(closest-side, rgb(82 36 68 / 36%), transparent 70%);
  animation-duration: 26s;
}

.al-aurora .grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.05'/></svg>");
  mix-blend-mode: soft-light;
  opacity: .22;
}

.al-aurora .honeycomb {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'><path d='M42 3 L75 22 V60 L42 79 L9 60 V22 Z' fill='none' stroke='%23E87A38' stroke-width='1.2' opacity='.7'/></svg>");
  background-size: 84px 96px;
  mask-image: radial-gradient(ellipse 95% 75% at 42% 12%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 42% 12%, #000 12%, transparent 78%);
}

@keyframes al-site-drift {
  from { transform: translate(-8%, 0) scale(1); }
  to { transform: translate(8%, -6%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .al-aurora .blob { animation: none; }
}

a { color: var(--al-accent); text-decoration: none; }
a:hover { color: var(--al-accent-hover); }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(25, 9, 20, 0.18);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--al-border);
  padding: 12px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

header.site-header a { color: var(--al-ink); }
header.site-header a:hover { color: var(--al-accent); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { height: 40px; width: auto; display: block; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--al-accent);
  font-weight: 700;
}
.brand-name { font-size: 17px; font-weight: 600; color: var(--al-ink); }

.navlinks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.navlinks a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--al-ink);
}
.navlinks a.is-active {
  background: var(--al-card-hover);
  border-color: var(--al-border);
}

header .language-selector {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 20;
}
header .language-selector .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--al-border);
  background: var(--al-card);
  color: var(--al-ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
}
header .language-selector .lang-btn .lang-code {
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
header .language-selector .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
}
header .language-selector .lang-more { position: relative; }
header .language-selector .lang-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--al-border);
  background: var(--al-card);
  color: var(--al-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  list-style: none;
}
header .language-selector .lang-more-toggle::-webkit-details-marker { display: none; }
header .language-selector .lang-more.is-active .lang-more-toggle,
header .language-selector .lang-more[open] .lang-more-toggle {
  background: rgba(255, 255, 255, 0.12);
}
header .language-selector .lang-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 12.5rem;
  padding: 6px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
header .language-selector .lang-more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--al-ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
header .language-selector .lang-more-item:hover,
header .language-selector .lang-more-item.is-active { background: rgba(255, 255, 255, 0.1); }
header .language-selector .lang-more-code {
  display: inline-flex;
  width: 1.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .72;
}
header .language-selector .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 24px auto;
  padding: 8px 24px 32px;
}

h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
h1 { margin-top: 0; }

.help-lead { max-width: 760px; color: var(--al-muted); font-size: 1.05rem; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.help-grid .product { margin: 0; }
.help-card p:last-child { margin-bottom: 0; }
.help-contact { margin-top: 24px; }
.help-crumb { color: var(--al-muted); margin: 0 0 8px; }
.help-crumb a { color: var(--al-muted); }
.help-api-block h3 { margin: 18px 0 8px; font-size: 1.02rem; }
.help-api-block .table-wrap { overflow-x: auto; }
.help-fig { margin: 14px 0 4px; }
.help-fig figcaption { color: var(--al-muted); font-size: .92rem; margin: 0 0 8px; }
.help-fig svg { width: 100%; height: auto; display: block; }
.help-api-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.help-api-table th, .help-api-table td { text-align: left; padding: 6px 12px 6px 0; vertical-align: top; }
.help-api-table thead th { color: var(--al-muted); font-weight: 600; border-bottom: 1px solid var(--al-border); }
.help-api-sample {
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--al-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: .88em;
}
.help-api-rules { margin: 8px 0 12px; padding-left: 1.2em; }
.help-api-rules li { margin: 0 0 8px; }
.faq-list { margin: 20px 0; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
}
.faq-item[open] summary { border-bottom: 1px solid var(--al-border); }
.faq-item > p { margin: 0; padding: 16px 18px 18px; color: var(--al-muted); }

.product {
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  background: rgba(31, 12, 24, 0.72);
}
.product h2, .product h3 { margin: 0 0 4px; font-size: 1.15em; }
.product h3 a { color: var(--al-ink); text-decoration: underline; text-underline-offset: 3px; }
.product h3 a:hover { color: #00D4E0; }
.product .slug { color: var(--al-muted); font-size: .85em; margin: 0 0 8px; }
.product table { width: 100%; border-collapse: collapse; font-size: .95em; }
.product table + table { margin-top: 16px; }
.product table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin: 0 0 6px;
}
.product tr.stock-placeholder td { color: var(--al-muted); }
.product th, .product td { text-align: left; padding: 4px 10px 4px 0; vertical-align: top; }
.product .muted, .muted { color: var(--al-muted); }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

@media (max-width: 720px) {
  .help-grid { grid-template-columns: 1fr; }
}

.icon-detail {
  color: var(--al-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .9em;
}
.icon-detail:hover { color: var(--al-ink); background: var(--al-card-hover); }

.chart { margin: 20px 0; width: 100%; min-width: 0; max-width: 100%; }
.chart figcaption { display: block; margin: 0 0 8px; width: 100%; max-width: 100%; }
.chart figcaption > strong { margin-right: 6px; }
.chart figcaption .hint {
  display: block;
  margin: 4px 0 0;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.metric-provenance {
  margin-top: 10px;
  border: 1px solid var(--al-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.metric-provenance summary {
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}
.metric-provenance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px;
  border-top: 1px solid var(--al-border);
}
.metric-provenance-grid div { min-width: 0; }
.metric-provenance-grid dt {
  color: var(--al-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.metric-provenance-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.metric-provenance > .hint,
.metric-provenance > p {
  margin: 0;
  padding: 0 10px 10px;
}
.metric-provenance-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px 28px;
  border-top: 1px solid var(--al-border);
}
.metric-provenance-sources li { overflow-wrap: anywhere; }
.provenance-warning { color: #f0b35a !important; }
.metric-freshness { color: var(--al-muted); }
.metric-freshness.is-current { color: #70d6a5; }
.metric-freshness.is-delayed,
.metric-freshness.is-stale { color: #f0b35a; }
.metric-freshness.is-never { color: #ef7f7f; }
.chart-quality-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chart-quality-alert {
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.chart-quality-alert.is-gap { color: #f0b35a; }
.chart-quality-alert.is-delay { color: #ef7f7f; }
.chart-gap-band {
  fill: #f0b35a;
  fill-opacity: .12;
  stroke: #f0b35a;
  stroke-opacity: .42;
  stroke-dasharray: 3 3;
}
.chart-delay-band {
  fill: #ef7f7f;
  fill-opacity: .1;
  stroke: #ef7f7f;
  stroke-opacity: .42;
  stroke-dasharray: 3 3;
}

@media (max-width: 720px) {
  .metric-provenance-grid,
  .metric-provenance-sources { grid-template-columns: 1fr; }
}
.chart-frame {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, auto) auto auto;
  column-gap: 4px;
  align-items: stretch;
  background: #1F0C18;
  border: 1px solid var(--al-border);
  border-radius: 8px;
  padding: 2px 6px 8px 8px;
}
.chart-y {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  min-width: 0;
  padding-right: 2px;
  align-self: stretch;
}
.chart-plot {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 640 / 260;
  align-self: start;
  display: block;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
}
.chart-x {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0;
  padding: 0 8px 2px 4px;
  list-style: none;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #B399AA;
}
.chart-x li:nth-child(2) { text-align: center; }
.chart-x li:last-child { text-align: right; }
.chart-video-marks {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: stretch;
  pointer-events: none;
  z-index: 3;
  min-height: 0;
}
.chart-video-mark {
  position: absolute;
  left: calc(100% * var(--mark-x) / 640);
  bottom: 6px;
  transform: translateX(-50%);
  pointer-events: auto;
  width: 14px;
  height: 14px;
}
.chart-video-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: #c23b3b;
  border: 1px solid #FDF8FB;
  box-shadow: none;
}
.chart-video-mark:focus {
  outline: 2px solid #c23b3b;
  outline-offset: 2px;
}
.chart-video-tip {
  display: none;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 14rem;
  max-width: 18rem;
  padding: 8px 10px;
  border-radius: 6px;
  background: #2a1222;
  border: 1px solid var(--al-border);
  color: #FDF8FB;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.chart-video-mark:hover .chart-video-tip,
.chart-video-mark:focus .chart-video-tip,
.chart-video-mark:focus-within .chart-video-tip {
  display: block;
}
.chart-video-tip-day {
  margin: 0 0 6px;
  font-weight: 600;
}
.chart-video-tip ul {
  margin: 0;
  padding: 0 0 0 1.1em;
}
.chart-video-tip li {
  margin: 0 0 4px;
}
.chart-video-tip a {
  color: #F4C4D8;
}
.chart-frame > .chart-legend {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 4px 0 0;
  padding: 6px 4px 0;
  color: #B399AA;
}
.chart-y li {
  position: absolute;
  right: 0;
  transform: translateY(-0.65em);
  white-space: nowrap;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #B399AA;
  line-height: 1;
}
.chart-y .chart-y-strut {
  position: static;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transform: none;
}
.chart-kpis { display: flex; gap: 24px; margin: 8px 0 0; flex-wrap: wrap; }
.dash-kpi-strip { margin: 16px 0; }
.dash-kpi-strip-lead { margin: 0 0 10px; }
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.dash-kpi-grid > div {
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(31, 12, 24, 0.72);
}
.dash-kpi-grid dt { color: var(--al-muted); font-size: .8em; letter-spacing: .02em; text-transform: uppercase; }
.dash-kpi-grid dd { margin: 6px 0 0; font-size: 1.45em; font-weight: 650; }
.dash-kpi-grid dd .muted { font-size: .55em; font-weight: 500; display: block; margin-top: 4px; }
@media (max-width: 720px) {
  .dash-kpi-grid { grid-template-columns: 1fr; }
}
.insights {
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  background: rgba(31, 12, 24, 0.72);
}
.mix-list { margin: 8px 0 0; padding-left: 18px; }
.export-links { margin: 12px 0 0; }
.watch-prefs { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 28px; }
.watch-prefs-list { margin: 8px 0 0; font-size: 1.05em; }
.watch-card {
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(31, 12, 24, 0.72);
}
.watch-card h2 { margin: 0 0 14px; font-size: 1.05em; }
.watch-form-grid,
.watch-compare-form {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(14rem, 1fr);
  gap: 10px 16px;
  align-items: end;
}
.watch-form-grid-bulk { grid-template-columns: minmax(14rem, 1fr) auto; }
.watch-form-grid label,
.watch-compare-form label,
.watch-compare-reason-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: .85em;
  color: var(--al-muted);
}
.watch-form-grid input,
.watch-form-grid select,
.watch-compare-form input,
.watch-compare-form select {
  width: 100%;
  box-sizing: border-box;
}
.watch-span-2 { grid-column: 1 / -1; }
.watch-form-actions { margin: 4px 0 0; }
.watch-listing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}
.watch-listing-id { margin: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.02em; word-break: break-all; }
.watch-listing-meta { margin: 4px 0 0; color: var(--al-muted); font-size: .85em; }
.watch-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
}
.watch-action-form { margin: 0; }
.watch-delete-hint { margin: 0 0 12px; }
.watch-listing.is-pending-delete { border-color: rgba(224, 122, 80, 0.55); }
button.watch-remove,
button.watch-pause,
button.watch-resume {
  background: transparent;
  color: var(--al-muted);
  box-shadow: none;
  border: 1px solid var(--al-border);
  font-weight: 600;
  padding: 6px 10px;
}
button.watch-remove:hover,
button.watch-pause:hover,
button.watch-resume:hover {
  background: var(--al-card-hover);
  color: var(--al-ink);
}
@media (max-width: 720px) {
  .watch-form-grid,
  .watch-compare-form,
  .watch-form-grid-bulk { grid-template-columns: 1fr; }
}
.watch-graphs, .watch-figures { margin: 28px 0; }
.watch-graphs { scroll-margin-top: 1.5rem; }
.watch-compare-chart { margin-top: 12px; }
.watch-compare-chart figcaption {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.watch-compare-why {
  margin: 0;
  color: var(--al-ink);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.12em;
  font-weight: 650;
  line-height: 1.3;
}
.watch-compare-why-label {
  display: block;
  margin: 0 0 2px;
  color: var(--al-muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.watch-compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}
.watch-compare-meta .hint { margin: 0; }
.watch-graph-item { margin: 24px 0; padding-top: 8px; border-top: 1px solid var(--al-border); }
.watch-vitality {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}
.watch-vitality-card {
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(31, 12, 24, 0.72);
}
.watch-vitality-card.is-stale { border-color: rgba(224, 122, 80, 0.55); }
.watch-vitality-card h4 { margin: 0 0 8px; font-size: .95em; }
.watch-vitality-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: .9em;
}
.watch-vitality-card dt { color: var(--al-muted); }
.watch-vitality-card dd { margin: 0; }
.watch-vitality-card .hint { margin: 8px 0 0; }
.chart-kpis dt { color: var(--al-muted); font-size: .85em; }
.chart-kpis dd { margin: 0; font-weight: 600; }
.chart-table-wrap {
  max-height: 280px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--al-border);
  border-radius: 12px;
  background: rgba(31, 12, 24, 0.72);
}
.chart-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.chart-table caption { text-align: left; color: var(--al-muted); margin: 0 0 6px; }
.chart-table th, .chart-table td {
  text-align: left;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid var(--al-border);
}
.chart-table tr.version-change td { background: rgba(232, 122, 56, 0.12); }
.chart-table tr.version-jump-skip td { background: rgba(232, 168, 74, 0.14); }
.chart-table tr.version-jump-back td { background: rgba(139, 52, 90, 0.28); }

.ranges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ranges strong {
  background: var(--al-accent);
  color: #190914;
  padding: 4px 10px;
  border-radius: 999px;
}
.ranges .is-locked {
  color: var(--al-muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--al-border);
}

.flash { padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; }
.flash-ok { background: rgba(61, 122, 90, 0.28); border: 1px solid rgba(61, 122, 90, 0.45); }
.flash-warn { background: rgba(232, 122, 56, 0.22); border: 1px solid rgba(232, 122, 56, 0.5); }
.flash-error { background: rgba(139, 52, 90, 0.35); border: 1px solid rgba(232, 122, 56, 0.35); }

label { display: block; margin: 12px 0 4px; }
input, button, select, textarea { font: inherit; padding: 8px 10px; }
input[type="email"],
input[type="text"],
input[type="password"],
input:not([type]),
input[inputmode],
select,
textarea {
  background: #1F0C18;
  color: var(--al-ink);
  border: 1px solid var(--al-border);
  border-radius: 8px;
}
button,
button[type="submit"] {
  background: var(--al-accent);
  color: #190914;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--al-accent-glow);
}
button:hover { background: var(--al-accent-hover); }

a.btn-primary {
  display: inline-block;
  background: var(--al-accent);
  color: #190914;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: 0 4px 16px var(--al-accent-glow);
}
a.btn-primary:hover { background: var(--al-accent-hover); color: #190914; }

a.btn-ghost {
  display: inline-block;
  color: var(--al-ink);
  border: 1px solid var(--al-border);
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 16px;
}
a.btn-ghost:hover { border-color: var(--al-accent); color: var(--al-accent); }

.al-claim-card {
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 18px;
}
.al-claim-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.al-claim-steps { margin: 0; padding-left: 1.2rem; line-height: 1.55; }
.al-claim-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 0; align-items: center; }
.al-claim-form input[type="text"],
.al-claim-form select { width: min(28rem, 100%); }

fieldset.switch-group {
  border: 1px solid var(--al-border);
  border-radius: 8px;
  margin: 20px 0;
  padding: 12px 16px;
}
.switch-row { margin: 12px 0; }
.switch-row .state { color: var(--al-muted); font-size: .9em; }
.switch-cost-wrap { overflow-x: auto; }
.switch-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
}
.switch-cost-table th,
.switch-cost-table td {
  vertical-align: top;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--al-border);
  font-size: .9em;
}
.switch-cost-table thead th {
  color: var(--al-muted);
  font-weight: 600;
  font-size: .8em;
  letter-spacing: .02em;
}
.switch-cost-table tbody th {
  font-weight: 500;
  min-width: 12rem;
}
.switch-cost-table td.cost {
  color: var(--al-muted);
  max-width: 22rem;
}
.switch-cost-table .hint { margin: 4px 0 0; }
.hint { color: var(--al-muted); margin: 4px 0 0; font-size: .9em; }
.consent-need { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid var(--al-border); border-radius: 10px; background: var(--al-card); }
.consent-need .hint { margin: 0; }
.consent-need-actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent-need-actions button { font: inherit; cursor: pointer; border-radius: 999px; border: 0; padding: .4rem 1rem; font-weight: 650; background: linear-gradient(135deg, #E87A38, #F2965A); color: #190914; }
.consent-need-actions a { color: var(--al-accent); }
.login-back-www { margin: 0 0 1.25rem; font-size: 1rem; }
.login-back-www a { color: var(--al-accent); font-weight: 600; }
.tabs { display: flex; gap: 16px; flex-wrap: wrap; }
/* panel cards + jump nav (overview v0.3) */
.dash-filter { margin: 8px 0 20px; }
.dash-filter-kind { color: var(--al-muted); font-size: .9em; margin: 8px 0 0; }
.dash-panel-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.dash-panel-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--al-border);
  color: var(--al-ink);
  text-decoration: none;
  font-size: .9em;
  background: #1F0C18;
}
.dash-panel-nav a:hover { background: var(--al-card-hover); color: var(--al-ink); }
.dash-panel-nav a.is-active {
  background: var(--al-accent);
  color: #190914;
  border-color: var(--al-accent);
}
.dash-panel-nav-lead { margin: 8px 0 0; }
.dash-platform-toggles-lead { margin: 14px 0 0; }
.dash-platform-toggles { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.dash-platform-toggles a {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--al-border);
  color: var(--al-ink);
  text-decoration: none;
  font-size: .9em;
  background: #1F0C18;
}
.dash-platform-toggles a:hover { background: var(--al-card-hover); color: var(--al-ink); }
.dash-platform-toggles a.is-on {
  background: var(--al-accent);
  color: #190914;
  border-color: var(--al-accent);
}
.dash-platform-toggles a.is-off {
  opacity: .5;
  text-decoration: line-through;
}
.dash-panel {
  margin: 16px 0;
  padding: 0;
  scroll-margin-top: 72px;
}
.dash-panel > h2 { margin: 0 0 8px; }
.dash-help-block { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--al-border); scroll-margin-top: 80px; }
.dash-help-block:first-of-type { border-top: 0; padding-top: 8px; }
.dash-help-block h3 { margin: 0 0 6px; font-size: 1.05em; }
.dash-help-block p { margin: 0; color: var(--al-muted); }
.th-help { text-align: center; }
.help-q-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.help-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  border: 1px solid var(--al-accent);
  color: var(--al-accent);
  text-decoration: none;
  font-size: .72em;
  font-weight: 700;
  line-height: 1;
}
.help-q:hover { background: var(--al-accent); color: #190914; }
.chart-table .lift-thin { color: var(--al-muted); }
.chart-table .lift-ok { color: #7dcea0; }
.chart-table .lift-watch { color: #e0a84a; }
.chart-table .lift-critical { color: #e07a50; font-weight: 600; }
.figures-source {
  margin: 16px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--al-border);
  border-radius: 12px;
  background: rgba(31, 12, 24, 0.72);
}
.figures-source h3 { margin: 0 0 8px; font-size: 1.05em; }
.figures-table { width: 100%; border-collapse: collapse; }
.figures-table th, .figures-table td {
  text-align: left;
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--al-border);
}
.figures-table .figures-raw { font-variant-numeric: tabular-nums; }
.figures-table tfoot th, .figures-table tfoot td { border-bottom: 0; padding-top: 10px; }
.figures-compact { color: var(--al-muted); font-weight: 400; font-size: .9em; }
.figures-table th[title] { cursor: help; }
.fetch-log-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }
.fetch-log-filter label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; color: var(--al-muted); }
.fetch-log-table tr.is-operator td { background: rgba(224, 122, 80, 0.12); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; font-size: .95em; }
.pager a { text-decoration: none; }
.videos-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.videos-pick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--al-border);
  border-radius: 10px;
}
.videos-pick-card.is-tracked { box-shadow: inset 0 0 0 2px var(--al-accent); }
.videos-pick-thumb { position: relative; display: block; }
.videos-pick-thumb input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--al-accent);
  cursor: pointer;
}
.videos-pick-thumb img { display: block; width: 100%; height: auto; border-radius: 8px; background: #190914; }
.videos-stock { display: grid; gap: 8px; margin: 10px 0 20px; }
.videos-stock p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--al-border);
  border-radius: 8px;
}
.videos-key-form { display: flex; flex-direction: column; gap: 8px; max-width: 28rem; }
.videos-key-actions { margin-top: 4px; }
.videos-key-clear { margin-top: 10px; }
.videos-prefs button.watch-remove {
  background: transparent;
  color: var(--al-muted);
  box-shadow: none;
  border: 1px solid var(--al-border);
  font-weight: 600;
}
.videos-prefs button.watch-remove:hover {
  background: var(--al-card-hover);
  color: var(--al-ink);
}
.videos-account-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 1.2rem;
}
.videos-account-filter-label { margin: 0; font-weight: 600; }
.videos-account-filter-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.videos-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--al-border);
  border-radius: 999px;
}
.figures-star { font-size: .75em; margin-left: 2px; }
.lane-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.lane-tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--al-border);
  color: var(--al-ink);
  text-decoration: none;
  font-size: .9em;
  background: #1F0C18;
}
.lane-tab:hover { background: var(--al-card-hover); color: var(--al-ink); }
.lane-tab.active { background: var(--al-accent); color: #190914; border-color: var(--al-accent); }

.overview { margin: 8px 0 28px; }
.overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9em;
}
.overview-legend .swatch,
.chart-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .7em;
  color: var(--al-muted);
}
.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}
.chart-legend-n {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
  font-weight: 600;
  color: var(--al-ink);
  white-space: nowrap;
}
.chart-legend .swatch-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 1px;
}
.chart-legend .swatch-line {
  display: inline-block;
  width: 16px;
  height: 0;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 1.5px solid currentColor;
}
.chart-legend .swatch-dash {
  display: inline-block;
  width: 0;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  border-left: 1.5px dashed currentColor;
}
.overview-chart { margin: 16px 0; }
.distribution-chart { margin: 8px 0 20px; }
.distribution-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.distribution-legend { margin: 0 0 8px; }
.distribution-legend a { color: var(--al-ink); text-decoration: underline; text-underline-offset: 2px; }
.distribution-legend a:hover { color: #00D4E0; }
.distribution-cap { margin: 10px 0 0; }
.legal-note { border: 1px solid var(--al-border); border-radius: 8px; padding: 16px; }
.compare-official { border: 1px solid var(--al-border); border-radius: 8px; padding: 12px 16px; margin: 12px 0 0; }
.compare-official h3 { margin: 0 0 8px; font-size: 1em; }
.compare-note { color: var(--al-muted); font-size: .9em; margin: 8px 0 0; }
.chart-donut, .chart-mix-bars { margin: 16px 0 24px; }
.donut-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.donut-plot { width: 160px; height: 160px; flex: 0 0 160px; }
.donut-legend { margin: 0; }
.mix-bars { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mix-bar-label { display: block; font-size: .9em; margin-bottom: 4px; }
.mix-bar-track { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mix-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--al-accent); }
.mix-bar-fill.is-unknown { background: rgba(255, 255, 255, 0.22); }
.zebra-lens .lens-axis-nav { margin: 8px 0 12px; }
.zebra-lens .mix-bars a { color: inherit; text-decoration: none; display: block; }
.zebra-lens-filter { margin: 0 0 10px; }

dialog.beacon-dialog {
  width: min(560px, 92vw);
  border: 1px solid var(--al-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--al-card);
  color: var(--al-ink);
}
dialog.beacon-dialog textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .85em; }

/* Footer chrome is site-footer.css (identical to theme footer.css). Host gap only. */
body > footer.site-footer {
  margin-top: 24px;
}

@media (max-width: 640px) {
  header.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand langs"
      "nav nav";
    gap: 8px 10px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .brand { grid-area: brand; min-width: 0; }
  .brand-text { display: none; }
  .brand-logo { height: 32px; }
  header .language-selector {
    grid-area: langs;
    margin-left: 0;
  }
  header .language-selector .lang-btn .flag { display: none; }
  header .language-selector .lang-btn .lang-code { display: inline; }
  header .language-selector .lang-more-menu {
    max-height: min(60vh, 22rem);
    overflow: auto;
  }
  .navlinks {
    grid-area: nav;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .navlinks a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  main { margin: 16px 12px; padding: 18px 16px; }
  .login-back-www {
    margin: 0 0 1rem;
  }
  .login-back-www a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.videos-source-links a { margin-right: .15em; }
.videos-country-bars { display: flex; flex-direction: column; gap: 8px; max-width: 40rem; margin: 8px 0 20px; }
.videos-country-row { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 8px; align-items: center; }
.videos-country-code { font-variant-numeric: tabular-nums; color: var(--al-muted); font-size: .85em; }
.videos-country-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.videos-country-fill { display: block; height: 100%; background: var(--al-accent); border-radius: 99px; }
.videos-country-n { font-variant-numeric: tabular-nums; font-size: .85em; }
.videos-table .muted { font-size: .85em; }
.correction-request { margin-top: 18px; }
.correction-request + .metric-provenance { margin-top: -10px; margin-bottom: 18px; }
.correction-events { display: grid; gap: 10px; padding-left: 22px; }
.correction-actions { display: grid; gap: 14px; margin: 14px 0 8px; }
.correction-actions form { padding: 12px; border: 1px solid var(--al-line); border-radius: 10px; }
.correction-actions textarea,
.correction-request textarea { min-height: 7rem; }

