/* Home Materials v4 — editorial, light, navy + deep teal. No external fonts. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #0e1b2c;
  --ink-2: #33404f;
  --muted: #5b6878;
  --line: #e2e6eb;
  --line-2: #cdd4dc;
  --teal: #0b6e69;
  --teal-ink: #07504c;
  --teal-soft: #dff0ee;
  --teal-softer: #eff7f6;
  --warn: #8a5300;
  --warn-bg: #fff3df;
  --bad: #b42318;
  --bad-bg: #fdeceb;
  --focus: #1d5fd1;
  --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --sh-sm: 0 1px 2px rgba(14, 27, 44, .05);
  --sh-md: 0 18px 40px -18px rgba(14, 27, 44, .28);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Malgun Gothic", "Apple SD Gothic Neo", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK KR", "Noto Sans", sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Malgun Gothic", "Apple SD Gothic Neo", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK KR", sans-serif;
}
:lang(ja) { --font: "Yu Gothic UI", "Hiragino Sans", "Meiryo", "Noto Sans CJK JP", "Segoe UI", system-ui, sans-serif; --display: var(--font); }
:lang(ko) { --font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Segoe UI", system-ui, sans-serif; --display: var(--font); }
:lang(zh-Hans) { --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif; --display: var(--font); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
:lang(ko) body, :lang(ja) body, :lang(zh-Hans) body { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-ink); }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: clamp(16px, 3.6vw, 48px); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.err { color: var(--bad); font-size: 14.5px; font-weight: 600; }
.err:empty { display: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
:lang(ko) .eyebrow, :lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow { letter-spacing: .04em; }
.link { font-weight: 600; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; text-align: center;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c3150; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(14, 27, 44, .05); }
.btn-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--teal-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.btn-chip { min-height: 44px; padding: 8px 14px; font-size: 14.5px; background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-chip:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--bad); }
.btn-inverse { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[aria-pressed="true"].btn-primary { background: var(--teal); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.brand-tx { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.steps-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.steps { list-style: none; display: flex; gap: 4px; margin: 0; padding: 4px; background: var(--bg); border-radius: 999px; }
.step-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.step-link:hover { color: var(--ink); }
.step-link[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm), 0 0 0 1px var(--line); }
.step-link[aria-current="page"] .step-no { background: var(--teal); color: #fff; border-color: var(--teal); }
.step-short { display: none; }
.head-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
body[data-route="home"] .steps-nav { flex: 1; }
.save-state { font-size: 14px; color: var(--muted); white-space: nowrap; }
.save-state.is-dirty { color: var(--warn); }
.save-state.is-dirty::before { content: "● "; }
.settings { position: relative; }
.settings > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px; }
.settings > summary::-webkit-details-marker { display: none; }
.settings-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 20px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-md); }
.settings-now { font-weight: 650; }

/* ---------- Main ---------- */
.main { padding-top: 36px; padding-bottom: 120px; min-height: 70vh; }
#view:focus { outline: none; }
.actionbar { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.actionbar .btn-primary { margin-left: auto; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; padding: 24px 0 64px; }
.hero-copy { grid-column: span 5; display: grid; gap: 22px; align-content: center; }
.hero-title { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 760; }
:lang(ko) .hero-title, :lang(ja) .hero-title, :lang(zh-Hans) .hero-title { letter-spacing: -0.02em; line-height: 1.18; }
.hero-lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-2); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.resume { margin-top: -8px; }
.hero-facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.hero-facts li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15.5px; }
.hero-facts .ic { color: var(--teal); width: 20px; height: 20px; stroke-width: 2.4; }
.hero-media { grid-column: span 7; position: relative; margin: 0; }
.hero-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); background: #e8ebe6; }
.img-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; padding-left: 380px; }
.preview { position: absolute; left: -40px; bottom: -44px; width: min(400px, 82%); padding: 20px 22px; background: rgba(255, 255, 255, .97); border-radius: var(--r); box-shadow: var(--sh-md); border: 1px solid var(--line); display: grid; gap: 10px; }
.preview-tag { font-size: 12.5px; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.preview-title { font-weight: 650; font-size: 15px; color: var(--ink-2); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.preview-col { display: grid; gap: 2px; padding: 12px 14px; }
.preview-col + .preview-col { border-left: 1px solid var(--line); background: var(--teal-softer); }
.preview-opt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.preview-qty { display: flex; align-items: baseline; gap: 6px; }
.preview-qty strong { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.preview-qty span { font-weight: 600; color: var(--ink-2); }
.preview-row { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.preview-row.muted { font-weight: 500; }
.preview-note { font-size: 13.5px; color: var(--ink-2); }

.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band-tint { background: var(--surface); border-radius: var(--r-lg); border: 0; padding: 56px clamp(20px, 4vw, 56px); margin: 16px 0; }
.band-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.band-head h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; font-weight: 720; }
.band-head p { color: var(--muted); font-size: 17px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pick-card { display: grid; gap: 10px; justify-items: start; text-align: left; padding: 28px; min-height: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick-card:hover { border-color: var(--teal); box-shadow: var(--sh-md); }
.pick-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); color: var(--teal-ink); }
.pick-ic .ic { width: 26px; height: 26px; }
.pick-name { font-family: var(--display); font-size: 24px; font-weight: 720; letter-spacing: -0.015em; }
.pick-sub { color: var(--muted); font-size: 15.5px; }
.pick-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--teal-ink); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.how-item { display: grid; gap: 10px; align-content: start; }
.how-no { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--teal); letter-spacing: .06em; }
.how-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); color: var(--ink); }
.how-ic .ic { width: 24px; height: 24px; }
.how-item h3 { font-size: 19px; font-weight: 700; }
.how-item p { color: var(--muted); font-size: 15.5px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why-item { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.why-item h3 { font-size: 19px; font-weight: 700; }
.why-item p { color: var(--muted); font-size: 15.5px; }
.home-end { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 48px; }
.limits { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- Plan header ---------- */
.plan-head { display: grid; gap: 20px; margin-bottom: 28px; }
.demo-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--warn-bg); color: #5b3a00; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
.demo-banner .btn { margin-left: auto; }
.demo-short { display: none; }
.plan-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.plan-titles { display: grid; gap: 8px; max-width: 720px; }
.page-title { font-size: clamp(30px, 3vw, 44px); font-weight: 750; letter-spacing: -0.025em; }
.page-lead { color: var(--ink-2); font-size: 17.5px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-sm); }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-weight: 650; color: var(--muted); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.room-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.room-tab { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-tab[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.room-add { border-style: dashed; }

/* ---------- Layout grid & cards ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }
.side-stack { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 30px); box-shadow: var(--sh-sm); display: grid; gap: 16px; }
.card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.card-compact { padding: 16px 20px; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-actions { display: flex; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field-label { font-weight: 650; font-size: 15px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.opt { font-weight: 500; font-size: 13px; color: var(--muted); }
.input-wrap { position: relative; display: flex; align-items: center; }
input[type="text"], select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 17px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:hover, select:hover { border-color: #aab4bf; }
input[type="text"]:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 105, .16); }
.input-wrap input { padding-right: 76px; font-variant-numeric: tabular-nums; }
.unit { position: absolute; right: 14px; color: var(--muted); font-size: 14.5px; font-weight: 600; pointer-events: none; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-lg input { font-size: 22px; font-weight: 650; min-height: 60px; }
input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
.field-inline { max-width: 220px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 4px 0; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.check label { display: grid; gap: 2px; font-weight: 650; cursor: pointer; }
.check-sub { font-weight: 500; color: var(--muted); font-size: 14.5px; }
.disclose { border-top: 1px solid var(--line); padding-top: 4px; }
.disclose > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 650; color: var(--ink-2); list-style: none; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.disclose[open] > summary::before { transform: rotate(45deg); }
.disclose > :not(summary) { margin-top: 8px; margin-bottom: 8px; }
details.disclose.card { padding-block: 6px; gap: 0; }
details.disclose.card[open] { padding-bottom: 24px; }
.rule { background: var(--bg); border-radius: var(--r-sm); padding: 10px 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; }
.notice-warn { background: var(--warn-bg); color: #5b3a00; }
.notice-info { background: var(--teal-softer); color: var(--teal-ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Room ---------- */
.canvas-card { gap: 14px; }
.room-svg { background: var(--bg); border-radius: var(--r); min-height: 300px; display: grid; place-items: center; padding: 12px; }
.unfold { width: 100%; height: auto; max-height: 520px; }
.floor { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.floor.is-on { fill: var(--teal-softer); stroke: var(--teal); stroke-dasharray: 6 5; stroke-width: 2; }
.floor-t { font-size: 14px; font-weight: 700; fill: var(--muted); letter-spacing: .04em; }
.floor-a { font-size: 18px; font-weight: 700; fill: var(--ink); }
.wall { cursor: pointer; }
.wall-face { fill: #eceff2; stroke: var(--line-2); stroke-width: 1.5; transition: fill .15s; }
.wall:hover .wall-face { fill: #e2e7ec; }
.wall.is-on .wall-face { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; }
.wall.is-on:hover .wall-face { fill: #cfe8e4; }
.wall.is-muted { cursor: default; opacity: .55; }
.wall:focus-visible { outline: none; }
.wall:focus-visible .wall-face { stroke: var(--focus); stroke-width: 4; }
.op-door { fill: #fff; stroke: var(--ink-2); stroke-width: 1.5; }
.op-window { fill: #d7e7f1; stroke: #5d84a0; stroke-width: 1.5; }
.wall-badge { fill: #fff; stroke: var(--ink-2); stroke-width: 1.5; }
.wall.is-on .wall-badge { fill: var(--teal); stroke: var(--teal); }
.wall-letter { font-size: 16px; font-weight: 800; fill: var(--ink); }
.wall.is-on .wall-letter { fill: #fff; }
.wall-len { font-size: 14px; font-weight: 700; fill: var(--ink-2); }
.lab-hit { fill: transparent; }
.wall-tick { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-draw { display: grid; justify-items: center; gap: 12px; color: var(--muted); text-align: center; padding: 40px 16px; }
.placeholder { width: 200px; }
.ph-floor { fill: #fff; stroke: var(--line-2); stroke-dasharray: 5 4; }
.ph-wall { fill: #eceff2; stroke: var(--line-2); }
.scope-sum { display: grid; gap: 8px; }
.scope-line { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: baseline; padding: 16px 20px; background: var(--ink); color: #fff; border-radius: var(--r); }
.scope-label { font-size: 14px; font-weight: 600; opacity: .8; }
.scope-value { font-family: var(--display); font-size: 30px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.scope-detail { grid-column: 1 / -1; font-size: 14px; opacity: .85; }
.scope-line.is-warn { background: var(--warn-bg); color: #5b3a00; }
.open-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.open-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.open-row.is-off { opacity: .55; }
.open-wall { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; }
.open-row.is-off .open-wall { background: #cfd6de; color: var(--ink); }
.open-desc { display: grid; font-size: 14.5px; color: var(--muted); }
.open-desc strong { color: var(--ink); font-size: 15px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(14, 27, 44, .38); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 41; background: var(--surface); box-shadow: -20px 0 50px -20px rgba(14, 27, 44, .4); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 21px; }
.drawer-body { padding: 20px 24px 32px; overflow: auto; display: grid; gap: 16px; align-content: start; }
.drawer-list { display: grid; gap: 12px; }
.op-row { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 16px; margin: 0; display: grid; gap: 10px; }
.op-row legend { display: flex; gap: 8px; align-items: center; font-weight: 700; padding: 0 6px; }
.op-row > .btn { justify-self: start; }
.empty-note { color: var(--muted); }
body.has-drawer { overflow: hidden; }

/* ---------- Product ---------- */
.label-card { position: sticky; top: 96px; }
.label-art { background: var(--bg); border-radius: var(--r); padding: 12px; }
.label-svg { width: 100%; height: auto; }
.art-lid { fill: #dfe5ea; stroke: var(--ink-2); stroke-width: 1.5; }
.art-body { fill: #fff; stroke: var(--ink-2); stroke-width: 1.5; }
.art-label { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.2; }
.art-lines { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; opacity: .6; }
.art-pattern { fill: none; stroke: #9fb0bf; stroke-width: 2; }
.art-leader { stroke: var(--teal); stroke-width: 1.4; stroke-dasharray: 3 3; fill: none; }
.art-dot { fill: var(--teal); }
.art-pin { fill: var(--teal); }
.art-pin-t { fill: #fff; font-size: 15px; font-weight: 800; }
.label-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.label-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ls-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 13px; }
.ls-name { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.ls-val { font-variant-numeric: tabular-nums; text-align: right; }
.label-sentence { display: grid; gap: 10px; }
.sent { font-size: 17px; font-weight: 600; color: var(--ink); padding: 14px 16px; background: var(--teal-softer); border-left: 4px solid var(--teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.sent.is-empty { color: var(--muted); font-weight: 500; background: var(--bg); border-left-color: var(--line-2); }
.sent-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 15.5px; }
.product-card { gap: 20px; }
.opt-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.opt-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 650; max-width: 320px; }
.opt-tab > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-letter { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.b-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); }
.b-tools .hint { flex: 1 1 260px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex: none; }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.pill-ok { background: var(--teal-soft); color: var(--teal-ink); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-demo { background: #eef0ff; color: #3b3f9e; }
.confirm-box { padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.confirm-box.is-on { border-style: solid; border-color: var(--teal); background: var(--teal-softer); }

/* ---------- Decide ---------- */
.decide-scope { padding: 14px 20px; margin-bottom: 20px; }
.scope-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.strip-item { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }
.strip-item strong { color: var(--ink); }
.compare { display: grid; gap: 20px; margin-bottom: 24px; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.opt-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 18px; align-content: start; box-shadow: var(--sh-sm); position: relative; }
.opt-card.is-chosen { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft), var(--sh-sm); }
.opt-head { display: flex; gap: 12px; align-items: center; }
.opt-name { display: grid; min-width: 0; flex: 1; }
.opt-name h2 { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-size { color: var(--muted); font-size: 14.5px; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 4px 0 2px; }
.big-n { font-family: var(--display); font-size: clamp(64px, 7vw, 104px); line-height: .9; font-weight: 780; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.big-u { font-size: 26px; font-weight: 700; }
.big-of { flex-basis: 100%; color: var(--muted); font-size: 15px; }
.kv { margin: 0; display: grid; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kv-row dt { color: var(--muted); font-weight: 600; }
.kv-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.kv-cost dd { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.kv-cost dd.muted { font-size: 17px; font-weight: 600; }
.warn-text { color: var(--warn); }
.cmp-add { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: center; justify-items: start; }
.cmp-add-t { font-family: var(--display); font-weight: 700; font-size: 21px; }
.cmp-diff { background: var(--teal-softer); border: 1px solid #cfe5e1; border-left: 5px solid var(--teal); border-radius: var(--r); padding: 20px 24px; display: grid; gap: 6px; }
.cmp-diff h3 { color: var(--teal-ink); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.diff-line { font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 680; letter-spacing: -0.01em; color: var(--ink); }
.empty-state { display: grid; gap: 12px; justify-items: start; padding: 4px 0; }
.empty-t { font-weight: 700; }
.missing { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.missing-btn { width: 100%; display: grid; grid-template-columns: 1fr auto 20px; gap: 12px; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; text-align: left; }
.missing-btn:hover { border-color: var(--ink); }
.missing-l { font-weight: 650; }
.missing-m { color: var(--muted); font-size: 14px; }
.allowance { margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; min-width: 64px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.allow-explain { display: grid; gap: 6px; font-size: 16px; color: var(--ink-2); }
.allow-change { font-weight: 650; color: var(--teal-ink); }
.formula-body { display: grid; gap: 16px; }
.f-list { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 6px 20px; font-size: 15px; }
.f-list dt { color: var(--muted); font-weight: 600; }
.f-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.f-opt { grid-column: 1 / -1; color: var(--ink) !important; font-weight: 750 !important; padding-top: 6px; }

/* Compact A/B summary (phones) */
.cmp-sum { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); font-variant-numeric: tabular-nums; }
.cmp-sum caption { text-align: left; font-weight: 750; font-size: 15px; padding: 0 0 8px; color: var(--ink); }
.cmp-sum th, .cmp-sum td { padding: 10px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.cmp-sum thead th { border-top: 0; background: var(--bg); font-size: 13.5px; color: var(--muted); font-weight: 650; }
.cmp-sum thead th > * { vertical-align: middle; }
.cmp-sum tbody th { font-size: 14px; color: var(--muted); font-weight: 650; width: 26%; }
.cmp-sum td { font-size: 15.5px; }
.cmp-sum td.is-chosen, .cmp-sum th.is-chosen { background: var(--teal-softer); }
.cmp-sum .sum-n { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 780; letter-spacing: -0.03em; }
.cmp-sum .sum-qty td { padding-block: 12px; }
.cmp-sum .sum-cost strong { font-size: 17px; }
.cmp-sum tfoot td { border-top: 1px solid var(--line); }
.cmp-sum .sum-pick { width: 100%; padding-inline: 8px; }
.sum-size { display: block; font-size: 12.5px; margin-top: 2px; }
/* r5: user's product name (max 2 lines) + SKU in each comparison column */
.cmp-sum thead th { vertical-align: top; }
.sum-hd { display: flex; align-items: center; gap: 8px; }
.sum-hd .sum-size { margin-top: 0; }
.sum-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 6px; font-size: 13.5px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.sum-name.is-fallback { color: var(--muted); font-weight: 650; }
.sum-sku { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.opt-letter.sm { width: 26px; height: 26px; font-size: 13px; }
.sum-miss { color: var(--muted); }
.cmp-more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
.cmp-more > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 650; list-style: none; }
.cmp-more > summary::-webkit-details-marker { display: none; }
.cmp-more > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.cmp-more[open] > summary::before { transform: rotate(45deg); }
.cmp-more > .cmp-grid { padding-bottom: 16px; }
.mat-tag { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: 14px; font-weight: 700; vertical-align: middle; }
.mat-tag .ic { width: 16px; height: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sheet ---------- */
.sheet-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tools-sum { display: none; }
.sheet { max-width: 960px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 48px); box-shadow: var(--sh-md); display: grid; gap: 24px; }
.sheet-head { display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 16px 32px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); align-items: end; }
.sheet-title { font-size: clamp(28px, 2.8vw, 38px); font-weight: 760; letter-spacing: -0.02em; }
.sheet-note { font-size: 14px; color: var(--muted); }
.sheet-room { display: grid; gap: 14px; }
.sheet-room-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sheet-room-head h3 { font-size: 22px; font-weight: 720; }
.sheet-item { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 12px; break-inside: avoid; }
.sheet-item.is-pending { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: var(--bg); }
.si-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.si-mat { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.si-main { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; }
.si-qty { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.si-qty strong { font-family: var(--display); font-size: 56px; line-height: .95; font-weight: 780; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.si-qty span { font-weight: 650; font-size: 17px; }
.si-kv { margin: 0; display: flex; gap: 28px; }
.si-kv div { display: grid; }
.si-kv dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.si-kv dd { margin: 0; font-weight: 750; font-size: 19px; font-variant-numeric: tabular-nums; }
.si-id, .si-assume { font-size: 14.5px; color: var(--ink-2); }
.si-assume { color: var(--muted); }
.si-check-t { font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; }
.checklist li { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 15px; }
.checklist input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.ck-mark { display: none; }
.ck-count { margin-left: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.sheet-first { display: grid; gap: 14px; }
.si-pending { list-style: none; margin: 0; padding: 10px 14px; background: var(--bg); border-radius: var(--r-sm); display: grid; gap: 6px; font-size: 15px; }
.si-pending li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.sheet-disclaimer { font-size: 13.5px; color: var(--ink-2); background: var(--warn-bg); border-radius: var(--r-sm); padding: 10px 14px; }
.sr-copy { position: fixed; left: -9999px; top: 0; }

/* ---------- Footer, toast ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-block: 24px; font-size: 14px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; width: min(600px, calc(100vw - 32px)); padding: 12px 14px 12px 20px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--sh-md); font-size: 15.5px; }
.toast .btn { flex: none; margin-left: auto; }
.noscript { padding: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .steps .step-tx { display: none; }
  .steps .step-short { display: inline; }
  .step-link { padding: 6px 12px 6px 6px; }
  .hero-copy { grid-column: span 6; } .hero-media { grid-column: span 6; }
  .preview { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .img-note { padding-left: 0; }
  .how-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .head-row { flex-wrap: wrap; gap: 8px 12px; min-height: 64px; padding-block: 8px; }
  /* Four equal steps that always fit (no horizontal scroll): number + short label */
  .steps-nav { order: 3; flex-basis: 100%; display: block; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-radius: 14px; width: 100%; }
  .steps li { min-width: 0; }
  .steps .step-tx { display: none; }
  .steps .step-short { display: block; font-size: 13px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
  .step-link { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border-radius: 10px; white-space: normal; }
  .step-no { width: 24px; height: 24px; font-size: 12.5px; }
  .settings-label, .save-state { display: none; }
  .head-start { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 4px; }
  .hero-copy, .hero-media { grid-column: auto; }
  .hero-title { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .preview { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -48px 12px 0; }
  .img-note { text-align: left; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card { min-height: 0; padding: 22px; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .pick-ic { grid-row: span 3; }
  .pick-go { grid-column: 2; }
  .how-grid, .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .band { padding: 44px 0; }
  .band-tint { padding: 36px 20px; }
  .grid-12 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .col-7, .col-5 { grid-column: auto; }
  .label-card { position: static; }
  .cmp-grid { grid-template-columns: 1fr; }
  .plan-row { align-items: stretch; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; justify-content: center; padding: 8px 10px; }
  .main { padding-top: 20px; padding-bottom: 120px; }
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(14, 27, 44, .35); }
  .actionbar .btn-ghost { display: none; }
  .actionbar .btn-primary { flex: 1; margin: 0; }
  .toast { bottom: 96px; }
  .drawer { top: auto; width: 100vw; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sheet-head { grid-template-columns: 1fr; }
  .scope-value { font-size: 26px; }
  .plan-head { gap: 14px; margin-bottom: 18px; }
  .plan-titles { gap: 4px; }
  .plan-titles .eyebrow { display: none; }
  .page-title { font-size: 28px; }
  .page-lead { font-size: 15px; }
  .demo-banner { flex-wrap: nowrap; padding: 6px 6px 6px 12px; font-size: 14px; gap: 8px; }
  .demo-banner > span { flex: 1; min-width: 0; }
  .demo-banner .btn { padding: 6px 12px; font-size: 14px; flex: none; }
  .room-svg { min-height: 0; }
  .room-tabs.is-single { display: none; }
  body[data-route="room"] .room-tabs.is-single { display: flex; }
  .big-n { font-size: 60px; }
  .big-u { font-size: 20px; }
  .opt-card { padding: 18px; gap: 12px; }
  .kv-cost dd { font-size: 21px; }
  .decide-scope { padding: 10px 14px; margin-bottom: 14px; }
  .scope-strip { gap: 4px 16px; }
  .strip-item { font-size: 14px; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > .field:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .seg-btn span { font-size: 14.5px; }
  .seg-btn .ic { display: none; }
  .si-kv { gap: 18px; }
  .si-qty strong { font-size: 46px; }
  .opt-tab { max-width: 100%; }
}
@media (max-width: 360px) {
  .grid-3 { grid-template-columns: 1fr; }
  .wrap { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .wall.is-on .wall-face { fill: Highlight; } .btn { border: 1px solid ButtonText; } }

/* ---------- Print: store sheet only ---------- */
@page { margin: 12mm; }
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-foot, .actionbar, .toast, .drawer, .scrim, .plan-head, .sheet-tools, .sheet-tools-wrap, .skip, .no-print { display: none !important; }
  .main { padding: 0; }
  .sheet { box-shadow: none; border: 0; padding: 0; max-width: none; gap: 14pt; }
  .sheet-head { border-bottom-width: 1.5pt; padding-bottom: 8pt; }
  .sheet-title { font-size: 20pt; }
  .sheet-room-head h3 { font-size: 13pt; break-after: avoid; }
  .sheet-item { break-inside: avoid; page-break-inside: avoid; padding: 10pt 12pt; border-color: #999; border-radius: 6pt; gap: 6pt; }
  .si-qty strong { font-size: 30pt; }
  .si-kv dd { font-size: 12pt; }
  .checklist input { display: none; }
  .ck-mark { display: inline; font-size: 12pt; line-height: 1; }
  .sheet-first { break-inside: avoid; page-break-inside: avoid; }
  .checklist li { min-height: 0; }
  .pill { border: 0.6pt solid #666; background: #fff !important; color: #000 !important; }
  .notice { border: 0.6pt solid #999; }
}
@media (max-width: 900px) {
  body[data-route="decide"] .page-lead { display: none; }
  .sheet-tools #btn-print { display: none; }
  .sheet-tools .btn { font-size: 14.5px; padding: 8px 14px; }
}

@media (max-width: 900px) {
  body[data-route="decide"].ab-compact .page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-sum caption { font-size: 16px; }
}
@media (max-width: 480px) {
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .cmp-sum .sum-n { font-size: 32px; }
  .cmp-sum th, .cmp-sum td { padding: 8px 10px; }
  .cmp-sum thead th { padding-block: 6px; }
  .cmp-sum tbody th { width: 22%; }
  .sum-name { margin-top: 3px; font-size: 12.5px; line-height: 1.25; }
  .sum-sku { font-size: 12px; margin-top: 1px; }
  .cmp-sum .sum-qty td { padding-block: 8px; }
  .cmp-sum caption { padding-bottom: 4px; }
  .seg-btn { min-height: 44px; padding-block: 6px; }
}

/* r5: phone store sheet — what to buy comes first (screen only; print keeps the full document order) */
@media screen and (max-width: 900px) {
  body[data-route="sheet"] .page-lead { display: none; }
  .tools-sum { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 650; font-size: 14.5px; cursor: pointer; width: fit-content; list-style: none; }
  .tools-sum::-webkit-details-marker { display: none; }
  .tools-sum::after { content: "▾"; font-size: 12px; color: var(--muted); }
  .sheet-tools-wrap[open] > .tools-sum::after { content: "▴"; }
  .tools-sum:focus-visible { outline: 3px solid var(--focus, var(--teal)); outline-offset: 2px; }
  .sheet-tools-wrap { margin-bottom: 14px; }
  .sheet-tools-wrap[open] .sheet-tools { margin: 10px 0 0; }
  .sheet { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
  .sheet > * { order: 1; }
  .sheet > .notice { order: 0; }
  .sheet > .sheet-disclaimer { order: 2; }
  .sheet > .sheet-head { order: 3; border-bottom: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .sheet-head .eyebrow, .sheet-head .sheet-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sheet-room-head h3 { font-size: 19px; }
  .sheet-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
  .sheet-item > * { order: 5; }
  .sheet-item > .si-top { order: 0; }
  .sheet-item > .si-id { order: 1; font-size: 15.5px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
  .sheet-item > .si-main { order: 2; gap: 8px 24px; }
  .sheet-item > .si-assume { order: 3; }
  .si-qty strong { font-size: 44px; }
}

.export-ready{flex:1 0 100%;min-width:0;display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface)}.export-ready p{font-size:13px;line-height:1.6}.export-ready-link{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%;justify-self:start;text-align:left}
