:root {
  color-scheme: light;
  --ink: #151922;
  --ink-soft: #313949;
  --muted: #6b7280;
  --line: #ded5c4;
  --line-strong: #c9b98f;
  --surface: #fffdf8;
  --surface-alt: #f6f1e7;
  --surface-tint: #fff4d8;
  --app-bg: #ebe5d8;
  --topbar-bg: #10151d;
  --nav-bg: rgba(255, 253, 248, 0.94);
  --input-bg: #ffffff;
  --metric-bg: #fffdf8;
  --chart-bg: linear-gradient(180deg, #fffdf8, #f3eee4);
  --hero-bg:
    linear-gradient(123deg, rgba(16, 21, 29, 0.94), rgba(16, 21, 29, 0.88) 56%, rgba(220, 172, 82, 0.22)),
    #10151d;
  --terminal-bg: #10151d;
  --table-hover: #fbf6eb;
  --status-bg: #fff6df;
  --status-text: #6f4811;
  --copy-bg: #fff4d8;
  --brand-bg:
    linear-gradient(135deg, rgba(222, 180, 96, 0.22), rgba(33, 43, 58, 0.08)),
    #fffdf8;
  --navy: #10151d;
  --teal: #c99a43;
  --teal-strong: #83591e;
  --blue: #445f7b;
  --amber: #d7aa55;
  --coral: #a4492e;
  --green: #2f7a58;
  --shadow: 0 14px 38px rgba(25, 28, 34, 0.12);
}

[data-theme="midnight"] {
  color-scheme: dark;
  --ink: #f5efe4;
  --ink-soft: #d5c7ad;
  --muted: #a59c8d;
  --line: #2f3138;
  --line-strong: #6f5a34;
  --surface: #121820;
  --surface-alt: #0b1016;
  --surface-tint: #2b2417;
  --app-bg: #080b10;
  --topbar-bg: #070a0f;
  --nav-bg: rgba(9, 12, 18, 0.94);
  --input-bg: #111821;
  --metric-bg: #121820;
  --chart-bg: linear-gradient(180deg, #131b24, #0c1118);
  --hero-bg:
    linear-gradient(123deg, rgba(7, 10, 15, 0.96), rgba(20, 25, 34, 0.92) 54%, rgba(217, 169, 82, 0.24)),
    #070a0f;
  --terminal-bg: #06090e;
  --table-hover: #17202b;
  --status-bg: #2b2112;
  --status-text: #f5cf83;
  --copy-bg: #211a10;
  --brand-bg:
    linear-gradient(135deg, rgba(217, 169, 82, 0.18), rgba(70, 91, 114, 0.12)),
    #10151d;
  --navy: #d8aa55;
  --teal: #e0b96f;
  --teal-strong: #f4d990;
  --blue: #8aa5c0;
  --amber: #f0c977;
  --coral: #d57455;
  --green: #7cc098;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

[data-theme="atelier"] {
  color-scheme: light;
  --ink: #171d26;
  --ink-soft: #3d4653;
  --muted: #707987;
  --line: #d9dce0;
  --line-strong: #b8bdc4;
  --surface: #fbfbf9;
  --surface-alt: #f0f1f2;
  --surface-tint: #f4ead1;
  --app-bg: #e7e9ec;
  --topbar-bg: #171d26;
  --nav-bg: rgba(251, 251, 249, 0.94);
  --input-bg: #ffffff;
  --metric-bg: #ffffff;
  --chart-bg: linear-gradient(180deg, #ffffff, #f1f1ee);
  --hero-bg:
    linear-gradient(123deg, rgba(23, 29, 38, 0.94), rgba(23, 29, 38, 0.88) 58%, rgba(214, 170, 85, 0.2)),
    #171d26;
  --terminal-bg: #171d26;
  --table-hover: #f4f7fa;
  --status-bg: #fff8e8;
  --status-text: #68430a;
  --copy-bg: #f7ecd3;
  --brand-bg:
    linear-gradient(135deg, rgba(214, 170, 85, 0.18), rgba(51, 70, 89, 0.09)),
    #ffffff;
  --navy: #171d26;
  --teal: #b4883b;
  --teal-strong: #76501b;
  --blue: #445f7b;
  --amber: #c89742;
  --coral: #ad4a30;
  --green: #2f7a58;
  --shadow: 0 18px 44px rgba(35, 50, 70, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--app-bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 18px;
  background:
    linear-gradient(118deg, rgba(255, 235, 184, 0.07), rgba(255, 255, 255, 0) 38%),
    var(--topbar-bg);
  border-bottom: 1px solid rgba(218, 182, 101, 0.26);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 12px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.topbar h1 {
  color: #f7efe1;
}

.topbar .eyebrow {
  color: #e3b866;
}

h2 {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 6px;
  font-size: 14px;
}

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

.theme-control,
.language-control {
  min-width: 158px;
  gap: 4px;
}

.theme-control span,
.language-control span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar .theme-control span,
.topbar .language-control span {
  color: #c7b99f;
}

.theme-control select,
.language-control select {
  min-height: 34px;
}

.button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #f8f3e8;
  background: linear-gradient(135deg, #10151d, #6f4a17);
  font-weight: 700;
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.topbar .button.secondary {
  color: #f7efe1;
  border-color: rgba(218, 182, 101, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

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

.mini-button {
  width: 100%;
  margin-top: 10px;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

.nav-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-tab.active {
  border-color: var(--teal);
  color: var(--teal-strong);
  background: var(--surface-tint);
}

.mode-option:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.founder-tab {
  color: var(--muted);
  margin-left: auto;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface-tint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(218, 182, 101, 0.42);
  border-radius: 999px;
  padding: 0 12px;
  color: #f7efe1;
  background: rgba(218, 182, 101, 0.12);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.side-panel,
.main-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel.compact {
  padding: 14px;
}

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

.compact-check {
  min-height: 64px;
  align-content: center;
}

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

.mode-option {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.mode-option.active {
  border-color: var(--teal);
  background: var(--surface-tint);
  color: var(--teal-strong);
}

.input-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--input-bg);
}

textarea {
  padding: 10px 11px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.search-results,
.watchlist,
.launch-gate,
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-results {
  margin-top: 10px;
}

.result-button,
.watch-button,
.roadmap-item,
.gate-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  text-align: left;
}

.result-button:hover,
.watch-button:hover {
  border-color: var(--blue);
}

.result-button strong,
.watch-button strong {
  display: block;
}

.small {
  font-size: 12px;
}

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

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--status-bg);
  color: var(--status-text);
  font-size: 13px;
  font-weight: 700;
}

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

.metric-card {
  min-height: 98px;
  padding: 16px;
  background: var(--metric-bg);
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 14px;
}

.stock-header,
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ticker-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker-title strong {
  font-size: 32px;
  letter-spacing: 0;
}

.stock-heading {
  display: grid;
  gap: 8px;
}

.stock-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-meta-row span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 800;
}

.stock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-tint);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.pill.locked {
  background: #fee2e2;
  color: #991b1b;
}

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

.score-panel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--amber) 9%, transparent), transparent 55%),
    var(--surface-alt);
}

.score-dial {
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  margin: 4px auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--score-angle), var(--line) 0);
}

