@import url("data:text/css,");

:root {
  --ink: #132238;
  --muted: #66758a;
  --line: #dce4ee;
  --panel: #ffffff;
  --canvas: #f4f7fb;
  --navy: #123864;
  --blue: #2868d8;
  --blue-soft: #eaf2ff;
  --teal: #0f8b78;
  --teal-soft: #e7f7f3;
  --orange: #f07835;
  --orange-soft: #fff1e8;
  --red: #c94d54;
  --shadow: 0 18px 46px rgba(21, 46, 78, 0.10);
  --content-max: 1440px;
  --content-gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(51, 115, 216, .12), transparent 34rem),
    var(--canvas);
  font-family: "Noto Sans KR", "Pretendard", "Malgun Gothic", system-ui, sans-serif;
  font-size: 120%;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 72px;
  padding: 0 max(var(--content-gutter), calc((100vw - var(--content-max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: left;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  background: var(--navy);
}

.brand-mark i { width: 5px; border-radius: 3px 3px 1px 1px; background: #fff; }
.brand-mark i:nth-child(1) { height: 10px; opacity: .65; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .82; }
.brand b { display: block; font-size: 18px; letter-spacing: .11em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }

.topbar-actions { display: flex; align-items: center; gap: 20px; }
.save-status { color: var(--muted); font-size: 15px; }
.save-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #27a98f; margin-right: 5px; }
.text-button { border: 0; background: transparent; color: var(--navy); font-size: 16px; font-weight: 700; padding: 8px 0; }

#app { min-height: calc(100vh - 72px); }
.page { width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2))); margin: 0 auto; padding: clamp(30px, 4vw, 58px) 0 clamp(48px, 6vw, 82px); }
.narrow { width: min(860px, calc(100% - (var(--content-gutter) * 2))); }
.tutorial-page { width: min(1320px, calc(100% - (var(--content-gutter) * 2))); }
.outcome-page { width: min(1240px, calc(100% - (var(--content-gutter) * 2))); }

.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 15px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { margin-bottom: 18px; font-size: clamp(39px, 5.2vw, 65px); line-height: 1.18; letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.02em; }
.lead { max-width: 700px; color: var(--muted); font-size: 21px; line-height: 1.75; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.hero { display: grid; grid-template-columns: 1.22fr .78fr; gap: 34px; align-items: stretch; padding-top: 64px; }
.hero-copy { padding: 36px 0; }
.hero-copy h1 em { color: var(--blue); font-style: normal; }
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 30px 0; }
.feature { padding: 17px; background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 14px; }
.feature b { display: block; font-size: 16px; }
.feature span { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; line-height: 1.4; }

.join-card, .panel {
  background: var(--panel);
  border: 1px solid rgba(215, 225, 237, .9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.join-card { padding: 28px; align-self: center; }
.join-card .card-icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 15px; font-weight: 900; font-size: 24px; margin-bottom: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field-label { color: #384960; font-size: 15px; font-weight: 800; }
.input, .select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,104,216,.11); }

.button {
  min-height: 47px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(40,104,216,.19);
}
.button:hover { filter: brightness(.96); transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.secondary { color: var(--navy); background: #fff; border-color: #cdd8e5; box-shadow: none; }
.button.ghost { color: var(--blue); background: var(--blue-soft); box-shadow: none; }
.button.danger { background: var(--red); }
.button.full { width: 100%; }
.button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }

.info-note { padding: 14px 16px; border-radius: 12px; background: #f7f9fc; color: var(--muted); font-size: 15px; line-height: 1.6; }
.info-note strong { color: var(--ink); }

.progress-shell { background: #fff; border-bottom: 1px solid var(--line); }
.steps { width: min(1120px, calc(100% - (var(--content-gutter) * 2))); height: clamp(66px, 6vw, 80px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; color: #93a0b2; font-size: 15px; font-weight: 800; }
.step:not(:last-child)::after { content: ""; position: absolute; width: 34%; height: 1px; right: -17%; top: 50%; background: #dbe3ed; }
.step i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #edf1f6; font-style: normal; }
.step.active { color: var(--blue); }
.step.active i { color: #fff; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.step.done { color: var(--teal); }
.step.done i { background: var(--teal-soft); }

.tutorial-card { padding: clamp(24px, 3.2vw, 46px); }
.tutorial-card > p.muted { max-width: 1080px; font-size: clamp(18px, 1.35vw, 22px); }
.tutorial-visual { min-height: 0; margin-bottom: clamp(20px, 2.4vw, 30px); border-radius: 18px; padding: clamp(20px, 2.6vw, 34px); background: linear-gradient(135deg, #f0f6ff, #f7fbff); display: grid; align-content: center; }
.tutorial-visual .big-number { color: var(--blue); font-size: 70px; line-height: 1; font-weight: 900; }
.tutorial-visual p { color: #485c76; margin: 14px 0 0; line-height: 1.7; }
.tutorial-purpose { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 22px; }
.tutorial-purpose .purpose-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--blue); font-size: 36px; font-weight: 900; }
.tutorial-purpose p { margin: 0; font-size: clamp(21px, 2vw, 29px); }
.tutorial-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.tutorial-flow div { min-height: 105px; padding: 16px 10px; display: grid; place-content: center; gap: 7px; text-align: center; border: 1px solid #d5e2f1; border-radius: 14px; background: #fff; }
.tutorial-flow b { width: 34px; height: 34px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); }
.tutorial-flow span { font-size: clamp(17px, 1.5vw, 22px); font-weight: 800; }
.tutorial-flow i { color: var(--blue); font-size: 24px; font-style: normal; }
.tutorial-mode-note { display: grid; grid-template-columns: auto 1fr; gap: 8px 13px; margin-top: 20px; padding: 16px 18px; border: 1px solid #c9d9ee; border-radius: 14px; background: #fff; }
.tutorial-mode-note b { color: var(--navy); font-size: clamp(18px, 1.5vw, 22px); }
.tutorial-mode-note span { color: #415b78; font-size: clamp(17px, 1.45vw, 21px); font-weight: 700; line-height: 1.55; }
.demand-factor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.demand-factor { min-height: 0; padding: clamp(17px, 2vw, 24px); border: 1px solid #d5e2f1; border-radius: 14px; background: #fff; }
.demand-factor b { display: block; margin-bottom: 8px; color: var(--navy); font-size: 17px; }
.demand-factor span { color: #546984; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; }
.platform-profile-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.profile-guide-card { min-width: 0; overflow: hidden; border: 1px solid #cbd9e9; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(35, 64, 99, .06); }
.profile-guide-card::before { content: ""; display: block; height: 6px; background: var(--blue); }
.profile-guide-card.platform-b::before { background: var(--teal); }
.profile-guide-card.channel-direct::before { background: #64748b; }
.profile-guide-card header { padding: 18px 18px 12px; }
.profile-guide-card header span { display: block; color: #64778d; font-size: 15px; font-weight: 850; }
.profile-guide-card header b { display: block; margin-top: 5px; color: var(--navy); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.32; }
.reach-index { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 18px 14px; padding: 12px 14px; border-radius: 11px; color: #174e95; background: #edf5ff; font-size: 15px; }
.platform-b .reach-index { color: #156759; background: #eaf8f4; }
.channel-direct .reach-index { color: #4c5e73; background: #f0f3f6; }
.reach-index em { color: inherit; font-size: 26px; font-style: normal; font-weight: 950; }
.profile-guide-card dl { margin: 0; }
.profile-guide-card dl > div { padding: 12px 18px; border-top: 1px solid #e4ebf2; }
.profile-guide-card dt { color: #65798f; font-size: 14px; font-weight: 800; }
.profile-guide-card dd { margin: 4px 0 0; color: #1d3855; font-size: 17px; font-weight: 800; line-height: 1.45; }
.condition-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.condition-guide-grid > div { min-width: 0; padding: clamp(18px, 2vw, 24px); border: 1px solid #d5e2f1; border-radius: 14px; background: #fff; }
.condition-guide-grid span { display: block; color: var(--blue); font-size: clamp(17px, 1.4vw, 20px); font-weight: 800; }
.condition-guide-grid b { display: block; margin-top: 6px; font-size: clamp(20px, 1.7vw, 24px); }
.condition-guide-grid p { margin-top: 10px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.decision-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.decision-guide-grid > div { min-width: 0; padding: clamp(19px, 2vw, 26px); border-radius: 14px; background: #fff; border: 1px solid #d5e2f1; }
.decision-guide-grid b { display: block; margin-bottom: 9px; color: var(--navy); font-size: clamp(20px, 1.7vw, 24px); }
.decision-guide-grid span { color: #546984; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 26px; font-weight: 800; }
.formula span { padding: 10px 12px; border-radius: 10px; background: white; border: 1px solid #d8e3ef; }
.formula b { color: var(--blue); }
.formula-second { margin-top: 18px; }
.tutorial-quiz h3:not(:first-child) { margin-top: 26px; }
.quiz-option { display: block; margin: 10px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; }
.quiz-option:hover { border-color: #aac2e5; background: #f8fbff; }

.round-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.round-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--orange-soft); color: #ac4e1b; font-size: 14px; font-weight: 900; }
.round-badge.main { background: var(--blue-soft); color: var(--blue); }
.balance { text-align: right; }
.balance span { display: block; color: var(--muted); font-size: 14px; }
.balance b { font-size: 28px; }

.condition-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.condition { background: #fff; padding: 15px 17px; }
.condition.platform-a { box-shadow: inset 0 4px 0 #2868d8; }
.condition.platform-b { box-shadow: inset 0 4px 0 #0f8b78; }
.condition span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.condition b { display: block; margin-top: 5px; font-size: 17px; }
.condition-overview { margin-bottom: 20px; overflow: hidden; border: 1px solid #cbd9e9; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(24,56,92,.06); }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #dce5ef; background: #f8fbff; }
.overview-heading div span { display: block; color: var(--blue); font-size: 14px; font-weight: 900; }
.overview-heading div b { display: block; margin-top: 4px; color: var(--navy); font-size: 20px; }
.overview-heading > small { padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 900; }
.channel-condition-grid { display: grid; grid-template-columns: repeat(3, minmax(280px,1fr)); }
.channel-summary { position: relative; min-width: 0; border-right: 1px solid #dce5ef; }
.channel-summary:last-child { border-right: 0; }
.channel-summary::before { content: ""; display: block; height: 5px; background: #2868d8; }
.channel-summary.platform-b::before { background: #0f8b78; }
.channel-summary.channel-direct::before { background: #7a8796; }
.channel-summary header { padding: 17px 18px 13px; }
.channel-summary header strong { display: block; color: var(--navy); font-size: 24px; }
.channel-summary header span { display: block; margin-top: 4px; overflow: hidden; color: #5a7088; font-size: 16px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.channel-profile-cue { display: grid; gap: 3px; margin: 0 18px 14px; padding: 11px 13px; border-radius: 10px; background: #edf5ff; }
.platform-b .channel-profile-cue { background: #eaf8f4; }
.channel-direct .channel-profile-cue { background: #f0f3f6; }
.channel-profile-cue b { color: #174e95; font-size: 16px; }
.platform-b .channel-profile-cue b { color: #156759; }
.channel-direct .channel-profile-cue b { color: #4c5e73; }
.channel-profile-cue span { color: #526b86; font-size: 14px; font-weight: 750; line-height: 1.4; }
.channel-summary dl, .channel-facts { margin: 0; }
.channel-summary dl > div, .channel-facts > div { display: grid; grid-template-columns: 105px 1fr; gap: 9px; align-items: start; padding: 12px 18px; border-top: 1px solid #e5ebf2; }
.channel-summary dt, .channel-facts dt { color: #64778d; font-size: 16px; font-weight: 800; }
.channel-summary dd, .channel-facts dd { margin: 0; color: var(--navy); font-size: 18px; font-weight: 900; line-height: 1.45; }
.duty-yes { color: #a14617 !important; }
.duty-no { color: #27705b !important; }
.common-product-condition { display: grid; grid-template-columns: auto auto 1fr; gap: 13px; align-items: center; padding: 15px 20px; border-top: 1px solid #dce5ef; background: #f6f8fb; }
.common-product-condition span { color: #5b6f84; font-size: 14px; font-weight: 900; }
.common-product-condition b { color: var(--navy); font-size: 18px; }
.common-product-condition small { color: #64778d; font-size: 14px; font-weight: 750; text-align: right; }
.common-product-condition.prominent { grid-template-columns: auto auto auto 1fr; padding: 19px 22px; border-top: 0; border-bottom: 2px solid #b9cde7; background: linear-gradient(100deg,#eaf3ff,#f7fbff); }
.common-product-condition.prominent span { padding: 7px 10px; border-radius: 8px; background: #dbeaff; color: #1958b0; font-size: 16px; }
.common-product-condition.prominent b { font-size: clamp(21px,1.8vw,26px); }
.common-product-condition.prominent strong { padding: 7px 11px; border-radius: 9px; background: #fff2dd; color: #9a5215; font-size: clamp(18px,1.5vw,22px); white-space: nowrap; }
.common-product-condition.prominent small { color: #395b80; font-size: 16px; font-weight: 800; }

.decision-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.decision-panel { padding: 30px; box-shadow: none; }
.decision-section + .decision-section { margin-top: 25px; padding-top: 24px; border-top: 1px solid #e6ebf2; }
.section-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head p {
  color: #294d73;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  margin: 5px 0 0;
}
.value-pill { min-width: 88px; padding: 8px 10px; text-align: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 16px; font-weight: 900; }

input[type="range"] {
  width: 100%;
  height: 10px;
  margin: 12px 0;
  border-radius: 999px;
  background: #d8e3f0;
  cursor: ew-resize;
  accent-color: var(--blue);
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 9px rgba(22, 69, 134, .35), 0 0 0 2px var(--blue);
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 9px rgba(22, 69, 134, .35), 0 0 0 2px var(--blue);
}
input[type="range"]:focus-visible { outline: 4px solid rgba(40,104,216,.22); outline-offset: 5px; }
.range-labels { display: flex; justify-content: space-between; color: #526a84; font-size: 15px; font-weight: 800; }
.range-help { margin: 12px 0 0; color: #294d73; font-size: 17px; font-weight: 800; line-height: 1.6; }
.drag-banner { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; padding: 15px 17px; border: 1px solid #bcd2f1; border-radius: 13px; background: var(--blue-soft); color: #365b88; font-size: 14px; line-height: 1.55; }
.drag-banner > span { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 27px; font-weight: 900; }
.drag-banner strong { color: var(--navy); font-size: 15px; }
.tutorial-slider-demo { display: grid; gap: 25px; width: 100%; }
.demo-range-block { padding: 18px; border: 2px solid #d7e2ee; border-radius: 14px; background: rgba(255,255,255,.92); transition: .2s ease; }
.demo-range-block.completed { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.demo-range-block.completed::after { content: "✓ 조절 완료"; display: block; margin-top: 9px; color: var(--teal); font-size: 14px; font-weight: 900; }
.demo-range-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-range-head label { font-size: 16px; font-weight: 900; }
.demo-range-head output { min-width: 72px; padding: 7px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); text-align: center; font-size: 15px; font-weight: 900; }
.platform-price-note { margin: -3px 0 17px; padding: 11px 13px; border-radius: 10px; background: #f4f7fb; color: #46617e; font-size: 15px; font-weight: 700; line-height: 1.55; }
.platform-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.channel-decision-grid { grid-template-columns: repeat(3, minmax(320px,1fr)); align-items: stretch; gap: clamp(12px, 1.4vw, 20px); }
.platform-decision-card { padding: 22px; border: 2px solid #d9e2ed; border-radius: 15px; background: #fbfcfe; transition: border-color .15s, background .15s, box-shadow .15s; }
.channel-decision-grid .platform-decision-card { display: flex; min-width: 0; flex-direction: column; }
.channel-decision-grid .direct-price-card { margin-top: 0; border-color: #98a7b8; background: #f6f8fb; }
.channel-facts { margin: 0 0 17px; border: 1px solid #dce5ef; border-radius: 11px; background: rgba(255,255,255,.78); overflow: hidden; }
.channel-facts > div { grid-template-columns: 102px 1fr; padding: 12px 13px; }
.channel-facts > div:first-child { border-top: 0; }
.channel-facts dt { font-size: 15px; }
.channel-facts dd { font-size: 17px; }
.platform-decision-card.selected { border-color: var(--blue); background: #f4f8ff; box-shadow: 0 0 0 3px rgba(40,104,216,.08); }
.platform-decision-card.platform-b.selected { border-color: var(--teal); background: #f2fbf8; box-shadow: 0 0 0 3px rgba(15,139,120,.08); }
.policy-badge { display: grid; min-height: 150px; align-content: start; gap: 4px; margin: -5px 0 18px; padding: 12px 13px; border-radius: 11px; }
.policy-badge b { font-size: 16px; }
.policy-badge span { font-size: 16px; font-weight: 800; line-height: 1.55; }
.policy-live { display: block; margin-top: 5px; padding-top: 9px; border-top: 1px solid rgba(129,61,22,.2); font-size: 17px; line-height: 1.55; }
.policy-badge.autonomous { color: #265944; background: #eaf8f2; border: 1px solid #b8e1d2; }
.policy-badge.parity { color: #813d16; background: #fff1e5; border: 1px solid #f2c59f; }
.direct-price-card { padding: 19px; border: 2px solid #8e9daf; border-radius: 15px; background: #f6f8fb; }
.always-open { flex: 0 0 auto; padding: 8px 10px; border-radius: 9px; background: #e2e8f0; color: #34485e; font-size: 14px; font-weight: 900; }
.policy-validation { display: grid; gap: 4px; margin-top: 14px; padding: 13px 15px; border-radius: 11px; font-size: 15px; line-height: 1.5; }
.policy-validation b { font-size: 16px; }
.policy-validation.ok { color: #245d4c; background: #e9f8f2; border: 1px solid #abdccc; }
.policy-validation.error { color: #8d2e29; background: #fff0ef; border: 2px solid #e6a4a0; }
.platform-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.platform-card-head strong { display: block; color: var(--navy); font-size: 24px; }
.platform-card-head div > span { display: block; margin-top: 5px; color: #526a84; font-size: 16px; font-weight: 800; }
.decision-profile-cue { display: grid; gap: 4px; min-height: 88px; align-content: center; margin: -4px 0 15px; padding: 12px 14px; border-radius: 11px; color: #174e95; background: #eaf3ff; }
.platform-b .decision-profile-cue { color: #156759; background: #e8f7f3; }
.direct-price-card .decision-profile-cue { color: #4c5e73; background: #edf1f5; }
.decision-profile-cue strong { font-size: 17px; }
.decision-profile-cue span { color: #4c6480; font-size: 15px; font-weight: 750; line-height: 1.45; }
.entry-choice { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #b9c8da; border-radius: 9px; background: #fff; color: #314e6d; font-size: 16px; font-weight: 900; cursor: pointer; }
.entry-choice input { width: 19px; height: 19px; margin: 0; accent-color: var(--blue); }
.platform-b .entry-choice input { accent-color: var(--teal); }
.platform-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platform-option { position: relative; }
.platform-option input { position: absolute; opacity: 0; pointer-events: none; }
.platform-option label { display: block; padding: 15px; border: 1px solid #d6e0eb; border-radius: 12px; background: #fff; }
.platform-option input:checked + label { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.platform-option b { display: block; font-size: 17px; }
.platform-option span { display: block; margin-top: 4px; color: #526a84; font-size: 15px; font-weight: 800; line-height: 1.45; }

.market-panel { padding: 28px 30px; box-shadow: none; background: linear-gradient(160deg, #153c67, #102b4a); color: #fff; border: 0; }
.market-panel h3 { font-size: 18px; }
.market-panel .muted { color: #a9bdd4; }
.metric-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px),1fr)); gap: 0 22px; margin: 22px 0 0; }
.metric { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.metric b { font-size: 17px; }
.metric.total b { color: #65e2c2; font-size: 22px; }
.locked-market-panel { display: flex; min-height: 300px; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; }
.preview-lock-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 10px 0 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.1); font-size: 30px; }
.locked-market-panel h3 { font-size: 27px; }
.locked-preview-copy { color: #d2deeb; font-size: 17px; font-weight: 700; line-height: 1.7; }
.locked-preview-flow { width: 100%; margin-top: 18px; padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); }
.locked-preview-flow span { display: block; color: #fff; font-size: 16px; font-weight: 800; }
.locked-preview-flow i { display: block; margin: 5px 0; color: #80b9f6; font-style: normal; }
.locked-note { width: 100%; margin-top: 22px; background: rgba(255,255,255,.08); color: #c4d3e3; }
.locked-note strong { color: #fff; }

.main-rules-screen { min-height: calc(100vh - 72px); padding: 48px 24px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0, rgba(48,119,224,.18), transparent 42rem), linear-gradient(150deg, #eff5fd, #f8fbff); }
.main-rules-shell { width: min(1200px, 100%); padding: clamp(28px, 4vw, 54px); border: 1px solid #cedbeb; border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(21,46,78,.14); text-align: center; }
.rules-lock { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px; background: var(--navy); color: #fff; font-size: 32px; }
.main-rules-shell h1 { margin-bottom: 15px; font-size: clamp(35px, 5vw, 55px); }
.rules-lead { max-width: 800px; margin: 0 auto 28px; color: #445b75; font-size: 19px; font-weight: 700; line-height: 1.75; }
.rules-mode-comparison { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; margin: 26px 0; text-align: left; }
.mode-card { padding: 22px; border: 1px solid #d6e1ed; border-radius: 17px; background: #f8fafc; }
.mode-card span { display: block; color: var(--blue); font-size: 21px; font-weight: 900; }
.mode-card b { display: block; margin-top: 6px; color: var(--navy); font-size: 22px; }
.mode-card p { margin: 10px 0 0; color: #506780; font-size: 23px; font-weight: 700; line-height: 1.6; }
.main-mode { border-color: #9bbce9; background: var(--blue-soft); }
.mode-arrow { display: grid; place-items: center; color: var(--blue); font-size: 28px; font-weight: 900; }
.rules-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; text-align: left; }
.rules-checklist > div { display: flex; gap: 12px; padding: 18px; border: 1px solid #dbe4ee; border-radius: 15px; }
.rules-checklist i { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-size: 14px; font-weight: 900; }
.rules-checklist p { margin: 0; }
.rules-checklist b { display: block; color: var(--navy); font-size: 16px; }
.rules-checklist span { display: block; margin-top: 7px; color: #536b85; font-size: 21px; font-weight: 700; line-height: 1.55; }
.rules-important { margin: 0; padding: 17px 19px; border-radius: 14px; background: #fff4e9; color: #71431f; font-size: 16px; line-height: 1.65; }
.rules-price-policy { display: grid; gap: 7px; margin: 0 0 16px; padding: 18px 20px; border: 2px solid #e4ad7b; border-radius: 14px; background: #fff7ef; color: #723f1c; text-align: left; }
.rules-price-policy b { font-size: 19px; }
.rules-price-policy span { font-size: 17px; font-weight: 750; line-height: 1.6; }
.rules-confirm-form { display: grid; gap: 17px; margin-top: 24px; }
.rules-confirm-check { display: flex; gap: 13px; align-items: flex-start; padding: 17px 19px; border: 2px solid #c7d6e8; border-radius: 14px; background: #fff; color: #253e5b; text-align: left; font-size: 17px; font-weight: 800; line-height: 1.6; cursor: pointer; }
.rules-confirm-check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.rules-confirm-check input { flex: 0 0 auto; width: 23px; height: 23px; margin-top: 2px; accent-color: var(--blue); }
.rules-confirm-form .button { width: 100%; min-height: 56px; font-size: 18px; }

.outcome-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.profit-card { padding: 34px; color: #fff; background: linear-gradient(145deg, #123864, #1f5a9c); border: 0; }
.profit-card.negative { background: linear-gradient(145deg, #6d2832, #a23d4b); }
.profit-card .label { color: rgba(255,255,255,.7); font-size: 15px; }
.profit-card .profit { margin: 9px 0 22px; font-size: 51px; font-weight: 900; letter-spacing: -.04em; }
.outcome-details { padding: 26px; box-shadow: none; }
.platform-outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 16px 0; }
.direct-outcome { border-color: #aebac8 !important; background: #f5f7fa !important; }
.platform-outcome { padding: 13px; border: 1px solid #d9e3ee; border-radius: 11px; background: #f8fafc; }
.platform-outcome.entered { border-color: #a9c5ea; background: #f2f7ff; }
.platform-outcome b, .platform-outcome span, .platform-outcome small { display: block; }
.platform-outcome span { margin-top: 5px; color: #355675; font-size: 14px; font-weight: 800; }
.platform-outcome small { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.platform-outcome.not-entered { opacity: .68; }
.outcome-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #e8edf3; font-size: 16px; }
.outcome-row:last-child { border-bottom: 0; }
.outcome-row span { color: var(--muted); }

.result-hero { padding: 36px; background: linear-gradient(135deg, #123864, #215fa4); color: #fff; border-radius: 22px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; }
.result-hero .eyebrow { color: #8fc4ff; }
.reward-box { padding: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
.reward-box span { color: #bdd1e9; font-size: 14px; }
.reward-box strong { display: block; margin: 4px 0 16px; font-size: 36px; }
.reward-line { display: flex; justify-content: space-between; margin-top: 8px; font-size: 15px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 18px 0; }
.stat-card { padding: 20px; box-shadow: none; }
.stat-card span { color: var(--muted); font-size: 14px; }
.stat-card b { display: block; margin-top: 5px; font-size: 28px; }
.chart-panel { padding: 25px; box-shadow: none; }
.bar-chart { height: 180px; display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.bar-wrap { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; position: relative; }
.bar { width: min(34px, 70%); min-height: 3px; border-radius: 5px 5px 0 0; background: var(--blue); }
.bar.negative { background: var(--red); }
.bar-wrap small { position: absolute; bottom: -21px; color: var(--muted); font-size: 11px; }

.admin-shell { display: grid; grid-template-columns: minmax(210px, 240px) minmax(0, 1fr); gap: clamp(18px, 2vw, 30px); }
.admin-nav { padding: 22px; align-self: start; position: sticky; top: 96px; box-shadow: none; }
.admin-nav b { display: block; margin-bottom: 18px; }
.admin-nav button { width: 100%; text-align: left; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 11px; font-size: 15px; font-weight: 700; }
.admin-nav button.active { color: var(--blue); background: var(--blue-soft); }
.admin-main { min-width: 0; }
.admin-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.admin-panel { padding: 25px; margin-top: 16px; box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .field { margin: 0; }
.profile-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.profile-admin-card { min-width: 0; padding: 18px; border: 1px solid #d3dfec; border-radius: 14px; background: #f8fafc; }
.profile-admin-card legend { padding: 0 8px; color: var(--navy); font-size: 17px; font-weight: 900; }
.profile-admin-card .field + .field { margin-top: 12px; }
.cell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cell { padding: 13px; border-radius: 10px; background: #f6f8fb; border: 1px solid #e1e7ef; }
.cell b { display: block; font-size: 14px; }
.cell span { color: var(--muted); font-size: 12px; }
.cell strong { display: block; color: var(--blue); margin-top: 8px; font-size: 23px; }
.block-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 16px; }
.block-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid #cad9eb; border-radius: 12px; background: #f5f9ff; }
.block-summary span { color: #46617e; font-weight: 800; }
.block-summary b { color: var(--blue); font-size: 25px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #e5ebf2; white-space: nowrap; }
th { color: var(--muted); font-weight: 800; background: #f7f9fc; }
.tag { display: inline-block; padding: 4px 7px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 800; }

.loading-screen { min-height: 60vh; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 16px; }
.spinner { width: 34px; height: 34px; margin: 0 auto 15px; border: 3px solid #dfe7f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 10px; background: #132238; color: #fff; opacity: 0; pointer-events: none; font-size: 15px; transition: .2s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed #ccd6e3; border-radius: 14px; }

@media (max-width: 1180px) {
  .channel-decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-decision-grid .direct-price-card { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .hero, .outcome-grid, .result-hero, .admin-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-copy { padding-bottom: 0; }
  .condition-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .admin-nav b { display: none; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .platform-outcome-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .platform-profile-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-guide-card.channel-direct { grid-column: 1 / -1; }
  .channel-condition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-summary:nth-child(2) { border-right: 0; }
  .channel-summary.channel-direct { grid-column: 1 / -1; border-top: 1px solid #dce5ef; }
}

@media (max-width: 780px) {
  .platform-profile-guide, .profile-admin-grid { grid-template-columns: 1fr; }
  .profile-guide-card.channel-direct { grid-column: auto; }
  .channel-condition-grid, .channel-decision-grid { grid-template-columns: 1fr; }
  .channel-decision-grid .direct-price-card { grid-column: auto; }
  .channel-summary.channel-direct { grid-column: auto; border-top: 0; }
  .channel-summary { border-right: 0; border-bottom: 1px solid #dce5ef; }
  .channel-summary:last-child { border-bottom: 0; }
  .common-product-condition, .common-product-condition.prominent { grid-template-columns: 1fr; gap: 7px; }
  .common-product-condition small { text-align: left; }
  .tutorial-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tutorial-flow i { display: none; }
  .rules-mode-comparison, .rules-checklist { grid-template-columns: 1fr; }
  .mode-arrow { transform: rotate(90deg); }
  .platform-outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand small, .save-status { display: none; }
  #app { min-height: calc(100vh - 62px); }
  .page, .tutorial-page, .outcome-page, .narrow { width: calc(100% - 24px); padding-top: 28px; }
  .steps { width: calc(100% - 12px); height: 64px; }
  .step { gap: 0; }
  .step span { display: none; }
  .step:not(:last-child)::after { width: 60%; right: -30%; }
  .tutorial-purpose { grid-template-columns: 1fr; }
  .tutorial-purpose .purpose-icon { width: 56px; height: 56px; border-radius: 16px; }
  .tutorial-mode-note, .form-grid { grid-template-columns: 1fr; }
  .round-head { align-items: start; flex-wrap: wrap; }
  .round-head h2 { font-size: 30px; }
  .balance { text-align: left; }
  .overview-heading, .section-head { align-items: flex-start; flex-wrap: wrap; }
  .decision-panel, .tutorial-card, .admin-panel { padding: 20px; }
  .policy-badge { min-height: 0; }
  .button-row { flex-wrap: wrap; }
  .button-row .button { flex: 1; }
  .main-rules-screen { min-height: calc(100vh - 62px); padding: 22px 12px; }
  .main-rules-shell { padding: 28px 20px; border-radius: 20px; }
  .rules-confirm-check { font-size: 16px; }
  .platform-outcome-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand b { font-size: 15px; }
  .text-button { font-size: 14px; }
  .tutorial-flow, .result-grid, .summary-grid { grid-template-columns: 1fr; }
  .platform-card-head { flex-wrap: wrap; }
  .button-row { display: grid; grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* Market Lab Design System 2026 — Calm Decision Room                         */
/* ========================================================================== */

:root {
  --ink: #0b172a;
  --ink-2: #33445e;
  --muted: #6b7a90;
  --line: #d8e0eb;
  --line-strong: #becadb;
  --panel: #ffffff;
  --canvas: #f3f6fa;
  --navy: #103b72;
  --blue: #2874d7;
  --blue-deep: #164e9a;
  --blue-soft: #e9f2ff;
  --teal: #087c6b;
  --teal-soft: #e5f6f1;
  --orange: #bd641c;
  --orange-soft: #fff2e6;
  --red: #b53b45;
  --shadow: 0 20px 60px rgba(29, 48, 77, .10);
  --shadow-soft: 0 8px 24px rgba(29, 48, 77, .07);
  --content-max: 1480px;
  --content-gutter: clamp(18px, 4vw, 64px);
}

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(29, 67, 111, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 67, 111, .025) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
  font-family: "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

button, input, select, output { font-variant-numeric: tabular-nums; }
button, input, select { min-height: 44px; }
a, button, input, select, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(40, 116, 215, .42); outline-offset: 3px; }
::selection { color: #fff; background: var(--blue-deep); }

.topbar {
  height: 76px;
  padding-inline: max(var(--content-gutter), calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid rgba(190, 202, 219, .76);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 1px 0 rgba(11, 23, 42, .02);
}

.brand { gap: 13px; }
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 13px;
  background: linear-gradient(145deg, #174c8c, #0c2c54);
  box-shadow: 0 8px 18px rgba(16, 59, 114, .20);
}
.brand b { font-size: 17px; letter-spacing: .14em; }
.brand small { margin-top: 0; color: #5e6f86; font-size: 13px; font-weight: 700; }
.topbar-actions { gap: 16px; }
.study-badge {
  padding: 5px 9px;
  border: 1px solid #cbd9eb;
  border-radius: 999px;
  color: #58708e;
  background: #f6f9fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.save-status { color: #51647e; font-size: 14px; font-weight: 700; }
.save-status i { width: 8px; height: 8px; background: #13a184; box-shadow: 0 0 0 4px #e1f6f0; }
.text-button { min-height: 44px; padding: 0 4px; color: #243d5e; font-size: 15px; }
.text-button:hover { color: var(--blue-deep); }

#app { min-height: calc(100vh - 76px); }
.page { padding-block: clamp(32px, 4.6vw, 70px) clamp(56px, 7vw, 100px); }
.panel, .join-card {
  border-color: rgba(197, 208, 223, .92);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.eyebrow { color: var(--blue-deep); font-size: 13px; letter-spacing: .15em; }
h1 { font-size: clamp(43px, 5.2vw, 72px); line-height: 1.10; letter-spacing: -.055em; }
h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.19; }
h3 { font-size: 23px; }
.lead { color: #43556e; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.75; }
.muted { color: var(--muted); }
.small { font-size: 16px; line-height: 1.65; }

/* Landing */
.hero {
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .72fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 92px);
}
.hero-copy { padding: 0; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 28px; color: #60718a; font-size: 13px; font-weight: 800; }
.hero-status i { width: 3px; height: 3px; border-radius: 50%; background: #9eabba; }
.hero-copy h1 { max-width: 900px; margin: 8px 0 24px; }
.hero-copy h1 em { position: relative; color: var(--blue-deep); }
.hero-copy h1 em::after { content: ""; position: absolute; left: 2px; right: 0; bottom: -5px; height: 7px; border-radius: 8px; background: rgba(40, 116, 215, .13); }
.hero-copy .lead { max-width: 840px; }
.feature-row { grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 26px; }
.feature {
  min-height: 154px;
  padding: 19px 18px;
  border-color: rgba(198, 210, 226, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}
.feature i { display: block; margin-bottom: 18px; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 900; letter-spacing: .12em; }
.feature b { font-size: 17px; }
.feature span { margin-top: 7px; color: #62738a; font-size: 15px; line-height: 1.55; }
.research-note { display: flex; gap: 13px; max-width: 930px; padding: 16px 18px; border-left: 3px solid var(--blue); border-radius: 4px 12px 12px 4px; background: rgba(233, 242, 255, .72); }
.research-note > span { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--blue-deep); font-family: Georgia, serif; font-size: 16px; font-weight: 900; }
.research-note p { margin: 0; color: #53657d; font-size: 15px; line-height: 1.62; }
.research-note strong { color: #233d60; }

.join-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 42px);
  border: 1px solid #c4d1e1;
  border-top: 5px solid var(--blue-deep);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(22, 53, 91, .15);
}
.join-card::after { content: ""; position: absolute; top: -90px; right: -90px; width: 210px; height: 210px; border-radius: 50%; background: rgba(40, 116, 215, .055); pointer-events: none; }
.join-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.join-card .card-icon { width: 52px; height: 52px; margin: 0; border-radius: 15px; font-size: 25px; }
.time-chip { position: relative; z-index: 1; padding: 7px 11px; border-radius: 999px; color: #425975; background: #f2f5f9; font-size: 13px; font-weight: 800; }
.join-card h2 { margin: 5px 0 12px; font-size: clamp(31px, 3vw, 42px); }
.join-intro { margin-bottom: 26px; color: #5b6d84; font-size: 17px; line-height: 1.7; }
.field { gap: 9px; }
.field label, .field-label { color: #293f5d; font-size: 15px; }
.input, .select {
  min-height: 54px;
  padding-inline: 16px;
  border: 1px solid #bac7d8;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfcfe;
}
.pin-input { height: 62px; text-align: center; font-size: 23px; font-weight: 800; letter-spacing: .16em; }
.button {
  min-height: 52px;
  border-radius: 12px;
  background: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(22, 78, 154, .18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { filter: none; background: #0f4389; box-shadow: 0 14px 28px rgba(22, 78, 154, .23); }
.button.secondary:hover { color: var(--blue-deep); background: #f4f8fd; }
.join-button, .decision-submit { display: flex; align-items: center; justify-content: space-between; padding-inline: 22px; }
.join-button i, .decision-submit i { font-style: normal; font-size: 24px; }
.join-checks { display: grid; gap: 6px; margin-top: 20px; color: #5c6f87; font-size: 14px; font-weight: 700; }

/* Progress and tutorial */
.progress-shell { position: sticky; top: 76px; z-index: 15; border-bottom-color: #d7e0eb; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.steps { height: 76px; }
.step { color: #8492a5; font-size: 14px; }
.step i { width: 29px; height: 29px; font-size: 13px; }
.step.active { color: var(--blue-deep); }
.step.active i { background: var(--blue-deep); box-shadow: 0 0 0 6px var(--blue-soft); }
.step.done { color: var(--teal); }
.tutorial-page { width: min(1380px, calc(100% - (var(--content-gutter) * 2))); }
.tutorial-card { overflow: hidden; padding: clamp(28px, 4vw, 56px); border-radius: 24px; box-shadow: var(--shadow); }
.tutorial-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.tutorial-heading h2 { max-width: 1060px; margin-bottom: 20px; }
.tutorial-heading > strong { color: var(--blue-deep); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.06em; }
.tutorial-heading > strong small { color: #9aa7b7; font-size: 18px; letter-spacing: -.02em; }
.tutorial-meter { height: 5px; overflow: hidden; margin: 4px 0 30px; border-radius: 999px; background: #e8edf4; }
.tutorial-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-deep), #48a3e8); transition: width .3s ease; }
.tutorial-visual { margin-bottom: 26px; padding: clamp(24px, 3vw, 40px); border: 1px solid #d7e3f1; border-radius: 20px; background: linear-gradient(145deg, #edf5ff, #f8fbff); }
.tutorial-copy { padding: 18px 20px; border-left: 3px solid #9abbe2; border-radius: 3px 12px 12px 3px; color: #445872; background: #f7f9fc; font-size: clamp(17px, 1.35vw, 20px); font-weight: 650; line-height: 1.72; }
.tutorial-card .button-row { padding-top: 6px; }
.tutorial-flow div, .demand-factor, .condition-guide-grid > div, .decision-guide-grid > div { border-color: #cddaea; border-radius: 16px; box-shadow: 0 5px 14px rgba(34, 62, 97, .04); }
.demand-factor b, .condition-guide-grid span { font-size: 18px; }
.demand-factor span, .condition-guide-grid p, .decision-guide-grid span { color: #425b79; font-size: clamp(17px, 1.25vw, 19px); font-weight: 650; }
.quiz-option {
  display: grid;
  min-height: 54px;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  padding: 15px 17px;
  font-size: 17px;
  line-height: 1.55;
  cursor: pointer;
}
.quiz-option input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  align-self: center;
  accent-color: var(--blue-deep);
}
.quiz-option > span { min-width: 0; align-self: center; line-height: 1.55; }
.quiz-option:has(input:checked) { border-color: #72a2dc; background: #eef5ff; }

/* Selection controls share one alignment system. Global form controls are
   44px tall, but native radio/checkbox glyphs must keep their visual size. */
.rules-confirm-check {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
}
.rules-confirm-check input[type="checkbox"] {
  width: 23px;
  height: 23px;
  min-height: 23px;
  margin: 0;
  align-self: center;
}
.rules-confirm-check > span { min-width: 0; align-self: center; }
.entry-choice {
  display: grid;
  grid-template-columns: 19px auto;
  align-items: center;
  column-gap: 8px;
}
.entry-choice input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin: 0;
}
.entry-choice > span { min-width: 0; line-height: 1.25; }

/* Round context and conditions */
.round-head { align-items: center; padding: 22px 24px; border: 1px solid #d2dce9; border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-soft); }
.round-badge { padding: 7px 11px; font-size: 13px; letter-spacing: .04em; }
.round-head h2 { font-size: clamp(31px, 3vw, 43px); }
.balance { padding-left: 28px; border-left: 1px solid #d6dee9; }
.balance span { font-size: 14px; font-weight: 700; }
.balance b { color: var(--blue-deep); font-size: 31px; }
.condition-overview { border-color: #c7d3e2; border-radius: 20px; box-shadow: var(--shadow-soft); }
.overview-heading { padding: 18px 22px; background: #f8fafc; }
.overview-heading div span { color: #60738c; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.overview-heading div b { font-size: 22px; }
.overview-heading > small { color: #3e5e84; background: #e9eef5; }
.common-product-condition.prominent {
  gap: 14px;
  padding: 22px 24px;
  border-bottom-color: #abc1df;
  background: linear-gradient(105deg, #e5f0ff, #f6faff 76%);
}
.common-product-condition.prominent span { color: #174e95; background: rgba(255,255,255,.8); }
.common-product-condition.prominent b { color: #102f58; }
.common-product-condition.prominent small { color: #46617f; }
.channel-summary::before { height: 6px; background: var(--blue-deep); }
.channel-summary.platform-b::before { background: var(--teal); }
.channel-summary.channel-direct::before { background: #64748b; }
.channel-summary header { padding: 20px 20px 15px; }
.channel-summary header strong { font-size: 25px; }
.channel-summary header span { color: #5b7089; font-size: 16px; }
.channel-summary dl > div, .channel-facts > div { padding: 13px 18px; }
.channel-summary dt, .channel-facts dt { color: #60738a; font-size: 15px; }
.channel-summary dd, .channel-facts dd { color: #183552; font-size: 18px; }

/* Decisions */
.decision-grid { gap: 20px; }
.decision-panel { padding: clamp(24px, 3vw, 40px); border-radius: 22px; }
.drag-banner { padding: 16px 18px; border-color: #a9c4e6; border-radius: 14px; color: #365574; background: #eef5ff; font-size: 16px; font-weight: 650; }
.drag-banner strong { color: #123d72; font-size: 17px; }
.decision-section + .decision-section { margin-top: 34px; padding-top: 32px; }
.section-head h3 { margin: 0; font-size: 26px; }
.section-head p { color: #405b77; font-size: 18px; font-weight: 700; }
.platform-price-note { padding: 14px 16px; border: 1px solid #d8e1ec; border-radius: 12px; color: #536b84; background: #f8fafc; font-size: 16px; }
.channel-decision-grid { gap: 16px; }
.platform-decision-card { overflow: hidden; padding: 22px; border-color: #cfd9e6; border-radius: 18px; background: #fbfcfe; }
.platform-decision-card::before { content: ""; display: block; height: 5px; margin: -22px -22px 20px; background: var(--blue-deep); }
.platform-decision-card.platform-b::before { background: var(--teal); }
.platform-decision-card.direct-price-card::before { background: #64748b; }
.platform-decision-card.selected { border-color: #7ba6da; background: #f5f9ff; box-shadow: 0 0 0 3px rgba(40,116,215,.08); }
.platform-decision-card.platform-b.selected { border-color: #69b7a7; background: #f3fbf8; }
.platform-card-head strong { font-size: 25px; }
.platform-card-head div > span { font-size: 16px; }
.entry-choice { min-height: 44px; border-color: #aebfd3; border-radius: 11px; font-size: 15px; }
.channel-facts { border-radius: 12px; }
.policy-badge { min-height: 154px; padding: 14px; border-radius: 12px; }
.policy-badge span { font-size: 16px; }
.policy-live { font-size: 16px; }
.demo-range-head label { font-size: 17px; }
.demo-range-head output, .value-pill { min-width: 80px; padding: 8px 11px; border-radius: 10px; font-size: 18px; }
input[type="range"] { height: 12px; margin: 19px 0 15px; background: #cddbea; }
input[type="range"]::-webkit-slider-thumb { width: 32px; height: 32px; border-width: 5px; box-shadow: 0 4px 12px rgba(22,69,134,.33), 0 0 0 2px var(--blue); }
input[type="range"]::-moz-range-thumb { width: 23px; height: 23px; border-width: 5px; }
.range-labels { color: #526982; font-size: 15px; }
.range-help { color: #294f76; font-size: 18px; }
.policy-validation { padding: 15px 17px; border-radius: 12px; font-size: 16px; }
.decision-submit { position: sticky; bottom: 16px; z-index: 6; min-height: 60px; margin-top: 30px; border: 4px solid rgba(255,255,255,.75); border-radius: 16px; font-size: 18px; }
.market-panel { padding: clamp(26px, 3vw, 40px); border-radius: 22px; background: linear-gradient(145deg, #12365f, #081f3a); box-shadow: 0 18px 42px rgba(8,31,58,.18); }
.market-panel h3 { font-size: 25px; }
.metric { padding: 16px 0; font-size: 16px; }
.metric b { font-size: 19px; }
.metric.total b { font-size: 25px; }
.locked-market-panel { min-height: 330px; }

/* Rules, outcomes, results */
.main-rules-screen { min-height: calc(100vh - 76px); background: radial-gradient(circle at 50% 0, rgba(40,116,215,.13), transparent 48rem), var(--canvas); }
.main-rules-shell { border-color: #c3d1e2; border-radius: 26px; box-shadow: var(--shadow); }
.rules-lead { color: #40566f; font-size: 20px; }
.mode-card, .rules-checklist > div { border-radius: 16px; }
.mode-card p { color: #4c627b; font-size: 18px; }
.rules-checklist span { color: #4f657e; font-size: 18px; }
.rules-important, .rules-price-policy, .rules-confirm-check { font-size: 17px; }
.outcome-grid { gap: 20px; }
.profit-card { border-radius: 22px; background: linear-gradient(145deg, #12437f, #0b2d55); box-shadow: 0 18px 40px rgba(17,58,107,.18); }
.profit-card .profit { font-size: clamp(46px, 6vw, 70px); }
.outcome-details { border-radius: 22px; }
.outcome-row { padding: 13px 0; font-size: 17px; }
.platform-outcome { padding: 15px; border-radius: 13px; }
.platform-outcome b { font-size: 17px; }
.platform-outcome span { font-size: 15px; }
.platform-outcome small { font-size: 14px; }
.result-hero { padding: clamp(30px, 4vw, 52px); border-radius: 24px; background: linear-gradient(135deg, #113c72, #1d62aa); box-shadow: var(--shadow); }
.reward-box { border-radius: 18px; }
.stat-card { padding: 23px; border-radius: 16px; }
.stat-card span { font-size: 15px; }
.stat-card b { font-size: 30px; }
.chart-panel { padding: 28px; border-radius: 18px; }

/* Admin */
.admin-shell { grid-template-columns: minmax(230px, 260px) minmax(0, 1fr); gap: 28px; }
.admin-nav { top: 105px; overflow: hidden; padding: 14px; border-radius: 18px; background: #102f55; }
.admin-nav b { padding: 10px 12px 15px; color: #fff; font-size: 18px; }
.admin-nav button { min-height: 48px; margin-top: 4px; padding: 11px 13px; color: #b7c6d9; border-radius: 11px; font-size: 16px; }
.admin-nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav button.active { color: #fff; background: #2b73c7; }
.admin-title { padding: 0 2px; }
.summary-grid { gap: 14px; }
.admin-panel { padding: clamp(22px, 2.6vw, 34px); border-radius: 18px; }
.admin-panel > h3 { font-size: 24px; }
.block-summary > div { border-radius: 13px; }
.cell-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 10px; }
.cell { padding: 16px; border-radius: 12px; background: #f7f9fc; }
.cell b { font-size: 15px; }
.cell span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; }
.cell strong { font-size: 25px; }
.table-wrap { border: 1px solid #dbe2ec; border-radius: 12px; }
table { font-size: 15px; }
th, td { padding: 13px 12px; }
th { color: #50647d; background: #f2f5f9; }

.loading-screen { font-size: 17px; }
.toast { max-width: min(560px, calc(100vw - 30px)); padding: 14px 19px; border-radius: 12px; font-size: 16px; }

/* Laptop-height layout: keep tutorial navigation visible without shrinking
   the wide-screen cards into narrow columns. */
@media (min-width: 781px) and (max-height: 900px) {
  .topbar { height: 60px; }
  .brand-mark { width: 36px; height: 36px; padding: 8px; border-radius: 11px; }
  .brand b { font-size: 15px; }
  .brand small { font-size: 11px; }
  #app { min-height: calc(100svh - 60px); }
  .progress-shell { top: 60px; }
  .steps { height: 50px; }
  .step { font-size: 13px; }
  .step i { width: 26px; height: 26px; }
  .tutorial-page { padding-block: 12px 16px; }
  .tutorial-card {
    display: grid;
    height: calc(100svh - 60px - 50px - 28px);
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 18px 26px;
    border-radius: 18px;
  }
  .tutorial-heading { gap: 18px; }
  .tutorial-heading h2 { margin: 0 0 8px; font-size: clamp(25px, 2.4vw, 33px); line-height: 1.2; }
  .tutorial-heading > strong { font-size: 34px; }
  .tutorial-heading > strong small { font-size: 14px; }
  .tutorial-meter { margin: 0 0 10px; }
  .tutorial-body-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; scrollbar-gutter: stable; }
  .tutorial-visual { margin-bottom: 10px; padding: 15px 18px; border-radius: 15px; }
  .tutorial-copy { padding: 11px 14px; font-size: 16px; line-height: 1.52; }
  .tutorial-card .button-row { flex: 0 0 auto; margin-top: 10px; padding-top: 0; }
  .tutorial-card .button { min-height: 44px; padding: 10px 19px; font-size: 15px; }
  .tutorial-flow, .demand-factor-grid, .condition-guide-grid, .decision-guide-grid, .platform-profile-guide { gap: 10px; }
  .demand-factor, .condition-guide-grid > div, .decision-guide-grid > div { padding: 13px 14px; }
  .demand-factor b, .condition-guide-grid span { font-size: 16px; }
  .demand-factor span, .condition-guide-grid p, .decision-guide-grid span { font-size: 15px; line-height: 1.45; }
  .profile-guide-card header, .profile-guide-card dl > div { padding-block: 10px; }
  .quiz-option { min-height: 44px; padding: 10px 13px; font-size: 15px; }
  .tutorial-quiz h3 { margin-block: 12px 8px; font-size: 17px; }
}

@media (min-width: 781px) and (max-height: 720px) {
  .topbar { height: 54px; }
  .progress-shell { top: 54px; }
  .steps { height: 44px; }
  .tutorial-page { padding-block: 8px 10px; }
  .tutorial-card { height: calc(100svh - 54px - 44px - 18px); padding: 13px 22px; }
  .tutorial-heading h2 { font-size: 24px; }
  .tutorial-heading > strong { font-size: 30px; }
  .tutorial-visual { padding: 12px 15px; }
  .tutorial-copy { font-size: 15px; }
  .tutorial-card .button-row { margin-top: 7px; }
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr minmax(360px, .72fr); gap: 40px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature { min-height: 0; display: grid; grid-template-columns: 38px 1fr; gap: 1px 10px; }
  .feature i { grid-row: 1 / span 2; margin: 2px 0 0; }
  .feature span { grid-column: 2; }
  .channel-decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .feature-row { grid-template-columns: repeat(3, 1fr); }
  .feature { display: block; }
  .feature i { margin-bottom: 14px; }
  .feature span { display: block; }
  .join-card { width: min(680px, 100%); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; gap: 6px; overflow-x: auto; background: #102f55; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .common-product-condition.prominent { grid-template-columns: auto minmax(0, 1fr) auto; }
  .common-product-condition.prominent small { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 900px) {
  .channel-decision-grid { grid-template-columns: 1fr; }
  .channel-decision-grid .direct-price-card { grid-column: auto; }
}

@media (max-width: 780px) {
  body { font-size: 17px; }
  .topbar { height: 68px; }
  #app { min-height: calc(100vh - 68px); }
  .progress-shell { top: 68px; }
  .hero { padding-top: 38px; }
  .hero-status { margin-bottom: 20px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature { min-height: 0; display: grid; grid-template-columns: 38px 1fr; }
  .feature i { grid-row: 1 / span 2; }
  .feature span { grid-column: 2; }
  .tutorial-heading > strong { font-size: 42px; }
  .common-product-condition.prominent { grid-template-columns: 1fr; }
  .channel-condition-grid, .channel-decision-grid { grid-template-columns: 1fr; }
  .channel-decision-grid .direct-price-card { grid-column: auto; }
  .decision-submit { bottom: 10px; }
  .balance { padding-left: 0; border-left: 0; text-align: left; }
  .rules-checklist span { font-size: 17px; }
}

@media (max-width: 600px) {
  .topbar { padding-inline: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand b { font-size: 14px; }
  .brand small, .study-badge, .save-status { display: none; }
  .page, .tutorial-page, .outcome-page, .narrow { width: calc(100% - 24px); }
  .steps { height: 58px; }
  .step i { width: 28px; height: 28px; }
  .hero { padding-block: 32px 56px; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-status { gap: 7px; font-size: 11px; }
  .join-card { padding: 26px 22px; border-radius: 20px; }
  .tutorial-card, .decision-panel, .admin-panel { padding: 22px 18px; }
  .tutorial-heading { gap: 14px; }
  .tutorial-heading h2 { font-size: 30px; }
  .tutorial-heading > strong { font-size: 34px; }
  .tutorial-heading > strong small { font-size: 13px; }
  .tutorial-copy { padding: 15px 16px; font-size: 17px; }
  .round-head { padding: 18px; }
  .round-head h2 { font-size: 29px; }
  .overview-heading { padding: 16px 17px; }
  .overview-heading > small { display: none; }
  .common-product-condition.prominent { padding: 18px; }
  .platform-decision-card { padding: 18px; }
  .platform-decision-card::before { margin: -18px -18px 18px; }
  .platform-card-head { flex-wrap: wrap; }
  .entry-choice { width: 100%; justify-content: center; }
  .range-labels { gap: 10px; font-size: 13px; }
  .range-labels span:nth-child(2):not(:last-child) { text-align: center; }
  .decision-submit { min-height: 58px; }
  .rules-mode-comparison { grid-template-columns: 1fr; }
  .mode-arrow { transform: rotate(90deg); }
  .result-hero { grid-template-columns: 1fr; }
  .admin-title { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .topbar-actions { gap: 4px; }
  .text-button { font-size: 14px; }
  .hero-status span:nth-of-type(2) { display: none; }
  .feature { padding: 16px; }
  .research-note { padding: 14px; }
  .join-checks { font-size: 13px; }
  .tutorial-heading > strong { display: none; }
  .step:not(:last-child)::after { width: 52%; right: -26%; }
  .button-row { grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
