:root {
  --abyss: #0b1626;
  --deep: #0e1c30;
  --panel: #112137;
  --panel-2: #162943;
  --raise: #1b3150;
  --line: #233a5a;
  --line-soft: rgba(236, 230, 216, 0.08);
  --text: #ece6d8;
  --muted: #94a1b5;
  --faint: #67778f;
  --brass: #d4ae63;
  --brass-soft: rgba(212, 174, 99, 0.14);
  --demand: #3fd39a;
  --pred: #a88bfa;
  --ads: #f2994a;
  --infl: #4ea8f5;
  --news: #ef5b5b;
  --warn: #f2b66b;
  --danger: #ef5b5b;
  --ok: #3fd39a;
  --sans:
    "IBM Plex Sans", "IBM Plex Sans Arabic", Inter, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --serif: "Spectral", "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --r-s: 4px;
  --r-m: 8px;
  color-scheme: dark;
}
html[dir="rtl"] {
  --sans: "IBM Plex Sans Arabic", "IBM Plex Sans", Inter, system-ui, sans-serif;
  --serif: "IBM Plex Sans Arabic", "Spectral", serif;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  background: var(--abyss);
  color: var(--text);
  font: 400 14px/1.5 var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
code {
  font:
    500 11.5px/1.3 IBM Plex Mono,
    ui-monospace,
    monospace;
  color: var(--muted);
  background: #ece6d80d;
  padding: 1px 5px;
  border-radius: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  /* visually hidden without an off-screen offset: a -999px inline offset becomes a right-hand
     overflow in RTL and produced sideways scrolling in Arabic (DEF-AR-01) */
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  inset-inline-start: 8px;
  top: 8px;
  z-index: 99;
  background: var(--brass);
  color: #111;
  padding: 6px 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.warn {
  color: var(--warn);
}
.ok {
  color: var(--ok);
}
.num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.app {
  padding-block-end: var(--server-banner-inset, 0px);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: 62px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(
    1200px 800px at 55% 45%,
    #10233b 0%,
    var(--abyss) 70%
  );
}
.top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #0b1626d9;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.brand__name {
  font: 500 19px/1 var(--serif);
  letter-spacing: 0.01em;
}
.brand__tag {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}
.top__filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  color: var(--muted);
  background: var(--deep);
}
.search kbd {
  margin-inline-start: auto;
  font: 500 11px var(--sans);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}
