/* 컴포넌트 스타일 */

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn[data-armed="1"] { border-color: var(--neg); color: var(--neg); }
.btn-invert { background: var(--surface); color: var(--accent); border-color: var(--surface); }

/* ---------- 진행 단계 ---------- */
.stepper-wrap { margin-bottom: 16px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 8px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stepper-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0; border-top: 3px solid var(--line);
  background: transparent; cursor: pointer; text-align: left; color: var(--muted);
}
.stepper-no { font-family: var(--font-mono); font-size: var(--fs-xs); }
.stepper-label { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .stepper-btn { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 4px 4px; }
  .stepper-label { font-size: var(--fs-xs); }
}
.stepper-btn.is-done { border-top-color: var(--accent); color: var(--ink); }
.stepper-btn.is-current { border-top-color: var(--accent); color: var(--accent); }
.stepper-btn.is-current .stepper-label { color: var(--ink); }

/* ---------- 입력 카드 ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px); min-width: 0;
  display: grid; gap: 18px;
}
#stepView, [data-live="resultPage"] { display: grid; gap: 18px; min-width: 0; }
.step-head { display: grid; gap: 4px; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--accent); }
.step-head h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.step-desc { color: var(--muted); font-size: var(--fs-sm); }
.group-title { font-size: var(--fs-md); font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); padding-block-start: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-label { font-size: var(--fs-sm); font-weight: 600; }
.badge {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px;
  font-size: 0.6875rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); vertical-align: 1px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.input.num { text-align: right; padding-right: 64px; font-variant-numeric: tabular-nums; font-weight: 600; }
.input::placeholder { color: var(--muted); opacity: .7; font-weight: 400; }
.input:focus { outline: none; border-color: var(--focus); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.suffix { position: absolute; right: 14px; font-size: var(--fs-sm); color: var(--muted); pointer-events: none; }
.help { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.hint { font-size: var(--fs-xs); color: var(--accent); font-variant-numeric: tabular-nums; min-height: 0; }
.hint:empty, .err:empty { display: none; }
.err { font-size: var(--fs-xs); color: var(--neg); font-weight: 500; }
.field.has-err .input { border-color: var(--neg); }
.field.has-warn .err { color: var(--warn-ink); }
.readonly {
  min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 14px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); font-weight: 600;
}

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; background: var(--surface-2); justify-self: start; }
.seg-btn { min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; padding: 0 16px; }
.seg-btn[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

.subgroup { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.subgroup legend { padding: 0 6px; font-size: var(--fs-sm); font-weight: 700; }

/* OCC 객실 시각화 */
.occ-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 640px) { .occ-row { grid-template-columns: minmax(0, 1fr); } }
.occ-visual { padding-top: 26px; display: grid; gap: 6px; }
.rooms { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.room { position: relative; height: 26px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; }
.room i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width .2s; }
.rooms-cap { font-size: var(--fs-xs); color: var(--muted); }
.rooms-cap b { color: var(--ink); }
@media (max-width: 640px) { .occ-visual { padding-top: 0; } }

.field-with-live { display: grid; gap: 4px; min-width: 0; }
.live-inline { font-size: var(--fs-xs); color: var(--ink); font-variant-numeric: tabular-nums; }

/* 단계 하단 결과 박스 */
.live-box {
  border-radius: var(--radius-sm); background: var(--accent-soft);
  padding: 18px 20px; display: grid; gap: 14px;
}
.box-head { display: grid; gap: 2px; }

