/*
  손나루 화면 부품 v3 (2026-11-16) — 정의 단계
  상태: 아직 어떤 화면에도 연결하지 않았다(운영 화면 영향 없음). 미리보기로 대표 확인을 받은 뒤 연결한다.
  설계 문서: docs/design_system/SONNARU_DESIGN_SYSTEM_V3.md   미리보기: docs/design_system/components-preview-v3.html
  토큰: design-tokens-v3.css (이 파일 바로 앞에 불러온다)

  v2(sonnaru-ui.css)와 다른 점
  - v2 는 색·모양만 정하고 크기·글자·뼈대는 옛 층(styles.css 등)에 맡겼다. v3 는 부품마다
    크기(높이·안쪽 여백·글자 크기·줄 높이·아이콘 크기·간격)와 상태(기본·hover·눌림·초점·비활성·처리 중·오류)를 여기서 끝낸다.
  - 모든 부품이 글꼴 크기·줄 높이·여백을 스스로 정하므로 바깥 화면의 루트 글자 크기나 h1~h3·p 기본값에 기대지 않는다.
  - 새 부품: 제목 4단, 공통 머리말·바닥글·하단 메뉴, 공통 6단계, 일 한 건 카드·타임라인, 표·목록 행, 확인 시트,
    사진·파일 올리기(sn-upload), 받은 사진 보기(sn-gallery).
  규칙
  - @layer·!important·@import·외부 주소·data: 주소를 쓰지 않는다(CSP 'self'). 표식(체크·꺾쇠·느낌표)은 CSS 로 그린다.
  - 상태 클래스 .is-hover .is-pressed .is-focus 는 미리보기·화면 비교 검사에서 상태를 고정해 보여 주기 위한 것이다. 화면 코드에서는 쓰지 않는다.
  - 옛 클래스(.btn-primary 등)를 v3 치수로 맞추는 층은 이 파일에 아직 없다. 대응표는 설계 문서 6장, 넣는 시점은 연결 단계(1-12).
  차례: 0 바탕 · 1 제목 · 2 버튼 · 3 입력 · 4 카드·배지·콜아웃 · 5 토스트·시트 · 6 빈 상태·뼈대 로딩
        7 머리말·바닥글·하단 메뉴 · 8 단계·지금 할 일·타임라인 · 9 숫자·표·목록 · 10 올리기·받은 사진 · 11 아이콘·그림 · 12 v2 에서 옮긴 부품
*/

/* ===================================================================
   0. 바탕
   =================================================================== */
.sn-scope {
  font-family: var(--sn-font-body); font-size: var(--sn-text-body); line-height: var(--sn-leading-body);
  font-weight: var(--sn-weight-regular); color: var(--sn-color-text); background: var(--sn-color-bg);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.sn-scope *, .sn-scope *::before, .sn-scope *::after { box-sizing: border-box; }
.sn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sn-page { width: 100%; max-width: var(--sn-container); margin: 0 auto; padding: var(--sn-space-5) var(--sn-gutter) var(--sn-space-10); display: grid; gap: var(--sn-space-4); align-content: start; }
.sn-page > * { min-width: 0; }
.sn-page--wide { max-width: var(--sn-container-wide); }
.sn-stack { display: grid; gap: var(--sn-space-3); min-width: 0; }
.sn-stack > * { min-width: 0; }
.sn-stack--lg { gap: var(--sn-space-6); }
.sn-text { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text); }
.sn-text-sub { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-meta { margin: 0; font-size: var(--sn-text-caption); line-height: var(--sn-leading-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-hint); overflow-wrap: anywhere; }
/* 링크 (2026-11-17 대표 지시 "링크에 밑줄 나오는거 보기 싫습니다", 설계 문서 '링크 규칙')
   - 평소에는 밑줄이 없다. 마우스를 올리거나(:hover) 키보드 초점이 가면(:focus-visible) 밑줄이 나타난다.
   - 링크 색과 본문 글자의 명도 대비가 3:1 에 못 미친다(밝은 화면 1.2~2.4, 어두운 화면 1.2~1.7).
     색만으로 링크를 알아보게 두지 않으려고(WCAG 1.4.1) 문장·목록·표·바닥글 속 링크와 .sn-link 는 굵기 600 으로 구분한다.
   - :where() 로 우선순위를 0 으로 둔다. 버튼·카드·메뉴처럼 자기 규칙을 가진 부품은 그대로다.
   - 키보드 초점 테두리(outline)는 그대로다. 머리말 메뉴의 '지금 화면' 표시선(border-bottom)은 밑줄이 아니라 상태 표시라 둔다.
   - 굵기 600 에서 빼는 목록에는 v2 화면 부품(.sn-btn3d·.download-file·.hm-peek-item)도 들어 있다. v2 와 같은 글로 두려고 그대로 둔다. */
/* [링크 규칙 시작] v2(sonnaru-ui.css)와 v3(sonnaru-ui-v3.css)에 글자 하나 다르지 않게 같이 둔다. 고칠 때는 두 파일을 함께 고친다(검사가 글자 그대로 비교한다). v3 한 곳으로 모으는 일은 디자인 통일 7단계. */
:where(a) { text-decoration-line: none; }
:where(p, li, dd, dt, td, th, figcaption, blockquote, small, label, legend, address, footer) :where(a:not(.btn, .button, .sn-btn, .sn-btn3d, .sn-card, .sn-row, .sn-tile, .sn-chip, .brand, .skip-link, .download-file, .hm-peek-item)) { font-weight: var(--sn-weight-semibold); }
:where(a:hover, a:focus-visible) { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* [링크 규칙 끝] */
.sn-link { color: var(--sn-color-primary-text); font-weight: var(--sn-weight-semibold); text-decoration: none; text-underline-offset: 3px; border-radius: 4px; }
.sn-link:hover, .sn-link.is-hover, .sn-link:focus-visible { text-decoration-line: underline; text-decoration-thickness: 2px; }
.sn-link:focus-visible, .sn-link.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }
@media (min-width: 720px) {
  .sn-page { padding-inline: var(--sn-gutter-wide); gap: var(--sn-space-5); }
}

/* ===================================================================
   1. 제목 4단 (화면 제목 · 카드 제목 · 단락 제목 · 항목 제목)
   h1~h4 태그와 짝지어 쓰되, 크기는 태그가 아니라 클래스가 정한다.
   =================================================================== */
.sn-h1, .sn-h2, .sn-h3, .sn-h4 { margin: 0; font-family: inherit; font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); letter-spacing: -0.01em; }
.sn-h1 { font-size: var(--sn-text-title-1); line-height: var(--sn-leading-title-1); }
.sn-h2 { font-size: var(--sn-text-title-2); line-height: var(--sn-leading-title-2); }
.sn-h3 { font-size: var(--sn-text-title-3); line-height: var(--sn-leading-title-3); }
.sn-h4 { font-size: var(--sn-text-title-4); line-height: var(--sn-leading-title-4); }
/* 화면 제목 묶음: 제목 + 한 줄 설명. 제목 아래 8px */
.sn-pagehead { display: grid; gap: var(--sn-space-2); min-width: 0; }
.sn-pagehead > p { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text-sub); }

/* ===================================================================
   2. 버튼 — 1종 × 역할 4(주·보조·텍스트·위험) × 크기 3(lg 56 · 기본 52 · sm 40)
   크기   높이  좌우여백  글자          아이콘  간격
   lg     56    24        17/1.3/700    20      8
   기본   52    20        17/1.3/700    20      8
   sm     40    14        15/1.3/700    20      8     (누르는 영역 44)
   가로 꽉(--block): 휴대폰 100%, 720px 이상 최대 360px.
   =================================================================== */
.sn-btn {
  --_h: var(--sn-control-h-md); --_px: var(--sn-btn-px-md); --_fs: var(--sn-text-body);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sn-btn-gap);
  box-sizing: border-box; min-height: var(--_h); min-width: var(--sn-target-min); max-width: 100%;
  margin: 0; padding: 8px var(--_px); border: 1px solid transparent; border-radius: var(--sn-radius-full);
  font-family: inherit; font-size: var(--_fs); font-weight: var(--sn-weight-bold); line-height: var(--sn-leading-control); letter-spacing: 0;
  text-align: center; text-decoration: none; white-space: normal; word-break: keep-all; overflow-wrap: anywhere;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; appearance: none;
  transition: background-color var(--sn-duration-fast) var(--sn-ease-standard), border-color var(--sn-duration-fast) var(--sn-ease-standard), transform var(--sn-duration-fast) var(--sn-ease-standard), box-shadow var(--sn-duration-fast) var(--sn-ease-standard);
}
.sn-btn > .sn-icon { width: var(--sn-icon-sm); height: var(--sn-icon-sm); }
.sn-btn:focus-visible, .sn-btn.is-focus { outline: var(--sn-focus-outline); outline-offset: var(--sn-focus-offset); }