.score-dial strong {
  font-size: 40px;
}

.score-driver-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}

.score-driver-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.score-driver-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-driver-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.chart-panel {
  min-width: 0;
}

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

.chart-heading h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.chart-svg {
  width: 100%;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chart-bg);
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-axis-end {
  text-anchor: end;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.chart-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chart-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-alt);
}

.chart-stat-grid span,
.fundamental-group p,
.fundamental-rows span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-stat-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

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

.fundamental-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, transparent), transparent),
    var(--surface-alt);
}

.fundamental-group h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.fundamental-group p {
  margin-bottom: 12px;
  line-height: 1.35;
  text-transform: none;
}

.fundamental-rows {
  display: grid;
  gap: 8px;
}

.fundamental-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.fundamental-rows span {
  text-transform: none;
}

.fundamental-rows strong {
  font-size: 15px;
  text-align: end;
}

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

.insight-card {
  position: relative;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-alt);
}

.insight-card .dot {
  position: absolute;
  top: 14px;
  right: 14px;
}

.insight-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.note-form {
  display: grid;
  gap: 10px;
}

.note-form .button {
  justify-self: start;
}

.notes-list,
.alert-preview,
.alerts-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.note-item,
.alert-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-alt);
}

.note-item p,
.alert-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.text-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--teal);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.score-breakdown,
.thesis-form {
  display: grid;
  gap: 14px;
}