.share { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-row { display: grid; grid-template-columns: 7.5em minmax(40px, 1fr) auto 3.6em; gap: 10px; align-items: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.share-row.is-zero { color: var(--muted); }
.share-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 14%, transparent); overflow: hidden; }
.share-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.share-val { text-align: right; font-weight: 600; }
.share-pct { text-align: right; color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 480px) {
  .share-row { grid-template-columns: 1fr auto 3.4em; }
  .share-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 숫자 표시 ---------- */
.kpi-label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.kpi-label small { font-weight: 400; }
.fig { font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.fig-md { font-size: var(--fs-2xl); }
.fig-lg { font-size: var(--fs-3xl); }
.fig.is-neg, .is-neg { color: var(--neg); }
.fig-sub { font-size: var(--fs-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
.fig-exact { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 480px) { .fig-md { font-size: 1.625rem; } .fig-lg { font-size: 2rem; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi-hero { background: var(--accent); }
.kpi-hero .kpi-label, .kpi-hero .fig-sub { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.kpi-hero .fig { color: var(--accent-ink); }
.kpi-hero .fig.is-neg { color: var(--accent-ink); }
.kpi-hero .fig.is-neg::before { content: '손실 '; font-size: .5em; vertical-align: middle; }
.kpi-hero .fig-exact { color: color-mix(in srgb, var(--accent-ink) 65%, transparent); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-hero { grid-column: 1 / -1; order: -1; } .kpi:last-child { grid-column: 1 / -1; } }

/* ---------- 실시간 패널 ---------- */
.live-panel {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px;
}
.panel-title { font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.panel-list { margin: 0; display: grid; gap: 10px; }
.panel-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-list dt { font-size: var(--fs-sm); color: var(--muted); }
.panel-list dd { margin: 0; font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.panel-list .is-key dd { font-size: var(--fs-xl); color: var(--gold); }
.panel-list .is-key dd.is-neg { color: var(--neg); }

.note { font-size: var(--fs-xs); line-height: 1.5; border-radius: var(--radius-sm); padding: 8px 10px; }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- 단계 이동 ---------- */
.step-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); padding-block-start: 18px; }
#app[data-step="3"] .step-nav:empty, #app[data-step="3"] #stepNav { display: none; }

/* ---------- 결과 화면 ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; min-width: 0; background: var(--surface); }
.card h3 { font-size: var(--fs-lg); font-weight: 700; }
.card > .btn { justify-self: start; }
.summary p { max-width: 62ch; }
.summary p:first-of-type { font-weight: 600; }
.fine { font-size: var(--fs-xs); color: var(--muted); }

.rows { margin: 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.rows dt { color: var(--muted); font-size: var(--fs-sm); }
.rows dt small { font-size: var(--fs-xs); }
.rows dd { margin: 0; text-align: right; }
.yield { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; flex-wrap: wrap; }
.yield span { font-weight: 600; }
.yield small { color: var(--muted); font-weight: 400; }
.yield b { font-size: var(--fs-2xl); color: var(--gold); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scn { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
.scn th, .scn td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.scn thead th { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.scn tbody th { text-align: left; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.scn .is-base { background: var(--accent-soft); }
.scn thead .is-base { color: var(--accent); }
.scn .is-assume td { color: var(--muted); font-size: var(--fs-sm); }
.scn .is-key td { font-size: var(--fs-lg); }
@media (max-width: 640px) {
  .form-card { padding: 16px 14px; }
  .card { padding: 16px 14px; }
  .scn { min-width: 300px; font-size: var(--fs-sm); }
  .scn th, .scn td { padding: 8px 6px; }
  .scn .is-key td { font-size: var(--fs-md); }
}

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cta { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; }
.cta h3 { font-size: var(--fs-xl); }
.cta p { max-width: 62ch; opacity: .92; font-size: var(--fs-sm); }
.cta .btn { justify-self: start; margin-top: 8px; }
.cta-msg { font-weight: 600; opacity: 1 !important; }

/* ---------- 모바일 하단 바 ---------- */
.mobilebar { display: none; }
@media (max-width: 860px) {
  .mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / .06);
  }
  .mobilebar > div:first-child { min-width: 0; flex: 1; }
  .mobilebar.is-off { display: none; }
}
.mb-figs { display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.mb-figs span { display: grid; line-height: 1.25; min-width: 0; }
.mb-figs small { font-size: 0.6875rem; color: var(--muted); }
.mb-figs b { font-size: var(--fs-md); white-space: nowrap; }
.mb-figs span:nth-child(2) b { color: var(--gold); }
.mb-figs b.is-neg { color: var(--neg); }
@media (max-width: 380px) { .mb-figs span:nth-child(3) { display: none; } }

/* ---------- 리포트 ---------- */
.report { padding-block: 20px; display: grid; gap: 14px; }
.rp-toolbar { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rp-tools { display: flex; gap: 6px; }
.rp-paper {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 48px); display: grid; gap: 28px; max-width: 860px; width: 100%; margin: 0 auto; min-width: 0;
}
.rp-head { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.rp-head h2 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.rp-meta { color: var(--muted); font-size: var(--fs-sm); }
.rp-headline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rp-headline div { display: grid; gap: 2px; }
.rp-headline span { font-size: var(--fs-xs); color: var(--muted); }
.rp-headline b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.rp-headline div:nth-child(3) b { color: var(--gold); }
@media (max-width: 560px) { .rp-headline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-sec { display: grid; gap: 10px; min-width: 0; }
.rp-sec h3 { font-size: var(--fs-lg); display: flex; align-items: baseline; gap: 10px; }
.rp-no { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); }
.rp-sec p { max-width: 65ch; }
.rp-sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--muted); font-size: var(--fs-sm); }
.rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-table th, .rp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-table tbody th { text-align: left; font-weight: 500; color: var(--muted); font-size: var(--fs-sm); width: 40%; }
.rp-table td { text-align: right; font-weight: 600; }
.rp-table td small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.rp-table tr.is-total th, .rp-table tr.is-total td { color: var(--ink); font-weight: 700; background: var(--surface-2); }
.rp-scn { min-width: 420px; }
.rp-scn thead th { text-align: right; font-size: var(--fs-sm); color: var(--muted); }
.rp-scn tbody th { width: auto; }
.rp-foot { font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.rp-copied { text-align: center; font-size: var(--fs-sm); color: var(--accent); }
.rp-copybox { width: 100%; min-height: 140px; font: inherit; font-size: var(--fs-sm); padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* ---------- 첫 인트로 화면 ---------- */
#root[data-view="landing"] .shell, #root[data-view="landing"] .mobilebar { display: none !important; }
#root:not([data-view="landing"]) .landing { display: none; }
.landing {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-inline: var(--gutter); padding-block: 20px 24px;
  max-width: 1120px; margin: 0 auto;
}
.landing-brand { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.landing-center { display: grid; justify-items: center; align-content: center; gap: 28px; text-align: center; padding-block: 48px; }
.landing-rooms { display: grid; grid-template-columns: repeat(10, 14px); gap: 5px; }
.landing-rooms i { height: 14px; border-radius: 3px; background: var(--accent-soft); animation: room-on .5s ease-out forwards; }
.landing-rooms i:nth-child(-n+7) { animation-name: room-sold; }
.landing-rooms i:nth-child(1) { animation-delay: .05s } .landing-rooms i:nth-child(2) { animation-delay: .12s }
.landing-rooms i:nth-child(3) { animation-delay: .19s } .landing-rooms i:nth-child(4) { animation-delay: .26s }
.landing-rooms i:nth-child(5) { animation-delay: .33s } .landing-rooms i:nth-child(6) { animation-delay: .40s }
.landing-rooms i:nth-child(7) { animation-delay: .47s }
@keyframes room-sold { to { background: var(--accent); } }
@keyframes room-on { to { background: var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .landing-rooms i:nth-child(-n+7) { background: var(--accent); } }
.landing-title {
  font-size: clamp(2.25rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15;
}
.landing-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  font-size: var(--fs-md); font-weight: 500; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.landing-cta:hover { border-color: var(--accent); }
.landing-arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); transition: transform .2s; flex: none;
}
.landing-cta:hover .landing-arrow, .landing-cta:focus-visible .landing-arrow { transform: translateX(4px); }
.landing-foot { text-align: center; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 420px) { .landing-cta { font-size: var(--fs-sm); padding-left: 16px; gap: 10px; text-align: left; } }

.brand { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }

/* ---------- STEP 01 대화형 입력 ---------- */
.chat { display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.msg-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft);
  display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; place-content: center;
}
.msg-avatar i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.msg-avatar i:nth-child(4) { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.msg-bot .bubble {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: 12px 16px; max-width: 34rem; display: grid; gap: 4px; min-width: 0;
}
.ask { font-weight: 600; font-size: var(--fs-md); }
.msg-bot.is-new .ask { font-size: var(--fs-lg); }
.ask-sub { font-size: var(--fs-sm); color: var(--muted); }
.msg-user { justify-content: flex-end; }
.msg-user .bubble {
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-weight: 600; text-align: right;
  display: inline-flex; align-items: baseline; gap: 10px; max-width: 80%;
}
.msg-user .bubble small { font-size: var(--fs-xs); font-weight: 500; opacity: .7; }
.msg-user .bubble:hover small { opacity: 1; text-decoration: underline; }
.msg-bot.is-new { animation: msg-in .25s ease-out; }
@keyframes msg-in { from { transform: translateY(6px); } }
.msg-reply { justify-content: flex-end; }
.reply-form { width: min(100%, 22rem); display: grid; gap: 8px; }
.reply-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--surface); color: var(--accent); font-weight: 700; font-size: var(--fs-md); cursor: pointer;
}
.chip:hover, .chip.is-picked { background: var(--accent); color: var(--accent-ink); }
.reply-form .reply-chips { justify-content: flex-start; }
.reply-form .chip { min-height: 38px; padding: 0 16px; font-size: var(--fs-sm); font-weight: 600; }
.reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.reply-end { padding-left: 42px; justify-content: flex-start; }
@media (max-width: 480px) { .reply-form { width: 100%; } .msg-reply { padding-left: 0; } }

@media (max-width: 860px) { .live-panel { display: none; } }
#stepNav:empty { display: none; }

.chat-head { display: flex; justify-content: space-between; align-items: baseline; }
.chat-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.hl { color: var(--accent); font-size: 1.15em; }
.hl.is-neg { color: var(--neg); }
.msg-bot.is-end .bubble { gap: 10px; }
.share-compact { min-width: min(100%, 22rem); }
.reply-live { padding-top: 2px; }
.reply-live .rooms { grid-template-columns: repeat(10, minmax(0, 1fr)); }

/* ---------- 인트로: 검색창 연출 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.landing-center { gap: 22px; }
.searchbar {
  width: auto; max-width: 100%; min-height: 68px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer; text-align: left;
  box-shadow: 0 2px 6px rgb(20 30 60 / .06), 0 12px 36px rgb(20 30 60 / .10);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.searchbar:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 2px 8px rgb(20 30 60 / .08), 0 18px 44px rgb(20 30 60 / .14); }
.searchbar:active { transform: scale(.995); }
.searchbar-icon { flex: none; color: var(--muted); }
.searchbar-text { flex: 0 1 auto; min-width: 0; padding-right: 28px; font-size: clamp(1.0625rem, 3.6vw, 1.375rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 3px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.searchbar-go {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); transition: transform .2s;
}
.searchbar:hover .searchbar-go, .searchbar:focus-visible .searchbar-go { transform: translateX(3px); }
.landing-sub { font-size: clamp(1rem, 2.6vw, 1.125rem); color: var(--muted); font-weight: 500; }
@media (max-width: 420px) {
  .searchbar { min-height: 60px; padding-left: 16px; gap: 10px; }
  .searchbar-text { padding-right: 12px; }
  .searchbar-go { width: 42px; height: 42px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .searchbar { box-shadow: 0 0 0 1px var(--line), 0 12px 36px rgb(0 0 0 / .4); } }
:root[data-theme="dark"] .searchbar { box-shadow: 0 0 0 1px var(--line), 0 12px 36px rgb(0 0 0 / .4); }

/* 타이핑 중에도 검색창 폭이 변하지 않도록 전체 문장 폭을 미리 확보 */
.searchbar-text { display: grid; }
.searchbar-text > .ghost, .searchbar-text > .typed { grid-area: 1 / 1; }
.searchbar-text > .ghost { visibility: hidden; padding-right: 6px; }
.searchbar-text > .typed { display: flex; align-items: center; }

.landing-sub strong { color: var(--ink); font-weight: 700; }
.landing-sub strong::before { content: ''; }

/* 좁은 화면: 검색창이 한 줄에 들어가도록 아이콘을 숨기고 글자를 줄임 */
@media (max-width: 420px) {
  .searchbar { padding-left: 20px; gap: 8px; }
  .searchbar-icon { display: none; }
  .searchbar-text { font-size: 1.0625rem; padding-right: 4px; }
}
@media (max-width: 370px) {
  .searchbar-text { font-size: 0.9375rem; }
  .searchbar-go { width: 38px; height: 38px; }
}
@media (max-width: 340px) { .searchbar { padding-left: 14px; } .searchbar-text { font-size: 0.875rem; } }

.landing { grid-template-rows: auto 1fr; padding-bottom: 64px; }
.landing-sub + .landing-types { margin-top: -12px; }
.landing-types { font-size: var(--fs-sm); color: var(--muted); opacity: .85; letter-spacing: 0.02em; }

/* =========================================================
   대화형 입력: 메신저 스타일 (위 기존 대화 스타일을 덮어씀)
   ========================================================= */
:root { --chat-bg: #E9F0EF; --bubble-bot: #FFFFFF; --bubble-user: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chat-bg: #111A1A; --bubble-bot: #1D2A2A; } }
:root[data-theme="dark"] { --chat-bg: #111A1A; --bubble-bot: #1D2A2A; }

.form-card.is-chat { background: var(--chat-bg); border-color: transparent; padding: clamp(18px, 3vw, 28px) clamp(14px, 3vw, 28px) 28px; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; }

.chat { display: grid; gap: 22px; }
.msg { display: flex; gap: 10px; min-width: 0; }
.msg-bot { align-items: flex-start; }
.msg-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 14px; background: var(--accent);
  display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; place-content: center;
}
.msg-avatar i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent-ink); }
.msg-avatar i:nth-child(4) { opacity: .35; }
.msg-body { display: grid; gap: 6px; justify-items: start; min-width: 0; max-width: min(34rem, 100%); }
.msg-name { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; padding-left: 2px; }

.msg-bot .bubble {
  background: var(--bubble-bot); border: 0; color: var(--ink);
  border-radius: 4px 20px 20px 20px; padding: 12px 16px;
  box-shadow: 0 1px 2px rgb(20 30 60 / .06);
  display: grid; gap: 4px; max-width: 100%;
}
.msg-bot .bubble + .bubble { border-radius: 20px; }
.ask { font-weight: 500; font-size: 1rem; line-height: 1.55; }
.msg-bot.is-new .ask { font-size: 1rem; font-weight: 600; }
.ask-sub { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

.msg-user { flex-direction: column; align-items: flex-end; gap: 4px; }
.msg-user .bubble {
  background: var(--bubble-user); color: var(--accent-ink); border: 0; cursor: pointer;
  border-radius: 20px 4px 20px 20px; padding: 11px 18px; font-weight: 600; font-size: 1rem;
  max-width: 80%; text-align: right; display: inline-block;
  box-shadow: 0 1px 2px rgb(20 30 60 / .08);
}
.msg-user .bubble:hover { filter: brightness(1.08); }
.msg-edit { font-size: 0.6875rem; color: var(--muted); padding-right: 4px; opacity: 0; transition: opacity .15s; }
.msg-user:hover .msg-edit, .msg-user:focus-within .msg-edit { opacity: 1; }
@media (hover: none) { .msg-edit { opacity: .8; } }

/* 입력 중… 표시 */
.typing-dots { display: none; background: var(--bubble-bot); border-radius: 4px 20px 20px 20px; padding: 14px 16px; gap: 5px; box-shadow: 0 1px 2px rgb(20 30 60 / .06); }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: dot 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: .9; } }
.chat.is-typing .msg-bot.is-new .typing-dots { display: inline-flex; }
.chat.is-typing .msg-bot.is-new .bubble { display: none; }
.chat.is-typing .msg-reply { visibility: hidden; }
.msg-bot.is-new .bubble, .msg-reply { animation: pop-in .28s ease-out; }
@keyframes pop-in { from { transform: translateY(8px) scale(.98); } }

/* 답장 영역 */
.msg-reply { justify-content: flex-end; scroll-margin-bottom: 24px; }
.reply-form { width: min(100%, 24rem); display: grid; gap: 10px; }
.reply-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.reply-form .reply-chips { justify-content: flex-end; }
.chip, .reply-form .chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--bubble-bot); color: var(--accent); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.chip:active { transform: scale(.97); }
.chip:hover, .chip.is-picked { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-lg { min-height: 50px; padding: 0 28px; font-size: var(--fs-md); }
.chip-soft { border-style: dashed; color: var(--muted); border-color: var(--line); }
.chip-soft:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }

.composer { display: flex; align-items: center; gap: 8px; }
.composer-box { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.composer-input {
  width: 100%; min-height: 52px; padding: 0 56px 0 20px; border-radius: 999px;
  border: 1.5px solid transparent; background: var(--bubble-bot); color: var(--ink);
  font: inherit; font-size: 1.0625rem; font-weight: 600; box-shadow: 0 1px 3px rgb(20 30 60 / .08);
}
.composer-input.num { text-align: right; font-variant-numeric: tabular-nums; }
.composer-input::placeholder { color: var(--muted); font-weight: 400; opacity: .75; }
.composer-input:focus { outline: none; border-color: var(--focus); }
.composer-suffix { position: absolute; right: 20px; font-size: var(--fs-sm); color: var(--muted); pointer-events: none; }
.send-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 2px 6px rgb(20 30 60 / .15); transition: transform .15s, filter .15s;
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: scale(.94); }
.composer-stack { align-items: flex-end; }
.composer-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.composer-stack .composer-input { padding-right: 20px; font-weight: 500; }
.field.has-err .composer-input { border-color: var(--neg); }
.reply-form .hint, .reply-form .err { text-align: right; padding-right: 64px; }
.reply-live { background: var(--bubble-bot); border-radius: 16px; padding: 12px 14px; }

.btn-pill { border-radius: 999px; min-height: 50px; padding: 0 24px; }
.reply-end { justify-content: flex-start; padding-left: 48px; }
.msg-bot.is-end .bubble { gap: 10px; min-width: min(100%, 20rem); }

@media (max-width: 480px) {
  .chat { gap: 20px; }
  .msg-avatar { width: 32px; height: 32px; border-radius: 12px; grid-template-columns: repeat(2, 7px); }
  .msg-avatar i { width: 7px; height: 7px; }
  .msg-body { max-width: calc(100% - 42px); }
  .reply-form { width: 100%; }
  .reply-end { padding-left: 42px; }
}
.msg-user { position: relative; }
.msg-edit { position: absolute; right: 4px; top: 100%; margin-top: 3px; white-space: nowrap; }

/* 단계 마무리 버튼(매출 계산하기 / 운영비 입력하기 / 결과 보기): 가운데, 같은 폭, 위 여백 */
.msg.reply-end { justify-content: center; padding-left: 0; margin-top: 18px; padding-top: 22px; border-top: 1px dashed color-mix(in srgb, var(--accent) 22%, transparent); }
.reply-end .btn-pill { width: min(100%, 280px); justify-content: center; }

/* ---------- 숙박업아카데미 로고 ---------- */
.logo { display: block; height: 22px; width: auto; flex: none; }
.topbar .logo { height: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { background: #fff; border-radius: 6px; padding: 3px 5px; box-sizing: content-box; } }
:root[data-theme="dark"] .logo { background: #fff; border-radius: 6px; padding: 3px 5px; box-sizing: content-box; }

/* 인트로: 시설유형 문구를 검색창 위로 */
.landing-sub + .landing-types { margin-top: 0; }
.landing-types + .searchbar { margin-top: -6px; }

/* 모바일에서도 돋보기 표시 (문구가 짧아져 한 줄에 들어감) */
@media (max-width: 420px) { .searchbar-icon { display: block; width: 20px; height: 20px; } .searchbar { gap: 10px; padding-left: 18px; } }

/* 단계 마무리 버튼 위 점선 제거 (간격은 유지) */
.msg.reply-end { border-top: 0; }

/* 로고 크기 조정 · 브랜드 텍스트 확대 */
.logo, .topbar .logo { height: 17px; }
.landing-brand { font-size: 1rem; gap: 9px; color: var(--ink); }
.landing-types { font-size: clamp(0.9375rem, 2.4vw, 1.0625rem); }

/* 대화 아바타: 로고 */
.msg-avatar { background: var(--bubble-bot); box-shadow: 0 1px 2px rgb(20 30 60 / .08); display: grid; place-items: center; }
.msg-avatar img { width: 26px; height: auto; display: block; }
@media (max-width: 480px) { .msg-avatar img { width: 22px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-avatar { background: #fff; } }
:root[data-theme="dark"] .msg-avatar { background: #fff; }

/* 대화 아바타: 로고를 둥근 사각형 중앙에 약 2/3 크기로 */
.msg-avatar { width: 40px; height: 40px; border-radius: 14px; }
.msg-avatar img { width: 72%; height: auto; margin: auto; }
@media (max-width: 480px) {
  .msg-avatar { width: 36px; height: 36px; border-radius: 12px; }
  .msg-avatar img { width: 72%; }
  .msg-body { max-width: calc(100% - 46px); }
  .reply-end { padding-left: 0; }
}

/* 인트로 시설유형 문구: 모바일 14px / PC 16px, 검색창과 간격 넓힘 */
.landing-types { font-size: 0.875rem; }
@media (min-width: 641px) { .landing-types { font-size: 1rem; } }
.landing-types + .searchbar { margin-top: 8px; }
.msg-avatar { grid-template-columns: 1fr; place-content: center; gap: 0; }
.landing-types { margin-bottom: 10px; }

/* 검색창 질문을 가운데 정렬 (아이콘·버튼 사이 공간 기준) */
.searchbar { width: min(100%, 540px); justify-content: space-between; }
.searchbar-text { flex: 1 1 auto; padding-right: 0; justify-content: center; grid-template-columns: max-content; }
.searchbar-text > .typed { justify-self: start; }
/* 아이콘(왼쪽)과 버튼(오른쪽) 폭 차이를 보정해 시각적으로 정중앙에 오도록 */
.searchbar-text { margin-right: 26px; }
@media (max-width: 420px) { .searchbar { width: 100%; } .searchbar-text { margin-right: 20px; } }

/* '1분 만에…' 문구 자간 살짝 넓힘 */
.landing-sub { letter-spacing: 0.03em; }
.searchbar-text { margin-right: 0; margin-left: 12px; }
@media (max-width: 420px) { .searchbar-text { margin-right: 0; margin-left: 14px; } }
.searchbar { width: min(100%, 480px); }
@media (max-width: 420px) { .searchbar { width: 100%; } }

/* 검색창 질문 자간: 아래 문구와 동일 */
.searchbar-text { letter-spacing: 0.03em; }

/* 모바일: 검색창 폭을 문구 길이에 맞춤 */
@media (max-width: 420px) {
  .searchbar { width: auto; max-width: 100%; }
}

/* 인트로 왼쪽 상단 로고·브랜드: PC는 조금 크게, 모바일은 조금 작게 */
.landing-brand .logo { height: 20px; }
.landing-brand { font-size: 1.0625rem; gap: 10px; }
@media (max-width: 640px) {
  .landing-brand .logo { height: 14px; }
  .landing-brand { font-size: 0.875rem; gap: 8px; }
}
@media (max-width: 420px) {
  .searchbar { min-height: 54px; padding: 6px 6px 6px 16px; gap: 8px; }
  .searchbar-icon { width: 18px; height: 18px; }
  .searchbar-text { font-size: 1rem; margin-left: 12px; }
  .searchbar-go { width: 40px; height: 40px; }
}
@media (max-width: 340px) { .searchbar-text { font-size: 0.9375rem; margin-left: 10px; } .searchbar { padding-left: 12px; } }

/* 키패드 유지 모드: 질문 말풍선만 '입력 중…' 표시, 답변칸은 그대로 */
.chat.is-typing-soft .msg-bot.is-new .typing-dots { display: inline-flex; }
.chat.is-typing-soft .msg-bot.is-new .bubble { display: none; }

/* ---------- 블루 테마: 대화방 배경 ---------- */
:root { --chat-bg: #EAF0FA; --bubble-bot: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chat-bg: #121A2A; --bubble-bot: #1C2740; } }
:root[data-theme="dark"] { --chat-bg: #121A2A; --bubble-bot: #1C2740; }

/* ---------- 인트로: 검색창 위에 앉은 인물 이미지 ---------- */
.search-wrap { position: relative; display: flex; justify-content: center; width: 100%; }
.search-wrap .searchbar { position: relative; z-index: 1; }
.search-peek {
  position: absolute; z-index: 0; bottom: calc(100% - 2px);
  right: calc(50% - 240px + 34px);           /* 검색창 오른쪽 끝에서 안쪽으로 */
  height: 120px; width: auto; pointer-events: none; user-select: none;
}
/* 이미지와 겹치지 않게 시설유형 문구를 위로 */
.landing-types { margin-bottom: 128px; }

@media (max-width: 420px) {
  .search-peek { height: 92px; right: calc(50% - 154px + 22px); }
  .landing-types { margin-bottom: 98px; }
}
@media (max-width: 340px) {
  .search-peek { right: 30px; }
}

/* 시설유형 문구를 인물 얼굴 높이로 내리고, 얼굴과 겹치지 않게 왼쪽으로 */
.landing-types { margin-bottom: 52px; transform: translateX(-64px); position: relative; z-index: 2; }
@media (max-width: 420px) {
  .types-tail { display: none; }
  .landing-types { margin-bottom: 36px; transform: translateX(-44px); }
}
/* 시설유형 문구 가운데 정렬 (이미지보다 위에 표시) */
.landing-types { transform: none; }
@media (max-width: 420px) { .landing-types { transform: none; } }

/* 시설유형 문구를 '1분 만에…' 아래로 이동, 검색창·이미지를 화면 위쪽으로 */
.landing-types { margin: -12px 0 0; transform: none; }
.landing-center { padding-bottom: 120px; }
@media (max-width: 420px) {
  .landing-types { margin: -12px 0 0; transform: none; }
  .landing-center { padding-bottom: 96px; }
}

/* 시설유형 문구와 "1분 만에…" 간격 좁힘 */
.landing-types, .landing-sub + .landing-types { margin-top: -12px; }
@media (max-width: 420px) { .landing-types, .landing-sub + .landing-types { margin-top: -12px; } }

/* 검색창과 "1분 만에…" 간격 넓힘 */
.search-wrap + .landing-sub { margin-top: 8px; }

/* 상단 버튼(홈·예시값 넣기·초기화): 작게, 같은 크기 */
.topbar-actions { gap: 6px; }
.topbar-actions .btn { min-height: 30px; padding: 0 10px; font-size: 0.75rem; border-radius: 8px; gap: 4px; }
.topbar-actions .btn svg { flex: none; }

/* ---------- 인트로 하단: 스터디 신청 링크 ---------- */
.landing { grid-template-rows: auto 1fr auto; padding-bottom: 28px; }
.landing-foot { display: flex; justify-content: center; }
.study-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.02em;
  font-size: calc(clamp(1rem, 2.6vw, 1.125rem) - 1px); font-weight: 500;
  padding: 6px 6px 6px 14px; border-radius: 999px; transition: background-color .15s;
}
.study-link:hover { background: var(--accent-soft); }
.study-go {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); flex: none; transition: transform .2s;
}
.study-link:hover .study-go { transform: translateX(2px); }
/* 스터디 링크: 두 줄 정도 위로, 화살표 버튼은 글씨보다 살짝 크게 */
.landing { padding-bottom: 80px; }
.study-go { width: 1.25em; height: 1.25em; }
.study-go svg { width: 0.7em; height: 0.7em; }
.study-link { gap: 8px; padding: 6px 8px 6px 14px; }

/* 검색창 그룹을 다시 아래로(화면 가운데쪽), 두 문구 간격 9px */
.landing-center { padding-bottom: 48px; }
.landing-types, .landing-sub + .landing-types { margin-top: -13px; }
@media (max-width: 420px) {
  .landing-center { padding-bottom: 48px; }
  .landing-types, .landing-sub + .landing-types { margin-top: -13px; }
  .landing { padding-bottom: 47px; }   /* 모바일: 스터디 링크 1.5줄 아래로 */
}

/* 검색창 그룹을 조금 더 아래로 */
.landing-center { padding-top: 96px; padding-bottom: 24px; }
@media (max-width: 420px) { .landing-center { padding-top: 96px; padding-bottom: 24px; } }

/* 01~04 상단 로고: 인트로와 같은 크기 (PC 20px / 모바일 14px) */
.topbar .logo { height: 20px; }
@media (max-width: 640px) { .topbar .logo { height: 14px; } }

/* ---------- 월 평균 금액 표시 ---------- */
.fig-month { font-size: var(--fs-sm); color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.fig-month b { font-weight: 700; font-size: 1.08em; }
.kpi-hero .fig-month { color: var(--accent-ink); opacity: .95; }
.panel-list dd { display: grid; justify-items: end; line-height: 1.25; }
.panel-list dd small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.panel-list .is-key dd small { color: var(--muted); }
.scn .is-month td { color: var(--accent); font-size: var(--fs-sm); }
.rp-headline small { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* 결과 하단 버튼 조금 작게 */
.result-actions .btn { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
/* 모바일: '더 정확한 분석이 필요하신가요?' 한 줄로 */
@media (max-width: 480px) {
  .cta h3 { font-size: clamp(0.875rem, 4.6vw, 1.25rem); white-space: nowrap; }
}

/* ---------- 대출이자 차감 후 이익 카드 ---------- */
.interest-card { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.ic-head { display: grid; gap: 2px; }
.interest-card .rows .is-total dt, .interest-card .rows .is-total dd { color: var(--ink); font-weight: 700; }

/* 결과 KPI 월 평균 텍스트 확대 */
.kpi .fig-month { font-size: 0.9375rem; }
@media (min-width: 641px) { .kpi .fig-month { font-size: 1rem; } }

/* 인트로 서브 문구: 작은 화면에서도 한 줄 유지 */
@media (max-width: 640px) { .landing-sub { white-space: nowrap; font-size: clamp(0.8125rem, 4.2vw, 1rem); } }

/* 인트로 서브 문구: 자간 넓힘 + 검색창과 간격 축소 */
.landing-sub { letter-spacing: .03em; }
.search-wrap + .landing-sub { margin-top: -2px; }

/* 인트로 서브 문구: 한 단계 작게, 얇게 */
.landing-sub { font-size: 1rem; font-weight: 400; }
@media (max-width: 640px) { .landing-sub { font-size: clamp(0.8125rem, 3.9vw, 0.9375rem); } }

/* 인트로 서브 문구: 일반 폰 13px, 아주 작은 폰 12px */
@media (max-width: 640px) { .landing-sub { font-size: 0.8125rem; } }
@media (max-width: 360px) { .landing-sub { font-size: 0.75rem; } }

/* 결과 CTA: 전문가 상담(흰 채움) + 아카데미 교육 참여(흰 테두리) */
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cta .cta-actions .btn { margin-top: 0; justify-self: auto; min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); }
.btn-outline-invert { background: transparent; color: var(--accent-ink); border: 1.5px solid color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.btn-outline-invert:hover { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border-color: var(--accent-ink); }
.btn-invert:hover { filter: brightness(.97); }
.cta-arrow { font-weight: 500; transition: transform .15s; }
.btn-outline-invert:hover .cta-arrow { transform: translateX(2px); }
@media (max-width: 640px) {
  .cta-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .cta-actions .btn { width: 100%; }
  .cta .cta-actions .btn { min-height: 42px; padding: 0 8px; font-size: 0.8125rem; white-space: nowrap; }
}
@media (max-width: 360px) { .cta .cta-actions .btn { font-size: 0.75rem; padding: 0 6px; } }
@media print { .cta-actions { display: none; } }
@media (max-width: 360px) { .cta .cta-arrow { display: none; } }

/* 리포트 하단 버튼: 결과로 돌아가기 + PDF 다운로드 */
.rp-actions { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.rp-actions .btn { min-height: 42px; padding: 0 20px; font-size: var(--fs-sm); }
.rp-actions .btn:disabled { opacity: .7; cursor: progress; }
@media (max-width: 640px) {
  .rp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-actions .btn { width: 100%; padding: 0 8px; white-space: nowrap; }
}
@media print { .rp-actions, [data-pdf-msg] { display: none !important; } }

/* CTA 마지막 안내 문장: PC에서는 한 줄 */
@media (min-width: 760px) { .cta p.cta-lead { max-width: none; white-space: nowrap; } }
