:root {
  --ink: #16211f;
  --muted: #60716c;
  --paper: #f5efe2;
  --panel: rgba(255, 250, 238, 0.82);
  --line: rgba(42, 56, 51, 0.14);
  --green: #2d8f6f;
  --red: #c8513f;
  --amber: #c58b2b;
  --blue: #315c7c;
  --shadow: 0 28px 80px rgba(37, 43, 36, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos Display", "Segoe UI", Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 81, 63, 0.22), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(45, 143, 111, 0.28), transparent 28%),
    linear-gradient(135deg, #efe2c8 0%, #f7f1e6 45%, #d8e0d2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 33, 31, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
}

.shell {
  width: min(1480px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
  animation: rise 520ms ease both;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.6rem;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.status-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  min-width: 260px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 999px;
  padding: 14px 18px;
}

.status-card small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(45, 143, 111, 0.55);
  animation: pulse 1.8s infinite;
}

.grid {
  display: grid;
  gap: 18px;
}

.top-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.panel {
  border-radius: 30px;
  padding: 24px;
  margin-bottom: 18px;
  animation: rise 600ms ease both;
}

.signal-panel {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 250, 238, 0.90), rgba(250, 229, 202, 0.72)),
    radial-gradient(circle at 90% 20%, rgba(200, 81, 63, 0.18), transparent 35%);
}

.signal-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 38px solid rgba(22, 33, 31, 0.06);
}

.lead,
.briefing {
  color: #33433f;
  font-size: 1.13rem;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.chip {
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(22, 33, 31, 0.08);
  color: #263532;
  font-size: 0.82rem;
  font-weight: 800;
}

.probability {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.prob-row,
.metric-row,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.prob-row {
  margin: 10px 0 7px;
  font-weight: 800;
}

.bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(22, 33, 31, 0.10);
  overflow: hidden;
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ec7a8, var(--green));
  transition: width 700ms ease;
}

.bar.short span {
  background: linear-gradient(90deg, #e7a075, var(--red));
}

.metric-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.metric-row div {
  min-width: 0;
}

.metric-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-row strong {
  display: block;
  margin-top: 5px;
  font-size: 1.25rem;
}

.ghost-button {
  border: 1px solid rgba(22, 33, 31, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 16px;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.history-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(22, 33, 31, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
}

.history-button {
  border: 1px solid rgba(22, 33, 31, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 13px;
}

.history-button.active {
  background: var(--ink);
  color: #fff;
}

.history-pager {
  align-items: center;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.screenshot-button {
  width: 100%;
  border: 1px solid rgba(49, 92, 124, 0.28);
  border-radius: 16px;
  background: rgba(49, 92, 124, 0.10);
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
  margin-top: 14px;
  padding: 11px 12px;
}

.screenshot-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.risk-v2-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.52), rgba(243, 236, 219, 0.30)),
    radial-gradient(circle at 100% 0%, rgba(166, 87, 45, 0.12), transparent 34%);
}

.risk-v2-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.risk-v2-head small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-v2-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.2rem;
}

.risk-v2-grid {
  margin: 0 0 10px;
}

.risk-v2-card p {
  margin: 8px 0;
  color: #40504c;
  line-height: 1.45;
}

.risk-v2-card details {
  margin-top: 8px;
}

.risk-v2-card summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--blue);
}

.timeframe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.official-timeframe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tf-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.34);
}

.official-tf-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 33, 31, 0.13);
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.44), rgba(255, 250, 238, 0.22)),
    radial-gradient(circle at 90% 8%, rgba(49, 92, 124, 0.11), transparent 36%);
}

.official-tf-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 18px solid rgba(22, 33, 31, 0.045);
}

.high-timeframe-panel {
  border-color: rgba(38, 72, 92, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(239, 246, 242, 0.28)),
    rgba(255, 255, 255, 0.22);
}

.high-timeframe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.high-timeframe-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 33, 31, 0.14);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.58), rgba(235, 244, 239, 0.34)),
    radial-gradient(circle at 100% 0%, rgba(49, 92, 124, 0.12), transparent 34%);
}

.high-timeframe-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: #40504c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-chips {
  margin: 14px 0;
}

.tf-probs {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
}

