:root {
  --bg: #0c1218;
  --bg-alt: #121b24;
  --panel: rgba(18, 27, 36, 0.92);
  --panel-strong: #162230;
  --text: #edf3fb;
  --muted: #8fa1b6;
  --line: rgba(180, 200, 224, 0.12);
  --accent: #3ba36d;
  --accent-warm: #d7a23f;
  --danger: #d96a6a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --body-grad-1: rgba(62, 115, 179, 0.18);
  --body-grad-2: rgba(59, 163, 109, 0.12);
  --body-grad-3: #0c1218;
  --body-grad-4: #0f1720;
  --body-grad-5: #0a1016;
  --hero-bg:
    radial-gradient(circle at top left, rgba(83, 139, 224, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(79, 201, 135, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(18, 27, 36, 0.96), rgba(14, 21, 29, 0.98));
  --hero-card-bg:
    radial-gradient(circle at top center, rgba(77, 139, 199, 0.16), transparent 34%),
    radial-gradient(circle at bottom center, rgba(225, 230, 94, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(18, 27, 36, 0.98), rgba(12, 18, 24, 0.98));
  --simple-panel-bg:
    radial-gradient(circle at top left, rgba(83, 139, 224, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-softer: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(9, 15, 21, 0.88);
}

body[data-theme="light"] {
  --bg: #eef3f8;
  --bg-alt: #f7fafc;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #122030;
  --muted: #61758c;
  --line: rgba(120, 146, 176, 0.2);
  --shadow: 0 20px 50px rgba(43, 67, 94, 0.12);
  --body-grad-1: rgba(112, 164, 224, 0.18);
  --body-grad-2: rgba(130, 202, 164, 0.16);
  --body-grad-3: #f4f8fb;
  --body-grad-4: #edf3f8;
  --body-grad-5: #e8eff6;
  --hero-bg:
    radial-gradient(circle at top left, rgba(83, 139, 224, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(79, 201, 135, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 251, 0.98));
  --hero-card-bg:
    radial-gradient(circle at top center, rgba(83, 139, 224, 0.14), transparent 34%),
    radial-gradient(circle at bottom center, rgba(225, 230, 94, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 251, 0.98));
  --simple-panel-bg:
    radial-gradient(circle at top left, rgba(83, 139, 224, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 252, 0.96));
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-softer: rgba(255, 255, 255, 0.82);
  --input-bg: rgba(247, 250, 252, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--body-grad-1), transparent 24%),
    radial-gradient(circle at top right, var(--body-grad-2), transparent 18%),
    linear-gradient(180deg, var(--body-grad-3) 0%, var(--body-grad-4) 60%, var(--body-grad-5) 100%);
  transition: background 220ms ease, color 220ms ease;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.section,
.panel {
  position: relative;
  z-index: 1;
}

.topbar,
.section-head,
.panel-head,
.hero-grid,
.dashboard-grid,
.claude-layout,
.metric-row {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 32px;
}


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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: white;
  background: linear-gradient(145deg, #365f93, #5aa3ea);
  box-shadow: 0 10px 26px rgba(50, 95, 150, 0.24);
}

.eyebrow,
.kicker,
.panel-label,
.ghost-link,
.disclaimer,
.hero-card-note,
.hero-card-scale,
.panel-copy,
.analysis-empty,
.table-cell span,
.risk-item span,
.input-group span {
  color: var(--muted);
}

.hero-card-note {
  margin: 0;
}

.hero-card-scale {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #bfd2e8;
}

.eyebrow,
.kicker,
.panel-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand h1,
.hero-copy h2,
.section-head h3,
.panel-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand h1 {
  font-size: 1.15rem;
}

.ghost-link,
.ghost-button,
.primary-button,
.secondary-button {
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.ghost-link {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--surface-softer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
  gap: 24px;
}

.lead,
.panel-copy,
.analysis-output p,
.disclaimer {
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

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

.portfolio-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.summary-card {
  min-height: 104px;
  padding: 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(180, 200, 224, 0.09);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-softer) 65%, transparent), color-mix(in srgb, var(--surface-soft) 60%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-card-value {
  background:
    radial-gradient(circle at top right, rgba(83, 139, 224, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.summary-card-day {
  background:
    radial-gradient(circle at top right, rgba(79, 201, 135, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.summary-card-total {
  background:
    radial-gradient(circle at top right, rgba(215, 162, 63, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.05;
}

.primary-button,
.secondary-button,
input,
select,
textarea {
  font: inherit;
}

.primary-button,
.secondary-button,
button {
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #3ba36d, #4fc987);
}

.secondary-button {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}

.button-inline {
  justify-self: start;
}

.hero-card,
.panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.simple-panel {
  box-shadow: none;
  height: 100%;
  padding: 30px;
  background: var(--simple-panel-bg);
  border-color: rgba(180, 200, 224, 0.09);
}

.hero-copy .panel-head {
  margin-bottom: 12px;
}

.portfolio-meta {
  margin: 10px 0 0;
  color: #9fb0c4;
  font-size: 0.92rem;
}

.hero-intro {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(180, 200, 224, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.hero-intro-copy {
  margin: 0;
  max-width: 60ch;
  color: #c7d5e6;
  line-height: 1.65;
}

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

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 200, 224, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #b7c7da;
  font-size: 0.82rem;
}

.hero-copy .panel-copy {
  max-width: 58ch;
  margin: 0;
}

.hero-copy .button-row {
  gap: 14px;
}

.hero-copy .primary-button,
.hero-copy .secondary-button {
  min-height: 52px;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--hero-card-bg);
  height: 100%;
  border-color: rgba(180, 200, 224, 0.1);
}

.hero-card-head,
.table-row,
.risk-item,
.analysis-output,
.input-group {
  display: grid;
  gap: 12px;
}

.hero-card-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 4px;
}

.metric-row span,
.table-cell span {
  display: block;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.badge-positive {
  background: rgba(47, 138, 91, 0.12);
  color: #63cc8d;
  border-color: rgba(47, 138, 91, 0.18);
}

.badge-warning {
  background: rgba(194, 142, 47, 0.14);
  color: #dbb35b;
  border-color: rgba(194, 142, 47, 0.16);
}

.badge-negative {
  background: rgba(195, 90, 90, 0.14);
  color: #f08d8d;
  border-color: rgba(195, 90, 90, 0.16);
}

.radar-shell {
  --radar-center-y: 160px;
  --radar-radius: 98px;
  --radar-gap: 10px;
  --radar-label-width: 88px;
  --radar-label-height: 48px;
  position: relative;
  min-height: 338px;
  margin: 16px 0 12px;
  padding: 28px 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(180, 200, 224, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -18px 40px rgba(0, 0, 0, 0.12);
  background:
    radial-gradient(circle at 50% 45%, rgba(226, 230, 94, 0.08), transparent 24%),
    radial-gradient(circle at 50% 42%, rgba(76, 115, 160, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}

.radar-backdrop {
  position: absolute;
  inset: 22% 20% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 230, 104, 0.16), rgba(226, 230, 104, 0));
  filter: blur(34px);
  opacity: 0.9;
  pointer-events: none;
}

.radar-svg {
  width: 100%;
  height: 268px;
  overflow: visible;
  display: block;
}

.radar-ring {
  fill: none;
  stroke: rgba(196, 214, 236, 0.13);
  stroke-width: 1;
}

.radar-ring-outer {
  stroke: rgba(196, 214, 236, 0.2);
}

.radar-ring-mid,
.radar-ring-small {
  stroke: rgba(196, 214, 236, 0.1);
}

.radar-axis {
  stroke: rgba(196, 214, 236, 0.1);
  stroke-width: 1;
}

.radar-area {
  fill: rgba(225, 230, 94, 0.18);
  stroke: #e7ef63;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(231, 239, 99, 0.16));
}

.radar-point {
  fill: #f7fab2;
  stroke: #e7ef63;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(231, 239, 99, 0.3));
}

.radar-core {
  fill: rgba(231, 239, 99, 0.95);
}

.radar-label {
  position: absolute;
  display: grid;
  gap: 2px;
  width: var(--radar-label-width);
  min-width: var(--radar-label-width);
  min-height: var(--radar-label-height);
  padding: 7px 8px;
  border-radius: 13px;
  border: 1px solid rgba(180, 200, 224, 0.07);
  background:
    linear-gradient(180deg, rgba(17, 25, 34, 0.92), rgba(10, 16, 22, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  text-align: center;
}

.radar-label span {
  color: #9fb1c6;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.radar-label strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: #f2f6fd;
}

.radar-label-top {
  top: calc(var(--radar-center-y) - var(--radar-radius) - var(--radar-gap) - var(--radar-label-height));
  left: 50%;
  transform: translateX(-50%);
}

.radar-label-left {
  left: calc(50% - var(--radar-radius) - var(--radar-gap) - var(--radar-label-width));
  top: var(--radar-center-y);
  transform: translateY(-50%);
}

.radar-label-right {
  left: calc(50% + var(--radar-radius) + var(--radar-gap));
  top: var(--radar-center-y);
  transform: translateY(-50%);
}

.radar-label-bottom {
  top: calc(var(--radar-center-y) + var(--radar-radius) + var(--radar-gap));
  left: 50%;
  transform: translateX(-50%);
}

.section {
  margin-top: 28px;
}

.section-head {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h3,
.panel-head h3 {
  font-size: clamp(1.3rem, 4vw, 2rem);
}

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

.signal-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(83, 139, 224, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(20, 30, 41, 0.98), rgba(16, 24, 33, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 14px 28px rgba(0, 0, 0, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.signal-card h4,
.signal-card p,
.signal-card strong {
  margin: 0;
}

.signal-card h4,
.signal-score,
.table-cell strong {
  font-family: "Space Grotesk", sans-serif;
}

.signal-card-top,
.signal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-card-top {
  margin-bottom: 18px;
}

.signal-score {
  font-size: 2.6rem;
  line-height: 1;
  min-width: 72px;
  padding: 12px 10px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(180, 200, 224, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.signal-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.signal-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.signal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 139, 224, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(0, 0, 0, 0.12);
}

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

.table-list,
.risk-list {
  display: grid;
  gap: 12px;
}

.movers-table {
  display: grid;
  gap: 10px;
}

.portfolio-table {
  display: grid;
  gap: 14px;
}

.table-row,
.risk-item,
.movers-row {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(180, 200, 224, 0.08);
}

.table-row {
  grid-template-columns: 1.4fr 0.9fr 0.8fr;
  align-items: center;
}

.movers-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1fr;
  align-items: center;
  gap: 16px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.7fr 0.9fr 0.9fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(83, 139, 224, 0.07), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-softer) 75%, transparent), color-mix(in srgb, var(--surface-soft) 70%, transparent));
  border: 1px solid rgba(180, 200, 224, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 22px rgba(0, 0, 0, 0.08);
}

.movers-head {
  background: transparent;
  border: none;
  padding: 0 4px 8px;
  color: var(--muted);
}

.portfolio-head {
  background: transparent;
  border: none;
  padding: 0 10px 4px;
  color: var(--muted);
  box-shadow: none;
}

.portfolio-head strong {
  text-align: center;
}

.portfolio-head strong:first-child {
  text-align: left;
}

.movers-symbol strong {
  font-family: "Space Grotesk", sans-serif;
}

.movers-link {
  text-decoration: none;
  color: inherit;
}

.movers-link:hover {
  border-color: rgba(77, 139, 199, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-row.movers-link:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 139, 199, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.14);
}

.portfolio-asset,
.portfolio-metric,
.portfolio-result {
  display: grid;
  gap: 6px;
}

.portfolio-asset strong,
.portfolio-metric strong,
.portfolio-result strong,
.portfolio-symbol {
  font-family: "Space Grotesk", sans-serif;
}

.portfolio-asset strong {
  font-size: 1.08rem;
}

.portfolio-asset span,
.portfolio-metric span,
.portfolio-result span {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-symbol {
  font-size: 0.96rem;
  color: #bfd3ea;
}

.portfolio-metric strong,
.portfolio-result strong {
  font-size: 1rem;
}

.portfolio-metric {
  justify-items: center;
  text-align: center;
}

.portfolio-symbol,
.portfolio-result {
  text-align: center;
  justify-items: center;
}

.portfolio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  width: fit-content;
  border: 1px solid transparent;
}

.portfolio-pill-positive {
  background: rgba(57, 179, 112, 0.12);
  border-color: rgba(57, 179, 112, 0.18);
}

.portfolio-pill-negative {
  background: rgba(217, 106, 106, 0.12);
  border-color: rgba(217, 106, 106, 0.18);
}

.table-cell strong {
  font-size: 1.1rem;
}

.risk-item strong {
  font-size: 1rem;
}

.claude-section .panel {
  min-height: 100%;
}

.input-group {
  margin-bottom: 16px;
}

select,
input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  resize: vertical;
}

textarea::placeholder {
  color: #7f93aa;
}

.text-input::placeholder {
  color: #7f93aa;
}

.analysis-output {
  margin-top: 18px;
  padding: 18px;
  min-height: 200px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(180, 200, 224, 0.08);
}

.analysis-output h4 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.panel-copy-accent {
  margin-top: -2px;
  color: #8ca0b8;
}

.chat-preview {
  min-height: 90px;
  padding-top: 4px;
}

.chat-bubble {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  line-height: 1.5;
  color: var(--text);
}

body[data-theme="light"] .brand-mark {
  color: #13304b;
  background: linear-gradient(145deg, #d7e8fb, #9ec6f4);
  box-shadow: 0 10px 26px rgba(112, 164, 224, 0.24);
}

body[data-theme="light"] .hero-card-scale {
  color: #5d738b;
}

body[data-theme="light"] .portfolio-meta,
body[data-theme="light"] .hero-intro-copy,
body[data-theme="light"] .hero-chip {
  color: #52687f;
}

.full-width-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

.movers-header {
  margin-top: 8px;
}

.chart-area {
  min-height: 360px;
  display: grid;
  gap: 20px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  color: var(--muted);
}

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

.stock-metric-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(180, 200, 224, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.stock-metric-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.chart-svg {
  width: 100%;
  height: 320px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(83, 139, 224, 0.08), transparent 34%),
    rgba(9, 15, 21, 0.88);
  border: 1px solid var(--line);
  padding: 18px;
}

.chart-line {
  stroke: #417dc7;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.quote-change-positive {
  color: #67d18b;
}

.quote-change-negative {
  color: #f08d8d;
}

.analysis-block {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.analysis-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: scaleY(0.35);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .signal-grid,
  .dashboard-grid,
  .claude-layout,
  .portfolio-summary-grid,
  .section-head,
  .topbar {
    grid-template-columns: 1fr;
  }

  .button-inline {
    justify-self: stretch;
  }

  .summary-card {
    min-height: 112px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero,
  .panel,
  .signal-card {
    padding: 18px;
  }

  .simple-panel {
    padding: 22px;
  }

  .hero-copy h2 {
    max-width: 14ch;
  }

  .metric-row,
  .table-row,
  .portfolio-row,
  .movers-row {
    grid-template-columns: 1fr;
  }

  .chart-summary {
    grid-template-columns: 1fr;
  }

  .radar-shell {
    --radar-center-y: 156px;
    --radar-radius: 94px;
    --radar-gap: 10px;
    --radar-label-width: 84px;
    --radar-label-height: 46px;
    min-height: 342px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .radar-label {
    padding: 7px 8px;
  }

  .radar-label strong {
    font-size: 1.05rem;
  }
}
