:root {
  --ivory: #f1f0e3;
  --ivory-2: #faf9f1;
  --ink: #161815;
  --muted: #6e6b5d;
  --line-light: #e2e0d0;
  --green: #0f6e56;
  --green-soft: #9fe1cb;
  --navy: #0b1220;
  --navy-2: #101828;
  --panel: #141c2c;
  --panel-2: #192338;
  --line-dark: #253146;
  --text: #edeff3;
  --subtext: #8b93a8;
  --red: #e24b4a;
  --blue: #378add;
  --amber: #e9ae3b;
  --purple: #8a74ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(241, 240, 227, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 44px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

body[data-mode="app"] .site-header {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--line-dark);
  color: var(--text);
}

.brand,
.header-actions,
.app-nav,
.landing-actions,
.panel-heading,
.legend,
.category-legend,
.review-meta {
  align-items: center;
  display: flex;
}

.brand {
  gap: 9px;
  min-width: 184px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: white;
  display: grid;
  flex: 0 0 30px;
  font-size: 0.9rem;
  font-weight: 800;
  height: 30px;
  place-items: center;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

body[data-mode="app"] .brand small {
  color: var(--subtext);
}

.app-nav {
  display: none;
  gap: 6px;
}

body[data-mode="app"] .app-nav {
  display: flex;
}

.tab-button,
.text-link,
.language-toggle button,
.avatar {
  background: transparent;
  border: 0;
}

.tab-button {
  border-radius: 8px;
  color: var(--subtext);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 12px;
}

.tab-button.is-active {
  background: var(--panel-2);
  color: var(--green-soft);
}

.header-actions {
  gap: 12px;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
}

body[data-mode="app"] .language-toggle {
  background: var(--panel);
  border-color: var(--line-dark);
}

.language-toggle button {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 30px;
  min-width: 38px;
}

.language-toggle button.is-active {
  background: var(--ivory-2);
  color: var(--green);
}

body[data-mode="app"] .language-toggle button.is-active {
  background: var(--green);
  color: white;
}

.button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 9px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
}

.button.small {
  min-height: 38px;
  padding: 9px 16px;
}

.button.ghost {
  background: var(--ivory-2);
  border-color: var(--line-light);
  color: var(--ink);
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

body[data-mode="app"] .text-link {
  color: var(--green-soft);
}

.avatar {
  align-items: center;
  background: var(--panel-2);
  border-radius: 50%;
  color: var(--green-soft);
  display: none;
  font-size: 0.82rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

body[data-mode="app"] .avatar {
  display: flex;
}

body[data-mode="landing"] .app-only,
body[data-mode="app"] .landing-only,
body[data-mode="app"] .auth-only,
body[data-mode="landing"] .app-nav {
  display: none !important;
}

.landing-screen {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 7vw, 76px) 32px 36px;
}

.landing-copy {
  align-self: center;
}

.eyebrow {
  background: #e1f5ee;
  border-radius: 999px;
  color: #085041;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 18px;
  padding: 6px 14px;
}

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

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 18px;
  word-break: keep-all;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  word-break: keep-all;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.landing-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 520px;
  word-break: keep-all;
}

.landing-actions {
  gap: 12px;
  margin-top: 28px;
}

.landing-map-card {
  align-self: center;
  background: #12151b;
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: white;
  padding: 22px;
}

.preview-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-top span {
  color: var(--subtext);
  font-size: 0.78rem;
}

.simple-map,
.large-map {
  background: #0e1524;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.simple-map {
  height: 300px;
}

.large-map {
  min-height: 470px;
}

.continent {
  background: #1e293f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 36px;
  opacity: 0.95;
  position: absolute;
}

.pin {
  align-items: center;
  background: var(--color);
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  color: white;
  display: grid;
  font-size: 1rem;
  font-weight: 800;
  height: var(--size);
  left: var(--x);
  place-items: center;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  width: var(--size);
  z-index: 2;
}

.pin::before {
  animation: pulse 2.1s infinite;
  background: var(--color);
  border-radius: inherit;
  content: "";
  inset: -8px;
  opacity: 0.36;
  position: absolute;
  z-index: -1;
}

.pin-button {
  border: 0;
}

.pin-button.is-active,
.pin-button:hover,
.pin-button:focus-visible {
  outline: 3px solid var(--green-soft);
}