.thesis-summary {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 9%, transparent), transparent 44%),
    var(--surface-alt);
}

.thesis-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.thesis-summary-header strong {
  color: var(--ink);
  font-size: 13px;
}

.thesis-summary-grid {
  display: grid;
  gap: 10px;
}

.thesis-summary-grid section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.thesis-summary-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.thesis-summary-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

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

.pillar-tab {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface-alt);
  text-align: left;
}

.pillar-tab.active {
  border-color: var(--teal);
  background: var(--surface-tint);
}

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

.pillar-tab strong {
  font-size: 24px;
}

.pillar-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-alt);
}

.pillar-detail .panel-title-row strong {
  color: var(--teal);
  font-size: 36px;
}

.factor-list {
  display: grid;
  gap: 8px;
}

.factor-row {
  display: grid;
  grid-template-columns: 120px 90px 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.factor-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.factor-row small {
  color: var(--muted);
  line-height: 1.35;
}

.research-brief {
  margin-top: 16px;
}

.research-brief-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amber) 11%, transparent), transparent 42%),
    var(--surface-alt);
}

.research-brief-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.research-brief-title h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.brief-lede {
  max-width: 920px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

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

.brief-summary-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.brief-summary-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-summary-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.brief-summary-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.brief-metric {
  min-height: 134px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.brief-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.brief-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.brief-source-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.brief-source-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover td {
  background: var(--table-hover);
}

tr.active-row td {
  background: var(--surface-tint);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.roadmap-item,
.gate-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

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

.dot.warn {
  background: var(--amber);
}

.dot.locked {
  background: var(--coral);
}

.copy-box {
  border-left: 4px solid var(--teal);
  padding: 10px 12px;
  background: var(--copy-bg);
}

.copy-box p {
  margin-bottom: 0;
}

.empty-state,
.error-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-alt);
}

.error-state {
  color: var(--coral);
  background: var(--surface-alt);
}

.account-card #accountSummary {
  display: grid;
  gap: 4px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.product-site,
.page-view {
  gap: 18px;
  padding: 18px;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  min-height: 560px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(126deg, rgba(16, 21, 29, 0.98), rgba(16, 21, 29, 0.92) 58%, rgba(215, 170, 85, 0.22)),
    var(--hero-bg);
  box-shadow: var(--shadow);
  color: #f7efe1;
}

.site-hero-copy {
  max-width: 820px;
  padding: 46px 0 46px 46px;
}

.site-hero-copy h2,
.page-header h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.625rem, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.site-hero-copy h2 {
  max-width: 760px;
  color: #f7efe1;
}

.site-hero-copy p,
.page-header p {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.site-hero-copy p {
  max-width: 720px;
  color: #d8cfbd;
}

.site-hero .button.secondary {
  color: #f7efe1;
  border-color: rgba(218, 182, 101, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.button.ghost {
  color: #f7efe1;
  border: 1px solid rgba(218, 182, 101, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

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

.preview-cta-band .hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.home-signup-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(160px, 0.9fr);
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid rgba(218, 182, 101, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-signup-form label {
  color: #eee3cf;
  font-size: 12px;
  font-weight: 800;
}

.home-signup-form input,
.home-signup-form select {
  border-color: rgba(247, 239, 225, 0.2);
  color: #f7efe1;
  background: rgba(7, 10, 15, 0.5);
}

.home-signup-form input::placeholder {
  color: rgba(247, 239, 225, 0.52);
}

.home-signup-form button {
  min-height: 46px;
  align-self: end;
}

.signup-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #f1cf88;
  font-size: 13px;
  font-weight: 800;
}

.trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-strip span {
  border: 1px solid rgba(218, 182, 101, 0.26);
  border-radius: 999px;
  padding: 8px 10px;
  color: #e7ddcb;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.product-preview-panel {
  display: grid;
  gap: 14px;
  margin-right: 36px;
  border: 1px solid rgba(218, 182, 101, 0.24);
  border-radius: 8px;
  padding: 18px;
  color: #eef9f7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #0b1016;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.preview-topline,
.preview-company,
.preview-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7efe1;
  font-weight: 900;
}

.brand-stage-header img {
  width: 34px;
  height: 34px;
}

.preview-badge {
  border: 1px solid rgba(244, 197, 106, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: #f4d990;
  background: rgba(244, 197, 106, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.preview-company {
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.preview-company span,
.preview-company small,
.preview-score span,
.preview-brief span,
.preview-source-row span {
  display: block;
  color: #aebdca;
  font-size: 12px;
  font-weight: 800;
}

.preview-company strong {
  display: block;
  margin: 3px 0;
  color: #fffaf1;
  font-size: 22px;
}

.preview-score {
  min-width: 112px;
  text-align: right;
}

.preview-score strong {
  display: block;
  color: #f7d78a;
  font-size: 56px;
  line-height: 0.95;
}

.preview-chart {
  height: 146px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(255, 255, 255, 0.055) 28px);
}

.preview-chart span {
  min-height: 22px;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #f2c86d, #2f7a58);
  box-shadow: 0 0 22px rgba(242, 200, 109, 0.16);
}

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

.preview-pillars div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.preview-pillars span {
  display: block;
  margin-bottom: 6px;
  color: #aebdca;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-pillars strong {
  color: #fffaf1;
  font-size: 28px;
  line-height: 1;
}

.preview-brief {
  border-left: 4px solid #d7aa55;
  padding: 6px 0 6px 12px;
}

.preview-brief p {
  margin-bottom: 0;
  color: #d8cfbd;
  font-size: 14px;
  line-height: 1.5;
}

.preview-source-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.preview-source-row strong {
  color: #f7efe1;
  font-size: 13px;
  text-align: right;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 32px;
  padding: 32px;
}

.brand-hero h2 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.brand-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.brand-hero img {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

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

.brand-statement {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.voice-list,
.principle-list {
  display: grid;
  gap: 10px;
}

.voice-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-weight: 800;
}

.principle-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--teal);
  padding: 8px 0 8px 12px;
}

.principle-list span {
  color: var(--muted);
}

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

.swatch {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.swatch-ink {
  background: #0b1f2a;
}

.swatch-signal {
  background: #28c3a7;
}

.swatch-depth {
  background: #253b58;
}

.swatch-caution {
  background: #f4c56a;
  color: #1c2430;
}

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

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

.feature-band article,
.conversion-grid article,
.pricing-card,
.mobile-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-band article,
.conversion-grid article,
.pricing-card {
  padding: 20px;
}

.conversion-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-number {
  display: block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.page-header {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amber) 14%, transparent), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.preview-cta-band h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
}

.preview-cta-band p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-header.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

[dir="rtl"] body {
  font-family:
    "Segoe UI", Tahoma, Arial, sans-serif;
}

[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
}

[dir="rtl"] input[type="number"],
[dir="rtl"] .mode-badge,
[dir="rtl"] .score-dial strong,
[dir="rtl"] td:first-child,
[dir="rtl"] th:first-child {
  direction: ltr;
}

[dir="rtl"] .brand-lockup,
[dir="rtl"] .topbar-actions,
[dir="rtl"] .panel-title-row,
[dir="rtl"] .stock-header,
[dir="rtl"] .research-brief-title,
[dir="rtl"] .status-bar,
[dir="rtl"] .hero-actions,
[dir="rtl"] .trust-strip,
[dir="rtl"] .preview-topline,
[dir="rtl"] .preview-company,
[dir="rtl"] .preview-source-row,
[dir="rtl"] .page-header.split,
[dir="rtl"] .preview-cta-band,
[dir="rtl"] .report-cover {
  flex-direction: row-reverse;
}

[dir="rtl"] .topbar-actions {
  justify-content: flex-start;
}

[dir="rtl"] .copy-box {
  border-left: 0;
  border-right: 4px solid var(--teal);
}

[dir="rtl"] .site-hero-copy {
  padding: 46px 46px 46px 0;
}

[dir="rtl"] .product-preview-panel {
  margin-right: 0;
  margin-left: 36px;
}

[dir="rtl"] .preview-score,
[dir="rtl"] .preview-source-row strong {
  text-align: left;
}

[dir="rtl"] .preview-brief {
  border-left: 0;
  border-right: 4px solid #d7aa55;
  padding: 6px 12px 6px 0;
}

[dir="rtl"] .roadmap-item,
[dir="rtl"] .gate-item,
[dir="rtl"] .checklist-item,
[dir="rtl"] .mobile-item {
  direction: rtl;
}

.form-grid,
.admin-grid,
.compare-layout,
.alerts-layout,
.news-layout,
.health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 18px;
}

.compare-layout,
.alerts-layout,
.news-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.health-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
}

.health-main,
.health-side {
  display: grid;
  gap: 14px;
}

.health-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amber) 13%, transparent), transparent 42%),
    var(--surface);
}

.health-hero-card h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.health-ring {
  width: 158px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 56%, transparent 57%),
    conic-gradient(var(--teal) var(--health-angle), color-mix(in srgb, var(--line) 75%, transparent) 0);
}

.health-ring strong,
.health-ring span {
  grid-area: 1 / 1;
}

.health-ring strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.health-ring span {
  align-self: end;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.health-kpi {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.health-kpi span,
.allocation-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.health-kpi strong {
  display: block;
  margin: 8px 0;
  color: var(--teal);
  font-size: 32px;
  line-height: 1;
}

.health-kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.health-table {
  min-width: 720px;
}

.health-table td:first-child span {
  display: block;
}

.allocation-list,
.health-list,
.health-actions {
  display: grid;
  gap: 10px;
}

.allocation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-alt);
}

.allocation-bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 75%, transparent);
}

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