.tf-probs div:not(.bar) {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.volume-context {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(22, 33, 31, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.volume-context div {
  display: grid;
  gap: 3px;
}

.volume-context strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66736f;
}

.volume-context span {
  font-weight: 900;
  color: #17221f;
}

.volume-context p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #40504c;
  line-height: 1.35;
}

.volume-context.is-supportive {
  border-color: rgba(46, 125, 90, 0.22);
  background: rgba(225, 244, 232, 0.55);
}

.volume-context.is-warning {
  border-color: rgba(166, 87, 45, 0.26);
  background: rgba(255, 237, 216, 0.62);
}

.volume-context.is-muted {
  grid-template-columns: 1fr;
  background: rgba(255, 255, 255, 0.26);
}

.tf-decision-list {
  position: relative;
  z-index: 1;
}

.tf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tf-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
}

.fresh {
  color: var(--green);
}

.stale {
  color: var(--amber);
}

.missing {
  color: var(--red);
}

.tf-card p,
.diagnostics p,
.tracking p {
  color: #40504c;
  line-height: 1.45;
}

.definition-list {
  margin: 0;
}

.definition-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.definition-list dd {
  margin: 6px 0 18px;
  line-height: 1.45;
}

.watch-list {
  margin: 0;
  padding-left: 22px;
}

.watch-list li {
  margin: 0 0 14px;
  line-height: 1.45;
}

.event-card {
  border-left: 4px solid var(--blue);
  padding: 8px 0 8px 14px;
  margin-bottom: 12px;
}

.event-card strong {
  display: block;
}

.path {
  display: block;
  word-break: break-all;
  color: var(--muted);
  font-size: 0.78rem;
}

.read-only-note,
.limitation,
.muted {
  color: var(--muted);
}

.read-only-note,
.limitation {
  max-width: 920px;
  line-height: 1.45;
}

.neutral {
  background: rgba(49, 92, 124, 0.12);
  color: var(--blue);
}

.mini-grid,
.kpi-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

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

.kpi-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.coverage-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.mini-card,
.kpi-card,
.coverage-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.32);
}

.mini-card small,
.kpi-card small,
.coverage-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kpi-card strong,
.coverage-card strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.warning-list {
  margin-top: 16px;
  border-left: 4px solid var(--amber);
  padding: 10px 0 10px 14px;
}

.warning-text {
  display: block;
  color: var(--amber);
  font-weight: 800;
  margin-top: 8px;
}

.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.compact-list li {
  margin-bottom: 5px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22, 33, 31, 0.055);
}

.data-table tbody tr:not(.details-row):hover {
  background: rgba(255, 255, 255, 0.35);
}

.details-row td {
  padding: 0 10px 14px;
  background: rgba(255, 255, 255, 0.22);
}

.key {
  display: inline-block;
  max-width: 360px;
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--blue);
}

.status-detail {
  display: block;
  margin-top: 6px;
  max-width: 260px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #263532;
  background: rgba(22, 33, 31, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.korrekt,
.badge.fresh,
.badge.final,
.badge.ja {
  color: #0f4e3c;
  background: rgba(45, 143, 111, 0.18);
}

.badge.teilweise-korrekt,
.badge.teilweise-bewertet,
.badge.stale {
  color: #6d450a;
  background: rgba(197, 139, 43, 0.2);
}

.badge.falsch,
.badge.invalid-meta,
.badge.missing-meta,
.badge.missing-valid-until,
.badge.missing {
  color: #7d251a;
  background: rgba(200, 81, 63, 0.18);
}

.badge.nicht-bewertbar,
.badge.not-triggered,
.badge.unbekannt,
.badge.unknown {
  color: #49524f;
  background: rgba(22, 33, 31, 0.10);
}

.badge.offen,
.badge.keine-evaluation-gefunden,
.badge.not-due-yet,
.badge.nein {
  color: #244860;
  background: rgba(49, 92, 124, 0.14);
}

.badge.due-missing-evaluation,
.badge.due-next-window,
.badge.missing-signal-time,
.badge.no-windows,
.badge.invalid-windows {
  color: #7d251a;
  background: rgba(200, 81, 63, 0.18);
}

.badge.all-windows-evaluated {
  color: #0f4e3c;
  background: rgba(45, 143, 111, 0.18);
}

.tf-card.fresh {
  border-color: rgba(45, 143, 111, 0.32);
}

.tf-card.stale,
.tf-card.missing-meta,
.tf-card.missing-valid-until,
.tf-card.invalid-meta {
  border-color: rgba(200, 81, 63, 0.32);
}

.signal-details {
  margin-top: 8px;
}

.signal-details summary,
details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.definition-list.compact dd {
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  border-left: 4px solid var(--blue);
  padding: 10px 0 10px 14px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0 14px 14px 0;
}

.timeline li span:first-child {
  display: inline-block;
  min-width: 72px;
  font-weight: 900;
}

.timeline p {
  margin: 8px 0 0;
  color: #40504c;
}

.raw-json {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(22, 33, 31, 0.06);
  color: #24332f;
  white-space: pre-wrap;
  word-break: break-word;
}

.compact-raw {
  max-height: 180px;
  margin-top: 8px;
  font-size: 0.76rem;
}

.movement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.movement-grid div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.movement-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.movement-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.92rem;
}

.price-alert-editor {
  display: grid;
  gap: 12px;
}

.price-alert-editor label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.price-alert-editor textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.price-alert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.performance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.price-alert-level-list {
  display: grid;
  gap: 8px;
}

.price-alert-level {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(22, 33, 31, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
}

.price-alert-level strong {
  color: #17221f;
}

.price-alert-level span {
  color: #40504c;
}

.price-alert-level.is-expired {
  opacity: 0.72;
  background: rgba(248, 242, 232, 0.6);
}

.checkbox-line {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 24px;
}

.screenshot-modal.open {
  display: grid;
  place-items: center;
}

.screenshot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 20, 0.58);
  backdrop-filter: blur(8px);
}