@keyframes pulse {
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

.landing-disclaimer {
  color: #9c9884;
  font-size: 0.78rem;
  margin-top: 16px;
  text-align: center;
}

.landing-stats {
  border-top: 1px solid var(--line-light);
  display: grid;
  gap: 1px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.landing-stats article {
  padding: 28px 18px 0;
}

.landing-stats article + article {
  border-left: 1px solid var(--line-light);
}

.landing-stats strong {
  color: var(--green);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.landing-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  margin-top: 8px;
}

.app-shell {
  background: var(--navy);
  color: var(--text);
  min-height: calc(100vh - 72px);
}

.trust-bar {
  align-items: center;
  background: #0d1728;
  border-bottom: 1px solid var(--line-dark);
  color: var(--subtext);
  display: flex;
  font-size: 0.78rem;
  gap: 18px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 24px;
}

.trust-bar button {
  background: transparent;
  border: 0;
  color: var(--green-soft);
  font-weight: 800;
}

.trust-status {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 7px;
  white-space: nowrap;
}

.trust-status i {
  background: var(--green-soft);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.ticker-strip {
  background: #080d17;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  animation: marquee 24s linear infinite;
  display: inline-flex;
}

.ticker-item {
  border-right: 1px solid var(--line-dark);
  color: var(--subtext);
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  gap: 8px;
  padding: 10px 24px;
}

.ticker-item em {
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: #77839c;
  font-size: 0.66rem;
  font-style: normal;
  padding: 1px 5px;
}

.up {
  color: var(--green-soft);
}

.down {
  color: #f0997b;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tab-panel {
  display: none;
  margin: 0 auto;
  max-width: 1300px;
  padding: 28px 40px 58px;
}

.tab-panel.is-active {
  display: block;
}

.workspace-intro {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 4px 0 24px;
}

.workspace-intro h1 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  margin: 0;
  max-width: 780px;
}

.research-progress {
  border-left: 1px solid var(--line-dark);
  color: var(--subtext);
  display: grid;
  font-size: 0.76rem;
  gap: 3px;
  min-width: 230px;
  padding-left: 18px;
}

.research-progress b {
  color: var(--green-soft);
  font-size: 0.95rem;
}

.dashboard-grid,
.watchlist-layout,
.community-layout,
.my-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  padding: 18px;
}

.wide {
  grid-row: span 3;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading span,
.field-label,
.rlabel {
  color: #6b7690;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.issue-list,
.watch-snapshot,
.journal-preview,
.stock-grid,
.review-grid,
.my-list {
  display: grid;
  gap: 12px;
}

.issue-card,
.stock-card,
.review-card,
.mini-card {
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 14px;
}

.issue-card {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.chip-row,
.stock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: #23304a;
  border-radius: 999px;
  color: #aeb7cc;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
}

.severity {
  align-self: start;
  border-radius: 999px;
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 9px;
}

.severity.high {
  background: var(--red);
}

.severity.normal {
  background: var(--blue);
}

.radar-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
}

.legend,
.category-legend {
  gap: 16px;
}

.legend span,
.category-legend span {
  align-items: center;
  color: var(--subtext);
  display: inline-flex;
  font-size: 0.8rem;
  gap: 6px;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.legend-dot.high {
  background: var(--red);
}

.legend-dot.normal {
  background: var(--blue);
}

.category-legend {
  margin-top: 14px;
}

.issue-detail {
  align-self: stretch;
}

.detail-block {
  border-top: 1px solid var(--line-dark);
  padding: 14px 0;
}

.detail-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-block p,
.fineprint,
.mini-note p,
.review-card p {
  color: var(--subtext);
  margin-bottom: 0;
}

.source-link {
  color: var(--green-soft);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 10px;
}

.watchlist-layout {
  grid-template-columns: 260px minmax(350px, 1fr) minmax(330px, 0.75fr);
}

.watch-controls {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 800;
}

input,
select,
textarea {
  background: #0f1727;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list button,
.fav-button,
.outline-link {
  border-radius: 8px;
  font-weight: 800;
}

.chip-list button {
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  color: var(--subtext);
  min-height: 34px;
  padding: 6px 10px;
}

.chip-list button.is-active {
  background: var(--green);
  color: white;
}

.mini-note {
  background: #0f1727;
  border-radius: 10px;
  padding: 14px;
}

.decision-options {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
}

.decision-options button {
  background: #0f1727;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--subtext);
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 38px;
}

.decision-options button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.decision-result {
  background: #0f1727;
  border-left: 3px solid var(--green-soft);
  margin-top: 12px;
  padding: 12px 14px;
}

.decision-result p {
  color: var(--subtext);
  font-size: 0.84rem;
  margin: 4px 0 0;
}

.stock-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.stock-card.is-active,
.stock-card:hover {
  border-color: var(--green-soft);
}

.stock-top,
.review-top,
.stock-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ticker-box {
  background: #0f1727;
  border-radius: 8px;
  color: white;
  display: inline-grid;
  font-weight: 800;
  min-width: 62px;
  padding: 7px 10px;
  place-items: center;
}

.sparkline {
  background: #0f1727;
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}

.sparkline svg {
  display: block;
  width: 100%;
}

.fit-meter {
  background: #0f1727;
  border-radius: 9px;
  margin-bottom: 10px;
  padding: 12px;
}

.fit-meter div {
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fit-meter div span {
  color: var(--subtext);
}

.fit-meter > i {
  background: #26324a;
  border-radius: 4px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.fit-meter > i span {
  background: var(--green-soft);
  display: block;
  height: 100%;
}

.research-case {
  border-left: 3px solid var(--green-soft);
  padding-left: 12px;
}

.research-case.counter {
  border-left-color: #f0997b;
}

.source-note {
  font-size: 0.74rem;
  margin-top: 8px;
}

.fav-button,
.outline-link {
  background: #0f1727;
  border: 1px solid var(--line-dark);
  color: var(--green-soft);
  display: inline-flex;
  font-size: 0.8rem;
  min-height: 34px;
  padding: 7px 10px;
}

.fav-button.is-on {
  background: var(--green);
  color: white;
}

.community-layout {
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 0.55fr);
}

.journal-form {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

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

.community-check {
  align-items: start;
  color: var(--subtext);
  display: grid;
  font-size: 0.76rem;
  font-weight: 500;
  gap: 9px;
  grid-template-columns: 18px 1fr;
}

.community-check input {
  min-height: 18px;
  padding: 0;
}

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

.methodology-panel,
.maker-panel {
  grid-column: 1 / -1;
}

.method-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.method-grid article {
  background: #0f1727;
  border-left: 1px solid var(--line-dark);
  min-height: 170px;
  padding: 18px;
}

.method-grid article:first-child {
  border-left: 0;
}

.method-grid article > b {
  color: var(--green-soft);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  margin-bottom: 26px;
}

.method-grid p,
.maker-panel > p {
  color: var(--subtext);
}

.maker-panel > p {
  max-width: 800px;
}

.maker-metrics {
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding-top: 18px;
}

.maker-metrics span {
  display: grid;
  gap: 4px;
}

.maker-metrics b {
  color: var(--green-soft);
  font-size: 1.8rem;
}

.maker-metrics i {
  color: var(--subtext);
  font-size: 0.78rem;
  font-style: normal;
}

.site-footer {
  align-items: center;
  background: #080d17;
  border-top: 1px solid var(--line-dark);
  color: #77839c;
  display: flex;
  font-size: 0.74rem;
  gap: 18px;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 44px);
}

.return-pill {
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 6px 9px;
}

.return-pill.positive {
  background: var(--green);
}

.return-pill.negative {
  background: var(--red);
}

.review-numbers {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.review-numbers div {
  background: #0f1727;
  border-radius: 8px;
  padding: 10px;
}

.review-numbers span {
  color: var(--subtext);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-numbers strong {
  display: block;
  margin-top: 2px;
}

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

.simulator-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.simulator-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.16;
  margin: 8px 0;
  max-width: 760px;
}

.simulator-head p { color: var(--subtext); margin: 0; max-width: 720px; }
.sim-user { border-left: 1px solid var(--line-dark); display: grid; flex: 0 0 auto; min-width: 150px; padding-left: 20px; }
.sim-user span { color: var(--subtext); font-size: .72rem; font-weight: 800; }
.sim-user strong { font-size: 1.05rem; }

.account-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.account-metrics article { background: var(--panel); border: 1px solid var(--line-dark); min-height: 104px; padding: 18px; }
.account-metrics article:first-child { border-radius: 8px 0 0 8px; }
.account-metrics article:last-child { border-radius: 0 8px 8px 0; }
.account-metrics span { color: var(--subtext); display: block; font-size: .74rem; font-weight: 800; margin-bottom: 8px; }
.account-metrics strong { font-size: 1.42rem; }

.simulator-grid { display: grid; gap: 18px; grid-template-columns: minmax(280px, .34fr) minmax(0, .66fr); }
.order-ticket { align-self: start; display: grid; gap: 14px; grid-row: span 2; }
.order-ticket label, .signup-card label { display: grid; gap: 6px; }
.order-ticket label > span, .signup-card label > span { color: var(--subtext); font-size: .75rem; font-weight: 800; }
.quote-line, .order-estimate { align-items: center; background: #0f1727; border: 1px solid var(--line-dark); border-radius: 8px; display: flex; justify-content: space-between; padding: 12px; }
.quote-line span, .order-estimate span { color: var(--subtext); font-size: .76rem; font-weight: 700; }
.quote-line strong, .order-estimate strong { font-size: 1.05rem; }
.side-control { background: #0f1727; border: 1px solid var(--line-dark); border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; }
.side-control button { background: transparent; border: 0; border-radius: 6px; color: var(--subtext); font-weight: 800; min-height: 40px; }
.side-control button.is-active { background: var(--green); color: white; }
.holdings-table { display: grid; gap: 8px; }
.holding-row { align-items: center; background: #0f1727; border: 1px solid var(--line-dark); border-radius: 8px; display: grid; gap: 12px; grid-template-columns: 1.4fr repeat(4, 1fr); padding: 13px; }
.holding-row > div { display: grid; gap: 2px; min-width: 0; }
.holding-row > div:first-child { align-items: center; display: flex; gap: 10px; }
.holding-row span { color: var(--subtext); font-size: .68rem; font-weight: 700; }
.holding-row strong { font-size: .86rem; overflow-wrap: anywhere; }
.activity-panel { min-width: 0; }
.trade-list { display: grid; gap: 8px; }
.trade-row { align-items: center; border-bottom: 1px solid var(--line-dark); display: grid; gap: 14px; grid-template-columns: 52px 1fr auto; padding: 10px 0; }
.trade-row:last-child { border-bottom: 0; }
.trade-row p, .trade-row span { color: var(--subtext); font-size: .72rem; margin: 2px 0 0; }
.trade-row > div:last-child { display: grid; text-align: right; }
.trade-side { border-radius: 6px; color: white !important; font-size: .7rem !important; font-weight: 800; padding: 5px 7px; text-align: center; }
.trade-side.buy { background: var(--green); }
.trade-side.sell { background: var(--red); }
.empty-state { border: 1px dashed var(--line-dark); border-radius: 8px; color: var(--subtext); padding: 26px; text-align: center; }
.empty-state p { font-size: .78rem; margin: 5px auto 0; max-width: 440px; }
.form-message { font-size: .78rem; font-weight: 800; margin: 0; min-height: 20px; }
.form-message.success { color: var(--green-soft); }
.form-message.error { color: #ff8988; }

.signup-dialog { background: transparent; border: 0; color: var(--text); max-width: 500px; padding: 18px; width: 100%; }
.signup-dialog::backdrop { background: rgba(4, 8, 15, .78); backdrop-filter: blur(6px); }
.signup-card { background: var(--panel); border: 1px solid var(--line-dark); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 15px; padding: 28px; position: relative; }
.signup-card h2 { font-size: 1.65rem; line-height: 1.2; margin: 0; }
.signup-card > p { color: var(--subtext); margin: 0; }
.dialog-close { background: transparent; border: 0; color: var(--subtext); font-size: 1.5rem; line-height: 1; padding: 6px; position: absolute; right: 14px; top: 12px; }
.dialog-switch { background: transparent; border: 0; color: var(--green-soft); font-size: .8rem; font-weight: 800; padding: 4px; text-align: center; }
.profile-panel { align-items: center; display: flex; grid-column: 1 / -1; justify-content: space-between; }
.profile-summary { align-items: center; display: flex; gap: 14px; }
.profile-summary h2, .profile-summary p { margin: 0; }
.profile-summary > div > span { color: var(--subtext); font-size: .7rem; font-weight: 800; }
.profile-summary p { color: var(--subtext); font-size: .8rem; }
.profile-avatar { align-items: center; background: var(--green); border-radius: 50%; color: white; display: flex; font-size: 1.1rem; font-weight: 800; height: 48px; justify-content: center; width: 48px; }

@media (max-width: 1080px) {
  .landing-screen,
  .dashboard-grid,
  .radar-layout,
  .watchlist-layout,
  .simulator-grid,
  .community-layout,
  .my-grid {
    grid-template-columns: 1fr;
  }

  .watch-controls,
  .journal-form {
    position: static;
  }

  .app-nav {
    overflow-x: auto;
  }

  .wide {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: start;
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .app-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .landing-screen,
  .tab-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .trust-bar,
  .workspace-intro,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-bar {
    gap: 5px;
  }

  .workspace-intro h1 {
    font-size: 1.8rem;
  }

  .research-progress {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    min-width: 0;
    padding-left: 0;
    padding-top: 12px;
    width: 100%;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .landing-stats,
  .account-metrics,
  .form-grid,
  .review-numbers,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    min-height: 0;
  }

  .method-grid article:first-child {
    border-top: 0;
  }

  .method-grid article > b {
    margin-bottom: 12px;
  }

  .landing-stats article + article {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .account-metrics article:first-child, .account-metrics article:last-child { border-radius: 0; }
  .simulator-head { align-items: start; flex-direction: column; }
  .profile-panel { align-items: stretch; flex-direction: column; gap: 16px; }
  .sim-user { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; padding-top: 12px; width: 100%; }
  .holding-row { grid-template-columns: repeat(2, 1fr); }
  .holding-row > div:first-child { grid-column: 1 / -1; }
}
