/* ═══════════════════════════════════════════════════════════════════════
   모눈집 — 공간 측정·가구 배치 플래너
   앞부분은 공통 뼈대 키트(kit.css) 그대로. 그 아래가 이 벌의 디자인이다.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 기본 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }

img { -webkit-user-drag: none; user-select: none; }

.frame { display: block; }

/* ── 초점 ─────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: #fff; color: #172025;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab {
    min-width: 44px; min-height: 44px;
  }
}

/* ── 가로 넘침 ─────────────────────────────────────────────────────── */
.scroll-x { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }
.clip { overflow: clip; }

/* ── 무JS 완성본 ───────────────────────────────────────────────────── */
.acc-item .acc-panel { display: block; }
.js .acc-item .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }

.js [role="tabpanel"][hidden] { display: none; }
[role="tabpanel"][hidden] { display: block; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

html:not(.js) .js-only { display: none !important; }

:where([hidden]):not([role="tabpanel"]) { display: none !important; }

/* ── 모션 끔 ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────── */
.menu-btn { display: none; }
@media (max-width: 767px) { .menu-btn { display: inline-flex; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 60; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(0 0 0 / .45);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) { .drawer, .scrim { display: none; } }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0;
  z-index: 80; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree input:focus-visible + label .box { outline: 2px solid currentColor; outline-offset: 2px; }

.spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: kit-spin .7s linear infinite;
}
@keyframes kit-spin { to { rotate: 360deg; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 구획 리듬 ─────────────────────────────────────────────────────── */
.section { padding-block: calc(var(--section, 96px) / 2); }
.section-lead { padding-top: var(--section, 96px); }
.section-last { padding-bottom: var(--section, 96px); }


/* ═══════════════════════════════════════════════════════════════════════
   여기부터 모눈집의 디자인 — 00-디자인보드.png 에서 읽은 값들
   ACTION #1749FF · ALERT #FF4A32 · INK #172025 · PAPER #F5F1E8 · SAFE #DCEFE8
   1px 기술선 · 24px 모눈 · 직각 입력창 · 고정폭 숫자
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --action: #1749FF;
  --alert: #FF4A32;
  --ink: #172025;
  --paper: #F5F1E8;
  --mint: #DCEFE8;
  --white: #FFFFFF;

  /* 파생값 — 시안에 직접 적히지 않았으나 대비를 얻기 위해 만든 것들 */
  --safe-ink: #0E6B4C;          /* Safe Mint 를 글자용으로 어둡게 (판정 「가능」) */
  --ink-60: rgba(23, 32, 37, .62);
  --ink-40: rgba(23, 32, 37, .42);
  --line: rgba(23, 32, 37, .26); /* 1px 기술선 */
  --line-soft: rgba(23, 32, 37, .13);
  --grid: rgba(23, 32, 37, .075); /* 24px 모눈 */
  --grid-major: rgba(23, 32, 37, .13);
  --wood: #E8CFA3;               /* 시안의 가구 면 색 (밝은 나무) */
  --wood-dark: #D6B77E;          /* 시안의 붙박이·수납장 면 색 */

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --section: 88px;
  --gutter: 24px;
}

@media (max-width: 767px) { :root { --section: 56px; --gutter: 16px; } }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* 24px 모눈 — 이 벌의 바탕 그 자체다 */
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: 0 0;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* 숫자는 언제나 고정폭 — 표에서 자리가 흔들리면 치수를 못 읽는다 */
.num, .plan-svg, table, input, .stat-num, .big-num {
  font-variant-numeric: tabular-nums;
}
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* 기술 라벨 — 디자인보드의 「01 / COLOR AS MEANING」 조판 */
.tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--action);
}
/* 한국어 문장을 담는 보조 라벨 — 대문자 변환과 넓은 자간은 쓰지 않는다
   (mm 가 MM 으로 바뀌어 치수가 잘못 읽힌다) */
.tag-ink { color: var(--ink-60); text-transform: none; letter-spacing: .04em; }

/* 모바일 한 과업 한 화면 표시 — 원자료 06절: 입력 → 전체 도면 → 판정 */
.m-step { display: none; }
@media (max-width: 767px) {
  .m-step {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
    padding: 9px 0; margin-bottom: 18px;
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .12em; color: var(--action);
  }
  .m-step .n { color: var(--ink-40); }
}