.allocation-item small {
  justify-self: end;
  color: var(--ink-soft);
  font-weight: 900;
}

.health-note {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-alt);
}

.health-note p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.health-action {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, transparent), transparent 46%),
    var(--surface-alt);
}

.health-action p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.empty-health {
  max-width: 760px;
}

.news-policy {
  margin-top: 14px;
}

.news-feed,
.provider-guide {
  display: grid;
  gap: 12px;
}

.provider-guide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.provider-guide div,
.news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-alt);
}

.provider-guide span {
  display: inline-flex;
  margin: 5px 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-guide p,
.news-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-picker {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-alt);
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}

.check-row small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.compare-panel {
  overflow: hidden;
}

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

.compare-stock-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--surface-alt);
}

.compare-stock-card h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.compare-stock-card strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.compare-table {
  min-width: 680px;
}

.alert-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.alert-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.alert-item p,
.alert-item .text-button {
  grid-column: 1 / -1;
}

.compact-alert {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0;
}

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

.profile-form label:nth-last-child(2) {
  grid-column: 1 / -1;
}

.profile-form .button {
  justify-self: start;
}

.checklist,
.mobile-readiness {
  display: grid;
  gap: 10px;
}

.report-card {
  padding: 0;
  overflow: hidden;
}

.report-cover {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  color: #f8fbff;
  background: var(--terminal-bg);
}