/* 크기 */
.sn-btn--lg { --_h: var(--sn-control-h-lg); --_px: var(--sn-btn-px-lg); }
.sn-btn--sm { --_h: var(--sn-control-h-sm); --_px: var(--sn-btn-px-sm); --_fs: var(--sn-text-sub); padding-block: 4px; }
.sn-btn--sm::after { content: ""; position: absolute; inset: calc(min(0px, (var(--_h) - var(--sn-target-min)) / 2) - 1px) -1px; }
.sn-btn--block { display: flex; width: 100%; }
@media (min-width: 720px) { .sn-btn--block { max-width: var(--sn-btn-max-w); } }

/* 주 버튼(입체). 화면당 하나 */
.sn-btn--primary { background: var(--sn-btn3d-face); color: var(--sn-color-text-on-primary); text-shadow: 0 1px 1px rgb(0 0 0 / 25%); box-shadow: var(--sn-btn3d-shadow); margin-bottom: var(--sn-btn3d-depth); }
.sn-btn--primary:hover, .sn-btn--primary.is-hover { background: var(--sn-btn3d-face-hover); color: var(--sn-color-text-on-primary); }
.sn-btn--primary:active, .sn-btn--primary.is-pressed { transform: translateY(var(--sn-btn3d-press)); box-shadow: var(--sn-btn3d-shadow-pressed); }

/* 보조 버튼 */
.sn-btn--secondary { background: var(--sn-color-primary-weak); color: var(--sn-color-primary-text); box-shadow: var(--sn-btn2-shadow); }
.sn-btn--secondary:hover, .sn-btn--secondary.is-hover { background: var(--sn-color-primary-weak-hover); border-color: var(--sn-color-primary-text); }
.sn-btn--secondary:active, .sn-btn--secondary.is-pressed { transform: translateY(1px); box-shadow: none; background: var(--sn-color-primary-weak-hover); }

/* 텍스트 버튼 */
.sn-btn--text { --_h: var(--sn-target-min); --_px: var(--sn-space-2); border-radius: var(--sn-radius-sm); background: transparent; color: var(--sn-color-primary-text); text-decoration: none; text-underline-offset: 3px; }
.sn-btn--text:hover, .sn-btn--text.is-hover { background: var(--sn-color-primary-weak); text-decoration-line: underline; }
.sn-btn--text:focus-visible { text-decoration-line: underline; }
.sn-btn--text:active, .sn-btn--text.is-pressed { background: var(--sn-color-primary-weak-hover); }

/* 위험 버튼 */
.sn-btn--danger { background: var(--sn-color-surface); color: var(--sn-color-danger-text); border-color: var(--sn-color-danger); box-shadow: var(--sn-btn-danger-shadow); }
.sn-btn--danger:hover, .sn-btn--danger.is-hover { background: var(--sn-color-danger-weak); }
.sn-btn--danger:active, .sn-btn--danger.is-pressed { transform: translateY(1px); box-shadow: none; background: var(--sn-color-danger-weak); }

/* 비활성: 회색, 입체 없음. 이유를 버튼 옆 글로 함께 알린다 */
.sn-btn[disabled], .sn-btn[aria-disabled="true"] { background: var(--sn-color-surface-sunk); color: var(--sn-color-text-hint); border-color: var(--sn-color-line); box-shadow: none; text-shadow: none; text-decoration: none; transform: none; cursor: not-allowed; }
.sn-btn--primary[disabled], .sn-btn--primary[aria-disabled="true"] { margin-bottom: var(--sn-btn3d-depth); }

/* 처리 중: aria-busy="true" 만 붙이면 돌림 표시가 생기고 다시 눌리지 않는다. 글자는 '보내는 중이에요'처럼 바꾼다 */
.sn-btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.sn-btn[aria-busy="true"]::before { content: ""; flex: none; width: var(--sn-icon-sm); height: var(--sn-icon-sm); border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sn-spin 0.8s linear infinite; }
.sn-btn--primary[aria-busy="true"] { box-shadow: var(--sn-btn3d-shadow-pressed); transform: translateY(var(--sn-btn3d-press)); }
.sn-spinner { display: inline-block; flex: none; width: var(--sn-icon-sm); height: var(--sn-icon-sm); border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sn-spin 0.8s linear infinite; vertical-align: middle; }
@keyframes sn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sn-btn[aria-busy="true"]::before, .sn-spinner { animation-duration: 2.4s; } }

