/* Zimac Portal control-center shell.
 * Loaded after the original inline constellation styles so the map can keep
 * its canvas renderer while the surrounding product is a console, not a hero.
 */

:root {
  --rail-width: 236px;
  --topbar-height: 66px;
  --panel: rgba(12, 16, 27, .92);
  --panel-strong: rgba(16, 21, 35, .98);
  --panel-border: rgba(255, 255, 255, .09);
  --panel-border-hi: rgba(185, 138, 255, .28);
  color-scheme: dark;
}

[hidden] { display: none !important; }

html,
body { min-height: 100%; }

body {
  overflow: hidden;
  background:
    radial-gradient(54rem 36rem at 94% -8%, rgba(117, 108, 255, .08), transparent 68%),
    var(--bg-deep);
}

button,
input { font: inherit; }

button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: -999px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  color: #05070d;
  font: 700 12px/1 var(--sans);
}

.skip-link:focus { left: 10px; }

/* ================= signed-in gate ================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(42rem 28rem at 50% 16%, rgba(117, 108, 255, .16), transparent 70%),
    radial-gradient(32rem 20rem at 64% 72%, rgba(49, 215, 194, .06), transparent 74%),
    #05070d;
}

.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image: radial-gradient(rgba(185, 138, 255, .45) .6px, transparent .6px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 74%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 74%);
}

.gate-box {
  position: relative;
  width: min(100%, 390px);
  padding: 34px;
  text-align: center;
  border: 1px solid var(--panel-border-hi);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 23, 38, .97), rgba(7, 10, 18, .98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .54), inset 0 1px rgba(255, 255, 255, .035);
}

.gate-mark {
  width: 56px;
  height: 56px;
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #0c1020 url('favicon-frontier.svg') center / 46px 46px no-repeat;
  box-shadow: 0 0 32px rgba(185, 138, 255, .25);
}

.gate-k {
  margin-bottom: 12px;
  color: var(--violet);
  font: 600 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gate-status,
.gate-notice,
.gate-alt,
.gate-home {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gate-status { margin: 0; }
.gate-status::after {
  content: "…";
  width: 0;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  animation: gate-ellipsis 1.4s steps(4) infinite;
}

@keyframes gate-ellipsis { to { width: 1.1em; } }

.gate-card { display: none; }
.gate.is-card .gate-status { display: none; }
.gate.is-card .gate-card { display: block; }
.gate-notice { margin: 0 0 16px; color: var(--pink); }
.gate-notice:empty { display: none; }

.gate-btn {
  width: 100%;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 138, 255, .35);
  border-radius: 9px;
  background: linear-gradient(145deg, #655cde, #8a69d9 62%, #c65b9b);
  color: #fff;
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 9px 30px rgba(117, 108, 255, .2);
}

.gate-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gate-alt { margin: 16px 0 0; }
.gate-alt a { color: var(--paper); border-bottom: 1px solid var(--line-hi); }
.gate-home { display: inline-block; margin-top: 24px; color: var(--faint); }
.gate-alt a:hover,
.gate-home:hover { color: #fff; }

/* ================= console shell ================= */
.portal-shell {
  display: flex;
  min-height: 100svh;
  background: var(--bg-deep);
}

.control-rail {
  position: relative;
  z-index: 30;
  width: var(--rail-width);
  min-height: 100svh;
  flex: 0 0 var(--rail-width);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 14px 14px;
  overflow: hidden;
  border-right: 1px solid rgba(185, 138, 255, .12);
  background:
    radial-gradient(28rem 20rem at -10% -4%, rgba(117, 108, 255, .11), transparent 62%),
    rgba(7, 9, 16, .98);
  box-shadow: 16px 0 54px rgba(0, 0, 0, .24);
}

.control-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background-image: radial-gradient(rgba(185, 138, 255, .5) .55px, transparent .55px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
  mask-image: linear-gradient(#000, transparent 72%);
}

.rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-toggle,
.mobile-nav-close,
.mobile-nav-backdrop { display: none; }

.mobile-nav-toggle,
.mobile-nav-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 37, .62);
  color: var(--muted);
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 15px;
  display: grid;
  gap: 3px;
}

.mobile-nav-toggle i {
  height: 1px;
  display: block;
  background: currentColor;
}

.mobile-nav-close {
  font: 500 20px/1 var(--sans);
}

.mobile-nav-toggle:hover,
.mobile-nav-close:hover {
  color: #fff;
  border-color: rgba(185, 138, 255, .36);
}

.rail-brand,
.topbar-mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.rail-brand {
  flex: 1;
  min-height: 42px;
  padding: 0 5px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: url('favicon-frontier.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(117, 108, 255, .36));
}

.brand-lockup {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.brand-lockup strong {
  color: #fff;
  font: 750 17px/1 var(--sans);
  letter-spacing: -.045em;
}

.brand-lockup strong i {
  color: var(--violet);
  font-style: normal;
}

.brand-lockup small {
  color: var(--faint);
  font: 650 8px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Organization scope is a workspace-wide fact, so it is asked once here rather
   than repeated per view. Views keep their own picker for the drawer widths
   where this rail is hidden behind the hamburger. */
.rail-scope {
  display: grid;
  gap: 6px;
  padding: 11px 11px 12px;
  border: 1px solid rgba(185, 138, 255, .13);
  border-radius: 10px;
  background: rgba(13, 18, 30, .6);
}

.rail-scope-label {
  color: #636878;
  font: 700 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rail-scope-select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(5, 8, 14, .8);
  color: #eeedf1;
  outline: none;
  font: 560 11.5px/1 var(--sans);
}

.rail-scope-select:focus-visible {
  border-color: rgba(185, 138, 255, .6);
  box-shadow: 0 0 0 3px rgba(185, 138, 255, .08);
}

.rail-scope-select:disabled { color: var(--faint); }

.rail-nav {
  display: grid;
  gap: 19px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar { display: none; }

.rail-group { display: grid; gap: 3px; }

.rail-label {
  margin: 0 0 5px;
  padding: 0 10px;
  color: #636878;
  font: 700 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.rail-item {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #999eac;
  font: 560 12.5px/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}

.rail-item:hover,
.rail-item:focus-visible {
  color: #fff;
  border-color: rgba(185, 138, 255, .1);
  background: rgba(185, 138, 255, .055);
}

.rail-item.active {
  color: #fff;
  border-color: rgba(185, 138, 255, .18);
  background: linear-gradient(90deg, rgba(117, 108, 255, .17), rgba(185, 138, 255, .04));
}

.rail-item.active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--teal));
  box-shadow: 0 0 10px rgba(185, 138, 255, .75);
}

.rail-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #777d8e;
  font: 700 14px/1 var(--mono);
}

.rail-item.active .rail-icon,
.rail-item:hover .rail-icon { color: var(--violet); }

/* Marks a rail entry that leaves the control center. */
.rail-external {
  margin-left: auto;
  color: #5f6474;
  font: 700 10px/1 var(--mono);
}

.rail-item:hover .rail-external { color: #9aa0b1; }

.rail-workspace {
  margin-top: auto;
  padding: 13px 7px 3px;
  border-top: 1px solid rgba(185, 138, 255, .12);
}

.workspace-kicker {
  display: block;
  margin-bottom: 8px;
  color: #636878;
  font: 700 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.workspace-switch {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
}

.workspace-switch:hover {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
}

.workspace-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 138, 255, .3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(117, 108, 255, .25), rgba(49, 215, 194, .08));
  color: #e2d4ff;
  font: 700 12px/1 var(--display);
}

.workspace-copy { min-width: 0; }
.workspace-copy b,
.workspace-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy b { color: #e9e8ed; font: 650 11px/1.25 var(--sans); }
.workspace-copy small { margin-top: 3px; color: var(--faint); font: 500 9px/1.2 var(--sans); }
.workspace-arrow { color: #666b7a; font: 700 11px/1 var(--mono); }

.workspace-signout {
  width: 100%;
  margin-top: 5px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #696e7c;
  font: 600 9px/1 var(--mono);
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.workspace-signout:hover,
.workspace-signout:focus-visible { color: #fff; background: rgba(255, 255, 255, .035); }

.portal-main {
  min-width: 0;
  height: 100svh;
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(46rem 32rem at 92% -8%, rgba(117, 108, 255, .055), transparent 65%),
    radial-gradient(42rem 34rem at 4% 105%, rgba(49, 215, 194, .025), transparent 68%),
    var(--bg-deep);
}

.topbar {
  position: relative;
  z-index: 50;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 2.6vw, 34px);
  border-bottom: 1px solid rgba(185, 138, 255, .11);
  background: rgba(5, 7, 13, .84);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-left { gap: 15px; }
.topbar-actions { gap: 9px; }
.topbar-mobile-brand { display: none; }

.console-breadcrumb { min-width: 0; }
.breadcrumb-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumb-line span,
.breadcrumb-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-line span { color: var(--muted); font-size: 12px; }
.breadcrumb-line i { color: #4e5260; font-style: normal; }
.breadcrumb-line strong { color: #fff; font-size: 12px; letter-spacing: 0; }
.console-breadcrumb small { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; }

.topbar-link,
.command-open {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 37, .62);
  color: var(--muted);
  font: 600 11px/1 var(--sans);
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}

.topbar-link:hover,
.command-open:hover {
  color: #fff;
  border-color: rgba(185, 138, 255, .36);
  background: rgba(185, 138, 255, .08);
}

.topbar-signal {
  --signal-accent: var(--violet);
  min-width: 42px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 37, .62);
  color: var(--faint);
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}

.franz-flag { --signal-accent: #fb923c; }
.cassandra-flag { --signal-accent: #34d399; }
.joy-flag { --signal-accent: #c084fc; }
.daphne-flag { --signal-accent: #a78bfa; }
.iris-flag { --signal-accent: #fb7185; }
.drew-flag { --signal-accent: #d946ef; }
.quill-flag { --signal-accent: #6c63ff; }
.finn-flag { --signal-accent: #fbbf24; }
.sage-flag { --signal-accent: #f472b6; }
.rollout-flag { --signal-accent: #60a5fa; }
.incident-flag { --signal-accent: #f0444f; }

.incident-flag-mark {
  position: relative;
  width: 11px;
  height: 14px;
  flex: 0 0 auto;
  border-left: 1.5px solid currentColor;
}

.incident-flag-mark::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 8px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  transform: skewY(8deg);
}

.topbar-signal strong {
  min-width: 1ch;
  color: currentColor;
  font: 700 10px/1 var(--mono);
  text-align: center;
}

.topbar-signal-glyph {
  width: 13px;
  flex: 0 0 auto;
  color: currentColor;
  font: 700 12px/1 var(--mono);
  text-align: center;
}

.franz-flag-mark {
  position: relative;
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, currentColor 0 1.5px, transparent 1.75px) 0 3px / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 0 1.5px, transparent 1.75px) 5px 0 / 4px 4px no-repeat,
    radial-gradient(circle, currentColor 0 1.5px, transparent 1.75px) 5px 6px / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 4px / 8px 1px no-repeat;
}

.franz-flag-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.cassandra-flag-mark {
  position: relative;
  width: 13px;
  height: 12px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50% / 24%;
}

.cassandra-flag-mark::before,
.cassandra-flag-mark::after {
  content: "";
  position: absolute;
  left: -1.5px;
  width: 13px;
  height: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.cassandra-flag-mark::before { top: -1.5px; }
.cassandra-flag-mark::after {
  bottom: -1.5px;
  border-top-color: transparent;
}

.joy-flag-mark {
  position: relative;
  width: 14px;
  height: 11px;
  flex: 0 0 auto;
}

.joy-flag-mark::before,
.joy-flag-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transform: rotate(-34deg);
}

.joy-flag-mark::before { top: 0; left: 0; }
.joy-flag-mark::after { right: 0; bottom: 0; }

.daphne-flag-mark {
  width: 12px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 8px 8px / 4px 4px 10px 10px;
  clip-path: polygon(50% 0, 100% 15%, 92% 70%, 50% 100%, 8% 70%, 0 15%);
}

.iris-flag-mark {
  position: relative;
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.iris-flag-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-left: 1.5px solid currentColor;
  transform: skewY(-38deg);
}

.drew-flag-mark {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 1.5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 1.5px 5px no-repeat;
}

.quill-flag-mark {
  position: relative;
  width: 13px;
  height: 11px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 13px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 9px / 11px 1.5px no-repeat;
}

.quill-flag-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.topbar-signal:hover,
.topbar-signal:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--signal-accent) 68%, transparent);
  background: color-mix(in srgb, var(--signal-accent) 8%, rgba(17, 23, 37, .62));
  transform: translateY(-1px);
}

.topbar-signal[data-state="clear"] { color: #8e93a1; }
.franz-flag[data-state="active"] {
  color: #fb923c;
  border-color: rgba(251, 146, 60, .28);
  background: rgba(251, 146, 60, .055);
}
.cassandra-flag[data-state="observed"] {
  color: #34d399;
  border-color: rgba(52, 211, 153, .25);
  background: rgba(52, 211, 153, .05);
}
.joy-flag[data-state="active"] {
  color: #c084fc;
  border-color: rgba(192, 132, 252, .28);
  background: rgba(192, 132, 252, .055);
}
.daphne-flag[data-state="active"] {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, .28);
  background: rgba(167, 139, 250, .055);
}
.daphne-flag[data-state="blocking"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .07);
  box-shadow: inset 0 0 16px rgba(251, 113, 133, .045);
}
.iris-flag[data-state="active"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .26);
  background: rgba(251, 113, 133, .05);
}
.drew-flag[data-state="active"] {
  color: #d946ef;
  border-color: rgba(217, 70, 239, .28);
  background: rgba(217, 70, 239, .055);
}
.drew-flag[data-state="blocking"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .07);
  box-shadow: inset 0 0 16px rgba(251, 113, 133, .045);
}
.quill-flag[data-state="active"] {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .055);
}
.quill-flag[data-state="severe"],
.finn-flag[data-state="danger"],
.sage-flag[data-state="exhausted"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .07);
  box-shadow: inset 0 0 16px rgba(251, 113, 133, .045);
}
.finn-flag[data-state="within"],
.sage-flag[data-state="healthy"] {
  color: var(--teal);
  border-color: rgba(49, 215, 194, .22);
  background: rgba(49, 215, 194, .045);
}
.finn-flag[data-state="warning"],
.sage-flag[data-state="low"] {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .055);
}
.incident-flag[data-state="active"] {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .055);
}
.incident-flag[data-state="critical"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .07);
  box-shadow: inset 0 0 16px rgba(251, 113, 133, .045);
}

.rollout-flag-mark {
  position: relative;
  width: 13px;
  height: 10px;
  flex: 0 0 auto;
}

.rollout-flag-mark::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.rollout-flag-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.rollout-flag[data-state="progressing"] {
  color: var(--teal);
  border-color: rgba(49, 215, 194, .26);
  background: rgba(49, 215, 194, .055);
}
.rollout-flag[data-state="paused"] {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .055);
}
.rollout-flag[data-state="rollback"] {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .07);
  box-shadow: inset 0 0 16px rgba(251, 113, 133, .045);
}

