:root {
  --ink: #12231f;
  --muted: #62736d;
  --paper: #f3f0e8;
  --surface: rgba(255, 255, 255, 0.76);
  --line: rgba(18, 35, 31, 0.13);
  --green: #0a7058;
  --green-dark: #064c3c;
  --mint: #bfe4d5;
  --orange: #e57c40;
  --red: #b8473d;
  --blue: #386b8d;
  --shadow: 0 20px 60px rgba(25, 47, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(191, 228, 213, 0.55), transparent 32rem),
    linear-gradient(180deg, #f8f6f0 0%, var(--paper) 100%);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
}

.ambient-one {
  width: 24rem;
  height: 24rem;
  top: 30rem;
  right: -10rem;
  background: rgba(229, 124, 64, 0.08);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  top: 78rem;
  left: -9rem;
  background: rgba(56, 107, 141, 0.08);
}

.shell,
.topbar {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 12%;
  background: var(--green);
  transform: rotate(-12deg);
  box-shadow: inset -9px -7px 0 rgba(255, 255, 255, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--green);
}

.nav-home {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: 5rem 6rem;
}

.eyebrow,
.section-kicker,
.table-label {
  margin: 0;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.15rem 0 1.4rem;
  max-width: 760px;
  font-family: Georgia, "Nanum Myeongjo", serif;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 670px;
  margin: 0;
  color: #455852;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 750;
}

.primary-action {
  color: white;
  background: var(--green);
  box-shadow: 0 10px 30px rgba(10, 112, 88, 0.22);
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.market-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 1.2rem;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    #0c342b;
  box-shadow: var(--shadow);
}

.market-card::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  top: -6rem;
  right: -5rem;
  border: 1px solid rgba(191, 228, 213, 0.25);
  border-radius: 50%;
}

.market-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.market-card-head > div {
  display: grid;
  gap: 0.3rem;
}

.market-card-head .update-stamp {
  text-align: right;
}

.market-card-head strong {
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  white-space: nowrap;
}

.market-signal {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.8rem 0.7rem 1.35rem;
}

.market-signal p {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.market-signal h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.signal-pill {
  align-self: flex-start;
  padding: 0.36rem 0.7rem;
  border: 1px solid rgba(191, 228, 213, 0.35);
  border-radius: 999px;
  color: #d9f5ea;
  background: rgba(191, 228, 213, 0.09);
  font-size: 0.75rem;
  font-weight: 700;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.market-metrics div {
  padding: 1rem 0.65rem 0.45rem;
}

.market-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.market-metrics dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.67rem;
}

.market-metrics dd {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 750;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 7rem;
  border-block: 1px solid var(--line);
}

/* News-independent all-market structural screen */
.all-market-section {
  position: relative;
}

.all-market-heading h2 {
  max-width: 20ch;
}

.all-market-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(16, 116, 88, 0.1), rgba(255, 255, 255, 0.72));
}