/* 버튼 묶음 */
.sn-btn-row { display: flex; flex-wrap: wrap; gap: var(--sn-space-2) var(--sn-space-3); align-items: center; }
.sn-btn-pair { display: grid; grid-template-columns: 3fr 7fr; gap: var(--sn-space-2); align-items: start; }
@media (max-width: 360px) { .sn-btn-pair { grid-template-columns: 1fr; } .sn-btn-pair > :first-child { order: 2; } }
/* 선 아이콘(메뉴·버튼 안에서만). inline SVG 에 붙인다 */
.sn-icon { width: var(--sn-icon-md); height: var(--sn-icon-md); flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 아이콘만 있는 버튼(머리말). 44×44, 이름은 aria-label */
.sn-iconbtn { display: inline-grid; place-items: center; width: var(--sn-target-min); height: var(--sn-target-min); margin: 0; padding: 0; border: 0; border-radius: var(--sn-radius-full); background: transparent; color: var(--sn-color-text-strong); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sn-iconbtn:hover, .sn-iconbtn.is-hover { background: var(--sn-color-surface-sunk); }
.sn-iconbtn:active, .sn-iconbtn.is-pressed { background: var(--sn-color-line); }
.sn-iconbtn:focus-visible, .sn-iconbtn.is-focus { outline: var(--sn-focus-outline); outline-offset: 1px; }

/* ===================================================================
   3. 입력 — 한 줄(sn-input)·여러 줄(sn-textarea)·고르기(sn-select) 1종, 체크·라디오 2종(기본·카드형)
   한 줄   높이 52 · 좌우 16 · 글자 17/1.4 · 테두리 1px · 라운드 12
   여러 줄 4줄(약 130) · 안쪽 14/16 · 글자 17/1.5 · 내용만큼 늘어남
   묶음    이름 17/1.45/600 → 6px → 칸 → 6px → 도움말 15/1.55 또는 오류 15/1.55/600
   =================================================================== */
.sn-field { display: grid; gap: 6px; min-width: 0; }
.sn-field__label { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-req, .sn-opt { margin-left: 6px; font-size: var(--sn-text-caption); font-weight: var(--sn-weight-semibold); }
.sn-req { color: var(--sn-color-danger-text); }
.sn-opt { color: var(--sn-color-text-hint); }
.sn-field__help { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-field__error, .sn-field__ok, .sn-field__busy { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); }
.sn-field__error { color: var(--sn-color-danger-text); }
.sn-field__error:empty { display: none; }
.sn-field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-top: 0.12em; border-radius: 50%; background: var(--sn-color-danger-solid); color: var(--sn-color-text-on-danger); font-size: 0.85em; font-weight: 800; line-height: 1; }
.sn-field__ok { color: var(--sn-color-success-text); }
.sn-field__busy { color: var(--sn-color-text-sub); font-weight: var(--sn-weight-medium); align-items: center; }

.sn-input, .sn-textarea, .sn-select {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; margin: 0;
  min-height: var(--sn-input-h); padding: 0 var(--sn-input-px);
  border: 1px solid var(--sn-color-line-control); border-radius: var(--sn-radius-md);
  background-color: var(--sn-color-surface); color: var(--sn-color-text-strong);
  font-family: inherit; font-size: var(--sn-text-body); font-weight: var(--sn-weight-regular); line-height: 1.4; letter-spacing: 0;
  appearance: none; outline: 2px solid transparent; outline-offset: 0;
  transition: border-color var(--sn-duration-fast) var(--sn-ease-standard), box-shadow var(--sn-duration-fast) var(--sn-ease-standard);
}
.sn-textarea { min-height: calc(4 * 1.5em + 2 * var(--sn-input-py) + 2px); padding: var(--sn-input-py) var(--sn-input-px); line-height: 1.5; resize: vertical; field-sizing: content; }
.sn-select { padding-right: 44px; cursor: pointer; background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 23px) 50%, calc(100% - 16px) 50%; background-size: 7px 7px, 7px 7px; }
.sn-input::placeholder, .sn-textarea::placeholder { color: var(--sn-color-text-hint); opacity: 1; }
.sn-input:hover, .sn-textarea:hover, .sn-select:hover, .sn-input.is-hover, .sn-textarea.is-hover, .sn-select.is-hover { border-color: var(--sn-color-text-sub); }
.sn-input:active, .sn-textarea:active, .sn-select:active, .sn-input.is-pressed { border-color: var(--sn-color-primary); }
.sn-input:focus-visible, .sn-textarea:focus-visible, .sn-select:focus-visible, .sn-input.is-focus, .sn-textarea.is-focus, .sn-select.is-focus { border-color: var(--sn-focus-ring-color); box-shadow: inset 0 0 0 1px var(--sn-focus-ring-color), 0 0 0 3px var(--sn-focus-ring-weak); }
.sn-input[aria-invalid="true"], .sn-textarea[aria-invalid="true"], .sn-select[aria-invalid="true"] { border-color: var(--sn-color-danger); box-shadow: inset 0 0 0 1px var(--sn-color-danger); }
.sn-input[aria-invalid="true"]:focus-visible, .sn-textarea[aria-invalid="true"]:focus-visible, .sn-select[aria-invalid="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--sn-color-danger), 0 0 0 3px var(--sn-focus-ring-weak); }
.sn-input:disabled, .sn-textarea:disabled, .sn-select:disabled { background-color: var(--sn-color-surface-sunk); color: var(--sn-color-text-hint); border-color: var(--sn-color-line); cursor: not-allowed; box-shadow: none; }
.sn-input[readonly], .sn-textarea[readonly], .sn-input.is-prefilled { background-color: var(--sn-color-surface-sunk); border-color: var(--sn-color-line); }
.sn-input[aria-busy="true"] { border-style: dashed; }
/* 금액·숫자 칸은 숫자 폭을 맞춘다 */
.sn-input--number { font-variant-numeric: tabular-nums; }

/* 체크·라디오: 같은 틀(sn-check)을 type 만 바꿔 쓴다. 칸 24, 줄 전체가 44 이상 눌린다 */
.sn-check { position: relative; display: flex; gap: var(--sn-space-3); align-items: flex-start; min-height: var(--sn-target-min); margin: 0; padding: 9px 0; font-size: var(--sn-text-body); line-height: 1.5; color: var(--sn-color-text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sn-check > input { flex: none; width: var(--sn-check-size); height: var(--sn-check-size); margin: calc((1.5em - var(--sn-check-size)) / 2) 0 0; accent-color: var(--sn-color-primary); cursor: inherit; }
.sn-check > input:focus-visible, .sn-check.is-focus > input { outline: var(--sn-focus-outline); outline-offset: 2px; }
.sn-check:hover, .sn-check.is-hover { color: var(--sn-color-text-strong); }
.sn-check:has(> input:disabled) { color: var(--sn-color-text-hint); cursor: not-allowed; }
.sn-check:has(> input[aria-invalid="true"]) { color: var(--sn-color-danger-text); }
.sn-check > input[aria-invalid="true"] { outline: 2px solid var(--sn-color-danger); outline-offset: 1px; }
/* 카드형: 고르는 항목이 중요하거나 설명이 붙을 때 */
.sn-check--card { padding: 13px var(--sn-input-px); min-height: var(--sn-input-h); border: 1px solid var(--sn-color-line-control); border-radius: var(--sn-radius-md); background: var(--sn-color-surface); }
.sn-check--card:hover, .sn-check--card.is-hover { border-color: var(--sn-color-text-sub); }
.sn-check--card:has(> input:checked) { border-color: var(--sn-color-primary); background: var(--sn-color-primary-weak); box-shadow: inset 0 0 0 1px var(--sn-color-primary); color: var(--sn-color-text-strong); }
.sn-check--card:has(> input:disabled) { background: var(--sn-color-surface-sunk); border-color: var(--sn-color-line); box-shadow: none; }
.sn-check--card:has(> input[aria-invalid="true"]) { border-color: var(--sn-color-danger); box-shadow: inset 0 0 0 1px var(--sn-color-danger); }
.sn-check__sub { display: block; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); font-weight: var(--sn-weight-regular); }
.sn-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--sn-space-2); }
.sn-fieldset > legend { padding: 0; margin: 0 0 var(--sn-space-1); font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-form { display: grid; gap: var(--sn-space-5); min-width: 0; }

/* ===================================================================
   4. 카드 · 배지 · 콜아웃
   카드   안쪽 16(720px 이상 24) · 라운드 16 · 선 1px · 안 간격 12. 카드 안에 카드를 넣지 않는다(구역은 __section 으로 나눈다)
   배지   높이 26 · 좌우 10 · 글자 14/1.3/600 · 라운드 8
   콜아웃 안쪽 14/16 · 라운드 12 · 아이콘 32 · 제목 17/700 · 글 15/1.55
   =================================================================== */
.sn-card { display: grid; gap: var(--sn-card-gap); align-content: start; min-width: 0; margin: 0; padding: var(--sn-card-pad); background: var(--sn-color-surface); color: var(--sn-color-text); border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-lg); box-shadow: var(--sn-shadow-card); font-size: var(--sn-text-body); line-height: var(--sn-leading-body); }
.sn-card > * { min-width: 0; margin-block: 0; }
.sn-card__head { display: flex; gap: var(--sn-space-3); align-items: center; min-width: 0; }
.sn-card__head > :not(img) { min-width: 0; }
.sn-card__section { display: grid; gap: var(--sn-space-2); padding-top: var(--sn-card-gap); border-top: 1px solid var(--sn-color-line); min-width: 0; }
.sn-card__section > * { min-width: 0; margin-block: 0; }
.sn-card--sunk { background: var(--sn-color-surface-sunk); border-color: transparent; box-shadow: none; }
/* 누를 수 있는 카드(목록의 일 한 건) */
a.sn-card, button.sn-card { text-decoration: none; text-align: left; font-family: inherit; cursor: pointer; width: 100%; }
a.sn-card:hover, button.sn-card:hover, .sn-card.is-hover { border-color: var(--sn-color-line-control); }
a.sn-card:active, button.sn-card:active, .sn-card.is-pressed { background: var(--sn-color-surface-sunk); }
a.sn-card:focus-visible, button.sn-card:focus-visible, .sn-card.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }
/* 카드 안 카드는 평평하게 눕힌다(금지 규칙의 안전망) */
.sn-card .sn-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
@media (min-width: 720px) { .sn-card { --sn-card-pad: 24px; --sn-card-gap: 16px; } }

.sn-badge { display: inline-flex; align-items: center; gap: 6px; min-height: calc(26px * var(--sn-scale-chrome)); max-width: 100%; padding: 2px 10px; border-radius: var(--sn-radius-sm); font-size: var(--sn-text-chrome); font-weight: var(--sn-weight-semibold); line-height: var(--sn-leading-control); white-space: nowrap; vertical-align: middle; background: var(--sn-color-surface-sunk); color: var(--sn-color-text-sub); }
.sn-badge--neutral { background: var(--sn-color-surface-sunk); color: var(--sn-color-text-sub); }    /* 기다림 */
.sn-badge--primary { background: var(--sn-color-primary-weak); color: var(--sn-color-primary-text); } /* 내 차례 */
.sn-badge--check { background: var(--sn-color-check-weak); color: var(--sn-color-check-text); }       /* 주의 */
.sn-badge--success { background: var(--sn-color-success-weak); color: var(--sn-color-success-text); } /* 완료 */
.sn-badge--danger { background: var(--sn-color-danger-weak); color: var(--sn-color-danger-text); }    /* 문제 */
.sn-badge--ai { background: var(--sn-color-ai-weak); color: var(--sn-color-ai-text); }                /* AI가 만든 것 */
.sn-badge--dot::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* 건수 동그라미 */
.sn-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--sn-radius-full); background: var(--sn-color-danger-solid); color: var(--sn-color-text-on-danger); font-size: 14px; font-weight: var(--sn-weight-bold); line-height: 1; font-variant-numeric: tabular-nums; }

.sn-callout { display: flex; gap: var(--sn-space-3); align-items: flex-start; min-width: 0; margin: 0; padding: 14px var(--sn-space-4); border-radius: var(--sn-radius-md); border: 1px solid transparent; background: var(--sn-color-info-weak); color: var(--sn-color-text); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); }
.sn-callout > img { flex: none; width: var(--sn-icon3d-md); height: var(--sn-icon3d-md); object-fit: contain; }
.sn-callout > div { min-width: 0; display: grid; gap: 2px; }
.sn-callout p, .sn-callout ul { margin: 0; }
.sn-callout ul { padding-left: 1.1em; }
.sn-callout__title { font-size: var(--sn-text-title-4); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-bold); color: var(--sn-color-info-text); }
.sn-callout--info { background: var(--sn-color-info-weak); }
.sn-callout--check { background: var(--sn-color-check-weak); border-color: var(--sn-color-check-mark); }
.sn-callout--check .sn-callout__title { color: var(--sn-color-check-text); }
.sn-callout--danger { background: var(--sn-color-danger-weak); border-color: var(--sn-color-danger); }
.sn-callout--danger .sn-callout__title { color: var(--sn-color-danger-text); }
.sn-callout--success { background: var(--sn-color-success-weak); }
.sn-callout--success .sn-callout__title { color: var(--sn-color-success-text); }
.sn-callout--ai { background: var(--sn-color-ai-weak); }
.sn-callout--ai .sn-callout__title { color: var(--sn-color-ai-text); }

/* ===================================================================
   5. 토스트 · 확인 시트
   토스트  불투명 · 한 번에 1개 · 오류와 일시 안내에만(성공은 해당 카드 안에 표시) · 안쪽 14/16 · 글자 15/1.5/600 · 4초
           자리: 하단 메뉴·하단 주 버튼 위(--sn-toast-bottom). 주 버튼을 가리지 않는다.
   시트    휴대폰은 아래에서 올라옴(윗모서리 24) · 720px 이상은 가운데 창(최대 480) · 안쪽 20 · 제목 22/700
   =================================================================== */