.command-search-icon {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.command-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.command-open kbd {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-deep);
  color: #e6e4ea;
  font: 600 9px/1 var(--mono);
}

/* ================= control view ================= */
.portal-workspace {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 2.5vw, 34px);
}

.dashboard-view {
  width: min(1520px, 100%);
  margin: 0 auto;
}

.dashboard-view[hidden] { display: none; }
.learning-view { width: min(1240px, 100%); }

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.view-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bea2f8;
  font: 700 9px/1 var(--mono);
  letter-spacing: .15em;
}

.view-head .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
}

.view-head h1 {
  margin-top: 0;
  color: #fff;
  font: 700 clamp(29px, 2.7vw, 40px)/1 var(--display);
  letter-spacing: -.025em;
}

.view-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Kept for assistive technology, painted for no one: the view heading stays as
   a skip-link target and focus anchor, and the signal head keeps naming its
   panel while onboarding shows only the setup cards. */
.view-head-sr,
.signal-panel.is-onboarding .signal-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font: 600 10px/1 var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}

.catalog-count strong {
  color: #fff;
  font: 700 19px/1 var(--display);
  letter-spacing: -.02em;
}

.signal-panel { margin-bottom: 12px; }

.signal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 9px;
}

.signal-head > div { display: flex; align-items: baseline; gap: 10px; }

.signal-head .panel-kicker {
  color: #8e93a1;
  font: 650 8px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signal-head h2 {
  color: #f4f3f7;
  font: 680 14px/1 var(--sans);
  letter-spacing: -.012em;
}

.signal-status {
  color: #777c89;
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .055em;
  text-align: right;
  text-transform: uppercase;
}

.signal-notice {
  margin-bottom: 8px;
  padding: 9px 11px;
  border-left: 2px solid #8f96a7;
  background: rgba(255, 255, 255, .025);
  color: #aaaeba;
  font: 500 10px/1.45 var(--sans);
}

.signal-notice strong {
  margin-right: 5px;
  color: #f1f0f4;
  font-weight: 650;
}

.signal-notice[data-tone="warning"] { border-left-color: #fbbf24; }
.signal-notice[data-tone="muted"] { border-left-color: #777c89; }

.quick-launch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  background: rgba(11, 15, 25, .68);
}

.quick-launch[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.quick-launch[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.quick-launch-item {
  position: relative;
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 17px 14px;
  transition: background .16s, color .16s;
}

.quick-launch-item + .quick-launch-item { border-left: 1px solid var(--panel-border); }

.quick-launch-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 17px;
  width: 28px;
  height: 1px;
  background: var(--quick-a, var(--violet));
  opacity: .82;
}

.quick-launch-item:hover,
.quick-launch-item:focus-visible { background: rgba(255, 255, 255, .035); }

.quick-launch-top,
.quick-launch-bottom {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.quick-launch-top strong {
  color: #fff;
  font: 700 16px/1 var(--sans);
  letter-spacing: -.015em;
}

.quick-launch-top small {
  overflow: hidden;
  color: #777c89;
  font: 600 8.5px/1 var(--mono);
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-launch-value {
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font: 720 clamp(18px, 1.65vw, 25px)/1 var(--display);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-launch-title {
  overflow: hidden;
  color: #d6d5db;
  font: 600 10px/1.25 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-launch-item:not(.has-value) .quick-launch-title {
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
}

.quick-launch-bottom > span {
  overflow: hidden;
  color: var(--faint);
  font: 500 10px/1.25 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-launch-bottom b {
  flex: 0 0 auto;
  color: #cfcdd5;
  font: 650 10px/1 var(--sans);
}

.quick-launch-bottom { margin-top: auto; }

.quick-launch-bottom i {
  margin-left: 3px;
  color: var(--quick-a, var(--violet));
  font-style: normal;
}

.quick-launch-item[data-tone="danger"]::before { background: #fb7185; }
.quick-launch-item[data-tone="warning"]::before { background: #fbbf24; }
.quick-launch-item[data-tone="good"]::before { background: #31d7c2; }

.signal-skeleton {
  min-height: 116px;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(255, 255, 255, .035) 48%, transparent 58%) 0 0 / 240% 100%,
    linear-gradient(rgba(255, 255, 255, .055), rgba(255, 255, 255, .055)) 17px 18px / 28% 9px no-repeat,
    linear-gradient(rgba(255, 255, 255, .035), rgba(255, 255, 255, .035)) 17px 48px / 42% 20px no-repeat,
    linear-gradient(rgba(255, 255, 255, .025), rgba(255, 255, 255, .025)) 17px 87px / 66% 8px no-repeat;
  animation: signal-scan 1.5s linear infinite;
}

.signal-skeleton + .signal-skeleton { border-left: 1px solid var(--panel-border); }

.signal-zero {
  grid-column: 1 / -1;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  color: #c8c7ce;
  font: 560 11px/1.45 var(--sans);
}

.signal-zero a {
  flex: 0 0 auto;
  color: #fff;
  font: 650 10px/1 var(--sans);
}

@keyframes signal-scan { to { background-position: -140% 0, 17px 18px, 17px 48px, 17px 87px; } }

@media (prefers-reduced-motion: reduce) {
  .signal-skeleton { animation: none; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(300px, 340px);
  gap: 12px;
  align-items: stretch;
}

/* ================= constellation instrument ================= */
.sky {
  position: relative;
  height: clamp(560px, calc(100svh - 286px), 690px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: #050710;
  box-shadow: inset 0 1px rgba(255, 255, 255, .02), 0 20px 60px rgba(0, 0, 0, .18);
}

.sky::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: .64;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, .08), rgba(4, 6, 11, .38)),
    linear-gradient(90deg, rgba(4, 6, 11, .2), transparent 52%),
    url('portal-network-atlas-v1.webp') 66% 55% / cover no-repeat;
  mix-blend-mode: normal;
  transform: none;
}

.sky::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background:
    radial-gradient(42rem 28rem at 50% 62%, rgba(117, 108, 255, .15), transparent 68%),
    url('portal-cosmic-dust-v1.webp') center / cover no-repeat;
  mix-blend-mode: screen;
}

#field,
.orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#field { z-index: 1; }
.orbits { z-index: 3; }

.network-head {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 16, .92), rgba(5, 7, 16, .38) 68%, transparent);
}

.network-head .panel-kicker {
  display: block;
  color: var(--violet);
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.network-head h2 {
  margin-top: 8px;
  color: #fff;
  font: 700 16px/1 var(--sans);
  letter-spacing: -.01em;
}

.catalog-note {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(3, 5, 10, .38);
  color: var(--faint);
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .04em;
  text-align: right;
}

.network-legend {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(3, 5, 10, .68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--faint);
  font: 600 8px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.network-legend span { display: inline-flex; align-items: center; gap: 5px; }
.network-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--legend-a); box-shadow: 0 0 6px color-mix(in srgb, var(--legend-a) 70%, transparent); }

.mobile-network-art { display: none; }

.core {
  width: 124px;
  height: 124px;
  margin: -62px 0 0 -62px;
}

.core .ring { inset: 0; }

.core .core-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(117, 108, 255, .24), rgba(10, 14, 23, .78)),
    url('favicon-frontier.svg') center / 39px 39px no-repeat;
  border: 1px solid rgba(205, 187, 239, .5);
  box-shadow: 0 0 34px rgba(117, 108, 255, .42), inset 0 1px rgba(255, 255, 255, .12);
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}

.core small {
  top: calc(100% + 5px);
  color: #b9b6c2;
  letter-spacing: .22em;
}

.core em {
  position: absolute;
  top: calc(100% + 19px);
  color: #666b78;
  font: 650 7px/1 var(--mono);
  font-style: normal;
  letter-spacing: .22em;
}

.core:hover .core-mark,
.core:focus-visible .core-mark {
  transform: scale(1.06);
  border-color: #fff;
  box-shadow: 0 0 44px rgba(117, 108, 255, .68), inset 0 1px rgba(255, 255, 255, .16);
}

.node {
  width: 128px;
  margin-left: -64px;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.node::after { inset: -13px -7px; }

.node .orb {
  width: 60px;
  height: 60px;
  border: 1px solid color-mix(in srgb, var(--a) 48%, rgba(255, 255, 255, .18));
  background: color-mix(in srgb, var(--a) 20%, #080b13);
  box-shadow:
    0 0 26px -3px color-mix(in srgb, var(--a) 72%, transparent),
    0 0 0 5px rgba(3, 5, 10, .64),
    inset -10px -12px 17px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, filter .2s;
}

.node .orb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--crop-x, 72%) var(--crop-y, 50%);
  filter: saturate(.88) contrast(1.08) brightness(.78);
  transform: scale(var(--crop-scale, 1.08));
}

.node .orb::before {
  inset: 0;
  z-index: 2;
  opacity: .55;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, .75), transparent 15%),
    url('portal-orb-texture-v1.webp') var(--orb-x, 50%) var(--orb-y, 50%) / 120px 120px;
  filter: contrast(1.4) brightness(.8);
  mix-blend-mode: overlay;
}

.node .orb::after {
  z-index: 3;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(145deg, transparent 35%, rgba(0, 0, 0, .16) 58%, rgba(0, 0, 0, .65));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.node .tag {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a8aab4;
  font-size: 10px;
  letter-spacing: .12em;
}

.node.is-soon .orb { opacity: .62; filter: grayscale(.22); }
.node.is-build .orb { animation: breathe 2.8s ease-in-out infinite; }

.node:hover .orb,
.node:focus-visible .orb,
.node.is-hot .orb,
.node.is-selected .orb {
  transform: scale(1.13);
  border-color: color-mix(in srgb, var(--a) 82%, #fff);
  box-shadow:
    0 0 38px 1px color-mix(in srgb, var(--a) 78%, transparent),
    0 0 0 5px rgba(3, 5, 10, .75),
    0 0 0 7px color-mix(in srgb, var(--a) 28%, transparent),
    inset -10px -12px 17px rgba(0, 0, 0, .42);
}

.node:hover .tag,
.node:focus-visible .tag,
.node.is-hot .tag,
.node.is-selected .tag { color: #fff; }

.node.ring2 { width: 96px; margin-left: -48px; gap: 5px; }
.node.ring2 .orb {
  width: 26px;
  height: 26px;
  border-color: color-mix(in srgb, var(--parent-a) 72%, rgba(255, 255, 255, .2));
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .26), transparent 25%),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 38%, #0a0d16), color-mix(in srgb, var(--parent-a) 16%, #05070d));
  box-shadow:
    0 0 16px -2px color-mix(in srgb, var(--parent-a) 68%, transparent),
    0 0 0 3px rgba(3, 5, 10, .7),
    inset -5px -6px 9px rgba(0, 0, 0, .42);
}
.node.ring2 .orb::before { opacity: .28; }
.node.ring2 .tag { max-width: 96px; color: #979ba8; font-size: 7.5px; letter-spacing: .08em; }
.extension-glyph {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font: 750 8px/1 var(--mono);
  letter-spacing: -.02em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--a) 90%, transparent);
}
.node.ring2:hover .orb,
.node.ring2:focus-visible .orb,
.node.ring2.is-hot .orb,
.node.ring2.is-selected .orb,
.node.ring2.is-related .orb {
  border-color: color-mix(in srgb, var(--parent-a) 86%, #fff);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--parent-a) 74%, transparent),
    0 0 0 3px rgba(3, 5, 10, .74),
    0 0 0 5px color-mix(in srgb, var(--a) 30%, transparent),
    inset -5px -6px 9px rgba(0, 0, 0, .36);
}
.node.is-related:not(.ring2) .orb {
  border-color: color-mix(in srgb, var(--a) 72%, #fff);
  box-shadow:
    0 0 32px color-mix(in srgb, var(--a) 70%, transparent),
    0 0 0 5px rgba(3, 5, 10, .7),
    inset -10px -12px 17px rgba(0, 0, 0, .44);
}

.hud,
.sky-head { display: none; }

.sky-fallback {
  position: absolute;
  z-index: 10;
  inset: 82px 0 0;
  display: grid;
  place-items: center;
  padding: 30px;
}

/* ================= selected-product inspector ================= */
.card {
  position: relative;
  z-index: 10;
  width: auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--a, var(--violet)) 26%, var(--panel-border));
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(17, 23, 37, .98), rgba(7, 10, 18, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 20px 60px rgba(0, 0, 0, .18);
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: border-color .2s, box-shadow .2s;
}

.card.show { opacity: 1; transform: none; }

.card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a, var(--violet)), transparent);
}

