:root {
  --black: #050608;
  --black-2: #111318;
  --black-3: #1a1d23;
  --white: #ffffff;
  --paper: #f2f3f5;
  --line: #d9dde4;
  --muted: #676f7b;
  --faint: #5f6875;
  --red: #c5162e;
  --red-dark: #8f1022;
  --red-soft: #fff1f3;
  --shadow-sm: 0 1px 2px rgba(5, 6, 8, 0.08);
  --shadow: 0 18px 42px rgba(5, 6, 8, 0.12);
  --font-body: Aptos, "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  --font-display: "Aptos Display", Aptos, "Segoe UI Variable Display", "Segoe UI", Inter, Arial, sans-serif;
  --font-terminal: "Cascadia Mono", "SFMono-Regular", Consolas, "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black-2);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.auth-locked .app {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
strong,
.cycle-card h2,
.briefing-hero h1,
.hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.eyebrow,
.nav-btn,
.preset-btn,
.shock-btn,
.black-btn,
.ghost-btn,
.mini-btn,
.terminal-source-strip span,
.dashboard-section-label span,
.dashboard-section-label strong,
.terminal-control-label strong,
.what-changed-grid span,
.poster-export-controls span,
.poster-export-head > span,
.live-badge,
.risk-badge,
.desk-badge,
.compact-select {
  font-family: var(--font-terminal);
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled,
.black-btn:disabled,
.ghost-btn:disabled,
.mini-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(197, 22, 46, 0.28);
  outline-offset: 2px;
}

.app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.top-nav {
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  margin-bottom: 14px;
  border: 1px solid #20232a;
  border-radius: 8px;
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow-sm);
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.18), transparent 38%),
    var(--paper);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(560px, 100%);
  border: 1px solid #20232a;
  border-radius: 10px;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.24), transparent 42%),
    var(--black);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 0.95;
}

.auth-card p {
  margin: 14px 0 0;
  color: #c6cbd3;
  line-height: 1.6;
}

.auth-card small {
  display: block;
  margin-top: 14px;
  color: #aeb5c0;
  font-weight: 750;
}

.auth-actions {
  display: flex;
  margin-top: 20px;
}

.invite-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.invite-form[hidden] {
  display: none;
}

.invite-form label {
  display: grid;
  gap: 6px;
}

.invite-form span {
  color: #aeb5c0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.invite-form input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #c6cbd3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.auth-logout {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px 24px;
  margin-bottom: 24px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(197, 22, 46, 0.25), transparent 45%),
    linear-gradient(180deg, #15171c, #050608);
  background-color: var(--black);
  box-shadow: var(--shadow);
}

.briefing-hero {
  margin-bottom: 24px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(197, 22, 46, 0.25), transparent 45%),
    linear-gradient(180deg, #15171c, #050608);
  background-color: var(--black);
  box-shadow: var(--shadow);
}

.briefing-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 0.95;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start;
}

.auto-brief-card {
  grid-column: 1 / -1;
}

.card.terminal-brief-card {
  overflow: hidden;
  border-color: #20232a;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.20), transparent 42%),
    #07080b;
  box-shadow: 0 22px 52px rgba(5, 6, 8, 0.18);
}

.terminal-heading {
  align-items: flex-start;
  margin: -18px -18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
}

.terminal-heading .eyebrow {
  color: #b7bdc8;
}

.terminal-heading h2 {
  color: var(--white);
}