/* ── 헤더 ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }

.header-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 60px;
  display: flex; align-items: center; gap: 20px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 7px;
  text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.03em;
}
.brand-en {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .14em; color: var(--ink-40);
}

.nav { display: flex; gap: 22px; margin-left: 26px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 18px 0; border-bottom: 2px solid transparent;
  color: var(--ink);
}
.nav a:hover { color: var(--action); }
.nav a[aria-current="page"] { border-bottom-color: var(--action); color: var(--action); }

.status-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .13em; color: var(--action);
}
.status-chip::before {
  content: ""; width: 7px; height: 7px; background: var(--action); border-radius: 50%;
}

.menu-btn {
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ink); border-radius: 0;
  cursor: pointer; color: var(--ink);
}
.menu-bar, .menu-bar::before, .menu-bar::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; content: "";
}
.menu-bar { position: relative; }
.menu-bar::before { position: absolute; top: -6px; }
.menu-bar::after { position: absolute; top: 6px; }

@media (max-width: 1023px) {
  .nav { gap: 15px; margin-left: 16px; }
  .nav a { font-size: 13px; }
  .status-chip { display: none; }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .header-inner { gap: 10px; }
}

/* ── 서랍 ─────────────────────────────────────────────────────────── */
.drawer { background: var(--paper); border-left: 1px solid var(--ink); padding: 18px var(--gutter) 32px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.drawer-head .brand { font-size: 19px; }
.drawer-close {
  background: none; border: 1px solid var(--ink); border-radius: 0;
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; margin-top: 8px; }
.drawer-nav a {
  display: flex; align-items: center;
  padding: 14px 2px; text-decoration: none; font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-nav a[aria-current="page"] { color: var(--action); }
.drawer-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 20px; padding: 14px; background: var(--alert); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.drawer-tel { margin-top: 14px; font-family: var(--mono); font-size: 14px; }
.drawer-tel a { text-decoration: none; }

/* ── 버튼 ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 0;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 18px; min-height: 48px;
  cursor: pointer; text-decoration: none;
  background: var(--white); color: var(--ink);
}
.btn:hover { background: var(--mint); }
.btn-go { background: var(--alert); border-color: var(--alert); color: var(--white); width: 100%; }
.btn-go:hover { background: #E63A22; border-color: #E63A22; }
.btn-act { background: var(--action); border-color: var(--action); color: var(--white); }
.btn-act:hover { background: #0F37D0; border-color: #0F37D0; }
.btn-sm { font-size: 13px; padding: 8px 12px; min-height: 40px; }
@media (max-width: 767px) { .btn-sm { min-height: 44px; } }

/* ── 플래너: 왼쪽 입력 · 오른쪽 도면 ────────────────────────────────
   원자료가 못 박은 첫 화면이다 — 히어로가 아니라 도구가 먼저 온다. */
.planner { border-bottom: 1px solid var(--ink); }
.planner-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.panel-input {
  padding: 34px var(--gutter) 40px 0;
  border-right: 1px solid var(--ink);
  padding-right: 32px;
}
.panel-plan { padding: 34px 0 40px 32px; min-width: 0; }

@media (max-width: 1023px) {
  .planner-grid { grid-template-columns: 1fr; }
  .panel-input { border-right: 0; border-bottom: 1px solid var(--ink); padding: 28px 0 30px; }
  .panel-plan { padding: 28px 0 34px; }
}

.h-lead { font-size: clamp(30px, 5.2vw, 44px); margin-top: 14px; }
.lead-p { margin-top: 16px; font-size: 15px; color: var(--ink-60); max-width: 34em; }

/* ── 입력 — 직각 입력창, 고정폭 숫자 ───────────────────────────────── */
.field-group { margin-top: 26px; }
.field-label { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.field {
  position: relative;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--white);
  padding: 8px 12px 9px;
}
.field > label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-60); }
.field-inline { display: flex; align-items: baseline; gap: 6px; }
.control {
  width: 100%; min-width: 0;
  border: 0; background: none; padding: 0; margin: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink);
  line-height: 1.6;
}
/* 치수 칸만 큰 고정폭 숫자 — 디자인보드 02절 */
.control.big { font-family: var(--mono); font-size: 19px; font-weight: 600; line-height: 1.5; }
.control::placeholder { color: var(--ink-40); font-weight: 400; }
.control:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--action); outline-offset: 1px; }
.control::-webkit-outer-spin-button, .control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.control[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.unit { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-60); }