.card .c-art {
  position: relative;
  height: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #090c14;
}

.card .c-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--crop-x, 72%) var(--crop-y, 50%);
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.02);
}

.card .c-art::after {
  background:
    linear-gradient(180deg, rgba(7, 10, 18, .02) 18%, rgba(7, 10, 18, .28) 62%, rgba(7, 10, 18, .98) 100%),
    linear-gradient(90deg, rgba(7, 10, 18, .3), transparent 68%);
}

.card .c-kick {
  left: 16px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--a) 38%, transparent);
  border-radius: 6px;
  background: rgba(3, 5, 10, .58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 8px;
}

.card .c-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.card .c-art + .c-body { padding-top: 15px; }

.card .c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card .c-status {
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--a) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--a) 8%, transparent);
  font-size: 8px;
  letter-spacing: .13em;
}

.card .c-context {
  color: var(--faint);
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card h2 {
  margin-top: 14px;
  color: #fff;
  font: 700 29px/1 var(--display);
  letter-spacing: -.02em;
}

.card .c-role {
  margin-top: 10px;
  color: #b1b3bd;
  font-size: 13px;
  line-height: 1.55;
}

.card .c-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0;
}

.card .c-data div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.card .c-data span,
.card .c-data b { display: block; overflow: hidden; text-overflow: ellipsis; }
.card .c-data span { color: var(--faint); font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card .c-data b { margin-top: 7px; color: #d5d4da; font: 600 10px/1.25 var(--mono); white-space: nowrap; }

.card .c-open {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--a) 44%, transparent);
  border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 22%, rgba(17, 23, 37, .9)), rgba(17, 23, 37, .82));
  color: #fff;
  font: 650 12px/1 var(--sans);
  transition: border-color .16s, background .16s, transform .16s;
}

.card .c-open:hover,
.card .c-open:focus-visible {
  border-color: color-mix(in srgb, var(--a) 76%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 31%, rgba(17, 23, 37, .9)), rgba(17, 23, 37, .9));
  transform: translateY(-1px);
}

.card .c-tip {
  margin-top: 11px;
  color: #656a78;
  font: 500 8.5px/1.4 var(--mono);
  text-align: center;
}

/* ================= compact product grid ================= */
.mlist {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  max-width: none;
}

.mlist a {
  min-height: 112px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 12px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(17, 23, 37, .88), rgba(9, 12, 20, .94));
}

.mlist .m-art {
  grid-row: 1 / 3;
  width: 92px;
  height: 88px;
  display: block;
  object-fit: cover;
  object-position: var(--crop-x, 72%) var(--crop-y, 50%);
  border-radius: 8px;
  filter: saturate(.88);
}

.mlist .t-orb {
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--parent-a, var(--a)) 68%, rgba(255, 255, 255, .18));
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9), var(--a) 48%, #090c14 100%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--a) 64%, transparent);
  color: #fff;
  font: 750 10px/1 var(--mono);
}

.mlist b { align-self: end; color: #fff; font: 650 14px/1.2 var(--sans); }
.mlist span:not(.t-orb) { align-self: start; margin: 0; color: var(--faint); font: 500 9px/1.3 var(--mono); text-align: left; }

.mlist a.m-satellite {
  min-height: 68px;
  grid-template-columns: 46px minmax(0, 1fr);
  margin-left: 24px;
  border-left: 2px solid color-mix(in srgb, var(--parent-a) 78%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--parent-a) 7%, rgba(17, 23, 37, .88)), rgba(9, 12, 20, .94));
}
.mlist a.m-satellite .t-orb { width: 30px; height: 30px; font-size: 8px; }
.mlist a.m-satellite b { font-size: 12px; }
.mlist a.m-satellite span:not(.t-orb) { font-size: 8px; }

/* ================= learning hub ================= */
.learning-hub {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background:
    radial-gradient(44rem 24rem at 8% 0%, rgba(117, 108, 255, .1), transparent 72%),
    linear-gradient(155deg, rgba(13, 17, 29, .94), rgba(7, 10, 18, .97));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.learning-scope {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 213, 248, .18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(143, 213, 248, .07), rgba(117, 108, 255, .04));
}

.learning-scope-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 213, 248, .38);
  border-radius: 50%;
  color: #cceeff;
  font: 700 11px/1 var(--mono);
}

.learning-scope p {
  color: #9296a3;
  font-size: 11px;
  line-height: 1.55;
}

.learning-scope strong { color: #e8e7ec; font-weight: 650; }

.learning-category + .learning-category {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.learning-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.learning-head .panel-kicker {
  display: block;
  color: var(--teal);
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.learning-head h2 {
  margin-top: 8px;
  color: #fff;
  font: 700 18px/1.15 var(--display);
  letter-spacing: -.01em;
}

.learning-head p {
  width: min(360px, 42%);
  color: var(--faint);
  font: 500 10px/1.45 var(--mono);
  text-align: right;
}

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

.learning-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.learning-grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.learning-card {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--learn-a) 20%, var(--panel-border));
  border-radius: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--learn-a) 7%, rgba(17, 23, 37, .86)), rgba(8, 11, 19, .92));
  transition: transform .16s var(--ease), border-color .16s, background .16s;
}

.learning-card:hover,
.learning-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--learn-a) 55%, rgba(255, 255, 255, .16));
  background: linear-gradient(145deg, color-mix(in srgb, var(--learn-a) 12%, rgba(17, 23, 37, .9)), rgba(8, 11, 19, .96));
}

.learning-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--learn-a) 50%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--learn-a) 12%, #080b13);
  color: #fff;
  font: 750 13px/1 var(--mono);
  box-shadow: 0 0 18px color-mix(in srgb, var(--learn-a) 22%, transparent);
}

.learning-copy { min-width: 0; }
.learning-copy small,
.learning-copy strong,
.learning-copy span { display: block; }
.learning-copy small { color: var(--learn-a); font: 650 8px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.learning-copy strong { margin-top: 7px; color: #fff; font: 650 15px/1.15 var(--sans); }
.learning-copy span { max-width: 760px; margin-top: 7px; color: #878b98; font-size: 11px; line-height: 1.45; }
.learning-open { color: color-mix(in srgb, var(--learn-a) 78%, #fff); font: 700 13px/1 var(--mono); }

/* ================= account, organization, billing, and support views ================= */
.account-view { width: min(1240px, 100%); }
.account-stack { display: grid; gap: 12px; }

.account-panel {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 25px);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background:
    radial-gradient(34rem 22rem at 0% 0%, rgba(117, 108, 255, .065), transparent 72%),
    linear-gradient(155deg, rgba(14, 18, 30, .94), rgba(8, 11, 19, .97));
  box-shadow: inset 0 1px rgba(255, 255, 255, .024);
}

.account-panel .panel-kicker,
.account-hero .panel-kicker {
  display: block;
  color: #a78bfa;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.account-panel h2,
.account-hero h2 {
  margin-top: 8px;
  color: #fff;
  font: 680 clamp(17px, 1.8vw, 22px)/1.15 var(--display);
  letter-spacing: -.012em;
}

.account-panel > p,
.account-hero p {
  margin-top: 9px;
  color: #8f93a0;
  font-size: 11px;
  line-height: 1.55;
}

.account-live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #888d9a;
  font: 650 9px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.account-live-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #737887;
  box-shadow: 0 0 8px rgba(115, 120, 135, .6);
}

.account-live-state.ready { color: #aeb2bd; }
.account-live-state.ready i { background: var(--teal); box-shadow: 0 0 9px rgba(49, 215, 194, .75); }

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  background:
    radial-gradient(28rem 18rem at 7% 50%, rgba(117, 108, 255, .16), transparent 72%),
    radial-gradient(24rem 18rem at 100% 0%, rgba(49, 215, 194, .07), transparent 75%),
    linear-gradient(145deg, rgba(17, 22, 37, .96), rgba(8, 11, 19, .98));
}

.account-hero-identity { display: flex; align-items: center; gap: 17px; min-width: 0; }
.account-hero-identity > div { min-width: 0; }
.account-hero-identity p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-hero-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 138, 255, .34);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(117, 108, 255, .32), rgba(185, 138, 255, .13) 58%, rgba(49, 215, 194, .08));
  color: #fff;
  font: 750 19px/1 var(--display);
  box-shadow: 0 0 30px rgba(117, 108, 255, .17);
}

.account-overview-head { margin-bottom: 18px; }
.overview-index {
  display: block;
  margin-bottom: 10px;
  color: #7771a0;
  font: 700 8px/1 var(--mono);
  letter-spacing: .18em;
}

.product-overview-stack { gap: 16px; }

.overview-identity-bar {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(390px, 1.4fr) minmax(210px, .72fr);
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.overview-identity-bar .account-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 15px;
}

.overview-identity-bar .account-hero-identity { gap: 13px; }
.overview-identity-bar .account-hero h2,
.overview-identity-bar h2 { font-size: 17px; }

.overview-account-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-inline: 1px solid rgba(255, 255, 255, .075);
}

.overview-account-facts > div { min-width: 0; padding: 3px 18px; }
.overview-account-facts > div + div { border-left: 1px solid rgba(255, 255, 255, .075); }
.overview-account-facts dt,
.overview-account-facts dd,
.overview-account-facts small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-account-facts dt { color: #656a79; font: 700 7.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.overview-account-facts dd { margin-top: 8px; color: #f4f2f7; font: 700 14px/1 var(--display); text-transform: capitalize; }
.overview-account-facts small { margin-top: 5px; color: #6e7381; font: 500 8px/1.2 var(--sans); }

.overview-pulse {
  position: relative;
  isolation: isolate;
  min-height: 156px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(430px, 1.45fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(185, 138, 255, .19);
  border-radius: 15px;
  background:
    radial-gradient(36rem 18rem at 10% 20%, rgba(108, 99, 255, .17), transparent 68%),
    radial-gradient(28rem 18rem at 92% 80%, rgba(49, 215, 194, .07), transparent 72%),
    linear-gradient(145deg, rgba(15, 19, 33, .98), rgba(6, 9, 16, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 60px rgba(0, 0, 0, .16);
}

.overview-pulse::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 34px 100%;
  -webkit-mask: linear-gradient(90deg, #000, transparent 72%);
  mask: linear-gradient(90deg, #000, transparent 72%);
}

.overview-pulse::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 12%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(49, 215, 194, .24), transparent);
  box-shadow: 74px 0 rgba(185, 138, 255, .1), -112px 0 rgba(108, 99, 255, .1);
  transform: skewX(-22deg);
}

.overview-pulse .panel-kicker { display: block; color: #a78bfa; font: 700 8px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.overview-pulse h2 { margin-top: 11px; color: #fff; font: 720 clamp(24px, 3vw, 34px)/1 var(--display); letter-spacing: -.025em; }
.overview-pulse-copy p { margin-top: 11px; color: #777c8a; font: 500 9px/1.45 var(--mono); }

.overview-pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 11px;
  background: rgba(3, 6, 12, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.overview-pulse-stats > div { min-width: 0; padding: 17px 18px; }
.overview-pulse-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .075); }
.overview-pulse-stats span,
.overview-pulse-stats strong,
.overview-pulse-stats small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-pulse-stats span { color: #6f7483; font: 700 7.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.overview-pulse-stats strong { margin-top: 10px; color: #fff; font: 750 25px/1 var(--display); }
.overview-pulse-stats small { margin-top: 7px; color: #626775; font: 500 8px/1.2 var(--sans); }

.product-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.product-dashboard-card {
  --card-pad: 18px;
  position: relative;
  isolation: isolate;
  grid-column: span 4;
  min-width: 0;
  min-height: 228px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 13px;
  background:
    radial-gradient(18rem 12rem at 0% 0%, color-mix(in srgb, var(--product-accent) 9%, transparent), transparent 70%),
    linear-gradient(150deg, rgba(14, 18, 29, .96), rgba(7, 10, 17, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s, background .18s;
}

.product-dashboard-card:nth-last-child(-n+2) { grid-column: span 6; }

.product-dashboard-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--product-accent), transparent);
  opacity: .52;
}

.product-dashboard-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -38px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 16%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 22px color-mix(in srgb, var(--product-accent) 3%, transparent), 0 0 0 52px color-mix(in srgb, var(--product-accent) 2%, transparent);
}

.product-dashboard-card:hover,
.product-dashboard-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--product-accent) 54%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 36px rgba(0, 0, 0, .22);
}

.product-dashboard-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.product-dashboard-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--product-accent) 38%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--product-accent) 9%, rgba(5, 8, 14, .9));
  color: color-mix(in srgb, var(--product-accent) 78%, #fff);
  font: 750 9px/1 var(--mono);
  letter-spacing: .05em;
}