.terminal-source-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.terminal-source-strip span {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 7px 9px;
  color: #f5f6f8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auto-brief-controls {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.terminal-control-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.terminal-control-label strong,
.terminal-control-label span {
  display: block;
}

.terminal-control-label strong {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.terminal-control-label span {
  color: #d2d7df;
  font-size: 12px;
  line-height: 1.4;
}

.asset-pulse-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-pulse-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 8px 10px;
  color: #f3f5f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.asset-pulse-picker input {
  accent-color: var(--red);
}

.asset-pulse-picker label:has(input:checked) {
  border-color: rgba(197, 22, 46, 0.78);
  color: var(--white);
  background: rgba(197, 22, 46, 0.28);
  box-shadow: inset 3px 0 0 var(--red);
}

.terminal-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.terminal-actions .black-btn {
  border-color: var(--red);
  background: var(--red);
}

.terminal-actions .ghost-btn {
  border-color: #cfd4dc;
  color: var(--black);
  background: #ffffff;
}

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

.auto-brief-status {
  margin-top: 12px;
  border: 1px solid #d8dde5;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--black-2);
  background: #f8f9fb;
  font-size: 13px;
  font-weight: 850;
}

.auto-brief-status[data-status="loading"] {
  border-left-color: #2f343d;
  color: #2f343d;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.06), transparent 58%), #f8f9fb;
}

.auto-brief-status[data-status="synced"],
.auto-brief-status[data-status="success"] {
  border-left-color: #176b4d;
  color: #174f3d;
  background: linear-gradient(90deg, rgba(23, 107, 77, 0.10), transparent 58%), #ffffff;
}

.auto-brief-status[data-status="failed"] {
  border-left-color: var(--red);
  color: #8f1022;
  background: linear-gradient(90deg, rgba(197, 22, 46, 0.10), transparent 58%), #ffffff;
}

.terminal-brief-card .auto-brief-status {
  border-color: rgba(197, 22, 46, 0.42);
  color: #f1f3f7;
  background: rgba(197, 22, 46, 0.13);
}

.terminal-brief-card .auto-brief-status[data-status="loading"] {
  border-color: rgba(255, 255, 255, 0.20);
  color: #f1f3f7;
  background: rgba(255, 255, 255, 0.08);
}

.terminal-brief-card .auto-brief-status[data-status="synced"],
.terminal-brief-card .auto-brief-status[data-status="success"] {
  border-color: rgba(23, 107, 77, 0.60);
  color: #dbf6ec;
  background: rgba(23, 107, 77, 0.18);
}

.terminal-brief-card .auto-brief-status[data-status="failed"] {
  border-color: rgba(197, 22, 46, 0.72);
  color: #ffe4e8;
  background: rgba(197, 22, 46, 0.18);
}

.auto-brief-preview article {
  border: 1px solid #d8dde5;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.auto-brief-preview .auto-preview-lead {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-color: #20232a;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.22), transparent 48%),
    var(--black);
}

.auto-brief-preview .auto-preview-card {
  color: var(--black-2);
  background: #ffffff;
}

.auto-brief-preview .auto-preview-card p {
  white-space: normal;
}

.auto-brief-preview .auto-preview-stat {
  border-color: #cfd4dc;
  background: #f8f9fb;
}

.auto-preview-stat strong,
.auto-preview-stat span {
  display: block;
}

.auto-preview-stat strong {
  margin-top: 5px;
  color: var(--black);
  font-size: 19px;
}

.auto-preview-stat span {
  margin-top: 5px;
  color: #4b5563;
  font-size: 12px;
  text-transform: none;
}

.auto-preview-wide {
  grid-column: 1 / -1;
}

.auto-brief-preview strong,
.auto-brief-preview span {
  display: block;
}

.auto-brief-preview small {
  display: block;
  margin-top: 6px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.auto-preview-lead small {
  margin: 0 0 6px;
  color: #c7ced8;
}

.auto-brief-preview span {
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.auto-preview-lead span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.auto-brief-preview p,
.brief-box p,
.brief-watch span,
.member-announcement span {
  white-space: pre-line;
}

.brief-copy {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.brief-copy h4 {
  margin: 8px 0 0;
  border-left: 3px solid var(--red);
  padding-left: 9px;
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.brief-copy h4:first-child {
  margin-top: 0;
  border-left: 0;
  border-bottom: 2px solid var(--red);
  padding: 0 0 8px;
  font-size: 15px;
}

.brief-copy p {
  margin: 0;
  color: var(--black-2);
  font-size: 14px;
  line-height: 1.58;
}

.brief-copy ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-copy li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.brief-copy li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red);
}

.brief-copy.compact {
  margin-top: 8px;
}

.what-changed-panel {
  margin-top: 14px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.what-changed-lead {
  border-bottom: 1px solid #e2e5ea;
  padding-bottom: 11px;
}

.what-changed-lead span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.what-changed-lead strong {
  display: block;
  margin-top: 6px;
  color: var(--black);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 920;
  line-height: 1.45;
}

.what-changed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.what-changed-grid article {
  min-width: 0;
  border: 1px solid #d7dde6;
  border-top: 4px solid #2f343d;
  border-left: 1px solid #d7dde6;
  border-radius: 8px;
  padding: 13px;
  background: #f8f9fb;
}

.what-changed-grid article.improved {
  border-top-color: #176b4d;
}

.what-changed-grid article.deteriorated,
.what-changed-grid article.alert {
  border-top-color: var(--red);
}

.what-changed-grid article.alert {
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 54%), #fff;
}

.what-changed-grid span {
  display: block;
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.what-changed-grid ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.what-changed-grid li {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.what-changed-grid li::before {
  content: "";
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--red);
}

.what-changed-grid article.improved li::before {
  background: #176b4d;
}

.what-changed-grid article.improved {
  background: linear-gradient(135deg, rgba(23, 107, 77, 0.08), transparent 52%), #ffffff;
}

.what-changed-grid article.deteriorated {
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.07), transparent 52%), #ffffff;
}

.asset-ranking {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.asset-ranking-head strong,
.asset-ranking-head span {
  display: block;
}

.asset-ranking-head strong {
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-ranking-head span {
  margin-top: 5px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.45;
}

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

.asset-ranking-grid article {
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.asset-ranking-grid article.strong {
  border-left-color: #176b4d;
}

.asset-ranking-grid article.weak,
.asset-ranking-grid article.risk {
  border-left-color: var(--red);
}

.asset-ranking-grid article.risk {
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 50%), #fff;
}

.asset-ranking-grid span,
.asset-ranking-grid small {
  display: block;
  color: #4b5563;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-ranking-grid div {
  margin-top: 8px;
}

.asset-ranking-grid strong {
  display: block;
  color: var(--black);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.asset-ranking-grid b {
  display: block;
  margin-top: 6px;
  color: var(--black-2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.asset-ranking-grid p {
  margin: 10px 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.preview-copy {
  gap: 8px;
}

.preview-copy h4 {
  font-size: 11px;
}

.asset-copy h4 {
  border-left-color: var(--black);
}

.evidence-used {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.evidence-used > strong {
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-used-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.evidence-used article {
  display: grid;
  gap: 4px;
  border: 1px solid #e4e8ee;
  border-radius: 7px;
  padding: 10px;
  background: #f8f9fb;
}

.evidence-used span,
.evidence-used b,
.evidence-used small,
.evidence-used em {
  display: block;
}

.evidence-used span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-used b {
  color: var(--black);
  font-size: 18px;
}

.evidence-used small,
.evidence-used em,
.empty-evidence p {
  color: #4b5563;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b8bec8;
}

.briefing-hero .eyebrow,
.card.how-hero .eyebrow,
.card.disclaimer-hero .eyebrow,
.card.scenario-stress-card .eyebrow {
  color: #c8ced7;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 0.95;
}

.hero-copy {
  max-width: 740px;
  margin: 14px 0 0;
  color: #c6cbd3;
  font-size: 17px;
  line-height: 1.6;
}

.dashboard-top-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -6px 0 20px;
}

.dashboard-top-summary article {
  position: relative;
  min-width: 0;
  border: 1px solid #d9dee7;
  border-top: 3px solid var(--black);
  border-radius: 8px;
  padding: 13px 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-top-summary article:nth-child(1) {
  border-top-color: var(--red);
}

.dashboard-top-summary .summary-primary {
  border-color: #191c22;
  border-top-color: var(--red);
  background:
    linear-gradient(135deg, rgba(207, 20, 47, 0.18), transparent 42%),
    #090a0d;
  box-shadow: 0 18px 42px rgba(9, 10, 13, 0.18);
}

.dashboard-top-summary article:nth-child(2) {
  border-top-color: #111318;
}

.dashboard-top-summary article:nth-child(3) {
  border-top-color: #176b4d;
}

.dashboard-top-summary article:nth-child(4) {
  border-top-color: #59606d;
}

.dashboard-top-summary span,
.dashboard-top-summary small {
  display: block;
}

.dashboard-top-summary span {
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-top-summary strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--black);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.12;
}

.dashboard-top-summary .summary-primary strong {
  color: #ffffff;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1;
}

.dashboard-top-summary small {
  margin-top: 7px;
  color: #59606d;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.dashboard-top-summary b {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  padding: 5px 8px;
  color: #323842;
  background: #f7f8fa;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.dashboard-top-summary .summary-primary span,
.dashboard-top-summary .summary-primary small {
  color: #c8ced8;
}

.dashboard-top-summary .summary-primary b {
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-presets {
  grid-column: 1 / 2;
  max-width: 720px;
}

.hero-presets summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 720px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.06);
}

.hero-presets summary::-webkit-details-marker {
  display: none;
}

.hero-presets summary span,
.hero-presets summary strong,
.hero-presets summary em,
.hero-presets summary b {
  display: block;
}

.hero-presets summary strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-presets summary em {
  margin-top: 4px;
  color: #c7ced8;
  font-size: 12px;
  font-weight: 760;
  font-style: normal;
  line-height: 1.35;
}

.hero-presets summary b {
  flex: 0 0 auto;
  border: 1px solid rgba(197, 22, 46, 0.62);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(197, 22, 46, 0.18);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-presets[open] summary b {
  background: var(--red);
}

.hero-presets[open] summary b::before {
  content: "Close ";
}

.hero-presets:not([open]) .hero-actions {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-start;
  max-width: 620px;
}

.hero-controls {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-self: start;
  max-width: 560px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  padding: 0 14px;
  color: #c6cbd3;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-btn.active {
  color: var(--white);
  background: var(--red);
}

.nav-btn:hover {
  color: var(--white);
  background: rgba(197, 22, 46, 0.72);
}

.segmented {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.seg-btn {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  color: #c6cbd3;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.seg-btn.active {
  color: var(--white);
  background: var(--red);
}

.preset-btn,
.shock-btn,
.black-btn,
.ghost-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.preset-btn {
  border-color: #2b2e36;
  color: var(--white);
  background: #14171d;
}

.preset-btn.current-test {
  border-color: rgba(197, 22, 46, 0.65);
  background: linear-gradient(180deg, #251016, #111318);
}

.card.scenario-stress-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(197, 22, 46, 0.62);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.30), transparent 32%),
    linear-gradient(180deg, #171015 0%, #08090d 46%, #020305 100%);
  background-color: var(--black);
  box-shadow: 0 20px 46px rgba(5, 6, 8, 0.22);
}

.card.scenario-stress-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(197, 22, 46, 0.14), transparent 42%);
}

.card.scenario-stress-card .shock-panel {
  position: relative;
  border-top: 0;
  padding-top: 0;
  z-index: 1;
}

.shock-panel {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

.shock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.shock-heading::-webkit-details-marker {
  display: none;
}

.shock-heading strong,
.shock-heading span,
.shock-heading em,
.shock-heading b {
  display: block;
}

.shock-heading strong {
  color: var(--white);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shock-heading em {
  max-width: 680px;
  color: #d5d9e0;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.4;
}

.shock-heading b {
  flex: 0 0 auto;
  border: 1px solid rgba(197, 22, 46, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--red-dark);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.shock-panel[open] .shock-heading {
  margin-bottom: 10px;
}

.shock-panel[open] .shock-heading b {
  color: var(--white);
  background: linear-gradient(180deg, #e01835, var(--red-dark));
  box-shadow: 0 10px 24px rgba(197, 22, 46, 0.32);
}

.shock-panel[open] .shock-heading b::before {
  content: "Hide ";
}

.shock-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding-bottom: 4px;
}

.shock-panel:not([open]) .shock-actions {
  display: none;
}

.shock-btn {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 88px;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shock-btn:hover {
  border-color: rgba(197, 22, 46, 0.7);
  background: rgba(197, 22, 46, 0.20);
}

.shock-btn strong,
.shock-btn span {
  display: block;
}

.shock-btn strong {
  font-size: 13px;
}

.shock-btn span {
  color: #d4d8df;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.shock-btn.active {
  border-color: var(--red);
  background: linear-gradient(180deg, #e01835, var(--red-dark));
  box-shadow: 0 12px 28px rgba(197, 22, 46, 0.36);
}

.preset-btn.primary,
.preset-btn.active,
.black-btn {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.preset-btn:hover,
.black-btn:hover {
  border-color: #a91127;
  background: #a91127;
  box-shadow: 0 10px 22px rgba(197, 22, 46, 0.24);
}

.disabled-link {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: auto;
}

.preset-btn.active {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -3px 0 var(--white), 0 10px 22px rgba(197, 22, 46, 0.25);
}

.ghost-btn,
.mini-btn {
  border-color: var(--line);
  color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ghost-btn:hover,
.mini-btn:hover {
  border-color: #aeb6c2;
  background: #f8f9fb;
  box-shadow: 0 10px 22px rgba(5, 6, 8, 0.08);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  gap: 20px;
}

.disclaimer-page {
  display: grid;
  gap: 16px;
}

.disclaimer-page[hidden],
.how-page[hidden] {
  display: none;
}

.how-page {
  display: grid;
  gap: 16px;
}

.getting-started-page {
  display: grid;
  gap: 16px;
}

.card.disclaimer-hero,
.card.how-hero {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(197, 22, 46, 0.2), transparent 52%),
    var(--black);
}

.card.disclaimer-hero h2,
.card.how-hero h2 {
  max-width: 850px;
  margin: 0;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.card.disclaimer-hero p:last-child,
.card.how-hero p:last-child {
  max-width: 820px;
  margin: 14px 0 0;
  color: #c6cbd3;
  line-height: 1.6;
}

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

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

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

.onboarding-card {
  border-color: #20232a;
}

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

.onboarding-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  padding: 13px;
  background: #f8f9fb;
}

.onboarding-steps b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--black);
  font-family: var(--font-terminal);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 var(--red);
}

.onboarding-steps strong,
.onboarding-steps p,
.getting-card h3,
.getting-card p,
.getting-card a,
.manual-flow strong,
.manual-flow span {
  display: block;
}

.onboarding-steps strong {
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
}

.onboarding-steps p {
  margin: 5px 0 0;
  color: #4e5968;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.45;
}

.getting-card h3 {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
}

.getting-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.55;
}

.getting-card a {
  width: fit-content;
  margin-top: 14px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 9px 11px;
  color: #ffffff;
  background: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

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

.manual-flow div {
  min-width: 0;
  border: 1px solid #e2e6ed;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.manual-flow strong {
  color: var(--black);
  font-size: 14px;
  font-weight: 950;
}

.manual-flow span {
  margin-top: 6px;
  color: #4e5968;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.45;
}

.how-section,
.how-card {
  align-self: start;
}

.how-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 17px;
}

.how-card p,
.how-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.flow-steps div {
  position: relative;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.flow-steps div:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -9px;
  transform: translateY(-50%);
  color: var(--red);
  font-weight: 950;
}

.flow-steps strong,
.flow-steps span,
.timing-grid strong,
.timing-grid span,
.confirmation-grid strong,
.confirmation-grid span,
.confirmation-grid b {
  display: block;
}

.flow-steps strong,
.timing-grid strong,
.confirmation-grid strong {
  color: var(--black);
  font-size: 13px;
}

.flow-steps span,
.timing-grid span,
.confirmation-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.regime-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.regime-tags span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 900;
}

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

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

.timing-grid div,
.confirmation-grid div {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.confirmation-grid b {
  margin-top: 9px;
  color: var(--red);
  font-size: 13px;
}

.usage-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--black-2);
  font-weight: 800;
}

.usage-list li {
  padding-left: 4px;
}

.example-card {
  border-color: rgba(197, 22, 46, 0.32);
  background: var(--red-soft);
}

.disclaimer-card h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 18px;
}

.disclaimer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.acknowledgement-card {
  border-color: rgba(197, 22, 46, 0.32);
  background: var(--red-soft);
}

.ack-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: var(--black-2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.ack-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.app-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.input-column,
.output-column,
.group-stack {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.card,
.cycle-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 20px;
}

.dashboard-section-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 10px;
  margin: 6px 0 -4px;
  border: 1px solid #20232a;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.22), transparent 42%),
    #07080b;
  box-shadow: 0 10px 24px rgba(5, 6, 8, 0.14);
}

.dashboard-section-label span {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(197, 22, 46, 0.62);
  border-radius: 8px;
  color: #f4d1d7;
  background: rgba(197, 22, 46, 0.18);
  font-weight: 950;
}

.dashboard-section-label span small,
.dashboard-section-label span b {
  display: block;
  line-height: 1;
}

.dashboard-section-label span small {
  color: #c7ced8;
  font-size: 8px;
  text-transform: uppercase;
}

.dashboard-section-label span b {
  margin-top: 3px;
  color: #f4d1d7;
  font-size: 12px;
}

.dashboard-section-label strong,
.dashboard-section-label em {
  display: block;
  min-width: 0;
}

.dashboard-section-label strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-section-label em {
  color: #b7bec9;
  font-size: 12px;
  font-weight: 750;
  font-style: normal;
  line-height: 1.35;
}

.calibration-card {
  border-color: #1e2229;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.13), transparent 38%),
    #0b0d11;
}

.calibration-card .eyebrow {
  color: #aeb5c0;
}

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

.calibration-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.calibration-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.calibration-grid p {
  margin: 0;
  color: #c3c8d1;
  font-size: 13px;
  line-height: 1.55;
}

.member-start,
.demon-score-grid,
.education-list,
.change-log,
.report-archive {
  display: grid;
  gap: 10px;
}

.member-start article,
.demon-score-grid article,
.portfolio-item,
.change-log,
.report-archive,
.brief-box,
.education-list details {
  min-width: 0;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 13px;
  background: #f8f9fb;
}

.member-start strong,
.member-start span,
.brief-head strong,
.brief-head span,
.brief-watch strong,
.brief-watch span,
.member-announcement strong,
.member-announcement span {
  display: block;
}

.member-start span,
.brief-box p,
.brief-box small,
.brief-watch span,
.member-announcement span,
.education-list p,
.portfolio-item p,
.change-log p,
.report-archive p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brief-box p,
.brief-box small,
.brief-watch span {
  color: #4b5563;
  font-weight: 740;
}

.brief-card {
  border-color: #20232a;
  grid-column: 1 / -1;
}

.brief-box {
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.1), transparent 42%),
    linear-gradient(180deg, #ffffff, #f7f8fa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brief-head,
.portfolio-item header,
.change-log article,
.report-archive article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brief-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--black);
  font-size: 11px;
  text-transform: uppercase;
}

.brief-head small {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.brief-head strong {
  color: var(--black);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
}

.brief-watch,
.member-announcement {
  margin-top: 12px;
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.demon-score-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}

.demon-score-grid strong,
.portfolio-item strong {
  display: block;
  color: var(--black);
}

.demon-score-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.demon-score-grid b {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.score-meter {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}

.score-meter span {
  display: block;
  height: 100%;
  margin: 0;
  background: var(--red);
}

.education-list summary,
.admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.education-list summary::-webkit-details-marker,
.admin-summary::-webkit-details-marker {
  display: none;
}

.education-list summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-card {
  border-color: #20232a;
  color: var(--white);
  background: var(--black);
}

.admin-card.admin-highlight {
  outline: 3px solid rgba(197, 22, 46, 0.35);
  box-shadow: 0 0 0 6px rgba(197, 22, 46, 0.08), var(--shadow);
}

.admin-card .eyebrow,
.admin-summary em {
  color: #aeb5c0;
}

.admin-summary strong,
.admin-summary em,
.admin-summary span,
.admin-summary b {
  display: block;
}

.admin-summary b {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.admin-card details[open] .admin-summary b {
  background: var(--red);
}

.admin-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-grid label {
  display: grid;
  gap: 7px;
}

.admin-grid span {
  color: #aeb5c0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-grid input,
.admin-grid textarea,
.admin-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-brief-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-list-title {
  display: block;
  color: #ffffff;
  font-size: 13px;
}

.admin-brief-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-brief-item.active {
  border-color: var(--red);
}

.admin-brief-item strong,
.admin-brief-item span {
  display: block;
}

.admin-brief-item span {
  margin-top: 4px;
  color: #aeb5c0;
  font-size: 12px;
}

.admin-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.danger-btn {
  border-color: rgba(197, 22, 46, 0.35);
  color: var(--red);
}

.dark-select {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.dark-select option {
  color: var(--black);
  background: var(--white);
}

.dark-empty {
  border-color: rgba(255, 255, 255, 0.12);
  color: #aeb5c0;
  background: rgba(255, 255, 255, 0.06);
}

.briefing-empty {
  display: grid;
  gap: 7px;
  border-style: dashed;
  border-color: #c5cbd5;
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.04), transparent 55%), #ffffff;
}

.briefing-empty strong {
  display: block;
  color: var(--black);
  font-size: 14px;
  font-weight: 950;
}

.briefing-empty p {
  margin: 0;
  color: #4b5563;
  font-weight: 720;
}

.live-card {
  border-color: #20232a;
}

.live-form {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.live-form label {
  display: grid;
  gap: 7px;
}

.live-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--black-2);
  background: var(--white);
}

.live-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.16), transparent 42%),
    var(--black);
}

.live-status.synced {
  border-color: rgba(23, 107, 77, 0.52);
  background:
    linear-gradient(135deg, rgba(23, 107, 77, 0.22), transparent 42%),
    var(--black);
}

.live-status.failed {
  border-color: rgba(197, 22, 46, 0.72);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.28), transparent 42%),
    var(--black);
}

.live-status.loading {
  border-color: rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 42%),
    var(--black);
}

.live-status > div {
  min-width: 0;
}

.live-status strong,
.live-status span,
.live-status b {
  display: block;
}

.live-status span {
  margin-top: 3px;
  color: #c6cbd3;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.live-status b {
  max-width: 100%;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 12px;
  line-height: 1.35;
}

.mode-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8f9fb;
}

.mode-status strong,
.mode-status span {
  display: block;
}

.mode-status strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
}