.report-cover p {
  color: #c2d2dd;
}

.report-score {
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.report-score span,
.report-score small {
  display: block;
  color: #c2d2dd;
}

.report-score strong {
  display: block;
  margin: 6px 0;
  font-size: 54px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.report-grid section {
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
}

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

.pricing-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.pricing-card h3 {
  font-size: 22px;
}

.pricing-card > strong {
  font-size: 48px;
  line-height: 1;
}

.pricing-card small {
  color: var(--muted);
  font-size: 14px;
}

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

.legal-doc p {
  color: var(--muted);
  line-height: 1.55;
}

.mobile-item {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.mobile-item span {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .workspace,
  .detail-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .site-hero,
  .brand-hero,
  .brand-grid,
  .feature-band,
  .conversion-grid,
  .form-grid,
  .admin-grid,
  .compare-layout,
  .alerts-layout,
  .news-layout,
  .health-layout,
  .health-hero-card,
  .compare-card-row,
  .health-kpis,
  .provider-guide,
  .pricing-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    margin: 0 36px 36px;
  }

  .brand-stage {
    margin: 0 36px 36px;
  }

  .product-preview-panel {
    margin: 0 36px 36px;
  }

  [dir="rtl"] .site-hero-copy {
    padding: 38px 38px 0;
  }

  [dir="rtl"] .product-preview-panel {
    margin: 0 36px 36px;
  }

  .site-hero-copy {
    padding: 38px 38px 0;
  }

  .preview-cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 16px 16px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .app-nav {
    padding: 8px 12px;
  }

  .workspace {
    padding: 12px;
  }

  .side-panel,
  .metrics-grid,
  .detail-content,
  .chart-stat-grid,
  .fundamentals-panel,
  .insight-grid,
  .filter-strip,
  .pillar-tabs,
  .brief-summary-strip,
  .brief-grid,
  .brief-source-grid,
  .health-kpis {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 78px;
  }

  .stock-header,
  .panel-title-row,
  .research-brief-title,
  .status-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  .health-table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 10px 4px;
    font-size: 12px;
    word-break: break-word;
  }

  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }

  .compare-table th:nth-child(2),
  .compare-table td:nth-child(2) {
    display: table-cell;
  }

  th:first-child,
  td:first-child {
    width: 42%;
  }

  .compare-table {
    min-width: 540px;
  }

  .health-table {
    min-width: 0;
  }

  .health-table th:nth-child(3),
  .health-table td:nth-child(3),
  .health-table th:nth-child(4),
  .health-table td:nth-child(4) {
    display: none;
  }

  .health-ring {
    justify-self: start;
    width: 136px;
  }

  .factor-row {
    grid-template-columns: 1fr;
  }

  .product-site,
  .page-view {
    padding: 12px;
  }

  .site-hero-copy,
  .page-header,
  .report-cover,
  .report-grid section {
    padding: 18px;
  }

  .site-hero-copy h2,
  .page-header h2 {
    font-size: 34px;
  }

  .hero-terminal {
    margin: 0 18px 18px;
  }

  .brand-stage {
    margin: 0 18px 18px;
  }

  .product-preview-panel {
    margin: 0 18px 18px;
  }

  .home-signup-form,
  .preview-pillars {
    grid-template-columns: 1fr;
  }

  .preview-company,
  .preview-source-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-score,
  .preview-source-row strong,
  [dir="rtl"] .preview-score,
  [dir="rtl"] .preview-source-row strong {
    text-align: start;
  }

  .preview-chart {
    height: 118px;
  }

  [dir="rtl"] .site-hero-copy {
    padding: 18px;
  }

  [dir="rtl"] .product-preview-panel {
    margin: 0 18px 18px;
  }

  .brand-hero {
    padding: 18px;
  }

  .brand-hero img {
    justify-self: start;
  }

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

  .profile-form,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .page-header.split,
  .report-cover {
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .app-nav,
  .side-panel,
  .metrics-grid,
  .detail-grid,
  .bottom-grid,
  .page-header button {
    display: none !important;
  }

  .view {
    display: none !important;
  }

  #reportsView {
    display: block !important;
    padding: 0;
  }

  body {
    background: #fff;
  }
}