.field .err {
  display: none;
  margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--alert);
}
.field.invalid { border-color: var(--alert); border-width: 2px; padding: 7px 11px 8px; }
.field.invalid .err { display: block; }
.field.invalid > label::after { content: " ✕"; color: var(--alert); }

textarea.control { font-family: var(--sans); font-size: 15px; font-weight: 400; resize: vertical; }

/* 가구 고르기 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ink); background: var(--white);
  padding: 9px 13px; min-height: 44px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
/* 고른 상태를 색만으로 알리지 않는다 — 체크 기호를 함께 둔다(원자료 09절) */
.chip input:checked + label { background: var(--action); border-color: var(--action); color: var(--white); }
.chip input:checked + label::before { content: "✓"; font-family: var(--mono); font-size: 12px; color: var(--white); }
.chip input:focus-visible + label { outline: 2px solid var(--action); outline-offset: 2px; }

.note {
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .55);
  font-size: 12.5px; line-height: 1.65; color: var(--ink-60);
}
.note strong { color: var(--ink); }

/* ── 도면 ─────────────────────────────────────────────────────────── */
.plan-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.plan-head .tag { font-size: 11px; }

.plan-stage { position: relative; margin-top: 0; }
.plan-box {
  border: 1px solid var(--ink); border-top: 0;
  background: var(--white);
  padding: 0;
}
.plan-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }

/* 도면 배지 — 시안의 오른쪽 위 검은 상자 */
.plan-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--ink); color: var(--white);
  padding: 10px 14px 12px; max-width: 210px;
}
.plan-badge .tag { color: rgba(255, 255, 255, .66); font-size: 10px; }
.plan-badge .big-num {
  display: block; font-family: var(--mono); font-size: 30px; font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--mint);
}
.plan-badge .big-num .u { font-size: 17px; }
.plan-badge p { font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); margin-top: 4px; }
.plan-badge.is-bad .big-num { color: #FFB4A6; }

@media (max-width: 520px) {
  .plan-badge { position: static; max-width: none; margin-top: 0; }
  .plan-badge .big-num { font-size: 34px; }
}

/* 도면 조작기 */
.plan-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 0 0;
}
.tray { display: flex; flex-wrap: wrap; gap: 8px; }
.tray-item {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1px solid var(--ink); background: var(--white);
  padding: 7px 11px; min-height: 44px;
  font: inherit; font-size: 13px; font-weight: 700; text-align: left;
  cursor: pointer; color: var(--ink);
}
.tray-item:hover { background: var(--mint); }
.tray-item .sz { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-60); letter-spacing: -.01em; }
.tray-item[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--white); }
.tray-item[aria-pressed="true"] .sz { color: rgba(255, 255, 255, .8); }