.mode-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mode-status.live {
  border-color: rgba(5, 6, 8, 0.24);
}

.mode-status.manual {
  border-color: rgba(197, 22, 46, 0.28);
  background: var(--red-soft);
}

.advanced-live {
  margin-top: 12px;
}

.advanced-live summary {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--black-2);
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 900;
  list-style-position: inside;
  cursor: pointer;
}

.advanced-live[open] summary {
  border-color: rgba(197, 22, 46, 0.42);
  color: var(--red);
  background: var(--red-soft);
}

.live-tape-panel,
.evidence-panel {
  margin-top: 12px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #f8f9fb;
}

.live-tape-panel summary,
.evidence-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.live-tape-panel summary::-webkit-details-marker,
.evidence-panel summary::-webkit-details-marker {
  display: none;
}

.live-tape-panel summary span,
.live-tape-panel summary strong,
.live-tape-panel summary em,
.live-tape-panel summary b,
.evidence-panel summary span,
.evidence-panel summary strong,
.evidence-panel summary em,
.evidence-panel summary b {
  display: block;
}

.live-tape-panel summary strong,
.evidence-panel summary strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-tape-panel summary em,
.evidence-panel summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  font-style: normal;
  line-height: 1.35;
}

.live-tape-panel summary b,
.evidence-panel summary b {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--black-2);
  background: var(--white);
  font-size: 12px;
  font-weight: 950;
}

.live-tape-panel[open] summary,
.evidence-panel[open] summary {
  border-bottom: 1px solid #e2e5ea;
}

.live-tape-panel[open] summary b,
.evidence-panel[open] summary b {
  border-color: rgba(197, 22, 46, 0.44);
  color: var(--white);
  background: var(--red);
}

.live-tape-panel[open] summary b::before {
  content: "Hide ";
}

.evidence-panel[open] summary b::before {
  content: "Hide ";
}

.live-tape-panel .live-tape,
.evidence-panel .evidence-table {
  margin: 0;
  padding: 12px;
}

.live-tape {
  margin-top: 12px;
}

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

.tape-head strong,
.tape-head span {
  display: block;
}

.tape-head strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.tape-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.tape-grid article {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.tape-grid span,
.tape-grid strong,
.tape-grid small {
  display: block;
}

.tape-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tape-grid strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 18px;
  line-height: 1;
}

.tape-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tape-empty {
  border: 1px dashed #c7ccd4;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.tape-empty strong,
.tape-empty span {
  display: block;
}

.tape-empty strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.tape-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.evidence-table {
  margin-top: 12px;
}

.evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.evidence-head strong,
.evidence-head span {
  display: block;
}

.evidence-head strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.evidence-scroll {
  overflow: auto;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
}

.evidence-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 12px;
}

.evidence-table th,
.evidence-table td {
  border-bottom: 1px solid #e8ebef;
  padding: 9px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.evidence-table th {
  color: var(--muted);
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-select,
.reason-input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  background: var(--white);
  font-size: 12px;
}

.reason-input {
  min-width: 180px;
}

.input-card {
  box-shadow: var(--shadow);
}

.group-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.group-heading {
  justify-content: flex-start;
}

.group-heading h2,
.card-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
}

.group-icon {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: auto;
  height: 34px;
  border-radius: 8px;
  padding: 0 9px;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-terminal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 -3px 0 var(--red);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.slider-field {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.field-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}

.field-top label {
  color: var(--black-2);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.field-top span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-size: 12px;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.compact-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--black-2);
  background: var(--white);
}

.slider-field p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.notes-card textarea {
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--black);
  background: var(--white);
  resize: vertical;
  outline: none;
}

.notes-card textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 22, 46, 0.1);
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--black-2);
  background: #f8f9fb;
  font-size: 13px;
  font-weight: 800;
}

