:root {
  color-scheme: dark;
  --bg: #07070d;
  --ground: #0a0a12;
  --panel: #10111c;
  --panel-2: #151726;
  --hover: #1b1e31;
  --line: #24273d;
  --line-2: #363a5a;
  --ink: #eef0fa;
  --ink-2: #c8cbe2;
  --muted: #9a9fbd;
  --paper: #10111c;
  --accent: #8b7bff;
  --accent-strong: #6d5dfc;
  --accent-hover: #7c6cff;
  --accent-wash: #1d1a3d;
  --cyan: #22d3ee;
  --success: #34d399;
  --warn: #fbbf24;
  --info: #60a5fa;
  --danger: #fb7185;
  --signal: linear-gradient(
    100deg,
    #a78bfa 0%,
    #818cf8 35%,
    #38bdf8 70%,
    #22d3ee 100%
  );
  --button: linear-gradient(135deg, #6d5dfc, #5b3fd6);
  --radius: 12px;
  --shadow: 0 1px 0 #ffffff08 inset, 0 20px 50px -20px #000000a0;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button: disabled {
  cursor: default;
  opacity: 0.45;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h1 {
  font-size: clamp(28px, 3.2vw, 38px);
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  text-transform: uppercase;
}
.measure {
  max-width: 650px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.primary,
.secondary,
.quiet,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: normal;
}
.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}
.primary:hover:enabled,
a.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  color: var(--ink-2);
  border-color: var(--line-2);
  background: var(--panel);
}
.secondary:hover:enabled,
a.secondary:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
}
.quiet {
  color: var(--muted);
  background: transparent;
  padding-inline: 9px;
}
.quiet:hover {
  color: var(--ink);
  background: var(--hover);
}
.danger {
  color: var(--ink-2);
  background: var(--panel-2);
  border: 1px dashed var(--line-2);
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), #0e7490);
  color: white;
  font-size: 18px;
  letter-spacing: -2px;
  padding-right: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  background: var(--panel-2);
  color: var(--muted);
  white-space: nowrap;
}
.badge.strong {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.badge.outcome-resolve {
  background: #ecfdf3;
  border-color: #a7e3bd;
  color: var(--success);
}
.badge.outcome-needs_information {
  background: #fff7ed;
  border-color: #f5c98f;
  color: var(--warn);
}
.badge.outcome-no_change {
  background: #eff6ff;
  border-color: #a9cdea;
  color: var(--info);
}
.badge.outline {
  background: var(--panel);
  color: var(--ink-2);
}
.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;
}
.skip {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 100;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
}
.skip:focus {
  top: 10px;
}
.opening {
  display: grid;
  min-height: 70vh;
  place-items: center;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin: 8px 0 12px;
}
.page-heading .actions {
  padding-top: 10px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 28px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.panel-heading h2 + p,
.panel h2 + p {
  margin-top: 9px;
}
.panel + .panel,
.spaced {
  margin-top: 22px;
}
.stack {
  display: grid;
  gap: 18px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.callout .icon {
  margin-top: 2px;
  color: var(--muted);
}
.callout strong {
  color: var(--ink-2);
}
.inline-error {
  font-size: 12px;
  color: var(--ink-2);
  padding: 12px 14px;
  border-left: 3px solid var(--line-2);
  background: var(--panel-2);
}
.empty {
  text-align: center;
  padding: 55px 22px;
}
.empty .empty-icon {
  margin: 0 auto 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  max-width: 460px;
  color: var(--muted);
  margin: 10px auto 22px;
  font-size: 13px;
}
.empty .actions {
  justify-content: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--panel);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.stat .stat-label {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.app-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 10px 36px;
}
.sidebar .eyebrow {
  padding: 0 12px;
  margin-bottom: 12px;
  font-size: 9px;
}
.app-nav {
  display: grid;
  gap: 5px;
}
.app-nav a {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
}
.app-nav a:hover {
  color: var(--ink);
  background: var(--hover);
}
.app-nav a[aria-current="page"] {
  background: var(--panel);
  border-color: var(--line);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px #040a0d04;
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-foot p {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.8;
}
.workspace {
  min-width: 0;
}
.workspace-bar {
  height: 70px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.workspace-bar .actions {
  gap: 14px;
}
.workspace-bar .quiet {
  font-size: 11px;
}
.command-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
}
kbd {
  font:
    10px ui-monospace,
    monospace;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.workspace main {
  max-width: 1370px;
  margin: auto;
  padding: 38px 36px 50px;
}
.workspace-footer {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 0;
  line-height: 1.8;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: 22px;
}
.start-card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.start-card .icon {
  margin-bottom: 18px;
}
.start-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 20px;
}
.recent-list {
  display: grid;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.recent-item:last-child {
  border-bottom: 0;
}
.recent-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--muted);
}
.recent-title {
  flex: 1;
  min-width: 0;
}
.recent-title strong {
  display: block;
  font-weight: 550;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-title p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.search-field {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--panel);
  min-width: 0;
}
.search-field input {
  border: 0;
  padding: 11px 0;
  width: 100%;
  outline: none;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-field .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
thead {
  background: var(--panel-2);
  color: var(--muted);
}
th {
  font-weight: 500;
  font-size: 10px;
  white-space: nowrap;
}
th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  max-width: 280px;
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--panel-2);
}
td .quiet {
  min-height: 24px;
  padding: 0;
  font-size: 11px;
}
.data-preview {
  max-height: 265px;
  overflow-y: auto;
}
.data-preview thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-preview td:first-child,
.data-preview th:first-child {
  color: var(--muted);
  width: 45px;
  background: var(--panel-2);
  font-size: 10px;
}
.data-preview tr[data-issue] td {
  background: var(--hover);
  border-bottom: 1px solid var(--line-2);
}
.data-preview td {
  min-width: 100px;
  white-space: pre-wrap;
}
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.preview-controls .search-field {
  width: 245px;
}
.preview-controls .quiet {
  min-height: 35px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.file-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}
.file-summary strong {
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.file-summary p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.file-summary > div {
  min-width: 0;
  flex: 1;
}
.dropzone {
  position: relative;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--panel-2);
}
.dropzone.dragging {
  background: var(--accent-wash);
  border: 2px solid var(--accent);
}
.dropzone .upload-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 8px;
}
.dropzone h3 {
  font-size: 16px;
}
.dropzone input {
  width: min(100%, 280px);
  margin: 12px 0 2px;
  font-size: 12px;
}
.dropzone input::file-selector-button {
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 5px;
  padding: 7px 12px;
  color: var(--ink-2);
  margin-right: 10px;
  cursor: pointer;
}
.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 25px;
}
.help-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.help-card h3 {
  color: var(--ink-2);
  margin-bottom: 12px;
}
.help-card ul {
  padding-left: 16px;
}
.help-card .secondary {
  width: 100%;
  margin-top: 12px;
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.wizard-steps li {
  padding: 0 12px 15px 0;
  color: var(--muted);
  font-size: 11px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}
.step-number {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
  background: var(--panel);
}
.wizard-steps li.active {
  color: var(--accent);
  font-weight: 600;
}
.wizard-steps li.active:after {
  content: "";
  height: 2px;
  background: var(--accent);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 12px;
}
.wizard-steps li.complete {
  color: var(--ink-2);
}
.wizard-steps li.complete .step-number {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
  margin: 22px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea,
.simple-input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field [aria-invalid="true"] {
  border: 2px solid var(--line-2);
}
.field .hint {
  font-size: 11px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}
.definition {
  font-size: 13px;
  padding: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.9;
  margin-top: 20px;
}
.definition strong {
  font-weight: 650;
}
.definition code {
  font:
    11px ui-monospace,
    monospace;
  background: var(--hover);
  padding: 2px 5px;
  border-radius: 3px;
}
.issue-box {
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 22px;
  background: var(--panel-2);
  margin-bottom: 22px;
}
.issue-box h2 {
  font-size: 18px;
}
.issue-box p {
  font-size: 12px;
  margin: 10px 0;
}
.issue-list {
  padding-left: 19px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 15px 0;
}
.progress-list {
  display: grid;
  gap: 0;
  padding: 12px 0;
  max-width: 650px;
}
.progress-stage {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding: 14px 0;
}
.stage-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 50%;
  background: var(--panel);
  position: relative;
  z-index: 1;
  font-size: 11px;
  flex-shrink: 0;
}
.progress-stage:not(:last-child):after {
  content: "";
  position: absolute;
  left: 13px;
  top: 43px;
  bottom: -11px;
  width: 1px;
  background: #dce5ea;
}
.progress-stage h3 {
  font-size: 13px;
  padding-top: 3px;
}
.progress-stage p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.progress-stage[data-state="complete"] .stage-icon {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.progress-stage[data-state="running"] .stage-icon {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.finding-hero {
  background: linear-gradient(135deg, #0b2e3a, #0f4c5c);
  color: white;
  padding: 30px;
  border-radius: 9px;
  margin-bottom: 22px;
}
.finding-hero .eyebrow {
  color: #7dd3c8;
}
.finding-hero h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 13px 0;
  max-width: 780px;
  letter-spacing: -0.8px;
}
.finding-hero p {
  font-size: 12px;
  line-height: 1.9;
  color: #c3d7de;
  max-width: 790px;
}
.finding-hero .badge {
  margin-top: 17px;
  background: #134654;
  color: #d5f5ef;
  border-color: #1f5e6e;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0 25px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: none;
  padding: 0 1px 13px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: 22px;
}
.next-action {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}
.next-action p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.check-row {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child {
  border: 0;
}
.check-row .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}
.check-row p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.bar-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}
.bar-chart text {
  font:
    11px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  fill: var(--muted);
}
.report-source {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.report-source strong {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 550;
  margin-bottom: 6px;
}
.mono,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  padding: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.8;
  max-height: 450px;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}
.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.trust-strip span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.trust-strip .icon {
  width: 13px;
  height: 13px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.project-card h3 {
  margin: 18px 0 10px;
  font-size: 17px;
}
.project-card p {
  font-size: 12px;
  color: var(--muted);
}
.project-card .actions {
  margin-top: 20px;
}
.settings-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 650px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.guide-grid .panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 13px;
}
.auth-card {
  max-width: 470px;
  margin: 45px auto;
}
.auth-card .field {
  margin: 20px 0;
}
.auth-card .primary {
  width: 100%;
}
dialog {
  max-width: min(540px, calc(100vw - 30px));
  width: 540px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 30px 100px #040a0d20;
}
dialog: :backdrop {
  background: #040a0d50;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 21px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
dialog .field {
  margin: 18px 0;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.command-list {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  max-height: 350px;
  overflow-y: auto;
}
.command-list button {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 13px 12px;
  font-size: 12px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
}
.command-list button:hover {
  background: var(--hover);
  border-color: var(--line);
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: min(440px, calc(100vw - 35px));
  background: #0c1e2b;
  color: white;
  padding: 15px 20px;
  font-size: 12px;
  border-radius: 7px;
  box-shadow: 0 8px 25px #040a0d20;
  z-index: 100;
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace main {
    padding: 30px 25px;
  }
  .workspace-bar {
    padding-inline: 25px;
  }
  .upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 30px;
  }
  .help-card .secondary {
    width: auto;
    align-self: center;
  }
}
@media (max-width: 850px) {
  .dashboard-grid,
  .result-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 24px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    padding: 17px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 15px;
    font-size: 18px;
  }
  .sidebar > .eyebrow,
  .sidebar-foot {
    display: none;
  }
  .app-nav {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
  }
  .app-nav a {
    flex-shrink: 0;
    min-height: 40px;
    font-size: 11px;
    padding: 9px 10px;
  }
  .app-nav .icon {
    display: none;
  }
  .workspace-bar {
    height: 55px;
    padding: 0 17px;
    font-size: 10px;
  }
  .workspace-bar .actions {
    gap: 5px;
  }
  .workspace-bar .command-button span,
  .workspace-bar kbd {
    display: none;
  }
  .workspace-bar .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .workspace main {
    padding: 28px 17px;
  }
  .panel {
    padding: 22px 18px;
  }
  .panel-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .wizard-steps li {
    font-size: 9px;
    gap: 6px;
    padding-right: 5px;
  }
  .wizard-steps li .step-number {
    width: 20px;
    height: 20px;
    font-size: 8px;
  }
  .wizard-steps li.active:after {
    right: 7px;
  }
  .wizard-footer {
    flex-wrap: wrap;
  }
  .help-card {
    display: block;
  }
  .help-card .secondary {
    margin-top: 15px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }
  .stat strong {
    margin: 0;
    grid-column: 2;
    grid-row: 1/3;
  }
  .stat small {
    grid-column: 1;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .workspace-footer {
    flex-direction: column;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar .search-field {
    width: 100%;
  }
  .finding-hero {
    padding: 24px 20px;
  }
  .finding-hero h2 {
    font-size: 24px;
  }
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .recent-item .badge {
    font-size: 9px;
  }
}
@media (max-width: 380px) {
  .wizard-steps li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .workspace-bar > span {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.segment-chart {
  display: grid;
  gap: 18px;
  padding: 20px 0 28px;
}
.segment-row {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) minmax(80px, 2fr) minmax(70px, auto);
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
}
.segment-row svg {
  display: block;
  width: 100%;
  height: 20px;
  min-width: 0;
}
.segment-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.segment-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .workspace-bar {
    gap: 8px;
  }
  .workspace-bar .actions {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .segment-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .segment-row svg {
    grid-row: 2;
    grid-column: 1 / -1;
    height: 18px;
  }
  .segment-label {
    font-size: 12px;
  }
  .segment-value {
    grid-column: 2;
    grid-row: 1;
  }
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, #6d5dfc14, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #22d3ee0d, transparent 60%),
    var(--ground);
  min-height: 100vh;
}
::selection {
  background: #6d5dfc66;
  color: #ffffff;
}
h1,
h2,
h3 {
  color: var(--ink);
}
.eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}
.primary {
  background: var(--button);
  border-color: #7c6cff;
  box-shadow:
    0 1px 0 #ffffff26 inset,
    0 8px 24px -10px #6d5dfccc;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}
.primary:hover:enabled,
a.primary:hover {
  background: var(--button);
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.primary.glow {
  box-shadow:
    0 1px 0 #ffffff33 inset,
    0 0 0 1px #8b7bff55,
    0 12px 40px -8px #6d5dfcb3;
}
.secondary {
  color: var(--ink);
  background: #ffffff08;
  border-color: var(--line-2);
}
.secondary:hover:enabled,
a.secondary:hover {
  background: #ffffff12;
  border-color: #4b5080;
}
.quiet {
  color: var(--muted);
}
.quiet:hover {
  color: var(--ink);
}
.danger {
  color: #fecdd3;
  background: #fb71851a;
  border-color: #fb718566;
}
.brand {
  color: var(--ink);
}
.brand-symbol {
  background: var(--signal);
  color: #0a0a12;
  box-shadow: 0 0 24px -4px #818cf8aa;
  padding: 0;
}
.brand-symbol .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.badge {
  background: #ffffff0a;
  border-color: var(--line-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.badge.strong {
  background: var(--button);
  border-color: #7c6cff;
}
.badge.outline {
  background: transparent;
  color: var(--ink-2);
}
.badge.outcome-resolve {
  background: #34d3991a;
  border-color: #34d39955;
  color: var(--success);
}
.badge.outcome-needs_information {
  background: #fbbf241a;
  border-color: #fbbf2455;
  color: var(--warn);
}
.badge.outcome-no_change {
  background: #60a5fa1a;
  border-color: #60a5fa55;
  color: var(--info);
}
.panel,
.stat,
.start-card,
.project-card,
.help-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff06, transparent 40%), var(--panel);
  box-shadow: var(--shadow);
}
.stat strong {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat,
.project-card,
.start-card {
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.project-card:hover,
.start-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.sidebar {
  background: #0b0b15e6;
  backdrop-filter: blur(14px);
}
.app-nav a[aria-current="page"] {
  background: linear-gradient(90deg, #6d5dfc2e, #6d5dfc08);
  border-color: #6d5dfc55;
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.app-nav a[aria-current="page"] .icon {
  color: var(--accent);
}
.workspace-bar {
  background: #0a0a12cc;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.command-button:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.field input,
.field select,
.field textarea,
.simple-input,
.search-field {
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.simple-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #6d5dfc33;
  outline: none;
}
.dropzone {
  background:
    radial-gradient(400px 160px at 50% 0%, #6d5dfc14, transparent 70%),
    var(--panel-2);
  border-color: var(--line-2);
}
.dropzone .upload-mark {
  color: var(--accent);
}
.inline-error {
  color: #fecdd3;
  border-left-color: var(--danger);
  background: #fb718514;
}
.callout {
  background: #6d5dfc0d;
  border-color: #6d5dfc33;
}
.callout .icon {
  color: var(--accent);
}
.progress-stage:not(:last-child):after {
  background: linear-gradient(180deg, var(--accent), var(--line));
}
.progress-stage[data-state="running"] .stage-icon {
  box-shadow: 0 0 0 4px #6d5dfc26;
}
.finding-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 240px at 100% 0%, #22d3ee26, transparent 70%),
    radial-gradient(600px 300px at 0% 100%, #6d5dfc40, transparent 70%), #12112a;
  border: 1px solid #6d5dfc44;
  border-radius: var(--radius);
}
.finding-hero .eyebrow {
  color: #a5f3fc;
}
.finding-hero p {
  color: var(--ink-2);
}
.finding-hero .badge {
  background: #ffffff10;
  color: var(--ink);
  border-color: #ffffff26;
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
tbody tr:hover {
  background: #ffffff05;
}
thead {
  background: var(--panel-2);
}
.toast {
  background: #1b1d33;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-2);
}
dialog::backdrop {
  background: #03030899;
}
.skip {
  background: var(--panel);
  color: var(--ink);
}
pre {
  color: var(--ink-2);
}
.segment-row svg rect:first-child {
  fill: var(--hover);
}
.segment-row svg rect + rect {
  fill: var(--accent);
}

.signal {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  min-height: 100vh;
}
.signal-aurora {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  pointer-events: none;
  background:
    radial-gradient(700px 380px at 20% 8%, #6d5dfc38, transparent 70%),
    radial-gradient(640px 360px at 82% 18%, #22d3ee24, transparent 70%),
    radial-gradient(520px 300px at 50% 60%, #a78bfa14, transparent 70%);
}
.signal-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 20%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 20%,
    #000 30%,
    transparent 75%
  );
}
.signal-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, #07070dcc, #07070d80);
  border-bottom: 1px solid #ffffff0a;
}
.signal-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
}
.signal-nav nav a:not(.primary):hover {
  color: var(--ink);
}
.signal-main {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.signal-hero {
  text-align: center;
  padding: 96px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid #8b7bff55;
  background: #6d5dfc1a;
  color: var(--ink-2);
  font-size: 12px;
  transition: border-color 0.2s ease;
}
.signal-pill:hover {
  border-color: #a78bfa;
  color: var(--ink);
}
.signal-pill .icon {
  width: 14px;
  height: 14px;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
.signal-hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.gradient-text {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.signal-hero .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions {
  justify-content: center;
  margin: 34px 0 22px;
}
.hero-actions .primary,
.hero-actions .secondary,
.signal-cta .primary,
.signal-cta .secondary {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 10px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}
.relay-stage {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, #8b7bff66, #ffffff10 40%, #22d3ee55);
  box-shadow: 0 40px 120px -40px #6d5dfc66;
}
.relay-stage > * {
  position: relative;
}
.relay-stage::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background:
    radial-gradient(800px 300px at 50% 0%, #6d5dfc14, transparent 70%), #0c0c17;
}
.relay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
}
.relay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.relay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 34px 28px;
}
.relay-column {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.relay-node {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff05;
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.relay-node:hover {
  border-color: #8b7bff66;
  background: #6d5dfc12;
}
.relay-node strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.relay-node span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.relay-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #8b7bff00, #8b7bffaa, #22d3ee00);
  background-size: 200% 100%;
  animation: flow 2.4s linear infinite;
}
.sources .relay-node::after {
  left: 100%;
}
.gates .relay-node::after {
  right: 100%;
  animation-delay: 1.2s;
}
@keyframes flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.relay-node.gate {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.relay-node.gate div {
  display: grid;
  gap: 3px;
}
.gate-check {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #04120d;
  background: var(--success);
  stroke-width: 3;
}
.relay-core {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
}
.core-ring {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid #8b7bff55;
  animation: breathe 3.6s ease-in-out infinite;
}
.core-ring.delayed {
  width: 204px;
  height: 204px;
  border-color: #22d3ee33;
  animation-delay: 1.8s;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}
.core-body {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, #8b7bff, #4c33c9 55%, #1a1446);
  box-shadow:
    0 0 0 1px #a78bfa66,
    0 0 60px -6px #6d5dfccc,
    inset 0 1px 0 #ffffff40;
  color: #ffffff;
  align-content: center;
}
.core-body .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}
.core-body strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.core-body span {
  font-size: 11px;
  color: #ddd6fe;
}
.signal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 72px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.metric {
  display: grid;
  gap: 6px;
  padding: 26px 24px;
  background: var(--panel);
}
.metric strong {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.signal-section {
  padding: 110px 0 0;
}
.signal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    600 11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.signal-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}
.signal-section > h2,
.receipt-copy h2,
.signal-cta h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 760px;
}
.pipeline {
  position: relative;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.pipeline::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 21px;
  height: 1px;
  background: var(--signal);
  opacity: 0.6;
}
.pipeline li {
  position: relative;
  padding: 0 4px;
}
.pipeline-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0c0c17;
  border: 1px solid #8b7bff66;
  font:
    600 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--ink);
  box-shadow: 0 0 24px -6px #6d5dfc99;
  position: relative;
}
.pipeline h3 {
  margin: 22px 0 10px;
  font-size: 17px;
}
.pipeline p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.bento-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 100% 0%, #6d5dfc12, transparent 70%),
    var(--panel);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.bento-card:hover {
  border-color: #8b7bff55;
  transform: translateY(-3px);
}
.bento-card.wide {
  grid-column: span 2;
}
.bento-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #6d5dfc1f;
  border: 1px solid #8b7bff44;
  color: #c4b5fd;
}
.bento-card h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.bento-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 520px;
}
.bento-card .fine {
  margin-top: 12px;
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.mini-diff {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}
.diff-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 20px 90px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.diff-line code {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.diff-line .before {
  color: #fda4af;
  text-decoration: line-through;
  text-decoration-color: #fb718599;
}
.diff-line .arrow {
  color: var(--muted);
}
.diff-line .after {
  color: var(--success);
}
.digest {
  display: block;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #8b7bff66;
  background: #6d5dfc0f;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #c4b5fd;
  overflow-wrap: anywhere;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.chip {
  padding: 4px 8px;
  border-radius: 999px;
  font:
    10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--success);
  background: #34d39914;
  border: 1px solid #34d39940;
}
.mini-ledger {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mini-ledger li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.mini-ledger code {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-index {
  color: var(--muted);
}
.ledger-state {
  color: var(--success);
}
.lease-track {
  position: relative;
  height: 46px;
  margin-top: 18px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lease {
  position: absolute;
  height: 8px;
  border-radius: 99px;
  left: -40%;
  width: 38%;
  background: var(--signal);
  animation: lease 4.8s linear infinite;
}
.lease.a {
  top: 8px;
}
.lease.b {
  top: 19px;
  animation-delay: 1.6s;
  opacity: 0.7;
}
.lease.c {
  top: 30px;
  animation-delay: 3.2s;
  opacity: 0.45;
}
@keyframes lease {
  to {
    left: 105%;
  }
}
.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.evidence-tile {
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.evidence-tile i {
  display: block;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(#ffffff14, #ffffff14) 12px 14px / 50% 6px no-repeat,
    linear-gradient(#ffffff0d, #ffffff0d) 12px 28px / 70% 4px no-repeat,
    linear-gradient(#ffffff0d, #ffffff0d) 12px 38px / 60% 4px no-repeat,
    linear-gradient(#8b7bff55, #8b7bff55) 12px 52px / 30% 6px no-repeat,
    var(--bg);
}
.receipt-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.receipt-copy > p:not(.signal-eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.receipt-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.receipt-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.receipt-points .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: #34d3991f;
  color: var(--success);
  stroke-width: 2.4;
}
.terminal {
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: #08080f;
  box-shadow: 0 40px 100px -40px #22d3ee40;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #0e0e1a;
}
.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b2e47;
}
.terminal-bar span {
  margin-left: 10px;
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
}
.terminal-body {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  font:
    12.5px/1.9 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.terminal-body li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
  gap: 14px;
  opacity: 0;
  animation: type-in 0.4s ease forwards;
}
.terminal-body li:nth-child(1) {
  animation-delay: 0.1s;
}
.terminal-body li:nth-child(2) {
  animation-delay: 0.3s;
}
.terminal-body li:nth-child(3) {
  animation-delay: 0.5s;
}
.terminal-body li:nth-child(4) {
  animation-delay: 0.7s;
}
.terminal-body li:nth-child(5) {
  animation-delay: 0.9s;
}
.terminal-body li:nth-child(6) {
  animation-delay: 1.1s;
}
.terminal-body li:nth-child(7) {
  animation-delay: 1.3s;
}
.terminal-body li:nth-child(8) {
  animation-delay: 1.5s;
}
.terminal-body li:nth-child(9) {
  animation-delay: 1.7s;
}
@keyframes type-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.t-step {
  color: #c4b5fd;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-detail {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-state {
  color: var(--success);
  text-align: right;
}
.terminal-body li:last-child .t-state {
  color: var(--cyan);
}
.signal-cta {
  position: relative;
  margin: 120px 0 0;
  padding: 56px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border: 1px solid #8b7bff55;
  background:
    radial-gradient(500px 260px at 0% 0%, #6d5dfc40, transparent 70%),
    radial-gradient(500px 260px at 100% 100%, #22d3ee26, transparent 70%),
    #0e0d22;
}
.signal-cta p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.signal-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 80px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.signal-footer .brand {
  font-size: 15px;
}
.signal-footer .brand-symbol {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.signal-footer .brand-symbol .icon {
  width: 14px;
  height: 14px;
}
.signal-footer .actions {
  margin-left: auto;
  gap: 22px;
}
.signal-footer a:hover {
  color: var(--ink);
}
@media (max-width: 1000px) {
  .relay-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .relay-core {
    height: 200px;
    order: -1;
  }
  .relay-node::after {
    display: none;
  }
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .pipeline::before {
    left: 21px;
    right: auto;
    top: 20px;
    bottom: 20px;
    width: 1px;
    height: auto;
  }
  .pipeline li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 18px;
  }
  .pipeline h3 {
    margin: 10px 0 6px;
  }
  .pipeline p {
    grid-column: 2;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .receipt-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .signal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .signal-nav {
    padding: 14px 20px;
  }
  .signal-nav nav > a:not(.primary) {
    display: none;
  }
  .signal-nav .primary {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .signal-main {
    padding: 0 20px;
  }
  .signal-hero {
    padding: 64px 0 40px;
  }
  .signal-hero .lead {
    font-size: 15px;
  }
  .relay-grid {
    padding: 22px 16px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-card.wide {
    grid-column: auto;
  }
  .bento-card {
    padding: 22px;
  }
  .diff-line {
    grid-template-columns: minmax(0, 1fr) auto 14px auto;
    font-size: 11px;
    padding: 9px 10px;
  }
  .evidence-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .signal-section {
    padding-top: 72px;
  }
  .terminal-body {
    font-size: 11px;
    padding: 14px;
  }
  .terminal-body li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .t-detail {
    display: none;
  }
  .signal-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    margin-top: 80px;
  }
  .signal-footer .actions {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .terminal-body li {
    opacity: 1;
  }
}
.bento-card.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  column-gap: 40px;
  align-items: center;
}
.bento-card.full .evidence-strip {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
}
@media (max-width: 1000px) {
  .bento-card.full {
    display: block;
  }
  .bento-card.full .evidence-strip {
    margin-top: 22px;
  }
}
.search-field input {
  background: transparent;
  color: var(--ink);
}
.search-field input::placeholder,
.field input::placeholder {
  color: #7d82a3;
}