.all-market-status > div {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.all-market-status strong,
.all-market-status small {
  display: block;
}

.all-market-status small,
.all-market-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.all-market-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(160px, 0.8fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.all-market-toolbar label > span:not(.toggle span) {
  display: block;
  margin: 0 0 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.all-market-toolbar input[type="search"],
.all-market-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.all-market-list {
  display: grid;
  gap: 0.7rem;
}

.all-market-card.is-research {
  border-left-color: #107458;
}

.summary-card {
  min-height: 130px;
  padding: 1.4rem 1rem;
}

.summary-card + .summary-card {
  border-left: 1px solid var(--line);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-card strong {
  display: block;
  margin-top: 0.7rem;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.summary-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.section {
  padding-block: 2rem 7rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.65rem 0 0;
  font-family: Georgia, "Nanum Myeongjo", serif;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.section-heading > p {
  margin: 0 0 0.3rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.regime-card,
.table-card,
.leader-card,
.watch-card,
.data-card,
.context-card,
.rs-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(30, 51, 44, 0.035);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.context-card {
  min-height: 260px;
  padding: 1.1rem;
  border-radius: 18px;
}

.context-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.context-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.context-source,
.context-empty {
  color: var(--muted);
  font-size: 0.71rem;
}

.context-source {
  margin: 0.38rem 0 1rem;
}

.context-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.context-line {
  display: grid;
  gap: 0.24rem;
  padding: 0.75rem;
  border-radius: 11px;
  background: rgba(10, 112, 88, 0.055);
}

.context-line strong { font-size: 0.81rem; }
.context-line span { font-size: 0.73rem; line-height: 1.45; }
.context-line small { color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.context-line.compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.context-line.compact small { grid-column: 1 / -1; }

.freshness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.45);
}

.freshness-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(18,35,31,.035);
  font-size: 0.67rem;
}

.freshness-item small { color: var(--muted); }
.freshness-badge { display: inline-flex; padding: .22rem .46rem; border-radius: 999px; font-size: .63rem; font-style: normal; font-weight: 800; }
.freshness-badge.normal { color: var(--green-dark); background: rgba(191,228,213,.62); }
.freshness-badge.baseline { color: var(--blue); background: rgba(56,107,141,.1); }
.freshness-badge.delayed { color: #815028; background: rgba(229,124,64,.13); }

.rs-section {
  position: relative;
}

.rs-toolbar {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) minmax(160px, .55fr) auto;
  gap: .75rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
}

.rs-toolbar label > span:not(.toggle span) {
  display: block;
  margin: 0 0 .35rem .15rem;
  color: var(--muted);
  font-size: .67rem;
}

.rs-toolbar input[type="search"],
.rs-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255,255,255,.8);
}

.rs-toolbar > .toggle { min-height: 42px; padding-inline: .75rem; border: 1px solid var(--line); border-radius: 10px; }
.tab-list { display: inline-flex; padding: .25rem; border-radius: 12px; background: rgba(18,35,31,.06); }
.rs-tab { min-height: 42px; padding: 0 .9rem; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 750; }
.rs-tab.is-active { color: white; background: var(--green); box-shadow: 0 7px 20px rgba(10,112,88,.18); }

.rs-explainer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: .7rem 0;
  color: var(--muted);
  font-size: .7rem;
}
.rs-explainer strong { color: var(--green-dark); }
.rs-list { display: grid; gap: .65rem; }
.rs-card { overflow: hidden; border-radius: 16px; }
.rs-card summary { display: grid; grid-template-columns: 42px minmax(180px,1fr) 78px auto minmax(270px,1.3fr) 24px; align-items: center; gap: .8rem; padding: .9rem 1rem; list-style: none; cursor: pointer; }
.rs-card summary::-webkit-details-marker { display: none; }
.rs-rank { color: var(--muted); font-family: ui-monospace,monospace; font-size: .72rem; }
.rs-score { display: grid; text-align: center; }
.rs-score small { color: var(--muted); font-size: .62rem; }
.rs-score strong { font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; }
.rs-ranks { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .3rem; }
.rs-ranks span { display: grid; gap: .15rem; padding: .35rem; border-radius: 8px; background: rgba(18,35,31,.035); text-align: center; }
.rs-ranks small { color: var(--muted); font-size: .58rem; }
.rs-ranks strong { font-size: .72rem; }
.rs-detail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.rs-detail div { min-height: 115px; padding: .85rem; background: rgba(255,255,255,.9); }
.rs-detail span { display: block; color: var(--muted); font-size: .65rem; }
.rs-detail strong { display: block; margin-top: .38rem; font-size: .74rem; line-height: 1.55; }
.rs-card[open] .expand-mark::after { transform: translate(-50%,-50%) rotate(0deg); }

.regime-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 1.25rem;
}

.regime-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.regime-card h3 {
  margin: 1.3rem 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.regime-subtheme {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.score-track {
  height: 5px;
  margin: 1.4rem 0 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 112, 88, 0.11);
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.regime-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.metric-box {
  padding: 0.65rem;
  border-radius: 10px;
  background: rgba(10, 112, 88, 0.055);
}

.metric-box span,
.detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-box strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.86rem;
}

.table-card {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 18px;
}

.table-card-head {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.table-card-head h3 {
  margin: 0.3rem 0 0;
  letter-spacing: -0.03em;
}

.table-note {
  color: var(--muted);
  font-size: 0.74rem;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.data-table th,
.data-table td {
  padding: 0.92rem 1rem;
  border-bottom: 1px solid rgba(18, 35, 31, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.78rem;
}

.data-table th {
  color: var(--muted);
  background: rgba(18, 35, 31, 0.025);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(191, 228, 213, 0.11);
}

.flow-positive {
  color: var(--green);
  font-weight: 750;
}

.flow-negative {
  color: var(--red);
  font-weight: 750;
}

.badge,
.role-pill,
.action-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.badge {
  padding: 0.25rem 0.5rem;
  color: var(--green-dark);
  background: rgba(191, 228, 213, 0.55);
  font-size: 0.66rem;
  font-weight: 800;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.toggle input {
  accent-color: var(--green);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.filter-bar label > span:not(.toggle span) {
  display: block;
  margin: 0 0 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.filter-bar input[type="search"],
.filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.filter-toggle {
  min-height: 42px;
  padding-inline: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.leader-list {
  display: grid;
  gap: 0.75rem;
}

.leader-card {
  border-radius: 16px;
  overflow: hidden;
}

.leader-card summary {
  list-style: none;
  cursor: pointer;
}

.leader-card summary::-webkit-details-marker {
  display: none;
}

.leader-summary {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.15fr) minmax(180px, 1fr) minmax(260px, 1.5fr) 24px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.stock-name strong,
.stock-name small {
  display: block;
}

.stock-name strong {
  font-size: 1rem;
}

.stock-name small,
.theme-copy small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
}

.theme-copy strong,
.theme-copy small {
  display: block;
}

.theme-copy strong {
  font-size: 0.84rem;
}

.role-pill,
.action-pill {
  margin-right: 0.3rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 750;
}

.role-pill {
  color: var(--blue);
  background: rgba(56, 107, 141, 0.1);
}

.action-pill {
  color: var(--green-dark);
  background: rgba(191, 228, 213, 0.52);
}

.action-pill.risk {
  color: var(--red);
  background: rgba(184, 71, 61, 0.09);
}

.flow-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.flow-stack span {
  display: block;
  padding: 0.38rem 0.42rem;
  border-radius: 8px;
  background: rgba(18, 35, 31, 0.035);
  font-size: 0.69rem;
  text-align: center;
}

.candle-line {
  font-size: 0.76rem;
  line-height: 1.55;
}

.expand-mark {
  width: 22px;
  height: 22px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.expand-mark::before,
.expand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.expand-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.leader-card[open] .expand-mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.leader-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.detail-block {
  min-height: 150px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.detail-block h4 {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
}

.detail-block p {
  margin: 0.35rem 0 0;
  color: #3d514a;
  font-size: 0.76rem;
  line-height: 1.55;
}

.score-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.score-pill {
  gap: 0.35rem;
  padding: 0.3rem 0.48rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
}

.score-pill strong {
  color: var(--ink);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.watch-card {
  min-height: 245px;
  border-radius: 16px;
  padding: 1.05rem;
}

.watch-card h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
}

.watch-theme {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.watch-plan {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.watch-plan div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.watch-plan span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
}

.watch-plan strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  line-height: 1.5;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.data-card {
  min-height: 170px;
  border-radius: 14px;
  padding: 1rem;
}

.data-card h3 {
  margin: 0;
  font-size: 0.84rem;
}

.data-status {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(191, 228, 213, 0.5);
  font-size: 0.67rem;
  font-weight: 800;
}

.data-status.missing {
  color: #815028;
  background: rgba(229, 124, 64, 0.12);
}

.data-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.method-details {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.method-details summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 750;
}

.method-details > div {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.empty-state {
  margin: 0;
  padding: 2.5rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  color: var(--muted);
  background: var(--paper);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-screen.is-done {
  opacity: 0;
  visibility: hidden;
}

.loading-screen.is-error {
  color: var(--red);
}

.loading-mark {
  width: 46px;
  height: 46px;
  margin-inline: auto;
  border: 3px solid rgba(10, 112, 88, 0.16);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 4rem;
  }

  .hero-copy {
    max-width: 850px;
  }

  .market-card {
    max-width: 620px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-card + .summary-card {
    border-left: 0;
  }

  .summary-card:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .summary-card:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--line);
  }

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

  .leader-summary {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 1.3fr) 24px;
  }

  .leader-summary .leader-role {
    display: none;
  }

  .leader-detail,
  .data-grid,
  .rs-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar {
    width: min(100% - 1.25rem, 1280px);
  }

  .topbar {
    height: auto;
    padding-block: 0.9rem;
  }

  .topbar nav a:not(.nav-home) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 3rem 4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.9rem);
  }

  .summary-strip,
  .regime-grid,
  .watch-grid,
    .data-grid,
    .section-heading,
    .filter-bar,
    .context-grid,
    .rs-toolbar {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .summary-card + .summary-card,
  .summary-card:nth-child(n + 4),
  .summary-card:not(:nth-child(3n + 1)) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .summary-card:first-child {
    border-top: 0;
  }

  .section-heading {
    gap: 1rem;
  }

  .table-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .leader-summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .rs-card summary {
    grid-template-columns: 32px minmax(0,1fr) 58px 24px;
  }

  .rs-card summary > .action-pill,
  .rs-card summary > .rs-ranks { display: none; }

  .rs-detail { grid-template-columns: 1fr; }

  .leader-summary > *:not(.stock-name):not(.expand-mark) {
    display: none;
  }

  .leader-detail {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Institutional decision cockpit */
.fund-cockpit {
  position: relative;
}

.fund-heading h2 {
  max-width: 18ch;
}

.readiness-banner {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(184, 71, 61, 0.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(184, 71, 61, 0.1), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow);
}

.readiness-banner.is-ready {
  border-color: rgba(10, 112, 88, 0.28);
  background: linear-gradient(135deg, rgba(10, 112, 88, 0.11), rgba(255, 255, 255, 0.7));
}

.readiness-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.readiness-main strong {
  display: block;
  margin: 0.12rem 0 0.35rem;
  font-size: 1.05rem;
}

.readiness-main p,
.readiness-banner ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.readiness-banner ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.2rem;
}

.readiness-label {
  flex: 0 0 auto;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.is-ready .readiness-label {
  background: var(--green);
}

.fund-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.fund-metric {
  min-width: 0;
  padding: 1rem;
  border-left: 1px solid var(--line);
}

.fund-metric:first-child {
  border-left: 0;
}

.fund-metric span,
.fund-metric small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
}

.fund-metric strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  letter-spacing: -0.04em;
}

.fund-metric.positive strong { color: var(--green); }
.fund-metric.negative strong { color: var(--red); }

.fund-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.fund-panel {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.fund-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.fund-panel-head h3,
.fund-panel-head p {
  margin: 0;
}

.fund-panel-head h3 {
  margin-top: 0.18rem;
  font-size: 1.1rem;
}

.equity-chart {
  min-height: 250px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(191, 228, 213, 0.18), rgba(255, 255, 255, 0.1));
}

.equity-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid line {
  stroke: rgba(18, 35, 31, 0.11);
  stroke-width: 1;
}

.chart-grid text,
.chart-date {
  fill: var(--muted);
  font-size: 11px;
}

.curve-net,
.curve-market,
.curve-hedged {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.curve-net { stroke: var(--green); }
.curve-market { stroke: var(--orange); }
.curve-hedged {
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend i {
  width: 1.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.chart-legend .legend-market { background: var(--orange); }
.chart-legend .legend-hedged { background: var(--blue); }

.backtest-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.backtest-notes p,
.backtest-notes ul { margin: 0; }
.backtest-notes ul { padding-left: 1.1rem; }

.nav-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-input input {
  width: 7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.sizing-output {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}

.sizing-output div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.sizing-output span { color: var(--muted); }
.sizing-output .sizing-warning strong { color: var(--red); }
.sizing-output .sizing-ok strong { color: var(--green); }

.sizing-disclaimer {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.decision-book-panel {
  padding: 0;
  overflow: hidden;
}

.decision-book-panel .fund-panel-head {
  padding: 1.2rem 1.2rem 0;
}

.fund-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}

.fund-table th {
  padding: 0.75rem 0.85rem;
  background: rgba(18, 35, 31, 0.045);
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.fund-table td {
  min-width: 120px;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.fund-table td:first-child { min-width: 150px; }
.fund-table strong,
.fund-table small { display: block; }
.fund-table small {
  margin-top: 0.28rem;
  color: var(--muted);
  line-height: 1.45;
}

.book-action {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.18rem 0.38rem;
  border-radius: 999px;
  background: rgba(10, 112, 88, 0.1);
  color: var(--green-dark);
  font-weight: 800;
}

[data-book-participation].is-breach {
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .fund-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fund-metric:nth-child(4) { border-left: 0; }
  .fund-metric:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .fund-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .readiness-banner { grid-template-columns: 1fr; }
  .readiness-main { flex-direction: column; }
  .fund-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund-metric:nth-child(4) { border-left: 1px solid var(--line); }
  .fund-metric:nth-child(odd) { border-left: 0; }
  .fund-metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .backtest-notes { grid-template-columns: 1fr; }
  .fund-panel-head { flex-direction: column; }
  .equity-chart { min-height: 190px; }
}

/* Point-in-time predictive funnel */
.predictive-section {
  position: relative;
}

.predictive-heading h2 {
  max-width: 19ch;
}

.predictive-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(56, 107, 141, 0.08), rgba(255, 255, 255, 0.7));
}

.predictive-status > div {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.predictive-status strong,
.predictive-status small {
  display: block;
}

.predictive-status small,
.predictive-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.predictive-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.predictive-toolbar label > span:not(.toggle span) {
  display: block;
  margin: 0 0 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.predictive-toolbar select {
  min-width: 220px;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.predictive-list {
  display: grid;
  gap: 0.7rem;
}

.predictive-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(98, 115, 109, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(25, 47, 40, 0.05);
}

.predictive-card.is-eligible {
  border-left-color: var(--green);
}

.predictive-card summary {
  display: grid;
  grid-template-columns: 145px minmax(190px, 1fr) 90px minmax(220px, 1.2fr) 24px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  list-style: none;
  cursor: pointer;
}

.predictive-card summary::-webkit-details-marker { display: none; }
.predictive-card[open] .expand-mark::after { transform: translate(-50%, -50%) rotate(0deg); }

.predictive-stage {
  display: inline-flex;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(191, 228, 213, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.predictive-stage.is-risk {
  color: var(--red);
  background: rgba(184, 71, 61, 0.1);
}

.predictive-score small,
.predictive-thesis small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.predictive-score strong {
  display: block;
  margin-top: 0.1rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.45rem;
}

.predictive-thesis strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.predictive-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.predictive-detail-block {
  min-height: 145px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.predictive-detail-block > span,
.predictive-detail-block > small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.predictive-detail-block > strong {
  display: block;
  margin: 0.45rem 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.catalyst-block a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 107, 141, 0.3);
  text-underline-offset: 3px;
}

.predictive-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.predictive-flow span {
  padding: 0.45rem;
  border-radius: 9px;
  background: rgba(18, 35, 31, 0.035);
}

.predictive-flow small,
.predictive-flow strong {
  display: block;
  font-size: 0.66rem;
}

.predictive-flow strong { margin-top: 0.2rem; }
.risk-copy strong { color: #75433e; }

.predictive-backtest {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.predictive-backtest-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.predictive-backtest > p {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.predictive-cohorts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.predictive-cohorts > div {
  padding: 0.75rem;
  border-radius: 11px;
  background: rgba(18, 35, 31, 0.035);
}

.predictive-cohorts strong,
.predictive-cohorts span,
.predictive-cohorts small {
  display: block;
}

.predictive-cohorts span,
.predictive-cohorts small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.official-context-section {
  position: relative;
}

.official-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.official-status-grid .context-card {
  min-height: 170px;
}

.official-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.official-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.official-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.official-panel-head h3,
.official-panel-head p {
  margin: 0;
}

.official-item-list {
  max-height: 520px;
  overflow: auto;
}

.official-item {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.official-item:last-child { border-bottom: 0; }
.official-item > div { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.official-item p { margin: 0.38rem 0 0.25rem; font-size: 0.8rem; line-height: 1.45; }
.official-item a { color: var(--blue); text-underline-offset: 3px; }
.official-item small { color: var(--muted); font-size: 0.68rem; }

.importance-pill {
  flex: 0 0 auto;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: rgba(18, 35, 31, 0.06);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.importance-pill.level-4,
.importance-pill.level-5 { color: #7b3e35; background: rgba(184, 71, 61, 0.1); }

.research-context-panel { margin-top: 0.8rem; }
.research-context-row { border-bottom: 1px solid var(--line); }
.research-context-row:last-child { border-bottom: 0; }
.research-context-row summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1fr) 24px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.research-context-row summary::-webkit-details-marker { display: none; }
.research-context-row summary span { color: var(--muted); font-size: 0.72rem; }
.research-context-row[open] .expand-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.research-context-row > div { display: grid; grid-template-columns: 2fr 1fr; background: var(--line); gap: 1px; border-top: 1px solid var(--line); }
.research-context-row .predictive-detail-block { min-height: 120px; }
.research-warning { margin: 0; padding: 1rem; background: rgba(255,255,255,.9); color: var(--muted); font-size: .72rem; line-height: 1.6; }
.official-evidence-block a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.bottom-radar-section {
  position: relative;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 30px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: linear-gradient(145deg, rgba(238, 249, 248, .98), rgba(235, 245, 255, .96));
  box-shadow: 0 24px 62px rgba(15, 78, 91, .1);
}
.bottom-radar-status {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin: 1rem 0; padding: .8rem 1rem; border: 1px solid rgba(14, 116, 144, .14);
  border-radius: 14px; background: rgba(255,255,255,.7);
}
.bottom-radar-status strong { font-size: .82rem; }
.bottom-radar-status small { color: var(--muted); margin-left: auto; }
.bottom-rotation-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem;
}
.bottom-rotation-grid article {
  display: grid; gap: .35rem; min-height: 112px; padding: .9rem;
  border: 1px solid rgba(14, 116, 144, .13); border-radius: 14px; background: rgba(255,255,255,.76);
}
.bottom-rotation-grid span { color: var(--muted); font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.bottom-rotation-grid strong { color: #0f3f49; font: 700 .94rem/1.35 var(--display); }
.bottom-rotation-grid small { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.bottom-radar-toolbar {
  display: grid; grid-template-columns: 1.25fr repeat(2, minmax(145px, .7fr)) minmax(170px, .75fr);
  gap: .7rem; align-items: end; margin-bottom: 1rem;
}
.bottom-radar-toolbar label:not(.toggle) { display: grid; gap: .35rem; color: var(--muted); font-size: .67rem; }
.bottom-radar-toolbar input,
.bottom-radar-toolbar select {
  width: 100%; min-height: 42px; border: 1px solid rgba(14, 116, 144, .18); border-radius: 11px;
  padding: .65rem .75rem; background: rgba(255,255,255,.86); color: var(--ink);
}
.bottom-radar-toolbar .toggle { min-height: 42px; justify-content: center; border: 1px solid rgba(14,116,144,.16); border-radius: 11px; background: rgba(255,255,255,.7); }
.bottom-radar-list { display: grid; gap: .7rem; }
.bottom-radar-card { overflow: hidden; border: 1px solid rgba(14, 116, 144, .14); border-radius: 16px; background: rgba(255,255,255,.86); }
.bottom-radar-card summary {
  display: grid; grid-template-columns: 58px minmax(185px, 1fr) minmax(110px, auto) minmax(310px, 1.4fr) 24px;
  gap: .8rem; align-items: center; padding: .9rem 1rem; cursor: pointer; list-style: none;
}
.bottom-radar-card summary::-webkit-details-marker { display: none; }
.bottom-radar-card[open] .expand-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.bottom-radar-score { display: grid; text-align: center; }
.bottom-radar-score small { color: #5f7f86; font-size: .56rem; letter-spacing: .1em; }
.bottom-radar-score strong { color: #0e6070; font: 700 1.25rem/1 var(--display); }
.bottom-stage { justify-self: start; border: 1px solid rgba(14,116,144,.22); border-radius: 999px; padding: .38rem .58rem; background: rgba(14,116,144,.08); color: #0e6070; font-size: .67rem; white-space: nowrap; }
.bottom-stage[class*="추격"], .bottom-stage[class*="실패"] { color: #be123c; border-color: rgba(190,18,60,.2); background: rgba(244,63,94,.07); }
.bottom-radar-snapshot { display: flex; flex-wrap: wrap; gap: .4rem; }
.bottom-radar-snapshot span { border-radius: 6px; padding: .28rem .42rem; background: rgba(14,116,144,.06); color: #365f67; font-size: .64rem; }
.bottom-radar-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid rgba(14,116,144,.13); background: rgba(14,116,144,.13); }
.bottom-radar-detail > div { display: grid; gap: .35rem; min-height: 110px; padding: .9rem; background: rgba(252,254,254,.98); }
.bottom-radar-detail span { color: var(--muted); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.bottom-radar-detail strong { color: #294b52; font-size: .72rem; line-height: 1.6; }
.bottom-radar-backtest { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(14,116,144,.14); border-radius: 14px; background: rgba(255,255,255,.68); }
.bottom-radar-backtest > strong { margin-right: .6rem; }
.bottom-radar-backtest p { color: #365f67; font-size: .72rem; line-height: 1.7; }
.bottom-radar-backtest small { color: var(--muted); }

.technical-section {
  position: relative;
  border-radius: 30px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: linear-gradient(145deg, rgba(7, 18, 32, .98), rgba(14, 31, 51, .96));
  color: #e2e8f0;
  box-shadow: 0 28px 70px rgba(6, 18, 34, .18);
}
.technical-section .section-heading h2,
.technical-section .section-kicker { color: #f8fafc; }
.technical-section .section-heading > p { color: #94a3b8; }
.technical-status {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin: 1rem 0; padding: .8rem 1rem; border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px; background: rgba(15,23,42,.5);
}
.technical-status strong { font-size: .82rem; }
.technical-status small { color: #94a3b8; margin-left: auto; }
.technical-toolbar {
  display: grid; grid-template-columns: 1.25fr repeat(3, minmax(145px, .75fr)); gap: .7rem; margin-bottom: 1rem;
}
.technical-toolbar label { display: grid; gap: .35rem; color: #94a3b8; font-size: .67rem; }
.technical-toolbar input,
.technical-toolbar select {
  width: 100%; min-height: 42px; border: 1px solid rgba(148,163,184,.22); border-radius: 11px;
  padding: .65rem .75rem; background: #0b1727; color: #e2e8f0;
}
.technical-list { display: grid; gap: .7rem; }
.technical-card { border: 1px solid rgba(148,163,184,.18); border-radius: 16px; overflow: hidden; background: rgba(10,22,38,.76); }
.technical-card summary {
  display: grid; grid-template-columns: 58px minmax(180px, 1fr) minmax(130px, auto) minmax(320px, 1.4fr) 24px;
  gap: .8rem; align-items: center; padding: .9rem 1rem; cursor: pointer; list-style: none;
}
.technical-card summary::-webkit-details-marker { display: none; }
.technical-card[open] .expand-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.technical-score { display: grid; text-align: center; }
.technical-score small { color: #64748b; font-size: .58rem; letter-spacing: .12em; }
.technical-score strong { color: #f8fafc; font: 700 1.25rem/1 var(--display); }
.technical-card .stock-name strong { color: #f8fafc; }
.technical-card .stock-name small { color: #64748b; }
.technical-class { justify-self: start; border: 1px solid rgba(56,189,248,.25); border-radius: 999px; padding: .38rem .58rem; background: rgba(14,165,233,.1); color: #7dd3fc; font-size: .67rem; white-space: nowrap; }
.technical-class[class*="과열"], .technical-class[class*="실패"] { color: #fda4af; border-color: rgba(251,113,133,.3); background: rgba(244,63,94,.1); }
.technical-snapshot { display: flex; flex-wrap: wrap; gap: .4rem; }
.technical-snapshot span { border-radius: 6px; padding: .28rem .42rem; background: rgba(148,163,184,.08); color: #cbd5e1; font-size: .64rem; }
.technical-detail { border-top: 1px solid rgba(148,163,184,.18); }
.technical-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(148,163,184,.16); }
.technical-facts > div { display: grid; gap: .35rem; min-height: 105px; padding: .9rem; background: #0a1626; }
.technical-facts span { color: #64748b; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; }
.technical-facts strong { color: #cbd5e1; font-size: .73rem; line-height: 1.55; }
.mini-chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: rgba(148,163,184,.16); border-top: 1px solid rgba(148,163,184,.16); }
.mini-chart-grid figure { margin: 0; padding: .8rem; background: #08111e; }
.mini-chart-grid figcaption { color: #64748b; font-size: .63rem; margin-bottom: .5rem; }
.technical-canvas { display: block; width: 100%; height: 250px; border-radius: 8px; }
.chart-omitted { margin: 0; padding: 1rem; border-top: 1px solid rgba(148,163,184,.16); color: #64748b; font-size: .7rem; }
.technical-backtest { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(148,163,184,.18); border-radius: 14px; background: rgba(15,23,42,.5); }
.technical-backtest > strong { margin-right: .6rem; }
.technical-backtest p { color: #cbd5e1; font-size: .72rem; line-height: 1.7; }
.technical-backtest small { color: #94a3b8; }

@media (max-width: 1080px) {
  .official-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-market-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .predictive-card summary { grid-template-columns: 125px minmax(170px, 1fr) 75px 24px; }
  .predictive-thesis { display: none; }
  .predictive-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technical-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-rotation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-radar-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-radar-card summary { grid-template-columns: 52px minmax(170px, 1fr) minmax(120px, auto) 24px; }
  .bottom-radar-snapshot { display: none; }
  .technical-card summary { grid-template-columns: 52px minmax(170px, 1fr) minmax(130px, auto) 24px; }
  .technical-snapshot { display: none; }
  .mini-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .official-status-grid,
  .official-workspace { grid-template-columns: 1fr; }
  .research-context-row summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .research-context-row summary span { display: none; }
  .research-context-row > div { grid-template-columns: 1fr; }
  .all-market-status { align-items: flex-start; flex-direction: column; }
  .all-market-toolbar { grid-template-columns: 1fr; }
  .predictive-status { align-items: flex-start; flex-direction: column; }
  .predictive-toolbar { align-items: stretch; flex-direction: column; }
  .predictive-toolbar select { width: 100%; }
  .predictive-card summary { grid-template-columns: 105px minmax(0, 1fr) 24px; gap: 0.65rem; }
  .predictive-score { display: none; }
  .predictive-detail { grid-template-columns: 1fr; }
  .predictive-detail-block { min-height: auto; }
  .predictive-cohorts { grid-template-columns: 1fr; }
  .technical-status { align-items: flex-start; flex-direction: column; }
  .bottom-radar-status { align-items: flex-start; flex-direction: column; }
  .bottom-radar-status small { margin-left: 0; }
  .bottom-rotation-grid,
  .bottom-radar-toolbar { grid-template-columns: 1fr; }
  .bottom-radar-card summary { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .bottom-stage { grid-column: 2; }
  .bottom-radar-detail { grid-template-columns: 1fr; }
  .bottom-radar-detail > div { min-height: auto; }
  .technical-status small { margin-left: 0; }
  .technical-toolbar { grid-template-columns: 1fr; }
  .technical-card summary { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .technical-class { grid-column: 2; }
  .technical-facts { grid-template-columns: 1fr; }
  .technical-facts > div { min-height: auto; }
  .technical-canvas { height: 220px; }
}