.sn-toast-region { position: fixed; left: 0; right: 0; bottom: calc(var(--sn-toast-bottom, 16px) + env(safe-area-inset-bottom, 0px)); z-index: var(--sn-z-toast); display: grid; justify-items: center; padding: 0 var(--sn-gutter); pointer-events: none; }
/* 한 번에 1개: 새 토스트가 들어오면 앞의 것은 보이지 않는다(스크립트가 지우기 전에도) */
.sn-toast-region > .sn-toast:not(:last-child) { display: none; }
.sn-toast { pointer-events: auto; display: flex; gap: var(--sn-space-3); align-items: center; width: 100%; max-width: 480px; margin: 0; padding: 14px var(--sn-space-4); border-radius: var(--sn-radius-md); background: var(--sn-color-inverse); color: var(--sn-color-text-on-inverse); box-shadow: var(--sn-shadow-float); font-size: var(--sn-text-sub); line-height: 1.5; font-weight: var(--sn-weight-semibold); opacity: 1; }
.sn-toast > p { margin: 0; flex: 1; min-width: 0; }
.sn-toast--danger::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sn-color-danger-solid); color: var(--sn-color-text-on-danger); font-size: 15px; font-weight: 800; line-height: 1; }
.sn-toast__close { flex: none; min-width: var(--sn-target-min); min-height: var(--sn-target-min); margin: -10px -8px -10px 0; padding: 0 8px; border: 0; border-radius: var(--sn-radius-sm); background: transparent; color: inherit; font: inherit; font-weight: var(--sn-weight-bold); text-decoration: none; text-underline-offset: 3px; cursor: pointer; }
.sn-toast__close:hover, .sn-toast__close:focus-visible { text-decoration-line: underline; }
.sn-toast__close:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }

.sn-sheet-backdrop { position: fixed; inset: 0; z-index: var(--sn-z-sheet); display: flex; align-items: flex-end; justify-content: center; background: var(--sn-color-overlay); }
.sn-sheet { display: grid; gap: var(--sn-space-4); align-content: start; width: 100%; max-width: 480px; max-height: 88%; overflow-y: auto; margin: 0; padding: var(--sn-space-3) var(--sn-space-5) calc(var(--sn-space-5) + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: var(--sn-radius-xl) var(--sn-radius-xl) 0 0; background: var(--sn-color-surface); color: var(--sn-color-text); box-shadow: var(--sn-shadow-float); font-size: var(--sn-text-body); line-height: var(--sn-leading-body); }
.sn-sheet > * { min-width: 0; margin-block: 0; }
.sn-sheet__grab { justify-self: center; width: 40px; height: 4px; border-radius: var(--sn-radius-full); background: var(--sn-color-line-control); }
.sn-sheet__title { margin: 0; font-size: var(--sn-text-title-2); line-height: var(--sn-leading-title-2); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-sheet__body { display: grid; gap: var(--sn-space-3); }
.sn-sheet__body > * { margin-block: 0; min-width: 0; }
@media (min-width: 720px) {
  .sn-sheet-backdrop { align-items: center; padding: var(--sn-space-6); }
  .sn-sheet { border-radius: var(--sn-radius-xl); padding: var(--sn-space-6); }
  .sn-sheet__grab { display: none; }
}
/* 화면 아래에 붙는 주 버튼 자리 */
.sn-bottom-cta { position: sticky; bottom: 0; z-index: var(--sn-z-sticky); display: grid; gap: var(--sn-space-2); padding: var(--sn-space-3) var(--sn-gutter) calc(var(--sn-space-3) + env(safe-area-inset-bottom, 0px)); background: var(--sn-color-surface); border-top: 1px solid var(--sn-color-line); }
/* 화면이 낮으면(높이 700px 미만) 붙이지 않고 본문 끝에 둔다. 큰 글씨에서 본문을 가리지 않게 */
@media (max-height: 699px) { .sn-bottom-cta { position: static; } }
/* 하단 메뉴가 함께 있는 화면에서는 메뉴 바로 위에 붙인다 */
.sn-bottom-cta--above-nav { bottom: calc(var(--sn-bottomnav-h) + env(safe-area-inset-bottom, 0px)); }

/* ===================================================================
   6. 빈 상태 · 뼈대 로딩
   빈 상태  기본(글만, 필요하면 입체 아이콘 64) / --art(그림 있는 큰 것, 화면당 1회). 제목 19/700 · 설명 15 · 버튼 하나(보조)
   뼈대     줄 높이 = 글자 줄 높이, 라운드 8, 1.4초 흐름(움직임 줄이기에서는 멈춤). 감싸는 곳에 aria-busy="true"
   =================================================================== */
.sn-empty { display: grid; gap: var(--sn-space-2); justify-items: center; text-align: center; min-width: 0; margin: 0; padding: var(--sn-space-6) var(--sn-space-4); border: 1px dashed var(--sn-color-line-control); border-radius: var(--sn-radius-lg); background: var(--sn-color-surface); color: var(--sn-color-text); }
.sn-empty > img { width: var(--sn-icon3d-xl); height: var(--sn-icon3d-xl); object-fit: contain; }
.sn-empty__title { margin: 0; font-size: var(--sn-text-title-3); line-height: var(--sn-leading-title-3); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-empty__desc { margin: 0; max-width: 28em; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-empty > .sn-btn { margin-top: var(--sn-space-2); }
.sn-empty--art { border-style: solid; border-color: var(--sn-color-line); padding: var(--sn-space-6) var(--sn-space-5); }
.sn-empty--art > img.sn-empty__art { width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 3; border-radius: var(--sn-radius-lg); object-fit: cover; background: var(--sn-color-surface-sunk); }

.sn-skeleton { display: block; min-height: 1em; border-radius: var(--sn-radius-sm); background: linear-gradient(90deg, var(--sn-color-surface-sunk) 25%, var(--sn-color-line) 50%, var(--sn-color-surface-sunk) 75%); background-size: 200% 100%; animation: sn-shimmer 1.4s linear infinite; color: transparent; }
.sn-skeleton--title { height: calc(var(--sn-text-title-2) * 1.35); width: 60%; }
.sn-skeleton--line { height: calc(var(--sn-text-body) * 1.1); margin-block: calc(var(--sn-text-body) * 0.25); }
.sn-skeleton--short { width: 40%; }
.sn-skeleton--btn { height: var(--sn-control-h-md); border-radius: var(--sn-radius-full); }
.sn-skeleton--thumb { aspect-ratio: 1; min-height: 0; }
@keyframes sn-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sn-skeleton { animation: none; } }

/* ===================================================================
   7. 공통 머리말(공개/앱) · 바닥글 · 하단 메뉴
   머리말   높이 56. 공개: 로고 + 메뉴 4개(서비스·가격 / AI 연결 / 도움 / 내 화면). 휴대폰은 2줄(56 + 44 = 100px, 상한 120)
            앱: [뒤로 또는 로고] 화면 이름 [도구 2개 이하]. 한 줄 56px
   바닥글   1종. 법정 표시 문구는 지금 화면의 것을 그대로 넣는다(모양만 통일). --compact 는 앱 안
   하단 메뉴 높이 64 · 3~5칸 · 아이콘 24 + 이름 14/600 · 지금 화면은 aria-current="page"
   =================================================================== */
.sn-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; align-items: center; column-gap: var(--sn-space-3); min-width: 0; padding: 0 var(--sn-gutter); background: var(--sn-color-surface); color: var(--sn-color-text-strong); border-bottom: 1px solid var(--sn-color-line); font-size: var(--sn-text-chrome); line-height: var(--sn-leading-control); }
.sn-header__brand { grid-area: brand; display: inline-flex; align-items: center; gap: var(--sn-space-2); min-height: var(--sn-header-h); min-width: 0; color: inherit; text-decoration: none; font-size: calc(19px * var(--sn-scale-chrome)); font-weight: 800; letter-spacing: -0.02em; justify-self: start; border-radius: var(--sn-radius-sm); }
.sn-header__brand > img { width: 28px; height: 28px; flex: none; }
.sn-header__brand:focus-visible { outline: var(--sn-focus-outline); outline-offset: -3px; }
.sn-header__title { grid-area: brand; margin: 0; min-width: 0; display: flex; align-items: center; gap: var(--sn-space-1); min-height: var(--sn-header-h); font-size: calc(18px * var(--sn-scale-chrome)); font-weight: var(--sn-weight-bold); line-height: 1.3; color: var(--sn-color-text-strong); }
.sn-header__title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-header__actions { grid-area: actions; display: flex; align-items: center; gap: var(--sn-space-1); min-height: var(--sn-header-h); }
.sn-header__nav { grid-area: nav; display: flex; gap: var(--sn-space-1); min-width: 0; margin: 0 calc(var(--sn-gutter) * -1); padding: 0 calc(var(--sn-gutter) - 8px); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--sn-color-line); }
.sn-header__nav::-webkit-scrollbar { display: none; }
.sn-header__nav > a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--sn-target-min); min-height: var(--sn-target-min); padding: 0 var(--sn-space-2); color: var(--sn-color-text-sub); text-decoration: none; font-size: var(--sn-text-chrome); font-weight: var(--sn-weight-semibold); white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.sn-header__nav > a:hover, .sn-header__nav > a.is-hover { color: var(--sn-color-text-strong); }
.sn-header__nav > a[aria-current="page"] { color: var(--sn-color-primary-text); border-bottom-color: var(--sn-color-primary); }
.sn-header__nav > a:focus-visible { outline: var(--sn-focus-outline); outline-offset: -3px; }
/* 공개 머리말: 기본형과 같다(상표 + 오른쪽 단추 한 줄, 그 아래 메뉴 한 줄). 이름을 붙여 쓰는 화면을 위해 규칙을 밝혀 둔다. */
.sn-header--public { grid-template-areas: "brand actions" "nav nav"; }
.sn-header--app { grid-template-areas: "brand actions"; }
.sn-header--app .sn-header__title > .sn-iconbtn { margin-left: -10px; flex: none; }
@media (min-width: 720px) {
  .sn-header { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; padding: 0 var(--sn-gutter-wide); column-gap: var(--sn-space-6); }
  .sn-header__nav { margin: 0; padding: 0; border-top: 0; gap: var(--sn-space-3); align-self: stretch; }
  .sn-header__nav > a { min-height: var(--sn-header-h); }
  .sn-header--app { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions"; }
}

.sn-footer { display: grid; gap: var(--sn-space-3); min-width: 0; padding: var(--sn-space-6) var(--sn-gutter) calc(var(--sn-space-8) + env(safe-area-inset-bottom, 0px)); background: var(--sn-color-surface); color: var(--sn-color-text-sub); border-top: 1px solid var(--sn-color-line); font-size: var(--sn-text-caption); line-height: 1.6; }
.sn-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--sn-space-4); margin: 0 -4px; }
.sn-footer__links > a { display: inline-flex; align-items: center; min-height: var(--sn-target-min); padding: 0 4px; color: var(--sn-color-text-strong); font-weight: var(--sn-weight-semibold); text-decoration: none; text-underline-offset: 3px; }
.sn-footer__links > a:hover, .sn-footer__links > a:focus-visible { text-decoration-line: underline; text-decoration-thickness: 2px; }
.sn-footer__links > a:focus-visible { outline: var(--sn-focus-outline); outline-offset: -3px; }
.sn-footer__legal { margin: 0; max-width: 60em; }
.sn-footer--compact { padding-block: var(--sn-space-4); background: transparent; border-top: 0; }
@media (min-width: 720px) { .sn-footer { padding-inline: var(--sn-gutter-wide); } }