.check-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.check-item:has(input:checked) {
  border-color: rgba(197, 22, 46, 0.4);
  background: var(--red-soft);
}

.quality-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 12px;
  color: var(--white);
  background: var(--black);
}

.quality-box.acceptable {
  border-color: rgba(47, 52, 61, 0.65);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    #111318;
}

.quality-box.strong {
  border-color: rgba(23, 107, 77, 0.6);
  background:
    linear-gradient(135deg, rgba(23, 107, 77, 0.22), transparent 48%),
    #111318;
}

.quality-box.weak {
  border-color: rgba(197, 22, 46, 0.68);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.22), transparent 48%),
    #111318;
}

.quality-box strong,
.quality-box span,
.quality-box b {
  display: block;
}

.quality-box span {
  margin-top: 3px;
  color: #c6cbd3;
  font-size: 12px;
}

.quality-box b {
  color: var(--white);
  font-size: 24px;
}

.data-quality-center {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #d9dee7;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(47, 52, 61, 0.05), transparent 55%),
    #fff;
}

.data-quality-center.strong {
  border-left-color: #176b4d;
}

.data-quality-center.acceptable {
  border-left-color: #2f343d;
}

.data-quality-center.weak {
  border-color: rgba(197, 22, 46, 0.28);
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 55%),
    #fff;
}

.quality-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quality-center-head span,
.quality-center-head strong,
.quality-center-head p,
.quality-center-head b {
  display: block;
}

.quality-center-head span {
  color: #5f6876;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quality-center-head strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.quality-center-head p {
  max-width: 660px;
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.quality-center-head b {
  min-width: 72px;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--white);
  background: #111318;
  text-align: center;
  font-size: 18px;
  font-weight: 950;
}

.data-quality-center.strong .quality-center-head b {
  background: #176b4d;
}

.data-quality-center.weak .quality-center-head b {
  background: var(--red);
}

.quality-metrics,
.quality-categories {
  display: grid;
  gap: 8px;
}

.quality-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.quality-metrics article,
.quality-categories article {
  min-width: 0;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f8f9fb;
}

.quality-metrics span,
.quality-categories span,
.quality-categories em {
  display: block;
  color: #677180;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.quality-metrics strong,
.quality-categories strong {
  display: block;
  margin-top: 4px;
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.quality-categories em {
  margin-top: 3px;
  font-style: normal;
}

.quality-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quality-issues span {
  border: 1px solid rgba(197, 22, 46, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #4b5563;
  background: #fff;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.25;
}

.check-item small.stale {
  color: var(--red);
}

.cycle-card {
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(197, 22, 46, 0.2), transparent 55%),
    var(--black);
}

.cycle-card.positive,
.cycle-card.pivot {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--black);
}

.cycle-card.hot,
.cycle-card.warning,
.cycle-card.danger {
  background:
    linear-gradient(120deg, rgba(197, 22, 46, 0.32), transparent 55%),
    var(--black);
}

.cycle-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.cycle-card h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.02;
}

.cycle-card p {
  margin: 10px 0 0;
  color: #c6cbd3;
  line-height: 1.5;
}

.cycle-icon {
  display: grid;
  gap: 4px;
  place-items: center;
  min-width: 72px;
  width: auto;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-terminal);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 -3px 0 var(--red);
}

.cycle-icon small,
.cycle-icon span {
  display: block;
  line-height: 1;
}

.cycle-icon small {
  color: #c7ced8;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.cycle-icon span {
  color: var(--white);
  font-size: 15px;
}

.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-pair div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-pair span {
  display: block;
  color: #b8bec8;
  font-size: 12px;
}

.metric-pair strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.cycle-decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cycle-decision-strip article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.075);
}

.cycle-decision-strip article.driver {
  border-left-color: #176b4d;
}

.cycle-decision-strip article.risk {
  border-left-color: var(--red);
}

.cycle-decision-strip article.confirm {
  border-left-color: #c7ced8;
}

.cycle-decision-strip span {
  display: block;
  color: #b8bec8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cycle-decision-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.cycle-decision-strip p {
  margin: 7px 0 0;
  color: #c6cbd3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.dashboard-intel-card {
  border-color: #d9dee7;
}

.dashboard-freshness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d7dde7;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.dashboard-freshness.fresh {
  border-left-color: #176b4d;
}

.dashboard-freshness.warning {
  border-left-color: #2f343d;
  background: linear-gradient(135deg, rgba(47, 52, 61, 0.08), transparent 52%), #fff;
}

.dashboard-freshness.danger {
  border-color: rgba(197, 22, 46, 0.25);
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.1), transparent 52%), #fff;
}

.dashboard-freshness strong,
.dashboard-freshness span {
  display: block;
}

.dashboard-freshness strong {
  color: var(--black);
  font-size: 14px;
  font-weight: 950;
}

.dashboard-freshness span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.dashboard-freshness b {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--white);
  background: #111318;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-freshness.danger b {
  background: var(--red);
}

.dashboard-freshness.fresh b {
  background: #176b4d;
}

.top-regime-drivers {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.top-regime-drivers article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  padding: 11px;
  background: #ffffff;
}

.top-regime-drivers article.supportive {
  border-left: 4px solid #176b4d;
}

.top-regime-drivers article.contradictory {
  border-left: 4px solid var(--red);
}

.top-regime-drivers > article > span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: #111318;
  font-size: 10px;
  font-weight: 950;
}

.top-regime-drivers strong,
.top-regime-drivers p {
  margin: 0;
}

.top-regime-drivers strong {
  display: block;
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
}

.top-regime-drivers p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.top-regime-drivers b {
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.regime-change-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #252a33;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 13px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.18), transparent 48%),
    #0d0f14;
}

.regime-change-trigger span,
.regime-change-trigger strong,
.regime-change-trigger p {
  display: block;
}

.regime-change-trigger span {
  color: #aeb5c0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.regime-change-trigger strong {
  margin-top: 5px;
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
}

.regime-change-trigger p {
  margin: 7px 0 0;
  color: #d7dbe2;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.regime-change-trigger b {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

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

.risk-grid article {
  border: 1px solid #e2e5ea;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.risk-grid article.alert {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.06), transparent 52%), #ffffff;
}

.risk-grid article.balanced,
.risk-grid article.calm {
  border-left-color: #176b4d;
}

.risk-grid span,
.risk-grid strong,
.risk-grid p {
  display: block;
}

.risk-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.risk-grid strong {
  margin-top: 6px;
  color: var(--black-2);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.risk-grid p {
  margin: 9px 0 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.scenario-list {
  display: grid;
  gap: 10px;
}

.scenario-head,
.scenario-item {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.scenario-head strong,
.scenario-head span,
.scenario-item strong,
.scenario-item span {
  display: block;
}

.scenario-head span,
.scenario-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.scenario-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--red);
}

.scenario-item b {
  color: var(--red);
}

.expectation-desk {
  display: grid;
  gap: 12px;
}

.expectation-card {
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.expectation-card.positive {
  border-left-color: #176b4d;
}

.expectation-card.negative {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.06), transparent 48%), #ffffff;
}

.expectation-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.expectation-card span,
.expectation-card b,
.expectation-card small,
.expectation-card strong {
  display: block;
}

.expectation-card span {
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
}

.expectation-card b {
  max-width: 58%;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--black);
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
}

.expectation-card.positive b {
  border-color: rgba(23, 107, 77, 0.26);
  color: #176b4d;
  background: rgba(23, 107, 77, 0.08);
}

.expectation-card.negative b {
  border-color: rgba(197, 22, 46, 0.28);
  color: var(--red);
  background: rgba(197, 22, 46, 0.08);
}

