:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #0b1011;
  --carbon: #111617;
  --panel: rgba(11, 14, 16, 0.88);
  --panel-2: rgba(17, 22, 23, 0.92);
  --ink: #f8f7ed;
  --text: #d9ddd3;
  --muted: #8f978f;
  --line: rgba(218, 255, 54, 0.18);
  --line-strong: rgba(218, 255, 54, 0.5);
  --lime: #d9ff37;
  --green: #43e28d;
  --cyan: #25c7ff;
  --violet: #8c5dff;
  --gold: #f6c75d;
  --amber: #ffb23e;
  --red: #ff5d5d;
  --magenta: #ff4fc4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(112deg, rgba(217, 255, 55, 0.07) 0 9%, transparent 9% 58%, rgba(37, 199, 255, 0.055) 58% 65%, transparent 65%),
    repeating-linear-gradient(118deg, transparent 0 52px, rgba(255, 255, 255, 0.035) 52px 53px),
    radial-gradient(circle at 78% 3%, rgba(217, 255, 55, 0.18), transparent 30%),
    radial-gradient(circle at 8% 25%, rgba(140, 93, 255, 0.14), transparent 28%),
    linear-gradient(145deg, #030404 0%, #101516 48%, #050607 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid rgba(217, 255, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 9, 10, 0.98), rgba(9, 13, 14, 0.95)),
    linear-gradient(135deg, rgba(217, 255, 55, 0.12), transparent 45%);
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    linear-gradient(150deg, rgba(217, 255, 55, 0.22), rgba(37, 199, 255, 0.08)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.08) 8px 9px);
  color: var(--lime);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 34px rgba(217, 255, 55, 0.16), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  background: transparent;
  color: #b9c0b7;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 850;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(217, 255, 55, 0.18), rgba(37, 199, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--lime);
}

.sidebar-note {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 32px rgba(217, 255, 55, 0.05);
}

.sidebar-note span,
.sidebar-note small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sidebar-note strong {
  display: block;
  margin: 7px 0;
  color: var(--lime);
  font-size: 14px;
}

.workspace {
  padding: 28px;
}

.topbar {
  position: relative;
  min-height: 330px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(7, 9, 10, 0.96) 0 48%, rgba(16, 22, 22, 0.88) 48%),
    linear-gradient(128deg, transparent 0 58%, rgba(217, 255, 55, 0.18) 58% 64%, transparent 64%),
    radial-gradient(circle at 82% 20%, rgba(217, 255, 55, 0.24), transparent 26%),
    radial-gradient(circle at 92% 82%, rgba(37, 199, 255, 0.16), transparent 24%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(116deg, transparent 0 24px, rgba(255, 255, 255, 0.045) 24px 25px),
    linear-gradient(105deg, transparent 0 48%, rgba(217, 255, 55, 0.13) 48% 51%, transparent 51%);
  pointer-events: none;
}

.topbar::after {
  content: "ZT";
  position: absolute;
  right: 34px;
  bottom: -28px;
  color: rgba(217, 255, 55, 0.09);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
}

p {
  color: var(--muted);
}