.sn-bottomnav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; padding: 0 var(--sn-space-1) env(safe-area-inset-bottom, 0px); background: var(--sn-color-surface); border-top: 1px solid var(--sn-color-line); }
.sn-bottomnav--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--sn-z-sticky); }
.sn-bottomnav > a, .sn-bottomnav > button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: var(--sn-bottomnav-h); margin: 0; padding: 6px 2px; border: 0; background: transparent; color: var(--sn-color-text-sub); font-family: inherit; font-size: var(--sn-text-chrome); font-weight: var(--sn-weight-semibold); line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sn-bottomnav > * > .sn-icon { width: var(--sn-icon-md); height: var(--sn-icon-md); }
.sn-bottomnav > :hover, .sn-bottomnav > .is-hover { color: var(--sn-color-text-strong); }
.sn-bottomnav > :active, .sn-bottomnav > .is-pressed { background: var(--sn-color-surface-sunk); }
.sn-bottomnav > [aria-current="page"] { color: var(--sn-color-primary-text); font-weight: var(--sn-weight-bold); }
.sn-bottomnav > [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sn-color-primary); }
.sn-bottomnav > :focus-visible, .sn-bottomnav > .is-focus { outline: var(--sn-focus-outline); outline-offset: -4px; }
.sn-bottomnav .sn-count { position: absolute; top: 6px; left: calc(50% + 6px); }

/* ===================================================================
   8. 단계 표시(공통 6단계) · 상태 한 줄 · 지금 할 일 카드 · 일 한 건 타임라인
   단계    ① 부탁 ② 조건·견적 ③ 결제 ④ 사람 연결 ⑤ 수행 ⑥ 결과 확인. 종류에 없는 단계는 li 를 빼서 숨긴다.
           점 28 · 완료=초록 체크 · 지금=파랑 숫자 · 앞으로=흰 바탕 회색 숫자. 560px 미만은 이름을 숨기고 아래 한 줄(__now)로 알린다
   상태 한 줄  [단계 배지] 누구 차례 · 할 일 · 기한
   지금 할 일  아이콘 40 · 제목 22/700 · 설명 17 · 주 버튼 하나. 내 차례가 아니면 버튼 대신 기다림 안내
   타임라인    누가(굵게) · 언제(14) · 무엇(17) · 맨 끝에 '다음 차례'
   =================================================================== */
.sn-stepper { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; counter-reset: sn-step; }
.sn-stepper > li { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 6px; counter-increment: sn-step; font-size: var(--sn-text-chrome); line-height: 1.3; font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-sub); text-align: center; }
.sn-stepper > li::before { content: ""; position: absolute; top: calc(var(--sn-step-dot) / 2 - 1px); right: 50%; width: 100%; height: 2px; background: var(--sn-color-line-control); }
.sn-stepper > li:first-child::before { display: none; }
.sn-stepper > li.is-done::before, .sn-stepper > li[aria-current="step"]::before { background: var(--sn-color-success-solid); }
.sn-stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--sn-step-dot); height: var(--sn-step-dot); border-radius: 50%; border: 2px solid var(--sn-color-line-control); background: var(--sn-color-surface); color: var(--sn-color-text-sub); font-size: calc(14px * var(--sn-scale-chrome)); font-weight: var(--sn-weight-bold); line-height: 1; font-variant-numeric: tabular-nums; }
.sn-stepper__dot::before { content: counter(sn-step); }
.sn-stepper > li.is-done > .sn-stepper__dot { border-color: var(--sn-color-success-solid); background: var(--sn-color-success-solid); }
.sn-stepper > li.is-done > .sn-stepper__dot::before { content: ""; width: 32%; height: 56%; margin-top: -12%; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sn-stepper > li[aria-current="step"] > .sn-stepper__dot { border-color: var(--sn-color-primary); background: var(--sn-color-primary); color: var(--sn-color-text-on-primary); box-shadow: 0 0 0 4px var(--sn-focus-ring-weak); }
.sn-stepper > li[aria-current="step"] { color: var(--sn-color-primary-text); font-weight: var(--sn-weight-bold); }
.sn-stepper > li.is-done { color: var(--sn-color-text); }
.sn-stepper__label { display: block; max-width: 100%; padding: 0 2px; overflow-wrap: anywhere; }
.sn-stepper__now { margin: var(--sn-space-2) 0 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); color: var(--sn-color-primary-text); text-align: center; }
@media (max-width: 559px) {
  .sn-stepper__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 560px) { .sn-stepper__now { display: none; } }

.sn-statusline { display: flex; flex-wrap: wrap; gap: 6px var(--sn-space-2); align-items: center; min-width: 0; margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-statusline > b { font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-statusline > .sn-statusline__sep { color: var(--sn-color-text-hint); }

.sn-now { border-left: 4px solid var(--sn-color-primary); }
.sn-now__top { display: flex; gap: var(--sn-space-3); align-items: center; min-width: 0; }
.sn-now__top > img { flex: none; width: var(--sn-icon3d-lg); height: var(--sn-icon3d-lg); object-fit: contain; }
.sn-now__step { margin: 0; min-width: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); color: var(--sn-color-primary-text); }
.sn-now__title { margin: 0; font-size: var(--sn-text-title-2); line-height: var(--sn-leading-title-2); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
/* 다음 차례 표기: <p class="sn-now__owner"><span>다음 차례</span><b>고객님</b> … </p> (v2 이름 그대로. 화면 코드가 이미 쓴다) */
.sn-now__owner { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sn-space-2); margin: 0; min-width: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-sub); }
.sn-now__owner > b, .sn-now__owner > strong { font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-now__desc { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text-sub); }
.sn-now.is-wait { border-left-color: var(--sn-color-line-control); }
.sn-now.is-wait .sn-now__step { color: var(--sn-color-text-sub); }
.sn-now.is-attention { border-left-color: var(--sn-color-check-mark); }
.sn-now.is-attention .sn-now__step { color: var(--sn-color-check-text); }
.sn-now.is-done { border-left-color: var(--sn-color-success-solid); }
.sn-now.is-done .sn-now__step { color: var(--sn-color-success-text); }
.sn-now.is-problem { border-left-color: var(--sn-color-danger); }
.sn-now.is-problem .sn-now__step { color: var(--sn-color-danger-text); }
/* 기다림 안내 3줄: 누가 처리 중 · 보통 걸리는 시간 · 늦으면 문의 (값이 정해진 것만 적는다) */
.sn-wait { display: grid; gap: 2px; margin: 0; padding: var(--sn-space-3) var(--sn-space-4); border-radius: var(--sn-radius-md); background: var(--sn-color-surface-sunk); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); list-style: none; }
.sn-wait > li:first-child { font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }

.sn-timeline { display: grid; gap: 0; min-width: 0; margin: 0; padding: 0; list-style: none; }
.sn-timeline__item { position: relative; display: grid; gap: 2px; min-width: 0; padding: 0 0 var(--sn-space-4) 28px; }
.sn-timeline__item::before { content: ""; position: absolute; left: 5px; top: calc(var(--sn-text-body) * 0.8 - 6px); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sn-color-line-control); background: var(--sn-color-surface); z-index: 1; }
.sn-timeline__item::after { content: ""; position: absolute; left: 10px; top: calc(var(--sn-text-body) * 0.8 + 6px); bottom: calc(var(--sn-text-body) * -0.8 + 6px); width: 2px; background: var(--sn-color-line); }
.sn-timeline__item:last-child { padding-bottom: 0; }
.sn-timeline__item:last-child::after { display: none; }
.sn-timeline__item.is-done::before { border-color: var(--sn-color-success-solid); background: var(--sn-color-success-solid); }
.sn-timeline__item.is-current::before { border-color: var(--sn-color-primary); background: var(--sn-color-primary); box-shadow: 0 0 0 4px var(--sn-focus-ring-weak); }
.sn-timeline__item.is-problem::before { border-color: var(--sn-color-danger); background: var(--sn-color-danger); }
.sn-timeline__head { display: flex; flex-wrap: wrap; gap: 0 var(--sn-space-2); align-items: baseline; min-width: 0; }
.sn-timeline__who { font-size: var(--sn-text-body); line-height: var(--sn-leading-body); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-timeline__when { font-size: var(--sn-text-caption); line-height: var(--sn-leading-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-hint); font-variant-numeric: tabular-nums; }
.sn-timeline__what { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text); }
.sn-timeline__note { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-timeline__item--next .sn-timeline__who { color: var(--sn-color-primary-text); }
.sn-timeline__item--next::before { border-style: dashed; border-color: var(--sn-color-primary); }

/* 조건 요약(무엇을·얼마·언제·보완·취소)처럼 이름-값 짝 */
.sn-kv { display: grid; grid-template-columns: minmax(5.5em, auto) minmax(0, 1fr); gap: 6px var(--sn-space-4); margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); }
.sn-kv > dt { margin: 0; color: var(--sn-color-text-sub); font-size: var(--sn-text-sub); line-height: calc(var(--sn-text-body) * var(--sn-leading-body)); }
.sn-kv > dd { margin: 0; min-width: 0; color: var(--sn-color-text-strong); font-weight: var(--sn-weight-medium); }
@media (max-width: 359px) { .sn-kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .sn-kv > dd { margin-bottom: var(--sn-space-2); } }
.sn-details { min-width: 0; border-top: 1px solid var(--sn-color-line); }
.sn-details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sn-space-3); min-height: var(--sn-target-min); padding: var(--sn-space-2) 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); color: var(--sn-color-primary-text); cursor: pointer; list-style: none; }
.sn-details > summary::-webkit-details-marker { display: none; }
.sn-details > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--sn-duration-fast) var(--sn-ease-standard); }
.sn-details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.sn-details > summary:focus-visible { outline: var(--sn-focus-outline); outline-offset: 2px; border-radius: var(--sn-radius-sm); }
.sn-details > :not(summary) { margin: 0 0 var(--sn-space-3); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }

/* ===================================================================
   9. 핵심 숫자 · 표 · 목록 행
   숫자   이름 15 · 값 30/1.25/700(숫자 폭 고정) · 단위 17 · 뜻 15. 화면당 1~2개
   표     머리 14/600 · 칸 17(안쪽 12/12) · 줄 최소 52. 휴대폰에서는 --stack 으로 한 줄이 한 묶음이 된다(칸 이름은 data-label)
   목록 행 최소 56 · 안쪽 12/0 · [아이콘 24|40] 제목 17/600 + 보조 15 [배지|꺾쇠]
   =================================================================== */
.sn-bignum { display: grid; gap: 2px; min-width: 0; margin: 0; }
.sn-bignum__label { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-sub); }
.sn-bignum__value { margin: 0; font-size: var(--sn-text-display); line-height: var(--sn-leading-display); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sn-bignum__value > small { margin-left: 2px; font-size: var(--sn-text-body); font-weight: var(--sn-weight-semibold); }
.sn-bignum__meaning { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-bignum-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--sn-space-4); }

.sn-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-lg); background: var(--sn-color-surface); }
.sn-table { width: 100%; border-collapse: collapse; font-size: var(--sn-text-body); line-height: 1.45; color: var(--sn-color-text); }
.sn-table th, .sn-table td { padding: var(--sn-space-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--sn-color-line); }
.sn-table thead th { font-size: var(--sn-text-caption); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-sub); background: var(--sn-color-surface-sunk); white-space: nowrap; }
.sn-table tbody th { font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-table tbody tr { height: 52px; }
.sn-table tbody tr:last-child > * { border-bottom: 0; }
.sn-table tbody tr:hover, .sn-table tbody tr.is-hover { background: var(--sn-color-surface-sunk); }
.sn-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 719px) {
  .sn-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sn-table--stack, .sn-table--stack tbody { display: block; }
  .sn-table--stack tbody tr { display: grid; gap: 4px; height: auto; padding: var(--sn-space-3); border-bottom: 1px solid var(--sn-color-line); }
  .sn-table--stack tbody tr:last-child { border-bottom: 0; }
  .sn-table--stack tbody th, .sn-table--stack tbody td { display: flex; justify-content: space-between; gap: var(--sn-space-3); padding: 0; border: 0; text-align: right; }
  .sn-table--stack tbody th { text-align: left; font-size: var(--sn-text-title-4); }
  .sn-table--stack tbody td::before { content: attr(data-label); flex: none; font-size: var(--sn-text-sub); color: var(--sn-color-text-sub); text-align: left; }
  .sn-table--stack tbody td:has(.sn-btn) { justify-content: flex-start; padding-top: var(--sn-space-2); }
  .sn-table--stack tbody td:has(.sn-btn)::before { display: none; }
}