.expectation-card p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.expectation-grid div {
  min-width: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.expectation-grid small {
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.expectation-grid strong {
  margin-top: 6px;
  color: var(--black-2);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.asset-playbook {
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.asset-playbook.positive {
  border-left-color: #176b4d;
}

.asset-playbook.negative {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.06), transparent 48%), #ffffff;
}

.asset-playbook header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asset-playbook span,
.asset-playbook b,
.asset-playbook small,
.asset-playbook strong {
  display: block;
}

.asset-playbook span {
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
}

.asset-playbook b {
  max-width: 58%;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--black);
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
}

.asset-playbook.positive b {
  border-color: rgba(23, 107, 77, 0.26);
  color: #176b4d;
  background: rgba(23, 107, 77, 0.08);
}

.asset-playbook.negative b {
  border-color: rgba(197, 22, 46, 0.28);
  color: var(--red);
  background: rgba(197, 22, 46, 0.08);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.playbook-grid div {
  min-width: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.playbook-grid small {
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.playbook-grid strong {
  margin-top: 6px;
  color: var(--black-2);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.readiness-list {
  display: grid;
  gap: 12px;
}

.readiness-item {
  display: grid;
  gap: 11px;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.readiness-item.ready {
  border-left-color: #176b4d;
}

.readiness-item.selective {
  border-left-color: #a66b00;
}

.readiness-item.wait,
.readiness-item.blocked {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.055), transparent 52%), #ffffff;
}

.readiness-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.readiness-item span,
.readiness-item strong,
.readiness-item b,
.readiness-item small {
  display: block;
}

.readiness-item span {
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
}

.readiness-item header strong {
  margin-top: 3px;
  color: #59606d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.readiness-item header b {
  min-width: 78px;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--black);
  background: #f8f9fb;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.readiness-item.ready header b {
  border-color: rgba(23, 107, 77, 0.26);
  color: #176b4d;
  background: rgba(23, 107, 77, 0.08);
}

.readiness-item.wait header b,
.readiness-item.blocked header b {
  border-color: rgba(197, 22, 46, 0.28);
  color: var(--red);
  background: rgba(197, 22, 46, 0.08);
}

.readiness-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7ebf1;
}

.readiness-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #111318);
}

.readiness-item.ready .readiness-meter i {
  background: linear-gradient(90deg, #176b4d, #111318);
}

.readiness-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 1.2fr;
  gap: 9px;
}

.readiness-grid div {
  min-width: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.readiness-grid small {
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.readiness-grid strong {
  margin-top: 6px;
  color: var(--black-2);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.asset-conflict-warning {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid #dfe3ea;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8f9fb;
}

.asset-conflict-warning.warning,
.asset-conflict-warning.danger {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.055), transparent 52%), #ffffff;
}

.asset-conflict-warning.danger {
  border-color: rgba(197, 22, 46, 0.28);
  background: #fff5f6;
}

.asset-conflict-warning span {
  color: var(--red);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-conflict-warning strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.asset-conflict-warning p {
  margin: 0;
  color: #4e5968;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
}

.summary-card {
  border-color: #20232a;
  color: var(--white);
  background: var(--black);
}

.summary-card .eyebrow,
.summary-card .summary-text {
  color: #c6cbd3;
}

.summary-card h2 {
  color: var(--white);
}

.summary-text {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.6;
}

.conflict-list {
  display: grid;
  gap: 10px;
}

.conflict-item {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe3ea;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 13px 14px;
  background: #f8f9fb;
}

.conflict-item.warning {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.055), transparent 52%), #ffffff;
}

.conflict-item.danger {
  border-color: rgba(197, 22, 46, 0.28);
  border-left-color: var(--red);
  background: #fff5f6;
}

.conflict-item.calm {
  border-left-color: #176b4d;
  background: #f7fbf9;
}

.conflict-item span,
.conflict-item strong,
.conflict-item p,
.conflict-item b {
  display: block;
}

.conflict-item span {
  color: #626b78;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.conflict-item strong {
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.conflict-item p {
  margin: 0;
  color: #4e5968;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.conflict-item b {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  padding: 5px 8px;
  color: #20252d;
  background: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
}

.transition-watch {
  display: grid;
  gap: 10px;
}

.transition-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #20232a;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.16), transparent 42%),
    var(--black);
}

.transition-main.warning,
.transition-main.danger {
  border-left-color: var(--red);
}

.transition-main.calm {
  border-left-color: #176b4d;
}

.transition-main span,
.transition-main strong,
.transition-main b {
  display: block;
}

.transition-main span {
  color: #aeb5c0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.transition-main strong {
  margin-top: 5px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.transition-main > b {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.transition-grid article,
.transition-watchlist {
  min-width: 0;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.transition-grid span,
.transition-watchlist > span {
  display: block;
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.transition-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--black);
  font-size: 13px;
  font-weight: 840;
  line-height: 1.45;
}

.transition-watchlist div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.transition-watchlist b {
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 6px 8px;
  color: #20252d;
  background: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.driver-list {
  display: grid;
  gap: 12px;
}

.driver-group {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.driver-group h3 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.driver-group article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e2e5ea;
  padding: 9px 0;
}

.driver-group article:last-child {
  padding-bottom: 0;
}

.driver-group span,
.driver-group strong {
  display: block;
}

.driver-group span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.driver-group strong {
  min-width: 42px;
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
}

.driver-group p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.driver-group.support {
  border-color: rgba(5, 6, 8, 0.22);
}

.driver-group.against {
  border-color: rgba(197, 22, 46, 0.32);
  background: var(--red-soft);
}

.driver-group.against strong {
  background: var(--red);
}

.watch-events {
  display: grid;
  gap: 10px;
}

.watch-events article {
  border: 1px solid #e2e5ea;
  border-left: 3px solid var(--black);
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.decision-desk-card {
  border-color: #20232a;
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.07), transparent 42%),
    var(--white);
}

.decision-desk-grid {
  display: grid;
  gap: 12px;
}

.decision-desk-panel {
  min-width: 0;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.decision-desk-panel:has(#actionGate) {
  background: #ffffff;
}

.mini-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e5ea;
  padding-bottom: 10px;
}

.mini-panel-heading.with-select {
  align-items: center;
}

.mini-panel-heading span,
.mini-panel-heading strong {
  display: block;
}

.mini-panel-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-panel-heading strong {
  margin-top: 3px;
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
}

.watch-events article.critical {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.watch-events article.high {
  border-left-color: #20232a;
}

.watch-events div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.watch-events strong,
.watch-events span,
.watch-events b {
  display: block;
}

.watch-events strong {
  color: var(--black);
  font-size: 14px;
}

.watch-events span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.watch-events b {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--black);
  font-size: 11px;
  text-transform: uppercase;
}

.watch-events article.critical b {
  background: var(--red);
}

.watch-events p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.watch-events em {
  color: var(--black);
  font-style: normal;
  font-weight: 900;
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.confidence-grid span {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 9px;
  color: var(--muted);
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 850;
}

.confidence-grid b {
  display: block;
  margin-top: 4px;
  color: var(--black);
  font-size: 17px;
}

.action-gate {
  display: grid;
  gap: 14px;
}

.gate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 16px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.2), transparent 46%),
    var(--black);
}

.gate-head span,
.gate-head b {
  display: block;
  color: #c6cbd3;
  font-size: 12px;
  font-weight: 850;
}

.gate-head strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.action-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

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

.gate-grid article {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.gate-grid span,
.gate-grid strong {
  display: block;
}

.gate-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.gate-grid strong {
  margin-top: 5px;
  color: var(--black);
  font-size: 15px;
}

.regime-map {
  display: grid;
  gap: 12px;
}

.map-grid {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid #20232a;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.04) 50%, rgba(197, 22, 46, 0.07) 50%),
    linear-gradient(180deg, rgba(197, 22, 46, 0.1) 50%, rgba(5, 6, 8, 0.04) 50%),
    #ffffff;
}

.map-axis {
  position: absolute;
  background: rgba(5, 6, 8, 0.18);
}

.map-axis.x {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.map-axis.y {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.map-label {
  position: absolute;
  color: rgba(5, 6, 8, 0.5);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-label.top-left {
  top: 12px;
  left: 12px;
}

.map-label.top-right {
  top: 12px;
  right: 12px;
}

.map-label.bottom-left {
  bottom: 12px;
  left: 12px;
}

.map-label.bottom-right {
  right: 12px;
  bottom: 12px;
}

.map-dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-width: 118px;
  min-height: 34px;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 8px 12px;
  transform: translate(-50%, -50%);
  color: var(--white);
  box-shadow: 0 16px 28px rgba(5, 6, 8, 0.2);
}

.map-dot b {
  font-family: var(--font-terminal);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.map-dot.primary {
  background: var(--red);
}

.map-dot.secondary {
  border: 2px solid var(--white);
  background: var(--black);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.map-helper {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.map-legend b {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.primary-key {
  background: var(--red);
}

.secondary-key {
  background: var(--black);
}

.probability-list {
  display: grid;
  gap: 10px;
}

.probability-item {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.probability-item.active {
  border-color: rgba(197, 22, 46, 0.45);
  background: var(--red-soft);
}

.probability-item div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.probability-item strong,
.probability-item span {
  display: block;
}

.probability-item span {
  color: var(--red);
  font-weight: 950;
}

.probability-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebef;
}

.probability-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.radar-wrap {
  height: 330px;
}

#radarCanvas,
#timelineCanvas {
  width: 100%;
  height: 100%;
}

.why-list {
  display: grid;
  gap: 10px;
}

.why-item {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.why-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.why-top strong,
.why-top b {
  color: var(--black-2);
}

.why-top span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.why-item.negative {
  border-left: 3px solid var(--red);
}

.why-item.positive {
  border-left: 3px solid var(--black);
}

.why-item.neutral {
  border-left: 3px solid #9aa0a8;
}

.why-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebef;
}

.why-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.why-item.positive .why-bar span {
  background: var(--black);
}

.why-item.neutral .why-bar span {
  background: #9aa0a8;
}

.rule-box {
  margin-top: 12px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 14px;
  color: var(--white);
  background: var(--black);
}

.rule-box strong {
  display: block;
  margin-bottom: 5px;
}

.rule-box p {
  margin: 0;
  color: #c6cbd3;
  font-size: 13px;
  line-height: 1.5;
}

.timeline-wrap {
  height: 170px;
  margin-bottom: 12px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: var(--white);
}

.compare-box {
  margin-bottom: 12px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 14px;
  color: var(--white);
  background: var(--black);
}

.compare-box > strong {
  display: block;
  margin-bottom: 8px;
}

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

.snapshot-compare-head strong,
.snapshot-compare-head span {
  display: block;
}

.snapshot-compare-head strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 950;
}

.snapshot-compare-head span {
  margin-top: 4px;
  color: #aeb5c0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.snapshot-compare-head b {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.compare-box p {
  margin: 0;
  color: #c6cbd3;
  font-size: 13px;
}

.snapshot-regime-shift {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.snapshot-regime-shift article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #858c98;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.snapshot-regime-shift article.current,
.snapshot-regime-shift article.positive {
  border-left-color: #2e8b63;
}

.snapshot-regime-shift article.negative {
  border-left-color: var(--red);
}

.snapshot-regime-shift span,
.snapshot-regime-shift strong,
.snapshot-regime-shift small {
  display: block;
}

.snapshot-regime-shift span,
.snapshot-signal-changes > span {
  color: #b8bec8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.snapshot-regime-shift strong {
  margin-top: 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.snapshot-regime-shift small {
  margin-top: 5px;
  color: #c6cbd3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

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

.compare-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.compare-grid span,
.compare-grid b {
  display: block;
}

.compare-grid span {
  color: #b8bec8;
  font-size: 11px;
  font-weight: 850;
}

.compare-grid b {
  margin-top: 4px;
  color: var(--white);
  font-size: 12px;
}

.snapshot-signal-changes {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.snapshot-signal-changes article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.07);
}

.snapshot-signal-changes strong {
  display: block;
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
}

.snapshot-signal-changes p {
  margin-top: 4px;
  line-height: 1.45;
}

.weekly-review {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.weekly-review-empty,
.weekly-review-panel {
  border: 1px solid #dfe3ea;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.045), transparent 52%), #ffffff;
}

.weekly-review-empty {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weekly-review-empty span,
.weekly-review-panel header span,
.weekly-review-grid span,
.weekly-regime-shift span {
  display: block;
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weekly-review-empty strong,
.weekly-review-panel header strong,
.weekly-regime-shift strong {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.weekly-review-empty p {
  margin: 6px 0 0;
  color: #4e5968;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.45;
}

.weekly-review-empty > b,
.weekly-review-panel header > b {
  flex: 0 0 auto;
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--black);
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.weekly-review-panel {
  display: grid;
  gap: 12px;
}

.weekly-review-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weekly-review-panel header small,
.weekly-regime-shift small {
  display: block;
  margin-top: 5px;
  color: #59606d;
  font-size: 12px;
  font-weight: 780;
}

.weekly-regime-shift,
.weekly-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weekly-regime-shift article,
.weekly-review-grid article {
  min-width: 0;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8f9fb;
}

.weekly-regime-shift article.current {
  border-color: rgba(197, 22, 46, 0.28);
  background: #fff8f9;
}

.weekly-review-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4e5968;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.weekly-review-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--black);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.45;
}

.weekly-review-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.weekly-review-grid b {
  border: 1px solid #d8dde6;
  border-radius: 999px;
  padding: 6px 8px;
  color: #20252d;
  background: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.stack-list,
.allocation-list,
.playbook-list,
.snapshot-list {
  display: grid;
  gap: 10px;
}

.list-item,
.playbook-item,
.snapshot-item {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.list-item h3 {
  margin: 0;
  font-size: 15px;
}

.list-item p,
.playbook-item p,
.snapshot-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.playbook-item {
  display: flex;
  gap: 12px;
}

.allocation-item {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe4ec;
  border-left: 4px solid #59606d;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.allocation-item.positive {
  border-left-color: #176b4d;
}

.allocation-item.negative {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.06), transparent 52%), #ffffff;
}

.allocation-item.tactical {
  border-left-color: #111318;
}

.allocation-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.allocation-item strong,
.allocation-item span,
.allocation-item small {
  display: block;
}

.allocation-item strong {
  color: var(--black);
  font-size: 16px;
  font-weight: 950;
}

.allocation-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.allocation-item b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.allocation-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebef;
}

.allocation-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.allocation-item.positive .allocation-bar span {
  background: #176b4d;
}

.allocation-item.tactical .allocation-bar span,
.allocation-item.neutral .allocation-bar span {
  background: #2f343d;
}

.allocation-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.allocation-detail p {
  margin: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 10px;
  color: #4b5563;
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.allocation-detail small {
  margin-bottom: 5px;
  color: #59606d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.playbook-item span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 950;
}

.invalidation-box {
  margin-top: 12px;
  border: 1px solid rgba(197, 22, 46, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: var(--red-soft);
}

.invalidation-box strong {
  display: block;
  color: var(--red-dark);
}

.invalidation-box p {
  margin: 6px 0 0;
  color: var(--black-2);
  font-size: 14px;
  line-height: 1.5;
}

.snapshot-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.snapshot-item.latest {
  border-color: #20232a;
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.06), transparent 52%), #ffffff;
}

.snapshot-item header strong,
.snapshot-item header span,
.snapshot-item header b {
  display: block;
}

.snapshot-item span {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-item header strong {
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.snapshot-item header b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--black);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.snapshot-score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.snapshot-score-strip span {
  min-width: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.snapshot-score-strip small,
.snapshot-score-strip strong {
  display: block;
}

.snapshot-score-strip small {
  color: #59606d;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.snapshot-score-strip strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
}

.snapshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.danger-mini {
  border-color: rgba(197, 22, 46, 0.32);
  color: var(--red);
  background: rgba(197, 22, 46, 0.08);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.file-btn {
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.empty {
  border: 1px dashed #b7bec8;
  border-radius: 8px;
  padding: 16px;
  color: #4b5563;
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.035), transparent 55%), #ffffff;
  font-weight: 720;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

dialog {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(5, 6, 8, 0.32);
}

dialog::backdrop {
  background: rgba(5, 6, 8, 0.62);
}

.report-modal {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.disclaimer-modal {
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 28px));
  padding: 22px;
}

.disclaimer-modal h2 {
  margin: 0;
  color: var(--black);
  font-size: 28px;
}

.disclaimer-modal p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-points {
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
}

.modal-points p {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.modal-points p + p {
  margin-top: 8px;
}

.disclaimer-modal .black-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-modal pre {
  max-height: 58vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
  color: var(--black-2);
  background: #f8f9fb;
  font: 12px/1.55 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.report-poster-preview {
  display: grid;
  place-items: center;
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #e8ebef;
}

.report-poster-preview[hidden] {
  display: none;
}

.poster-card {
  width: min(430px, 100%);
  aspect-ratio: 4 / 5;
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 18px;
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.42), transparent 38%),
    linear-gradient(180deg, #15171c, #050608);
  box-shadow: 0 22px 60px rgba(5, 6, 8, 0.28);
}

.poster-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.poster-card header span,
.poster-card section span {
  display: block;
  color: #aeb5c0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.poster-card h3 {
  margin: 6px 0 0;
  font-size: clamp(26px, 6vw, 42px);
  line-height: 0.98;
}

.poster-card header strong {
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--red);
  font-size: 24px;
  line-height: 1;
}

.poster-tone {
  margin: 0;
  color: #f0b9c1;
  font-weight: 900;
}

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

.poster-playbook-list {
  display: grid;
  gap: 9px;
}

.poster-score-grid div,
.poster-card section,
.poster-playbook-list section {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.poster-score-grid span {
  display: block;
  color: #aeb5c0;
  font-size: 11px;
  font-weight: 850;
}

.poster-score-grid b {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.poster-score-grid small {
  display: block;
  margin-top: 4px;
  color: #8e96a3;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.poster-card section p,
.poster-card footer {
  margin: 8px 0 0;
  color: #d9dde4;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.poster-playbook-list section p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.poster-playbook-list section p b {
  color: var(--white);
}

.poster-card footer {
  border-radius: 12px;
  margin: 0;
  padding: 13px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.published-actions {
  margin-top: 14px;
}

.poster-export-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #20232a;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.10), transparent 45%),
    #0b0d11;
}

.poster-export-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
}

.poster-export-head .eyebrow {
  color: #c7ced8;
}

.poster-export-head strong,
.poster-export-head span {
  display: block;
}

.poster-export-head strong {
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
}

.poster-export-head > span {
  flex: 0 0 auto;
  border: 1px solid rgba(197, 22, 46, 0.62);
  border-radius: 999px;
  padding: 6px 9px;
  color: #f4d1d7;
  background: rgba(197, 22, 46, 0.16);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.poster-export-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.poster-export-controls label,
.poster-export-controls span {
  display: grid;
  gap: 6px;
}

.poster-export-controls span {
  color: #c7ced8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.poster-export-controls .compact-select {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: #15181f;
}

.poster-export-controls .ghost-btn {
  border-color: rgba(197, 22, 46, 0.62);
  color: var(--white);
  background: rgba(197, 22, 46, 0.18);
}

.poster-preview-status {
  border: 1px solid #dfe4ec;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  color: #4b5563;
  background: #ffffff;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.published-actions .ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.poster-preview-area[hidden] {
  display: none;
}

.poster-preview-area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.poster-preview-frame {
  border: 1px solid #d8dde5;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.poster-preview-frame.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(197, 22, 46, 0.18);
}

.poster-preview-choice {
  display: grid;
  width: 100%;
  border: 0;
  padding: 8px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.poster-preview-frame img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.poster-preview-choice span {
  margin-top: 8px;
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
}

.poster-preview-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.live-desk-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.live-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.live-command-strip article {
  min-width: 0;
  border: 1px solid #252934;
  border-top: 3px solid #858c98;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%),
    #0d0f14;
}

.live-command-strip article.alert {
  border-top-color: var(--red);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.18), transparent 44%),
    #0d0f14;
}

.live-command-strip article.fresh {
  border-top-color: #176b4d;
}

.live-command-strip article.risk {
  border-top-color: var(--red);
}

.live-command-strip span,
.live-command-strip strong,
.live-command-strip small {
  display: block;
}

.live-command-strip span {
  color: #aeb5c0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-command-strip strong {
  margin-top: 7px;
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.live-command-strip small {
  margin-top: 7px;
  color: #c6cbd3;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.live-desk-layout {
  display: grid;
  gap: 16px;
}

.live-desk-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-desk-summary article,
.method-grid article {
  min-width: 0;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.live-desk-summary span,
.method-grid span,
.live-alert-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-desk-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--black);
  font-size: 24px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.live-desk-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.live-desk-feed {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.upcoming-events article {
  min-width: 0;
  border: 1px solid #262b34;
  border-left: 4px solid #858c98;
  border-radius: 8px;
  padding: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%),
    #0d0f14;
}

.upcoming-events article.high {
  border-left-color: var(--red);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.18), transparent 44%),
    #0d0f14;
}

.upcoming-events small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-badges span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  color: #f5f6f8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 950;
}

.upcoming-events article.high .event-badges span:first-child {
  border-color: rgba(197, 22, 46, 0.28);
  color: var(--white);
  background: var(--red);
}

.upcoming-events strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 18px;
  font-weight: 950;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.event-meta-row small {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.event-meta-row b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.upcoming-events small {
  margin-top: 6px;
  color: #aeb5c0;
  line-height: 1.4;
  text-transform: none;
}

.upcoming-events p {
  margin: 10px 0 0;
  color: #d7dbe2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.top-desk-alert {
  margin-top: 14px;
}

.top-desk-card {
  display: grid;
  gap: 14px;
  border: 1px solid #252934;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 16px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.16), transparent 44%),
    #0d0f14;
}

.top-desk-card.positive {
  border-left-color: #176b4d;
}

.top-desk-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.top-desk-card span {
  display: block;
  color: #aeb5c0;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.top-desk-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 950;
}

.top-desk-card p {
  margin: 8px 0 0;
  color: #d7dbe2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.top-desk-card > header > b {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.top-desk-brief {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 10px;
}

.top-desk-brief article,
.top-desk-card footer {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.top-desk-brief strong,
.top-desk-card footer strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.top-desk-card footer {
  border-left: 3px solid var(--red);
}

.top-desk-card.positive footer {
  border-left-color: #176b4d;
}

.live-desk-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.live-desk-filterbar button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid #bdc4cf;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--black);
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.live-desk-filterbar button.active {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(197, 22, 46, 0.18);
}

.live-desk-filterbar span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: inherit;
  background: rgba(133, 140, 152, 0.18);
  font-size: 10px;
}

.live-date-group {
  display: grid;
  gap: 10px;
}

.live-date-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e5ea;
  padding-top: 12px;
}

.live-date-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-date-group header span {
  flex: 0 0 auto;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  padding: 5px 8px;
  color: #59606d;
  background: #f8f9fb;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-date-items {
  display: grid;
  gap: 12px;
}

.live-alert-card {
  min-width: 0;
  border: 1px solid #c9d0da;
  border-left: 4px solid #858c98;
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 12, 16, 0.05);
}

.live-alert-card.high {
  border-left-color: var(--red);
}

.live-alert-card.medium {
  border-left-color: #2f343d;
}

.live-alert-card.low {
  border-left-color: #a4abb6;
}

.live-alert-card.negative {
  border-color: rgba(197, 22, 46, 0.26);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.12), transparent 42%), #fff;
}

.live-alert-card.positive {
  border-color: rgba(23, 107, 77, 0.22);
  background: linear-gradient(135deg, rgba(28, 120, 83, 0.1), transparent 42%), #fff;
}

.live-alert-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.live-alert-top span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-alert-top strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
}

.live-alert-top b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border: 1px solid #b8c0cc;
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--black);
  background: #ffffff;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.live-alert-top b span::before {
  content: "/";
  margin-right: 6px;
  color: #858c98;
}

.live-alert-top b em,
.alert-symbol {
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.alert-symbol {
  display: inline-flex;
  min-width: 62px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f343d;
  border-radius: 999px;
  color: var(--white);
  background: #2f343d;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
}

.live-alert-card.positive .alert-symbol {
  background: #176b4d;
  border-color: #176b4d;
}

.live-alert-card.negative .alert-symbol {
  background: var(--red);
  border-color: var(--red);
}

.live-alert-top b em {
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--white);
  background: #111318;
  font-size: 10px;
  font-weight: 950;
}

.live-alert-card p {
  margin: 12px 0;
  color: var(--black-2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

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

.live-alert-grid div {
  min-width: 0;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.live-alert-grid strong,
.method-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.why-it-matters {
  margin-top: 12px;
  border: 1px solid #d6dbe3;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.why-it-matters span,
.action-lens span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.why-it-matters strong {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.action-lens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.action-lens article {
  min-width: 0;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.action-lens strong {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.live-alert-card footer {
  margin-top: 12px;
  border-top: 1px solid #e2e5ea;
  padding-top: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.desk-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin: 18px 0;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(5, 6, 8, 0.06);
}

.desk-subnav button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.desk-subnav button.active {
  border-color: #20232a;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.18), transparent 48%),
    var(--black);
}

.desk-subnav strong,
.desk-subnav small {
  display: block;
}

.desk-subnav strong {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.desk-subnav small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.desk-subnav button.active small {
  color: #c6cbd3;
}

.desk-tab-intro {
  display: grid;
  gap: 5px;
  margin: -4px 0 16px;
  border: 1px solid #dce1ea;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.desk-tab-intro span,
.desk-tab-intro strong,
.desk-tab-intro p {
  display: block;
}

.desk-tab-intro span {
  color: #687282;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.desk-tab-intro strong {
  color: var(--black);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.desk-tab-intro p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.desk-panel[hidden] {
  display: none;
}

.headlines-app {
  max-width: 1440px;
}

.headlines-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 22, 46, 0.32), transparent 34%),
    linear-gradient(135deg, #06070a 0%, #12151b 58%, #050608 100%);
}

.headline-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.headline-command-strip article {
  min-width: 0;
  border: 1px solid #242933;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%),
    #090b10;
}

.headline-command-strip article.alert {
  border-left-color: var(--red);
}

.headline-command-strip article.fresh {
  border-left-color: #176b4d;
}

.headline-command-strip span,
.headline-command-strip strong,
.headline-command-strip small {
  display: block;
}

.headline-command-strip span {
  color: #a5adba;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-command-strip strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
}

.headline-command-strip small {
  margin-top: 6px;
  color: #c6cbd3;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.headlines-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.headline-side {
  display: grid;
  gap: 18px;
}

.headline-feed {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.headline-freshness-summary {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid #dce1ea;
  border-left: 5px solid #2f343d;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.headline-freshness-summary.fresh {
  border-left-color: #176b4d;
}

.headline-freshness-summary.stale {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 48%), #fff;
}

.freshness-metrics {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.freshness-metrics article {
  min-width: 0;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8f9fb;
}

.freshness-metrics span,
.freshness-metrics strong {
  display: block;
}

.freshness-metrics span {
  color: #687282;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.freshness-metrics strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.headline-freshness-summary p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.headline-desk-action {
  border: 1px solid #dce1ea;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8f9fb;
}

.headline-desk-action.warning {
  border-left-color: #2f343d;
  background: linear-gradient(135deg, rgba(47, 52, 61, 0.08), transparent 48%), #fff;
}

.headline-desk-action.danger {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 48%), #fff;
}

.headline-desk-action span,
.headline-desk-action strong,
.headline-desk-action p {
  display: block;
}

.headline-desk-action span {
  color: #687282;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-desk-action strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.headline-desk-action p {
  margin-top: 5px;
}

.headline-card,
.headline-cluster,
.headline-tape-item {
  border: 1px solid #dce1ea;
  border-left: 5px solid #2f343d;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(5, 6, 8, 0.05);
}

.headline-card.negative,
.headline-cluster.negative,
.headline-tape-item.negative {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 48%), #fff;
}

.headline-card.positive,
.headline-cluster.positive,
.headline-tape-item.positive {
  border-left-color: #176b4d;
  background: linear-gradient(135deg, rgba(23, 107, 77, 0.08), transparent 48%), #fff;
}

.headline-card header,
.headline-cluster header,
.headline-tape-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.headline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.headline-badges span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid #222733;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--white);
  background: #111318;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.headline-badges .badge-tier-1,
.headline-badges .badge-high {
  border-color: rgba(197, 22, 46, 0.55);
  background: var(--red);
}

.headline-badges .badge-tier-2,
.headline-badges .badge-med {
  border-color: #2f343d;
  background: #2f343d;
}

.headline-badges .badge-geo,
.headline-badges .badge-geopolitics {
  border-color: rgba(197, 22, 46, 0.7);
  background: #3a0710;
}

.headline-badges .badge-tier-3,
.headline-badges .badge-low,
.headline-badges .badge-stale {
  border-color: #a5adba;
  color: #111318;
  background: #eef1f5;
}

.headline-card strong,
.headline-card small,
.headline-card p,
.headline-cluster strong,
.headline-cluster small,
.headline-cluster p,
.headline-tape-item strong,
.headline-tape-item small,
.headline-tape-item p {
  display: block;
}

.headline-card strong,
.headline-cluster strong,
.headline-tape-item strong {
  color: var(--black);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.18;
}

.headline-card small,
.headline-cluster small,
.headline-tape-item small {
  margin-top: 7px;
  color: #687282;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.headline-card p,
.headline-cluster p,
.headline-tape-item p {
  margin: 12px 0 0;
  color: #3d4552;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
}

.headline-why {
  margin-top: 12px;
  border: 1px solid #e1e5ec;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f8f9fb;
}

.headline-why span,
.headline-why strong {
  display: block;
}

.headline-why span {
  color: #687282;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-why strong {
  margin-top: 4px;
  color: #202733;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.headline-why.compact {
  padding: 9px 10px;
}

.headline-card footer,
.headline-cluster footer,
.headline-tape-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  border-top: 1px solid #e2e5ea;
  padding-top: 11px;
}

.headline-card footer span,
.headline-cluster footer span,
.headline-tape-item footer span {
  color: #687282;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-card footer b,
.headline-cluster footer b,
.headline-tape-item footer b {
  color: var(--black);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.cluster-details {
  margin-top: 12px;
  border-top: 1px solid #e2e5ea;
  padding-top: 10px;
}

.cluster-details summary {
  width: fit-content;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--black);
  background: #fff;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
}

.cluster-details.compact summary {
  background: #f8f9fb;
}

.cluster-details div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cluster-details article {
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.cluster-details article span,
.cluster-details article strong,
.cluster-details article a {
  display: block;
}

.cluster-details article span {
  color: #687282;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.cluster-details article strong {
  margin-top: 5px;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.cluster-details article a {
  margin-top: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.headline-source-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--black);
  background: #fff;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.headline-source-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.headline-impact,
.headline-method {
  display: grid;
  gap: 10px;
}

.headline-impact article,
.headline-method article {
  border: 1px solid #e1e5ec;
  border-left: 4px solid #2f343d;
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(47, 52, 61, 0.05), transparent 52%),
    #f8f9fb;
}

.headline-impact article:first-child {
  border-left-color: var(--red);
}

.headline-impact span,
.headline-method span {
  display: block;
  color: #687282;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-impact strong,
.headline-method strong {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.headline-impact p {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.headline-method span {
  margin-top: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  text-transform: none;
}

.brief-headline-pressure {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  border: 1px solid #dce1ea;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(197, 22, 46, 0.08), transparent 48%),
    #fff;
}

.empty-headline-pressure {
  border-left-color: #2f343d;
  background: #f8f9fb;
}

.headline-pressure-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.headline-pressure-head span,
.headline-pressure-head strong,
.headline-pressure-head p,
.headline-pressure-head b {
  display: block;
}

.headline-pressure-head span,
.brief-headline-pressure > div > span {
  color: #687282;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.headline-pressure-head strong,
.brief-headline-pressure > div > strong {
  margin-top: 4px;
  color: var(--black);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.headline-pressure-head p,
.brief-headline-pressure > div > p {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.headline-pressure-head b {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--white);
  background: #111318;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.headline-pressure-focus,
.headline-pressure-list {
  display: grid;
  gap: 9px;
}

.headline-pressure-focus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.headline-pressure-focus article,
.headline-pressure-list article {
  min-width: 0;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  padding: 11px;
  background: #f8f9fb;
}

.headline-pressure-list article {
  border-left: 4px solid #2f343d;
}

.headline-pressure-list article.negative {
  border-left-color: var(--red);
}

.headline-pressure-list article.positive {
  border-left-color: #176b4d;
}

.headline-pressure-focus span,
.headline-pressure-list span,
.headline-pressure-list small {
  display: block;
  color: #687282;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
  text-transform: uppercase;
}

.headline-pressure-focus strong,
.headline-pressure-list strong {
  display: block;
  margin-top: 5px;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.headline-pressure-list small {
  margin-top: 5px;
  text-transform: none;
}

body.beginner-mode .input-column,
body.beginner-mode .dashboard-top-summary,
body.beginner-mode .dashboard-intel-card,
body.beginner-mode .dashboard-section-label,
body.beginner-mode .decision-desk-card,
body.beginner-mode .summary-card,
body.beginner-mode #signalConflicts,
body.beginner-mode #transitionWatch,
body.beginner-mode #signalDrivers,
body.beginner-mode #dataWatch,
body.beginner-mode #regimeMap,
body.beginner-mode #phaseProbability,
body.beginner-mode .radar-wrap,
body.beginner-mode #whyList,
body.beginner-mode #ruleBox,
body.beginner-mode #allocationList,
body.beginner-mode #tradeReadinessList,
body.beginner-mode #playbookList,
body.beginner-mode #invalidationBox,
body.beginner-mode #snapshotList,
body.beginner-mode #snapshotCompare,
body.beginner-mode .timeline-wrap {
  display: none;
}

body.beginner-mode .workspace {
  grid-template-columns: 1fr;
}

body.beginner-mode .output-column .card:has(#signalDrivers),
body.beginner-mode .output-column .card:has(#signalConflicts),
body.beginner-mode .output-column .card:has(#transitionWatch),
body.beginner-mode .output-column .card:has(#dataWatch),
body.beginner-mode .output-column .card:has(#regimeMap),
body.beginner-mode .output-column .card:has(#phaseProbability),
body.beginner-mode .output-column .card:has(#radarCanvas),
body.beginner-mode .output-column .card:has(#whyList),
body.beginner-mode .output-column .card:has(#allocationList),
body.beginner-mode .output-column .card:has(#tradeReadinessList),
body.beginner-mode .output-column .card:has(#playbookList),
body.beginner-mode .output-column .card:has(#snapshotList),
body.beginner-mode .pro-only-label,
body.beginner-mode .score-card,
body.beginner-mode .education-card {
  display: none;
}

body.beginner-mode .output-column {
  display: grid;
  gap: 16px;
}

@media (max-width: 1280px) {
  .workspace,
  .briefing-layout,
  .headlines-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    display: grid;
  }

  .hero-controls {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start;
    max-width: none;
  }

  .hero-actions,
  .hero-presets {
    justify-content: flex-start;
    min-width: 0;
    max-width: none;
  }

  .workspace {
    display: grid;
  }

  .disclaimer-grid {
    grid-template-columns: 1fr;
  }

  .how-grid,
  .flow-steps,
  .getting-grid,
  .onboarding-steps,
  .manual-flow,
  .quality-metrics,
  .quality-categories,
  .timing-grid,
  .confirmation-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps div:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -13px;
    transform: translateX(50%) rotate(90deg);
  }

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

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

  .dashboard-top-summary .summary-primary {
    grid-column: 1 / -1;
  }

}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .app {
    padding: 12px;
  }

  .hero,
  .card,
  .cycle-card {
    padding: 16px;
  }

  .briefing-hero {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .live-desk-hero {
    padding: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .briefing-hero h1,
  .cycle-card h2 {
    font-size: clamp(27px, 8.4vw, 34px);
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
  }

  .field-grid,
  .checklist,
  .allocation-item,
  .compare-grid,
  .calibration-grid,
  .gate-grid,
  .live-form,
  .risk-grid,
  .poster-export-controls,
  .poster-preview-area,
  .live-desk-hero,
  .live-command-strip,
  .live-desk-summary,
  .headline-command-strip,
  .freshness-metrics,
  .headline-pressure-focus,
  .upcoming-events,
  .snapshot-regime-shift,
  .weekly-regime-shift,
  .weekly-review-grid,
  .top-desk-brief,
  .transition-main,
  .transition-grid,
  .live-alert-grid,
  .action-lens,
  .method-grid,
  .getting-grid,
  .onboarding-steps,
  .manual-flow,
  .quality-metrics,
  .quality-categories,
  .headlines-layout,
  .dashboard-top-summary,
  .metric-pair,
  .cycle-decision-strip,
  .evidence-used-grid,
  .what-changed-grid,
  .asset-ranking-grid,
  .poster-score-grid,
  .expectation-grid,
  .readiness-grid,
  .playbook-grid,
  .allocation-detail,
  .snapshot-score-strip,
  .auto-brief-preview {
    grid-template-columns: 1fr;
  }

  .card-heading,
  .snapshot-item header,
  .hero-controls,
  .hero-actions,
  .hero-presets summary,
  .shock-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav,
  .segmented,
  .desk-subnav {
    width: 100%;
  }

  .top-nav {
    display: flex;
    width: calc(100% + 24px);
    margin: 0 -12px 12px;
    border-radius: 0;
    padding: 8px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

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

  .hero-actions .preset-btn {
    width: 100%;
  }

  .hero-presets,
  .hero-presets summary {
    width: 100%;
  }

  .hero-presets summary b {
    align-self: flex-start;
  }

  .card-heading .black-btn,
  .card-heading .ghost-btn,
  .card-heading .mini-btn,
  .inline-actions,
  .inline-actions .ghost-btn,
  .inline-actions .black-btn,
  .inline-actions .file-btn {
    width: 100%;
  }

  .inline-actions {
    justify-content: stretch;
  }

  .snapshot-actions,
  .snapshot-actions .mini-btn {
    width: 100%;
  }

  .nav-btn {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 8px 11px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .seg-btn {
    flex: 1;
  }

  .desk-subnav {
    display: grid;
    grid-template-columns: 1fr;
    margin: 12px 0;
    padding: 5px;
  }

  .desk-subnav button {
    min-height: 52px;
    padding: 9px 11px;
  }

  .desk-tab-intro {
    margin-bottom: 12px;
    padding: 11px 12px;
  }

  .live-command-strip article,
  .headline-command-strip article {
    padding: 11px 12px;
  }

  .live-command-strip strong,
  .headline-command-strip strong {
    font-size: 16px;
  }

  .live-command-strip small,
  .headline-command-strip small {
    font-size: 11px;
  }

  .seg-btn {
    min-height: 40px;
    padding: 8px;
    line-height: 1.15;
    white-space: normal;
  }

  .brief-head,
  .auto-brief-preview .auto-preview-lead,
  .snapshot-compare-head,
  .snapshot-item header,
  .dialog-actions,
  .live-status,
  .quality-center-head,
  .mode-status,
  .live-alert-top,
  .headline-card footer,
  .headline-cluster footer,
  .headline-pressure-head,
  .live-date-group header,
  .expectation-card header,
  .asset-playbook header,
  .allocation-item header,
  .top-desk-card,
  .top-desk-card header,
  .top-desk-brief,
  .regime-change-trigger,
  .terminal-control-label {
    flex-direction: column;
  }

  .live-status b,
  .quality-center-head b,
  .mode-status span {
    text-align: left;
  }

  .dialog-actions .compact-select,
  .dialog-actions .black-btn,
  .dialog-actions .ghost-btn {
    width: 100%;
  }

  .live-desk-actions,
  .live-desk-actions .black-btn {
    width: 100%;
  }

  .live-desk-actions .black-btn {
    min-height: 42px;
    padding: 0 14px;
  }

  .live-alert-top strong {
    flex-wrap: wrap;
    align-items: flex-start;
    font-size: 16px;
  }

  .headline-feed {
    gap: 10px;
  }

  .headline-card,
  .headline-cluster,
  .headline-tape-item {
    padding: 12px;
  }

  .headline-badges {
    gap: 5px;
    margin-bottom: 8px;
  }

  .headline-badges span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  .headline-card strong,
  .headline-cluster strong,
  .headline-tape-item strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .headline-card p,
  .headline-cluster p,
  .headline-tape-item p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .headline-card small,
  .headline-cluster small,
  .headline-tape-item small {
    font-size: 11px;
  }

  .headline-card footer b,
  .headline-cluster footer b,
  .headline-tape-item footer b {
    text-align: left;
  }

  .headline-source-link {
    width: 100%;
    justify-content: center;
  }

  .live-alert-top b,
  .top-desk-card > header > b,
  .regime-change-trigger b,
  .live-date-group header span {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .top-regime-drivers article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-regime-drivers b {
    grid-column: 2;
    white-space: normal;
  }

  .dashboard-freshness {
    align-items: flex-start;
    flex-direction: column;
  }

  .cycle-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .cycle-icon {
    min-width: 86px;
    height: 56px;
  }

  .expectation-card b {
    max-width: 100%;
    text-align: left;
  }

  .asset-playbook b {
    max-width: 100%;
    text-align: left;
  }

  .map-dot {
    min-width: 92px;
    padding: 7px 9px;
  }

  .map-dot b {
    font-size: 9px;
  }

  .poster-card {
    width: 100%;
    min-height: 540px;
    aspect-ratio: auto;
    gap: 10px;
    padding: 16px;
  }

  .poster-card header {
    flex-direction: column;
  }

  .poster-card h3 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .poster-card header strong {
    align-self: flex-start;
    font-size: 20px;
  }

  .terminal-source-strip {
    justify-content: flex-start;
  }

  .published-actions .black-btn,
  .published-actions .ghost-btn,
  .admin-brief-actions .mini-btn {
    width: 100%;
  }

  .disclaimer-hero h2,
  .how-hero h2 {
    font-size: 28px;
  }
}
