:root {
  color-scheme: dark;
  --bg: #101118;
  --rail: #12131b;
  --panel: #181922;
  --elevated: #1e1f2b;
  --line: #2a2b38;
  --text: #eeeef5;
  --muted: #9698af;
  --faint: #62657b;
  --accent: #b8a4ff;
  --purple: #8c72de;
  --green: #7cd6af;
  --amber: #e5bb78;
  --red: #f292a3;
  --blue: #8daee7;
  --radius: 13px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #dfd3ff;
}
[hidden] {
  display: none !important;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 8px 28px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0;
}
.nav.active {
  color: #d3c6ff;
  background: #b8a4ff12;
  border: 1px solid #b8a4ff1b;
}
.nav:hover {
  background: #ffffff05;
}
.nav-icon {
  font-size: 18px;
  line-height: 18px;
  width: 19px;
  text-align: center;
}
.nav-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
}
.counter {
  font-size: 12px;
  line-height: 18px;
  min-width: 20px;
  display: inline-block;
  text-align: center;
  padding: 0 5px;
  border-radius: 5px;
  background: #b8a4ff14;
  color: var(--accent);
  font-weight: 500;
  margin-left: auto;
}
.rail-bottom {
  margin-top: auto;
  padding: 23px 12px 0;
}
.system-indicator {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-bottom p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
  margin: 14px 0;
}
.ghost {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  color: var(--muted);
}
.ghost:hover {
  color: var(--text);
  border-color: #626078;
}
main {
  margin-left: 224px;
  min-width: 0;
  width: calc(100% - 224px);
}
.topbar {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 34px;
  background: #101118e8;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.connection {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.light {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--faint);
  border-radius: 50%;
  flex-shrink: 0;
}
.light.green {
  background: var(--green);
  box-shadow: 0 0 10px #7cd6af30;
}
.light.violet {
  background: var(--accent);
}
.light.amber {
  background: var(--amber);
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  width: 29px;
  height: 28px;
  font-size: 13px;
  color: var(--muted);
}
.page {
  padding: 32px 34px 0;
  max-width: 1830px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin: 0 0 27px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 580;
  margin: 0 0 10px;
}
h1 > span {
  color: var(--accent);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.scope-controls {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
}
select {
  color: #c7c8d8;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 28px 9px 11px;
  font-size: 12px;
  max-width: 215px;
  cursor: pointer;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 19px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px 13px;
  overflow: hidden;
}
.metric-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-symbol {
  font-size: 15px;
  color: var(--faint);
  letter-spacing: 0;
}
.metric-value {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.3px;
  margin: 13px 0 5px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--faint);
  margin-left: 4px;
}
.metric-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 18px;
}
.metric-bottom {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 11px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.metric:first-child .metric-bottom {
  justify-content: flex-start;
}
.metric:first-child .metric-value {
  color: var(--accent);
}
.subtle {
  color: var(--faint);
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}
.panel-heading {
  padding: 19px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.panel-heading h2 {
  font-size: 13px;
  font-weight: 550;
  margin: 0;
  letter-spacing: -0.15px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.panel-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6;
}
.pill {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.stage-bars {
  padding: 0 20px 14px;
  display: grid;
  gap: 10px;
}
.stage-row {
  display: grid;
  grid-template-columns: 83px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.bar-track {
  height: 5px;
  border-radius: 3px;
  background: #ffffff06;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  min-width: 2px;
}
.stage-row:nth-child(2) .bar-fill {
  background: #746b91;
}
.stage-row:nth-child(3) .bar-fill {
  background: #7fa0be;
}
.stage-row:nth-child(4) .bar-fill {
  background: #a790f0;
}
.stage-row:nth-child(5) .bar-fill {
  background: #80baaa;
}
.stage-row:nth-child(6) .bar-fill {
  background: #7cd6af;
}
.stage-row b {
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.chart-footer {
  margin: 0 20px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 10px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.chart-footer b {
  font-weight: 500;
  color: var(--text);
}
.latency-chart {
  margin: 2px 20px 15px;
  height: 147px;
  position: relative;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(33.333% - 1px),
    #ffffff05 calc(33.333% - 1px),
    #ffffff05 33.333%
  );
}
.latency-column {
  position: relative;
  flex: 1;
  min-width: 5px;
  max-width: 32px;
  background: #a38ade68;
  border: 1px solid #b8a4ff20;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}
.latency-column:last-child {
  background: var(--accent);
  border-color: var(--accent);
}
.latency-column:hover {
  background: #d1bdff;
}
.chart-scale {
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--faint);
  font-size: 10px;
}
.empty-chart {
  width: 100%;
  text-align: center;
  align-self: center;
  color: var(--faint);
  font-size: 12px;
}
.cost-stack {
  height: 8px;
  display: flex;
  gap: 3px;
  margin: 6px 20px 20px;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff06;
}
.cost-slice {
  height: 100%;
  min-width: 1px;
}
.cost-legend {
  display: grid;
  gap: 13px;
  padding: 0 20px 17px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.legend-row b {
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.workbench {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: start;
}
.feed-panel .panel-heading {
  padding-bottom: 14px;
}
.follow-control {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  padding-top: 2px;
}
.follow-control input {
  accent-color: var(--accent);
  width: 11px;
  height: 11px;
  margin: 0;
}
.feed-tools {
  padding: 0 20px 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.segments {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #11121a;
  border: 1px solid #262734;
  border-radius: 6px;
  padding: 3px;
}
.segments button {
  border: 0;
  background: none;
  color: var(--faint);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.segments button.selected {
  background: #2a263b;
  color: #cfbfff;
  box-shadow: 0 1px 4px #0003;
}
.segments button span {
  margin-left: 3px;
  font-size: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  min-width: 100px;
  flex: 1;
  max-width: 170px;
}
.search span {
  font-size: 20px;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  padding: 7px 0;
  outline-offset: 2px;
}
.search input::placeholder {
  color: var(--faint);
}
.job-list {
  max-height: 580px;
  min-height: 340px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #383547 transparent;
}
.job {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid #ffffff05;
  padding: 17px 20px;
  text-align: left;
  position: relative;
  color: var(--text);
}
.job:hover {
  background: #ffffff03;
}
.job.chosen {
  background: #b8a4ff08;
}
.job.chosen:before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #8c72de16;
  color: var(--accent);
  text-transform: uppercase;
}
.status .light {
  width: 4px;
  height: 4px;
  background: currentColor;
}
.status.sent,
.status.complete {
  color: var(--green);
  background: #7cd6af0d;
}
.status.failed,
.status.expired {
  color: var(--red);
  background: #f292a30d;
}
.status.retry {
  color: var(--amber);
  background: #e5bb780d;
}
.job-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.job-question {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 480;
  margin: 0 0 8px;
  letter-spacing: -0.05px;
}
.job-quote {
  font-size: 12px;
  line-height: 1.65;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 12px;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.job-meta .job-latency {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.job-meta .latency-slow {
  color: var(--amber);
}
.inspector {
  position: sticky;
  top: 86px;
  min-height: 456px;
}
.inspector-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.inspector-overline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--faint);
  font-size: 11px;
}
.inspector h3 {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 520;
  letter-spacing: -0.3px;
  margin: 14px 0 12px;
}
.inspector-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.text-link {
  font-size: 11px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #b8a4ff0b;
  border: 1px solid #b8a4ff23;
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--accent);
}
.copy-button {
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--muted);
}
.inspector-tabs {
  display: flex;
  padding: 0 20px;
  gap: 23px;
  border-bottom: 1px solid var(--line);
}
.inspector-tabs button {
  font-size: 12px;
  background: none;
  border: 0;
  color: var(--faint);
  padding: 14px 0 12px;
  border-bottom: 2px solid transparent;
}
.inspector-tabs button.selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.inspector-body {
  padding: 20px;
  max-height: 570px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #383547 transparent;
}
.section-label {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 1.1px;
  margin: 0 0 9px;
  text-transform: uppercase;
}
.quote-box {
  font-size: 13px;
  line-height: 1.8;
  border-left: 2px solid var(--accent);
  background: #b8a4ff07;
  border-radius: 0 6px 6px 0;
  padding: 12px 15px;
  color: #d8cdeb;
  margin-bottom: 21px;
  white-space: pre-wrap;
}
.context-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
  margin: 0 0 20px;
}
.inline-facts {
  display: flex;
  gap: 13px;
  color: var(--faint);
  font-size: 11px;
  flex-wrap: wrap;
  line-height: 1.8;
}
.inline-facts b {
  color: var(--muted);
  font-weight: 500;
}
.trace-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.trace-summary strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.trace-summary p {
  font-size: 11px;
  color: var(--faint);
  margin: 5px 0 0;
}
.trace-item {
  position: relative;
  padding: 0 0 20px 21px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.trace-item:before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: -4px;
  top: 3px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--panel);
}
.trace-item.running:before {
  background: var(--accent);
  box-shadow: 0 0 8px #b8a4ff65;
}
.trace-item.failed:before {
  background: var(--red);
}
.trace-item:last-child {
  border-color: transparent;
  padding-bottom: 2px;
}
.trace-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text);
  gap: 10px;
}
.trace-item-head b {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.trace-item p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.answer-text {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c8c9d8;
}
.answer-text a {
  font-size: 12px;
}
.source-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.source-list a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.5;
}
.source-list a span {
  color: var(--faint);
  font-size: 11px;
}
.issue-box {
  font-size: 12px;
  line-height: 1.7;
  color: var(--amber);
  border: 1px solid #e5bb7820;
  background: #e5bb7807;
  padding: 11px;
  border-radius: 6px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.empty-state,
.inspector-empty {
  padding: 65px 28px;
  text-align: center;
}
.empty-orbit {
  width: 47px;
  height: 47px;
  border: 1px solid #b8a4ff22;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  font-size: 30px;
  color: var(--accent);
  background: #b8a4ff06;
}
.empty-state h3,
.inspector-empty h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.empty-state p,
.inspector-empty p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--faint);
  max-width: 260px;
  margin: 0 auto;
}
.precursors-panel {
  margin-bottom: 24px;
}
.small-eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.window-list {
  padding: 0 20px 16px;
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}
.window-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #15161f;
  overflow: hidden;
}
.window-item > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}
.window-item > summary::-webkit-details-marker {
  display: none;
}
.window-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--faint);
}
.window-snippet {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-item > summary:after {
  content: "";
  color: var(--faint);
  font-size: 15px;
}
.window-item[open] > summary:after {
  content: "";
}
.window-body {
  border-top: 1px solid var(--line);
  padding: 15px;
}
.window-body .context-text {
  margin-bottom: 12px;
}
.window-result {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 9px 0;
}
.diagnostics {
  margin-bottom: 20px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 30px;
  padding: 3px 20px 22px;
}
.diagnostic-cell {
  min-width: 0;
}
.diagnostic-cell .section-label {
  font-size: 10px;
  margin-bottom: 8px;
}
.diagnostic-value {
  font-size: 13px;
  line-height: 1.5;
  color: #d0d1df;
  overflow-wrap: anywhere;
}
.diagnostic-detail {
  color: var(--faint);
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.7;
}
.mini-spark {
  width: 100%;
  height: 25px;
  margin-top: 5px;
}
.diagnostic-notes {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff01;
}
.diagnostic-notes p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--faint);
  margin: 4px 0;
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.diagnostic-notes .light {
  width: 4px;
  height: 4px;
}
footer {
  padding: 0 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--faint);
  gap: 12px;
}
footer > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.banner {
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid #e5bb7825;
  background: #e5bb7807;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border: 1px solid #b8a4ff40;
  background: #282237;
  color: #dfd1ff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 30px #0005;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(ellipse at 50% 30%, #282039 0, #101118 60%);
  display: grid;
  place-items: center;
}
.login form {
  width: min(370px, 90vw);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 90px #0004;
}
.login h1 {
  font-size: 25px;
  margin-top: 20px;
}
.login p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.login label {
  font-size: 12px;
  display: block;
  margin: 28px 0 9px;
  color: var(--muted);
}
.login input {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
}
.primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #24193e;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
#login-error {
  font-size: 12px;
  color: var(--red);
  min-height: 17px;
}
.login-visible .shell {
  visibility: hidden;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 38px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .job-question {
    font-size: 13px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .metric-value {
    font-size: 39px;
  }
  .metric {
    padding: 20px 22px 15px;
  }
  .latency-chart {
    height: 152px;
  }
  .stage-bars {
    gap: 11px;
  }
  .inspector h3 {
    font-size: 18px;
  }
}
@media (max-width: 1200px) {
  .rail {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
    margin-left: 7px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .page {
    padding: 25px 22px 0;
  }
  .topbar {
    padding: 0 22px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .analysis-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .spend-panel {
    grid-column: 1/-1;
  }
  .spend-panel .cost-legend {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .spend-panel .cost-stack {
    margin-bottom: 15px;
  }
  .spend-panel .chart-footer {
    justify-content: flex-end;
    gap: 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px 13px 12px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-note {
    font-size: 11px;
  }
  .metric-bottom {
    font-size: 10px;
  }
  .workbench {
    grid-template-columns: 1fr 1fr;
  }
  .feed-tools {
    padding-left: 15px;
    padding-right: 15px;
  }
  .feed-tools .search {
    max-width: none;
  }
  .diagnostic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inspector-tabs {
    gap: 18px;
  }
  .job {
    padding: 15px;
  }
  .follow-control {
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  .rail {
    width: 65px;
    padding: 20px 10px;
  }
  .brand {
    margin: 0 auto 36px;
  }
  .brand span,
  .rail-label,
  .nav:not(.active),
  .nav.active > .nav-dot,
  .rail-bottom {
    display: none;
  }
  .nav.active {
    font-size: 0;
    padding: 12px 8px;
    justify-content: center;
  }
  .nav-icon {
    font-size: 20px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  main {
    margin-left: 65px;
    width: calc(100% - 65px);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .inspector {
    position: static;
    min-height: 0;
  }
  .inspector-body {
    max-height: none;
  }
  .job-list {
    max-height: 440px;
  }
  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .scope-controls {
    width: 100%;
  }
  .scope-controls select:first-of-type {
    max-width: none;
    flex: 1;
  }
  .inspector-empty {
    padding: 35px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-note {
    font-size: 12px;
  }
  .metric-bottom {
    font-size: 11px;
  }
  .question-count {
    font-size: 12px;
  }
  .feed-tools .search {
    max-width: 190px;
  }
}
@media (max-width: 520px) {
  .rail {
    display: none;
  }
  main {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 54px;
    padding: 0 16px;
  }
  .page {
    padding: 23px 14px 0;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .page-heading p {
    max-width: 300px;
  }
  .metrics {
    gap: 9px;
    margin-bottom: 14px;
  }
  .metric {
    border-radius: 10px;
    padding: 14px 13px 11px;
  }
  .metric-value {
    font-size: 30px;
    margin: 12px 0 4px;
  }
  .metric-symbol {
    font-size: 13px;
  }
  .metric-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .metric-note {
    font-size: 10px;
  }
  .metric-bottom {
    font-size: 10px;
    gap: 4px;
    margin-top: 11px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .spend-panel {
    grid-column: auto;
  }
  .spend-panel .cost-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trend-panel .latency-chart {
    height: 110px;
  }
  .panel-heading {
    padding: 17px 16px 14px;
  }
  .stage-bars {
    padding: 0 16px 15px;
  }
  .chart-footer {
    margin: 0 16px;
  }
  .feed-tools {
    padding: 0 16px 13px;
  }
  .segments button {
    padding: 6px 7px;
  }
  .search {
    max-width: none !important;
  }
  .follow-control {
    font-size: 10px;
  }
  .workbench {
    gap: 14px;
    margin-bottom: 18px;
  }
  .job-meta {
    gap: 9px;
    font-size: 10px;
  }
  .job-question {
    font-size: 13px;
  }
  .inspector-head,
  .inspector-body {
    padding: 17px;
  }
  .inspector-tabs {
    padding: 0 17px;
  }
  .window-list {
    padding: 0 14px 14px;
  }
  .window-snippet {
    display: none;
  }
  .window-item > summary {
    gap: 10px;
  }
  .window-item > summary .status {
    margin-left: auto;
  }
  .window-item .job-time {
    font-size: 10px;
  }
  .diagnostic-grid {
    padding: 2px 16px 19px;
    gap: 20px 16px;
  }
  .diagnostic-notes {
    padding: 11px 16px;
  }
  .diagnostic-value {
    font-size: 12px;
  }
  .diagnostic-detail {
    font-size: 10px;
  }
  .precursors-panel .panel-heading {
    flex-wrap: wrap;
  }
  .precursors-panel .panel-heading p {
    max-width: 280px;
  }
  .connection {
    font-size: 11px;
  }
  .top-actions {
    gap: 10px;
  }
  .eyebrow {
    font-size: 10px;
  }
  footer {
    font-size: 10px;
    align-items: flex-start;
  }
  footer > span:first-child {
    max-width: 160px;
    flex-wrap: wrap;
    gap: 5px;
  }
  footer img {
    width: 15px;
    height: 15px;
  }
  .metric-note {
    min-height: 27px;
  }
  .toast {
    font-size: 12px;
    max-width: 90vw;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 850px) {
  .scope-controls select:first-of-type {
    min-width: 0;
    width: 0;
  }
  .scope-controls select:last-of-type {
    flex-shrink: 0;
  }
}

.extension-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid #55446e;
  border-radius: 14px;
  background: linear-gradient(115deg, #282038, #181821);
  box-shadow: 0 8px 28px #0002;
}
.extension-banner img {
  flex: 0 0 38px;
}
.extension-banner strong {
  font-size: 14px;
  color: #f0e8fc;
}
.extension-banner p {
  font-size: 12px;
  line-height: 1.6;
  color: #bbb0cb;
  margin: 4px 0 0;
}
.extension-banner > a {
  flex-shrink: 0;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid #786197;
  border-radius: 8px;
  color: #eee0ff;
  background: #b59ad51a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.extension-banner > a:hover {
  background: #b59ad530;
}
.extension-banner > a:focus-visible {
  outline: 2px solid #c7a6ff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .extension-banner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .extension-banner div {
    flex: 1;
    min-width: 180px;
  }
  .extension-banner > a {
    margin-left: 50px;
  }
  .extension-banner p {
    font-size: 12px;
  }
}

.tiny-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.prose,
.answer-text {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
:is(.prose, .answer-text) > :first-child {
  margin-top: 0;
}
:is(.prose, .answer-text) > :last-child {
  margin-bottom: 0;
}
:is(.prose, .answer-text) p {
  margin: 0.65em 0;
}
:is(.prose, .answer-text) strong {
  font-weight: 700;
  color: inherit;
}
:is(.prose, .answer-text) em {
  font-style: italic;
}
:is(.prose, .answer-text) :is(ul, ol) {
  padding-left: 1.6em;
  margin: 0.7em 0;
}
:is(.prose, .answer-text) li {
  margin: 0.3em 0;
}
:is(.prose, .answer-text) li > p {
  margin: 0.25em 0;
}
:is(.prose, .answer-text) :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.08em;
  line-height: 1.4;
  margin: 1.1em 0 0.4em;
  color: inherit;
}
:is(.prose, .answer-text) code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: #ffffff0b;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  white-space: pre-wrap;
}
:is(.prose, .answer-text) pre {
  max-width: 100%;
  overflow: auto;
  background: #0003;
  padding: 12px;
  border-radius: 8px;
}
:is(.prose, .answer-text) pre code {
  padding: 0;
  background: none;
  white-space: pre;
}
:is(.prose, .answer-text) blockquote {
  margin: 0.8em 0;
  border-left: 3px solid #b8a4ff;
  padding: 0 1em;
  color: #b8b3c5;
}
.markdown-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.8em 0;
}
.markdown-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
}
.markdown-table :is(th, td) {
  border: 1px solid #ffffff20;
  padding: 0.5em 0.7em;
  text-align: left;
  min-width: 70px;
}
.markdown-table th {
  background: #ffffff08;
  font-weight: 700;
}
.markdown-table .align-center {
  text-align: center;
}
.markdown-table .align-right {
  text-align: right;
}

.ghost,
.text-link,
.inspector-actions a,
.extension-banner > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.empty-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-orbit .tiny-icon {
  width: 24px;
  height: 24px;
}
.nav-icon,
.metric-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status.trashed {
  color: #e7a7b7;
  background: #c6637b15;
  border-color: #c6637b30;
}
.status.trashed .light {
  background: #d9869d;
}
.quality-notice {
  border: 1px solid #7cd6af33;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  background: #7cd6af08;
}
.quality-notice strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a4dbc6;
}
.quality-notice p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
  color: #c4c0cc;
}
.quality-notice small,
.quality-probabilities {
  color: #9891a6;
}
.quality-trash {
  border-color: #d9869d44;
  background: #d9869d0a;
}
.quality-trash strong {
  color: #e7a7b7;
}
.segments {
  flex-wrap: wrap;
}
.feed-tools {
  align-items: flex-start;
}

.window-item > summary::after {
  display: none;
}
.window-chevron {
  margin-left: auto;
  display: flex;
}
.window-item[open] > summary .window-chevron {
  transform: rotate(180deg);
}

/* Transcript reading views */
.transcript-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.5;
  text-transform: uppercase;
  color: #9a95b1;
}
.transcript-label .tiny-icon {
  width: 14px;
  height: 14px;
}
.inquiry-quote {
  padding: 17px 18px;
  border: 1px solid #b8a4ff2b;
  border-left: 3px solid #ad94f2;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(110deg, #b8a4ff0e, #b8a4ff03);
  margin-bottom: 18px;
}
.inquiry-quote .transcript-label {
  color: #b8a4e4;
}
.inquiry-quote blockquote {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  color: #e5dcf8;
  overflow-wrap: anywhere;
}
.inquiry-context {
  padding: 0 2px;
  margin-bottom: 23px;
}
.inquiry-context p {
  color: #afb0c3;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.8;
}
.transcript-sequence {
  display: grid;
  gap: 9px;
  margin-bottom: 19px;
}
.context-block {
  border: 1px solid #30313f;
  background: #14151e;
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.context-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  list-style: none;
  cursor: pointer;
}
.context-heading::-webkit-details-marker {
  display: none;
}
.context-heading::marker {
  content: "";
}
.context-heading:hover {
  background: #ffffff03;
}
.context-number {
  font:
    11px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #9293ab;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  border: 1px solid #383848;
  background: #22232f;
  flex-shrink: 0;
}
.context-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.context-label strong {
  font-size: 12px;
  font-weight: 550;
  color: #c9c9d9;
}
.context-meta {
  font-size: 10px;
  color: #87899e;
  font-variant-numeric: tabular-nums;
}
.context-chevron {
  margin-left: auto;
  display: flex;
  color: #9290aa;
}
.context-chevron .tiny-icon {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}
.context-block[open] > .context-heading .context-chevron .tiny-icon {
  transform: rotate(180deg);
}
.context-focus {
  border-color: #b8a4ff3b;
  background: #191822;
}
.context-focus .context-number {
  color: #d4c2ff;
  background: #b8a4ff17;
  border-color: #b8a4ff35;
}
.context-focus .context-label strong {
  color: #e1d7f7;
}
.context-missing {
  border-style: dashed;
  background: transparent;
  opacity: 0.65;
}
.context-missing .context-heading {
  cursor: default;
}
.transcript-prose {
  padding: 3px 17px 17px;
  max-width: 76ch;
  color: #b5b6c9;
  font-size: 13px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.transcript-prose p {
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.transcript-prose p:last-child {
  margin-bottom: 0;
}
.context-focus .transcript-prose {
  color: #d6d5e3;
}
.transcript-match {
  color: #f0e7ff;
  background: #b49aff26;
  padding: 2px 0;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.window-item > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 15px;
  padding: 14px 16px;
}
.window-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.window-meta .status {
  margin-left: auto;
}
.window-snippet {
  display: -webkit-box;
  grid-column: 1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.65;
  font-size: 12px;
  color: #a3a5bc;
}
.window-chevron {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #9391a9;
}
.window-body {
  padding: 18px;
}
.window-decision {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 16px;
}
.decision-icon {
  display: inline-flex;
  color: #86c7ad;
  padding-top: 2px;
}
.window-decision p {
  margin: 0;
  font-size: 12px;
  color: #a5a7bb;
  line-height: 1.7;
}
.window-body .transcript-prose {
  max-width: 86ch;
}
.window-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.window-question-copy {
  min-width: 0;
}
.window-question p {
  margin: 6px 0 0;
  color: #dedeea;
  font-size: 13px;
  line-height: 1.65;
}
.window-skip {
  display: block;
  color: #9092a9;
  font-size: 11px;
  margin-top: 5px;
}
.inspect-question {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  border: 1px solid #b8a4ff36;
  border-radius: 7px;
  background: #b8a4ff0d;
  color: #d1c0fa;
  font-size: 11px;
  font-weight: 550;
  padding: 9px 11px;
  flex-shrink: 0;
  transition:
    background 150ms,
    border-color 150ms;
}
.inspect-question:hover {
  border-color: #b8a4ff73;
  background: #b8a4ff19;
}
.inspect-question .tiny-icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 620px) {
  .context-heading {
    padding: 12px;
    gap: 10px;
  }
  .transcript-prose {
    padding: 3px 13px 15px;
    font-size: 13px;
    line-height: 1.9;
  }
  .window-body {
    padding: 13px;
  }
  .window-meta {
    flex-wrap: wrap;
    gap: 7px 10px;
  }
  .window-item > summary {
    padding: 13px;
    gap: 8px 10px;
  }
  .window-question {
    flex-wrap: wrap;
    gap: 11px;
  }
  .inspect-question {
    padding: 9px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .context-chevron .tiny-icon,
  .inspect-question {
    transition: none;
  }
}

.transcript-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 16px 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #bca6ed;
  font-size: 11px;
}
.transcript-jump:hover {
  color: #e3d3ff;
}
.transcript-jump .tiny-icon {
  width: 13px;
  height: 13px;
}
.window-list:has(> .window-item[open]) {
  max-height: min(85vh, 900px);
}

.window-body {
  max-width: 1040px;
  margin-inline: auto;
}
.window-body .transcript-prose {
  max-width: none;
  font-size: 14px;
  line-height: 1.9;
}

.scope-controls {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scope-picker {
  position: relative;
  min-width: 142px;
  max-width: 240px;
}
.scope-picker[data-kind="stream"] {
  min-width: 179px;
}
.scope-picker[data-kind="period"] {
  min-width: 143px;
}
.picker-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  border: 1px solid #353443;
  border-radius: 9px;
  background: linear-gradient(180deg, #22212d, #191922);
  box-shadow:
    inset 0 1px #ffffff05,
    0 2px 4px #00000015;
  padding: 0 10px;
  text-align: left;
  transition:
    border-color 150ms,
    background 150ms,
    box-shadow 150ms;
}
.scope-picker[data-kind="channel"] .picker-trigger {
  border-color: #6e5c9766;
  background: linear-gradient(115deg, #33294099, #211d2c 72%);
}
.picker-trigger:hover,
.picker-trigger[aria-expanded="true"] {
  border-color: #a18acc;
  background: linear-gradient(115deg, #352b4699, #252130);
  box-shadow:
    0 0 0 3px #b8a4ff09,
    inset 0 1px #ffffff08;
}
.picker-glyph,
.picker-option-glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #a49cba;
}
.picker-glyph {
  width: 20px;
  height: 22px;
}
.picker-glyph .tiny-icon {
  width: 15px;
  height: 15px;
}
.picker-glyph[data-platform] {
  border-radius: 5px;
}
.picker-glyph[data-platform="youtube"],
.picker-option-glyph[data-platform="youtube"] {
  color: #fa797f;
  background: #fc656512;
}
.picker-glyph[data-platform="kick"],
.picker-option-glyph[data-platform="kick"] {
  color: #8ddd56;
  background: #8ddd5610;
}
.picker-glyph[data-platform="kick"] .tiny-icon {
  width: 12px;
  height: 12px;
}
.picker-value {
  min-width: 0;
  flex: 1;
}
.picker-selected {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  color: #ddd7e9;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scope-picker[data-kind="channel"] .picker-selected {
  color: #f2eafa;
  font-weight: 650;
}
.picker-trigger > .picker-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #8e819f;
  transition:
    transform 160ms,
    color 160ms;
}
.picker-trigger[aria-expanded="true"] > .picker-chevron {
  transform: rotate(180deg);
  color: #d5bcf8;
}
.picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max(100%, 290px);
  max-width: calc(100vw - 28px);
  border: 1px solid #65537c80;
  border-radius: 12px;
  padding: 5px;
  background: linear-gradient(145deg, #282230, #1c1a25 65%);
  box-shadow:
    0 16px 44px #0008,
    inset 0 1px #ffffff08;
  z-index: 300;
  animation: picker-enter 130ms ease-out;
}
.scope-picker[data-kind="stream"] .picker-menu {
  width: max(100%, 360px);
}
.picker-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px 7px;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: #b3a1c4;
}
.picker-menu-count {
  color: #7d728d;
  font-size: 10px;
  letter-spacing: 0;
}
.picker-options {
  max-height: min(320px, 45vh);
  overflow-y: auto;
  scrollbar-width: thin;
}
.picker-option {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: #dcd5e9;
  font-size: 12px;
  text-align: left;
  line-height: 1.25;
}
.picker-option + .picker-option {
  margin-top: 2px;
}
.picker-option-glyph {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #ffffff04;
}
.picker-option-glyph .tiny-icon {
  width: 16px;
  height: 16px;
}
.picker-option-glyph[data-platform="kick"] .tiny-icon {
  width: 14px;
  height: 14px;
}
.picker-option-copy {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.picker-option:hover,
.picker-option:focus-visible {
  background: #b8a4ff0d;
  outline-offset: -2px;
}
.picker-option[aria-selected="true"] {
  background: linear-gradient(100deg, #a386db1a, #a386db09);
  border-color: #b8a4ff1c;
  color: #f0e3ff;
}
.picker-option small {
  display: block;
  font-size: 10px;
  color: #968ba5;
  margin-top: 2px;
}
.picker-tick {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #ccaff8;
  background: #b8a4ff16;
}
.picker-tick .tiny-icon {
  width: 11px;
  height: 11px;
}
@keyframes picker-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scope-loading {
  padding: 45px;
  color: #aaa0ba;
  text-align: center;
}
.sources-panel {
  margin-bottom: 24px;
}
.source-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}
.source-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
}
.source-platform {
  color: #b5a0d9;
  font-size: 10px;
  font-weight: 600;
}
.source-card strong {
  font-size: 15px;
}
.source-address {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source-state {
  color: #9a94aa;
  font-size: 10px;
}
.source-state.enabled {
  color: #8bc6af;
}
.source-dialog {
  width: min(560px, calc(100% - 30px));
  max-height: 85vh;
  overflow: auto;
  padding: 25px;
  border: 1px solid #514461;
  border-radius: 17px;
  background: #1a1722;
  color: #eee8f7;
  box-shadow: 0 30px 100px #0008;
}
.source-dialog::backdrop {
  background: #08070dbb;
  backdrop-filter: blur(5px);
}
.source-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.source-dialog h2 {
  margin: 6px 0;
  font-size: 21px;
}
.source-dialog h3 {
  font-size: 14px;
  margin: 15px 0;
}
.source-dialog form {
  display: grid;
  gap: 10px;
}
.source-dialog label {
  color: #aaa0ba;
  font-size: 12px;
}
.source-dialog input:not([type="checkbox"]) {
  width: 100%;
  min-height: 40px;
  border: 1px solid #44394f;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
  background: #13111a;
}
.source-dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: #a59bb6;
}
.editable-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #37303e;
}
.editable-source strong {
  display: block;
  font-size: 13px;
  color: #e2d8ef;
}
.editable-source small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.editable-source input {
  accent-color: #b8a4ff;
  width: 18px;
  height: 18px;
}
.source-save {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 22px;
}
#source-feedback {
  margin-bottom: 0;
  color: #c9b1ee;
}
@media (max-width: 700px) {
  .scope-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .scope-picker,
  .scope-picker[data-kind="stream"],
  .scope-picker[data-kind="period"] {
    min-width: 0;
    max-width: none;
  }
  .scope-picker:first-of-type {
    grid-column: 1 / -1;
  }
  .picker-trigger {
    padding: 0 10px;
    gap: 8px;
  }
  .source-save {
    align-items: flex-start;
    flex-direction: column;
  }
}

.extension-banner .extension-firefox {
  display: inline-block;
  margin-left: 8px;
  color: #cdb6eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
  white-space: nowrap;
}

/* The Ko-fi checkout opens below the topbar's native support control. */
.support-menu {
  position: relative;
  flex-shrink: 0;
}
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid #b8a4ff30;
  border-radius: 8px;
  background: #b8a4ff0c;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.support-link:hover,
.support-link[aria-expanded="true"] {
  background: #b8a4ff1a;
  border-color: #b8a4ff60;
  color: var(--text);
}
.support-link svg {
  width: 15px;
  height: 15px;
}
#support-widget .floatingchat-container-wrap,
#support-widget .floatingchat-container-wrap-mobi,
#support-widget .floating-chat-kofi-popup-iframe-mobi {
  display: none !important;
}
#support-widget .floating-chat-kofi-popup-iframe {
  position: absolute;
  top: 42px;
  left: 0;
  bottom: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 80px);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  box-shadow: 0 18px 60px #0008;
}
#support-widget .floating-chat-kofi-popup-iframe[aria-hidden="true"] {
  visibility: hidden;
}
#support-widget .floating-chat-kofi-popup-iframe-closer {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  top: -10px;
  right: -10px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--text);
  box-shadow: 0 3px 10px #0005;
}
#support-widget .floating-chat-kofi-popup-iframe-closer > span {
  display: flex;
  top: 0;
}
#support-widget .floating-chat-kofi-popup-iframe-notice {
  border-color: var(--line);
  background: var(--panel);
  font: inherit;
  font-size: 12px;
  line-height: 24px;
}
#support-widget .floating-chat-kofi-popup-iframe-notice a {
  color: var(--accent) !important;
}
