:root {
  color-scheme: dark;
  --bg: #071121;
  --bg-deep: #040b16;
  --panel: rgba(10, 20, 38, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(107, 143, 201, 0.18);
  --divider: rgba(255, 255, 255, 0.08);
  --text: #f4f8ff;
  --muted: #90a0bc;
  --accent: #18d2ff;
  --accent-soft: rgba(24, 210, 255, 0.14);
  --accent-strong: #40dbff;
  --up: #ff7262;
  --flat: #ffc857;
  --down: #5d8dff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
}

html {
  /* 모바일 글자 자동 확대가 켜지면 공개 화면 전체가 110%처럼 넓어 보일 수 있다. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 17px;
  background:
    radial-gradient(circle at top center, rgba(24, 210, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #0a1427 0%, var(--bg-deep) 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
}

button,
input,
table {
  font: inherit;
}

a {
  color: inherit;
}

.pattern-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}

.pattern-app {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}

.pattern-public-page {
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.is-pattern-public .pattern-shell,
body.is-pattern-public .pattern-app {
  max-width: 1440px;
}

body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .pattern-shell,
body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .pattern-app {
  max-width: 1700px;
}

.desktop-market-aside {
  display: none;
}

.desktop-market-card {
  border: 1px solid rgba(95, 137, 206, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.92), rgba(8, 16, 30, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.desktop-market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.03);
}

.desktop-market-card-header strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.desktop-market-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.desktop-market-card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.desktop-market-link {
  color: var(--accent);
  font-size: 0.94rem;
  text-decoration: none;
}

.desktop-market-link:hover {
  text-decoration: underline;
}

.desktop-market-frame {
  display: block;
  width: 100%;
  min-height: 780px;
  height: calc(100vh - 118px);
  border: 0;
  background: #fff;
}

.desktop-market-card-body {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 360px;
  padding: 20px 18px 22px;
  background:
    radial-gradient(circle at top right, rgba(24, 210, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(7, 16, 31, 0.98), rgba(5, 12, 24, 0.98));
}

.desktop-market-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 87, 0.24);
  background: rgba(255, 200, 87, 0.1);
  color: #ffe69c;
  font-size: 0.76rem;
  font-weight: 800;
}

.desktop-market-body-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.desktop-market-note {
  margin: 0;
  color: #c7d5eb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.desktop-market-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 210, 255, 0.2), rgba(24, 210, 255, 0.08));
  border: 1px solid rgba(24, 210, 255, 0.24);
  color: #eef8ff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.desktop-market-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(24, 210, 255, 0.26), rgba(24, 210, 255, 0.12));
  border-color: rgba(92, 225, 255, 0.34);
}

.hero {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(96, 139, 209, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(24, 210, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(11, 23, 43, 0.94), rgba(8, 16, 31, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.28;
}

.hero-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.market-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.market-line span {
  padding: 6px 10px;
  border: 1px solid rgba(98, 132, 188, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.market-code {
  color: var(--accent);
  font-weight: 700;
}

.market-accent {
  color: var(--accent-strong);
}

.hero-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px 0 0;
}

.hero-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(97, 136, 200, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.hero-admin-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 172, 235, 0.3);
  transform: translateY(-1px);
}

.button-link {
  font: inherit;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  padding: 18px 28px 0;
}

.hero--reviewer-hub .hero-copy {
  max-width: none;
  width: 100%;
}

.hero--reviewer-hub .hero-side {
  display: none;
}

.hero--reviewer-hub .desktop-lead-grid {
  display: none;
}

.hero-copy {
  max-width: 660px;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero-title-accent {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(24, 210, 255, 0.26);
}

.hero-quote {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(64, 219, 255, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #d5dded;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-quote-public {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--flat);
  font-size: 1.04rem;
  line-height: 1.55;
  white-space: normal;
  overflow: hidden;
  text-overflow: initial;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-value-label {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.admin-page .hero-quote {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.hero-price-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.hero-price-line strong {
  font-size: clamp(3rem, 2.35rem + 2.2vw, 4.9rem);
  line-height: 1;
  font-weight: 800;
}

.hero-probability-meta {
  margin: 10px 0 0;
  color: #c8d4e7;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  display: grid;
  gap: 4px;
}

.hero-probability-line {
  display: block;
}

.hero-probability-line--warning {
  color: #ffd36a;
  font-weight: 800;
}

.hero-probability-line--muted {
  color: var(--muted);
  font-weight: 700;
}

.hero-probability-line--score {
  padding: 8px 12px;
  border: 1px solid rgba(24, 210, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #f3fbff;
}

.hero-probability-line--judge-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-judge-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 136, 200, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6ff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-judge-summary-chip--lead {
  border-color: rgba(24, 210, 255, 0.34);
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.18), rgba(255, 255, 255, 0.06));
  color: #f4fdff;
}

.hero-judge-summary-chip--up {
  border-color: rgba(72, 199, 142, 0.3);
  background: rgba(72, 199, 142, 0.1);
}

.hero-judge-summary-chip--flat {
  border-color: rgba(255, 211, 106, 0.32);
  background: rgba(255, 211, 106, 0.12);
}

.hero-judge-summary-chip--down {
  border-color: rgba(255, 121, 121, 0.3);
  background: rgba(255, 121, 121, 0.11);
}

.hero-judge-summary-chip--hold,
.hero-judge-summary-chip--pending,
.hero-judge-summary-chip--no-signal {
  border-color: rgba(151, 165, 190, 0.28);
  background: rgba(151, 165, 190, 0.12);
}

.hero-probability-line--judge-summary.hero-probability-line--muted .hero-judge-summary-chip {
  border-color: rgba(151, 165, 190, 0.18);
  background: rgba(151, 165, 190, 0.08);
  color: var(--muted);
}

.hero-unit {
  margin-bottom: 7px;
  color: #dce6f6;
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-direction {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-direction-up {
  color: #ff8b7f;
}

.hero-direction-flat {
  color: #ffd36a;
}

.hero-direction-down {
  color: #7fa8ff;
}

.hero-direction-none {
  color: #dbe6f6;
}

.applied-date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-meta-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.hero-side {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

@media (min-width: 961px) {
  .hero-side {
    min-width: 260px;
  }
}

.hero-market-card {
  padding: 14px 14px 10px;
  border: 1px solid rgba(97, 136, 200, 0.22);
  border-radius: 20px;
  background: rgba(4, 15, 30, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-market-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-market-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-market-date {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-market-value {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-market-chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-side-meta {
  text-align: right;
  padding: 16px 18px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-side-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-side-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 1.72rem;
  font-weight: 800;
}

.hero-side-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px 28px;
}

.hero-cta,
.primary-button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #16c9ff, #00b7ff);
  color: #03111f;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 183, 255, 0.22);
}

.hero-cta {
  flex: 1;
  padding: 16px 18px;
  font-size: 1rem;
}

.hero-refresh {
  min-width: 116px;
  padding: 15px 18px;
  border: 1px solid rgba(103, 147, 210, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
  cursor: pointer;
  font-size: 0.98rem;
}

.hero-action-status {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-action-status:empty {
  display: none;
}

/* CTA는 위, 확률/유사흐름은 같은 행, 합의엔진은 그 아래에 쌓는다. */
.desktop-lead-actions {
  padding: 0 28px;
}

.desktop-lead-actions--status-only {
  padding-top: 0;
}

.desktop-lead-actions--status-only .hero-action-status {
  margin-top: 6px;
  margin-bottom: 18px;
}

.hero--reviewer-hub .hero-action-status {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(24, 210, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 210, 255, 0.08);
  color: #eaf8ff;
  font-size: 0.98rem;
  font-weight: 800;
}

.desktop-lead-actions .hero-actions {
  padding: 0;
}

.desktop-lead-actions .hero-action-status {
  margin: 10px 0 0;
  padding: 0;
}

/* 카드 수는 viewport가 아니라 실제 컨테이너 폭으로 정해 디스플레이/zoom 차이에도 균형을 유지한다. */
.desktop-lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 0 18px 22px;
}

.desktop-lead-grid > * {
  min-width: 0;
  min-inline-size: 0;
}

.probability-card--lead {
  grid-column: 1 / -1;
}

.desktop-lead-chart {
  display: block;
  min-width: 0;
  padding: 0;
}

.probability-card--lead,
.similar-intraday-card,
.model-day-forecast-card {
  margin: 0;
  height: 100%;
}

.probability-card--lead,
.similar-intraday-card,
.model-day-forecast-card {
  display: flex;
  flex-direction: column;
}

.similar-intraday-card .card-header,
.model-day-forecast-card .card-header {
  margin-bottom: 6px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.similar-intraday-card .card-header > div,
.model-day-forecast-card .card-header > div {
  flex: 1 1 220px;
  min-width: 0;
}

.similar-intraday-card .card-header .badge,
.model-day-forecast-card .card-header .badge {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

.desktop-lead-grid .card-header h2 {
  font-size: clamp(1.42rem, 1.18rem + 0.6vw, 1.72rem);
  line-height: 1.16;
  text-wrap: balance;
}

.desktop-lead-grid .badge {
  padding: 6px 12px;
  font-size: clamp(0.92rem, 0.84rem + 0.18vw, 1.02rem);
}

.similar-intraday-empty,
.model-day-forecast-empty {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.similar-intraday-chart,
.model-day-forecast-chart {
  width: 100%;
  height: auto;
  display: block;
  flex: 1 1 auto;
  min-height: 188px;
}

.similar-intraday-legend,
.model-day-forecast-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 1.06rem;
  color: var(--muted);
}

.similar-intraday-legend-item,
.model-day-forecast-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  word-break: keep-all;
}

.similar-intraday-legend-swatch,
.model-day-forecast-legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.model-day-forecast-legend-meta {
  color: #91a4c8;
  white-space: nowrap;
  word-break: keep-all;
}

.model-day-forecast-legend-swatch.is-actual {
  width: 18px;
  height: 0;
  border-top: 3px dashed rgba(196, 241, 255, 0.55);
  background: transparent;
}

.model-day-forecast-legend-swatch.is-forecast {
  background: #7af7c7;
}

.model-consensus-card {
  position: relative;
  margin: 0 28px 28px;
  border-color: rgba(24, 210, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(24, 210, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(12, 24, 45, 0.96), rgba(7, 15, 28, 0.98));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.model-consensus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(24, 210, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  opacity: 0.8;
}

.model-consensus-card > * {
  position: relative;
  z-index: 1;
}

.model-consensus-header {
  margin-bottom: 14px;
}

.model-consensus-kicker {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.model-consensus-hero {
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(24, 210, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(24, 210, 255, 0.14), rgba(24, 210, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.model-consensus-hero.is-ready {
  border-color: rgba(24, 210, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(24, 210, 255, 0.08);
}

.model-consensus-hero.is-consensus-up {
  border-color: rgba(79, 224, 141, 0.34);
  background:
    linear-gradient(180deg, rgba(79, 224, 141, 0.18), rgba(79, 224, 141, 0.05)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(79, 224, 141, 0.1);
}

.model-consensus-hero.is-consensus-down {
  border-color: rgba(255, 122, 122, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 122, 122, 0.16), rgba(255, 122, 122, 0.05)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.1);
}

.model-consensus-hero.is-consensus-flat {
  border-color: rgba(255, 200, 87, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.16), rgba(255, 200, 87, 0.05)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 87, 0.08);
}

.model-consensus-hero.is-none {
  border-color: rgba(255, 200, 87, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.12), rgba(255, 200, 87, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.model-consensus-hero.is-pending {
  border-color: rgba(144, 160, 188, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.model-consensus-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.model-consensus-eyebrow:empty {
  display: none;
}

.model-consensus-headline {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.model-consensus-summary-text {
  margin: 10px 0 0;
  color: #eef5ff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.model-consensus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.model-consensus-meta:empty {
  display: none;
}

.model-consensus-actions {
  margin-top: 14px;
}

.model-consensus-follow-button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(24, 210, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #eef8ff;
  font-weight: 800;
}

.model-consensus-follow-button.is-active {
  border-color: rgba(24, 210, 255, 0.28);
  background: rgba(24, 210, 255, 0.14);
  color: var(--accent-strong);
}

.model-consensus-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6f6;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.model-consensus-mobile-details {
  border: 1px solid rgba(95, 137, 206, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.model-consensus-mobile-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.model-consensus-mobile-summary::-webkit-details-marker {
  display: none;
}

.model-consensus-mobile-summary::after {
  content: "열기";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.model-consensus-mobile-details[open] .model-consensus-mobile-summary::after {
  content: "닫기";
}

.model-consensus-mobile-summary-label {
  color: #eef5ff;
  font-size: 0.98rem;
  font-weight: 800;
}

.model-consensus-mobile-summary-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.model-consensus-mobile-details[open] .model-consensus-mobile-summary {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.model-consensus-mobile-panel {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.model-consensus-row {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(95, 137, 206, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.model-consensus-row.is-lead {
  border-color: rgba(24, 210, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(24, 210, 255, 0.12), rgba(24, 210, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(24, 210, 255, 0.08);
}

.model-consensus-row.is-agree {
  border-color: rgba(24, 210, 255, 0.18);
}

.model-consensus-row.is-consensus-up {
  border-color: rgba(79, 224, 141, 0.32);
  background:
    linear-gradient(180deg, rgba(79, 224, 141, 0.14), rgba(79, 224, 141, 0.05)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(79, 224, 141, 0.08);
}

.model-consensus-row.is-consensus-down {
  border-color: rgba(255, 122, 122, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 122, 122, 0.12), rgba(255, 122, 122, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.08);
}

.model-consensus-row.is-consensus-flat {
  border-color: rgba(255, 200, 87, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.12), rgba(255, 200, 87, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 87, 0.06);
}

.model-consensus-row.is-current {
  transform: translateY(-1px);
}

.model-consensus-row.is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.model-consensus-row.is-pending {
  opacity: 0.92;
}

.model-consensus-row.is-error {
  border-color: rgba(255, 114, 98, 0.24);
}

.model-consensus-row.is-delayed {
  border-color: rgba(255, 200, 87, 0.22);
  background: rgba(255, 200, 87, 0.06);
}

.model-consensus-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.model-consensus-row-top-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.model-consensus-row-top strong {
  font-size: 1rem;
  font-weight: 800;
}

.model-consensus-row-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.model-consensus-row.is-lead .model-consensus-row-text {
  color: #f3fbff;
}

.model-consensus-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.model-room-day-score {
  margin: 10px 0 0;
}

.model-room-link-inline {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.model-room-link-inline:hover {
  text-decoration: underline;
}

.model-room-secondary {
  margin: 10px 0 0;
  color: #d7e3f5;
  font-size: 0.92rem;
  line-height: 1.55;
}

.model-room-actions {
  margin-top: 14px;
}

.model-room-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(24, 210, 255, 0.22);
  border-radius: 12px;
  background: rgba(24, 210, 255, 0.1);
  color: #eef8ff;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.model-room-link:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 210, 255, 0.34);
  background: rgba(24, 210, 255, 0.16);
}

@media (min-width: 900px) {
  .model-consensus-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

}

.page-footer-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 4px 0;
}

.page-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(97, 136, 200, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.page-admin-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 172, 235, 0.3);
  transform: translateY(-1px);
}

.reviewer-room-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 28px 28px;
}

.reviewer-room-summary-card {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(95, 137, 206, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.reviewer-room-summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.reviewer-room-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.28rem, 1.08rem + 0.5vw, 1.82rem);
  font-weight: 900;
  line-height: 1.2;
}

.reviewer-room-summary-meta {
  margin: 8px 0 0;
  color: #d2ddf0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.reviewer-room-timeline-card,
.reviewer-room-logic-card,
.reviewer-room-chat-card {
  grid-column: span 12;
}

.reviewer-room-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(95, 137, 206, 0.16);
  border-radius: 18px;
}

.reviewer-room-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

.reviewer-room-table th,
.reviewer-room-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.reviewer-room-table th {
  color: #e8f3ff;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.reviewer-room-table td {
  color: #d6e1f3;
  font-size: 0.93rem;
  line-height: 1.55;
}

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

.reviewer-room-logic-summary {
  display: grid;
  gap: 10px;
}

.reviewer-room-logic-summary p {
  margin: 0;
  color: #e7f0ff;
  line-height: 1.6;
}

.reviewer-room-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.reviewer-room-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.reviewer-room-quick-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(24, 210, 255, 0.16);
  border-radius: 999px;
  background: rgba(24, 210, 255, 0.08);
  color: #ebf7ff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.reviewer-room-chat-messages {
  min-height: 300px;
  max-height: 520px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 4px 2px 0;
}

.reviewer-room-chat-bubble {
  padding: 16px 18px;
  border: 1px solid rgba(95, 137, 206, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.reviewer-room-chat-bubble.is-user {
  background: rgba(24, 210, 255, 0.1);
  border-color: rgba(24, 210, 255, 0.18);
}

.reviewer-room-chat-bubble.is-error {
  border-color: rgba(255, 114, 98, 0.22);
  background: rgba(255, 114, 98, 0.08);
}

.reviewer-room-chat-role {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 900;
}

.reviewer-room-chat-text {
  margin: 0;
  color: #eef6ff;
  line-height: 1.7;
  white-space: pre-wrap;
}

.reviewer-room-chat-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reviewer-room-chat-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(95, 137, 206, 0.2);
  border-radius: 18px;
  background: rgba(7, 14, 28, 0.9);
  color: #eef5ff;
}

.reviewer-room-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reviewer-room-chat-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.reviewer-room-chat-submit {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1100px) {
  .reviewer-room-timeline-card {
    grid-column: span 7;
  }

  .reviewer-room-logic-card {
    grid-column: span 5;
  }
}

@media (max-width: 720px) {
  .reviewer-room-summary-grid {
    padding: 0 18px 22px;
  }

  .reviewer-room-chat-actions {
    align-items: stretch;
  }

  .reviewer-room-chat-submit {
    width: 100%;
  }
}

body.is-pattern-reviewers .pattern-shell,
body.is-pattern-reviewers .pattern-app {
  max-width: 1480px;
}

.reviewer-board-page {
  display: grid;
  gap: 18px;
}

.reviewer-board-hero {
  margin-bottom: 0;
}

.reviewer-board-hero-top {
  align-items: flex-start;
}

.reviewer-board-copy {
  max-width: 820px;
}

.reviewer-board-hero-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.reviewer-board-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 28px 28px;
}

.reviewer-board-main {
  display: grid;
  gap: 18px;
}

.reviewer-board-section {
  grid-column: span 12;
}

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

.reviewer-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.reviewer-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reviewer-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reviewer-card-code {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.reviewer-card-title {
  margin: 0;
  font-size: 1.38rem;
}

.reviewer-card-score {
  display: grid;
  gap: 4px;
  justify-items: flex-end;
  text-align: right;
}

.reviewer-card-score strong {
  font-size: 2rem;
  line-height: 1;
}

.reviewer-card-score span {
  color: var(--muted);
  font-size: 0.92rem;
}

.reviewer-record-line {
  margin: 0;
  color: #eef6ff;
  font-size: 1.02rem;
  font-weight: 700;
}

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

.reviewer-metric-box {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.reviewer-metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reviewer-metric-box strong {
  font-size: 1.02rem;
}

.reviewer-metric-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.reviewer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reviewer-card-empty {
  grid-column: 1 / -1;
}

.reviewer-detail-panel {
  border-top: 1px solid var(--divider);
  padding-top: 14px;
}

.reviewer-detail-panel summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
  list-style: none;
}

.reviewer-detail-panel summary::-webkit-details-marker {
  display: none;
}

.reviewer-detail-panel[open] summary {
  margin-bottom: 14px;
}

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

.reviewer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.reviewer-table th,
.reviewer-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  font-size: 0.93rem;
}

.reviewer-table th {
  color: var(--muted);
  font-weight: 700;
}

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

.reviewer-day-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(97, 136, 200, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.reviewer-day-item strong {
  font-size: 0.95rem;
}

.reviewer-day-item span {
  color: #dbe6f6;
  font-size: 0.92rem;
  text-align: right;
}

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

.card {
  grid-column: span 12;
  border: 1px solid rgba(95, 137, 206, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.92), rgba(8, 16, 30, 0.96));
  box-shadow: var(--shadow);
  padding: 22px;
}

.probability-card {
  grid-column: span 12;
}

.similar-card {
  grid-column: span 12;
}

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

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

.engine-toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(103, 147, 210, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.engine-mode-button {
  min-width: 50px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.engine-mode-button:hover {
  color: #e8f3ff;
}

.engine-mode-button.is-top-record {
  color: #f1fbff;
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.12), rgba(255, 200, 87, 0.08));
  box-shadow: inset 0 0 0 1px rgba(24, 210, 255, 0.12);
}

.engine-mode-button.is-active {
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.2), rgba(64, 219, 255, 0.16));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(64, 219, 255, 0.16);
}

.engine-mode-button.is-active.is-top-record {
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.24), rgba(255, 200, 87, 0.18));
  color: #f8fdff;
  box-shadow:
    inset 0 0 0 1px rgba(64, 219, 255, 0.2),
    0 0 0 1px rgba(255, 200, 87, 0.08);
}

.card-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.36rem;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.stat {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(97, 136, 200, 0.18);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.stat strong {
  font-size: 1.42rem;
  font-weight: 800;
}

.stat-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.probability-block {
  display: grid;
  gap: 16px;
}

.probability-context {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  display: grid;
  gap: 8px;
}

.probability-context-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.probability-context-line--risk .timeline-chip {
  border-color: rgba(97, 136, 200, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.probability-evidence {
  border: 1px solid rgba(97, 136, 200, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px 12px;
}

.probability-evidence summary {
  cursor: pointer;
  color: #dbe6f6;
  font-size: 0.96rem;
  font-weight: 700;
  list-style: none;
}

.probability-evidence summary::-webkit-details-marker {
  display: none;
}

.probability-evidence[open] summary {
  margin-bottom: 10px;
}

.probability-evidence-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.probability-evidence-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.probability-evidence-item {
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}

.probability-evidence-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.probability-evidence-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.probability-evidence-item-top strong {
  color: var(--text);
  font-size: 0.95rem;
}

.probability-evidence-item-top span {
  color: var(--muted);
  text-align: right;
}

.probability-evidence-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.probability-evidence-item-text {
  margin: 8px 0 0;
  color: #d5dded;
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.reviewer-probability-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.reviewer-probability-chip strong {
  color: #eef6ff;
  font-size: 0.8rem;
}

.reviewer-probability-chip--up {
  border-color: rgba(79, 224, 141, 0.24);
  background: rgba(79, 224, 141, 0.1);
}

.reviewer-probability-chip--flat {
  border-color: rgba(255, 200, 87, 0.24);
  background: rgba(255, 200, 87, 0.1);
}

.reviewer-probability-chip--down {
  border-color: rgba(255, 122, 122, 0.24);
  background: rgba(255, 122, 122, 0.1);
}

.probability-evidence-empty,
.probability-evidence-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.probability-evidence-caption {
  margin-top: 10px;
}

.probability-row {
  display: grid;
  gap: 8px;
}

body[data-engine-mode="v4"] .probability-row.flat,
body[data-engine-mode="v5"] .probability-row.flat {
  display: none;
}

.probability-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
}

.probability-meta strong {
  font-size: 1.16rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.bar {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.fill {
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.probability-card.is-low-confidence .fill {
  opacity: 0.46;
  filter: saturate(0.7);
}

.up .fill {
  background: linear-gradient(90deg, #4fe08d, var(--up));
}

.flat .fill {
  background: linear-gradient(90deg, #ffd36a, var(--flat));
}

.down .fill {
  background: linear-gradient(90deg, #ff9e9e, var(--down));
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(64, 219, 255, 0.16);
}

.badge.muted {
  background: rgba(255, 255, 255, 0.06);
  color: #c5d0e3;
  border-color: rgba(255, 255, 255, 0.1);
}

.badge.success {
  background: rgba(66, 196, 137, 0.16);
  color: #8ff0c2;
  border-color: rgba(66, 196, 137, 0.26);
}

.badge.error {
  background: rgba(255, 107, 107, 0.16);
  color: #ffb4b4;
  border-color: rgba(255, 107, 107, 0.26);
}

.timeline-list,
.history-accordion {
  display: grid;
  gap: 14px;
}

.timeline-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-row > * {
  min-width: 0;
}

.timeline-time strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
}

.timeline-flow strong,
.timeline-predict strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.timeline-flow strong {
  color: #dbe6f6;
  line-height: 1.5;
}

.timeline-predict strong {
  line-height: 1.45;
}

.timeline-predict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.timeline-average-details {
  width: 100%;
  margin-top: 4px;
  border-top: 1px solid rgba(97, 136, 200, 0.16);
  padding-top: 10px;
}

.timeline-average-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.timeline-average-details summary::-webkit-details-marker {
  display: none;
}

.timeline-average-details[open] summary {
  margin-bottom: 12px;
}

.timeline-average-details-panel {
  display: grid;
  gap: 10px;
}

.timeline-average-opinion-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(97, 136, 200, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-average-opinion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-average-opinion-top strong {
  color: #eef6ff;
  font-size: 0.94rem;
}

.timeline-average-opinion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.timeline-success-rate {
  display: block;
  color: #c8d4e7;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.verdict-badge.verdict-success {
  background: rgba(255, 211, 106, 0.12);
  border-color: rgba(255, 211, 106, 0.28);
  color: #ffd36a;
}

.verdict-badge.verdict-fail {
  background: rgba(255, 127, 115, 0.14);
  border-color: rgba(255, 127, 115, 0.28);
  color: #ffb0a6;
}

.verdict-badge.verdict-muted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d7e1f0;
}

.verdict-badge:focus-visible {
  outline: 2px solid rgba(111, 226, 255, 0.72);
  outline-offset: 2px;
}

.timeline-row.pred-highlight .timeline-predict strong {
  color: #ffd36a;
}

.timeline-row.pred-fail .timeline-predict strong {
  color: #ff8b7f;
}

.timeline-row.pred-none .timeline-predict strong {
  color: var(--muted);
}

.timeline-row.pred-low .timeline-predict strong {
  color: #dbe6f6;
}

.timeline-row.compact .timeline-time strong {
  font-size: 1.18rem;
}

.timeline-row.compact .timeline-flow strong,
.timeline-row.compact .timeline-predict strong {
  font-size: 1.08rem;
  line-height: 1.45;
}

.timeline-row.compact .verdict-badge {
  padding: 6px 10px;
  font-size: 0.84rem;
}

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

.timeline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.timeline-chip.accent {
  border-color: rgba(24, 210, 255, 0.26);
  background: rgba(24, 210, 255, 0.12);
  color: var(--accent-strong);
}

.timeline-chip.warning {
  border-color: rgba(255, 200, 87, 0.2);
  background: rgba(255, 200, 87, 0.12);
  color: #ffd36a;
}

.timeline-chip.consensus-up {
  border-color: rgba(79, 224, 141, 0.24);
  background: rgba(79, 224, 141, 0.14);
  color: #a3ffd0;
}

.timeline-chip.consensus-down {
  border-color: rgba(255, 122, 122, 0.24);
  background: rgba(255, 122, 122, 0.14);
  color: #ffc0c0;
}

.timeline-chip.consensus-flat {
  border-color: rgba(255, 200, 87, 0.22);
  background: rgba(255, 200, 87, 0.12);
  color: #ffe08a;
}

.timeline-chip.score-top {
  border-color: rgba(24, 210, 255, 0.28);
  background: linear-gradient(90deg, rgba(24, 210, 255, 0.16), rgba(64, 219, 255, 0.08));
  color: #effcff;
}

.timeline-chip.score-record {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f9ff;
  font-weight: 800;
}

.timeline-chip.score-day-record {
  border-color: rgba(24, 210, 255, 0.28);
  background: rgba(24, 210, 255, 0.14);
  color: #eafcff;
  font-weight: 800;
}

.timeline-chip.score-day-hold {
  border-color: rgba(151, 165, 190, 0.24);
  background: rgba(151, 165, 190, 0.12);
  color: #eef3fb;
  font-weight: 800;
}

.timeline-chip.score-day-pending {
  border-color: rgba(151, 165, 190, 0.18);
  background: rgba(151, 165, 190, 0.08);
  color: var(--muted);
}

.timeline-chip.score-winrate {
  border-color: rgba(79, 224, 141, 0.26);
  background: rgba(79, 224, 141, 0.14);
  color: #b9ffd8;
  font-weight: 800;
}

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

.similar-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-left: 3px solid rgba(0, 0, 0, 0.88);
  background: rgba(255, 255, 255, 0.03);
}

.similar-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.similar-item header strong {
  font-size: 1.06rem;
  font-weight: 800;
}

.similar-pattern {
  margin: 0 0 14px;
  color: #ffd36a;
  font-size: 1rem;
  font-weight: 700;
}

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

.similar-stat {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(97, 136, 200, 0.14);
}

.similar-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.similar-stat strong {
  color: #eef4ff;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.similar-stat.similar-stat-open strong,
.similar-stat.similar-stat-close strong {
  color: #ffd36a;
}

.similar-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.similar-item p.similar-pattern {
  margin: 0 0 14px;
  color: #ffd36a;
  font-size: 1rem;
  font-weight: 700;
}

.chart-shell {
  display: grid;
  gap: 16px;
}

.chart {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  background: rgba(4, 15, 30, 0.72);
  border: 1px solid rgba(97, 136, 200, 0.18);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e1f0;
  font-size: 0.96rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.history-card {
  padding: 0;
}

.history-panel {
  display: block;
}

.history-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-panel summary::after {
  content: "열기";
  color: var(--muted);
  font-size: 0.96rem;
}

.history-panel[open] summary::after {
  content: "닫기";
}

.history-panel summary::-webkit-details-marker {
  display: none;
}

.history-panel-body {
  padding: 0 22px 22px;
}

.reserve-room-entry-card {
  display: grid;
  gap: 16px;
}

.reserve-room-entry-copy {
  margin: 0;
  color: #dbe6f6;
  line-height: 1.7;
}

.reserve-room-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-entry {
  border: 1px solid rgba(97, 136, 200, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.history-entry summary {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  list-style: none;
}

.history-entry summary::-webkit-details-marker {
  display: none;
}

.history-entry-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.history-entry-body {
  padding: 16px 18px 18px;
}

.admin-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.admin-tools {
  display: grid;
  gap: 12px;
}

.upload-form,
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="password"],
input[type="text"],
input[type="file"],
.modal-textarea,
.status-select {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(97, 136, 200, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.modal-textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}

.status-select {
  cursor: pointer;
}

.primary-button,
.ghost-button,
.download-link {
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  font-size: 0.98rem;
}

.primary-button:hover,
.ghost-button:hover,
.download-link:hover,
.hero-cta:hover,
.hero-refresh:hover {
  transform: translateY(-1px);
}

.hero-cta:hover,
.primary-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 28px rgba(0, 183, 255, 0.26);
}

.ghost-button:hover,
.download-link:hover,
.hero-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 172, 235, 0.3);
}

.primary-button:disabled,
.ghost-button:disabled,
.page-admin-link:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost-button,
.download-link {
  border: 1px solid rgba(97, 136, 200, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6f6;
}

.status-text {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.96rem;
  white-space: pre-line;
  line-height: 1.55;
}

.status-text.success {
  color: #8ff0c2;
}

.status-text.error {
  color: #ffb4b4;
}

.strong-note {
  color: #dbe6f6;
}

.admin-login-card,
.admin-panel {
  grid-column: span 12;
}

.admin-create-form {
  display: grid;
  gap: 12px;
}

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

.admin-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

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

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

.admin-item-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-item-text {
  min-height: 110px;
}

.admin-request-content {
  margin: 0 0 14px;
  color: #dbe6f6;
  line-height: 1.6;
  white-space: pre-wrap;
}

.main-reviewer-selection-card {
  display: grid;
  gap: 12px;
}

.main-reviewer-selection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.main-reviewer-picker {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.main-reviewer-picker input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-strong);
}

.main-reviewer-picker-body {
  display: grid;
  gap: 6px;
}

.main-reviewer-picker-title {
  font-size: 1rem;
  font-weight: 700;
}

.main-reviewer-picker-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(97, 136, 200, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.96), rgba(8, 16, 31, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.modal-panel-wide {
  width: min(1200px, 100%);
}

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

.modal-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.modal-error {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--down);
  font-size: 0.98rem;
}

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

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

.table-scroll {
  max-height: min(70vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(97, 136, 200, 0.18);
  background: rgba(4, 15, 30, 0.72);
}

.admin-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
  text-align: right;
  font-size: 0.94rem;
}

.admin-table th:first-child,
.admin-table td:first-child,
.admin-table th:nth-child(11),
.admin-table td:nth-child(11),
.admin-table th:nth-child(12),
.admin-table td:nth-child(12),
.admin-table th:nth-child(13),
.admin-table td:nth-child(13) {
  text-align: left;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: rgba(11, 22, 42, 0.96);
  color: #c9d5e8;
  z-index: 1;
}

.table-empty {
  text-align: center !important;
  color: var(--muted);
}

@media (max-width: 960px) {
  .probability-card,
  .similar-card,
  .graph-card {
    grid-column: span 12;
  }

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

  /* ~960px 미만: 히어로 가로 2열 + 고정 min-width 조합으로 가로 넘침 나기 쉬워 세로 스택 유지 */
  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-copy {
    max-width: none;
    min-width: 0;
  }

  .hero-side {
    min-width: 0;
    width: 100%;
  }

  .timeline-row,
  .history-entry-body .timeline-row {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 1600px) {
  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .pattern-shell {
    max-width: 1980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
  }

  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .pattern-app {
    max-width: none;
    width: 100%;
  }

  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .desktop-market-aside {
    display: block;
    position: sticky;
    top: 20px;
  }

  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .desktop-market-card {
    min-height: calc(100vh - 40px);
  }
}

@media (max-width: 1599px) {
  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .pattern-shell {
    display: block;
    max-width: 1700px;
  }

  body.is-pattern-public:not(.is-pattern-reviewers):not(.is-pattern-reviewer-room) .desktop-market-aside {
    display: none !important;
  }
}

@media (max-width: 720px) {
  /* 기본은 가로 스크롤 허용(관리자 등). 공개 단타확률만 clip으로 좌우 패닝 완화 */
  html {
    overflow-x: auto;
    touch-action: auto;
  }

  html:has(body.is-pattern-public) {
    overflow-x: clip;
  }

  body {
    font-size: 16px;
    overflow-x: auto;
    touch-action: auto;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  body.is-pattern-public {
    overflow-x: clip;
    font-size: 15px;
  }

  .pattern-shell {
    padding: 0 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.is-pattern-public .pattern-shell {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .pattern-app {
    padding: 0;
  }

  body.is-pattern-public .probability-card--lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero,
  .card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .market-line,
  .hero-top,
  .hero-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.is-pattern-public .desktop-lead-actions {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0;
  }

  body.is-pattern-public .desktop-lead-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 22px;
  }

  body.is-pattern-public .desktop-lead-chart {
    display: none;
  }

  body.is-pattern-public .desktop-lead-chart--model-day {
    display: block;
  }

  .hero-topbar {
    padding: 18px 18px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .market-line {
    padding: 0;
  }

  .hero-topbar-actions {
    padding: 0;
    justify-content: flex-start;
  }

  .hero-top {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 1.6rem + 4vw, 2.8rem);
  }

  .hero-price-line strong {
    font-size: clamp(2.6rem, 2rem + 4vw, 3.6rem);
  }

  .hero-direction {
    font-size: 1.04rem;
  }

  .hero-side {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .hero-market-card {
    width: 100%;
  }

  .hero-side-meta {
    text-align: left;
  }

  .stats,
  .similar-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .upload-form,
  .admin-actions {
    flex-direction: column;
  }

  body.is-pattern-public .probability-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  body.is-pattern-public .engine-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  body.is-pattern-public .engine-mode-button {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
  }

  body.is-pattern-public #nextCheckpoint {
    align-self: flex-start;
  }

  .hero-action-status {
    font-size: 0.92rem;
  }

  body.is-pattern-public .model-day-forecast-card .card-header {
    margin-bottom: 2px;
  }

  body.is-pattern-public .model-day-forecast-card .card-header h2 {
    font-size: 1.16rem;
  }

  body.is-pattern-public #modelDayForecastBadge,
  body.is-pattern-public .model-day-forecast-legend,
  body.is-pattern-public .similar-intraday-legend {
    display: none;
  }

  body.is-pattern-public .model-day-forecast-chart {
    min-height: 320px;
  }

  body.is-pattern-public .model-day-forecast-empty {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  body.is-pattern-public .model-consensus-header .badge {
    display: none;
  }

  .page-footer-actions {
    justify-content: center;
    padding: 18px 18px 26px;
  }

  .page-admin-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .hero-refresh,
  .hero-cta,
  .primary-button,
  .ghost-button,
  .hero-admin-link,
  input[type="text"],
  .status-select {
    width: 100%;
  }
}

@media (max-width: 430px) {
  body.is-pattern-public {
    font-size: 14px;
  }

  body.is-pattern-public .pattern-shell {
    max-width: 396px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  body.is-pattern-public .hero-topbar {
    padding: 14px 14px 0;
  }

  body.is-pattern-public .market-line,
  body.is-pattern-public .hero-top,
  body.is-pattern-public .hero-actions {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.is-pattern-public .desktop-lead-actions {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0;
  }

  body.is-pattern-public .desktop-lead-grid {
    gap: 14px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 18px;
  }

  body.is-pattern-public .grid {
    gap: 14px;
  }

  body.is-pattern-public .card {
    padding: 18px;
  }

  body.is-pattern-public .card-header {
    margin-bottom: 14px;
  }

  body.is-pattern-public .card-header h2 {
    font-size: 1.22rem;
  }

  body.is-pattern-public .probability-header-actions {
    width: 100%;
    gap: 10px;
  }

  body.is-pattern-public .engine-toggle {
    gap: 4px;
    padding: 4px;
  }

  body.is-pattern-public .engine-mode-button {
    min-width: 0;
    padding: 8px 0;
    font-size: 0.84rem;
  }

  body.is-pattern-public .section-note {
    font-size: 0.9rem;
  }

  body.is-pattern-public .hero-copy h1 {
    font-size: clamp(1.84rem, 1.5rem + 3.2vw, 2.45rem);
  }

  body.is-pattern-public .hero-quote-public {
    font-size: 0.96rem;
  }

  body.is-pattern-public .model-day-forecast-chart {
    min-height: 300px;
  }

  body.is-pattern-public .hero-price-line {
    margin-top: 10px;
  }

  body.is-pattern-public .hero-price-line strong {
    font-size: clamp(2.3rem, 1.9rem + 3.5vw, 3.05rem);
  }

  body.is-pattern-public .hero-direction {
    font-size: 0.98rem;
  }

  body.is-pattern-public .hero-market-label,
  body.is-pattern-public .hero-market-date {
    font-size: 0.82rem;
  }

  body.is-pattern-public .hero-market-value {
    font-size: 1.14rem;
  }

  body.is-pattern-public .probability-block {
    gap: 12px;
  }

  body.is-pattern-public .probability-meta {
    font-size: 0.98rem;
  }

  body.is-pattern-public .probability-meta strong {
    font-size: 1.06rem;
  }

  body.is-pattern-public .bar {
    height: 12px;
  }

  body.is-pattern-public .timeline-row {
    gap: 12px;
    padding: 16px 14px;
  }

  body.is-pattern-public .timeline-time strong {
    font-size: 1.14rem;
  }

  body.is-pattern-public .timeline-flow strong,
  body.is-pattern-public .timeline-predict strong {
    font-size: 1.02rem;
  }

  body.is-pattern-public .timeline-success-rate {
    font-size: 0.88rem;
  }

  body.is-pattern-public .similar-item {
    padding: 14px;
  }

  body.is-pattern-public .similar-pattern {
    font-size: 0.94rem;
  }

  body.is-pattern-public .similar-stat strong {
    font-size: 1.08rem;
  }

  body.is-pattern-public .model-consensus-eyebrow,
  body.is-pattern-public .model-consensus-meta,
  body.is-pattern-public .model-consensus-row-top-badges {
    display: none;
  }

  body.is-pattern-public .model-consensus-list {
    display: block;
  }
}

@media (max-width: 980px) {
  .reviewer-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reviewer-card-top {
    flex-direction: column;
  }

  .reviewer-card-score {
    justify-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .reviewer-board-chip-row {
    padding: 14px 18px 22px;
  }

  .reviewer-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reviewer-day-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviewer-day-item span {
    text-align: left;
  }
}

.hero--warroom {
  border-color: rgba(107, 143, 201, 0.18);
  background:
    radial-gradient(circle at top left, rgba(38, 208, 161, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(24, 210, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.98), rgba(7, 12, 20, 0.98));
}

.hero--warroom::before {
  opacity: 0.18;
  background-size: 108px 108px;
}

.hero--warroom .hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  padding: 28px 30px 30px;
}

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

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #c6d4ea;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-chip--admin {
  cursor: pointer;
  background: rgba(255, 200, 50, 0.12);
  border-color: rgba(255, 200, 50, 0.3);
  color: #ffd464;
}
.hero-chip--admin:hover {
  background: rgba(255, 200, 50, 0.22);
}

.hero--warroom .hero-copy {
  flex: 1 1 0;
  max-width: none;
}

.hero--warroom .hero-direction {
  margin: 0;
  color: #b9cae7;
  font-size: 1.08rem;
}

.hero-warroom-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.hero--warroom h1 {
  margin: 0;
  font-size: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-warroom-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(151, 165, 190, 0.22);
  background: rgba(151, 165, 190, 0.12);
  color: #eef5ff;
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-warroom-pill.is-up {
  border-color: rgba(79, 224, 141, 0.32);
  background: rgba(79, 224, 141, 0.12);
  color: #b9ffd8;
}

.hero-warroom-pill.is-down {
  border-color: rgba(255, 122, 122, 0.3);
  background: rgba(255, 122, 122, 0.12);
  color: #ffc4c4;
}

.hero-warroom-pill.is-flat {
  border-color: rgba(255, 200, 87, 0.3);
  background: rgba(255, 200, 87, 0.14);
  color: #ffe69c;
}

.hero-warroom-pill.is-muted {
  border-color: rgba(151, 165, 190, 0.2);
  background: rgba(151, 165, 190, 0.1);
  color: #e4edf9;
}

.hero--warroom .hero-quote-public {
  margin-top: 14px;
  color: #ffdb73;
  font-size: 1.02rem;
}

.hero-warroom-price-block {
  margin-top: 14px;
}

.hero--warroom .hero-price-line {
  margin-top: 8px;
}

.hero--warroom .hero-price-line strong {
  font-size: clamp(3rem, 2.4rem + 2.2vw, 4.9rem);
}

.hero--warroom .hero-probability-meta {
  margin-top: 16px;
}

.hero-nasdaq-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(107, 143, 201, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 22, 40, 0.88), rgba(8, 16, 29, 0.92));
}

.hero-nasdaq-card.is-up {
  border-color: rgba(79, 224, 141, 0.28);
  background: linear-gradient(180deg, rgba(12, 31, 28, 0.86), rgba(8, 22, 22, 0.92));
}

.hero-nasdaq-card.is-down {
  border-color: rgba(255, 114, 98, 0.26);
  background: linear-gradient(180deg, rgba(34, 18, 25, 0.88), rgba(23, 11, 19, 0.92));
}

.hero-nasdaq-card.is-flat,
.hero-nasdaq-card.is-muted {
  border-color: rgba(107, 143, 201, 0.18);
}

.hero-nasdaq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-nasdaq-label {
  color: #dbe8ff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-nasdaq-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-nasdaq-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-nasdaq-main strong {
  color: #f6fbff;
  font-size: clamp(1.32rem, 1.08rem + 0.9vw, 1.82rem);
  line-height: 1.1;
  font-weight: 900;
}

.hero-nasdaq-currency {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-nasdaq-change {
  font-size: 0.94rem;
  font-weight: 800;
}

.hero-nasdaq-change.is-up {
  color: #8ff0b5;
}

.hero-nasdaq-change.is-down {
  color: #ff9f97;
}

.hero-nasdaq-change.is-flat,
.hero-nasdaq-change.is-muted {
  color: #d8e4f7;
}

.hero-warroom-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
}

.hero-warroom-foot .applied-date {
  margin: 0;
}

.hero--warroom .hero-action-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(24, 210, 255, 0.22);
  border-radius: 999px;
  background: rgba(24, 210, 255, 0.08);
  color: #eef8ff;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-side--stats {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.hero-stat-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 138px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stat-box--green {
  border-color: rgba(79, 224, 141, 0.24);
  background:
    linear-gradient(180deg, rgba(79, 224, 141, 0.2), rgba(79, 224, 141, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.hero-stat-box--blue {
  border-color: rgba(24, 210, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 210, 255, 0.18), rgba(24, 210, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.hero-stat-box--violet {
  border-color: rgba(161, 122, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(161, 122, 255, 0.18), rgba(161, 122, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.hero-stat-box--amber {
  border-color: rgba(255, 200, 87, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 200, 87, 0.2), rgba(255, 200, 87, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.hero-stat-label {
  display: block;
  color: #d4deef;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stat-box strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.5rem, 1.18rem + 0.82vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-stat-meta {
  margin: 10px 0 0;
  color: #9fb1cf;
  font-size: 0.82rem;
  line-height: 1.5;
}

.war-room-grid {
  align-items: start;
  gap: 24px;
}

.war-room-column {
  grid-column: span 12;
  display: grid;
  gap: 20px;
  min-width: 0;
  align-content: start;
}

.war-history-card,
.war-room-grid > .similar-card {
  grid-column: 1 / -1;
}

.war-core-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.war-core-action-card,
.war-core-reason-card,
.war-alert-item,
.war-market-probability-card {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.war-core-kicker,
.war-core-reason-title {
  margin: 0;
  color: #c7d5eb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.war-core-action-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.war-core-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  border: 1px solid rgba(151, 165, 190, 0.2);
  background: rgba(151, 165, 190, 0.12);
}

.war-core-action-icon span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.war-core-action-icon.is-up {
  border-color: rgba(79, 224, 141, 0.32);
  background: rgba(79, 224, 141, 0.12);
  color: #b9ffd8;
}

.war-core-action-icon.is-down {
  border-color: rgba(255, 122, 122, 0.3);
  background: rgba(255, 122, 122, 0.12);
  color: #ffc4c4;
}

.war-core-action-icon.is-muted {
  border-color: rgba(151, 165, 190, 0.2);
  background: rgba(151, 165, 190, 0.1);
  color: #e8f0fc;
}

.war-core-action-direction {
  display: block;
  font-size: clamp(2rem, 1.64rem + 1vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.war-core-action-confidence {
  margin: 8px 0 0;
  color: #b8c8df;
  font-size: 0.95rem;
  line-height: 1.5;
}

.war-core-strength {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.war-core-strength-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d8e4f4;
  font-size: 0.95rem;
  font-weight: 700;
}

.war-core-strength-top strong {
  font-weight: 900;
}

.war-core-strength-bar {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.war-core-strength-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fe08d, #ff7262);
  transition: width 0.24s ease;
}

.war-core-strength-fill.is-down {
  background: linear-gradient(90deg, #ff9d9d, #5d8dff);
}

.war-core-strength-fill.is-muted {
  background: linear-gradient(90deg, #8ea4c7, #cbd7eb);
}

.war-core-decision-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.war-core-decision-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #eef4ff;
  font-size: 0.94rem;
  line-height: 1.6;
}

.war-core-decision-item::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(24, 210, 255, 0.6);
  box-shadow: 0 0 14px rgba(24, 210, 255, 0.24);
}

.war-core-reason-card {
  display: grid;
  gap: 14px;
}

.war-core-reason-block {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.war-core-reason-block.is-support {
  border-color: rgba(79, 224, 141, 0.22);
  background: rgba(79, 224, 141, 0.07);
}

.war-core-reason-block.is-warning {
  border-color: rgba(255, 122, 122, 0.18);
  background: rgba(255, 122, 122, 0.06);
}

.war-core-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.war-core-tip {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 200, 87, 0.18);
  background: rgba(255, 200, 87, 0.07);
}

.war-core-tip-text {
  margin: 12px 0 0;
  color: #f4ecd6;
  font-size: 0.94rem;
  line-height: 1.7;
}

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

.war-market-probability-card .probability-meta {
  font-size: 0.96rem;
}

.war-market-probability-card .probability-meta strong {
  font-size: 1.18rem;
}

.war-market-card .probability-context {
  margin-top: 16px;
}

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

.war-alert-item strong {
  display: block;
  color: #f4f8ff;
  font-size: 1rem;
  font-weight: 800;
}

.war-alert-item p {
  margin: 8px 0 0;
  color: #d8e3f3;
  font-size: 0.92rem;
  line-height: 1.65;
}

.war-alert-item.is-warning {
  border-color: rgba(255, 200, 87, 0.22);
  background: rgba(255, 200, 87, 0.08);
}

.war-alert-item.is-info {
  border-color: rgba(24, 210, 255, 0.18);
  background: rgba(24, 210, 255, 0.07);
}

.simulation-card .timeline-list {
  gap: 14px;
}

.simulation-card .timeline-row {
  gap: 12px 18px;
  grid-template-columns: 96px minmax(0, 0.95fr) minmax(0, 1.16fr);
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
}

.simulation-card .timeline-time {
  grid-row: auto;
}

.simulation-card .timeline-time strong {
  font-size: 1.14rem;
}

.simulation-card .timeline-flow {
  grid-column: auto;
}

.simulation-card .timeline-flow strong {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d9e4f4;
}

.simulation-card .timeline-predict {
  grid-column: auto;
  gap: 8px;
}

.simulation-card .timeline-predict strong {
  font-size: 1.02rem;
  line-height: 1.48;
}

.simulation-card .timeline-meta,
.simulation-card .timeline-average-details-panel,
.simulation-card .timeline-average-opinion-meta {
  gap: 6px;
}

.simulation-card .timeline-average-details {
  margin-top: 2px;
}

.simulation-card .timeline-average-details summary {
  font-size: 0.88rem;
}

.simulation-card .timeline-average-opinion-item {
  padding: 10px 12px;
}

.simulation-card .timeline-average-opinion-top strong {
  font-size: 0.9rem;
}

.war-room-column--right .model-consensus-card {
  margin: 0;
}

.war-room-column--right .model-consensus-list {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.war-room-column--right .model-consensus-hero {
  padding: 20px 22px;
  border-radius: 24px;
}

.model-consensus-row {
  padding: 20px 22px;
  border-radius: 24px;
}

.model-consensus-row-style {
  margin: 8px 0 0;
  color: #93a7c7;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.model-consensus-row-signal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.model-consensus-direction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(151, 165, 190, 0.2);
  background: rgba(151, 165, 190, 0.1);
  color: #eef5ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.model-consensus-direction-pill.is-up {
  border-color: rgba(79, 224, 141, 0.28);
  background: rgba(79, 224, 141, 0.12);
  color: #b9ffd8;
}

.model-consensus-direction-pill.is-down {
  border-color: rgba(255, 122, 122, 0.28);
  background: rgba(255, 122, 122, 0.12);
  color: #ffc4c4;
}

.model-consensus-direction-pill.is-flat {
  border-color: rgba(255, 200, 87, 0.26);
  background: rgba(255, 200, 87, 0.12);
  color: #ffe69c;
}

.model-consensus-direction-pill.is-muted {
  border-color: rgba(151, 165, 190, 0.18);
  background: rgba(151, 165, 190, 0.08);
  color: #eef5ff;
}

.model-consensus-signal-meta {
  color: #c9d6ea;
  font-size: 0.94rem;
  font-weight: 700;
}

.model-consensus-row-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.model-consensus-metric-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.model-consensus-metric-label {
  display: block;
  color: #9fb1cf;
  font-size: 0.8rem;
  font-weight: 700;
}

.model-consensus-metric-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.model-consensus-metric-box p {
  margin: 8px 0 0;
  color: #cdd9ec;
  font-size: 0.84rem;
  line-height: 1.5;
}

.model-consensus-row-reasons {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.model-consensus-row-reasons-title {
  margin: 0;
  color: #d8e4f4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-consensus-row-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.model-consensus-row-warning {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 87, 0.2);
  background: rgba(255, 200, 87, 0.08);
  color: #f6eecf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.model-consensus-row-meta {
  margin-top: 12px;
}

.model-room-day-score {
  margin: 0;
}

.model-room-link-inline {
  color: #eef8ff;
  text-decoration: none;
}

.model-room-link-inline:hover {
  text-decoration: underline;
}

.model-room-secondary {
  margin: 10px 0 0;
  color: #d8e4f4;
}

.model-room-actions {
  margin-top: 14px;
}

.model-room-link {
  width: 100%;
}

@media (min-width: 1100px) {
  .war-room-column--left {
    grid-column: span 5;
  }

  .war-room-column--middle {
    grid-column: span 3;
  }

  .war-room-column--right {
    grid-column: span 4;
  }
}

@media (min-width: 1320px) {
  .hero--warroom .hero-top {
    grid-template-columns: minmax(0, 1.42fr) minmax(500px, 0.98fr);
  }

  .war-room-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.94fr) minmax(0, 1.02fr);
  }

  .war-room-column,
  .war-room-column--left,
  .war-room-column--middle,
  .war-room-column--right {
    grid-column: auto;
  }
}

@media (min-width: 1520px) {
  .hero--warroom .hero-top {
    grid-template-columns: minmax(0, 1.58fr) minmax(660px, 1fr);
    gap: 32px;
    padding: 30px 34px 32px;
  }

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

  .hero-stat-box {
    min-height: 150px;
  }

  .war-room-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.96fr) minmax(0, 1.08fr);
    gap: 26px;
  }

  .war-core-layout {
    grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
  }
}

@media (max-width: 1160px) {
  .hero--warroom .hero-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side--stats {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 900px) {
  .war-core-layout,
  .war-market-probability-grid,
  .model-consensus-row-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero--warroom .hero-top {
    padding: 18px 16px 20px;
  }

  .hero-chip-row {
    margin-bottom: 14px;
  }

  .hero-warroom-title-row {
    align-items: flex-start;
  }

  .hero-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-warroom-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .hero--warroom .hero-action-status {
    width: 100%;
    justify-content: center;
  }

  .simulation-card .timeline-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .simulation-card .timeline-time,
  .simulation-card .timeline-flow,
  .simulation-card .timeline-predict {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 430px) {
  .hero--warroom .hero-top {
    padding: 16px 12px 18px;
  }

  .hero-chip {
    font-size: 0.74rem;
  }

  .hero-warroom-pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .war-core-action-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .war-core-action-icon {
    width: 68px;
    height: 68px;
  }

  .war-core-action-direction {
    font-size: 1.8rem;
  }
}

.hero--reference .hero-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 30px 30px;
}

.hero--reference .hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hero--reference .hero-copy {
  display: flex;
  flex-direction: column;
  max-width: none;
  min-width: 0;
}

.hero--reference .hero-probability-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero--reference .hero-side--stats {
  width: 100%;
  flex: 0 0 auto;
}

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

.reference-war-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.reference-panel {
  padding: 22px;
  border-radius: 28px;
}

.reference-panel-header {
  align-items: flex-start;
  gap: 16px;
}

.reference-panel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(151, 194, 255, 0.22);
  background: rgba(17, 31, 53, 0.74);
  color: #cfe4ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.reference-panel--hero-core {
  grid-column: auto;
  height: 100%;
}

.reference-panel--hero-core .reference-panel-header {
  margin-bottom: 14px;
}

.reference-panel--hero-core .reference-core-layout {
  gap: 14px;
}

.reference-core-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.reference-action-card {
  border: 1px solid rgba(145, 188, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(11, 20, 34, 0.92), rgba(8, 14, 24, 0.92));
  padding: 20px;
}

.reference-fold-card {
  border: 1px solid rgba(145, 188, 255, 0.14);
  border-radius: 24px;
  background: rgba(11, 20, 35, 0.86);
  padding: 18px 20px;
}

.reference-fold-card > summary,
.timeline-row-details > summary,
.model-consensus-row-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f3f7ff;
  font-weight: 700;
}

.reference-fold-card > summary::-webkit-details-marker,
.timeline-row-details > summary::-webkit-details-marker,
.model-consensus-row-details > summary::-webkit-details-marker {
  display: none;
}

.reference-fold-card > summary::after,
.timeline-row-details > summary::after,
.model-consensus-row-details > summary::after {
  content: "열기";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b5c9e6;
  font-size: 0.77rem;
  font-weight: 700;
}

.reference-fold-card[open] > summary::after,
.timeline-row-details[open] > summary::after,
.model-consensus-row-details[open] > summary::after {
  content: "닫기";
}

.reference-fold-body,
.timeline-row-details-body,
.model-consensus-row-details-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.reference-market-chart-card {
  border: 1px solid rgba(145, 188, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 18, 31, 0.94), rgba(7, 13, 24, 0.92));
  padding: 20px 22px;
}

.reference-market-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.reference-market-chart {
  width: 100%;
  height: 220px;
}

.reference-market-probability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.reference-panel--folds {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.slot-accuracy-row {
  border: 1px solid rgba(145, 188, 255, 0.12);
  border-radius: 18px;
  background: rgba(13, 23, 40, 0.84);
  padding: 14px 16px;
}

.slot-accuracy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.slot-accuracy-top strong {
  color: #f6f9ff;
  font-size: 0.98rem;
}

.slot-accuracy-top span {
  color: #d5e8ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.slot-accuracy-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.slot-accuracy-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #89d2ff, #7bf1cc);
}

.slot-accuracy-meta {
  margin: 8px 0 0;
  color: #8ea3c1;
  font-size: 0.83rem;
}

.reference-timeline-list {
  display: grid;
  gap: 14px;
}

.reference-timeline-list .timeline-row {
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
}

.reference-panel--recent .reference-timeline-list .timeline-row {
  grid-template-columns: 78px minmax(0, 0.84fr) minmax(0, 1.26fr);
}

.reference-timeline-list .timeline-time strong {
  font-size: 1rem;
  white-space: nowrap;
}

.reference-timeline-list .timeline-flow strong {
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-timeline-list .timeline-predict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
}

.reference-panel--recent .reference-timeline-list .timeline-predict {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.reference-timeline-list .timeline-predict strong {
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-timeline-list .verdict-badge {
  white-space: nowrap;
}

.timeline-row-details,
.model-consensus-row-details {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.timeline-row-details > summary,
.model-consensus-row-details > summary {
  color: #9bc7ff;
  font-size: 0.84rem;
}

.reference-timeline-list .timeline-row-details {
  grid-column: 1 / -1;
  width: 100%;
}

.reference-panel--recent .reference-timeline-list .timeline-row-details {
  grid-column: 3;
  width: auto;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.reference-panel--recent .reference-timeline-list .timeline-row-details[open] {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.reference-consensus-list {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.reference-consensus-list .model-consensus-row {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 24px;
}

.reference-consensus-list .model-consensus-row-top {
  flex-wrap: wrap;
  margin-bottom: 0;
  align-items: flex-start;
}

.reference-consensus-list .model-consensus-row-top strong {
  min-width: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-consensus-list .model-consensus-row-top-badges {
  max-width: 100%;
}

.reference-consensus-list .model-consensus-row-style {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(145, 188, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 18, 31, 0.68);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-consensus-list .model-consensus-row-signal {
  margin-top: 0;
}

.reference-consensus-list .model-consensus-signal-meta {
  min-width: 0;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-consensus-list .model-consensus-row-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.reference-consensus-list .model-consensus-metric-box {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
}

.reference-consensus-list .model-consensus-metric-label {
  font-size: 0.75rem;
}

.reference-consensus-list .model-consensus-metric-box strong {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-consensus-list .model-consensus-metric-box p {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-consensus-list .model-consensus-row-text {
  margin: 0;
  color: #dce7f7;
  line-height: 1.45;
}

.reference-consensus-list .model-room-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}

.reference-consensus-list .model-room-link {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.reference-consensus-list .model-consensus-row-warning {
  margin-top: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.reference-consensus-list .model-consensus-row-details {
  margin-top: 0;
}

.reference-panel--analysts .model-consensus-hero {
  margin-bottom: 14px;
  padding: 16px 18px 14px;
}

.reference-panel--analysts .model-consensus-headline {
  font-size: clamp(1.34rem, 1.14rem + 0.48vw, 1.8rem);
}

.reference-panel--analysts .model-consensus-summary-text {
  font-size: 0.92rem;
  line-height: 1.4;
}

.reference-panel--folds .war-alert-list {
  display: grid;
  gap: 14px;
}

@media (min-width: 1100px) {
  .hero--reference .hero-top {
    gap: 20px;
  }

  .hero--reference .hero-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }

  .hero--reference .hero-main-grid .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero--reference .hero-main-grid .reference-panel--hero-core {
    grid-column: 2;
    grid-row: 1;
  }

  .hero--reference .hero-side--stats {
    width: 100%;
  }

  .hero--reference .hero-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reference-war-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .reference-panel--core {
    grid-column: 1;
    grid-row: 1;
  }

  .reference-panel--recent {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .reference-panel--analysts {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .reference-panel--market {
    grid-column: 1;
    grid-row: 2;
  }

  .reference-panel--folds {
    grid-column: 2;
    grid-row: 2;
  }

  .reference-core-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-panel .section-note {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 1450px) {
  .hero--reference .hero-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero--reference .hero-main-grid {
    gap: 16px;
  }

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

  .hero-stat-box {
    min-height: 112px;
    padding: 16px 14px 14px;
  }

  .hero-stat-box strong {
    margin-top: 10px;
  }

  .reference-market-probability-grid,
  .reference-consensus-list .model-consensus-row-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-timeline-list .timeline-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-panel--recent .reference-timeline-list .timeline-predict {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reference-panel--recent .reference-timeline-list .timeline-row-details,
  .reference-panel--recent .reference-timeline-list .timeline-row-details[open] {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
  }

  .reference-panel .section-note {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.38;
  }
}

@media (max-width: 720px) {
  .hero--reference .hero-top {
    gap: 16px;
    padding: 18px 14px 20px;
  }

  .hero--reference .hero-main-grid {
    gap: 14px;
  }

  .hero-chip-row {
    gap: 6px;
    margin-bottom: 10px;
  }

  .hero-chip {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .hero--warroom .hero-direction {
    font-size: 0.9rem;
  }

  .hero--warroom h1 {
    font-size: clamp(2.15rem, 1.85rem + 3.6vw, 2.9rem);
  }

  .hero-warroom-title-row {
    gap: 10px;
    margin-top: 10px;
  }

  .hero-warroom-pill {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .hero--warroom .hero-quote-public {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-warroom-price-block {
    margin-top: 10px;
  }

  .hero--warroom .hero-price-line strong {
    font-size: clamp(2.7rem, 2.2rem + 4vw, 3.35rem);
  }

  .hero--reference .hero-probability-meta {
    gap: 8px;
  }

  .hero-nasdaq-card {
    margin-top: 12px;
    padding: 12px 13px;
    gap: 8px;
  }

  .hero-nasdaq-top {
    gap: 8px;
  }

  .hero-nasdaq-label {
    font-size: 0.8rem;
  }

  .hero-nasdaq-status {
    font-size: 0.72rem;
  }

  .hero-nasdaq-main {
    gap: 8px;
  }

  .hero-nasdaq-main strong {
    font-size: 1.2rem;
  }

  .hero-nasdaq-change {
    font-size: 0.82rem;
  }

  .hero-warroom-foot {
    gap: 10px;
    margin-top: 14px;
  }

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

  .hero-stat-box {
    min-height: 96px;
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .hero-stat-label {
    font-size: 0.72rem;
  }

  .hero-stat-box strong {
    font-size: 1.34rem;
  }

  .hero-stat-meta {
    margin-top: 6px;
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .reference-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .reference-panel-header {
    gap: 10px;
  }

  .reference-panel-header h2 {
    font-size: 1.08rem;
  }

  .reference-panel-chip {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .reference-panel--hero-core .reference-panel-header {
    margin-bottom: 10px;
  }

  .reference-action-card {
    padding: 16px;
    border-radius: 20px;
  }

  .war-core-kicker,
  .war-core-reason-title {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .war-core-action-main {
    gap: 12px;
    margin-top: 12px;
  }

  .war-core-action-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .war-core-action-icon span {
    font-size: 1.5rem;
  }

  .war-core-action-direction {
    font-size: clamp(1.65rem, 1.45rem + 2vw, 2.1rem);
  }

  .war-core-action-confidence {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .war-core-strength {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
  }

  .war-core-strength-top {
    font-size: 0.84rem;
  }

  .war-core-strength-bar {
    margin-top: 10px;
    height: 10px;
  }

  .war-core-decision-list {
    gap: 8px;
    margin-top: 14px;
  }

  .war-core-decision-item {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .reference-fold-card {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .reference-fold-card > summary,
  .timeline-row-details > summary,
  .model-consensus-row-details > summary {
    font-size: 0.86rem;
  }

  .reference-fold-card > summary::after,
  .timeline-row-details > summary::after,
  .model-consensus-row-details > summary::after {
    min-width: 46px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .reference-panel--recent .reference-timeline-list {
    gap: 10px;
  }

  .reference-panel--recent .reference-timeline-list .timeline-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .reference-panel--recent .reference-timeline-list .timeline-time {
    grid-column: 1;
    grid-row: 1;
  }

  .reference-panel--recent .reference-timeline-list .timeline-time strong {
    font-size: 0.9rem;
  }

  .reference-panel--recent .reference-timeline-list .timeline-flow {
    grid-column: 2;
    grid-row: 1;
  }

  .reference-panel--recent .reference-timeline-list .timeline-flow strong {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .reference-panel--recent .reference-timeline-list .timeline-predict {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 8px;
  }

  .reference-panel--recent .reference-timeline-list .timeline-predict strong {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .reference-panel--recent .reference-timeline-list .timeline-row-details,
  .reference-panel--recent .reference-timeline-list .timeline-row-details[open] {
    margin-top: 6px;
    padding-top: 6px;
  }

  .reference-panel--analysts .model-consensus-hero {
    margin-bottom: 12px;
    padding: 14px 14px 12px;
    border-radius: 20px;
  }

  .reference-panel--analysts .model-consensus-headline {
    font-size: 1.28rem;
    line-height: 1.14;
  }

  .reference-panel--analysts .model-consensus-summary-text {
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .reference-consensus-list {
    gap: 12px;
  }

  .reference-consensus-list .model-consensus-row {
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 20px;
  }

  .reference-consensus-list .model-consensus-row-top {
    gap: 8px;
  }

  .reference-consensus-list .model-consensus-row-top strong {
    font-size: 0.96rem;
  }

  .reference-consensus-list .model-consensus-row-style {
    padding: 4px 8px;
    font-size: 0.73rem;
  }

  .reference-consensus-list .model-consensus-direction-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .reference-consensus-list .model-consensus-signal-meta {
    font-size: 0.81rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .reference-consensus-list .model-consensus-row-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .reference-consensus-list .model-consensus-metric-box {
    padding: 10px 12px;
  }

  .reference-consensus-list .model-consensus-metric-box strong {
    font-size: 0.9rem;
  }

  .reference-consensus-list .model-consensus-metric-box p {
    font-size: 0.74rem;
  }

  .reference-consensus-list .model-room-link {
    width: 100%;
    justify-content: center;
    min-height: 36px;
    font-size: 0.8rem;
  }

  .reference-market-chart {
    height: 190px;
  }
}

@media (max-width: 430px) {
  .hero--reference .hero-top {
    padding: 16px 12px 18px;
  }

  .hero--reference .hero-main-grid {
    gap: 12px;
  }

  .hero-chip {
    font-size: 0.68rem;
  }

  .hero--warroom h1 {
    font-size: clamp(1.9rem, 1.68rem + 4vw, 2.45rem);
  }

  .hero--warroom .hero-price-line strong {
    font-size: clamp(2.2rem, 2rem + 4vw, 2.8rem);
  }

  .hero--reference .hero-stat-grid {
    gap: 8px;
  }

  .hero-stat-box {
    min-height: 88px;
    padding: 12px 10px 10px;
  }

  .hero-stat-box strong {
    font-size: 1.18rem;
  }

  .hero-stat-meta {
    font-size: 0.7rem;
  }

  .reference-panel {
    padding: 14px;
  }

  .reference-panel--recent .reference-timeline-list .timeline-row {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .reference-panel--recent .reference-timeline-list .timeline-predict {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reference-consensus-list .model-consensus-row-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}