.product-dashboard-card header > span:nth-child(2) { min-width: 0; }
.product-dashboard-card header small,
.product-dashboard-card header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-dashboard-card header small { color: color-mix(in srgb, var(--product-accent) 68%, #777c89); font: 700 7px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.product-dashboard-card header strong { margin-top: 5px; color: #f5f3f7; font: 700 14px/1 var(--display); }
.product-dashboard-card header em { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); border-radius: 999px; background: rgba(5, 8, 14, .55); color: #656a78; font: 650 7px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.product-dashboard-card header em::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }

.product-dashboard-card[data-state="good"] header em { color: var(--teal); }
.product-dashboard-card[data-state="attention"] header em { color: var(--product-accent); }
.product-dashboard-card[data-state="danger"] header em { color: #fb7185; }
.product-dashboard-card[data-state="danger"] { border-color: rgba(251, 113, 133, .2); }

/* Readout band: the hero number shares a baseline with its label, and the
   secondaries sit directly beneath under a single hairline — one instrument
   readout, not three stacked strips. */
.product-dashboard-primary { display: flex; align-items: baseline; gap: 9px; margin: 14px 2px 11px; }
.product-dashboard-primary strong { color: #fff; font: 760 clamp(26px, 2.8vw, 34px)/.85 var(--display); letter-spacing: -.03em; }
.product-dashboard-primary span { color: #6f7482; font: 650 7px/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }

.product-dashboard-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-block: 11px 13px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.product-dashboard-card dl > div { min-width: 0; }
.product-dashboard-card dl > div + div { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .07); }
.product-dashboard-card dt { overflow: hidden; color: #5f6472; font: 650 7px/1 var(--mono); letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-dashboard-card dd { margin-top: 6px; overflow: hidden; color: #d6d4db; font: 700 12px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.product-dashboard-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); color: #686d7a; font: 600 8px/1 var(--mono); letter-spacing: .025em; }
.product-dashboard-card footer span { color: color-mix(in srgb, var(--product-accent) 74%, #fff); font-size: 11px; }
.product-dashboard-card:hover footer { color: #a6a9b3; }

/* Awaiting data is a designed state, not a broken one: placeholders ghost
   and breathe instead of shouting a 40px dash. */
.product-dashboard-card[data-state="unknown"] .product-dashboard-primary strong,
.product-dashboard-card[data-state="unknown"] dd {
  color: rgba(206, 209, 228, .16);
  animation: product-card-ghost 2.6s ease-in-out infinite;
}
@keyframes product-card-ghost { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .product-dashboard-card[data-state="unknown"] .product-dashboard-primary strong,
  .product-dashboard-card[data-state="unknown"] dd { animation: none; }
}

.account-org-picker {
  width: min(280px, 42%);
  display: grid;
  gap: 7px;
  color: #747987;
  font: 650 8.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-org-picker.compact { width: min(260px, 40%); }

.account-org-picker select,
.account-form input,
.account-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(5, 8, 14, .8);
  color: #eeedf1;
  padding: 0 11px;
  outline: none;
  font: 560 11px/1 var(--sans);
}

.account-org-picker select:focus,
.account-form input:focus,
.account-form select:focus { border-color: rgba(185, 138, 255, .6); box-shadow: 0 0 0 3px rgba(185, 138, 255, .08); }

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: rgba(10, 14, 23, .75);
}

.account-stats article { min-width: 0; padding: 17px 19px; }
.account-stats article + article { border-left: 1px solid var(--panel-border); }
.account-stats span,
.account-stats strong,
.account-stats small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-stats span { color: #707583; font: 650 8px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.account-stats strong { margin-top: 10px; color: #fff; font: 720 22px/1 var(--display); text-transform: capitalize; }
.account-stats small { margin-top: 7px; color: #717684; font: 500 9px/1.2 var(--sans); }

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.account-panel-head h2 { margin-top: 8px; }
.account-panel-head > p { width: min(340px, 42%); color: #6f7482; font: 500 9px/1.45 var(--mono); text-align: right; }

.account-action-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.account-action-grid a {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
  transition: transform .16s var(--ease), border-color .16s, background .16s;
}

.account-action-grid a:hover,
.account-action-grid a:focus-visible { transform: translateY(-1px); border-color: rgba(185, 138, 255, .3); background: rgba(185, 138, 255, .055); }
.account-action-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(185, 138, 255, .22); border-radius: 9px; background: rgba(117, 108, 255, .08); color: #d9c5ff; font: 700 13px/1 var(--mono); }
.account-action-grid a > span:nth-child(2) { min-width: 0; }
.account-action-grid strong,
.account-action-grid small { display: block; }
.account-action-grid strong { color: #f1f0f4; font: 650 12px/1.2 var(--sans); }
.account-action-grid small { margin-top: 5px; overflow: hidden; color: #777c89; font: 500 9px/1.3 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.account-action-grid i { color: #858a98; font: 700 11px/1 var(--mono); font-style: normal; }

.billing-summary,
.org-summary,
.settings-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.billing-summary > div:first-child,
.org-summary > div:first-child,
.settings-identity > div:first-child { min-width: 0; }

.billing-balance {
  min-width: 230px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  text-align: right;
}
.billing-balance span,
.billing-balance strong,
.billing-balance small { display: block; }
.billing-balance span { color: #747987; font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.billing-balance strong { margin-top: 8px; color: #fff; font: 750 32px/1 var(--display); }
.billing-balance small { margin-top: 7px; color: #737886; font: 500 9px/1.3 var(--sans); }

.account-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.account-form { display: flex; flex-direction: column; align-items: stretch; }
.account-form label { display: grid; gap: 7px; margin-top: 14px; color: #858a98; font: 600 9px/1 var(--sans); }
.account-form label small { margin-left: 4px; color: #656a78; font-size: 8px; }
.account-form button:last-of-type { margin-top: auto; }
.compact-form button:last-of-type { margin-top: 14px; }

.account-preset-row { display: flex; gap: 6px; margin-top: 15px; }
.account-preset-row button,
.account-text-button {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  color: #aaaeba;
  cursor: pointer;
  font: 650 9px/1 var(--mono);
}
.account-preset-row button { min-height: 30px; padding: 0 11px; }
.account-preset-row button:hover,
.account-text-button:hover { color: #fff; border-color: rgba(185, 138, 255, .32); background: rgba(185, 138, 255, .065); }

.account-primary,
.account-secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  font: 650 11px/1 var(--sans);
  cursor: pointer;
}

.account-primary { border: 1px solid rgba(185, 138, 255, .35); background: linear-gradient(145deg, #655cde, #8a69d9 62%, #b45c98); box-shadow: 0 9px 28px rgba(117, 108, 255, .13); }
.account-secondary { border: 1px solid rgba(185, 138, 255, .22); background: rgba(185, 138, 255, .07); }
.account-primary:hover,
.account-secondary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.account-primary:disabled,
.account-secondary:disabled,
.account-form input:disabled,
.account-form select:disabled { opacity: .43; cursor: not-allowed; transform: none; }
.support-contact { margin-top: 0; white-space: nowrap; }

.account-text-button { min-height: 30px; flex: 0 0 auto; padding: 0 10px; }
.account-text-link { display: inline-block; margin-top: 15px; color: #d9c9f7; font: 650 10px/1.3 var(--sans); }
.account-text-link:hover { color: #fff; }
.account-feedback { min-height: 1.35em; margin-top: 11px !important; color: #727785 !important; font: 500 9px/1.45 var(--mono) !important; }
.account-feedback[data-tone="error"] { color: #fb8ca0 !important; }
.account-feedback[data-tone="good"] { color: #62dacb !important; }
.account-notice { padding: 12px 14px; border: 1px solid rgba(49, 215, 194, .2); border-radius: 9px; background: rgba(49, 215, 194, .055); color: #b7dcd7; font: 550 10px/1.45 var(--sans); }
.account-notice[data-tone="warning"] { border-color: rgba(251, 191, 36, .25); background: rgba(251, 191, 36, .055); color: #e4cea0; }

.account-table-wrap { max-width: 100%; overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.account-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: #666b79; font: 650 8px/1 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.account-table td { max-width: 320px; padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, .045); overflow: hidden; color: #a7aab4; text-overflow: ellipsis; white-space: nowrap; }
.account-table td code { color: #7f8492; font: 500 9px/1 var(--mono); }
.account-table .credit { color: #65d9ca; }
.account-table .debit { color: #d7a7b2; }

.org-meta { min-width: 210px; display: grid; justify-items: end; gap: 9px; }
.org-meta span { padding: 6px 9px; border: 1px solid rgba(49, 215, 194, .2); border-radius: 999px; background: rgba(49, 215, 194, .055); color: #86dfd4; font: 650 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.org-meta code { color: #777c89; font: 550 9px/1 var(--mono); }
.org-columns { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }

.member-list,
.pending-invites { display: grid; }
.member-row,
.invite-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.member-row:first-child,
.invite-row:first-child { border-top: 0; }
.member-row strong,
.member-row small,
.invite-row strong,
.invite-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row strong,
.invite-row strong { color: #d9d8dd; font: 600 10px/1.2 var(--sans); }
.member-row small,
.invite-row small { margin-top: 4px; color: #6f7482; font: 500 8px/1.2 var(--mono); }
.member-row span,
.invite-row span { padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; color: #8d92a0; font: 650 7.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.settings-actions .account-secondary { min-height: 36px; margin: 0; }
.account-list { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 18px; color: #8d919e; font-size: 10px; line-height: 1.5; }
.danger-kicker { color: #fb7185 !important; }
.danger-outline { border-color: rgba(251, 113, 133, .24); background: rgba(251, 113, 133, .055); }

/* Deletion consent + app-tier blocks (billing/settings panels). */
.account-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px; color: #858a98; font: 500 12px/1.55 var(--sans);
}
.account-check input { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.account-tier h3 { font: 650 13.5px/1.3 var(--sans); }
.account-tier h3 span { color: #31d7c2; }
.account-tier p { margin: 8px 0 12px; color: #858a98; font-size: 12.5px; line-height: 1.55; }
.license-device-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #858a98; }
.license-slots { font-size: 11px; color: #656a78; margin-bottom: 4px; }

.support-grid a {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
}
.support-grid a:hover,
.support-grid a:focus-visible { border-color: rgba(185, 138, 255, .3); background: rgba(185, 138, 255, .05); }
.support-grid a > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(117, 108, 255, .09); color: #d8c6fb; font: 700 12px/1 var(--mono); }
.support-grid strong { align-self: end; color: #e9e8ed; font: 650 11px/1.2 var(--sans); }
.support-grid small { align-self: start; overflow: hidden; color: #747987; font: 500 8.5px/1.3 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.support-resource { min-height: 190px; }

.portal-toast {
  position: fixed;
  z-index: 180;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(49, 215, 194, .28);
  border-radius: 9px;
  background: rgba(12, 17, 27, .97);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
  color: #d8d7dc;
  font: 560 10px/1.45 var(--sans);
}
.portal-toast[data-tone="error"] { border-color: rgba(251, 113, 133, .34); color: #ffd2db; }

/* ================= palette refinements ================= */
.veil { background: rgba(3, 5, 10, .76); }
.palette {
  top: 13vh;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(18, 24, 40, .99), rgba(8, 11, 19, .99));
}
.palette input { padding: 18px; }
.p-item { border-radius: 8px; }
.p-item img { width: 34px; height: 34px; border-radius: 8px; }

/* ================= responsive ================= */
/* Above the drawer breakpoint the rail is always on screen, so its scope picker
   is the single organization control and the per-view copies stand down. */
@media (min-width: 1181px) {
  .account-org-picker { display: none; }
}

@media (max-width: 1180px) {
  .rail-scope { display: none; }
}

@media (max-width: 1230px) {
  .dashboard-grid { grid-template-columns: minmax(500px, 1fr) 304px; }
  .card .c-art { height: 196px; }
}

@media (max-width: 1180px) {
  .control-rail {
    position: fixed;
    z-index: 82;
    inset: 0 auto 0 0;
    width: min(286px, calc(100vw - 44px));
    min-height: 100svh;
    display: flex;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform .22s var(--ease), visibility .22s;
  }
  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open .control-rail {
    pointer-events: auto;
    visibility: visible;
    transform: none;
  }
  .mobile-nav-toggle,
  .mobile-nav-close { display: grid; }
  .mobile-nav-backdrop {
    position: fixed;
    z-index: 81;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(3, 5, 10, .72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    cursor: default;
  }
  .topbar-mobile-brand { display: flex; padding-right: 14px; border-right: 1px solid var(--line); }
  .topbar-mobile-brand .brand-mark { width: 30px; height: 30px; }
  .topbar-mobile-brand .brand-lockup small { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  }
  .card .c-art { height: 100%; min-height: 270px; }
  .card .c-body { min-height: 270px; }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .sky { height: 610px; }
}

@media (min-width: 581px) and (max-width: 680px) {
  .js #field,
  .js .orbits { display: block; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .portal-main { min-height: 100svh; height: auto; }
  .topbar { position: sticky; top: 0; padding-inline: 14px; }
  .topbar-mobile-brand { padding-right: 10px; }
  .topbar-mobile-brand .brand-lockup { display: none; }
  .console-breadcrumb,
  .topbar-link,
  .command-open-label { display: none; }
  .command-open { width: 38px; padding: 0; }
  .command-open kbd { display: none; }
  .topbar-actions { gap: 4px; }
  .topbar-signal { width: 36px; min-width: 36px; padding: 0 4px; gap: 3px; }
  .franz-flag { width: 50px; min-width: 50px; }
  .finn-flag,
  .sage-flag { width: 46px; min-width: 46px; }
  .portal-workspace { overflow: visible; padding: 18px 14px 28px; }
  .view-head { align-items: flex-start; }
  .view-head h1 { font-size: 27px; }
  .view-head p { font-size: 12px; }
  .catalog-count { display: none; }
  .signal-head { align-items: center; }
  .signal-head > div { min-width: 0; }
  .signal-status { max-width: 48%; }
  .quick-launch,
  .quick-launch[data-count="1"],
  .quick-launch[data-count="2"] { grid-template-columns: minmax(0, 1fr); }
  .quick-launch-item { min-height: 106px; }
  .quick-launch-item + .quick-launch-item { border-top: 1px solid var(--panel-border); border-left: 0; }
  .signal-skeleton { min-height: 92px; }
  .signal-skeleton + .signal-skeleton { border-top: 1px solid var(--panel-border); border-left: 0; }
  .sky,
  .js .sky { height: 520px; min-height: 520px; padding: 0; }
  .network-head { padding: 16px; }
  .catalog-note { display: none; }
  .network-legend { right: 10px; bottom: 10px; gap: 8px; }
  .card { display: flex; min-height: 0; }
  .card .c-art { height: 230px; min-height: 0; }
  .card .c-body { min-height: 0; }
  .learning-head { display: block; }
  .learning-head p { width: auto; margin-top: 9px; text-align: left; }
  .learning-grid,
  .learning-grid.is-pair { grid-template-columns: minmax(0, 1fr); }
  .account-hero,
  .billing-summary,
  .org-summary,
  .settings-identity { align-items: flex-start; flex-direction: column; }
  .account-org-picker,
  .account-org-picker.compact { width: 100%; }
  .account-stats { grid-template-columns: minmax(0, 1fr); }
  .account-stats article + article { border-top: 1px solid var(--panel-border); border-left: 0; }
  .account-two-col,
  .org-columns,
  .account-action-grid,
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .billing-balance { width: 100%; min-width: 0; padding: 17px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .org-meta { min-width: 0; justify-items: start; }
  .settings-actions { justify-content: flex-start; }
  .account-panel-head > p { width: auto; text-align: left; }
  .account-panel-head { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .topbar-mobile-brand,
  .console-breadcrumb { display: none; }
  .topbar { gap: 8px; padding-inline: 8px; }
  .topbar-actions { gap: 2px; }
  .topbar-signal { width: 32px; min-width: 32px; min-height: 34px; padding: 0 2px; gap: 2px; }
  .franz-flag,
  .finn-flag,
  .sage-flag { width: 42px; min-width: 42px; }
  .command-open { width: 34px; min-height: 34px; }
}

@media (max-width: 580px) {
  .topbar-actions {
    flex: 1 1 auto;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .topbar-actions::-webkit-scrollbar { display: none; }
  .command-open {
    position: sticky;
    z-index: 2;
    left: 0;
    order: -1;
    flex: 0 0 auto;
    background: #090d16;
  }
  .quick-launch-item { padding-inline: 14px; }
  .quick-launch-item::before { left: 14px; }
  .dashboard-grid { display: block; }
  .sky,
  .js .sky { height: 330px; min-height: 330px; padding: 0; }
  .js #field,
  .js .orbits { display: none; }
  .sky::before { opacity: .76; background-position: 70% 58%; }
  .sky::after { opacity: .18; }
  .network-legend { display: none; }
  .mobile-network-art {
    position: absolute;
    z-index: 6;
    inset: 82px 0 0;
    display: flex;
    align-items: end;
    padding: 18px;
    background: linear-gradient(180deg, transparent 28%, rgba(5, 7, 16, .72));
    color: #ddd9e7;
    font: 650 10px/1.4 var(--mono);
    letter-spacing: .05em;
  }
  .card { display: none; }
  .mlist { display: grid; grid-template-columns: minmax(0, 1fr); }
  .mlist a { grid-template-columns: 108px minmax(0, 1fr); }
  .mlist a.m-satellite { grid-template-columns: 46px minmax(0, 1fr); margin-left: 16px; }
  .mlist .m-art { width: 108px; }
  .learning-hub { padding: 14px; }
  .account-panel { padding: 16px; }
  .account-action-grid small,
  .support-grid small { white-space: normal; }
  .account-hero-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .portal-toast { right: 16px; bottom: 16px; }
  .p-item span { display: none; }
}

@media (max-width: 1040px) {
  .overview-identity-bar {
    grid-template-columns: minmax(210px, 1fr) minmax(210px, .72fr);
  }
  .overview-account-facts {
    grid-column: 1 / -1;
    grid-row: 2;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 9px;
  }
  .overview-account-facts > div { padding-block: 11px; }
  .product-dashboard-card,
  .product-dashboard-card:nth-last-child(-n+2) { grid-column: span 6; }
}

@media (max-width: 760px) {
  .account-overview-head { align-items: flex-end; }
  .overview-identity-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .overview-identity-bar .account-hero-identity { width: 100%; }
  .overview-account-facts { grid-column: auto; grid-row: auto; width: 100%; }
  .overview-pulse { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-dashboard-card,
  .product-dashboard-card:nth-last-child(-n+2) { grid-column: span 12; }
}

@media (max-width: 480px) {
  .overview-account-facts { grid-template-columns: minmax(0, 1fr); }
  .overview-account-facts > div { padding: 11px 13px; }
  .overview-account-facts > div + div { border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
  .overview-pulse { min-height: 0; padding: 21px 17px; }
  .overview-pulse-stats { grid-template-columns: minmax(0, 1fr); }
  .overview-pulse-stats > div + div { border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
  .product-dashboard-card { min-height: 218px; --card-pad: 16px; }
}

/* Overview instrument — informed by the parent site's editorial scale,
   orbital geometry, and continuous product lines. All forms are CSS-native. */
.overview-stage {
  min-height: 500px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 28px 24px;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 0;
  border-inline: 0;
  background:
    radial-gradient(44rem 32rem at 82% 48%, rgba(117, 108, 255, .12), transparent 68%),
    linear-gradient(90deg, rgba(3, 5, 10, .98), rgba(7, 9, 16, .94) 54%, rgba(8, 10, 18, .88));
  box-shadow: none;
}

.overview-stage::before {
  inset: 0;
  background:
    linear-gradient(rgba(174, 164, 193, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 164, 193, .027) 1px, transparent 1px),
    linear-gradient(rgba(117, 108, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 108, 255, .045) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 80px 80px, 80px 80px;
  -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .36) 54%, transparent);
  mask: linear-gradient(90deg, #000, rgba(0, 0, 0, .36) 54%, transparent);
}

.overview-stage::after {
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), rgba(49, 215, 194, .34), transparent);
  box-shadow: 0 0 22px rgba(117, 108, 255, .34);
  transform: none;
}

.overview-stage .overview-pulse-copy {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: center;
}

.overview-stage .overview-pulse-copy h2 {
  max-width: 590px;
  margin-top: 18px;
  font: 780 clamp(45px, 5vw, 68px)/.91 var(--display);
  letter-spacing: -.052em;
}

.overview-stage .overview-pulse-copy h2 span,
.overview-stage .overview-pulse-copy h2 em { display: block; }
.overview-stage .overview-pulse-copy h2 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(105deg, #b999ff 0%, #8f80ff 46%, #50d3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.overview-stage-lede {
  max-width: 510px;
  margin: 23px 0 0;
  color: #a4a7b1;
  font-size: 14px;
  line-height: 1.7;
}

.overview-generated {
  margin-top: 20px !important;
  color: #5f6472 !important;
  font: 600 8px/1.4 var(--mono) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.overview-stage .overview-pulse-stats {
  grid-column: 1 / 7;
  grid-row: 2;
  align-self: end;
  border-inline: 0;
  border-radius: 0;
  background: rgba(3, 5, 10, .46);
}

.overview-orbit {
  --orbit-radius: clamp(128px, 15vw, 170px);
  position: relative;
  grid-column: 7 / 13;
  grid-row: 1 / 3;
  width: 100%;
  height: 420px;
  align-self: center;
}

.overview-orbit::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 108, 255, .17), transparent 18%),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(49, 215, 194, .025) 65%, transparent 66%);
  filter: blur(.1px);
}

.overview-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(185, 138, 255, .13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.overview-orbit-ring::before,
.overview-orbit-ring::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(49, 215, 194, .38);
  background: #070a12;
  transform: rotate(45deg);
}

.overview-orbit-ring::before { top: 13%; left: 13%; }
.overview-orbit-ring::after { right: 8%; bottom: 22%; }
.overview-orbit-ring.ring-one { width: 350px; height: 350px; }
.overview-orbit-ring.ring-one { animation: overview-orbit-drift 54s linear infinite; }
.overview-orbit-ring.ring-two { width: 246px; height: 246px; border-color: rgba(49, 215, 194, .085); animation: overview-orbit-drift 39s linear infinite reverse; }
.overview-orbit-ring.ring-three { width: 144px; height: 144px; border-color: rgba(255, 255, 255, .075); }

@keyframes overview-orbit-drift {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.overview-orbit-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: translate(-50%, -50%);
}

.overview-orbit-axis.axis-x { width: min(92%, 440px); height: 1px; }
.overview-orbit-axis.axis-y { width: 1px; height: min(92%, 440px); background: linear-gradient(transparent, rgba(255, 255, 255, .07), transparent); }

.overview-orbit-core {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(185, 138, 255, .34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 108, 255, .19), rgba(7, 9, 16, .94) 62%);
  box-shadow: 0 0 42px rgba(117, 108, 255, .13), inset 0 0 24px rgba(185, 138, 255, .07);
  transform: translate(-50%, -50%);
}

.overview-orbit-core::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(49, 215, 194, .15);
  border-radius: 50%;
  transform: rotate(17deg);
}

.overview-orbit-core strong { color: #fff; font: 780 37px/.9 var(--display); letter-spacing: -.04em; }
.overview-orbit-core small { margin-top: 8px; color: #777b88; font: 650 6.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.overview-orbit-node {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #707582;
  opacity: .34;
  transform: translate(-50%, -50%) rotate(var(--node-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--node-angle)));
  transition: color .2s, opacity .2s;
}

.overview-orbit-node i {
  width: 9px;
  height: 9px;
  border: 1px solid color-mix(in srgb, var(--node-accent) 62%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--node-accent) 24%, #070a12);
  box-shadow: 0 0 10px color-mix(in srgb, var(--node-accent) 34%, transparent);
}

.overview-orbit-node small { font: 650 6.5px/1 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.overview-orbit-node[data-state="unknown"] { opacity: .34; }
.overview-orbit-node[data-state="good"] { color: #9a9eaa; opacity: .82; }
.overview-orbit-node[data-state="attention"],
.overview-orbit-node[data-state="danger"] { color: color-mix(in srgb, var(--node-accent) 74%, #fff); }
.overview-orbit-node[data-state="attention"] i,
.overview-orbit-node[data-state="danger"] i { background: var(--node-accent); box-shadow: 0 0 8px var(--node-accent), 0 0 22px color-mix(in srgb, var(--node-accent) 62%, transparent); }

.overview-orbit-coordinate {
  position: absolute;
  color: #4d5260;
  font: 600 6.5px/1 var(--mono);
  letter-spacing: .14em;
}
.overview-orbit-coordinate.coord-a { top: 8%; left: 8%; }
.overview-orbit-coordinate.coord-b { right: 7%; bottom: 8%; }

.product-ledger { margin-top: 26px; }
.product-ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  align-items: end;
  gap: 34px;
  padding: 34px 0 28px;
}
.product-ledger-head .overview-index { margin-bottom: 13px; }
.product-ledger-head h2 { color: #f8f7fa; font: 760 clamp(34px, 4vw, 50px)/.96 var(--display); letter-spacing: -.045em; }
.product-ledger-head > p { margin: 0 0 5px; padding-left: 20px; border-left: 1px solid rgba(185, 138, 255, .36); color: #858995; font-size: 11px; line-height: 1.6; }

.product-ledger-columns {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(160px, .76fr) minmax(260px, 1.2fr) minmax(150px, .7fr);
  gap: 24px;
  padding: 0 16px 12px;
  color: #505562;
  font: 650 7px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-ledger .product-dashboard {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.product-ledger .product-dashboard-card,
.product-ledger .product-dashboard-card:nth-last-child(-n+2) {
  grid-column: auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(160px, .76fr) minmax(260px, 1.2fr) minmax(150px, .7fr);
  align-items: center;
  gap: 24px;
  padding: 13px 16px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .24s, transform .24s var(--ease);
}

.product-ledger .product-dashboard-card::before {
  z-index: 2;
  top: 18%;
  bottom: 18%;
  left: 0;
  right: auto;
  width: 2px;
  height: auto;
  background: var(--product-accent);
  opacity: 0;
  transform: scaleY(.25);
  transition: opacity .2s, transform .25s var(--ease);
}

.product-ledger .product-dashboard-card::after { display: none; }
.product-ledger .product-dashboard-card:hover,
.product-ledger .product-dashboard-card:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(90deg, color-mix(in srgb, var(--product-accent) 10%, transparent), color-mix(in srgb, var(--product-accent) 2%, transparent) 62%, transparent);
  box-shadow: none;
}
.product-ledger .product-dashboard-card:hover::before,
.product-ledger .product-dashboard-card:focus-visible::before,
.product-ledger .product-dashboard-card[data-state="attention"]::before,
.product-ledger .product-dashboard-card[data-state="danger"]::before { opacity: 1; transform: scaleY(1); }

.product-ledger .product-dashboard-card > header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.product-ledger .product-dashboard-mark { display: none; }
.product-ledger .product-dashboard-card header > span:nth-child(2) { grid-column: 1; }
.product-ledger .product-dashboard-card header small { color: color-mix(in srgb, var(--product-accent) 70%, #777c89); font-size: 7px; }
.product-ledger .product-dashboard-card header strong { margin-top: 7px; color: #f7f6f9; font: 730 clamp(20px, 2.2vw, 28px)/.9 var(--display); letter-spacing: -.035em; transition: color .22s, transform .3s var(--ease); }
.product-ledger .product-dashboard-card header em { grid-column: 2; grid-row: 1; align-self: center; }
.product-ledger .product-dashboard-card:hover header strong { color: color-mix(in srgb, var(--product-accent) 74%, #fff); transform: translateX(8px); }

.product-ledger .product-dashboard-primary { margin: 0; }
.product-ledger .product-dashboard-primary strong { font: 750 clamp(22px, 2.7vw, 31px)/.9 var(--display); letter-spacing: -.03em; }
.product-ledger .product-dashboard-primary span { margin-top: 7px; color: #686d7a; font-size: 8px; }

.product-ledger .product-dashboard-card dl {
  margin: 0;
  padding: 0;
  border: 0;
}
.product-ledger .product-dashboard-card dl > div + div { padding-left: 18px; }
.product-ledger .product-dashboard-card dt { font-size: 6.5px; }
.product-ledger .product-dashboard-card dd { margin-top: 7px; color: #c3c1c9; font-size: 10px; }
.product-ledger .product-dashboard-card footer {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  color: #686d79;
  line-height: 1.4;
}
.product-ledger .product-dashboard-card footer span { flex: 0 0 auto; }

@media (max-width: 1040px) {
  .overview-stage { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .overview-stage .overview-pulse-copy,
  .overview-stage .overview-pulse-stats,
  .overview-orbit { grid-column: 1; grid-row: auto; }
  .overview-stage .overview-pulse-copy { max-width: 680px; }
  .overview-orbit { --orbit-radius: 150px; width: min(100%, 600px); height: 390px; justify-self: center; }
  .overview-stage .overview-pulse-stats { width: 100%; }
  .product-ledger-columns,
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) {
    grid-template-columns: minmax(210px, 1fr) minmax(140px, .7fr) minmax(230px, 1fr) 54px;
    gap: 18px;
  }
  .product-ledger-columns span:last-child { font-size: 0; }
  .product-ledger-columns span:last-child::after { content: "Open"; font-size: 7px; }
  .product-ledger .product-dashboard-card footer { justify-content: flex-end; font-size: 0; }
  .product-ledger .product-dashboard-card footer span { font-size: 12px; }
}

@media (max-width: 760px) {
  .overview-stage { padding: 30px 18px; }
  .overview-stage .overview-pulse-copy h2 { font-size: clamp(43px, 12vw, 62px); }
  .overview-orbit { --orbit-radius: 132px; height: 340px; }
  .overview-orbit-ring.ring-one { width: 282px; height: 282px; }
  .overview-orbit-ring.ring-two { width: 204px; height: 204px; }
  .overview-orbit-ring.ring-three { width: 124px; height: 124px; }
  .overview-orbit-core { width: 96px; height: 96px; }
  .overview-orbit-core strong { font-size: 31px; }
  .product-ledger-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-ledger-head > p { max-width: 520px; }
  .product-ledger-columns { display: none; }
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) {
    min-height: 128px;
    grid-template-columns: minmax(0, 1fr) minmax(110px, .65fr);
    gap: 16px 20px;
    padding-block: 18px;
  }
  .product-ledger .product-dashboard-card > header { grid-column: 1; grid-row: 1; }
  .product-ledger .product-dashboard-primary { grid-column: 2; grid-row: 1; text-align: right; }
  .product-ledger .product-dashboard-card dl { grid-column: 1; grid-row: 2; }
  .product-ledger .product-dashboard-card footer { grid-column: 2; grid-row: 2; }
}

@media (max-width: 480px) {
  .overview-stage .overview-pulse-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-stage .overview-pulse-stats > div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .075); }
  .overview-stage .overview-pulse-stats > div { padding: 13px 9px; }
  .overview-stage .overview-pulse-stats small { display: none; }
  .overview-orbit { --orbit-radius: 112px; height: 290px; }
  .overview-orbit-ring.ring-one { width: 240px; height: 240px; }
  .overview-orbit-ring.ring-two { width: 174px; height: 174px; }
  .overview-orbit-ring.ring-three { width: 112px; height: 112px; }
  .overview-orbit-node small { display: none; }
  .overview-orbit-coordinate { display: none; }
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .product-ledger .product-dashboard-card > header,
  .product-ledger .product-dashboard-primary,
  .product-ledger .product-dashboard-card dl,
  .product-ledger .product-dashboard-card footer { grid-column: 1; grid-row: auto; text-align: left; }
  .product-ledger .product-dashboard-card footer { justify-content: space-between; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .07); border-left: 0; font-size: 8px; }
  .product-ledger .product-dashboard-card footer span { font-size: 11px; }
}

/* Compact operating dashboard: repeated measures and small multiples over spectacle. */
.overview-dashboard-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .62fr) minmax(520px, 1.7fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(117, 108, 255, .07), transparent 34%),
    rgba(7, 10, 17, .88);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.overview-dashboard-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 100% 24px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 54%);
  mask: linear-gradient(90deg, #000, transparent 54%);
}

.overview-summary-heading {
  position: relative;
  min-width: 0;
  padding: 17px 19px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.overview-summary-heading .panel-kicker,
.product-ledger-head .panel-kicker {
  display: block;
  color: #8c82ff;
  font: 700 7px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.overview-summary-heading h2 {
  margin-top: 8px;
  color: #f7f6f9;
  font: 730 20px/1 var(--display);
  letter-spacing: -.025em;
}

.overview-summary-heading p {
  margin-top: 9px;
  color: #626775;
  font: 600 7.5px/1.35 var(--mono);
  letter-spacing: .04em;
}

.overview-dashboard-summary .overview-pulse-stats {
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.overview-dashboard-summary .overview-pulse-stats > div {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 14px 18px;
}

.overview-dashboard-summary .overview-pulse-stats span { grid-column: 1; grid-row: 1; }
.overview-dashboard-summary .overview-pulse-stats strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}
.overview-dashboard-summary .overview-pulse-stats small { grid-column: 1; grid-row: 2; }
.overview-dashboard-summary .overview-pulse-stats > div:nth-child(2) strong { color: #f8a9b1; }
.overview-dashboard-summary .overview-pulse-stats > div:nth-child(3) strong { color: #8a8f9d; }

.overview-signal-field {
  position: relative;
  grid-column: 1 / -1;
  height: 138px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 23px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / calc(100% / 11) 100%,
    #060910;
}

.overview-signal-field-head {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  color: #575c69;
  font: 650 6.5px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.overview-signal-field-head small { font: inherit; letter-spacing: .06em; text-transform: none; }

#overviewSignalFieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.overview-state-map {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 1px;
  padding: 0 1px 1px;
  background: rgba(255, 255, 255, .055);
}

.overview-state-map > span {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px 9px 8px;
  background: rgba(8, 11, 18, .9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.overview-state-map i {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
}

.overview-state-map i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--node-accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--node-accent) 54%, transparent);
  transform: scaleX(.08);
  transform-origin: left;
  opacity: .35;
  transition: transform .3s var(--ease), opacity .2s;
}

.overview-state-map small {
  overflow: hidden;
  color: #5d6270;
  font: 650 6.5px/1 var(--mono);
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.overview-state-map [data-state="good"] i::after { transform: scaleX(.62); opacity: .72; }
.overview-state-map [data-state="attention"] i::after { transform: scaleX(.84); opacity: .9; }
.overview-state-map [data-state="danger"] i::after { transform: scaleX(1); opacity: 1; }
.overview-state-map [data-state="good"] small,
.overview-state-map [data-state="attention"] small,
.overview-state-map [data-state="danger"] small { color: #989ca7; }

.product-ledger { margin-top: 8px; }
.product-ledger-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 19px 0 13px;
}
.product-ledger-head h2 {
  margin-top: 7px;
  font: 730 22px/1 var(--display);
  letter-spacing: -.025em;
}

.product-ledger-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-ledger-tools button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  color: #737886;
  font: 650 7px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}

.product-ledger-tools button:hover,
.product-ledger-tools button:focus-visible {
  outline: none;
  border-color: rgba(117, 108, 255, .48);
  color: #dedbe5;
}

.product-ledger-tools button.active {
  border-color: rgba(117, 108, 255, .58);
  background: rgba(117, 108, 255, .12);
  color: #f3f0f7;
}

.product-ledger-tools button span {
  color: #aaa1ff;
  font-variant-numeric: tabular-nums;
}

.product-ledger-tools .sample-toggle {
  margin-left: 6px;
  border-style: dashed;
}

.product-ledger-tools .sample-toggle.active {
  border-style: solid;
  border-color: rgba(251, 191, 36, .5);
  background: rgba(251, 191, 36, .09);
  color: #fbe4a8;
}

.product-ledger .product-dashboard-card[hidden] { display: none; }
.product-ledger .product-dashboard-card,
.product-ledger .product-dashboard-card:nth-last-child(-n+2) {
  min-height: 78px;
  padding-block: 10px;
}
.product-ledger .product-dashboard-card header strong { font-size: clamp(17px, 1.7vw, 21px); }
.product-ledger .product-dashboard-primary strong {
  font-size: clamp(20px, 2vw, 25px);
  font-variant-numeric: tabular-nums;
}
.product-ledger .product-dashboard-card dd { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .overview-dashboard-summary { grid-template-columns: minmax(0, 1fr); }
  .overview-summary-heading { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .overview-signal-field { grid-column: 1; }
  .overview-state-map > span { padding-inline: 5px; }
  .overview-state-map small { font-size: 5.5px; letter-spacing: 0; }
}

@media (max-width: 760px) {
  .product-ledger-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-ledger-tools { overflow-x: auto; padding-bottom: 2px; }
  .product-ledger-tools button { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  .overview-dashboard-summary .overview-pulse-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-dashboard-summary .overview-pulse-stats > div { display: block; padding: 12px 10px; }
  .overview-dashboard-summary .overview-pulse-stats > div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .075); }
  .overview-dashboard-summary .overview-pulse-stats strong { margin-top: 8px; font-size: 22px; }
  .overview-dashboard-summary .overview-pulse-stats small { display: none; }
}

/* Cinematic product instruments: tactile visuals with the KPI still in command. */
.product-ledger-head > div > p {
  margin-top: 8px;
  color: #686d79;
  font: 520 9px/1.45 var(--sans);
}

.product-ledger-columns { display: none; }

.product-ledger .product-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
}

.product-ledger .product-dashboard-card,
.product-ledger .product-dashboard-card:nth-last-child(-n+2) {
  --viz-x: 0px;
  --viz-y: 0px;
  grid-column: span 4;
  min-height: 344px;
  display: grid;
  grid-template-columns: minmax(104px, .72fr) minmax(142px, 1.28fr);
  grid-template-rows: auto 132px auto auto;
  align-items: stretch;
  gap: 14px 13px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 13px;
  background:
    radial-gradient(22rem 13rem at 52% 32%, color-mix(in srgb, var(--product-accent) 10%, transparent), transparent 68%),
    linear-gradient(158deg, rgba(15, 19, 30, .97), rgba(5, 8, 14, .99));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .035),
    inset 0 -24px 48px rgba(0, 0, 0, .18),
    0 15px 38px rgba(0, 0, 0, .13);
  transition: transform .28s var(--ease), border-color .22s, box-shadow .28s, background .28s;
}

.product-ledger .product-dashboard-card:nth-last-child(-n+2) { grid-column: span 6; }

.product-ledger .product-dashboard-card::before {
  z-index: 4;
  top: 0;
  right: 15px;
  bottom: auto;
  left: 15px;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--product-accent), transparent);
  opacity: .58;
  transform: none;
}

.product-ledger .product-dashboard-card::after {
  display: block;
  z-index: -1;
  right: -68px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 18%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--product-accent) 7%, transparent), transparent 64%);
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--product-accent) 2.5%, transparent), 0 0 0 64px color-mix(in srgb, var(--product-accent) 1.5%, transparent);
  opacity: .72;
}

.product-ledger .product-dashboard-card:hover,
.product-ledger .product-dashboard-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--product-accent) 46%, rgba(255, 255, 255, .12));
  background:
    radial-gradient(24rem 14rem at 52% 31%, color-mix(in srgb, var(--product-accent) 15%, transparent), transparent 68%),
    linear-gradient(158deg, rgba(16, 20, 32, .98), rgba(5, 8, 14, .99));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .05),
    0 24px 52px rgba(0, 0, 0, .28),
    0 0 34px color-mix(in srgb, var(--product-accent) 8%, transparent);
}

.product-ledger .product-dashboard-card:hover::before,
.product-ledger .product-dashboard-card:focus-visible::before,
.product-ledger .product-dashboard-card[data-state="attention"]::before,
.product-ledger .product-dashboard-card[data-state="danger"]::before { opacity: .9; transform: none; }

.product-ledger .product-dashboard-card > header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.product-ledger .product-dashboard-mark {
  width: 34px;
  height: 34px;
  display: grid;
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 0 18px color-mix(in srgb, var(--product-accent) 9%, transparent);
}

.product-ledger .product-dashboard-card header > span:nth-child(2) { grid-column: 2; }
.product-ledger .product-dashboard-card header small { font-size: 6.5px; }
.product-ledger .product-dashboard-card header strong {
  margin-top: 6px;
  font: 730 18px/.9 var(--display);
  transition: color .22s, transform .3s var(--ease);
}
.product-ledger .product-dashboard-card header em {
  grid-column: 3;
  grid-row: 1;
  max-width: 98px;
  overflow: hidden;
  align-self: center;
  font-size: 6.25px;
  text-overflow: ellipsis;
}
.product-ledger .product-dashboard-card:hover header strong { color: color-mix(in srgb, var(--product-accent) 74%, #fff); transform: translateX(3px); }

.product-kpi-viz {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  height: 140px;
  /* Cinematic band: the scene bleeds to the card edges — no picture frame. */
  margin: 12px calc(var(--card-pad, 18px) * -1) 0;
  overflow: hidden;
  border-block: 1px solid color-mix(in srgb, var(--product-accent) 14%, rgba(255, 255, 255, .055));
  border-inline: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px) 0 0 / 28px 100%,
    rgba(3, 6, 11, .88);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), inset 0 -18px 35px rgba(0, 0, 0, .2);
}

.product-kpi-viz::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 47%, color-mix(in srgb, var(--product-accent) 13%, transparent) 50%, transparent 53%) -180px 0 / 180px 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 22%, transparent 76%, rgba(0, 0, 0, .16));
  mix-blend-mode: screen;
  opacity: .7;
  transition: background-position .8s var(--ease);
}

.product-dashboard-card:hover .product-kpi-viz::before,
.product-dashboard-card:focus-visible .product-kpi-viz::before { background-position: calc(100% + 180px) 0, 0 0; }

.product-kpi-viz canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translate3d(var(--viz-x), var(--viz-y), 0) scale(1.025);
  transform-origin: 50% 70%;
  transition: transform .18s ease-out, filter .24s;
}

.product-dashboard-card:hover .product-kpi-viz canvas,
.product-dashboard-card:focus-visible .product-kpi-viz canvas { filter: saturate(1.14) brightness(1.08); }

.product-kpi-viz figcaption {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: var(--card-pad, 12px);
  left: var(--card-pad, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  color: color-mix(in srgb, var(--product-accent) 72%, #8a8f9c);
  font: 700 6px/1 var(--mono);
  letter-spacing: .11em;
}

.product-kpi-viz figcaption span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 46%;
  overflow: hidden;
  color: #717684;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-kpi-viz figcaption span:last-child::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.product-kpi-viz[data-state="good"] figcaption span:last-child { color: var(--teal); }
.product-kpi-viz[data-state="attention"] figcaption span:last-child { color: var(--product-accent); }
.product-kpi-viz[data-state="danger"] figcaption span:last-child { color: #fb7185; }

.product-kpi-viz > i {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 8px;
  pointer-events: none;
  color: rgba(255, 255, 255, .24);
  font: 650 5.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.product-ledger .product-dashboard-primary {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
  margin: 0;
  padding: 0 2px;
}
.product-ledger .product-dashboard-primary strong { font: 760 clamp(27px, 2.6vw, 35px)/.88 var(--display); }
.product-ledger .product-dashboard-primary span { margin-top: 8px; font-size: 7.5px; line-height: 1.25; }

.product-ledger .product-dashboard-card dl {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .065);
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.product-ledger .product-dashboard-card dl > div + div { padding-left: 12px; }
.product-ledger .product-dashboard-card dt { font-size: 6px; }
.product-ledger .product-dashboard-card dd { margin-top: 7px; font-size: 9.5px; }

.product-ledger .product-dashboard-card footer {
  grid-column: 1 / -1;
  grid-row: 4;
  align-self: end;
  margin: 0;
  padding: 11px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, .065);
  border-left: 0;
  font-size: 7px;
}

@media (max-width: 1120px) {
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) { grid-column: span 6; }
}

@media (max-width: 720px) {
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) {
    grid-column: 1 / -1;
    min-height: 332px;
    grid-template-columns: minmax(100px, .66fr) minmax(150px, 1.34fr);
  }
}

@media (max-width: 420px) {
  .product-ledger .product-dashboard-card,
  .product-ledger .product-dashboard-card:nth-last-child(-n+2) {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    padding: 13px;
  }
  .product-ledger .product-dashboard-card header em { max-width: 72px; }
  .product-kpi-viz { height: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Ledger telemetry polish: the readout stacks its label (no caption
   wrap in narrow templates), and the instrument scene bleeds to the row
   edges as a cinematic band. Kept last so it wins the ledger cascade. --- */
.product-ledger .product-dashboard-card { --card-pad: 16px; }
.product-ledger .product-dashboard-primary { flex-direction: column; align-items: flex-start; gap: 7px; }
.product-ledger .product-dashboard-primary span { margin-top: 0; line-height: 1.5; }
.product-ledger .product-kpi-viz {
  margin: 6px calc(var(--card-pad) * -1);
  border-inline: 0;
  border-radius: 0;
}
@media (max-width: 420px) {
  .product-ledger .product-dashboard-card { --card-pad: 13px; }
}

/* ============================================================
   Instrument modules — the telemetry boxes stop being web cards
   and become rack hardware: chamfered faceplate, status facet in
   the cut corner, segmented LED rail, corner screws, calibration
   ruler, brushed metal, and a recessed CRT bezel for the scene.
   Appended last: this section owns the ledger card chrome.
   ============================================================ */
.product-ledger .product-dashboard-card,
.product-ledger .product-dashboard-card:nth-last-child(-n+2) {
  --chamfer: 16px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  background:
    /* corner screws (top-right corner is the cut, so three) */
    radial-gradient(circle 3.2px at 9px 9px, #242b3e 0 1.8px, rgba(255, 255, 255, .17) 2px 2.6px, transparent 2.8px),
    radial-gradient(circle 3.2px at 9px calc(100% - 9px), #242b3e 0 1.8px, rgba(255, 255, 255, .17) 2px 2.6px, transparent 2.8px),
    radial-gradient(circle 3.2px at calc(100% - 9px) calc(100% - 9px), #242b3e 0 1.8px, rgba(255, 255, 255, .17) 2px 2.6px, transparent 2.8px),
    /* calibration ruler etched along the top edge */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 8px) 18px 5px / calc(100% - 70px) 3px no-repeat,
    /* brushed faceplate grain */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .009) 0 1px, transparent 1px 3px),
    radial-gradient(20rem 14rem at 8% -4%, color-mix(in srgb, var(--product-accent) 7%, transparent), transparent 68%),
    linear-gradient(168deg, #10141f, #0a0d16 55%, #080b13);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 1px rgba(255, 255, 255, .05),
    inset 0 -14px 26px rgba(0, 0, 0, .3);
}
.product-ledger .product-dashboard-card[data-state="danger"],
.product-ledger .product-dashboard-card[data-state="danger"]:nth-last-child(-n+2) {
  box-shadow:
    inset 0 0 0 1px rgba(251, 113, 133, .26),
    inset 0 1px rgba(255, 255, 255, .04),
    inset 0 -14px 26px rgba(0, 0, 0, .3);
}
.product-ledger .product-dashboard-card:hover,
.product-ledger .product-dashboard-card:focus-visible {
  transform: none;
  background:
    radial-gradient(circle 3.2px at 9px 9px, #242b3e 0 1.8px, rgba(255, 255, 255, .2) 2px 2.6px, transparent 2.8px),
    radial-gradient(circle 3.2px at 9px calc(100% - 9px), #242b3e 0 1.8px, rgba(255, 255, 255, .2) 2px 2.6px, transparent 2.8px),
    radial-gradient(circle 3.2px at calc(100% - 9px) calc(100% - 9px), #242b3e 0 1.8px, rgba(255, 255, 255, .2) 2px 2.6px, transparent 2.8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 8px) 18px 5px / calc(100% - 70px) 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    radial-gradient(20rem 14rem at 8% -4%, color-mix(in srgb, var(--product-accent) 11%, transparent), transparent 68%),
    linear-gradient(168deg, #121627, #0b0e18 55%, #090c15);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--product-accent) 30%, rgba(255, 255, 255, .06)),
    inset 0 1px rgba(255, 255, 255, .06),
    inset 0 -14px 26px rgba(0, 0, 0, .3);
}

/* The LED rail: a segmented strip down the left edge, lit by state. */
.product-ledger .product-dashboard-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 14px;
  bottom: 14px;
  left: 0;
  right: auto;
  width: 3px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
  color: rgba(255, 255, 255, .1);
  background: repeating-linear-gradient(180deg, currentColor 0 5px, transparent 5px 9px);
  transition: color .25s, filter .25s;
}
.product-ledger .product-dashboard-card[data-state="good"]::before { color: color-mix(in srgb, var(--teal) 55%, transparent); }
.product-ledger .product-dashboard-card[data-state="attention"]::before { color: color-mix(in srgb, var(--product-accent) 78%, transparent); }
.product-ledger .product-dashboard-card[data-state="danger"]::before { color: rgba(251, 113, 133, .85); animation: module-blink 1.6s ease-in-out infinite; }
.product-ledger .product-dashboard-card:hover::before,
.product-ledger .product-dashboard-card:focus-visible::before { color: color-mix(in srgb, var(--product-accent) 80%, transparent); transform: none; opacity: 1; }

/* The status facet: the cut corner itself glows — the module's beacon. */
.product-ledger .product-dashboard-card::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: calc(var(--chamfer) + 14px);
  height: calc(var(--chamfer) + 14px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, .2);
  background: linear-gradient(225deg, color-mix(in srgb, currentColor 85%, transparent) 0 3px, color-mix(in srgb, currentColor 24%, transparent) 3px 7px, transparent 7px);
  transition: color .25s, filter .25s;
}
.product-ledger .product-dashboard-card[data-state="good"]::after { color: var(--teal); }
.product-ledger .product-dashboard-card[data-state="attention"]::after { color: var(--product-accent); }
.product-ledger .product-dashboard-card[data-state="danger"]::after { color: #fb7185; animation: module-blink 1.6s ease-in-out infinite; }
.product-ledger .product-dashboard-card:hover::after,
.product-ledger .product-dashboard-card:focus-visible::after { filter: brightness(1.45); }

@keyframes module-blink { 50% { filter: brightness(1.7); } }

/* Stamped-metal product badge. */
.product-ledger .product-dashboard-mark {
  display: grid;
  border-radius: 7px;
  border-color: rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, #131828, #0b0e18);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), inset 0 -1px rgba(255, 255, 255, .05), 0 1px rgba(255, 255, 255, .04);
  color: color-mix(in srgb, var(--product-accent) 72%, #cfd2e6);
}

/* Recessed CRT bezel for the scene, with the faintest scanlines. */
.product-ledger .product-kpi-viz {
  border-block: 1px solid rgba(0, 0, 0, .62);
  box-shadow:
    inset 0 3px 9px rgba(0, 0, 0, .55),
    inset 0 -3px 9px rgba(0, 0, 0, .45),
    0 1px rgba(255, 255, 255, .045);
}
.product-ledger .product-kpi-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .product-ledger .product-dashboard-card[data-state="danger"]::before,
  .product-ledger .product-dashboard-card[data-state="danger"]::after { animation: none; }
}

/* ================================================================
   Downlink DL-2.0 — the Telemetry deck (#telemetry view).
   Instrument-graphics system: validated series slots, glass chassis,
   one interaction contract. Everything here is scoped to
   .telemetry-view; the dl- prefix keeps the namespace clean.
   Series palette is validated against the portal surface (#0d111c):
   worst adjacent CVD ΔE 11.3, all slots ≥3:1. Never re-order slots.
   ================================================================ */
.telemetry-view {
  /* ground & ink (portal-harmonized) */
  --dl-surface: #0d111c;
  --dl-glass: rgba(13, 17, 28, .62);
  --dl-ring: rgba(255, 255, 255, .08);
  --dl-ring-hi: rgba(143, 127, 242, .35);
  --dl-tick: rgba(143, 127, 242, .55);
  --dl-ink: #f4f4fa;
  --dl-ink2: #a6a6c0;
  --dl-ink3: #7a7e92;
  --dl-grid: #1c2233;
  --dl-baseline: #2b3247;
  --dl-deemph: #4a4a5e;
  /* series — validated order, never re-sorted */
  --dl-s1: #8f7ff2; --dl-s2: #0aa87e; --dl-s3: #ba8100;
  --dl-s4: #e04d95; --dl-s5: #3d8ce6; --dl-s6: #e8635f;
  /* sequential (violet) */
  --dl-q100: #c6bdfa; --dl-q200: #a99cf6; --dl-q300: #8f7ff2; --dl-q400: #7562e0;
  --dl-q500: #5b49bd; --dl-q600: #443399; --dl-q700: #2f2374;
  /* diverging + status (reserved) */
  --dl-div-pos: #0aa87e; --dl-div-neg: #e04d95;
  --dl-good: #21c07c; --dl-warn: #f5b83d; --dl-serious: #f07f4a; --dl-critical: #e5484d;
}

.telemetry-view .dl-build-tag {
  align-self: flex-start;
  font: 600 10px/1 var(--mono);
  letter-spacing: .18em;
  color: var(--dl-ink3);
  border: 1px solid var(--dl-ring);
  border-radius: 7px;
  padding: 8px 11px;
  white-space: nowrap;
}
.telemetry-view .dl-build-tag b { color: var(--dl-s1); font-weight: 600; }

/* ---- filter row ------------------------------------------------ */
.telemetry-view .dl-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.telemetry-view .dl-flabel {
  font: 600 10px/1 var(--mono); letter-spacing: .2em; color: var(--dl-ink3);
}
.telemetry-view .dl-seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--dl-ring); border-radius: 7px;
  background: rgba(13, 17, 28, .55);
}
.telemetry-view .dl-seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--dl-ink3); font: 500 11px/1 var(--mono); letter-spacing: .14em;
  padding: 8px 13px;
}
.telemetry-view .dl-seg button + button { border-left: 1px solid var(--dl-ring); }
.telemetry-view .dl-seg button:hover { color: var(--dl-ink2); background: rgba(255,255,255,.03); }
.telemetry-view .dl-seg button[aria-pressed="true"] {
  color: var(--dl-ink); background: rgba(143, 127, 242, .18);
  box-shadow: inset 0 0 18px rgba(143, 127, 242, .22), 0 0 16px rgba(143, 127, 242, .25);
}
.telemetry-view .dl-fchip {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--dl-ink2);
  border: 1px solid var(--dl-ring); border-radius: 7px; padding: 8px 12px;
  background: rgba(13, 17, 28, .55);
}
.telemetry-view .dl-fchip b { color: var(--dl-s2); font-weight: 500; }

/* ---- glass chassis --------------------------------------------- */
.telemetry-view .dl-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 12px; padding: 17px 19px 19px;
  background:
    linear-gradient(var(--dl-tick), var(--dl-tick)) top left    / 14px 1px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) top left    / 1px 14px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) top right   / 14px 1px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) top right   / 1px 14px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) bottom left / 14px 1px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) bottom left / 1px 14px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) bottom right/ 14px 1px,
    linear-gradient(var(--dl-tick), var(--dl-tick)) bottom right/ 1px 14px,
    linear-gradient(168deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 34%, rgba(255,255,255,0) 60%);
  background-repeat: no-repeat;
  background-color: var(--dl-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .42);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.telemetry-view .dl-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(143,127,242,.5), rgba(255,255,255,.07) 30%,
    rgba(61,140,230,.28) 62%, rgba(10,168,126,.3));
  -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;
  pointer-events: none;
}
.telemetry-view .dl-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.07) 46%, transparent 60%);
  transform: translateX(-130%);
}
.telemetry-view .dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55), 0 0 44px rgba(143, 127, 242, .09);
}
@media (prefers-reduced-motion: no-preference) {
  .telemetry-view .dl-card:hover::after { transform: translateX(130%); transition: transform .9s ease; }
}
.telemetry-view .dl-card-eyebrow {
  font: 600 10px/1.4 var(--mono); letter-spacing: .22em; color: var(--dl-ink3);
}
.telemetry-view .dl-card-title { font: 600 15px/1.4 var(--sans); color: var(--dl-ink); margin-top: 3px; }
.telemetry-view .dl-card-sub { font: 400 12.5px/1.5 var(--sans); color: var(--dl-ink3); margin-top: 2px; }
.telemetry-view .dl-card-foot {
  display: flex; gap: 19px; margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--dl-grid);
  font: 500 10px/1.4 var(--mono); letter-spacing: .1em; color: var(--dl-ink3);
}
.telemetry-view .dl-card-head { display: flex; align-items: flex-start; gap: 16px; }
.telemetry-view .dl-card-head .grow { flex: 1; min-width: 0; }
.telemetry-view .dl-ml-auto { margin-left: auto; }

/* ---- layout ---------------------------------------------------- */
.telemetry-view .dl-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.telemetry-view .dl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1180px) { .telemetry-view .dl-kpi-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .telemetry-view .dl-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .telemetry-view .dl-kpi-row { grid-template-columns: 1fr; } }

/* ---- chart chrome ---------------------------------------------- */
.telemetry-view .dl-plotwrap { position: relative; margin: 12px 0 14px; }
.telemetry-view svg text {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  fill: var(--dl-ink3); font-variant-numeric: tabular-nums;
}
.telemetry-view svg .endlab { fill: var(--dl-ink2); letter-spacing: .1em; }
.telemetry-view svg .vallab { fill: var(--dl-ink2); }
.telemetry-view .dl-bloom { filter: drop-shadow(0 0 7px var(--glow, rgba(143, 127, 242, .55))); }

.telemetry-view .dl-legend { display: flex; gap: 9px; flex-wrap: wrap; }
.telemetry-view .dl-legend button {
  appearance: none; display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 5px 9px; cursor: pointer;
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--dl-ink2);
}
.telemetry-view .dl-legend button:hover { background: rgba(255,255,255,.04); }
.telemetry-view .dl-legend button[aria-pressed="true"] {
  border-color: var(--dl-ring-hi); background: rgba(143, 127, 242, .1); color: var(--dl-ink);
}
.telemetry-view .dl-legend button:disabled { opacity: 1; color: var(--dl-ink2); }
.telemetry-view .dl-legend .key {
  width: 16px; height: 2px; border-radius: 1px; background: var(--kc);
  box-shadow: 0 0 8px var(--kc);
}
.telemetry-view .dl-toggle {
  appearance: none; background: transparent; cursor: pointer;
  border: 1px solid var(--dl-ring); border-radius: 6px;
  color: var(--dl-ink3); font: 600 10px/1 var(--mono); letter-spacing: .16em;
  padding: 6px 11px;
}
.telemetry-view .dl-toggle:hover { color: var(--dl-ink2); }
.telemetry-view .dl-toggle[aria-pressed="true"] {
  color: var(--dl-ink); border-color: var(--dl-ring-hi);
  background: rgba(143, 127, 242, .14); box-shadow: 0 0 14px rgba(143, 127, 242, .25);
}

.telemetry-view .dl-tip {
  position: absolute; pointer-events: none; z-index: 10; min-width: 168px; display: none;
  background: rgba(13, 17, 28, .95); border: 1px solid var(--dl-ring-hi); border-radius: 8px;
  padding: 9px 11px 10px; backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 24px rgba(143, 127, 242, .12);
}
.telemetry-view .dl-tip .tx {
  font: 600 9.5px/1 var(--mono); letter-spacing: .18em; color: var(--dl-ink3); margin-bottom: 6px;
}
.telemetry-view .dl-tip .row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.telemetry-view .dl-tip .row .key { width: 14px; height: 2px; border-radius: 1px; flex: none; }
.telemetry-view .dl-tip .row .v {
  font: 700 13px/1.3 var(--sans); color: var(--dl-ink); font-variant-numeric: tabular-nums;
}
.telemetry-view .dl-tip .row .n { font: 400 11px/1.3 var(--sans); color: var(--dl-ink2); letter-spacing: .04em; }

.telemetry-view .dl-datatable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.telemetry-view .dl-datatable caption {
  text-align: left; font: 600 10px/1 var(--mono); letter-spacing: .18em;
  color: var(--dl-ink3); padding-bottom: 8px;
}
.telemetry-view .dl-datatable th {
  font: 500 10px/1.4 var(--mono); letter-spacing: .16em; color: var(--dl-ink3);
  text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--dl-baseline);
}
.telemetry-view .dl-datatable th:first-child,
.telemetry-view .dl-datatable td:first-child { text-align: left; }
.telemetry-view .dl-datatable td {
  padding: 5px 10px; text-align: right; color: var(--dl-ink2);
  border-bottom: 1px solid var(--dl-grid); font-variant-numeric: tabular-nums;
}
.telemetry-view .dl-datatable td:first-child { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; }
.telemetry-view .dl-scroller { overflow-x: auto; }

/* ---- stat tile -------------------------------------------------- */
.telemetry-view .dl-tile .label { font: 400 12.5px/1.4 var(--sans); color: var(--dl-ink2); margin-top: 8px; }
.telemetry-view .dl-tile .value {
  font: 700 34px/1.1 var(--sans); letter-spacing: -.02em; color: var(--dl-ink);
  margin-top: 4px; text-shadow: 0 0 30px rgba(143, 127, 242, .25);
}
.telemetry-view .dl-tile .delta {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 12px/1.4 var(--sans); margin-top: 5px;
}
.telemetry-view .dl-tile .delta .vs { color: var(--dl-ink3); }
.telemetry-view .dl-tile .delta.up-good { color: var(--dl-good); }
.telemetry-view .dl-tile .delta.up-bad { color: var(--dl-critical); }
.telemetry-view .dl-tile .spark { margin-top: auto; padding-top: 11px; }

/* ---- meters ------------------------------------------------------ */
.telemetry-view .dl-meter { margin-top: 14px; }
.telemetry-view .dl-meter .mhead {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 400 12.5px/1.4 var(--sans); color: var(--dl-ink2);
}
.telemetry-view .dl-meter .mhead .mv { font: 600 11.5px/1 var(--mono); color: var(--dl-ink); }
.telemetry-view .dl-meter .track { height: 8px; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.telemetry-view .dl-meter .fill { height: 100%; border-radius: 4px; box-shadow: 0 0 12px var(--mglow, transparent); }
.telemetry-view .dl-meter .mnote {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font: 400 11px/1.4 var(--sans); color: var(--dl-ink3);
}
.telemetry-view .dl-meter .mic {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 8px/1 var(--mono); color: #060810;
}

/* ---- doctrine footnote ------------------------------------------ */
.telemetry-view .dl-doctrine {
  font: 500 10px/2 var(--mono); letter-spacing: .12em; color: var(--dl-ink3);
}
.telemetry-view .dl-doctrine em { font-style: normal; color: var(--dl-s2); }
.telemetry-view .dl-doctrine b { font-weight: 500; color: var(--dl-ink2); }