.step-pick { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.step-pick > span { font-size: 12px; font-weight: 700; color: var(--ink-60); }
.step-pick .chip label { padding: 7px 10px; font-family: var(--mono); font-size: 12px; }

.hint {
  font-size: 12px; color: var(--ink-60); line-height: 1.6;
  padding: 10px 0 0;
}
.hint kbd {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  border: 1px solid var(--line); padding: 1px 5px; background: var(--white);
}

/* ── 판정 ─────────────────────────────────────────────────────────── */
.verdicts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0; margin-top: 18px;
  border: 1px solid var(--ink); background: var(--white);
}
.vcell { padding: 13px 16px 15px; border-right: 1px solid var(--line); }
.vcell:last-child { border-right: 0; }
@media (max-width: 700px) { .vcell { border-right: 0; border-bottom: 1px solid var(--line); } .vcell:last-child { border-bottom: 0; } }
.vcell .tag { color: var(--ink-60); }
.v-num { display: block; font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.v-num .u { font-size: 15px; color: var(--ink-60); }
.v-why { font-size: 12.5px; color: var(--ink-60); margin-top: 3px; line-height: 1.55; }

/* 상태는 색만으로 전하지 않는다 — 글자와 기호를 함께 둔다 */
.mark {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; margin-top: 2px;
}
.mark::before {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor;
}
.mark-ok { color: var(--safe-ink); }
.mark-ok::before { content: "✓"; background: var(--mint); }
.mark-no { color: var(--alert); }
.mark-no::before { content: "✕"; }
.mark-warn { color: var(--action); }
.mark-warn::before { content: "!"; }

/* ── 표 ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
.tbl caption { text-align: left; font-size: 12.5px; color: var(--ink-60); padding-bottom: 8px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
.tbl thead th { background: var(--paper); font-size: 11.5px; font-family: var(--mono); letter-spacing: .04em; color: var(--ink-60); font-weight: 600; white-space: nowrap; }
.tbl td.n, .tbl th.n { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:hover { background: rgba(220, 239, 232, .35); }
.tbl .row-name { font-weight: 700; white-space: nowrap; }

.mini-in {
  width: 78px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 7px 8px; text-align: right; border-radius: 0;
}
.mini-in:focus { outline: 2px solid var(--action); outline-offset: 0; }
.mini-in::-webkit-outer-spin-button, .mini-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mini-in[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ── 아코디언 ─────────────────────────────────────────────────────── */
.acc { border-top: 1px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; border-radius: 0;
  font: inherit; font-weight: 700; font-size: 15px; text-align: left;
  padding: 16px 2px; min-height: 56px; cursor: pointer; color: var(--ink);
}
.acc-trigger .no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--action); letter-spacing: .06em; }
.acc-trigger .ttl { flex: 1; }
.acc-trigger .pm { font-family: var(--mono); font-size: 17px; font-weight: 400; color: var(--ink-60); }
.acc-item.open .acc-trigger .pm { color: var(--action); }
.acc-trigger[aria-expanded="true"] .pm::before { content: "−"; }
.acc-trigger[aria-expanded="false"] .pm::before { content: "+"; }
html:not(.js) .acc-trigger .pm { display: none; }
.acc-panel { padding: 0 2px 20px; font-size: 14.5px; color: var(--ink-60); line-height: 1.75; }
.acc-panel > * + * { margin-top: 10px; }
.acc-panel .calc {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); padding: 10px 12px;
  overflow-x: auto; position: relative; white-space: pre-line;
}

/* ── 구획 머리 ────────────────────────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head .tag { margin-bottom: 6px; }
.sec-sub { font-size: 14.5px; color: var(--ink-60); margin-top: 10px; max-width: 56ch; }
.rule { height: 1px; background: var(--ink); margin: 18px 0 0; }

.page-title { font-size: clamp(30px, 5vw, 46px); }
.page-title .no { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; }

/* ── 기준값 띠 ────────────────────────────────────────────────────── */
.basis { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255, 255, 255, .4); }
.basis-grid { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(0, 1fr)); gap: 0; }
.basis-lead { font-size: clamp(22px, 3vw, 30px); padding: 30px 24px 30px 0; }
.basis-cell { padding: 30px 20px; border-left: 1px solid var(--line-strong, var(--ink)); border-left-color: var(--ink); }
.stat-num { display: block; font-family: var(--mono); font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--action); letter-spacing: -.02em; }
.stat-why { font-size: 12.5px; color: var(--ink-60); margin-top: 6px; line-height: 1.55; }
@media (max-width: 860px) {
  .basis-grid { grid-template-columns: 1fr 1fr; }
  .basis-lead { grid-column: 1 / -1; padding: 26px 0 18px; }
  .basis-cell { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .basis-cell + .basis-cell { padding-left: 18px; border-left: 1px solid var(--line); }
  .basis-cell:nth-child(4) { border-left: 0; padding-left: 0; }
}

/* ── 저장된 배치 띠 ───────────────────────────────────────────────── */
.saved { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border-top: 1px solid var(--ink); }
.saved-photo { position: relative; margin: 0; }
.saved-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.saved-panel { background: var(--ink); color: var(--white); padding: 32px var(--gutter) 34px 32px; }
.saved-panel .tag { color: var(--mint); }
.saved-panel h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 10px; color: var(--white); }
.saved-list { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.saved-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px;
}
.saved-list .k { color: rgba(255, 255, 255, .68); }
.saved-list .v { font-family: var(--mono); font-weight: 600; }
.saved-list .v.ok { color: var(--mint); }
.saved-panel .btn { margin-top: 20px; background: var(--white); border-color: var(--white); }
@media (max-width: 860px) {
  .saved { grid-template-columns: 1fr; }
  .saved-panel { padding: 26px var(--gutter) 30px; }
  .saved-photo img { height: 220px; }
}