.screenshot-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100vw - 34px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  background: rgba(255, 250, 238, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  padding: 22px;
}

.screenshot-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 18px;
  align-items: start;
  margin: 16px 0;
}

.screenshot-frame {
  display: grid;
  place-items: center;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(22, 33, 31, 0.08);
  max-height: 72vh;
}

.screenshot-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screenshot-decision-card {
  position: sticky;
  top: 0;
  border: 1px solid rgba(22, 33, 31, 0.13);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(255, 250, 238, 0.38)),
    radial-gradient(circle at 100% 0%, rgba(45, 143, 111, 0.12), transparent 34%);
}

.screenshot-decision-card .tf-name {
  font-size: 1.8rem;
}

.screenshot-decision-card .chips {
  margin: 12px 0;
}

.screenshot-decision-card .definition-list dd {
  margin-bottom: 12px;
}

.evaluator-status {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.34);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 143, 111, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(45, 143, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 143, 111, 0); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.horizon-panel {
  background:
    linear-gradient(135deg, rgba(14, 41, 53, 0.92), rgba(23, 33, 29, 0.94)),
    radial-gradient(circle at top right, rgba(232, 183, 92, 0.18), transparent 34%);
}

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

.horizon-card,
.best-idea-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.horizon-card h4,
.best-idea-card h4 {
  margin: 10px 0 8px;
}

.horizon-card p,
.best-idea-card p {
  color: var(--muted);
  line-height: 1.45;
}

.best-idea {
  margin-bottom: 14px;
}

.best-idea-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.best-idea-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.prob-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.prob-pair div {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.prob-pair small,
.tf-detail-grid small {
  display: block;
  color: var(--muted);
}

.tf-detail-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.tooltip-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px 14px;
}

.tooltip-card summary {
  cursor: pointer;
  font-weight: 800;
}

.tooltip-card p {
  color: var(--text);
  line-height: 1.45;
}

.tooltip-card small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero,
  .prob-row,
  .metric-row,
  .section-head {
    align-items: flex-start;
  }

  .hero,
  .top-grid,
  .two-col {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .timeframe-grid,
  .official-timeframe-grid,
  .horizon-grid,
  .tooltip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid,
  .coverage-strip,
  .mini-grid,
  .detail-grid,
  .high-timeframe-grid,
  .screenshot-modal__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100vw - 20px, 1480px);
    padding-top: 18px;
  }

  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .timeframe-grid,
  .official-timeframe-grid,
  .horizon-grid,
  .tooltip-grid {
    grid-template-columns: 1fr;
  }

  .best-idea-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .kpi-grid,
  .coverage-strip,
  .mini-grid,
  .detail-grid,
  .high-timeframe-grid,
  .screenshot-modal__content {
    grid-template-columns: 1fr;
  }

  .screenshot-modal {
    padding: 10px;
  }

  .screenshot-modal__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 22px;
    padding: 16px;
  }

  .screenshot-decision-card {
    position: static;
  }
}
