/* 중장비동행 단계형 상담신청 시연
   색: 차콜·콘크리트·안전 노랑. 노랑은 면(진행 막대·고른 버튼)으로만 쓰고 흰 바탕 글자색으로는 쓰지 않는다.
   버튼: 얇은 받침(html[data-btn="b"]). 2026-11-20 사용자 결정으로 B판 하나만 쓴다. */
:root {
  --k-950: #141412;
  --k-900: #1d1c19;
  --k-700: #3d3b36;
  --ink: #1d1c19;
  --ink-2: #57534b;      /* 보조 글자, 흰 바탕 7.7:1 */
  --ink-3: #6f6b63;      /* 흐림 글자, 콘크리트 4.6:1 */
  --accent-text: #7a5600;/* 밝은 바탕 강조 글자, 6.6:1 */
  --y: #f5b400;
  --y-hi: #ffd966;
  --y-lo: #f5c22e;
  --line: #e4e1d9;
  --bg: #fff;
  --bg-2: #f6f5f2;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* 하네스 공통 토큰 이름(14장 G-IMP-34)의 별칭 */
  --text: var(--ink); --accent: var(--y); --accent-deep: var(--k-950);
  --fs-base: 1.0625rem; --gap-stack: 24px;
  --inverse-bg: var(--k-950); --inverse-text: #fff; --inverse-muted: #c9c5bd; --inverse-accent: var(--y);
  --mark-bg: #fff4cf;
  --cat1-tint: #fff4cf; --cat1-mark: var(--y); --cat1-text: var(--ink);
  --cat2-tint: #f1efea; --cat2-mark: #7a776f; --cat2-text: var(--ink);
  --cat3-tint: #e4e1d9; --cat3-mark: var(--k-700); --cat3-text: var(--ink);
  --cat4-tint: #f8f7f4; --cat4-mark: var(--ink-2); --cat4-text: var(--ink);
  --code-keyword: var(--ink); --code-string: var(--ink-2); --code-number: var(--k-700); --code-func: var(--ink); --code-comment: var(--ink-3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; }
h1, h2, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--y); color: var(--k-950); padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 배치: 왼쪽 패널 + 오른쪽 질문 ---------- */
.app { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 100svh; }
.panel { position: sticky; top: 0; height: 100svh; color: #fff; background: var(--k-950); overflow: hidden; isolation: isolate; }
.panel__bg { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .32s var(--ease); }
.panel__bg.is-on { opacity: 1; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,14,12,.55) 0%, rgba(14,14,12,.35) 40%, rgba(14,14,12,.92) 100%); }
.panel__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 32px 40px 36px; transition: opacity .2s var(--ease); }
.panel__text { transition: opacity .15s var(--ease); }
.panel__text.is-swap { opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand__mark { width: 24px; height: 24px; background: var(--y); clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%); }
.panel__text { margin-top: auto; }
.panel__k { color: var(--y); font-size: 0.875rem; font-weight: 600; }
.panel__h { margin-top: 8px; font-size: 1.75rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.025em; }
.panel__t { margin-top: 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: #fff; max-width: 26em; }
.panel__p { margin-top: 12px; color: #e4e1d9; font-size: 1rem; max-width: 30em; }
.panel__s { margin-top: 14px; color: #c9c5bd; font-size: 0.875rem; }
.panel__links { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* 오른쪽 위 계정 줄 */
.acctbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 20px; padding: 14px 32px 0; font-size: 0.9375rem; }
.acctbar:empty { display: none; }
.acctbar__who { color: var(--ink-2); }
.acctbar__who b { color: var(--ink); }
.acctbar a, .acctbar button { appearance: none; background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acctbar a:hover, .acctbar button:hover { text-decoration-thickness: 2px; }
.brand__link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.panel--account .panel__bg { background-image: url("assets/hero.jpg"); opacity: 1; }
.panel__tel { align-self: flex-start; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem; padding: 11px 0; border-bottom: 2px solid var(--y); }
/* 어두운 패널 안에서는 초점 테두리를 노랑으로 */
.panel :focus-visible { outline-color: var(--y); }

.main { position: relative; background: var(--bg); display: flex; flex-direction: column; min-height: 100svh; }
.bar { position: sticky; top: 0; z-index: 2; height: 4px; background: var(--line); }
.bar i { display: block; height: 100%; background: var(--y); transform-origin: left; transform: scaleX(0); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.main__in { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 40px 40px 48px; display: flex; flex-direction: column; }
/* 모든 단계 공통 바닥글: 시연 표기와 파트너 고지 */
.foot { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 40px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; line-height: 1.6; }
.foot p + p { margin-top: 4px; }
.foot b, .foot a { color: var(--ink-2); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.back { appearance: none; background: none; border: 0; cursor: pointer; padding-left: 0; padding-right: 0; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.back[hidden] { display: none; }
.tag { margin-left: auto; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }

.q { margin: auto 0; padding: 32px 0; }
.q h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; }
.lead { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }
.types { margin-top: 6px; max-width: 30em; color: var(--ink-2); font-size: 1rem; }
/* 분야 표제·설명: 데스크톱은 왼쪽 패널에 있으므로 패드·휴대폰에서만 보인다 */
.svc-intro { display: none; }
.notice { margin-top: 14px; padding: 10px 14px; border-left: 4px solid var(--y); background: #fff8e1; color: var(--ink); font-size: 0.9375rem; }
.hint { margin-top: 18px; color: var(--ink-3); font-size: 0.875rem; }
.hint--c { text-align: center; }
.muted { color: var(--ink-3); }

/* 단계 전환: 나가는 질문은 위로, 들어오는 질문은 아래에서 */
@media (prefers-reduced-motion: no-preference) {
  .q { transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .q.is-out { opacity: 0; transform: translateY(-12px); transition: opacity .16s cubic-bezier(.3,0,1,1), transform .16s cubic-bezier(.3,0,1,1); }
  .q[data-dir="back"].is-out { transform: translateY(12px); }
  .q.is-in { opacity: 0; transform: translateY(16px); transition: none; }
  .q[data-dir="back"].is-in { transform: translateY(-16px); }
}

/* ---------- 선택 버튼(분야·세부 항목) 공통 ---------- */
.opts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { appearance: none; margin: 0; width: 100%; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; padding: 12px 16px; color: var(--ink); }
.opt--sm { min-height: 56px; }
.opt b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.opt span { font-size: 0.8125rem; color: var(--ink-2); }
.opt[aria-pressed="true"] span { color: var(--k-700); }

/* 주 버튼(다음·신청 보내기) 공통 */
.go { appearance: none; margin-top: 28px; width: 100%; min-height: 56px; padding: 0 24px; cursor: pointer; color: #fff; font-size: 1.0625rem; font-weight: 600; }
.link { appearance: none; background: none; border: 0; padding: 12px; cursor: pointer; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- B. 얇은 받침 ---------- */
[data-btn="b"] .opts { row-gap: 17px; }
[data-btn="b"] .opt {
  border-radius: 9px; border: 1px solid rgba(29,28,25,.14);
  background: linear-gradient(180deg, #fbfaf8 0%, #ecebe6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 #c9c5bd, 0 4px 1px rgba(29,28,25,.12), 0 8px 14px -6px rgba(29,28,25,.25);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease);
}
[data-btn="b"] .opt:not([aria-pressed="true"]):active { transform: translateY(1.5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1.5px 0 #c9c5bd, 0 2.5px 1px rgba(29,28,25,.12), 0 5px 10px -6px rgba(29,28,25,.25); }
@media (hover: hover) { [data-btn="b"] .opt:not([aria-pressed="true"]):hover { transform: translateY(1.5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1.5px 0 #c9c5bd, 0 2.5px 1px rgba(29,28,25,.12), 0 5px 10px -6px rgba(29,28,25,.25); } }
[data-btn="b"] .opt[aria-pressed="true"] {
  transform: translateY(3px); border-color: rgba(122,86,0,.4);
  background: linear-gradient(180deg, var(--y-hi) 0%, var(--y-lo) 100%);
  box-shadow: inset 0 2px 2px rgba(122,86,0,.28), 0 0 0 #c9c5bd, 0 1px 1px rgba(29,28,25,.12), 0 0 0 transparent;
}
[data-btn="b"] .go {
  border-radius: 9px; border: 1px solid #000;
  background-color: var(--k-900);
  background-image: linear-gradient(180deg, #3d3b36 0%, #1d1c19 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 #000, 0 4px 1px rgba(20,20,18,.2), 0 8px 14px -6px rgba(20,20,18,.4);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease);
}
[data-btn="b"] .go:active { transform: translateY(3px); box-shadow: inset 0 2px 3px rgba(0,0,0,.4), 0 0 0 #000, 0 1px 1px rgba(20,20,18,.2), 0 0 0 transparent; }
@media (hover: hover) { [data-btn="b"] .go:hover { transform: translateY(1.5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1.5px 0 #000, 0 2.5px 1px rgba(20,20,18,.2), 0 5px 10px -6px rgba(20,20,18,.4); } }

/* ---------- 입력 ---------- */
.card { margin-top: 24px; padding: 24px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.field + .field { margin-top: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1.0625rem; background: #fff; border: 1px solid #b9b5ad; border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8f8b82; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.err { color: var(--danger); font-size: 0.875rem; font-weight: 600; margin-top: 6px; }
.err:empty { display: none; }
.err:not(:empty)::before { content: "! "; font-weight: 800; }
.errbox { margin-top: 20px; padding: 12px 16px; border-left: 4px solid var(--danger); background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: 0.9375rem; }

/* ---------- 회원(로그인·가입·내 정보) ---------- */
.alt { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; justify-content: center; color: var(--ink-2); font-size: 0.9375rem; }
.alt a { color: var(--ink-2); text-underline-offset: 3px; }
.link-strong { appearance: none; background: none; border: 0; padding: 8px 2px; font: inherit; font-weight: 700; color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo { margin-top: 14px; padding: 10px 14px; border-left: 4px solid var(--y); background: #fff8e1; font-size: 0.9375rem; }
.ok { margin-top: 14px; color: #1f7a3d; font-weight: 700; }
.notice--ok { margin: 0 0 16px; border-left-color: #1f7a3d; background: #eaf5ee; }
.field__hint { margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.field__ok { margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: #1f7a3d; }
.field__ok:empty { display: none; }
/* 입력하는 동안 바로 확인하는 칸(아이디·비밀번호, 2026-11-29 사용자 요청): 맞으면 초록 체크, 안 맞으면 붉은 엑스.
   기호는 화면 읽기 프로그램이 읽지 않게 대체 글자를 비운다(안내 문구만 읽힘). */
.field--live .field__ok:not(:empty)::before { content: "\2713  " / ""; }
.field--live .err:not(:empty)::before { content: "\2715  " / ""; }
/* 비밀번호 보기 단추: 칸 안 오른쪽에 글자 단추로 둔다(누름 영역 44px). */
.pw { position: relative; }
.field .pw input { padding-right: 5.25rem; }
.pw__toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.pw__toggle:hover { background: rgba(29, 28, 25, 0.06); }
.pw__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-label { font-weight: 400; font-size: 0.875rem; color: var(--ink-3); }
/* 하나만 고르는 칸(가입 1 회원 종류). .field의 글자 칸 스타일이 단추에 붙지 않게 덮는다. */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 4px; font-weight: 600; font-size: 0.9375rem; }
.field .choice__opt { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 6px 0; cursor: pointer; font-weight: 400; font-size: 1rem; }
.field .choice__opt input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--k-950); }
.choice__opt b { font-weight: 700; }
.choice__note { display: block; font-size: 0.875rem; color: var(--ink-3); }
.consent__item + .consent__item { margin-top: 6px; }
.go[aria-busy="true"] { cursor: progress; opacity: .75; }
.go--link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.history { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.history .card { margin-top: 0; padding: 16px 18px; }
.history__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.status { color: var(--accent-text); font-size: 0.9375rem; font-weight: 700; }
.history__meta { margin-top: 4px; color: var(--ink-3); font-size: 0.9375rem; }
.history__items { margin-top: 6px; }
.empty { margin-top: 20px; text-align: center; }

/* ---------- 확인·완료 ---------- */
.sum { padding: 4px 20px; }
.sum__row { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sum__row:last-child { border-bottom: 0; }
.sum dt { color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }
.sum dd { font-size: 1rem; }
.sum__edit a { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); padding: 8px 4px; }
.consent { margin-top: 20px; }
.consent__chk { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
.consent__chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--k-950); flex: none; }
.consent__more { margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); }
.consent__more summary { cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.consent__more p + p { margin-top: 4px; }
.ref { font-weight: 800; letter-spacing: .02em; color: var(--ink); }

.done__mark { width: 64px; height: 64px; }
.done__mark rect { fill: var(--y); }
.done__mark path { fill: none; stroke: var(--k-950); stroke-width: 6; stroke-linecap: square; }
.done h1 { margin-top: 24px; }
.sub { margin-top: 32px; font-size: 1.125rem; font-weight: 700; }
.flow { margin-top: 14px; display: grid; gap: 0; }
.flow li { position: relative; padding: 0 0 18px 28px; }
.flow li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #b9b5ad; background: #fff; }
.flow li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li.is-done::before { background: var(--k-950); border-color: var(--k-950); }
.flow li.is-done::after { background: var(--k-950); }
.flow li.is-now::before { background: var(--y); border-color: var(--k-950); }
.flow b { display: block; font-size: 1rem; }
.flow li.is-now b::after { content: " · 지금 단계"; color: var(--accent-text); font-size: 0.875rem; }
.flow span { display: block; color: var(--ink-3); font-size: 0.875rem; }
.acts { margin-top: 8px; display: grid; gap: 4px; justify-items: center; }
.acts .go { margin-top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .done__mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .4s .15s var(--ease) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ================= 기기별 배치 =================
   데스크톱 1280px 이상: 좌우 분할 2:3 (기본 규칙)
   패드 가로 1024–1279px: 좌우 분할 5:7, 여백 축소
   패드 세로 600–1023px: 위 사진 띠 220px + 아래 질문(남은 공간 가운데)
   휴대폰 599px 이하: 위 사진 띠 150px + 아래 질문(위에서부터)
   제목 크기는 폭 비례(vw)를 쓰지 않는다. 글자 확대를 따라오지 않기 때문이다. */

/* 데스크톱 */
@media (min-width: 1280px) { .panel__h { font-size: 2rem; } .q h1 { font-size: 2.125rem; } }
@media (min-width: 1600px) { .app { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } }

/* 패드 가로 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .app { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .panel__in { padding: 28px 32px 32px; }
  .panel__h { font-size: 1.75rem; }
  .main__in { padding: 32px 40px 48px; }
}

/* 패드 세로와 휴대폰 공통: 패널을 위쪽 띠로, 높이를 고정해 단계마다 들썩이지 않게 */
@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .panel { position: relative; height: 220px; }
  .panel::before { background: linear-gradient(180deg, rgba(14,14,12,.55) 0%, rgba(14,14,12,.88) 100%); }
  .panel__in { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; grid-template-areas: "brand tel" "text text"; padding: 20px 40px 22px; }
  .brand { grid-area: brand; align-self: center; }
  .panel__links { grid-area: tel; margin-top: 0; align-self: center; align-items: flex-end; text-align: right; }
  .panel__links .panel__tel { align-self: flex-end; padding: 4px 0; }
  .panel__text { grid-area: text; align-self: end; margin-top: 0; }
  .panel__h { font-size: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .panel__p { display: none; }
  .panel__s { margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main { min-height: calc(100svh - 220px); }
  .acctbar { padding: 12px 40px 0; }
  .main__in { max-width: 680px; padding: 28px 40px 40px; }
  .foot { max-width: 680px; }
  .panel__t { display: none; }
  .svc-intro { display: block; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .svc-intro__t { font-weight: 700; font-size: 1.0625rem; }
  .svc-intro__p { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; }
  .q h1 { font-size: 2rem; }
}

/* 패드 세로: 단계 표시와 질문을 한 묶음으로 남은 공간 가운데에 */
@media (min-width: 600px) and (max-width: 1023px) {
  .main__in { justify-content: center; }
  .q { margin: 0; padding-top: 12px; }
}

/* 손가락으로 쓰는 패드: 누르는 영역을 키운다 */
@media (min-width: 600px) and (pointer: coarse) {
  .opt { min-height: 76px; padding: 14px 18px; }
  .opt--sm { min-height: 64px; }
  .opts { gap: 16px; }
  .go { min-height: 60px; }
}

/* 휴대폰 */
@media (max-width: 599px) {
  .acctbar { padding: 6px 20px 0; gap: 0 16px; font-size: 0.875rem; }
  .panel { height: 150px; }
  .panel__in { padding: 14px 20px 16px; }
  .brand { font-size: 1.0625rem; }
  .brand__mark { width: 20px; height: 20px; }
  .panel__tel { font-size: 0.875rem; }
  .panel__k { font-size: 0.8125rem; }
  .panel__h { margin-top: 4px; font-size: 1.25rem; }
  .panel__s { display: none; }
  .main { min-height: 0; }
  .main__in { padding: 16px 20px 32px; }
  .foot { padding-left: 20px; padding-right: 20px; }
  .q { margin: 0; padding: 20px 0 0; }
  .q h1 { font-size: 1.5rem; }
  .opts { margin-top: 22px; gap: 12px; }
  /* 설명이 두 줄로 꺾이지 않도록 한 줄에 하나씩 */
  .opts--svc, .opts--items { grid-template-columns: 1fr; }
  .opt { min-height: 58px; }
  .card { padding: 18px; }
  .sum { padding: 2px 16px; }
  .sum__row { grid-template-columns: 1fr auto; }
  .sum__row dd:not(.sum__edit) { grid-column: 1 / -1; grid-row: 2; }
  .sum__edit { grid-row: 1; grid-column: 2; }
}

/* ================= 번호판 버튼 디자인 (2026-11-26 배포본 적용) =================
   출처: projects/firstshot-trial/latest/css-trial-1 "디자인 시험 1". 선택 버튼은 같은 날 button-lab 4D로 다시 바꿈(아래).
   구조(HTML·JS)와 동작은 그대로 두고 모양만 바꾼다. 버튼 상태 순서(올리면 반쯤 → 누르면 완전히 눌리고 노랑)는 사용자 지정이라 유지.
   방향: 네모·굵은 경계를 줄이고, 구역은 면 색으로 나누고, 모서리는 레퍼런스 실측(토스 16–24px·라이나 24px)처럼 둥글게.
   분야 버튼은 사용자가 살릴 것으로 꼽은 번호판 모양을 부드럽게 옮김. */
:root {
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px;
  --fill: #f4f2ee;          /* 면으로 나누는 옅은 콘크리트 */
  --fill-2: #ebe8e2;
  --line-soft: #eeebe5;
  --notice-bg: #fff6d6;
  --plate-ink: #2b2925;
  --lift: 0 1px 2px rgba(29,28,25,.06), 0 6px 16px -8px rgba(29,28,25,.18);
}

/* 왼쪽 사진: 화면 가장자리에서 띄운 둥근 카드 */
.panel { top: 16px; height: calc(100svh - 32px); margin: 16px 0 16px 16px; border-radius: var(--r-lg); }
.panel__bg { transform: scale(1.06); transition: opacity .5s var(--ease), transform 1.4s var(--ease); }
.panel__bg.is-on { transform: none; }
.panel--account .panel__bg { transform: none; }
.panel__text { transition: opacity .2s var(--ease), transform .3s var(--ease); }
.panel__text.is-swap { transform: translateY(6px); }
.panel__tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .15s var(--ease); }
@media (hover: hover) { .panel__tel:hover { background: rgba(255,255,255,.22); } }
/* 위 사진 띠(1023px 이하)에서는 앞쪽 규칙(.panel__links .panel__tel)이 좌우 여백을 0으로 만들어 글자가 알약 밖으로 튀어나왔다. 같은 세기로 되돌린다. */
@media (max-width: 1023px) { .panel__links .panel__tel { min-height: 40px; padding: 0 16px; white-space: nowrap; } }
@media (max-width: 599px) { .panel__links .panel__tel { min-height: 36px; padding: 0 12px; } }

/* 진행 막대: 끝이 둥근 가는 띠 */
.bar { top: 12px; height: 6px; margin: 16px 32px 0; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.bar i { border-radius: 999px; }

/* 계정 줄(회사·내 정보·로그아웃): 진행 막대처럼 스크롤해도 위에 붙어 있게(2026-11-26 사용자 요청).
   제자리 배치는 그대로 두려고 막대 높이만큼 위로 당기고 같은 만큼 안쪽 여백을 준다. 뒤로 지나가는 글이 비치지 않게 바탕색을 깔고 아래 끝은 흐리게. */
.bar { z-index: 4; }
.acctbar {
  position: sticky; top: 0; z-index: 3;
  margin-top: -22px; padding: 36px 32px 14px;
  background: linear-gradient(180deg, #f4f2ee 0%, #f4f2ee 72%, rgba(244,242,238,0) 100%);
}
@media (max-width: 1023px) { .acctbar { margin-top: -18px; padding: 30px 40px 12px; } }
@media (max-width: 599px) { .acctbar { margin-top: -16px; padding: 22px 20px 10px; } }

/* 안내·입력 묶음: 선 대신 면 */
.notice, .demo { border-left: 0; border-radius: var(--r-sm); background: var(--notice-bg); padding: 12px 16px; }
.notice--ok { background: #e7f4eb; }
.errbox { border-left: 0; border-radius: var(--r-sm); border: 1px solid #f1bcb7; }
/* 본문 바탕: 옅은 콘크리트(2026-11-26 사용자 선택 A). 흰 번호판·입력 묶음이 바탕 위에 놓여 보이게 한다. */
:root { --bg: #f4f2ee; }
/* 시멘트 벽(2026-11-26 사용자 선택 사진1, assets/CREDITS.md).
   가로: 오른쪽은 또렷하게, 글이 놓이는 나머지는 희미하게. 세로: 위 게이지 막대 위쪽으로 갈수록 희미해지고,
   바닥글 위쪽부터 아래로 서서히 사라진다. 본문 칸에 깔아 스크롤과 함께 움직인다(바닥글 위치에 맞추려고).
   데스크톱은 2560px, 작은 화면은 1600px 사진. */
.main { background: transparent; isolation: isolate; }
.main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/concrete-2560.jpg") center / cover no-repeat;
  --wall-x: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.16) 8%, rgba(0,0,0,.16) 58%, rgba(0,0,0,.95) 94%);
  --wall-y: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 56px, #000 calc(100% - 270px), rgba(0,0,0,0) calc(100% - 110px));
  -webkit-mask-image: var(--wall-x), var(--wall-y); -webkit-mask-composite: source-in;
          mask-image: var(--wall-x), var(--wall-y); mask-composite: intersect;
}
/* 한 줄로 쌓이는 패드·휴대폰은 글이 화면 폭을 다 쓰므로 오른쪽 가장자리만 조금 짙게 */
@media (max-width: 1023px) {
  .main::before {
    background-image: url("assets/concrete.jpg");
    --wall-x: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.14) 72%, rgba(0,0,0,.55) 100%);
    --wall-y: linear-gradient(180deg, rgba(0,0,0,0) 0, #000 48px, #000 calc(100% - 290px), rgba(0,0,0,0) calc(100% - 130px));
  }
}

.card { border: 0; border-radius: var(--r-lg); background: #fff; padding: 28px; }
.field input, .field textarea { min-height: 54px; border-radius: var(--r-sm); border-color: #b9b5ad; }
.code { border-radius: var(--r-md); border-width: 1.5px; }
.foot { border-top-color: var(--line-soft); }

/* 선택 버튼(분야·세부 항목): 번호판 4D (2026-11-26 사용자 선택, 시험 페이지 projects/firstshot-trial/latest/button-lab)
   - 판: 옅은 1px 테두리(아래만 한 톤 진하게 옆면처럼), 안쪽 빛·그늘로 볼록. 판 밖으로 떨어지는 그림자 없음(판 바로 아래 1px 선만).
   - 움직임: 올리면 1.5px(.22s), 꾹 누르면 3px 회색으로 쏙(.14s), 떼면 천천히(.32s). 끝에서 살살 멈추는 곡선.
   - 고르면(클릭을 끝내고 뗀 뒤) 판 전체가 한꺼번에 주황으로 선명해지고, 그때만 눌러 찍은 테두리 선이 나타난다.
   - 색은 흰 판과 주황 판 그라데이션을 한 비율(--plate-k)로 섞어 바꾼다. 볼트 둘은 ::after 하나에, 테두리 선은 ::before. */
@property --plate-g1 { syntax: '<color>'; inherits: false; initial-value: #fff; }
@property --plate-g2 { syntax: '<color>'; inherits: false; initial-value: #fbfaf8; }
@property --plate-g3 { syntax: '<color>'; inherits: false; initial-value: #efece6; }
@property --plate-k { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
[data-btn="b"] .opts--svc, [data-btn="b"] .opts--items { gap: 16px; row-gap: 18px; }
[data-btn="b"] .opt {
  --ease-soft: cubic-bezier(.25, .8, .25, 1);
  --plate-g1: #fff; --plate-g2: #fbfaf8; --plate-g3: #efece6; --plate-k: 0%;
  --plate-face: linear-gradient(
    color-mix(in srgb, #e4631a var(--plate-k), var(--plate-g1)) 0%,
    color-mix(in srgb, #ec6f20 var(--plate-k), var(--plate-g2)) 45%,
    color-mix(in srgb, #f47b25 var(--plate-k), var(--plate-g3)) 100%);
  position: relative; align-items: center; text-align: center; gap: 3px; min-height: 84px; padding: 14px 36px;
  border: 1px solid #d3cec5; border-bottom-color: #bfb9ae; border-radius: var(--r-md);
  background: var(--plate-face);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 rgba(43,41,37,.08), 0 1px 0 rgba(43,41,37,.10);
  transition: transform .32s var(--ease-soft), box-shadow .32s var(--ease-soft), border-color .32s var(--ease-soft),
    --plate-g1 .32s var(--ease-soft), --plate-g2 .32s var(--ease-soft), --plate-g3 .32s var(--ease-soft), --plate-k .32s var(--ease-soft);
}
[data-btn="b"] .opt::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(120,45,0,0); border-radius: 12px; pointer-events: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0), inset 0 1px 0 rgba(255,255,255,0);
  transition: border-color .32s var(--ease-soft), box-shadow .32s var(--ease-soft);
}
[data-btn="b"] .opt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 18px 50%, #b3aea4 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 18px) 50%, #b3aea4 3px, transparent 3.5px);
}
[data-btn="b"] .opt b { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; color: var(--plate-ink); }
[data-btn="b"] .opt span { font-size: 0.8125rem; }
@media (hover: hover) { [data-btn="b"] .opt:not([aria-pressed="true"]):hover {
  transform: translateY(1.5px); --plate-g1: #fdfcfb; --plate-g2: #f8f6f3; --plate-g3: #f2efea;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(43,41,37,.08), 0 .5px 0 rgba(43,41,37,.10);
  transition-duration: .22s;
} }
[data-btn="b"] .opt:not([aria-pressed="true"]):active {
  transform: translateY(3px); border-color: #d3cec5; --plate-g1: #ebe8e2; --plate-g2: #f1eee9; --plate-g3: #f6f4f0;
  box-shadow: inset 0 3px 4px rgba(43,41,37,.16);
  transition-duration: .14s;
}
[data-btn="b"] .opt[aria-pressed="true"] {
  transform: translateY(3px); border-color: #d3cec5; --plate-k: 100%;
  background: var(--plate-face);
  box-shadow: inset 0 3px 5px rgba(110,40,0,.34);
}
[data-btn="b"] .opt[aria-pressed="true"]::before {
  border-color: rgba(120,45,0,.32); box-shadow: 0 1px 0 rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
[data-btn="b"] .opt[aria-pressed="true"]::after {
  background: radial-gradient(circle at 18px 50%, rgba(43,41,37,.55) 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 18px) 50%, rgba(43,41,37,.55) 3px, transparent 3.5px);
}
[data-btn="b"] .opt[aria-pressed="true"] b, [data-btn="b"] .opt[aria-pressed="true"] span { color: var(--plate-ink); }

[data-btn="b"] .opt--sm { min-height: 64px; padding: 12px 32px; }
[data-btn="b"] .opt--sm b { font-size: 1rem; font-weight: 700; }

/* 주 버튼: 둥근 진한 버튼, 같은 눌림 순서 */
[data-btn="b"] .go {
  border: 0; border-radius: var(--r-md); background: var(--k-900); background-image: none;
  box-shadow: 0 3px 0 #000, 0 10px 18px -12px rgba(20,20,18,.35);
}
[data-btn="b"] .go:active { transform: translateY(3px); box-shadow: 0 0 0 #000, 0 4px 10px -6px rgba(20,20,18,.5); }
@media (hover: hover) { [data-btn="b"] .go:hover { transform: translateY(1.5px); background: #2e2c28; box-shadow: 0 1.5px 0 #000, 0 8px 18px -10px rgba(20,20,18,.55); } }

/* 패드 세로·휴대폰: 사진 띠도 둥근 카드로 */
@media (max-width: 1023px) {
  /* 사진 띠 줄은 띠 높이만, 남는 세로 공간은 본문 줄이 가져간다(긴 화면에서 띠 아래 빈칸이 생기던 문제). */
  .app { grid-template-rows: auto minmax(0, 1fr); }
  .panel { top: auto; height: 220px; margin: 12px 12px 0; border-radius: 20px; }
  .bar { margin: 12px 40px 0; }
}
@media (max-width: 599px) {
  .panel { height: 150px; margin: 8px 8px 0; border-radius: var(--r-md); }
  .panel__tel { min-height: 36px; padding: 0 12px; }
  .bar { margin: 10px 20px 0; }
  .card { padding: 20px; border-radius: 20px; }
  [data-btn="b"] .opt { min-height: 72px; }
  [data-btn="b"] .opt--sm { min-height: 60px; }
}
/* 낮은 화면(휴대폰 가로 등): 사진 띠를 줄여 질문이 첫 화면에 보이게 */
@media (max-width: 1023px) and (max-height: 560px) {
  .panel { height: 120px; margin-top: 8px; }
  .panel__in { padding-top: 12px; padding-bottom: 14px; }
  .panel__h { -webkit-line-clamp: 1; font-size: 1.25rem; }
  .panel__s { display: none; }
  .main__in { justify-content: flex-start; padding-top: 12px; }
  .q { padding-top: 0; }
  .q h1 { font-size: 1.5rem; }
}
@media (min-width: 600px) and (pointer: coarse) { [data-btn="b"] .opt { min-height: 88px; } [data-btn="b"] .opt--sm { min-height: 72px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  [data-btn] .opt, [data-btn] .go { transform: none !important; }
}
@media print {
  .panel { position: static; height: auto; }
  .bar { display: none; }
}

/* ---------- 손해율 자료 첨부·안내 팝업 (2026-11-26) ---------- */
.upload__h { font-weight: 700; }
.upload__h .req { color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.upload p + p, .upload .field { margin-top: 10px; }
.upload .field input[type="file"] { padding: 12px; border-style: dashed; font-size: 0.9375rem; }
.upload__ok { margin-top: 12px; color: #1f7a3d; font-weight: 700; }
.upload__bad { margin: 6px 0 0; padding-left: 20px; color: var(--danger); font-size: 0.9375rem; }
.upload__bad li + li { margin-top: 4px; }
.dlg { width: min(480px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: var(--r-lg); color: var(--ink); background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.dlg::backdrop { background: rgba(20,20,18,.55); }
.dlg h2 { font-size: 1.125rem; line-height: 1.45; }
.dlg p, .dlg ul { margin-top: 12px; }
.dlg .go { margin-top: 20px; }

/* ---------- 상자 없애기 (2026-11-26 사용자 선택 시안 3) ----------
   흰 판 대신 위아래 선으로만 묶는다. 시멘트 바탕이 그대로 보이고, 입력칸만 흰 칸으로 남는다. */
.card, .sum.card {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid #d6d1c7; border-bottom: 1px solid #d6d1c7;
  padding: 20px 0;
}
.sum.card { padding: 4px 0; }
.sum__row { border-bottom-color: #e2ded6; }
.field input, .field textarea { background: #fff; }
.history { gap: 0; }
.history .card { padding: 16px 0; }
.history .card + .card { border-top: 0; }
@media (max-width: 599px) {
  .card { padding: 16px 0; border-radius: 0; }
  .sum.card { padding: 2px 0; }
}