.hero-copy {
  max-width: 700px;
  margin: 0;
  color: #c9d1c6;
  font-size: 16px;
  line-height: 1.62;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.hero-stats span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217, 255, 55, 0.22);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats strong {
  color: var(--lime);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(340px, 100%);
  padding: 16px;
  border: 1px solid rgba(217, 255, 55, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 4, 4, 0.62);
  backdrop-filter: blur(18px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  border: 1px solid rgba(217, 255, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  outline: 0;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

select option {
  background: #101516;
  color: var(--ink);
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 255, 55, 0.13);
}

.primary-action,
.secondary-action,
.ghost-button,
.segment {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 950;
  cursor: pointer;
}

.primary-action {
  border-color: rgba(217, 255, 55, 0.75);
  background: linear-gradient(135deg, var(--lime), #86d82e);
  color: #060806;
  box-shadow: 0 14px 34px rgba(217, 255, 55, 0.2);
}

.secondary-action {
  border-color: rgba(217, 255, 55, 0.24);
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  color: var(--lime);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-button:hover,
.segment:hover {
  transform: translateY(-1px);
}

.ticker-tape {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 18px;
  padding-bottom: 2px;
}

.ticker-tape span {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(217, 255, 55, 0.16);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd3c8;
  font-size: 12px;
  font-weight: 900;
}

.ticker-tape strong {
  color: var(--green);
}

.ticker-tape .down {
  color: var(--red);
}

.command-panel {
  background:
    linear-gradient(105deg, rgba(9, 13, 14, 0.96) 0 58%, rgba(217, 255, 55, 0.09) 58% 62%, rgba(11, 15, 16, 0.94) 62%),
    radial-gradient(circle at 82% 10%, rgba(217, 255, 55, 0.18), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(37, 199, 255, 0.13), transparent 28%);
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.function-card {
  min-height: 148px;
  border: 1px solid rgba(217, 255, 55, 0.16);
  border-radius: var(--radius);
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(217, 255, 55, 0.035) 22px 23px);
}

.function-card span,
.agent-plan-header span,
.strategy-brief span,
.agent-stack span {
  display: block;
  color: var(--lime);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.function-card strong {
  display: block;
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.function-card small {
  color: var(--muted);
  line-height: 1.42;
}

.agent-builder {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(217, 255, 55, 0.22);
  border-radius: var(--radius);
  padding: 15px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 34px rgba(217, 255, 55, 0.04);
}

.agent-builder h3 {
  margin: 0 0 2px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.builder-note {
  color: var(--muted);
  line-height: 1.38;
}

.ai-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(37, 199, 255, 0.2);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(37, 199, 255, 0.07);
}

.ai-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-status strong {
  color: var(--cyan);
  font-size: 12px;
  text-align: right;
}

.ai-output {
  min-height: 178px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(217, 255, 55, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.34);
  color: #dce6d7;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.agent-output {
  border: 1px solid rgba(217, 255, 55, 0.18);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.agent-plan-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.agent-plan-header > div {
  border: 1px solid rgba(217, 255, 55, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.agent-plan-header strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
}

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

.strategy-brief article {
  min-height: 118px;
  border: 1px solid rgba(217, 255, 55, 0.13);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.strategy-brief p {
  margin: 7px 0 0;
  color: #d5ddd1;
  font-size: 13px;
  line-height: 1.48;
}

.agent-stack {
  margin-top: 10px;
  border: 1px solid rgba(37, 199, 255, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(135deg, rgba(37, 199, 255, 0.08), rgba(217, 255, 55, 0.045));
}

.agent-stack strong,
.agent-stack small {
  display: block;
}

.agent-stack strong {
  margin: 6px 0;
  color: var(--ink);
  line-height: 1.35;
}

.agent-stack small {
  color: var(--muted);
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}

.main-column,
.right-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
}

.panel {
  position: relative;
  border: 1px solid rgba(217, 255, 55, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 22, 23, 0.9), rgba(6, 8, 9, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(217, 255, 55, 0.08), transparent 28%);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 34%, var(--cyan));
  opacity: 0.7;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header.compact {
  margin-bottom: 12px;
}

.panel-header p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.status-chip.safe {
  border-color: rgba(67, 226, 141, 0.34);
  background: rgba(67, 226, 141, 0.12);
  color: var(--green);
}

.status-chip.warning {
  border-color: rgba(255, 178, 62, 0.35);
  background: rgba(255, 178, 62, 0.12);
  color: var(--amber);
}

.status-chip.danger {
  border-color: rgba(255, 93, 93, 0.38);
  background: rgba(255, 93, 93, 0.12);
  color: var(--red);
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.signal-inputs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-grid,
.compact-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compact-metrics {
  margin-bottom: 14px;
}

.metric-card,
.pipeline-step,
.idea-card,
.check-item,
.rule-item,
.execution-step,
.workflow-list article,
.readiness-item,
.journal-entry,
.live-guard-card,
.source-list a {
  border: 1px solid rgba(217, 255, 55, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.metric-card {
  min-height: 138px;
  padding: 14px;
}

.metric-card span,
.score-row span,
.sentiment-row span,
.scanner-score span,
.idea-score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 9px 0 12px;
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card small {
  color: var(--muted);
  font-weight: 760;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 180ms ease;
}

.green {
  background: var(--green);
}

.teal {
  background: var(--cyan);
}

.amber {
  background: var(--lime);
}

.risk-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 18px 0 10px;
}

.risk-scale span {
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 199, 255, 0.22);
}

.risk-scale span:nth-child(4),
.risk-scale span:nth-child(5) {
  background: rgba(217, 255, 55, 0.45);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pipeline-step {
  padding: 12px;
}

.pipeline-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(217, 255, 55, 0.1);
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
}

.pipeline-step strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.pipeline-step small {
  color: var(--muted);
  line-height: 1.35;
}

.scanner-list,
.idea-list,
.checklist,
.rule-list,
.execution-steps,
.workflow-list,
.readiness-list,
.journal-entries,
.source-list {
  display: grid;
  gap: 10px;
}

.scanner-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217, 255, 55, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.scanner-card strong {
  display: block;
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.scanner-card p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
}

.scanner-card .scanner-score {
  min-width: 74px;
  text-align: right;
}

.scanner-card .scanner-score strong,
.idea-score strong {
  color: var(--lime);
  font-size: 26px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(217, 255, 55, 0.18);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(217, 255, 55, 0.06);
  color: #dce8d7;
  font-size: 11px;
  font-weight: 900;
}

.preflight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.signal-output {
  min-height: 260px;
  border: 1px solid rgba(217, 255, 55, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(217, 255, 55, 0.08), rgba(37, 199, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.signal-output h3 {
  margin-bottom: 12px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.signal-output dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.signal-output dl div {
  border: 1px solid rgba(217, 255, 55, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.signal-output dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-output dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}

.signal-output ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.45;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px;
}

.rule-item span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  background: rgba(67, 226, 141, 0.13);
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.rule-item.blocked span {
  background: rgba(255, 93, 93, 0.13);
  color: var(--red);
}

.rule-item strong {
  color: var(--text);
  font-size: 13px;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(217, 255, 55, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.segment {
  min-height: 32px;
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: rgba(217, 255, 55, 0.15);
  color: var(--lime);
}

.idea-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
}

.idea-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.idea-card p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.idea-score {
  min-width: 74px;
  text-align: right;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--lime);
}

.check-item span {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.check-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 255, 55, 0.14);
}

.score-row strong {
  display: block;
  margin-top: 4px;
  color: var(--lime);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
}

.algorithm-list {
  margin: 0;
  padding-left: 20px;
}

.algorithm-list li {
  margin-bottom: 10px;
  color: #d9ddd3;
  line-height: 1.45;
}

.tarot-panel {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -8%, rgba(246, 199, 93, 0.34), transparent 36%),
    radial-gradient(circle at 8% 18%, rgba(255, 79, 196, 0.22), transparent 30%),
    radial-gradient(circle at 94% 14%, rgba(37, 199, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(21, 12, 31, 0.98), rgba(5, 5, 9, 0.98));
}

.tarot-panel::before {
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--gold), var(--lime), var(--cyan));
}

.tarot-panel::after {
  content: "";
  position: absolute;
  inset: 42px -80px auto;
  height: 170px;
  background:
    conic-gradient(from 90deg, transparent, rgba(246, 199, 93, 0.18), transparent 38%, rgba(255, 79, 196, 0.15), transparent 72%);
  opacity: 0.75;
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.tarot-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff2c4;
}

.tarot-panel p,
.tarot-panel .panel-header p {
  color: #d5c49e;
}

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

.tarot-card {
  position: relative;
  min-height: 210px;
  border: 1px solid rgba(246, 199, 93, 0.62);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(160deg, rgba(48, 23, 63, 0.98), rgba(9, 8, 16, 0.98)),
    radial-gradient(circle at 50% 18%, rgba(246, 199, 93, 0.22), transparent 36%);
  box-shadow:
    inset 0 0 28px rgba(246, 199, 93, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.tarot-card:nth-child(1) {
  transform: rotate(-2deg);
}

.tarot-card:nth-child(2) {
  transform: translateY(-7px);
}

.tarot-card:nth-child(3) {
  transform: rotate(2deg);
}

.tarot-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(246, 199, 93, 0.32);
  border-radius: 5px;
  pointer-events: none;
}

.tarot-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 0 44%, rgba(246, 199, 93, 0.12) 45% 46%, transparent 47%),
    linear-gradient(90deg, transparent 0 49%, rgba(246, 199, 93, 0.16) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(246, 199, 93, 0.16) 49% 51%, transparent 51%);
  opacity: 0.55;
}

.tarot-card .card-face {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 88px;
  margin-bottom: 13px;
  border: 1px solid rgba(246, 199, 93, 0.28);
  border-radius: 6px;
  background:
    radial-gradient(circle at center, rgba(255, 244, 182, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(246, 199, 93, 0.2), rgba(140, 93, 255, 0.18));
  color: #ffdf7a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
}

.tarot-card strong,
.tarot-card small {
  position: relative;
  z-index: 1;
}

.tarot-card strong {
  display: block;
  margin-bottom: 7px;
  color: #fff7dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.tarot-card small {
  color: #dbc894;
  line-height: 1.38;
}

.tarot-summary {
  margin: 14px 0 0;
  border: 1px solid rgba(246, 199, 93, 0.2);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.45;
}

.sentiment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(217, 255, 55, 0.13);
  color: var(--muted);
  font-size: 13px;
}

.sentiment-row:last-child {
  border-bottom: 0;
}

.sentiment-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.sentiment-row .danger {
  color: #ff908a;
}

.live-guard-card {
  padding: 12px;
  margin-bottom: 10px;
  border-color: rgba(255, 93, 93, 0.26);
  background: rgba(255, 93, 93, 0.08);
}

.live-guard-card strong,
.live-guard-card span {
  display: block;
}

.live-guard-card strong {
  color: #ffd0d0;
  margin-bottom: 5px;
}

.live-guard-card span,
.execution-step small,
.workflow-list small,
.readiness-item span {
  color: var(--muted);
  line-height: 1.35;
}

.execution-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px;
}

.execution-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(217, 255, 55, 0.12);
  color: var(--lime);
  font-weight: 950;
}

.execution-step strong,
.workflow-list strong,
.readiness-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.readiness-list {
  grid-template-columns: 1fr 1fr;
}

.readiness-item {
  padding: 11px;
}

.readiness-item.locked {
  border-color: rgba(255, 93, 93, 0.25);
  background: rgba(255, 93, 93, 0.075);
}

.workflow-list article {
  padding: 12px;
}

.source-list a {
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.journal-entry {
  padding: 10px;
}

.journal-entry time {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.journal-entry p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(6, 8, 9, 0.96);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
  .content-grid,
  .split-panels,
  .preflight-layout,
  .command-layout {
    grid-template-columns: 1fr;
  }

  .pipeline-grid,
  .signal-inputs,
  .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .right-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tarot-panel {
    grid-column: span 2;
  }
}

@media (max-width: 940px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    min-height: auto;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .inputs-grid,
  .metric-grid,
  .compact-metrics,
  .right-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 16px 12px;
  }

  .topbar {
    padding: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .nav-list,
  .inputs-grid,
  .pipeline-grid,
  .signal-inputs,
  .metric-grid,
  .compact-metrics,
  .function-grid,
  .agent-plan-header,
  .strategy-brief,
  .right-column,
  .tarot-cards,
  .signal-output dl,
  .readiness-list {
    grid-template-columns: 1fr;
  }

  .tarot-panel {
    grid-column: auto;
  }

  .tarot-card:nth-child(1),
  .tarot-card:nth-child(2),
  .tarot-card:nth-child(3) {
    transform: none;
  }

  .panel-header,
  .idea-card,
  .scanner-card,
  .score-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .scanner-card .scanner-score,
  .idea-score {
    text-align: left;
  }

  .segmented {
    overflow-x: auto;
  }
}