/* ── 다음 단계 ────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--ink); background: var(--white); margin-top: 24px; }
.step-card { padding: 22px 20px 24px; border-right: 1px solid var(--line); text-decoration: none; display: block; }
.step-card:last-child { border-right: 0; }
.step-card:hover { background: var(--mint); }
.step-card h3 { font-size: 17px; margin-top: 8px; }
.step-card p { font-size: 13.5px; color: var(--ink-60); margin-top: 8px; }
.step-card .go { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--action); }
@media (max-width: 767px) { .step-card { border-right: 0; border-bottom: 1px solid var(--line); } .step-card:last-child { border-bottom: 0; } }

/* ── 방 대장(내 공간) ─────────────────────────────────────────────── */
/* 시안이 축소본이라 원본 화소가 천장이다 — 폭을 묶어 확대율을 1.3배 안에 둔다 */
.room-photo { margin: 22px 0 0; border: 1px solid var(--ink); max-width: 700px; }
.room-photo img { display: block; width: 100%; height: auto; }
.room-photo figcaption { font-size: 12.5px; color: var(--ink-60); padding: 9px 12px; border-top: 1px solid var(--line); background: var(--white); }

.ledger-row {
  display: grid; grid-template-columns: minmax(88px, 130px) minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.ledger-row:first-of-type { border-top: 1px solid var(--ink); }
.ledger-row .rn { font-weight: 700; font-size: 15px; }
.ledger-row .rv { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ledger-row .rv small { font-family: var(--sans); font-size: 12px; color: var(--ink-60); font-weight: 400; display: block; letter-spacing: 0; }
.ledger-row .ra { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--action); text-decoration: none; white-space: nowrap; padding: 12px 4px; }
@media (max-width: 560px) {
  .ledger-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .ledger-row .rv { grid-column: 1 / -1; }
}

/* ── 가구 비교 ────────────────────────────────────────────────────── */
.cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--white); margin-top: 22px; }
.cmp-col { padding: 20px 18px 22px; border-right: 1px solid var(--line); }
.cmp-col:last-child { border-right: 0; }
.cmp-col.is-pick { background: var(--mint); }
.cmp-name { font-size: 13px; font-weight: 700; color: var(--ink-60); }
.cmp-w { display: block; font-family: var(--mono); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; color: var(--action); letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.cmp-u { font-size: 12px; font-family: var(--mono); color: var(--ink-60); }
.cmp-list { margin-top: 12px; font-size: 13px; }
.cmp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.cmp-list .k { color: var(--ink-60); }
.cmp-list .v { font-family: var(--mono); font-weight: 600; }
.cmp-verdict { margin-top: 14px; }
.cmp-reason { font-size: 12.5px; color: var(--ink-60); margin-top: 6px; line-height: 1.55; }
@media (max-width: 720px) {
  .cmp { grid-template-columns: 1fr; }
  .cmp-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .cmp-col:last-child { border-bottom: 0; }
}

.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.picker label { font-size: 13px; font-weight: 700; }
.picker-out { font-size: 13px; color: var(--ink-60); line-height: 1.6; }
.sel-box {
  border: 1px solid var(--ink); background: var(--white); border-radius: 0;
  font: inherit; font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 11px 12px; min-height: 44px; color: var(--ink);
}

.summary-line {
  margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--ink); background: var(--white);
  font-size: 15px; font-weight: 700; line-height: 1.6;
}
.summary-line .sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-60); margin-top: 6px; }

/* ── 재는 법 ──────────────────────────────────────────────────────── */
.kit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--ink); background: var(--white); margin-top: 20px; }
.kit-list li { padding: 16px 18px; border-right: 1px solid var(--line); font-size: 14px; }
.kit-list li:last-child { border-right: 0; }
.kit-list b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--action); text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 767px) { .kit-list li { border-right: 0; border-bottom: 1px solid var(--line); } .kit-list li:last-child { border-bottom: 0; } }

.warn-box {
  margin-top: 24px; border: 2px solid var(--alert); background: var(--white);
  padding: 16px 18px;
}
.warn-box h3 { font-size: 15px; color: var(--alert); display: flex; align-items: center; gap: 8px; }
.warn-box h3::before { content: "!"; font-family: var(--mono); width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--alert); font-size: 13px; }
.warn-box p { font-size: 13.5px; color: var(--ink-60); margin-top: 8px; line-height: 1.7; }

/* ── 예약 달력 ────────────────────────────────────────────────────── */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; gap: 22px; } }