.sn-list { display: grid; min-width: 0; margin: 0; padding: 0; list-style: none; }
.sn-list > li { min-width: 0; border-bottom: 1px solid var(--sn-color-line); }
.sn-list > li:last-child { border-bottom: 0; }
.sn-row { display: flex; gap: var(--sn-space-3); align-items: center; width: 100%; min-width: 0; min-height: calc(56px * var(--sn-scale-chrome)); margin: 0; padding: var(--sn-space-3) 0; border: 0; background: transparent; color: var(--sn-color-text); font-family: inherit; font-size: var(--sn-text-body); line-height: 1.45; text-align: left; text-decoration: none; }
.sn-row > img { flex: none; width: var(--sn-icon3d-sm); height: var(--sn-icon3d-sm); object-fit: contain; }
.sn-row > img.is-lg { width: var(--sn-icon3d-lg); height: var(--sn-icon3d-lg); }
.sn-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sn-row__title { font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-row__sub { font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-row__end { flex: none; display: inline-flex; align-items: center; gap: var(--sn-space-2); max-width: 45%; }
a.sn-row, button.sn-row { cursor: pointer; border-radius: var(--sn-radius-sm); -webkit-tap-highlight-color: transparent; }
a.sn-row::after, button.sn-row::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid var(--sn-color-text-hint); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
a.sn-row:hover, button.sn-row:hover, .sn-row.is-hover { background: var(--sn-color-surface-sunk); }
a.sn-row:active, button.sn-row:active, .sn-row.is-pressed { background: var(--sn-color-line); }
a.sn-row:focus-visible, button.sn-row:focus-visible, .sn-row.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }
/* 포함·불포함 글머리 */
.sn-checklist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--sn-text-body); line-height: var(--sn-leading-body); }
.sn-checklist > li { position: relative; padding-left: 30px; }
.sn-checklist > li::before { content: ""; position: absolute; left: 0; top: calc(var(--sn-text-body) * 0.8 - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--sn-color-success-weak); }
.sn-checklist > li::after { content: ""; position: absolute; left: 7px; top: calc(var(--sn-text-body) * 0.8 - 6px); width: 6px; height: 10px; border: solid var(--sn-color-success-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sn-checklist > li.is-no { color: var(--sn-color-text-sub); }
.sn-checklist > li.is-no::before { background: var(--sn-color-surface-sunk); }
.sn-checklist > li.is-no::after { left: 5px; top: calc(var(--sn-text-body) * 0.8 - 1px); width: 10px; height: 0; border-width: 0 0 2px 0; border-color: var(--sn-color-text-sub); transform: none; }

/* ===================================================================
   10. 사진·파일 올리기(sn-upload) · 받은 사진 보기(sn-gallery)
   올리기  [이름 + 'n / 최대 장']  →  두 버튼('사진 찍기' · '앨범에서 고르기', 보조 52)  →  안내(형식·용량·장수) 15
           →  미리보기 격자(한 칸 최소 96, 1:1, 라운드 8, 간격 8)  →  칸마다 '교체'·'삭제'(각 44 이상)
           상태: 올리는 중(진행 막대 + %), 올림(초록 표시), 오류(빨강 테두리 + 원인별 문구), 최대 장수(버튼 비활성 + 이유)
           '사진 찍기' 는 <input type="file" accept="image/*" capture="environment">, '앨범에서 고르기' 는 capture 없이 multiple.
   받은 사진  격자(같은 칸 규격) + '사진 n장 · 누가 · 언제'. 누르면 크게 보기(sn-viewer: 사진 · n/N · 이전·다음 · 닫기)
   =================================================================== */
.sn-upload { display: grid; gap: var(--sn-space-3); min-width: 0; }
.sn-upload__head { display: flex; flex-wrap: wrap; gap: 2px var(--sn-space-3); align-items: baseline; justify-content: space-between; min-width: 0; }
.sn-upload__label { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-upload__count { font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-sub); font-variant-numeric: tabular-nums; }
.sn-upload__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sn-space-2); }
.sn-upload__actions > .sn-btn { padding-inline: var(--sn-space-3); }
.sn-upload__actions > .sn-btn:has(> input:focus-visible) { outline: var(--sn-focus-outline); outline-offset: var(--sn-focus-offset); }
.sn-upload__actions > .sn-btn:has(> input:disabled) { background: var(--sn-color-surface-sunk); color: var(--sn-color-text-hint); border-color: var(--sn-color-line); box-shadow: none; cursor: not-allowed; }
@media (max-width: 339px) { .sn-upload__actions { grid-template-columns: minmax(0, 1fr); } }
.sn-upload__hint { margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); }
.sn-upload__limit { margin: 0; padding: var(--sn-space-2) var(--sn-space-3); border-radius: var(--sn-radius-sm); background: var(--sn-color-check-weak); color: var(--sn-color-check-text); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); }
.sn-upload__grid, .sn-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sn-thumb-min)), 1fr)); gap: var(--sn-space-2); min-width: 0; margin: 0; padding: 0; list-style: none; }
.sn-upload__item { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 4px; min-width: 0; }
.sn-upload__thumb, .sn-gallery__thumb { position: relative; display: block; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-sm); background: var(--sn-color-surface-sunk); }
.sn-upload__thumb > img, .sn-gallery__thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sn-upload__name { margin: 0; font-size: var(--sn-text-caption); line-height: var(--sn-leading-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-sub); overflow-wrap: anywhere; }
.sn-upload__item-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sn-upload__item-actions > button { min-height: var(--sn-target-min); margin: 0; padding: 0 4px; border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-sm); background: var(--sn-color-surface); color: var(--sn-color-primary-text); font-family: inherit; font-size: var(--sn-text-chrome); font-weight: var(--sn-weight-semibold); line-height: 1.2; cursor: pointer; }
.sn-upload__item-actions > button.is-delete { color: var(--sn-color-danger-text); }
.sn-upload__item-actions > button:hover, .sn-upload__item-actions > button.is-hover { background: var(--sn-color-surface-sunk); border-color: var(--sn-color-line-control); }
.sn-upload__item-actions > button:active { background: var(--sn-color-line); }
.sn-upload__item-actions > button:focus-visible, .sn-upload__item-actions > button.is-focus { outline: var(--sn-focus-outline); outline-offset: 1px; }
.sn-upload__item-actions > button:disabled { color: var(--sn-color-text-hint); background: var(--sn-color-surface-sunk); cursor: not-allowed; }
/* 칸 상태 */
.sn-upload__item.is-uploading .sn-upload__thumb > img { opacity: 0.45; }
.sn-upload__state { position: absolute; left: 4px; right: 4px; bottom: 4px; display: grid; gap: 3px; padding: 4px 6px; border-radius: 6px; background: var(--sn-color-inverse); color: var(--sn-color-text-on-inverse); font-size: 14px; font-weight: var(--sn-weight-bold); line-height: 1.3; text-align: center; }
.sn-upload__item.is-done .sn-upload__thumb { border-color: var(--sn-color-success-solid); }
.sn-upload__item.is-error .sn-upload__thumb { border: 2px solid var(--sn-color-danger); }
.sn-upload__item.is-error .sn-upload__name { color: var(--sn-color-danger-text); font-weight: var(--sn-weight-semibold); }
/* 진행 막대(올리기 전체·칸 안 공용). <progress value max> */
.sn-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: var(--sn-radius-full); overflow: hidden; background: var(--sn-color-line); appearance: none; accent-color: var(--sn-color-primary); }
.sn-progress::-webkit-progress-bar { background: var(--sn-color-line); border-radius: var(--sn-radius-full); }
.sn-progress::-webkit-progress-value { background: var(--sn-color-primary); border-radius: var(--sn-radius-full); }
.sn-progress::-moz-progress-bar { background: var(--sn-color-primary); border-radius: var(--sn-radius-full); }
.sn-upload__state > .sn-progress { height: 5px; }
.sn-upload__progress { display: grid; gap: 4px; margin: 0; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-sub); }
/* 용량·형식 오류 묶음: 어떤 파일이 왜 안 되는지, 어떻게 하면 되는지 */
.sn-upload__errors { display: grid; gap: 4px; margin: 0; padding: var(--sn-space-3) var(--sn-space-4); list-style: none; border: 1px solid var(--sn-color-danger); border-radius: var(--sn-radius-md); background: var(--sn-color-danger-weak); color: var(--sn-color-text); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); }
.sn-upload__errors > li > b { color: var(--sn-color-danger-text); font-weight: var(--sn-weight-bold); overflow-wrap: anywhere; }
/* 사진이 아닌 파일 한 줄(이름 · 크기 · 삭제) */
.sn-upload__file { display: flex; gap: var(--sn-space-3); align-items: center; min-width: 0; min-height: var(--sn-input-h); padding: var(--sn-space-2) var(--sn-space-3); border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-md); background: var(--sn-color-surface); }
.sn-upload__file > img { flex: none; width: var(--sn-icon3d-sm); height: var(--sn-icon3d-sm); }
.sn-upload__file > span { flex: 1; min-width: 0; display: grid; font-size: var(--sn-text-sub); line-height: 1.45; color: var(--sn-color-text-strong); font-weight: var(--sn-weight-semibold); overflow-wrap: anywhere; }
.sn-upload__file > span > small { font-size: var(--sn-text-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-sub); }