.dd {
  position: relative;
}
.dd__btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--deep);
  color: var(--text);
}
.dd__menu {
  position: absolute;
  top: 40px;
  inset-inline-start: 0;
  z-index: 20;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 18px 40px #00000073;
}
.dd__opt {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 4px;
}
.dd__opt:hover {
  background: var(--raise);
}
.top__status {
  display: flex;
  align-items: center;
  gap: 14px;
}
.synth {
  font-size: 11.5px;
  color: var(--brass);
  border: 1px solid rgba(212, 174, 99, 0.5);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.snap {
  font-size: 12px;
  line-height: 1.25;
  text-align: end;
}
.snap__sub {
  color: var(--muted);
  font-size: 11px;
}
.lang {
  height: 32px;
  min-width: 52px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  font-family: "IBM Plex Sans Arabic", var(--sans);
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border-inline-end: 1px solid var(--line);
  background: #0b162699;
}
.rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
  border-radius: var(--r-m);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
}
.rail__item svg {
  font-size: 19px;
}
.rail__item:hover {
  color: var(--text);
  background: #ece6d80a;
}
.rail__item.is-on {
  color: var(--brass);
  background: var(--brass-soft);
}
.main {
  scroll-padding-block: 8px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.app[data-view="globe"] .main {
  overflow: hidden;
}
.cc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  height: 100%;
}
.cc__stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.cc__modes {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  display: flex;
  background: #0e1c30d9;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.cc__modes button {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 12.5px;
}
.cc__modes button.is-on {
  background: var(--raise);
  color: var(--text);
}
.cc__side {
  border-inline-start: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--deep) 100%);
  overflow: auto;
  min-height: 0;
}
.globe {
  position: relative;
  min-height: 0;
  overflow: hidden;
  outline: none;
}
.globe:focus-visible {
  box-shadow: inset 0 0 0 2px var(--brass);
}
.globe__canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}
.globe__canvas:active {
  cursor: grabbing;
}
.globe__legend {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: #0e1c30d1;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 10px 8px;
  width: 196px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.legend__title {
  font: 500 15px var(--serif);
  margin: 0 4px 6px;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 8px);
}
.globe__legend.is-closed {
  width: auto;
  padding: 6px 10px;
}
.globe__legend.is-closed .legend__title {
  margin: 0;
  gap: 10px;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: start;
}
.legend__item.is-on {
  color: var(--text);
}
.legend__item:not(.is-on) .legend__swatch {
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px var(--faint);
}
.legend__item:hover {
  background: #ece6d80d;
}
.legend__swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.legend__lines,
.legend__hatch {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding: 7px 4px 2px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.9;
}
.line {
  display: inline-block;
  width: 22px;
  height: 0;
  vertical-align: middle;
  margin-inline-end: 6px;
  border-top: 2px solid var(--brass);
}
.line--mod {
  border-top: 1.5px dashed rgba(236, 230, 216, 0.7);
}
.line--proj {
  border-top: 2px dotted var(--pred);
}
.line--flow {
  border-top: 1.5px solid rgba(236, 230, 216, 0.45);
}
.hatch {
  display: inline-block;
  width: 16px;
  height: 11px;
  vertical-align: middle;
  margin-inline-end: 6px;
  background: repeating-linear-gradient(
    135deg,
    #16283f 0 3px,
    #ece6d82e 3px 4px
  );
  border: 1px solid var(--line);
}
.globe__controls {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.globe__controls button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: #0e1c30d9;
}
.globe__controls button:hover {
  border-color: var(--brass);
}
.globe__readout {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 14px;
  font-size: 11.5px;
  color: var(--muted);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.readout__warn {
  color: var(--warn);
}
.globe__note {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translate(-50%);
  background: #0e1c30eb;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 6px 12px;
  font-size: 12.5px;
  z-index: 2;
}
.hovercard {
  position: absolute;
  z-index: 4;
  width: 300px;
  pointer-events: none;
  background: #112137f5;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 12px;
  box-shadow: 0 16px 36px #00000073;
}
.hovercard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hovercard__head strong {
  font: 500 16px var(--serif);
}
.hovercard__row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 2px 6px;
  align-items: center;
  font-size: 12.5px;
  margin: 3px 0;
}
.hovercard__unit {
  grid-column: 2 / -1;
  color: var(--faint);
  font-size: 11px;
}
.hovercard__v {
  font-weight: 600;
}
.hovercard__list {
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 6px;
  font-size: 12.5px;
}
.hovercard__list em {
  color: var(--muted);
  font-style: normal;
  font-size: 11.5px;
}
.hovercard__fresh,
.hovercard__gap {
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.globe--compact .globe__legend {
  transform: scale(0.92);
  transform-origin: top left;
}
.cov {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.cov--operational {
  color: #7fd8b4;
}
.cov--limited {
  color: #9fc4e8;
}
.cov--degraded {
  color: var(--warn);
}
.cov--suspended {
  color: #f08b8b;
}
.cov--onboarding {
  color: #c3b6f2;
}
.cov--unsupported {
  color: var(--faint);
}
.tm {
  border-top: 1px solid var(--line);
  background: #0e1c30eb;
  padding: 10px 18px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 20px;
  align-items: center;
}
.tm__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm__play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  display: grid;
  place-items: center;
}
.tm__play:hover {
  background: var(--brass-soft);
}
.tm__day {
  font: 500 16px var(--serif);
  white-space: nowrap;
}
.tm__sub {
  font-size: 11px;
  color: var(--muted);
}
.tm__speed {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}
.tm__speed button {
  padding: 2px 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.tm__speed button.is-on {
  background: var(--raise);
  color: var(--text);
}
.tm__now {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  color: var(--brass);
  white-space: nowrap;
}
.tm__track {
  position: relative;
  height: 64px;
  cursor: pointer;
  touch-action: none;
}
html[dir="rtl"] .tm__svg {
  transform: scaleX(-1);
}
.tm__svg {
  position: absolute;
  inset: 0 0 18px;
  width: 100%;
  height: calc(100% - 4px);
}
.tm__labels {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 14px;
  font-size: 10.5px;
  color: var(--faint);
}
.tm__labels span {
  position: absolute;
  transform: translate(-50%);
  white-space: nowrap;
}
html[dir="rtl"] .tm__labels span {
  transform: translate(50%);
}
.tm__labels .tm__asof {
  color: var(--brass);
  bottom: 50px;
  font-weight: 600;
  transform: translate(calc(-100% - 6px));
}
html[dir="rtl"] .tm__labels .tm__asof {
  transform: translate(calc(100% + 6px));
}
.tm__labels .tm__fc {
  color: var(--pred);
  bottom: 50px;
  transform: none;
}
.tm__thumb {
  position: absolute;
  top: -2px;
  width: 12px;
  height: 12px;
  margin-inline-start: -6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px #ece6d826;
  pointer-events: none;
}
.opps__head {
  padding: 18px 18px 10px;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
  border-bottom: 1px solid var(--line-soft);
}
.opps__head h2 {
  font: 500 24px/1.1 var(--serif);
  margin: 0;
}
.opps__scope {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.opps__lanehelp {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.seg button {
  flex: 1;
  padding: 6px 4px;
  font-size: 12.5px;
  color: var(--muted);
  border-inline-end: 1px solid var(--line);
}
.seg button:last-child {
  border-inline-end: 0;
}
.seg button.is-on {
  background: var(--raise);
  color: var(--text);
}
.seg__n {
  color: var(--faint);
  margin-inline-start: 3px;
}
.opps__list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 20px;
}
.opp {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  text-align: start;
  padding: 11px 10px;
  border-radius: var(--r-m);
}
.opp:hover {
  background: #ece6d80a;
}
.opp__rank {
  font: 400 20px/1 var(--serif);
  color: var(--faint);
  padding-top: 2px;
}
.opp__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.opp__name {
  font: 500 15.5px/1.25 var(--serif);
}
.opp__star {
  color: var(--brass);
  margin-inline-start: 6px;
  font-size: 12px;
}
.opp__meta {
  font-size: 12px;
  color: var(--muted);
}
.opp__row2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 3px;
}
.opp__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.opp__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.opp__scorebar {
  width: 96px;
  height: 3px;
  background: #ece6d81a;
  border-radius: 2px;
  overflow: hidden;
}
.opp__scorebar i {
  display: block;
  height: 100%;
  background: var(--brass);
}
.opp__noscore {
  color: var(--faint);
}
.opp__growth {
  color: var(--faint);
  white-space: nowrap;
}
.opp__reason {
  font-size: 11.5px;
  color: var(--faint);
  padding: 0 12px 8px 46px;
  margin-top: -4px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  white-space: nowrap;
}
.state--stale {
  border: 1px dashed var(--c);
  background: none;
}
.fams {
  display: inline-flex;
  gap: 3px;
  flex-wrap: wrap;
}
.fam {
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 3px;
  background: #ece6d80f;
  color: var(--muted);
}
.fam--tv,
.fam--news {
  color: #f59a9a;
}
.fam--advertising {
  color: #f6b37a;
}
.fam--social {
  color: #8cc6f8;
}
.fam--search,
.fam--commerce {
  color: #7fd8b4;
}
.spark {
  display: block;
}
.prov {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 3px;
  vertical-align: 1px;
  white-space: nowrap;
}
.prov--observed {
  color: #7fd8b4;
  background: #3fd39a1a;
}
.prov--estimate {
  color: #9fc4e8;
  background: #4ea8f51a;
}
.prov--forecast {
  color: #c3b2fb;
  background: #a88bfa24;
}
.prov--missing,
.prov--withheld {
  color: var(--faint);
  border: 1px dashed var(--faint);
}
.empty {
  padding: 28px 22px;
  color: var(--muted);
}
.empty__title {
  font: 500 17px var(--serif);
  color: var(--text);
  margin-bottom: 6px;
}
.pp {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.pp__head {
  padding: 14px 18px 12px;
  position: relative;
}
.pp__titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pp__actions {
  display: flex;
  gap: 6px;
}
.pp__glyph {
  position: absolute;
  inset-inline-end: 18px;
  top: 58px;
  font: italic 400 46px/1 var(--serif);
  color: #d4ae6338;
}
.pp__name {
  font: 500 27px/1.12 var(--serif);
  margin: 0;
  max-width: 85%;
}
.pp__sub {
  color: var(--muted);
  font-size: 12.5px;
  margin: 6px 0 10px;
}
.pp__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip.is-on {
  border-color: var(--brass);
  color: var(--text);
  background: var(--brass-soft);
}
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--muted));
}
.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  scrollbar-width: none;
}
.tabs button {
  padding: 9px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button.is-on {
  color: var(--text);
  border-bottom-color: var(--brass);
}
.pp__body {
  padding: 14px 18px 18px;
  flex: 1;
}
.pp__trace {
  border-top: 1px solid var(--line);
  padding: 12px 18px 16px;
  background: #d4ae630d;
}
.pp__tracehead {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.pp__tracehead strong {
  color: var(--brass);
  font: 500 14px var(--serif);
}
.pp__tracestats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.pp__tracestats b {
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-m);
  background: var(--raise);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.btn:hover {
  border-color: var(--brass);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
}
.btn--on {
  border-color: var(--brass);
  color: var(--brass);
  background: var(--brass-soft);
}
.btn--brass {
  background: var(--brass);
  color: #1a1408;
  border-color: var(--brass);
  font-weight: 600;
}
.btn--small {
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
}
.banner {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: var(--r-m);
  padding: 9px 12px;
  font-size: 12.5px;
  margin: 8px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.banner--danger {
  border-color: #ef5b5b80;
  background: #ef5b5b14;
  color: #f6b4b4;
}
.ov__chart {
  background: #ece6d806;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 10px 10px 6px;
}
.ov__chartlabel {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ov__axis {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--faint);
}
.ov__state {
  margin: 12px 0;
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
}
.metric {
  background: var(--panel);
  padding: 9px 11px;
}
.metric__label {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.metric__value {
  font: 500 21px/1.3 var(--serif);
}
.metric__hint {
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.3;
}
.ov__fams {
  margin: 12px 0;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.explain {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.explain h3,
.calc h3,
.calc h2 {
  font: 500 16px var(--serif);
  margin: 12px 0 6px;
}
.explain__note {
  font-size: 11.5px;
  color: var(--faint);
  margin: 0 0 8px;
}
.explain p {
  font-size: 12.5px;
  margin: 0 0 8px;
  line-height: 1.55;
}
.tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-inline-end: 4px;
  text-transform: capitalize;
}
.tag--observed {
  color: #7fd8b4;
  background: #3fd39a1a;
}
.tag--inferred {
  color: #9fc4e8;
  background: #4ea8f51a;
}
.tag--forecast {
  color: #c3b2fb;
  background: #a88bfa24;
}
.evi {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 9px 11px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.evi header {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.evi p {
  margin: 6px 0;
}
.evi dl,
.kv {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 2px 10px;
  margin: 0;
  font-size: 12px;
}
.evi dt,
.kv dt {
  color: var(--faint);
}
.evi dd,
.kv dd {
  margin: 0;
}
.synthetic {
  font-size: 10px;
  color: var(--brass);
  border: 1px solid rgba(212, 174, 99, 0.4);
  border-radius: 3px;
  padding: 0 5px;
}
.media__filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.media__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 1px solid var(--line);
}
.media__list li {
  position: relative;
  padding: 0 0 12px 14px;
  font-size: 12.5px;
}
.media__list li:before {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--news);
}
.media__list li.is-neg:before {
  background: none;
  border: 2px solid var(--news);
}
.media__when {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.media__title {
  margin: 2px 0;
}
.fc__big {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.fc__p {
  font: 500 38px/1 var(--serif);
  color: var(--pred);
}
.offer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.offer.is-expired {
  opacity: 0.6;
}
.offer__right {
  text-align: end;
}
.sup .btn {
  margin-top: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field textarea,
.field select,
.filters select,
.review__act input,
.rule input,
.rule select {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 6px 8px;
  color: var(--text);
}
.field--inline {
  flex-direction: column;
}
.dec__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}
.dec__list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 12.5px;
}
.dec__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: start;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  white-space: nowrap;
}
.tbl th.num {
  text-align: end;
}
.supply .tbl td:nth-child(3) {
  white-space: nowrap;
}
.tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.tbl--tight td,
.tbl--tight th {
  padding: 6px;
}
.tbl__click {
  cursor: pointer;
}
.tbl__click:hover td {
  background: #ece6d808;
}
.tbl tr.is-sel td {
  background: var(--brass-soft);
}
.tbl tr.is-dim td {
  opacity: 0.6;
}
.mlist {
  overflow: auto;
  padding: 60px 16px 16px;
}
.page {
  padding: 26px 30px 60px;
  max-width: 1500px;
}
.page__head h1,
.trace__title {
  font: 500 34px/1.1 var(--serif);
  margin: 0 0 8px;
}
.page__lede {
  color: var(--muted);
  max-width: 76ch;
  margin: 0 0 16px;
}
.h2 {
  font: 500 20px var(--serif);
  margin: 26px 0 10px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}
.page__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.page__split--even {
  grid-template-columns: 1fr 1fr;
}
.covbar {
  display: flex;
  gap: 3px;
  margin: 6px 0 16px;
  height: 46px;
}
.covbar__seg {
  flex-basis: 96px !important;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  text-align: start;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.covbar__seg.is-on {
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.covbar__seg span {
  color: var(--text);
}
.mkt {
  position: sticky;
  top: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px;
}
.mkt h2 {
  font: 500 24px var(--serif);
  margin: 0 0 6px;
}
.mkt h3 {
  font: 500 15px var(--serif);
  margin: 16px 0 6px;
}
.mini {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mini li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.mini li button:first-child {
  text-align: start;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.srcgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.src {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
}
.src header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.src--stale {
  border-color: #f2b66b99;
}
.src--suspended {
  opacity: 0.75;
}
.kv--tight {
  grid-template-columns: 90px 1fr;
}
.pill {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  height: fit-content;
  white-space: nowrap;
}
.pill--healthy,
.pill--fixture {
  color: #7fd8b4;
  background: #3fd39a1a;
}
.pill--fixture {
  color: var(--brass);
  background: var(--brass-soft);
}
.pill--lagging,
.pill--stale {
  color: var(--warn);
  background: #f2b66b1f;
}
.pill--suspended {
  color: #f08b8b;
  background: #ef5b5b1a;
}
.matrix-wrap {
  overflow: auto;
}
.tbl--matrix td.mx {
  text-align: center;
  color: var(--faint);
}
.tbl--matrix td.mx--on {
  color: var(--demand);
}
.tbl--matrix td.mx--warn {
  color: var(--warn);
  font-weight: 700;
}
.rule {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px;
  margin-bottom: 10px;
}
.rule__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.row {
  display: flex;
  gap: 6px;
}
.alerts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.alerts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 14px;
  margin-bottom: 12px;
}
.review__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 10px 0;
}
.review__pair strong {
  font: 500 16px var(--serif);
}
.review__sim {
  color: var(--brass);
  font-size: 12.5px;
}
.review__conf {
  margin: 4px 0;
  padding-inline-start: 18px;
  color: var(--warn);
  font-size: 12.5px;
}
.review__act {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.review__act input {
  flex: 1;
}
.supply__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}
.calc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 4px 16px 16px;
  position: sticky;
  top: 10px;
}
.calc__big {
  font: 500 30px var(--serif);
  display: flex;
  gap: 10px;
  align-items: center;
}
.calc__reasons {
  color: var(--warn);
  font-size: 12.5px;
  padding-inline-start: 18px;
}
.calc__margin {
  font: 500 18px var(--serif);
}
.calc__assume summary {
  cursor: pointer;
  color: var(--brass);
  font-size: 12.5px;
  margin: 10px 0;
}
.calc__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rfq {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font:
    12px/1.5 IBM Plex Mono,
    ui-monospace,
    monospace;
  padding: 8px;
}
.tw__bar {
  position: relative;
  display: flex;
  height: 14px;
  background: #ece6d80f;
  border-radius: 3px;
  margin: 8px 0 18px;
}
.tw__bar i {
  display: block;
  height: 100%;
}
.tw__dec {
  background: #8e9bb0;
}
.tw__del {
  background: var(--ads);
}
.tw__buf {
  background: #c9c2b0;
}
.tw__useful {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--pred);
}
.tw__useful:after {
  content: "useful interest";
  position: absolute;
  top: 22px;
  font-size: 10.5px;
  color: var(--pred);
  white-space: nowrap;
  transform: translate(-50%);
}
.trace {
  display: grid;
  grid-template-rows: auto minmax(460px, 62vh) auto auto;
  min-height: 100%;
}
.trace__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 26px 12px;
}
.trace__pick select {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 4px 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.trace__sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.trace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 0;
}
.trace__globe {
  position: relative;
  min-height: 0;
  display: grid;
}
.ledger {
  border-inline-start: 1px solid var(--line);
  overflow: auto;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--panel), var(--deep));
}
.ledger__first {
  border: 1px solid rgba(212, 174, 99, 0.35);
  background: var(--brass-soft);
  border-radius: var(--r-m);
  padding: 12px 14px;
}
.ledger__kicker {
  font-size: 12px;
  color: var(--brass);
}
.ledger__firstname {
  font: 500 28px/1.15 var(--serif);
}
.ledger__firstwhen {
  font-size: 12.5px;
  margin-top: 2px;
}
.ledger__caveat {
  font-size: 11.5px;
  color: var(--muted);
  margin: 8px 0 0;
}
.ledger__h {
  font: 500 17px var(--serif);
  margin: 18px 0 8px;
}
.ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.ledger__list:before {
  content: "";
  position: absolute;
  inset-inline-start: 13px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(var(--brass), rgba(212, 174, 99, 0.15));
}
.ledger__list li.is-future {
  opacity: 0.38;
}
.ledger__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  width: 100%;
  text-align: start;
  padding: 7px 4px;
  border-radius: var(--r-m);
}
.ledger__item:hover {
  background: #ece6d80a;
}
.ledger__n {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--deep);
  display: grid;
  place-items: center;
  font: 500 13px var(--serif);
  color: var(--brass);
  position: relative;
}
.ledger__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ledger__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ledger__row strong {
  font: 500 15.5px var(--serif);
}
.ledger__date {
  font-size: 12px;
  color: var(--muted);
}
.ledger__date em {
  font-style: normal;
  color: var(--brass);
  margin-inline-start: 6px;
}
.ledger__media {
  font-size: 11.5px;
  color: #f2a3a3;
}
.ledger__ev {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ledger__ev code {
  font-size: 10px;
}
.ledger__proj {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ledger__proj li button {
  text-align: start;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(168, 139, 250, 0.4);
  width: 100%;
}
.ledger__proj strong {
  color: #c3b2fb;
  font: 500 14px var(--serif);
}
.ledger__foot {
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  margin-top: 14px;
}
.trace__lane {
  padding: 4px 26px 10px;
  overflow-x: auto;
}
.trace__tm {
  border-bottom: 1px solid var(--line);
}
.trace__tm .tm {
  border-top: 0;
}
.swim svg {
  display: block;
}
.swim__axis {
  font-size: 10px;
  fill: var(--faint);
}
.swim__order {
  font: 500 13px var(--serif);
  fill: var(--brass);
}
.swim__mkt {
  font: 500 13px var(--sans);
  fill: var(--text);
}
.swim__lag {
  font-size: 10.5px;
  fill: var(--muted);
}
.swim__state {
  font-size: 12px;
  font-weight: 600;
}
.swim__row.is-hover rect:first-child {
  fill: #ece6d809;
}
.swim__key {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.k {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 4px;
  vertical-align: -1px;
}
.k--cross {
  border-radius: 50%;
  background: var(--brass);
}
.k--peak {
  background: var(--text);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.k--cool {
  background: #8e9bb0;
}
.k--tv {
  background: var(--news);
}
.k--news {
  background: var(--news);
  border-radius: 50%;
}
.k--ad {
  background: var(--ads);
  transform: rotate(45deg) scale(0.85);
}
.k--creator {
  background: var(--infl);
  border-radius: 50%;
}
.k--neg {
  background:
    linear-gradient(
      45deg,
      transparent 42%,
      var(--news) 42% 58%,
      transparent 58%
    ),
    linear-gradient(
      -45deg,
      transparent 42%,
      var(--news) 42% 58%,
      transparent 58%
    );
}
.palette {
  position: fixed;
  inset: 0;
  background: #050a1499;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
  z-index: 50;
}
.palette__box {
  width: min(560px, 92vw);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 80px #0000008c;
  overflow: hidden;
}
.palette__box input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
}
.palette__box ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 50vh;
  overflow: auto;
}
.palette__box li button {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: start;
  align-items: baseline;
}
.palette__box li button.is-on {
  background: var(--raise);
}
.palette__kind {
  font-size: 11px;
  color: var(--brass);
}
.palette__box li.muted {
  padding: 12px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%);
  background: var(--panel-2);
  border: 1px solid var(--brass);
  border-radius: var(--r-m);
  padding: 9px 16px;
  z-index: 60;
  font-size: 13px;
  box-shadow: 0 12px 30px #00000073;
}
@media (max-width: 1180px) {
  .cc {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .search {
    min-width: 0;
  }
  .snap {
    display: none;
  }
  /* WEB-04: keep the visible label in the accessibility tree when it is visually hidden */
  .search span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .supply__grid,
  .page__split,
  .page__split--even {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 56px minmax(0, 1fr) 60px;
  }
  .brand__tag,
  .dd,
  .top__filters select,
  .brand > div {
    display: none;
  }
  .synth {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .top {
    gap: 10px;
    padding: 0 10px;
  }
  .search {
    height: 32px;
  }
  .tm__labels span:nth-child(2n) {
    display: none;
  }
  .tm__labels span.tm__asof,
  .tm__labels span.tm__fc {
    display: inline;
  }
  .cc__modes button {
    padding: 5px 8px;
  }
  .cc__modes button svg + * {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
  }
  .rail {
    grid-row: 3;
    flex-direction: row;
    border-inline-end: 0;
    border-top: 1px solid var(--line);
    padding: 4px;
    overflow-x: auto;
  }
  .rail__item {
    flex: 1;
    min-width: 58px;
    padding: 6px 2px;
  }
  .app[data-view="globe"] .main {
    overflow: auto;
  }
  .cc {
    grid-template-columns: 1fr;
    height: auto;
  }
  .cc__stage {
    height: 74vh;
  }
  .cc__side {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .globe__legend {
    width: 168px;
    padding: 6px;
  }
  .legend__lines,
  .legend__hatch {
    display: none;
  }
  .tm {
    grid-template-columns: 1fr;
    padding: 8px 12px;
  }
  .trace__grid {
    grid-template-columns: 1fr;
  }
  .trace {
    grid-template-rows: auto 60vh auto auto auto;
  }
  .trace__globe {
    height: 60vh;
  }
  .page {
    padding: 18px 14px 40px;
  }
  .rule__fields,
  .calc__fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Repair release additions (v0.2) ---- */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.filters-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  /* WEB-03: narrow-screen filter entry point */
  .filters-btn {
    display: inline-flex;
  }
}
.sheet {
  place-items: end center;
  padding-top: 0;
}
.sheet__box {
  width: min(560px, 100vw);
  max-height: 88dvh;
  overflow: auto;
  border-radius: 12px 12px 0 0;
  padding: 0 16px 16px;
}
@media (min-width: 861px) {
  .sheet {
    place-items: center;
  }
  .sheet__box {
    border-radius: 12px;
  }
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 6px;
  position: sticky;
  top: 0;
  background: var(--panel-2);
}
.sheet__head h2 {
  font: 500 20px var(--serif);
  margin: 0;
}
.sheet__group {
  border: 0;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sheet__group legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.sheet__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  position: sticky;
  bottom: 0;
  background: var(--panel-2);
}
.dd__opt input {
  accent-color: var(--brass);
}
.basis {
  border: 0;
  padding: 0;
  margin: 0;
}
.basis legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  padding: 0;
}
.basis .seg button {
  padding: 6px 10px;
  white-space: nowrap;
}
.tm__gran button {
  min-width: 44px;
}
.tm__partial {
  color: var(--muted);
  font-size: 12px;
}
.tm__controls {
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .tm__controls {
    gap: 8px;
  }
  .tm__day {
    font-size: 15px;
  }
}
/* Keep timeline labels from widening the page on narrow screens */
.tm__track {
  overflow-x: clip;
}
.rail {
  scroll-snap-type: x proximity;
}
.rail__item {
  scroll-snap-align: start;
}
@media (max-width: 420px) {
  .top {
    gap: 6px;
    padding: 0 8px;
  }
  .filters-btn {
    padding: 0 9px;
  }
  .filters-btn span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .filters-btn[data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    font-size: 11px;
    color: var(--brass);
  }
  .search {
    padding: 0 10px;
  }
  .lang {
    min-width: 44px;
  }
}
/* ---- Accounts, admin and console (v0.2) ---- */
.authcard {
  max-width: 440px;
  margin: 4vh auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px 22px 18px;
}
.authcard__title {
  font: 500 28px/1.15 var(--serif);
  margin: 0 0 6px;
}
.authcard form,
.formgrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}
.authcard__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.field input,
.field select,
.field textarea,
.input {
  min-height: 36px;
  font-size: 14px;
}
.input {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 6px 8px;
  color: var(--text);
}
.field__hint {
  font-size: 11.5px;
  color: var(--faint);
}
.field__error {
  font-size: 12px;
  color: #f6b4b4;
}
.linklike {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: start;
}
.linklike:hover {
  color: var(--text);
}
.btn--danger {
  border-color: #ef5b5b99;
  color: #f6b4b4;
  background: #ef5b5b14;
}
.account__panel {
  padding: 16px 0;
}
.account .tabs,
.admin .tabs {
  padding: 0;
}
.secret {
  display: block;
  padding: 8px 10px;
  word-break: break-all;
  font-size: 13px;
  user-select: all;
}
.stepup {
  border-color: var(--brass);
}
.banner strong {
  color: var(--text);
}
.mkt h2 {
  overflow-wrap: anywhere;
}
/* contrast: original faint text (#67778f) was 2.9–4.0:1; #8a9ab0 is ≥4.58:1 on every surface (WCAG AA) */
:root {
  --faint: #8a9ab0;
}
@media (max-width: 860px) {
  .authcard {
    margin-top: 8px;
    padding: 16px;
  }
}
@media (max-width: 420px) {
  /* cutoff and forecast markers collide on very narrow screens; the hatched forecast
     region keeps its meaning via its tooltip and the slider's accessible name */
  .tm__labels .tm__fc {
    display: none !important;
  }
}
/* CUR-06: mixed Arabic/Latin text (names, IDs, numbers, currencies) renders in its own
   direction inside RTL paragraphs and cells */
html[dir="rtl"] :is(p, li, td, th, dd, dt, .banner > span, .opp__meta, .tm__sub, .evi p, .media__title) {
  unicode-bidi: plaintext;
}
html[dir="rtl"] :is(code, .num, .tbl td.num) {
  unicode-bidi: isolate;
  direction: ltr;
}
/* Connector states (CUR-01): outlined so they read as a separate axis from feed health */
.pill[class*="pill--conn-"] { border: 1px solid currentColor; background: transparent; }
.pill--conn-fixture { color: var(--brass); }
.pill--conn-pending_approval { color: var(--warn); }
.pill--conn-disabled { color: var(--faint, #9aa4b2); }
.pill--conn-error { color: #f08b8b; }
.pill--conn-connected { color: #7fd8b4; }
.src > header { flex-wrap: wrap; gap: 6px; }
.offer-record { margin: 10px 0; border: 1px solid var(--line, #ffffff1f); border-radius: 10px; padding: 8px 12px; }
.offer-record summary { cursor: pointer; font-weight: 600; }
.offer-record .kv { grid-template-columns: minmax(120px, 38%) 1fr; }
.tbl th[scope="row"] { vertical-align: top; text-align: start; background: none; font-weight: 400; }
[data-testid="provider-connectors"] td { vertical-align: top; }
.pill--conn-demo { color: var(--brass); }
.pill--conn-unavailable, .pill--conn-not_configured { color: var(--faint, #9aa4b2); }
.pill--conn-configured_unverified, .pill--conn-stale { color: var(--warn); }
.pill--conn-failed { color: #f08b8b; }
.pill--conn-verified { color: #7fd8b4; }
.calc__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__fields .field { min-width: 0; }
.calc__fields .field input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 860px) { .calc__fields { grid-template-columns: minmax(0, 1fr); } }
.buildtag { font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint, #8a9ab0); border: 1px dashed currentColor; border-radius: 6px; padding: 2px 6px; white-space: nowrap; unicode-bidi: isolate; direction: ltr; }
@media (max-width: 520px) { .buildtag { display: none; } }
.banner--error { border-color: #f08b8b; background: color-mix(in srgb, #f08b8b 14%, var(--panel, #13233a)); }
.tbl-wrap { position: relative; } /* keeps visually-hidden captions inside the scroll box (RTL overflow, DEF-AR-01) */

/* CUR-AR-02: original-language source text. The label appears only in the Arabic UI. */
.srctext__orig { unicode-bidi: isolate; }
.srctext__label { display: none; font-size: 0.78em; color: var(--muted, #8a8f98); margin-inline-start: 0.4em; }
html[lang="ar"] .srctext__label { display: inline; }
html[lang="ar"] .srctext__label::before { content: "("; }
html[lang="ar"] .srctext__label::after { content: ")"; }

/* 0.5.0: pricing card, recovery codes */
.pricecard { border: 1px solid var(--line, #3a3f47); border-radius: 10px; padding: 14px 16px; margin: 10px 0; max-width: 640px; }
.pricecard__amount { font-size: 1.6rem; margin: 4px 0 8px; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; padding: 0; list-style: none; margin: 8px 0; }
.codes code { font-size: 0.95rem; letter-spacing: 0.04em; }
.attention-pilot { max-width: 1050px; margin: auto; padding: 22px; line-height: 1.65; overflow-wrap: anywhere; }
/* Catalog filters and snapshot timing do not describe the independent pilot. */
.app[data-view="attention"] .top__filters, .app[data-view="attention"] .top__status .synth, .app[data-view="attention"] .top__status .snap { display: none; }
.attention-actions { display: flex; gap: 12px; }
.attention-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.attention-cards > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.attention-number { font-size: 1.6rem; font-weight: 600; }
.attention-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.attention-meta dd { margin: 0; }
.attention-links { padding-inline-start: 22px; }
.attention-pilot a { text-decoration: underline; }
.attention-pilot th, .attention-pilot td { padding: 4px 18px; text-align: start; }
@media (max-width: 680px) { .attention-pilot { padding: 12px; } .attention-cards { grid-template-columns: 1fr; } .attention-meta { display: block; } }

/* The fail-closed account screen reserves space for the same server notice. */
.app.app--account-gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.app--account-gate > .main { grid-column: 1; grid-row: 1; overflow: auto; }

/* TrendWren dashboard cards; scoped to its right-column wrapper. */
.tw-dashboard { display: flex; flex-direction: column; gap: .5rem; min-width: 0; min-height: 0; }
.tw-dashboard__bar { display:flex; justify-content:space-between; gap:.5rem; align-items:center; flex-wrap:wrap; padding:.5rem .75rem; }
.tw-dashboard h2, .tw-dashboard h3 { margin:0; font-size:.95rem; }
.tw-dashboard__card, .tw-dashboard__editor { border:1px solid var(--line, currentColor); border-radius:.5rem; margin:0 .5rem; padding:.625rem; min-inline-size:0; }
.tw-dashboard__card[aria-label="Rising Products"], .tw-dashboard__card[aria-label="المنتجات الصاعدة"] { padding:0; border:0; margin:0; }
.tw-dashboard__list { list-style:none; padding:0; display:grid; gap:.5rem; }
.tw-dashboard__list li { border-block-end:1px solid var(--line, currentColor); padding:.25rem 0; display:flex; gap:.375rem; flex-wrap:wrap; align-items:center; }
.tw-dashboard__actions { display:flex; flex-wrap:wrap; gap:.375rem; }
.tw-dashboard .btn { min-block-size:44px; min-inline-size:44px; }
.tw-dashboard .btn:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.tw-dashboard__grip { cursor:grab; }
.tw-dashboard > [role="status"] { padding-inline:.75rem; }

/* TrendWren palettes. The globe keeps its dark map surface for legibility. */
:root {
  --abyss:#15120f; --deep:#1d1915; --panel:#241e19; --panel-2:#2d251e;
  --raise:#392f26; --line:#4b3e31; --line-soft:rgba(248,238,220,.12);
  --text:#f8eedc; --muted:#c0ae9c; --faint:#a59483; --brass:#f2a93b;
  --brass-soft:rgba(242,169,59,.15); --demand:#63cdb9; --ok:#63cdb9;
  --warn:#f2b66b; --danger:#ff8981; color-scheme:dark;
}
:root[data-tw-theme="linen"] {
  --abyss:#f3f0e8; --deep:#ede8dc; --panel:#fffdf8; --panel-2:#f8f4ea;
  --raise:#eae3d4; --line:#c8beaa; --line-soft:rgba(40,38,33,.13);
  --text:#252420; --muted:#5a554a; --faint:#665f53; --brass:#3243b5;
  --brass-soft:rgba(50,67,181,.13); --demand:#0e7a67; --ok:#0e7a67;
  --pred:#6440a8; --ads:#914716; --infl:#155e99; --news:#a62e31;
  --warn:#8a4e09; --danger:#a62e31; color-scheme:light;
}
.tw-theme-switch {
  display:inline-grid; place-items:center; flex:none; border:1px solid var(--line);
  border-radius:8px; background:var(--panel); color:var(--brass);
}
.tw-theme-switch { inline-size:44px; block-size:44px; font-size:21px; cursor:pointer; }
.tw-theme-switch:hover { background:var(--raise); }
.tw-theme-switch:focus-visible { outline:2px solid var(--brass); outline-offset:2px; }
.tw-brand-mark { inline-size:34px; block-size:24px; flex:none; color:#f2a93b; }
:root[data-tw-theme="linen"] .tw-brand-mark { color:#073c40; }
.tw-auth-tools > span { display:inline-flex; align-items:center; gap:8px; font-weight:700; }
.tw-auth-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 16px; }
:root[data-tw-theme="linen"] .globe { color:#f8eedc; background:#1d1915; }