.cal { border: 1px solid var(--ink); background: var(--white); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--ink); }
.cal-head .m { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cal-dow span { text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--ink-60); padding: 7px 0; letter-spacing: .05em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 52px; position: relative; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.empty { background: rgba(23, 32, 37, .03); }
.cal-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-cell label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 100%; height: 100%; min-height: 52px; cursor: pointer;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.cal-cell label .ok { font-family: var(--sans); font-size: 9px; font-weight: 700; color: var(--safe-ink); letter-spacing: -.02em; }
.cal-cell .off { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; font-family: var(--mono); font-size: 14px; color: var(--ink-40); }
.cal-cell input:checked + label { background: var(--action); color: var(--white); }
.cal-cell input:checked + label .ok { color: var(--white); }
.cal-cell input:focus-visible + label { outline: 2px solid var(--action); outline-offset: -3px; }
.cal-cell label:hover { background: var(--mint); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-60); }
.cal-legend b { font-weight: 700; color: var(--ink); }

.pick-panel { border: 1px solid var(--ink); background: var(--white); padding: 20px; }
.pick-panel h2 { font-size: 17px; }
.pick-when { font-family: var(--mono); font-size: 19px; font-weight: 700; margin-top: 12px; line-height: 1.4; }
.pick-rule { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-60); line-height: 1.7; }
.pick-fee { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink); }

.time-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.time-pick .chip label { font-family: var(--mono); font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.form-grid .col-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.agree { margin-top: 14px; position: relative; }
.agree label { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; line-height: 1.6; }
.agree .box { width: 20px; height: 20px; border: 1px solid var(--ink); background: var(--white); flex: 0 0 auto; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; }
.agree input:checked + label .box::before { content: "✓"; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--action); }
.agree .err { display: none; font-size: 12px; font-weight: 700; color: var(--alert); margin-top: 5px; }
.agree.invalid .err { display: block; }
.agree.invalid .box { border-color: var(--alert); border-width: 2px; }
.counter { font-family: var(--mono); font-size: 11px; color: var(--ink-40); text-align: right; margin-top: 4px; }
.form-submit { margin-top: 16px; }

/* ── 토스트 모양 ──────────────────────────────────────────────────── */
.toast {
  background: var(--ink); color: var(--white);
  padding: 13px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); max-width: min(92vw, 460px); text-align: center;
}

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--ink); background: rgba(255, 255, 255, .38); margin-top: 0; }
.footer-inner { padding-block: 40px 34px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.footer-brand { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.footer-tag { font-size: 13.5px; color: var(--ink-60); margin-top: 8px; line-height: 1.7; }
.footer-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); font-weight: 600; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.footer-nav a { text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--action); }
.footer-info { margin-top: 10px; font-size: 13.5px; color: var(--ink-60); display: flex; flex-direction: column; gap: 5px; }
.footer-info a { font-family: var(--mono); }
.footer-biz {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-style: normal; font-size: 12px; color: var(--ink-60); line-height: 1.8;
}
.footer-legal { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 12.5px; text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-copy { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-40); }

/* ── 도면 SVG 안쪽 규칙 ───────────────────────────────────────────── */
.plan-svg text { font-family: var(--mono); fill: var(--ink); }
.plan-svg .grid-l { stroke: rgba(23, 32, 37, .09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-svg .grid-m { stroke: rgba(23, 32, 37, .17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-svg .wall { stroke: var(--ink); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.plan-svg .door { stroke: var(--ink); stroke-width: 1; fill: none; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
/* 창 — 벽보다 옅은 선으로 개구부를 표시한다 */
.plan-svg .win { stroke: var(--ink); stroke-width: 3; opacity: .32; vector-effect: non-scaling-stroke; }
.plan-svg .dim { stroke: var(--alert); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-svg .dim-t { fill: var(--alert); font-weight: 600; }
.plan-svg .scale-bar { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-svg .item-box { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan-svg .item { cursor: grab; touch-action: none; }
.plan-svg .item:active { cursor: grabbing; }
.plan-svg .item-t { font-weight: 600; pointer-events: none; }
.plan-svg .focus-ring { fill: none; stroke: var(--action); stroke-width: 2; stroke-dasharray: 5 4; opacity: 0; vector-effect: non-scaling-stroke; }
.plan-svg .item:focus { outline: none; }
.plan-svg .item:focus-visible .focus-ring { opacity: 1; }
.plan-svg .item.is-drag .focus-ring { opacity: 1; }