.sn-gallery { display: grid; gap: var(--sn-space-2); min-width: 0; }
.sn-gallery__head { display: flex; flex-wrap: wrap; gap: 2px var(--sn-space-3); align-items: baseline; justify-content: space-between; }
.sn-gallery__title { margin: 0; font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); color: var(--sn-color-text-strong); }
.sn-gallery__meta { margin: 0; font-size: var(--sn-text-caption); line-height: var(--sn-leading-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-hint); }
button.sn-gallery__thumb { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
button.sn-gallery__thumb:hover, .sn-gallery__thumb.is-hover { border-color: var(--sn-color-primary); }
button.sn-gallery__thumb:focus-visible, .sn-gallery__thumb.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }
.sn-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(23 25 28 / 62%); color: #fff; font-size: var(--sn-text-title-3); font-weight: var(--sn-weight-bold); }
.sn-gallery__empty { margin: 0; padding: var(--sn-space-4); border: 1px dashed var(--sn-color-line-control); border-radius: var(--sn-radius-md); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); color: var(--sn-color-text-sub); text-align: center; }
/* 크게 보기 */
.sn-viewer { position: fixed; inset: 0; z-index: var(--sn-z-sheet); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0b0c0e; color: #fff; }
.sn-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sn-space-3); min-height: var(--sn-header-h); padding: 0 var(--sn-space-2) 0 var(--sn-gutter); font-size: var(--sn-text-sub); font-weight: var(--sn-weight-semibold); font-variant-numeric: tabular-nums; }
.sn-viewer__stage { min-height: 0; display: grid; place-items: center; padding: 0 var(--sn-space-2); }
.sn-viewer__stage > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--sn-radius-sm); }
.sn-viewer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sn-space-2); padding: var(--sn-space-3) var(--sn-gutter) calc(var(--sn-space-3) + env(safe-area-inset-bottom, 0px)); }
.sn-viewer__btn { min-height: max(var(--sn-target-min), var(--sn-control-h-sm)); min-width: var(--sn-target-min); margin: 0; padding: 4px var(--sn-space-3); border: 1px solid rgb(255 255 255 / 55%); border-radius: var(--sn-radius-full); background: transparent; color: #fff; font-family: inherit; font-size: var(--sn-text-sub); font-weight: var(--sn-weight-bold); line-height: 1.3; cursor: pointer; }
.sn-viewer__btn:hover, .sn-viewer__btn.is-hover { background: rgb(255 255 255 / 14%); }
.sn-viewer__btn:focus-visible { outline: 3px solid #c4d4ff; outline-offset: 2px; }
.sn-viewer__btn:disabled { border-color: rgb(255 255 255 / 25%); color: rgb(255 255 255 / 55%); cursor: not-allowed; }

/* ===================================================================
   11. 입체 아이콘 · 브랜드 그림
   입체 아이콘  크기 4종만: 24(목록·배지 옆) · 32(콜아웃) · 40(카드 머리·지금 할 일) · 64(빈 상태·결과). 꾸밈이면 alt="" + 옆에 낱말
                쓰는 곳: 카드 머리·지금 할 일·콜아웃·빈 상태·목록 행 머리. 버튼·메뉴 안에는 선 아이콘(sn-icon)만. 글자 기호(✦ ✳ ⌘) 금지
   브랜드 그림  화면당 핵심 그림 하나 · 4:3(hero 는 16:9) · 라운드 20 · 'AI로 만들었어요' 표기 한 번. 실사풍 사진 금지
   =================================================================== */
.sn-icon3d { display: inline-block; flex: none; width: var(--sn-icon3d-lg); height: var(--sn-icon3d-lg); object-fit: contain; vertical-align: middle; }
.sn-icon3d--24 { width: var(--sn-icon3d-sm); height: var(--sn-icon3d-sm); }
.sn-icon3d--32 { width: var(--sn-icon3d-md); height: var(--sn-icon3d-md); }
.sn-icon3d--40 { width: var(--sn-icon3d-lg); height: var(--sn-icon3d-lg); }
.sn-icon3d--64 { width: var(--sn-icon3d-xl); height: var(--sn-icon3d-xl); }
/* 옛 48 은 v3 크기 4종(24·32·40·64)에 없다. 이름은 남기고 40 으로 그린다(화면 코드 5곳). 화면을 옮길 때 --40 으로 바꾼다. */
.sn-icon3d--48 { width: var(--sn-icon3d-lg); height: var(--sn-icon3d-lg); }
.sn-art { display: grid; gap: var(--sn-space-2); justify-items: center; max-width: 100%; margin: 0; }
.sn-art > img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 20px; background: var(--sn-color-surface-sunk); }
.sn-art--wide > img { max-width: 100%; }
.sn-art-note, .sn-ai-mark { margin: 0; font-size: var(--sn-text-caption); line-height: var(--sn-leading-caption); font-weight: var(--sn-weight-medium); color: var(--sn-color-text-hint); }
:root[data-theme="dark"] .sn-art > img, :root[data-theme="dark"] .sn-empty__art { filter: brightness(0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sn-art > img, :root:not([data-theme="light"]) .sn-empty__art { filter: brightness(0.92); } }

/* ===================================================================
   12. v2 에서 이름 그대로 옮긴 부품 (검토 반영 2026-11-16)
   화면 코드가 이미 쓰는 v2 클래스다. sonnaru-ui.css 를 이 파일로 바꾸는 날 모양이 사라지지 않게 v3 치수로 다시 정했다.
   옮기지 않은 것: sn-process·sn-vsteps·sn-steps(→ sn-stepper 로 바꿈), html.sn-standalone(--pilot)(옛 버튼 대응 층과 함께 연결 단계에서 정함).
   전체 대응은 설계 문서 6장.
   결과 안내   sn-result       가운데 정렬 · 입체 아이콘 64 · 제목 19 · 설명 본문
   복사 칸     sn-copybox      고정폭 글자 · 줄바꿈 허용 · 가로 넘침 없음
   첫 화면 틀  sn-hero         글 + 그림 2단(720px 부터) · 라운드 20
   고르는 타일 sn-tiles/tile   최소 120 · 그림 64 · 고른 것은 테두리 2 + 옅은 파랑
   고르는 칩   sn-chip         높이 44 · 고른 것은 파랑 테두리
   할 일 목록  sn-todo         행 높이 56 · 행 전체가 누르는 곳
   =================================================================== */
.sn-result { display: grid; justify-items: center; gap: var(--sn-space-3); min-width: 0; padding: var(--sn-space-6) var(--sn-space-4); text-align: center; }
.sn-result > .sn-icon { width: 32px; height: 32px; }
.sn-result > .sn-icon3d, .sn-result > img { width: var(--sn-icon3d-xl); height: var(--sn-icon3d-xl); object-fit: contain; }
.sn-result--error > .sn-icon { color: var(--sn-color-danger-text); }
.sn-result__title { margin: 0; font-size: var(--sn-text-title-3); line-height: var(--sn-leading-title-3); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
.sn-result__desc { margin: 0; max-width: var(--sn-measure); font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text-sub); }

.sn-copybox { display: grid; gap: var(--sn-space-2); min-width: 0; }
.sn-copybox :is(pre, code, textarea) { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: var(--sn-space-3) var(--sn-space-4); border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-md); background: var(--sn-color-surface-sunk); color: var(--sn-color-text-strong); font-family: var(--sn-font-mono); font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); white-space: pre-wrap; overflow-wrap: anywhere; }
.sn-copybox textarea { resize: vertical; min-height: 96px; }
.sn-copybox textarea:focus-visible { outline: var(--sn-focus-outline); outline-offset: 2px; }

.sn-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--sn-space-5); min-width: 0; padding: var(--sn-space-5) var(--sn-space-4); border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-xl); background: linear-gradient(160deg, var(--sn-color-surface), var(--sn-color-primary-weak)); color: var(--sn-color-text); }
.sn-hero > * { min-width: 0; }
.sn-hero :is(h1, h2) { margin: 0 0 var(--sn-space-3); font-size: var(--sn-text-title-1); line-height: var(--sn-leading-title-1); font-weight: var(--sn-weight-bold); color: var(--sn-color-text-strong); }
/* 글 묶음(hero 바로 아래 칸)의 클래스 없는 문단만 본문 크기로 정한다. 가격 숫자(sn-bignum__value)·콜아웃·클래스가 있는 문단은 제 크기를 지킨다. */
.sn-hero > * > p:not([class]) { margin: 0 0 var(--sn-space-5); font-size: var(--sn-text-body); line-height: var(--sn-leading-body); color: var(--sn-color-text-sub); }
.sn-hero img { display: block; width: 100%; height: auto; border-radius: 20px; }
@media (min-width: 720px) { .sn-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: var(--sn-space-6); } }

.sn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: var(--sn-space-3); min-width: 0; margin: 0; padding: 0; list-style: none; }
.sn-tile { display: grid; justify-items: center; align-content: start; gap: var(--sn-space-2); min-width: 0; min-height: var(--sn-target-min); margin: 0; padding: var(--sn-space-4) var(--sn-space-2); border: 1px solid var(--sn-color-line); border-radius: var(--sn-radius-lg); background: var(--sn-color-surface); color: var(--sn-color-text-strong); font-family: inherit; font-size: var(--sn-text-sub); line-height: var(--sn-leading-sub); font-weight: var(--sn-weight-semibold); text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.sn-tile > img { width: var(--sn-icon3d-xl); height: var(--sn-icon3d-xl); object-fit: contain; }
:is(a, button, label).sn-tile { cursor: pointer; }
:is(a, button, label).sn-tile:hover, .sn-tile.is-hover { border-color: var(--sn-color-primary); }
.sn-tile:focus-visible, .sn-tile:has(input:focus-visible), .sn-tile.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }
.sn-tile[aria-pressed="true"], .sn-tile[aria-current="true"], .sn-tile:has(input:checked) { border-color: var(--sn-color-primary); box-shadow: inset 0 0 0 1px var(--sn-color-primary); background: var(--sn-color-primary-weak); color: var(--sn-color-primary-text); }

.sn-chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--sn-space-1); min-height: var(--sn-target-min); margin: 0; padding: 0 var(--sn-space-4); border: 1px solid var(--sn-color-line-control); border-radius: var(--sn-radius-full); background: var(--sn-color-surface); color: var(--sn-color-text); font-family: inherit; font-size: var(--sn-text-sub); line-height: var(--sn-leading-control); font-weight: var(--sn-weight-medium); cursor: pointer; }
.sn-chip:hover, .sn-chip.is-hover { border-color: var(--sn-color-primary); }
.sn-chip[aria-pressed="true"], .sn-chip:has(input:checked) { border-color: var(--sn-color-primary); background: var(--sn-color-primary-weak); color: var(--sn-color-primary-text); font-weight: var(--sn-weight-bold); }
.sn-chip:focus-visible, .sn-chip:has(input:focus-visible), .sn-chip.is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; }

.sn-todo { display: grid; min-width: 0; margin: 0; padding: 0; list-style: none; }
.sn-todo > li { display: flex; align-items: center; gap: var(--sn-space-3); min-width: 0; min-height: 56px; border-top: 1px solid var(--sn-color-line); }
.sn-todo > li:first-child { border-top: 0; }
.sn-todo :is(a, button) { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sn-space-2); min-height: var(--sn-target-min); margin: 0; padding: var(--sn-space-1) 0; border: 0; background: none; color: var(--sn-color-text-strong); font-family: inherit; font-size: var(--sn-text-body); line-height: var(--sn-leading-title-4); font-weight: var(--sn-weight-semibold); text-align: left; text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
.sn-todo :is(a, button):hover, .sn-todo :is(a, button).is-hover { color: var(--sn-color-primary-text); }
.sn-todo :is(a, button):focus-visible, .sn-todo :is(a, button).is-focus { outline: var(--sn-focus-outline); outline-offset: 2px; border-radius: var(--sn-radius-sm); }
