

:root{--bg:#f2f4f6;--surface:#fff;--fg:#191f28;--sub:#4e5968;--muted:#5f6b7a;--line:#e5e8eb;--accent:#3182f6;--accent-strong:#1b64da;--accent-text:#1b64da;--accent-soft:#e8f3ff;--warn:#d22030;--warn-soft:#ffeeee;--danger:#d22030;--ok:#0b7a34;--ok-soft:#e3f8eb;--ka:#fee500;--ka-fg:#191919;--ig:#fde8f0;--ig-fg:#c2255c;--nv:#e3f8eb;--nv-fg:#0b7a34;--gr:#f2f4f6;--gr-fg:#4e5968;--tab:rgba(255,255,255,.94);--dim:rgba(0,0,0,.45)}
@media (prefers-color-scheme:dark){:root{--bg:#101216;--surface:#1a1d23;--fg:#eceef1;--sub:#b0b8c1;--muted:#8b95a1;--line:#2a2e36;--accent:#4c93ff;--accent-strong:#1b64da;--accent-text:#6aa6ff;--accent-soft:rgba(76,147,255,.16);--warn:#ff6b78;--warn-soft:rgba(240,68,82,.16);--danger:#d22030;--ok:#4cc97a;--ok-soft:rgba(76,201,122,.14);--ig:rgba(240,101,149,.18);--ig-fg:#f783ac;--nv:rgba(76,201,122,.16);--nv-fg:#4cc97a;--gr:#262a31;--gr-fg:#b0b8c1;--tab:rgba(26,29,35,.94);--dim:rgba(0,0,0,.6);color-scheme:dark}.card{box-shadow:0 0 0 1px rgba(255,255,255,.07)}}
*{box-sizing:border-box}
:where(a,button,summary,[tabindex],input,select,textarea,.next,.stages button,.chips button,.btn,.ib,.fab,.tick):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button,input,select,textarea{font-family:inherit}
body{margin:0;background:var(--bg);color:var(--fg);font:400 15px/1.55 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;word-break:keep-all;-webkit-font-smoothing:antialiased}
a{color:inherit}
label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;margin-bottom:12px}
input,select,textarea{font:inherit;font-size:16px;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px;min-height:46px;width:100%}
textarea{min-height:90px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
fieldset{border:0;margin:0 0 14px;padding:0;min-width:0}
legend{font-size:14px;font-weight:600;margin-bottom:8px;padding:0}

.sprite{position:absolute;width:0;height:0;overflow:hidden}
svg.i{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
svg.i.f{fill:currentColor;stroke:none}
:where(.av.ig,.av.ph,.av.gr):empty::before{content:"";width:24px;height:24px;flex:none;background:currentColor;-webkit-mask:var(--avm) center/contain no-repeat;mask:var(--avm) center/contain no-repeat} /* 채널 동그라미 그림 (P4, 작업판 430): 줄마다 <svg><use> 대신 그림을 여기 한 번 (today.ts avatar, 아이콘 길·굵기는 svg.i 와 같음). :where 로 우선순위를 0,1,1 로 낮춰 칸반 카드 18px·오늘 카드 21px 같은 크기 덮기가 이기게 (개발 리드 1) */
@media (forced-colors:active){:where(.av.ig,.av.ph,.av.gr):empty::before{forced-color-adjust:none;background:CanvasText}} /* 고대비 모드에서 배경색이 덮여 그림이 사라지지 않게 (개발 리드 1 P4 ③) */
.av.ig{--avm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.2' y='4.2' width='15.6' height='15.6' rx='4.6'/%3E%3Ccircle cx='12' cy='12' r='3.6'/%3E%3Ccircle cx='16.9' cy='7.1' r='.6'/%3E%3C/svg%3E")}.av.ph{--avm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.9 3.9 9.2 4.5l1.1 3.3-1.8 1.6a11.5 11.5 0 0 0 6.1 6.1l1.6-1.8 3.3 1.1.6 2.3a1.6 1.6 0 0 1-1.5 2A16.4 16.4 0 0 1 4.9 5.4a1.6 1.6 0 0 1 2-1.5z'/%3E%3C/svg%3E")}.av.gr{--avm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5 6.4 6h11.2L20 13.5V18a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18zM4 13.5h4.2l1.4 2.5h4.8l1.4-2.5H20'/%3E%3C/svg%3E")}.av.gs{--avm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 9.5 6 5h12l1.5 4.5M4.5 9.5h15V19a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1zM9.6 20v-5h4.8v5'/%3E%3C/svg%3E")}
header.top{position:sticky;top:0;z-index:5;background:color-mix(in oklab,var(--bg) 92%,transparent);backdrop-filter:blur(10px);padding:8px max(20px,env(safe-area-inset-right)) 6px max(20px,env(safe-area-inset-left));min-height:44px;display:flex;align-items:center;gap:12px}
header.top b{font-size:15px;font-weight:600;color:var(--sub);line-height:1.3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} /* 긴 가게 이름은 한 줄 (QA 5차 P2-5). 전체 이름은 가게 설정에 */
/* 머리줄 로고 C (11/09 사용자 결정, research/디자인 결과.md '로고 C 개발 스펙'): 시작 탭에만 왼쪽에 표식 26 + 글자 그림, 가게 이름은 오른쪽 14px·폭 55%까지 한 줄 말줄임.
   컴퓨터 폭(960px 이상)은 왼쪽 메뉴에 표식이 있어 로고를 숨기고 가게 이름을 15px로 되돌린다 */
header.top .wm{display:flex;align-items:center;gap:8px;flex:none;color:var(--fg)}
header.top .wm svg{display:block;flex:none}
header.top .wm+b{margin-left:auto;font-size:14px;max-width:55%}
@media (min-width:960px){header.top .wm{display:none}header.top .wm+b{margin-left:0;font-size:15px;max-width:none}}
nav.tabs{position:fixed;z-index:6;left:0;right:0;bottom:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));background:var(--tab);box-shadow:0 -1px 0 var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
nav.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:54px;font-size:12px;font-weight:600;line-height:1.2;color:var(--muted);text-decoration:none;white-space:nowrap}
nav.tabs a svg.i{width:2em;height:2em} /* 탭 아이콘이 글을 따라 커지게: 글 12px → 24px 그대로, 글자 200%면 두 배 (L81, 디자이너 1950 안9) */
nav.tabs .fab b svg.i{width:24px;height:24px} /* 가운데 + 는 48px 고정 동그라미 안이라 글을 따라 커지지 않게(200%에서 동그라미를 꽉 채우던 것, L81 덧·QA 2113 M9-P3-29). 넓은 화면은 아래 20px 규칙이 뒤에 와서 이김 */
nav.tabs a.on{color:var(--fg)}
nav.tabs .fab b{width:48px;height:48px;border-radius:50%;background:var(--accent-strong);color:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(27,100,218,.35)}
nav.tabs .fab svg.i{stroke-width:2.4}
nav.tabs .mark{display:none}
nav.tabs .fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{padding:4px max(16px,env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:1280px;margin:0 auto}
@media (min-width:960px){
body:has(> nav.tabs){padding-left:232px}
nav.tabs{top:0;right:auto;width:232px;grid-auto-flow:row;grid-auto-rows:min-content;grid-auto-columns:auto;align-content:start;gap:2px;padding:18px 12px;background:var(--surface);box-shadow:1px 0 0 var(--line);-webkit-backdrop-filter:none;backdrop-filter:none}
nav.tabs .mark{display:flex;align-items:center;margin:0 0 18px 14px;height:28px}
nav.tabs .mark .wm{display:flex;align-items:center;gap:8px;color:var(--fg)}nav.tabs .mark .wm svg{display:block;flex:none} /* 표식 22 + 글자, 휴대폰 머리줄 .wm 과 같은 치수 (T167) */
nav.tabs a{flex-direction:row;justify-content:flex-start;gap:12px;min-height:48px;padding:0 14px;border-radius:12px;font-size:15px}
nav.tabs a svg.i{width:1.6em;height:1.6em} /* 넓은 화면 옆 막대는 글 15px → 24px 그대로 (L81) */
nav.tabs a.on{background:var(--bg)}
nav.tabs .fab{margin:4px 0}
nav.tabs .fab b{width:32px;height:32px;margin-left:-4px;box-shadow:none}
nav.tabs .fab b svg.i{width:20px;height:20px}
nav.tabs .fab span{position:static;width:auto;height:auto;overflow:visible;clip:auto;color:var(--accent-text);font-weight:700}
}
@media print{nav.tabs,.sprite{display:none!important}body{padding-left:0!important}}
.stage-chips,.board{overscroll-behavior-x:contain}
button,.btn,.ib,.up-x,nav.tabs a,.stage-chips a,.quick a,.qa-tile>span,.qa-chip span,.board.kan .card,.lmore{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (min-width:960px) and (pointer:coarse){.board .card{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
@media (pointer:coarse) and (max-width:959px){html.kb-open nav.tabs{display:none}}
@media (prefers-reduced-transparency:reduce){header.top{background:var(--bg)}header.top,nav.tabs{-webkit-backdrop-filter:none;backdrop-filter:none}nav.tabs{background:var(--surface)}}

.chip{display:inline-block;font-size:12px;font-weight:600;border-radius:6px;padding:2px 7px;background:var(--accent-soft);color:var(--accent-text);white-space:nowrap}
/* 처리 정지 표시 한 꼴 (L75, 디자이너 1950 안4): 회색 칩. 멈춤은 오류·지우기가 아니라 빨강 아님 */
.chip.stop{background:var(--gr);color:var(--sub);font-weight:600}
.cstop{margin:8px 0 12px}.cstop .note{display:block;margin-top:6px}
/* L87 (디자이너 2103): 칩 링크는 보이는 크기 그대로, 누르는 칸만 44px (위아래 12px·좌우 6px) */
a.chip.stop{position:relative}a.chip.stop::after{content:"";position:absolute;inset:-12px -6px}
/* 처리 정지 손님 화면(STOPPED_JS)에서 눌리지 않게 된 칸: 읽기 전용 기간 .ro 꼴과 같은 흐림 */
.dt button:disabled,.dt select:disabled,.dt input:disabled,.ax button:disabled,.ax select:disabled,.ax input:disabled{opacity:.5;cursor:not-allowed}
/* 빈 상태 규칙 둘 (DD-2, dev/dd1): 카드 안 한 줄이 비면 .empty — 14px --sub, 왼쪽 여백 0(카드 글과 같은 선). 카드 하나가 통째로 비면 아래 .blank(kit.ts empty()) */
.empty{margin:0;padding:6px 0;font-size:14px;line-height:1.55;color:var(--sub)}
/* 빈 상태 (디자인 시스템 10-4 .empty, QA 4차 P2-14): 점선 · 아이콘 동그라미 · 제목 16/700 + 설명 14. kit.ts empty() */
.blank{border:1.5px dashed var(--line);border-radius:20px;padding:16px 18px;display:flex;gap:14px;align-items:center;color:var(--sub);font-size:14px;line-height:1.5;margin:0 0 12px;max-width:640px}
.blank .av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface);color:var(--muted)}
.blank .av svg.i{width:21px;height:21px}
.blank b{display:block;color:var(--fg);font-size:16px;font-weight:700;margin-bottom:2px}
.blank>div{min-width:0}
.blank a{color:var(--accent-text);font-weight:600}
details.more{margin-top:16px;background:var(--surface);border-radius:14px;padding:12px 14px}
details.more summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;min-height:28px;margin:-12px -14px;padding:12px 14px}
details summary::-webkit-details-marker{display:none}
details.more summary::after{content:"";flex:none;width:9px;height:9px;margin-top:5px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
details.more[open] summary::after{transform:rotate(225deg);margin-top:9px}
details.more ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column}
details.more li a{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid var(--line);text-decoration:none;font-size:14px}
.panel{background:var(--surface);border-radius:20px;padding:18px;margin-bottom:12px}
.panel h2{font-size:15px;margin:0 0 12px}
.panel>h2{overflow-wrap:anywhere} /* 고객 화면 제목의 띄어쓰기 없는 긴 이름 (QA 5차) */
.panel.alert{box-shadow:inset 3px 0 0 var(--warn)}
.panel.alert h2{margin-bottom:8px}
.alert-text{margin:0;font-size:15px;line-height:1.55}
.panel.alert .note{margin:6px 0 12px}
.kv{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;font-size:14px;margin:0}
.kv dt{color:var(--muted)}
.kv dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
/* 버튼 크기 하나로 (DD-5, dev/dd1): 파란 주 버튼 56·모서리 16·17/700(상세 아래 줄·빠른 추가 저장과 같음), 회색 보조 48·모서리 14·--gr.
   회색 바탕 위(카드 밖)에 놓이는 회색 버튼은 라이트에서 바탕과 같은 색이 되니 그 자리만 흰 바탕(.onbg·찾기 줄, R7 메모). 이 CSS는 사장님 앱 틀에만 실린다 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:56px;padding:8px 20px;border:0;border-radius:16px;font-size:17px;font-weight:700;line-height:1.25;text-align:center;background:var(--accent-strong);color:#fff;text-decoration:none;cursor:pointer}
.btn.sec{min-height:48px;padding:6px 16px;border-radius:14px;font-size:15px;background:var(--gr);color:var(--fg);box-shadow:none}
/* 파일 고르기 단추 (T166, 디자이너 1534 P3-1): 브라우저 기본 회색 단추 대신 .btn.sec와 같은 바탕·둥근 모서리·44px (색은 토큰이라 다크도 같이) */
input[type=file]{max-width:100%;font:inherit;font-size:14px;color:var(--fg)}
input[type=file]::file-selector-button{min-height:44px;margin-right:10px;padding:6px 16px;border:0;border-radius:14px;font:inherit;font-size:15px;font-weight:600;background:var(--gr);color:var(--fg);cursor:pointer}
.btn.danger{min-height:48px;padding:6px 16px;border-radius:14px;font-size:15px;background:var(--danger)}
.onbg .btn.sec,.find .btn.sec,.allnote .btn.sec{background:var(--surface)}
.btns{display:flex;gap:8px;flex-wrap:wrap}
/* 하위 화면 위 줄 (DD-15, dev/dd1): 상세(.dt-nav)와 같은 ‹ 44 한 칸 + 바로 아래 28 화면 제목. 이 줄이 있으면 머리줄(가게 이름)은 숨긴다(상세와 같음). kit.ts subTop() */
body:has(.subtop) > header.top{display:none}
.subtop{display:flex;align-items:center;min-height:48px;margin:0 -12px -8px}
.subtop a{width:44px;height:44px;display:grid;place-items:center;color:var(--fg);text-decoration:none;border-radius:12px}
/* 달 고르기 (DD-3, dev/dd1): 숫자 탭과 월간 리포트가 같이 쓰는 꺾쇠 줄. 28 제목 아래 15px 줄(오늘 탭 날짜 줄 자리). kit.ts monthNav() */
.mon{display:flex;align-items:center;font-size:15px;font-weight:600;color:var(--sub);font-variant-numeric:tabular-nums}
.mon a,.mon span.off{flex:none;width:44px;height:44px;display:grid;place-items:center;color:var(--sub);text-decoration:none;border-radius:50%}
.mon b{min-width:0;overflow-wrap:anywhere}
.mon span.off{opacity:.35}
.mon svg.i{width:20px;height:20px}
.mon .l svg{transform:scaleX(-1)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:12px}
.tile{background:var(--surface);border-radius:20px;padding:16px}
.tile span{display:block;font-size:13px;color:var(--sub)}
.tile b{display:block;font-size:28px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:4px;overflow-wrap:anywhere}
.tile b.sm{font-size:22px}
@media (max-width:505px){.tiles>.tile:last-child:nth-child(odd){grid-column:1/-1}}
.tile small{color:var(--muted);font-size:13px}
.bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.bars li{display:grid;grid-template-columns:minmax(0,7.5em) minmax(0,1fr) 2.6em;gap:10px;align-items:center;font-size:14px}
.bars li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub)}
.bars i{display:block;height:10px;border-radius:4px;background:var(--accent);min-width:2px}
.bars b{text-align:right;font-variant-numeric:tabular-nums}
.note{font-size:13px;color:var(--muted);margin:10px 0 0}
.flash{background:var(--accent-soft);color:var(--accent-text);border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;margin-bottom:12px}
/* 막힘 줄 (L76: 오늘 화면 처리 정지 예약). 상세의 .dt .flash.err 와 같은 빨강, 안 링크는 같은 색 밑줄 */
.flash.err{background:var(--warn-soft);color:var(--warn)}
.flash.err a{color:inherit;text-decoration:underline}
/* 막힘 줄 안 작은 단추 (QA 0102 3번): 글 링크는 20px 라 손가락 칸 44px 단추로. 빨강 글·테두리, 밑줄 없음 */
.flash.err a.fbtn{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:0 14px;border-radius:12px;background:var(--surface);color:var(--warn);box-shadow:inset 0 0 0 1px currentColor;text-decoration:none;font-weight:600}
.tbl{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.tbl th,.tbl td{padding:9px 6px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}
.tbl th:first-child,.tbl td:first-child{text-align:left;white-space:normal}
.tbl thead th{border-top:0;font-size:12px;font-weight:600;color:var(--muted)}
.tbl td small{display:block;font-size:12px;color:var(--muted)}
.scroll{overflow-x:auto;margin:0 -4px;padding:0 4px}
.hint{font-size:13px;color:var(--muted);font-weight:400}
.due{align-self:flex-start;display:inline-block;font-size:12px;font-weight:600;line-height:1.5;border-radius:6px;padding:1px 7px;background:var(--bg);color:var(--sub);white-space:nowrap}
.due.on{background:var(--warn-soft);color:var(--warn)}
.panel h2 .hint{margin-left:6px}
h3.sub{font-size:13px;font-weight:600;color:var(--sub);margin:14px 0 8px}
h3.sub:first-of-type{margin-top:0}
.panel{scroll-margin-top:72px}
.linkbtn{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;line-height:1;background:none;border:0;min-height:44px;min-width:44px;padding:0;color:var(--sub);text-decoration:underline;text-underline-offset:2px;cursor:pointer;align-self:flex-start}
.note.draft-note{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
/* 알림 버튼 자리의 글·링크 (dev/onboard1 4): 막혔을 때 '알림이 막혀 있어요 · 다시 켜는 법', 켤 수 없는 화면 '홈 화면에 놓는 법'. 링크는 44px.
   첫 주 할 일의 알림 줄은 버튼 대신 이름 아래 작은 줄(board.ts .ck-sub) */
.push-st{display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:8px;font-size:14px;color:var(--sub)}
.push-st a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;font-weight:600;color:var(--accent-text);text-underline-offset:2px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts.big{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.opt{position:relative;display:block;margin:0;font-weight:600}
.opt input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;pointer-events:none}
.opt span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:14px;cursor:pointer;text-align:center}
.opts.big .opt span{min-height:56px;border-radius:14px;font-size:16px}
.opt input:checked+span{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}
.opt input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
details.extra{margin:0 0 14px}
details.extra summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--sub);min-height:44px;display:flex;align-items:center}
.tag{display:inline-block;font-size:12px;font-weight:700;border-radius:6px;padding:1px 6px;background:var(--warn-soft);color:var(--warn);margin-left:6px;vertical-align:1px}
.tag.re{background:var(--accent-soft);color:var(--accent-text)}
/* ✓ 끝냄 동그라미 (DD-6, kit.ts tickForm): 오늘 탭 '오늘 일정'의 ✓와 같은 44 회색 원 + 체크 20. 끝낸 일은 초록(on, aria-pressed) */
.tick{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--gr);color:var(--fg);padding:0;margin:0;cursor:pointer;display:grid;place-items:center}
.tick svg.i{width:20px;height:20px}
.tick.on{background:var(--ok);color:#fff}
/* L97 (디자이너 2130 #1): 다크 --ok(#4cc97a) 위 흰 체크 2.11 → 다크 바탕색 체크 8.88 (홈 hero 체크와 같은 꼴) */
@media (prefers-color-scheme:dark){.tick.on{color:#101216}}
/* 할 일 한 줄 (DD-6, kit.ts taskRow): 왼쪽 시각 열 · 제목·메모 · 메모 아래 보조 동작(.tk-acts) · 오른쪽 ✓.
   오늘 탭(.tcard .sch, today.ts)과 같은 모양을 문의 탭 '오늘 할 일'·상세 '다음에 할 일'·고객 상세 '할 일'에도 */
.sch{display:flex;align-items:flex-start;gap:12px;min-height:68px;padding:10px 0}
.sch>time{flex:none;min-width:3.4em;font-size:15px;font-weight:700;padding-top:12px;font-variant-numeric:tabular-nums}
.sch.past>time{color:var(--muted)}
.sch.late>time{color:var(--warn)}
.sch .tk{flex:1;min-width:0;display:flex;flex-direction:column}
.sch .go{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:48px;color:inherit;text-decoration:none}
.sch .go b{max-width:100%;font-size:16px;font-weight:700;overflow-wrap:anywhere}
/* 이름은 한 덩어리: 짧은 이름이 '정 / ○○'처럼 끊기지 않고, 칸보다 긴 이름만 안에서 줄바꿈 (디자이너 A3, T83 ③) */
.sch .go b .nm{display:inline-block;max-width:100%;vertical-align:top;overflow-wrap:anywhere}
.sch .go span{max-width:100%;font-size:14px;color:var(--sub);overflow-wrap:anywhere}
.sch.done .go b{text-decoration:line-through;color:var(--sub)}
.sch .tk-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px}
.sch .tk-acts form{margin:0}
.sch>form{flex:none;margin:0}
/* 표가 옆으로 더 있으면 오른쪽 끝에 그림자 (끝까지 밀면 덮개가 가린다). 안내 글은 휴대폰 폭에서만 */
.scroll.edge{margin:0;padding:0;background:linear-gradient(to left,var(--surface) 40%,transparent) right/40px 100% no-repeat local,radial-gradient(farthest-side at 100% 50%,color-mix(in oklab,var(--fg) 18%,transparent),transparent) right/14px 100% no-repeat scroll}
.scroll.edge:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scroll-hint{margin:0 0 4px;font-size:12px;color:var(--muted);text-align:right}
@media (max-width:560px){.scroll-hint[hidden]{display:block}}
.warnx{color:var(--warn);font-weight:700}
.warnbox{background:var(--warn-soft);color:var(--warn);border-radius:10px;padding:10px 12px;margin:0 0 12px}
.errs li{color:var(--warn)}
/* 칸 위 앱 글과 틀린 칸 테두리 (T72·T74 빈 칸 말, 디자이너 0612: MORE_CSS 규칙은 설정 카드 안에서만 먹음) */
.ferr{display:block;color:var(--warn);font-size:14px;font-weight:600;line-height:1.45;margin:4px 0 6px}
input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]),select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn)}
input[type=checkbox][aria-invalid="true"]{outline:2px solid var(--warn);outline-offset:2px}
.ferr[hidden]{display:none}
/* 리포트·분석 인쇄는 종이 규칙(DD-4): 화면 카드 모서리는 20이지만 종이에서는 예전 값 그대로 */
@media print{.panel,.tile{border-radius:16px}}

.bhead{position:relative;max-width:640px}
.bhead h1.pg{padding-right:52px}
.bhead h1 .num{color:var(--accent-text);font-variant-numeric:tabular-nums}
.findd>summary{position:absolute;top:0;right:0;width:44px;height:44px;margin:0;border-radius:50%;display:grid;place-items:center;color:var(--sub);cursor:pointer;list-style:none}
.findd[open]>summary{background:var(--surface);color:var(--fg)}
.findd .find{margin:-4px 0 14px}
.strip{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:var(--sub);margin:-8px 4px 14px}
.strip b{color:var(--fg);font-variant-numeric:tabular-nums}
.strip .warn b{color:var(--warn)}
.strip a{color:var(--accent-text);font-weight:600;padding-block:12px;margin-block:-12px}
.stage-chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 12px;padding:0 16px 2px;scrollbar-width:none}
.stage-chips::-webkit-scrollbar{display:none}
.stage-chips a{flex:none;min-height:44px;padding:0 15px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;text-decoration:none;background:var(--surface);color:var(--sub)}
.stage-chips a em{font-style:normal;font-weight:700;color:var(--fg);font-variant-numeric:tabular-nums}
.stage-chips a.on,.stage-chips a.on em{background:var(--fg);color:var(--bg)}
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;margin:0 -4px;padding-inline:4px}
/* 넓은 컴퓨터 폭 (DD-10 디자이너 답 11/10): 새 문의~계약 네 칸이 꼭 맞게(넷째 칸이 오른쪽에서 잘리지 않게), 보류·종료는 가로로 넘겨 본다 */
@media (min-width:1181px){.board{grid-auto-columns:max(232px,calc((100% - 36px) / 4))}}
/* 칸반 칸 (DD-10): 바탕은 투명, 칸 위에 제목 + 개수만 (회색 판 안에 흰 카드가 든 겹친 판을 없앰). 끌어 놓을 칸만 연한 파랑 */
.col{scroll-margin-left:4px;scroll-snap-align:start;background:none;border-radius:16px;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.col h2{font-size:15px;margin:4px 4px 2px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.col h2 span{font-weight:500;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.rows{display:flex;flex-direction:column;gap:8px}
.card{background:var(--surface);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;border:1px solid transparent}
.card.stale{border-color:color-mix(in oklab,var(--warn) 45%,transparent)}
.card a.main,.lrow a.main{text-decoration:none;color:inherit;display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:44px}
.card .av,.lrow .av{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:14px;font-weight:800;line-height:1}
.card .av svg.i,.lrow .av svg.i,.card .av::before,.lrow .av::before{width:18px;height:18px}
.card .av.ka,.lrow .av.ka{background:var(--ka);color:var(--ka-fg)}
.card .av.ig,.lrow .av.ig{background:var(--ig);color:var(--ig-fg)}
.card .av.nv,.lrow .av.nv{background:var(--nv);color:var(--nv-fg)}
.card .av.ph,.lrow .av.ph{background:var(--accent-soft);color:var(--accent-text)}
.card .av.gr,.lrow .av.gr{background:var(--gr);color:var(--gr-fg)}
.card .t,.lrow .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
/* 이름(.nmt)만 말줄임하고 '재문의'·'테스트' 배지는 늘 보인다 (QA 5차 P1-4). 칸반 카드에서는 이름이 줄을 바꾼다 */
.card .nm,.lrow .nm{font-weight:700;font-size:15px;letter-spacing:-.02em;display:flex;align-items:baseline;gap:6px;min-width:0}
.nm .nmt{min-width:0;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
.nm .tag{flex:none;margin-left:0}
.card .meta,.lrow .meta{font-size:13px;color:var(--sub)}
.card .meta{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden} /* 칸반 카드: 띄어쓰기 없는 긴 지역·종류는 두 줄까지 (QA 5차 P2-3) */
/* 카드·목록 줄의 '단계 · 종류 · 지역 · 평수' (DD-10, 디자이너 답 11/10): 항목마다 줄바꿈 없이, 구분점은 앞 항목 끝에 붙여 다음 줄이 '·'로 시작하지 않게.
   칸반 카드는 단계를 숨기고(칸 제목과 같은 말), 종류·지역·평수가 다 없으면 받은 경로 이름(.ch, 회색)으로 한 줄. 아주 긴 한 항목은 그 줄에서 말줄임 */
.meta .st,.meta .m{white-space:nowrap}
.meta .m{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.meta .m:not(:last-child)::after,.meta.has .st::after{content:" ·"}
.card .st{display:none}
.card .r,.lrow .r{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
/* 칸반 카드: 금액이 길면(9,999,999,999원·글자 200%) 이름 칸이 0px이 되던 것. 이름 칸이 6em보다 좁아지면 금액·날짜를 아래 줄 오른쪽으로 (QA 5차) */
.card a.main{flex-wrap:wrap}
.card .t{flex:1 1 6em}
.card .r{margin-left:auto}
.card .mv{display:flex;justify-content:flex-end;margin:0}
.mvf{display:none} /* 칸마다 하나인 "다음 →" 폼 (F6): 숨은 칸만, 카드 단추가 form 속성으로 보낸다 */
.age{font-size:12px;color:var(--muted);white-space:nowrap}
.age.warn{color:var(--warn);font-weight:700}
.amt{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
/* '다음 →' (DD-10): 줄마다 파란 버튼을 두지 않는다(디자인 시스템 10-6). --gr 회색 작은 버튼, 누를 곳은 44px 그대로 */
.next{font-size:13px;font-weight:600;line-height:1;border:0;background:var(--gr);color:var(--fg);border-radius:10px;min-height:44px;padding:0 12px;cursor:pointer;white-space:nowrap}
.view{margin:14px 0 0;text-align:center}
.view a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-size:14px;font-weight:600;color:var(--sub)}
@media (max-width:959px){
.board:not(.kan){display:flex;flex-direction:column;gap:12px;overflow:visible;scroll-snap-type:none;margin:0;padding:0;max-width:640px}
.board:not(.kan) .col{background:none;border-radius:0;padding:0;gap:8px}
.board:not(.kan) .col.off,.board:not(.kan):not([data-one]) .col.none{display:none}
.board:not(.kan) .col h2{color:var(--muted);font-weight:700;margin:4px 4px 0}
.board:not(.kan) .col h2 span{color:var(--muted)}
.board:not(.kan) .rows{background:var(--surface);border-radius:20px;padding:4px 18px;gap:0}
.board:not(.kan) .card{background:none;border:0;border-radius:0;padding:0;box-shadow:none}
.board:not(.kan) .card+.card,.allv .lrow+.lrow{box-shadow:inset 0 1px 0 var(--line)}
.board:not(.kan) .card a.main,.allv .lrow a.main{align-items:center;gap:2px 14px;min-height:68px;padding:10px 0;flex-wrap:wrap}
/* 이름 칸은 10em(17px 이름 8자 남짓)보다 좁아지지 않는다(동그라미 옆 폭이 그보다 좁으면 그 폭). 금액·날짜가 그보다 넓으면(글자 200%, 9,999,999,999원) 아래 줄 오른쪽에 한 줄로 (QA 5차 판단 보류 1).
   금액 칸은 글자만큼(min-content)이라 윗줄에서는 금액 아래 날짜, 아래 줄로 내려가면 칸이 줄 끝까지 늘어 금액과 날짜가 나란히. 이름 칸 flex-grow가 1000이라 윗줄 남는 폭은 이름 칸이 다 가져간다 */
.board:not(.kan) .card .t,.allv .lrow .t{flex:1000 1 min(10em,100% - 54px)}
/* '재문의'·'테스트' 배지: 이름이 8.5em(8자 남짓)보다 좁아질 자리면 이름 아래 줄로. 짧은 이름은 글자만큼이라 배지가 이름 바로 뒤 */
.board:not(.kan) .card .nm,.allv .lrow .nm{flex-wrap:wrap;row-gap:2px}
.board:not(.kan) .nm .nmt,.allv .nm .nmt{flex:1 1 8.5em;max-width:max-content}
.board:not(.kan) .card .r,.allv .lrow .r{flex:1 0 auto;width:min-content;flex-flow:row wrap;justify-content:flex-end;align-items:baseline;gap:3px 8px;margin-left:0}
.board:not(.kan) .card .av,.allv .lrow .av{width:40px;height:40px;font-size:15px}
.board:not(.kan) .card .av svg.i,.allv .lrow .av svg.i,.board:not(.kan) .card .av::before,.allv .lrow .av::before{width:21px;height:21px}
.board:not(.kan) .card .nm,.allv .lrow .nm{font-size:17px;white-space:nowrap}
.board:not(.kan) .card .meta,.allv .lrow .meta{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board:not(.kan):not([data-one]) .card .st{display:inline}
/* 목록 줄은 지금처럼 단계를 앞에, 받은 경로(.ch)는 동그라미와 같은 말이라 숨김. 한 줄 말줄임은 줄 전체에서 */
.board:not(.kan) .card .meta .m,.allv .lrow .meta .m{display:inline}
.board:not(.kan) .card .meta .ch,.allv .lrow .meta .ch{display:none}
.board:not(.kan) .card .due,.allv .lrow .due{font-size:13px}
.board:not(.kan) .amt,.allv .amt{font-size:15px}
.board:not(.kan) .age,.allv .age{font-size:13px}
.board:not(.kan) .card .mv{display:none}
.board:not(.kan) .col>.empty{background:var(--surface);border-radius:20px;padding:18px;font-size:14px}
.board:not(.kan)~.kan-note{display:none}
.allv{display:flex;flex-direction:column;gap:12px;max-width:640px}
.allv h2{font-size:14px;font-weight:700;color:var(--muted);margin:4px 4px 0;display:flex;align-items:center;gap:6px}
.allv h2.late::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--warn)}
.allv .rows{background:var(--surface);border-radius:20px;padding:4px 18px;gap:0}
.allv .lrow .st{display:inline}
.board:not(.kan):not([data-one]):not(:has(.col:target)){display:none}
.board:is([data-one],:has(.col:target))+.allv{display:none}
}
@media (min-width:960px){.stage-chips,.view,.allv{display:none}}
.todo{background:var(--surface);border-radius:20px;padding:18px 18px 8px;margin-bottom:12px;max-width:640px}
.todo h2{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0 0 4px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.todo h2 span{font-weight:600;font-size:14px;color:var(--accent-text);font-variant-numeric:tabular-nums}
.todo ul{list-style:none;margin:0;padding:0}
.todo li:not(.sch){display:flex;align-items:center;gap:10px;min-height:68px;padding:10px 0}
.todo li+li{box-shadow:inset 0 1px 0 var(--line)}
.todo li:not(.sch) form{margin:0}
.todo li a.who{flex:1;text-decoration:none;display:flex;flex-direction:column;gap:2px;min-width:0}
.todo li a.who b{font-size:17px;letter-spacing:-.02em}
.todo li a.who small{font-size:14px;color:var(--sub)}
.todo li a.who b,.todo li a.who small{overflow-wrap:anywhere} /* 띄어쓰기 없는 긴 이름 (QA 5차 P1-2) */
.todo li a.who small .due{margin-right:4px}
.install{font-size:13px;color:var(--muted);margin:18px 0 0}
/* '홈 화면에 추가' 줄 (T166, 디자이너 1534 P2-3): 이미 홈 화면에 둔 앱(standalone)·컴퓨터 넓이에서는 숨김. 앱 안(UA)은 서버가 그리지 않음 */
@media (display-mode: standalone),(min-width:900px){.home-add{display:none}}
.ck{background:var(--surface);border-radius:20px;padding:18px;margin-bottom:12px;max-width:640px}
.ck h2{font-size:17px;margin:0 0 8px;display:flex;justify-content:space-between;gap:8px}
.ck h2 span{font-weight:500;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.ck-bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin-bottom:6px}
.ck-bar i{display:block;height:100%;background:var(--accent);border-radius:3px}
.ck ol{list-style:none;margin:0;padding:0}
.ck li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:4px 0;border-top:1px solid var(--line);font-size:14px}
.ck li:first-child{border-top:0}
/* 첫 주 할 일 (DD-6): 진행 목록이라 동그라미, 끝난 칸은 초록 동그라미에 ✓. 진행 표시(2/5)는 개수가 아니라 진행이라 회색 그대로(DD-11 예외).
   줄 버튼은 44px 회색(--gr) 하나 (DD-5: 흰 바탕 테두리 버튼 없음) */
.ck li>span{position:relative;display:flex;align-items:center;gap:10px;min-width:0}
.ck li>span::before{content:"";flex:none;box-sizing:border-box;width:22px;height:22px;border-radius:50%;border:2px solid var(--line)}
.ck li.done>span{color:var(--muted)}
.ck li.done>span::before{border-color:var(--ok);background:var(--ok)}
.ck li.done>span::after{content:"";position:absolute;left:8px;top:50%;width:5px;height:10px;margin-top:-7px;border:solid var(--surface);border-width:0 2px 2px 0;transform:rotate(45deg)}
.ck li .btn{min-height:44px;padding:0 14px;border-radius:12px;font-size:14px;flex:none;background:var(--gr);color:var(--fg);box-shadow:none;white-space:nowrap} /* '알림 켜기' 390 한 줄 (T166, 디자이너 1534 P2-4) */
.ck form{margin:0}
.ck .linkbtn{margin-top:4px}
/* 첫 주 할 일 '방법' 링크 (dev/onboard1 F9): 할 일 이름 바로 뒤 글 안의 작은 링크. 누르는 자리는 44px(위아래 여백), 줄 높이는 그대로(음수 여백) */
.ck .ck-how{display:inline-block;min-width:44px;padding:14px 6px;margin:-14px -6px -14px -2px;font-size:13px;line-height:1.2;font-weight:600;text-align:center;color:var(--accent-text);text-underline-offset:2px}
/* 알림 줄 이름 칸, 막혔을 때 이름 아래 작은 줄 '알림이 막혀 있어요 · 다시 켜는 법' (알림 스크립트가 넣음, 디자이너 검토 11/10) */
.ck .ck-n{min-width:0}
.ck .ck-sub{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--sub)}
.find{margin:0 0 12px}
.find-row{display:flex;gap:8px}
.find-row input{flex:1;min-width:0}
.find-row .btn{flex:none}
.allnote{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.allnote .note{margin:0}
/* '전체' 목록 '더 보기' (작은 묶음 2): 목록 카드와 같은 흰 바탕 줄 하나(파랑은 쓰지 않음, 디자인 시스템 10-6). 자바스크립트 없이 링크(?n=+100)로, 새로 온 첫 줄(#r100…)로 내려간다 */
.allnote .lmore{display:flex;justify-content:center;align-items:center;min-height:52px;margin:0 -4px;padding:8px 16px;border-radius:20px;background:var(--surface);color:var(--fg);font-size:15px;font-weight:700;text-decoration:none;text-align:center;overflow-wrap:anywhere}
.allv .lrow[id]{scroll-margin-top:64px}
.quick{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}
.quick a{font-size:13px;font-weight:600;text-decoration:none;color:var(--sub);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 12px;min-height:44px;display:inline-flex;align-items:center}
.quick a.on{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-text)}
.find details.extra{margin:4px 0 0}
.find-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.card[draggable=true]{cursor:grab}
.card.dragging{opacity:.5}
.col.over{background:var(--accent-soft);box-shadow:0 0 0 6px var(--accent-soft),inset 0 0 0 2px var(--accent)}
.sheet{position:fixed;z-index:30;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto;background:var(--surface);border-radius:16px;padding:16px;box-shadow:0 12px 32px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:8px}
.sheet p{margin:0 0 4px;font-weight:700}
.sheet .linkbtn{align-self:center}

.hist{list-style:none;margin:0;padding:0;font-size:13px;color:var(--sub);display:flex;flex-direction:column;gap:6px}
.fu-pick{display:flex;gap:8px;align-items:flex-end}
.fu-pick label{flex:1;min-width:0}
.fu-pick .btn{flex:none}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{font-size:14px;font-weight:600;line-height:1;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;min-height:44px;padding:0 14px;cursor:pointer}
.chips button.on{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-text)}
.acts{list-style:none;margin:0 0 12px;padding:0}
.acts li+li{box-shadow:inset 0 1px 0 var(--line)}
.act-new{border-top:1px solid var(--line);padding-top:12px}
.note-new{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.note-new textarea{min-height:64px}
.note-new .btn{align-self:flex-start}
.tl{list-style:none;margin:0;padding:0;font-size:14px}
.tl li{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid var(--line)}
.tl li:first-child{border-top:0}
.tl time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:2px}
.tl span{white-space:pre-wrap;overflow-wrap:anywhere}
.tl-note span{color:var(--fg)}
.tl-stage span,.tl-touch span,.tl-activity span,.tl-contract span{color:var(--sub)}
body:has(.dt) > header.top{display:none}
.dt{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.dt h1,.dt h2,.dt h3,.dt p{margin:0}
.dt .num,.dt time{font-variant-numeric:tabular-nums}
.dt-nav{display:flex;justify-content:space-between;align-items:center;min-height:48px;margin:0 -12px -8px}
.dt-nav a,.dt-menu>summary{width:44px;height:44px;display:grid;place-items:center;color:var(--fg);text-decoration:none;border-radius:12px;cursor:pointer;list-style:none}
.dt-menu{position:relative}
.dt-menu-p{position:absolute;z-index:8;right:0;top:48px;width:min(320px,calc(100vw - 32px));background:var(--surface);border-radius:16px;padding:12px;box-shadow:0 0 0 1px var(--line),0 12px 32px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:8px}
.dt-menu-p .btn{width:100%;justify-content:flex-start;text-align:left;line-height:1.35;padding:10px 14px}
.dt-del summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;border-radius:12px;background:var(--gr);font-size:15px;font-weight:700;color:var(--warn);cursor:pointer;list-style:none}
.dt-del form{display:flex;flex-direction:column;gap:10px;padding:12px 2px 2px}
/* ··· 메뉴 안 '손님 요청 받음' (L77, 디자이너 1950 안6): 지우기와 같은 회색 알약, 글은 기본색(빨강은 지우기만). 꺾쇠는 둘 다 오른쪽 끝 */
.dt-sub summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;border-radius:12px;background:var(--gr);font-size:15px;font-weight:700;cursor:pointer;list-style:none}
.dt-sub summary::-webkit-details-marker,.dt-del summary::-webkit-details-marker{display:none}
.dt-sub summary::after,.dt-del summary::after{content:"";flex:none;width:8px;height:8px;margin:-4px 2px 0 12px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.dt-sub[open] summary::after,.dt-del[open] summary::after{transform:rotate(225deg);margin-top:4px}
.dt-sub form{display:flex;flex-direction:column;gap:10px;padding:12px 2px 2px}
.dt label.check{flex-direction:row;align-items:center;gap:10px;font-weight:500;margin:0}
.dt label.check input{width:20px;min-height:0;flex:none}
.dt .flash.err{background:var(--warn-soft);color:var(--warn)}
.dt-hd{display:flex;flex-direction:column;gap:8px;padding:2px 0 6px}
.dt-hd h1{font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-.03em;overflow-wrap:anywhere}
.dt-hd h1 .tag{font-size:13px;vertical-align:.45em;letter-spacing:0}
.dt-hd>p{font-size:15px;color:var(--sub)}
/* 머리 꼬리표는 쪽 바탕(--bg) 위라 기본(회색 채널)은 카드처럼 흰 바탕. --gr은 라이트에서 --bg와 같아 칩이 안 보였다 (디자이너 1738 A1) */
.dt-tag{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:26px;padding:0 9px;border-radius:8px;font-size:13px;font-weight:700;background:var(--surface);color:var(--gr-fg)}
.dt-tag svg.i{width:15px;height:15px}
.dt-tag.ka{background:var(--ka);color:var(--ka-fg)}
.dt-tag.ig{background:var(--ig);color:var(--ig-fg)}
.dt-tag.nv{background:var(--nv);color:var(--nv-fg)}
.dt-tag.ph{background:var(--accent-soft);color:var(--accent-text)}
.dt-card,.dt .panel{background:var(--surface);border-radius:20px;padding:18px;margin:0}
.dt-card h2,.dt .panel h2{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0 0 10px}
.dt .panel h2 .hint{font-size:14px}
.dt .btn{min-height:48px;border-radius:14px;background:var(--gr);color:var(--fg);box-shadow:none}
.dt .btn.danger{background:var(--danger);color:#fff}
.dt .linkbtn{color:var(--sub)}
.dt label{font-size:14px;font-weight:700;color:var(--sub)}
.dt input,.dt select,.dt textarea{background:var(--bg);border:0;border-radius:14px;min-height:52px;font-size:17px;padding:12px 14px}
.dt input:focus,.dt select:focus,.dt textarea:focus{outline:0;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.dt textarea{min-height:84px;font-size:16px}
.dt h3.sub{font-size:14px;font-weight:700;color:var(--sub)}
.dt-steps .stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,4em),1fr));column-gap:.5em;row-gap:4px} /* 글자가 커질 때만 두 줄(em 칸), 100%는 390·360에서 네 칸 그대로 (L56, 디자이너 1520 P2·1540 P3-1) */
.dt-steps .stages button{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:44px;padding:2px 0 0;margin:0;border:0;background:none;color:var(--muted);font-size:13px;font-weight:500;line-height:1.3;text-align:left;cursor:pointer}
.dt-steps .stages button i{display:block;height:6px;border-radius:3px;background:var(--line)}
.dt-steps .stages button.d i{background:var(--accent)}
.dt-steps .stages button.on{color:var(--fg);font-weight:700}
.dt-steps .stages button.on span::after{content:attr(data-age)}
/* 운영자가 바꾼 긴 단계 이름(10자까지): 옆 칸 위로 겹치지 않게 칸 안에서 줄을 바꾼다 (QA 5차 P1-3) */
.dt-steps .stages button span{overflow-wrap:anywhere}
.dt-hd p{overflow-wrap:anywhere} /* 이름 아래 종류·지역 줄: 띄어쓰기 없는 40자 지역 (QA 5차 check390 최악 값) */
.dt-park{grid-column:1/-1;display:flex;justify-content:flex-end;gap:4px;margin:-10px -10px -14px 0}
.dt-steps .stages .dt-park button{flex-direction:row;align-items:center;min-height:44px;padding:0 10px;border-radius:999px;font-size:14px;font-weight:600;color:var(--sub)}
.dt-steps .stages .dt-park button.on{background:var(--fg);color:var(--bg)}
.dt-steps .stages .dt-park button.on span::after{content:none}
.dt-steps #reason{margin-top:14px;padding-top:14px;box-shadow:inset 0 1px 0 var(--line)}
.dt-steps #reason h3{margin:0 0 10px}
.dt-next{background:var(--surface);border-radius:16px;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.dt-next>h2{font-size:13px;font-weight:700;color:var(--accent-text);margin:0}
.dt-next>details{grid-column:2;grid-row:1}
.dt-next>details>summary{display:flex;align-items:center;justify-content:flex-end;min-height:44px;min-width:44px;margin:-8px 0;font-size:14px;font-weight:700;color:var(--accent-text);cursor:pointer;list-style:none}
.dt-next>details[open]{grid-column:1/-1;grid-row:3}
.dt-next>details[open]>summary{justify-content:flex-start;margin:6px 0 0;box-shadow:inset 0 1px 0 color-mix(in oklab,var(--accent) 25%,transparent)}
.dt-todo{grid-column:1/-1;grid-row:2;list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.dt-none{min-height:44px;align-items:flex-start;justify-content:center;font-size:17px;font-weight:700;color:var(--sub)}
.dt-plan .lab{font-size:13px;font-weight:700;color:var(--sub)}
.dt-todo li+li{box-shadow:inset 0 1px 0 color-mix(in oklab,var(--accent) 18%,transparent)}
.dt-todo form{margin:0}
/* 맨 위(가장 가까운) 할 일은 조금 크게 (A 시안 .next). 줄 모양은 kit.ts taskRow (DD-6) */
.dt-todo>.sch:first-child:not(.done) .go b{font-size:17px}
.dt-todo .linkbtn{font-size:13px}
.dt-todo .empty{padding:6px 0;font-size:15px;color:var(--sub)}
.dt-plan{display:flex;flex-direction:column;gap:12px;padding-top:12px}
.dt-plan fieldset{margin:0}
.dt-plan legend,.dt-plan label{font-size:13px;font-weight:700;color:var(--sub)}
.dt-plan .opts{gap:6px}
.dt-plan .opt span{min-height:44px;border:0;background:var(--surface);font-size:15px}
.dt-plan .opt input:checked+span{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.dt-plan .pair{display:grid;grid-template-columns:minmax(0,7.5em) minmax(0,1fr);gap:8px}
.dt-plan .pair label,.dt-plan .fu-pick label{margin:0}
.dt-plan input{background:var(--surface)}
.dt-plan .quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}
.dt-plan .quick .btn,.dt-plan .fu-pick .btn{background:var(--surface);color:var(--accent-text);min-height:48px}
.dt-next>details>summary .c,.dt-next>details[open]>summary .o{display:none}
.dt-next>details[open]>summary .c{display:inline}
/* DD-9: 파란 연한 칸은 잡힌 값이 있을 때만(.on, 디자인 시스템 10-6 파랑 네 곳 4번). 비면 흰 카드 + 회색 글 + 오른쪽 '잡기'.
   흰 카드 안 '잡기' 판의 입력칸·빠른 버튼은 다른 흰 카드처럼 --bg (고른 선택지는 그대로 진한 바탕) */
.dt-next.on{background:var(--accent-soft)}
.dt-next:not(.on)>h2{color:var(--sub)}
.dt-next:not(.on)>details[open]>summary{box-shadow:inset 0 1px 0 var(--line)}
.dt-next:not(.on) .dt-plan input,.dt-next:not(.on) .dt-plan .opt input:not(:checked)+span,.dt-next:not(.on) .dt-plan .quick .btn,.dt-next:not(.on) .dt-plan .fu-pick .btn{background:var(--bg)}
.dt-plan .row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dt-q{position:relative;flex:none}
.dt-q>summary{width:44px;height:44px;margin:-10px -12px -10px 0;display:grid;place-items:center;cursor:pointer;list-style:none}
.dt-q>summary span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--gr);color:var(--sub);font-size:13px;font-weight:700}
.dt-q>p{position:absolute;z-index:7;right:-8px;top:40px;width:min(300px,calc(100vw - 48px));padding:12px 14px;border-radius:14px;background:var(--fg);color:var(--bg);font-size:14px;font-weight:500;line-height:1.5;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.dt-h{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:10px}
.dt-h h2{margin:0}
.dt-quote{font-size:16px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.dt-meta{font-size:13px;color:var(--muted);margin-top:6px!important}
.dt-fold{margin-top:12px;box-shadow:inset 0 1px 0 var(--line)}
.dt-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.dt-fold>summary b{margin-left:auto;font-weight:700;color:var(--sub);text-align:right}
.dt-fold>summary::after{content:"";flex:none;width:8px;height:8px;margin:-4px 4px 0 0;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.dt-fold[open]>summary::after{transform:rotate(225deg);margin-top:4px}
.dt-fold .hint{display:block;margin:-4px 0 10px}
.dt-money form{display:flex;flex-direction:column;gap:12px}
.dt-money label{margin:0}
.dt-money .btn,.dt-tl-new .btn{align-self:flex-start;padding:0 22px}
.dt-tl-new{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.dt-tl{list-style:none;margin:0;padding:4px 0 0;display:flex;flex-direction:column;gap:14px}
.dt-tl li{display:grid;grid-template-columns:12px minmax(0,1fr);gap:12px;font-size:15px}
.dt-tl li::before{content:"";width:9px;height:9px;margin-top:7px;border-radius:50%;background:var(--line)}
.dt-tl li:first-child::before{background:var(--accent)}
.dt-tl span{white-space:pre-wrap;overflow-wrap:anywhere}
.dt-tl .tl-stage span,.dt-tl .tl-touch span,.dt-tl .tl-activity span,.dt-tl .tl-contract span{color:var(--sub)}
.dt-tl time{display:block;font-size:13px;color:var(--muted)}
.dt-older>summary{min-height:44px;display:flex;align-items:center;margin-top:8px;font-size:14px;font-weight:600;color:var(--sub);cursor:pointer;list-style:none}
.dt-older .dt-tl{padding-top:8px}
.dt-kv{display:flex;flex-direction:column;margin:0}
.dt-kv>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;font-size:15px}
.dt-kv>div+div{box-shadow:inset 0 1px 0 var(--line)}
.dt-kv dt{flex:none;color:var(--muted)}
.dt-kv dd{margin:0;min-width:0;font-weight:600;text-align:right;white-space:pre-wrap;overflow-wrap:anywhere}
.dt-info{padding-top:6px;padding-bottom:6px}
.dt .qi-row{display:grid;grid-template-columns:minmax(0,1fr) 56px 88px;gap:6px;margin-bottom:6px}
.dt .qi-row input{padding:10px;min-height:48px;font-size:16px}
.dt .qi-head span{font-size:12px;color:var(--muted);font-weight:600}
.dt .qi-sum{display:flex;justify-content:space-between;font-size:15px;margin:8px 0 12px}
.dt .qi-sum b{font-variant-numeric:tabular-nums}
.dt .callnote{margin-top:14px;padding-top:12px;box-shadow:inset 0 1px 0 var(--line)}
.dt .callnote .kv{grid-template-columns:88px minmax(0,1fr);font-size:14px}
.dt-bar{position:fixed;z-index:6;left:0;right:0;bottom:0;display:flex;gap:8px;padding:12px max(20px,env(safe-area-inset-right),calc(50vw - 300px)) calc(12px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left),calc(50vw - 300px));background:var(--tab);box-shadow:0 -1px 0 var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.dt-bar form{display:flex;flex:1;margin:0}
.dt-bar .btn{min-height:56px;padding-block:8px;border-radius:16px;font-size:17px}
.dt-bar .dt-ib{flex:none;width:56px;padding:0;color:var(--fg)}
.dt-bar .dt-ib svg.i{width:1.4em;height:1.4em}
.dt-bar .dt-pri{flex:1;background:var(--accent-strong);color:#fff;padding:0 12px}
/* '정기관리서비스로 옮기기'처럼 긴 주 버튼 글: 화면 밖으로 밀지 않고 버튼 안에서 줄을 바꾼다 (QA 5차 P1-3) */
.dt-bar form{min-width:0}
.dt-bar .dt-pri{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25;padding-block:8px}
body:has(.dt-bar) .wrap .flash[role=status]{bottom:calc(max(92px,6.2em) + env(safe-area-inset-bottom))} /* 아래 바 아이콘이 글을 따라 커지니(L71) 알림 줄도 글 크기만큼 위로 (100%는 92px 그대로, L81) */
.dt-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:520px;max-height:calc(100% - 96px);border:0;padding:0;border-radius:24px 24px 0 0;background:var(--surface);color:var(--fg);overflow:auto}
.dt-sheet::backdrop{background:var(--dim)}
.dt-sheet>div{display:flex;flex-direction:column;gap:12px;padding:10px 20px calc(20px + env(safe-area-inset-bottom))}
.dt-sheet>div::before{content:"";width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center}
.dt-sheet h2{font-size:24px;font-weight:800;letter-spacing:-.03em;margin:4px 0 0}
.dt-sheet .sms{display:flex;flex-direction:column;gap:8px}
.dt-sheet .sms a{display:flex;flex-direction:column;gap:2px;min-height:56px;padding:10px 14px;border-radius:14px;background:var(--bg);text-decoration:none}
.dt-sheet .sms b{font-size:16px}
.dt-sheet .sms small{font-size:14px;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dt-sheet .note{margin:0}
.dt-sheet .btn{min-height:48px;border-radius:14px;background:var(--gr);color:var(--fg);box-shadow:none}
@media print{.dt-bar,.dt-nav{display:none}}

.nums{max-width:640px}
/* 화면 맨 위 (DD-3): 28 '숫자' 제목(h1.pg) 아래 달 고르기 줄(kit .mon, 15px). 꺾쇠 칸 안 여백만큼 왼쪽으로 당겨 제목 글자와 줄을 맞춘다 */
.nums .ntop{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:0 8px;min-height:44px;margin:-14px 0 10px -8px}
.nums .badge{font-size:13px;font-weight:700;color:var(--accent-text);background:var(--accent-soft);border-radius:999px;padding:4px 10px;white-space:nowrap}
.nums .ncard{background:var(--surface);border-radius:20px;padding:18px;margin:0 0 12px}
.nums .ncard h2{margin:0 0 6px;font-size:17px;font-weight:700;letter-spacing:-.02em;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.nums .ncard h2 small,.nums .ncard h2 a{font-size:14px;font-weight:600;color:var(--accent-text);text-decoration:none;font-variant-numeric:tabular-nums}
.nums .ncard h2 a{min-height:44px;display:inline-flex;align-items:center;margin:-12px 0}
.nums .ncard>p.s{margin:0;font-size:14px;line-height:1.55;color:var(--sub)}
.nums .hero b{display:block;font-size:15px;color:var(--sub);font-weight:600}
.nums .hero strong{display:block;font-size:36px;line-height:1.2;font-weight:800;letter-spacing:-.03em;margin-top:4px;font-variant-numeric:tabular-nums}
.nums .hero p{margin:6px 0 0;font-size:15px;line-height:1.55;color:var(--sub)}
.nums .hero .lead-fix{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;color:var(--accent-text);text-decoration:none}
.nums .fun{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.nums .fun li{display:grid;grid-template-columns:4.5em minmax(0,1fr) 40px;gap:10px;align-items:center;font-size:14px;color:var(--sub)}
.nums .fun span{overflow:hidden;overflow-wrap:anywhere;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical} /* 긴 단계 이름은 두 줄까지, 전체는 title (QA 5차 P1-3) */
.nums .fun i{display:block;height:28px;border-radius:8px;background:var(--accent);min-width:4px}
.nums .fun li:nth-child(2) i{opacity:.8}
.nums .fun li:nth-child(3) i{opacity:.62}
.nums .fun li:nth-child(n+4) i{opacity:.45}
.nums .fun b{text-align:right;font-size:16px;color:var(--fg);font-variant-numeric:tabular-nums}
.nums .chb{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column}
.nums .chb li{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 0}
.nums .chb li+li{box-shadow:inset 0 1px 0 var(--line)}
.nums .chb .t{flex:1;min-width:0;display:flex;flex-direction:column}
.nums .chb .t b{font-size:16px;font-weight:700;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nums .chb .t small{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nums .chb .t i{display:block;height:6px;border-radius:3px;background:var(--accent);margin-top:6px;min-width:4px}
.nums .chb .r{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.nums .chb .r b{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.nums .chb .r span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.nums .chb .r span.won{color:var(--ok);font-weight:700}
.nums .av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:15px;font-weight:800;line-height:1}
.nums .av svg.i{width:21px;height:21px}
.nums .av.ka{background:var(--ka);color:var(--ka-fg)}
.nums .av.ig{background:var(--ig);color:var(--ig-fg)}
.nums .av.nv{background:var(--nv);color:var(--nv-fg)}
.nums .av.ph{background:var(--accent-soft);color:var(--accent-text)}
.nums .av.gr{background:var(--gr);color:var(--gr-fg)}
.nums .golist{padding:4px 18px}
.nums .go{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;font-size:16px;color:inherit;text-decoration:none}
.nums .go+.go{box-shadow:inset 0 1px 0 var(--line)}
.nums .go b{display:flex;align-items:center;gap:4px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.nums .go b.warnx{color:var(--warn)}
.nums .go svg.i{color:var(--muted);width:18px;height:18px}
.nums .prog{height:10px;border-radius:5px;background:var(--bg);overflow:hidden;margin:12px 0 8px}
.nums .prog i{display:block;height:100%;background:var(--accent);border-radius:5px}
/* 긴 단계 이름(10자)이 든 제목·빈 상태 문장: 글자 200%에서 낱말 안에서도 끊는다 (QA 5차). 빈 상태는 숫자 탭 전용 점선 칸 없이 kit .blank 하나(DD-2) */
.nums .ncard h2,.nums .blank{overflow-wrap:anywhere}
.nums .blank>div{min-width:0}
.nums .nsec{font-size:14px;font-weight:700;color:var(--muted);margin:20px 4px 8px}
.nums .nwait{margin:0 4px 12px;font-size:14px;line-height:1.55;color:var(--sub)}
.nums .tnote{margin:-4px 0 12px}
/* 숫자 더 보기 접는 칸 (숫자 탭 접기, T54): 닫힌 채 시작. 요약 줄은 .ncard와 같은 흰 카드에 큰 글 + 회색 한 줄, 오른쪽 꺾쇠 18px은 앱 다른 접는 칸(details.more)처럼 닫힘 ∨·열림 ∧
   (다른 화면으로 가는 .go 줄의 > 와 헷갈리지 않게, 디자이너 P2-1).
   안 카드 모양은 그대로. 긴 요약 글(글자 200%·360px)은 칸 안에서 줄을 바꾼다. 인쇄는 리포트가 맡아 따로 두지 않는다 */
.nums .nmore>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 18px;margin:0 0 12px;background:var(--surface);border-radius:20px;cursor:pointer;list-style:none}
.nums .nmore>summary .nmh{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.nums .nmore>summary b{font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.35}
.nums .nmore>summary small{font-size:14px;line-height:1.45;color:var(--sub)}
.nums .nmore>summary svg.i{flex:none;width:18px;height:18px;color:var(--muted);transform:rotate(90deg)}
.nums .nmore[open]>summary svg.i{transform:rotate(-90deg)}
.nums .bars i{min-width:4px}
.nums .goal-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:0 0 8px;font-size:14px;color:var(--sub)}
.nums .goal-line b{font-size:20px;color:var(--fg);font-variant-numeric:tabular-nums}
.nums .goal-line span{margin-left:auto;font-weight:700;color:var(--accent-text)}
.nums .goal-empty{padding:0 0 8px}
.nums .btns{margin:4px 0 0}
.nums .w0{width:0%}.nums .w1{width:5%}.nums .w2{width:10%}.nums .w3{width:15%}.nums .w4{width:20%}.nums .w5{width:25%}.nums .w6{width:30%}.nums .w7{width:35%}.nums .w8{width:40%}.nums .w9{width:45%}.nums .w10{width:50%}.nums .w11{width:55%}.nums .w12{width:60%}.nums .w13{width:65%}.nums .w14{width:70%}.nums .w15{width:75%}.nums .w16{width:80%}.nums .w17{width:85%}.nums .w18{width:90%}.nums .w19{width:95%}.nums .w20{width:100%}
.nums i.w0{min-width:0;visibility:hidden}
.ins{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.flash.bad{background:var(--warn-soft);color:var(--warn)}
.chq{margin:0 0 12px}
.chcost{margin-top:12px}
.chcost .note{margin:0 0 12px}

.linkout{display:flex;flex-direction:column;gap:8px;background:var(--accent-soft);border-radius:12px;padding:14px;margin-top:14px}
.linkout code{font:500 14px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;color:var(--fg)}
.linkout .hint{color:var(--sub)}
.qr{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--surface);border-radius:12px;padding:16px;margin-top:12px}
.qr svg{display:block;width:min(220px,100%);height:auto;border-radius:6px}
.qr .hint{text-align:center}
.lk-err{margin-top:12px}
ul.hist.lk-tips{font-size:14px;gap:8px}
.panel details.lk-base{margin-top:12px;padding:0;background:none}
.lk-base .note{margin:8px 0 0}
.panel details.lk-base ul{font-size:13px;overflow-wrap:anywhere}
.panel .pz-note,.panel .pz-err{margin:0 0 12px}
.panel details.pz-edit{margin:0;padding:0;background:none}
.pz-edit .pz-form{margin-top:14px}

.tbl.ch th:first-child,.tbl.ch td:first-child{position:sticky;left:0;background:var(--surface);min-width:96px;max-width:150px}
.tbl.ch td small{display:block}
details.raw summary{font-size:12px;color:var(--accent-text);cursor:pointer;min-height:44px;padding:10px 0;margin:-4px 0}

/* 4차: 고객·계약 화면 */
.cu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cu li a{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border-radius:12px;padding:12px 14px;text-decoration:none;min-height:56px}
.cu-main{display:flex;flex-direction:column;flex:1 1 auto}
.cu-main b,.cu-main small{overflow-wrap:anywhere}
.cu-main small,.cu-meta small{font-size:13px;color:var(--sub)}
.cu-main .tel{white-space:nowrap;font-variant-numeric:tabular-nums}
.cu-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;align-items:center;text-align:right;min-width:0}
.cu-meta .chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* 첫 고객 안내 (신규 승인 사용자, 고객 0명일 때만): 흰 카드 20 · 번호 목록 · 파란 번호와 링크. 390px에서도 넘치지 않게 keep-all + anywhere */
.first{background:var(--surface);border-radius:20px;padding:20px;margin:0 0 12px;max-width:640px}
.first h2{font-size:19px;line-height:1.4;letter-spacing:-.02em;margin:0 0 6px;overflow-wrap:anywhere}
.first-sub{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--sub);overflow-wrap:anywhere}
.first-steps{margin:0;padding:0 0 0 22px;color:var(--sub);font-size:14px;line-height:1.5}
.first-steps li+li{margin-top:12px}
.first-steps li::marker{color:var(--accent-text);font-weight:700}
.first-steps b{display:block;color:var(--fg);font-size:15px;font-weight:700;overflow-wrap:anywhere}
.first-steps span{display:block;margin-top:2px;overflow-wrap:anywhere}
.first-steps .btn{margin-top:10px}
.first-tour{margin:16px 0 0;font-size:13px}
.first-tour a{color:var(--accent-text);font-weight:600;text-underline-offset:2px}
/* 고객 상세 '문의 추가' (POST /app/c/:id/inquiry): 390px에서 넘치지 않게 폼·버튼 모두 폭을 채운다 */
.ax .deal-add{margin:0 0 12px}
.ax .panel .deal-add{margin:12px 0 0}
.ax .deal-add .btn{width:100%;min-height:56px}
.ax .deal-empty .note{margin:0 0 10px}
@media (max-width:390px){.first{padding:16px 14px}.first h2{font-size:18px}}

.dt-ct .dt-h{align-items:baseline;margin-bottom:2px}
.dt-ct .dt-sub{font-size:14px;color:var(--sub)}
.dt-ct .ct-sum{margin:0 0 12px}
.dt-ct .ct{display:flex;flex-direction:column;gap:12px}
.dt-ct .ct label{margin:0}
.dt-ct .ct .find-grid{gap:12px 10px}
.dt-ct .ct h3.sub{margin:6px 0 -2px}
.dt-ct .ct>.btn{align-self:flex-start;padding:0 22px}
.dt-ct .warnbox{margin:0 0 12px}
/* 입금 줄의 '받음·날짜 표시' 칸은 글자만큼(고정 104px였을 때 "11/19"가 1px 넘침, 글자 200%면 더). 칸이 줄어도 입력칸이 줄고, 넘치면 표시가 아래로 */
@media (max-width:599px){.dt-ct .pay-row{grid-template-columns:92px minmax(0,1fr) auto}}
@media (min-width:600px){.dt-ct .pay-row{grid-template-columns:96px minmax(0,1fr) minmax(0,1fr) auto}}
.dt-ct .pay-row>*{min-width:0}
.dt-ct .pay-end{flex-wrap:wrap;justify-content:flex-end;row-gap:2px}
/* 계약 칸: 휴대폰에서 날짜 칸이 넘치지 않게 좁으면 한 줄에 하나. 입금 일정은 휴대폰에서 두 줄(종류·금액 / 날짜·받음), 600px부터 한 줄 */
.ct .find-grid{grid-template-columns:repeat(auto-fit,minmax(max(144px,calc((100% - 10px) / 2)),1fr))}
/* DD-8: 420px 아래에서는 계약일·계약 금액·작업 시작·작업 끝을 한 줄에 하나 (390px에서 두 칸이면 날짜 글자 끝과 달력 아이콘이 붙었다) */
@media (max-width:420px){.ct .find-grid{grid-template-columns:minmax(0,1fr)}}
.ct input[type=date]{min-width:0}
.ct input[type=date]::-webkit-date-and-time-value{text-align:left}
.pay-row{display:grid;grid-template-columns:92px minmax(0,1fr) 104px;grid-template-areas:"kind amt amt" "date date end";gap:6px;align-items:center;margin-bottom:14px}
.pay-row select{grid-area:kind}
.pay-row input[name=pamount]{grid-area:amt}
.pay-row input[type=date]{grid-area:date}
.pay-end{grid-area:end;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.pay-end .due{align-self:center}
@media (min-width:600px){.pay-row{grid-template-columns:96px minmax(0,1fr) minmax(0,1fr) 112px;grid-template-areas:"kind amt date end";margin-bottom:6px}}
.pay-row input,.pay-row select{padding:10px 8px;min-height:44px}
.pay-row.paid input,.pay-row.paid select{color:var(--muted)}
.paid-box{flex-direction:row;align-items:center;gap:4px;margin:0;font-size:13px;min-height:44px}
.paid-box input{width:20px;min-height:0}

/* 계약 화면: 넓은 화면은 요약 + 계약 목록/입금 일정, 좁은 화면은 기존 급한 입금 우선 순서. */
.contract-columns,.contract-main,.contract-attention{min-width:0}
@media(min-width:800px){
 .ax.contracts-page{max-width:1200px}
 .contracts-page .contract-summary{padding:20px;margin-bottom:20px}
 .contracts-page .contract-summary .ax-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0}
 .contracts-page .contract-summary .ax-kv>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:0;border:0;box-shadow:none;min-width:0}
 .contracts-page .contract-summary .ax-kv dt{font-size:14px;color:var(--sub);max-width:none}
 .contracts-page .contract-summary .ax-kv dd{text-align:left;font-size:26px;font-weight:800;margin:0}
 .contracts-page .contract-summary .ax-kv dd small{margin-top:6px;font-size:13px;font-weight:400}
 .contracts-page .contract-history{padding:24px}
 .contracts-page .contract-history>.lis>.li,.contracts-page .contract-history>.lis>li>.li{min-height:84px}
 .contracts-page .contract-history .li{padding-block:18px;gap:20px}
 .contracts-page .contract-history .li:hover{background:var(--soft)}
 .contracts-page .contract-history .li .r{min-width:125px}
}
@media(min-width:1200px){
 .contracts-page .contract-summary .ax-kv{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
 .contracts-page .contract-summary .ax-kv>div+div{padding-left:24px;border-left:1px solid var(--line)}
 .contracts-page .contract-summary .ax-kv dd{font-size:clamp(22px,2vw,30px)}
 .contract-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);grid-template-areas:"history attention";gap:20px;align-items:start}
 .contract-main{grid-area:history}
 .contract-attention{grid-area:attention}
 .contracts-page .contract-history>h2{margin-bottom:16px;font-size:20px}
 .contract-attention .tick{width:auto;min-width:96px;padding-inline:10px;gap:6px;border-radius:12px}
 .contract-attention .tick::after{content:"받음 표시";font-size:12px;font-weight:600;white-space:nowrap}
}

h1.pg{margin:6px 4px 14px;font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-.03em}
.sec-h{margin:18px 4px 8px;font-size:14px;font-weight:700;color:var(--muted)}
.menu{background:var(--surface);border-radius:20px;padding:4px 18px;margin:0 0 12px;max-width:640px}
.menu a{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 0;text-decoration:none}
.menu a+a,.menu .mrow+a{box-shadow:inset 0 1px 0 var(--line)}
.menu .av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--gr);color:var(--gr-fg)}
.menu .av svg.i{width:21px;height:21px}
.menu .av.ka{background:var(--ka);color:var(--ka-fg);font-size:15px;font-weight:800;line-height:1}
.menu .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.menu .t b{font-size:17px;font-weight:700;letter-spacing:-.02em}
.menu .t small{font-size:14px;color:var(--sub)}
.menu a>svg.i:last-child{width:18px;height:18px;color:var(--muted)}
.menu .mrow{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 0}
.mpush{padding-bottom:16px}
.mpush p{margin:0}
.mpush .btn{width:100%;min-height:48px}
.mpush .install:empty{display:none}
.news{padding:4px 18px}
.news .nw{padding:14px 0}
.news .nw+.nw{box-shadow:inset 0 1px 0 var(--line)}
.news .nw-d{margin:0;font-size:13px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.news h3{margin:2px 0 4px;font-size:17px;line-height:1.4;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere}
.news .nw>p:not(.nw-d){margin:0;font-size:15px;line-height:1.55;color:var(--sub);overflow-wrap:anywhere}
.news .nw-new{display:inline-block;margin-left:6px;padding:0 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:700;line-height:20px;vertical-align:1px}
.news details summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-height:48px;padding-right:28px;position:relative}
.news details summary::-webkit-details-marker{display:none}
.news details summary::after{content:"";position:absolute;right:4px;top:50%;width:9px;height:9px;margin-top:-7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.news details[open] summary::after{transform:rotate(225deg);margin-top:-2px}
.news .nw-t{font-size:17px;line-height:1.4;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere}
.news .nw>summary+p:not(.nw-d){margin-top:6px}
.set{max-width:640px}
.set-card{background:var(--surface);border-radius:20px;padding:6px 18px;margin:0 0 12px}
.set-card h2{margin:12px 0 2px;font-size:14px;font-weight:700;color:var(--muted)}
.set-card dl{margin:0}
.set-card dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;font-size:15px}
.set-card dl>div+div{box-shadow:inset 0 1px 0 var(--line)}
.set-card dt{flex:none;color:var(--muted)}
.set-card dd{margin:0;min-width:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.set-card dd .u{font-weight:500;font-size:14px}
/* '링크가 보내는 곳' 긴 주소는 여러 줄이 되어 왼쪽 정렬 (T166, 디자이너 1534 P3-5) */
.set-card[aria-labelledby="s-links"] dd{text-align:left}
.set-card dd a{color:var(--accent-text)}
.set-form{margin:0}
.set-card .note{margin:4px 0 6px;font-size:14px;line-height:1.5;color:var(--sub)}
.set-card .f{display:flex;flex-direction:column;gap:8px;margin:0;padding:10px 0;font-size:14px;font-weight:700;color:var(--sub)}
.set-card .f:last-child{padding-bottom:16px}
.set-card .f .hint{font-weight:500;color:var(--muted)}
.set-card .f input,.set-card .f select{height:56px;min-height:56px;padding:0 16px;border:0;border-radius:14px;background:var(--bg);font-size:17px;font-weight:500;color:var(--fg)}
.set-card .f select{padding:0 12px}
.set-card .f input,.set-card .f select{scroll-margin-top:96px}
.set .flash.bad a{color:inherit;font-weight:800;text-underline-offset:3px}
.set-form .set-card h2{margin:18px 0 4px;font-size:17px;line-height:1.4;font-weight:700;letter-spacing:-.02em;color:var(--fg);scroll-margin-top:72px}
.set-warn{display:flex;align-items:center;min-height:56px;margin:0 0 12px;padding:12px 18px;border-radius:16px;background:var(--warn-soft);color:var(--warn);font-size:15px;line-height:1.5;font-weight:700;text-decoration:none}
.set-warn::after{content:"›";margin-left:auto;padding-left:12px;font-size:20px}
.set-card .f input::placeholder{color:var(--muted);opacity:1}
.set-card .f input:focus,.set-card .f select:focus{outline:0;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.set-card .f [aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--warn)}
.set-card .f small{font-size:13px;font-weight:500;line-height:1.5;color:var(--muted)}
.set-card .f .err{display:block;font-style:normal;font-size:14px;font-weight:600;line-height:1.45;color:var(--warn)}
.set-card .hrs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--fg)}
.set-card .hrs label{margin:0}
.set-card .st{margin:6px 0 4px;padding:12px 14px;border-radius:14px;background:var(--bg);font-size:15px;line-height:1.5;color:var(--fg)}
.set-card .st.warn{background:var(--warn-soft);color:var(--warn);font-weight:700}
.set-card .st.ok{background:var(--ok-soft);color:var(--ok);font-weight:700}
.set-card .st a{display:inline-block;padding:4px 0;color:inherit}
.set-save{display:flex;width:100%;min-height:56px;margin:4px 0 12px;border-radius:16px;font-size:17px}
.set-ask{margin:4px 4px 0;font-size:15px;color:var(--sub)}
.set-ask a{display:inline-block;padding:10px 0;color:var(--accent-text);font-weight:700}
.today-all{display:flex;justify-content:center;align-items:center;min-height:48px;margin:4px 0 0;max-width:640px;font-weight:700;color:var(--accent-text);text-decoration:none}

.tdate{margin:-10px 4px 14px;font-size:15px;color:var(--sub)}
.tsum{background:var(--surface);border-radius:20px;padding:18px;margin:0 0 12px;font-size:22px;line-height:1.4;font-weight:800;letter-spacing:-.03em;max-width:640px}
.tsum em{font-style:normal;color:var(--accent-text);font-variant-numeric:tabular-nums}
/* '이번 달 유입' (마케팅 앞문 1): 클릭·문의·계약 셋은 좁은 화면에서도 한 줄. 아래 링크는 카드 끝 .tmore */
.tcard.inb .inb-n{margin:2px 0 6px;font-size:clamp(14px,4.2vw,21px);line-height:1.35;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.tcard.inb .inb-n b{color:var(--accent-text)}
.tcard.inb .inb-top{margin:0 0 8px;font-size:14px;line-height:1.5;color:var(--sub);overflow-wrap:anywhere}
.tcard.inb .inb-empty{margin:2px 0 8px;font-size:15px;line-height:1.55;color:var(--sub);overflow-wrap:anywhere}
/* '지난주 유입'의 한 줄 제안 (마케팅 앞문 2): 숫자와 같은 카드 안에서 바로 읽히게 */
.tcard.inb .inb-adv{margin:0 0 8px;font-size:15px;line-height:1.55;color:var(--fg);overflow-wrap:anywhere}
.tcard.inb .inb-adv a{color:var(--accent-text);font-weight:600}
/* 결제 유도 띠·팝업 (2026-11-29, 잠금 없음): 승인 계정·기간 없음일 때만 '오늘' 맨 위 한 줄. 390px에서는 줄을 바꾼다 */
.paybar{background:var(--accent-soft);border-radius:16px;padding:12px 14px;margin:0 0 12px;max-width:640px;display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;justify-content:space-between}
.paybar p{margin:0;font-size:14px;line-height:1.5;font-weight:600;color:var(--fg);overflow-wrap:anywhere}
.paybar-btns{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
.paybar .btn{min-height:44px;padding:0 14px;border-radius:12px;font-size:14px;font-weight:700;background:var(--accent-strong);color:#fff}
.paybar form{margin:0;display:flex}
.paybar .linkbtn{font-size:14px}
@media (max-width:480px){.paybar{align-items:flex-start}.paybar-btns{width:100%;margin-left:0}}
.paysheet .pay-lead{margin:0 0 6px;font-size:15px;line-height:1.55;color:var(--sub);overflow-wrap:anywhere}
.paysheet .pay-actions{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.paysheet .pay-actions .btn{width:100%}
.paysheet .pay-actions .linkbtn{align-self:center}
.tcard{background:var(--surface);border-radius:20px;padding:18px 18px 8px;margin:0 0 12px;max-width:640px}
.tcard h2{margin:0 0 4px;font-size:17px;font-weight:700;letter-spacing:-.02em;display:flex;justify-content:space-between;align-items:baseline}
.tcard h2 small{font-size:14px;font-weight:600;color:var(--accent-text);font-variant-numeric:tabular-nums}
.tcard ul{list-style:none;margin:0;padding:0}
.tcard .li,.tcard .sch{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 0}
.tcard li+li{box-shadow:inset 0 1px 0 var(--line)}
.tcard .go{flex:1;min-width:0;display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;min-height:48px}
.tcard .av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:15px;font-weight:800;line-height:1}
.tcard .av svg.i,.tcard .av::before{width:21px;height:21px}
.tcard .av.ka{background:var(--ka);color:var(--ka-fg)}
.tcard .av.ig{background:var(--ig);color:var(--ig-fg)}
.tcard .av.nv{background:var(--nv);color:var(--nv-fg)}
.tcard .av.ph{background:var(--accent-soft);color:var(--accent-text)}
.tcard .av.gr{background:var(--gr);color:var(--gr-fg)}
.tcard .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tcard .t b{font-size:17px;font-weight:700;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcard .t span{font-size:14px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcard .t span.late{color:var(--warn);font-weight:700;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2} /* 빨간 이유는 두 줄까지 (200%에서 한 줄 말줄임이 너무 잘림, T202·디자이너 1520 P3-2) */
.tcard .ib{width:44px;height:44px;border-radius:50%;background:var(--gr);color:var(--fg);display:grid;place-items:center;flex:none;border:0;padding:0;margin:0;cursor:pointer}
.tcard .ib svg.i{width:20px;height:20px}
.tcard form{margin:0;flex:none}
.tcard .sch{align-items:flex-start}
.tcard .sch time{flex:none;width:auto;min-width:3.4em;font-size:15px;font-weight:700;padding-top:12px;font-variant-numeric:tabular-nums} /* 글자를 키우면 칸도 같이 (15px에서 51px, QA 5차 P1-7) */
.tcard .sch.past time{color:var(--muted)}
.tcard .sch .go{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
.tcard .sch b{font-size:16px;font-weight:700}
.tcard .sch .go span{font-size:14px;color:var(--sub)}
/* 띄어쓰기 없는 긴 이름·인스타 아이디: body의 keep-all이라 끊을 곳이 없어 화면이 넓어졌다. 띄어쓰기에서 먼저, 낱말이 칸보다 길 때만 안에서 끊는다 (QA 5차 P1-2) */
.tcard .sch b,.tcard .sch .go span{max-width:100%;overflow-wrap:anywhere}
/* 첫 주 할 일 진행 막대: 인라인 width 대신 한 칸씩 (R0 결정, 오늘·보드 같이 씀) */
.ck-bar.seg{display:flex;gap:3px;background:none}
.ck-bar.seg i{flex:1;background:var(--line);border-radius:3px}
.ck-bar.seg i.on{background:var(--accent)}
.tmore{display:flex;justify-content:center;align-items:center;min-height:48px;box-shadow:inset 0 1px 0 var(--line);font-size:14px;font-weight:600;color:var(--sub);text-decoration:none}
/* 미용 '오늘 예약' (시안 a6): 시간이 지난 예약 아래 '왔어요 / 안 왔어요'. 남은 예약은 같은 칸 안에서 펼친다 */
.tcard .rv{flex:1;min-width:0;display:flex;flex-direction:column}
.tcard .yn{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px} /* L88: 지난 예약 줄 '왔어요'·'안 왔어요' 두 단추가 360·글자 200% 에서 넘치지 않게 줄을 바꾼다 */
.tcard .yn button{min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--gr);color:var(--fg);font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.tcard .yn button.y{background:var(--accent-soft);color:var(--accent-text)}
.tmore-d>summary{list-style:none;cursor:pointer}
.tmore-d>summary::-webkit-details-marker{display:none}
.tmore-d[open]>summary{display:none}
.tmore-d li:first-child{box-shadow:inset 0 1px 0 var(--line)}
/* 할 일이 50개를 넘은 칸 끝 (작은 묶음 2): 몇 개까지 보이는지 한 줄 + 문의 탭 링크(.tmore) */
.tcap{margin:0;padding:12px 0 10px;box-shadow:inset 0 1px 0 var(--line);font-size:14px;color:var(--sub);overflow-wrap:anywhere}
/* '안 왔어요' 뒤 아래 알림의 되돌리기. 알림 바탕이 글자색을 뒤집어 쓰니 버튼은 글자색 테두리만 */
.flash.tundo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px;padding-bottom:6px}
.flash.tundo form{margin:0;flex:none}
.flash.tundo button{min-height:44px;padding:0 14px;border:1.5px solid currentColor;border-radius:10px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}

.help{max-width:640px}
.hcard{background:var(--surface);border-radius:20px;padding:18px;margin:0 0 12px;scroll-margin-top:56px}
.hcard h2{margin:0 0 8px;font-size:17px;font-weight:700;letter-spacing:-.02em}
.hcard p{margin:0 0 8px;font-size:15px;line-height:1.6}
.hcard p:last-child{margin-bottom:0}
.hcard p.sub{font-size:14px;color:var(--sub)}
.hcard a{color:var(--accent-text);font-weight:600}
.hwhere{margin:4px 0 10px}
.hwhere>div{display:flex;flex-wrap:wrap;gap:2px 12px;padding:11px 0;font-size:14px} /* 글자 200%면 값이 이름 아래로 (디자이너 1636 P2-2) */
.hwhere>div+div{box-shadow:inset 0 1px 0 var(--line)}
.hhash dd{min-width:0;overflow-wrap:anywhere;font-size:13px}
.hwhere dt{flex:none;width:6.6em;color:var(--muted)} /* 14px에서 92px로 예전과 같고, 글자를 키우면 칸도 같이 (QA 5차 P1-7) */
.hwhere dd{margin:0;min-width:0;font-weight:600;overflow-wrap:anywhere;flex:1 1 10em}
/* 홈 화면에 놓기·알림 칸 (dev/onboard1 4): 기기 이름 15/700 + 번호 붙은 세 줄, 기기별 설정 길은 이름 위·길 아래 두 줄 (긴 기기 이름도 칸 안에서) */
.hdev{margin:14px 0 6px;font-size:15px;font-weight:700}
.hsteps{margin:0 0 4px;padding-left:1.4em;font-size:15px;line-height:1.6}
.hsteps li+li{margin-top:2px}
.hpath>div{flex-direction:column;gap:2px}
.hpath dt{width:auto}
/* 맨 위 목차 칩 (디자이너 1636 P2-1): 두 줄까지 감기는 칩, 44px, 문의 상세 고르기 칩과 같은 꼴. 칸이 많으면 묶음 이름이 칩 줄 앞에 */
.htoc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.htoc a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);font-size:14px;font-weight:600;text-decoration:none}
.htoc-h{flex:0 0 100%;margin:6px 0 0;font-size:13px;font-weight:700;color:var(--muted)}
.htoc-h:first-child{margin-top:0}

.ax{max-width:640px}
.ax h1.pg{overflow-wrap:anywhere}
.ax h1.pg .num{color:var(--accent-text);font-variant-numeric:tabular-nums}
.ax .pghd{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:12px;margin:6px 4px 14px}
.ax .pghd h1.pg{margin:0;min-width:0}
.ax .pga{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:var(--accent-text);text-decoration:none}
.ax .pgsub{margin:-10px 4px 14px;font-size:15px;color:var(--sub);font-variant-numeric:tabular-nums}
.ax .sec-h{overflow-wrap:anywhere;display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 8px;font-variant-numeric:tabular-nums}
.ax .panel{border-radius:20px;padding:18px;margin:0 0 12px}
.ax .panel>h2{font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.4;margin:0 0 10px;overflow-wrap:anywhere}
/* 카드 제목 옆 개수는 오른쪽 --accent-text 14/600 하나로 (DD-11, '오늘'·숫자 탭 카드와 같음) */
.ax .panel>h2:has(>small){display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ax .panel>h2 small{flex:none;font-size:14px;font-weight:600;color:var(--accent-text);font-variant-numeric:tabular-nums}
.ax .panel>h2 .hint{font-size:14px}
.ax .panel>.empty{margin:0 0 8px;padding:2px 0}
.ax .note{font-size:14px;line-height:1.55;color:var(--sub)}
.ax .panel .note:last-child{margin-bottom:0}
.ax .panel>h2+.note{margin-top:0}
.ax .flash{border-radius:16px;font-size:15px}
.ax .btns{gap:8px}
.ax label{font-size:14px;font-weight:700;color:var(--sub)}
.ax label .hint{font-weight:500}
.ax input:not([type=checkbox]):not([type=radio]):not([type=file]),.ax select,.ax textarea{background:var(--bg);border:0;border-radius:14px;min-height:56px;padding:14px 16px;font-size:17px;color:var(--fg)}
.ax select{padding:0 12px}
.ax textarea{min-height:96px;font-size:16px;line-height:1.5}
.ax input::placeholder,.ax textarea::placeholder{color:var(--muted);opacity:1}
.ax input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,.ax select:focus,.ax textarea:focus{outline:0;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.ax input[type=file]{min-height:44px;padding:8px 0;font-size:15px}
.ax label.check{flex-direction:row;align-items:center;gap:10px;font-size:15px;font-weight:500;color:var(--fg);min-height:44px} /* QA M9-P3-30: 한 줄 확인 칸도 누를 칸 44px */
/* QA M9-P3-31: 내려받기 '메모만' 400 뒤 확인 칸을 체크하거나 '메모도 넣기'를 풀면 빨간 '아무것도 내려받지 않았어요'를 숨긴다 (그 뒤 내려받기는 화면을 바꾸지 않아서). 스크립트 0 */
.ax #cust-export:has(input[name=notesconfirm]:checked) #fe-dlconfirm,.ax #cust-export:has(input[name=notes]:not(:checked)) #fe-dlconfirm{display:none}
.ax label.check input{width:22px;height:22px;min-height:0;margin:0;flex:none;accent-color:var(--accent-strong)}
.ax details.more{background:var(--surface);border-radius:20px;padding:0 18px;margin:0 0 12px}
.ax details.more>summary{min-height:56px;margin:0 -18px;padding:14px 18px;align-items:center;font-size:16px}
.ax details.more>summary::after{margin-top:-4px}
.ax details.more[open]>summary::after{margin-top:4px}
.ax details.more[open]{padding-bottom:18px}
.ax .panel details.more{background:none;border-radius:0;padding:0;margin:12px 0 0;box-shadow:inset 0 1px 0 var(--line)}
.ax .panel details.more>summary{margin:0;padding:14px 0}
.ax .panel details.more[open]{padding-bottom:0}
.ax .linkout{border-radius:16px;padding:16px}
.ax .imp-ok{margin-top:16px}
.ax .panel h3.sub{margin:16px 0 8px;font-size:14px;font-weight:700}
.ax .fold-f{margin:4px 0 0;display:flex;flex-direction:column;gap:14px}
.ax .fold-f label{margin:0}
.ax .fold-f .btn{align-self:flex-start}
.ax .fold-f .note{margin:0}
.ax .lis{list-style:none;margin:0;padding:0}
.ax .lcard{background:var(--surface);border-radius:20px;padding:4px 18px;margin:0 0 12px}
.ax .panel .lis{margin:-6px 0 0}
.ax .lis>li+li{box-shadow:inset 0 1px 0 var(--line)}
.ax .li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;min-height:68px;padding:10px 0;color:inherit;text-decoration:none}
.ax .li .av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:15px;font-weight:800;line-height:1;background:var(--gr);color:var(--gr-fg)}
.ax .li .av svg.i,.ax .li .av::before{width:21px;height:21px}
.ax .li .av.ka{background:var(--ka);color:var(--ka-fg)}
.ax .li .av.ig{background:var(--ig);color:var(--ig-fg)}
.ax .li .av.nv{background:var(--nv);color:var(--nv-fg)}
.ax .li .av.ph{background:var(--accent-soft);color:var(--accent-text)}
/* 이름 칸은 10em(17px 이름 8자 남짓)보다 좁아지지 않는다(동그라미 옆 폭이 그보다 좁으면 그 폭). 오른쪽 단계·금액이 그보다 넓으면(글자 200%, 10자 단계 이름, 9,999,999,999원) 아래 줄 오른쪽으로 (QA 5차 판단 보류 1) */
.ax .li .t{flex:1 1 min(10em,100% - 54px);min-width:0;display:flex;flex-direction:column;gap:2px}
.ax .li .t b{font-size:17px;font-weight:700;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ax .li .t span{font-size:14px;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.ax .li .t span.wl{white-space:normal;overflow-wrap:anywhere}
.ax .li .r{flex:0 1 auto;margin-left:auto;max-width:100%;display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.ax .li .r b{font-size:15px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ax .li .r small{font-size:13px;color:var(--muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ax .li .r .won{color:var(--ok)}
.ax .li .r .off{color:var(--muted);font-weight:600}
.ax .li .r .warnx{color:var(--warn)}
.ax .todo li a.who b,.ax .todo li a.who small{overflow-wrap:anywhere}
.ax .ax-kv{margin:0}
.ax .ax-kv>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;font-size:15px}
.ax .ax-kv>div+div{box-shadow:inset 0 1px 0 var(--line)}
.ax .ax-kv dt{flex:0 0 auto;max-width:45%;color:var(--muted);overflow-wrap:anywhere}
.ax .ax-kv dd{margin:0;min-width:0;font-weight:600;text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ax .ax-kv dd small{display:block;font-size:13px;font-weight:500;color:var(--muted)}
.ax .ax-kv dd.warnx{color:var(--warn)}
.ax .kvcard{padding-top:6px;padding-bottom:6px}
.ax-chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 12px;padding:0 16px 2px;scrollbar-width:none}
.ax-chips::-webkit-scrollbar{display:none}
/* 휴대폰 손맛 (~/.claude/skills/mobile-native 2·5·6·8번): 줄·칩을 누를 때 회색 번쩍임 없이 바로 흐려지고(누르는 동안만, 움직임 없음), 칩 줄 끝에서 더 밀어도 화면이 따라오지 않고, 칩을 길게 눌러도 글자 선택이 안 뜬다 */
.ax a.li,.ax-chips a,.ax .pga{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ax a.li:active,.ax-chips a:active{opacity:.6}
.ax-chips{overscroll-behavior-x:contain}
.ax-chips a{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ax-chips a{flex:none;min-height:44px;padding:0 15px;border-radius:999px;display:inline-flex;align-items:center;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;background:var(--surface);color:var(--sub)}
.ax-chips a.on{background:var(--fg);color:var(--bg)}
.ax .find{margin:0 0 12px}
/* 회색 바탕 위(카드 밖)의 입력칸·회색 버튼은 흰 바탕으로 (라이트에서 --gr·--bg가 바탕과 같은 색) */
.ax .find-row input:not([type=checkbox]):not([type=radio]):not([type=file]){background:var(--surface)}
.ax .find-row .btn.sec,.ax .ax-call .btn.sec{background:var(--surface)}
.ax .find-row .btn{min-height:56px}
/* 숫자 칸 두 줄 기준을 글자 크기에 맞춰(10em = 보통 150px): 글자 200%면 한 줄에 하나 */
.ax .tiles{gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,10em),1fr))}
.ax .tile{border-radius:20px;padding:18px;min-width:0}
.ax .tile span{font-size:14px;color:var(--sub);overflow-wrap:anywhere}
.ax .tile b{font-size:28px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.ax .tile b.sm{font-size:22px}
.ax .tile b small{margin-left:2px;font-size:15px;font-weight:700;color:var(--sub)}
.ax .tile>small{overflow-wrap:anywhere;display:block;margin-top:4px;font-size:14px;line-height:1.5;color:var(--sub)}
.ax .wide{display:flex;width:100%;min-height:56px;border-radius:16px;font-size:17px}
.ax .ax-hd{display:flex;flex-direction:column;gap:6px;margin:6px 4px 14px}
.ax .ax-hd h1{margin:0;font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-.03em;overflow-wrap:anywhere}
.ax .ax-hd p{margin:0;font-size:15px;color:var(--sub);overflow-wrap:anywhere}
.ax .ax-hd .tags{display:flex;flex-wrap:wrap;gap:6px}
.ax .ax-hd .tags .chip{font-size:13px;padding:3px 9px;border-radius:999px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ax .ax-call{display:flex;gap:8px;margin:0 0 12px}
.ax .ax-call .btn{flex:1 1 0;min-width:0;padding:0 12px;border-radius:16px}
.ax .tbl td{overflow-wrap:anywhere}

@media (min-width:1024px){
body:has(> nav.tabs){padding-left:240px}
nav.tabs{width:240px;padding:18px 16px}
.wrap{max-width:1120px}
header.top{max-width:1120px;margin-left:auto;margin-right:auto}
.dt,.ax,.set,.upsheet.page{max-width:720px;margin-left:auto;margin-right:auto}
.ax.chg{max-width:1120px;margin-left:-16px;margin-right:-16px}
.ax.chg .ax-chips{margin-left:0;margin-right:0}
.ax.chg .subtop{margin-left:0;margin-right:0}
.chg-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px 40px;align-items:start}
.chg-tbl{grid-column:1;grid-row:1}
.chg-cost{grid-column:1;grid-row:2}
.chg-ins{grid-column:2;grid-row:1 / span 2}
.dt-bar{left:0;right:0;width:min(720px,calc(100vw - 64px));margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px;border-radius:16px 16px 0 0}
body:has(> nav.tabs) .dt-bar{left:240px}
}
@media (max-width:959px){
body:has(> nav.tabs) .upsheet.page .qa-save{bottom:calc(64px + env(safe-area-inset-bottom))}
}


/* 숫자 칸 셋이 두 칸 줄에서 셋째가 반 칸만 차지 않게 (디자이너 1906 P3-1: 운영 리포트 미리보기는 kit 규칙이 없어 반 칸이었다) */
@media (max-width:505px){.tiles>.tile:last-child:nth-child(odd){grid-column:1/-1}}
.months{display:flex;justify-content:space-between;margin:4px 0 10px;font-size:14px}
.months a{text-decoration:none;color:var(--sub);display:inline-flex;align-items:center;min-height:44px}
.eyebrow{margin:0;font-size:13px;font-weight:700;color:var(--accent-text,var(--accent))}
.rtitle{margin:4px 0 8px;font-size:26px;font-weight:700;letter-spacing:-.03em}
.ponly{display:none}
.rhd .mon{margin:-14px 0 0 -8px}
.rhd .tdate{margin-bottom:0}
.rhd .start-link{margin:0 4px 10px;font-weight:500}
.rhd .start-link a{display:inline-flex;align-items:center;min-height:44px;color:var(--sub);text-underline-offset:3px}
.summary{margin:0;font-size:16px;line-height:1.6}
.summary-sub{margin:8px 0 0;font-size:14px;color:var(--sub)}
.opnote{margin:12px 0 0;padding:12px 14px;background:var(--bg);border-radius:12px;font-size:14px;color:var(--sub);white-space:pre-wrap}
table.rt{width:100%;border-collapse:collapse;font-size:14px}
.rt th{font-size:12px;color:var(--muted);font-weight:600;text-align:left;padding:0 0 8px;border-bottom:1px solid var(--line)}
.rt td{padding:10px 0;border-bottom:1px solid var(--line)}
.rt .num{text-align:right;font-variant-numeric:tabular-nums}
.measures{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.measures li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.measures b{font-weight:600}
.measures span{text-align:right;font-variant-numeric:tabular-nums}
.actions{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:15px}
.ins{margin:0 0 12px;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.scroll{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.tbl th,.tbl td{padding:9px 6px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}
.tbl th:first-child,.tbl td:first-child{text-align:left;white-space:normal}
.tbl thead th{border-top:0;font-size:12px;font-weight:600;color:var(--muted)}
.tbl td small{display:block;font-size:12px;color:var(--muted)}
.span-days{margin:0 0 8px;font-size:14px;color:var(--sub)}
.start-link{margin:4px 0 10px;font-size:14px;font-weight:600}
.start-link a{color:var(--accent-text,var(--accent))}

.cross .xsub{font-size:13px;font-weight:600;color:var(--sub);margin:16px 0 8px}
.cross .cross-lines{margin:0 0 10px}
.cross .cross-note{margin:0 0 10px}
.tbl.cross thead th{vertical-align:bottom}
.tbl.cross td.z{color:var(--muted)}
.tbl.cross td.hit b{color:var(--accent-text,var(--accent))}
.tbl.cross tfoot td{font-weight:600}
.cross-print{display:none}
@media print{#cross .cross[data-cross="reason"],#cross .cross-about,#cross .xsub{display:none}#cross .cross-print{display:block;margin:8px 0 0}#cross .tbl.cross th,#cross .tbl.cross td{padding:3px}#cross.panel,#cross .cross,#cross .cross-head,#cross .scroll{break-inside:auto}#cross h2,#cross .cross-lines,#cross .cross-note{break-after:avoid}#cross .tbl.cross tr{break-inside:avoid}#cross .tbl.cross thead{display:table-header-group}.cross,.cross-head{break-inside:avoid}.tbl.cross td small{display:inline;margin-left:4px}.tbl.cross td small+small::before{content:"· "}}

/* 인쇄: A4 3쪽 안 (T20 코디네이터 결정). 칸은 통째로 넘기되, 줄이 긴 표 칸(table.rt: 문의에서 계약까지·채널별 문의와 계약·많이 눌린 링크)은
   앞 쪽 남은 자리부터 줄 단위로 이어 쓴다 (칸 이름 줄은 쪽마다 다시, 제목은 표와 떨어지지 않게) */
@media print{:root{--bg:#fff;--surface:#fff;--fg:#191f28;--sub:#4e5968;--muted:#5f6b7a;--line:#e5e8eb;--accent-text:#1b64da;color-scheme:light}
.top,.no-print,.fab,nav.tabs,.scroll-hint{display:none!important}.ponly{display:block!important}body{background:#fff;color:#191f28}.panel,.tile{break-inside:avoid;border:1px solid #e5e8eb}
.scroll{overflow:visible!important}.tbl{font-size:11px}.tbl th,.tbl td{padding:5px 3px;white-space:normal}.raw{display:none}@page{size:A4;margin:12mm;@top-left{content:""}@top-center{content:""}@top-right{content:""}@bottom-left{content:""}@bottom-center{content:""}@bottom-right{content:""}}
.panel:has(>table.rt){break-inside:auto}.rt tr{break-inside:avoid}.rt thead{display:table-header-group}.panel>h2{break-after:avoid}}


html:has(dialog.upsheet[open]){overflow:hidden}
dialog.upsheet{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:none;height:calc(100% - 96px);max-height:none;padding:0;border:0;border-radius:24px 24px 0 0;background:var(--surface);color:var(--fg);overflow:hidden}
dialog.upsheet::backdrop{background:var(--dim,rgba(0,0,0,.45))}
@media (max-height:700px){dialog.upsheet{height:calc(100% - 24px)}}
@media (min-width:600px){dialog.upsheet{inset:0;width:min(520px,calc(100% - 48px));height:min(780px,calc(100% - 48px));margin:auto;border-radius:24px}}
.upsheet .up-in{height:100%;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
.upsheet .up-top{flex:none;display:flex;flex-direction:column;margin:0 calc(-1 * max(20px,env(safe-area-inset-right))) 0 calc(-1 * max(20px,env(safe-area-inset-left)));padding:10px max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
dialog.upsheet .up-top{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
dialog.upsheet .up-top.up-sc{touch-action:auto}
@media (max-width:599px){dialog.upsheet{box-shadow:0 64px 0 var(--surface)}}
.up-dim{position:fixed;inset:0;z-index:30;background:var(--dim);pointer-events:none}
.upsheet .grab{flex:none;align-self:center;width:40px;height:5px;border-radius:3px;background:var(--line)}
.upsheet .up-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 22px}
.upsheet :is(h1,h2){margin:0;font-size:24px;font-weight:800;letter-spacing:-.03em;line-height:1.5}
.upsheet .up-x{flex:none;width:44px;height:44px;margin-right:-10px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.upsheet.page{margin:8px calc(-1 * max(16px,env(safe-area-inset-right))) calc(-96px - env(safe-area-inset-bottom)) calc(-1 * max(16px,env(safe-area-inset-left)));min-height:calc(100vh - 60px);min-height:calc(100dvh - 60px);border-radius:24px 24px 0 0;background:var(--surface);display:flex;flex-direction:column}
.upsheet.page .up-in{flex:1;height:auto;overflow:visible}
@media (min-width:600px){.upsheet.page{max-width:520px;min-height:0;margin:8px auto 0;border-radius:24px}}
@media (prefers-color-scheme:dark){dialog.upsheet::backdrop{background:var(--dim,rgba(0,0,0,.6))}}
/* 내용만큼 높이의 판 (sheet fit, 목표 금액 판, DD-14 디자이너 답 11/10): 최대 높이는 빠른 추가와 같고, 저장 줄은 안내 바로 아래 */
dialog.upsheet.fit{height:auto;max-height:calc(100% - 96px)}
dialog.upsheet.fit .up-in{height:auto;max-height:calc(100dvh - 96px)}
@media (max-height:700px){dialog.upsheet.fit{max-height:calc(100% - 24px)}dialog.upsheet.fit .up-in{max-height:calc(100dvh - 24px)}}
@media (min-width:600px){dialog.upsheet.fit{max-height:min(780px,calc(100% - 48px))}dialog.upsheet.fit .up-in{max-height:min(780px,calc(100dvh - 48px))}}
.upsheet form{flex:1 0 auto;display:flex;flex-direction:column;gap:16px;margin:0}
.upsheet form fieldset{margin:0;padding:0;border:0;min-width:0}
.upsheet form .lb{display:block;margin:0 0 10px;padding:0;font-size:14px;font-weight:700;line-height:1.5;color:var(--sub)}
.upsheet form .lb .hint{display:block;margin-top:2px;font-size:13px}
.upsheet form label{margin:0;gap:0;font-size:inherit;font-weight:inherit}
.qa-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(72px,4.5em),1fr));gap:8px} /* 100%는 네 칸 그대로, 글자 200%는 칸이 글자 크기만큼 넓어져 두 칸 → '카카오톡'이 낱말 가운데서 꺾이지 않게 (T202, 디자이너 1520 P3-1) */
.qa-tile,.qa-chip{position:relative;display:block}
.qa-tile input,.qa-chip input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0;border:0;pointer-events:none}
.qa-tile>span{position:relative;min-height:84px;padding:10px 4px;overflow-wrap:anywhere;border-radius:16px;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:700;line-height:1.2;text-align:center;color:var(--fg);cursor:pointer}
.qa-tile input:checked+span{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent-text)}
.qa-tile input:checked+span::after{content:"";position:absolute;top:7px;right:7px;width:18px;height:18px;border-radius:50%;background:var(--accent)}
.qa-tile input:checked+span::before{content:"";position:absolute;z-index:1;top:10px;right:13px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.upsheet form .av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:15px;font-weight:800;line-height:1}
.upsheet form .av svg.i{width:21px;height:21px}
.upsheet form .av.ph{background:var(--accent-soft);color:var(--accent-text)}
.upsheet form .av.ka{background:var(--ka);color:var(--ka-fg)}
.upsheet form .av.ig{background:var(--ig);color:var(--ig-fg)}
.upsheet form .av.gr{background:var(--gr);color:var(--gr-fg)}
.qa-chips{display:flex;flex-wrap:wrap;gap:8px}
.qa-ch .qa-chips{margin-top:16px}
.qa-chip span{display:inline-flex;align-items:center;min-height:44px;padding:0 15px;border-radius:999px;background:var(--bg);font-size:15px;font-weight:600;color:var(--sub);white-space:nowrap;cursor:pointer}
.qa-ch .qa-chip input:checked+span{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent-text)}
.qa-opt .qa-chip input:checked+span{background:var(--fg);color:var(--bg)}
.qa-tile input:focus-visible+span,.qa-chip input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.qa-f input,.qa-f select,.qa-f textarea{height:56px;min-height:56px;padding:0 16px;border:0;border-radius:14px;background:var(--bg);font-size:17px;color:var(--fg)}
.qa-f select{padding:0 12px}
.qa-nw{white-space:nowrap}
.qa-f textarea{height:auto;min-height:120px;padding:15px 16px;line-height:1.5;resize:vertical}
.qa-f input::placeholder,.qa-f textarea::placeholder{color:var(--muted);opacity:1}
.qa-f input:focus,.qa-f select:focus,.qa-f textarea:focus{outline:0;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.qa-opt summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;font-size:15px;color:var(--sub);cursor:pointer}
.qa-opt summary span{flex:none}
.qa-opt summary b{min-width:0;display:flex;align-items:center;gap:8px;font-weight:600;color:var(--fg);overflow-wrap:anywhere}
.qa-opt summary b::after{content:"";flex:none;width:7px;height:7px;margin-right:3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.qa-opt[open] summary b::after{transform:rotate(45deg);margin-top:-4px}
.qa-opt .qa-chips{margin:4px 0 8px}
.qa-opt .qa-f{margin-top:12px}
.qa-err{margin:0 0 16px;background:var(--warn-soft);color:var(--warn)}
.qa-ferr{display:block;color:var(--warn);font-size:14px;font-weight:600;line-height:1.45;margin:4px 0 6px}
.qa-f input[aria-invalid=true],.qa-f textarea[aria-invalid=true]{box-shadow:inset 0 0 0 2px var(--warn)}
.qa-ch[aria-describedby] .qa-tile>span,.qa-ch[aria-describedby] .qa-chip>span{box-shadow:inset 0 0 0 2px var(--warn)}
.qa-note{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:var(--accent-soft);color:var(--sub);font-size:14px;line-height:1.5}
.qa-save{margin-top:auto;position:sticky;bottom:0;z-index:1;padding:12px 0 max(20px,env(safe-area-inset-bottom));background:var(--surface)}
.qa-save .btn{width:100%;min-height:56px;border-radius:16px;font-size:17px}
.upsheet .up-in,html:has(.upsheet.page){scroll-padding-bottom:calc(76px + max(20px,env(safe-area-inset-bottom)))} /* 붙박이 '저장' 띠(위 12 + 단추 56 + 아래 20 이상) 밑으로 고른 칸이 숨지 않게: 칸에 들어가면 띠 위로 올라온다 (L81, 디자이너 1950 안12) */


:root{--t-fast:120ms;--t-base:200ms;--t-move:320ms;--t-slow:400ms;--ease:cubic-bezier(.22,1,.36,1);--ease-move:cubic-bezier(.77,0,.175,1)}
.next,.stages button,.chips button,.btn,.ib,.fab,.tick{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.next:disabled,.btn:disabled,.stages button:disabled,.chips button:disabled{opacity:.5;cursor:default}
.card{position:relative}
.card.leaving{opacity:0;pointer-events:none;transition:opacity var(--t-base) ease-out,transform var(--t-base) var(--ease)}
.card.arrived::after{content:"";position:absolute;inset:-1px;border-radius:inherit;box-shadow:0 0 0 2px var(--accent);opacity:0;pointer-events:none;animation:mo-ring 900ms ease-out}
@keyframes mo-ring{15%,55%{opacity:1}}
.tile .delta{margin-left:6px;font-size:13px;font-style:normal;font-weight:700;color:var(--accent-text);vertical-align:.3em;animation:mo-fade var(--t-base) ease-out var(--t-fast) both}
@keyframes mo-fade{from{opacity:0}}
.flash[role=status]{position:fixed;z-index:7;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(max(84px,5.6em) + env(safe-area-inset-bottom));max-width:480px;margin:0 auto;background:var(--fg);color:var(--bg);box-shadow:0 8px 24px rgba(0,0,0,.18);cursor:pointer;pointer-events:auto;transition:opacity var(--t-base) var(--ease)}
body:not(:has(> nav.tabs)) .flash[role=status]{bottom:calc(16px + env(safe-area-inset-bottom))}
.flash[role=status].out{opacity:0;pointer-events:none;transition-duration:var(--t-fast)}
@starting-style{.flash[role=status]{opacity:0}}
dialog.upsheet::backdrop{transition:opacity 200ms ease-out}
@starting-style{dialog.upsheet[open]::backdrop{opacity:0}}
.board .card::before{content:"";position:absolute;left:12px;right:12px;bottom:5px;height:3px;border-radius:2px;background:var(--accent);opacity:0;transform:scaleX(0);transform-origin:0 50%;pointer-events:none;transition:opacity var(--t-fast) var(--ease),transform 0s var(--t-fast)}
dialog.upsheet[data-dim]::backdrop{opacity:0;transition:none}
dialog.upsheet[data-up=drag],.up-dim[data-up=drag]{transition:none}
html.nav-wait body::before{content:"";position:fixed;z-index:20;top:env(safe-area-inset-top,0px);left:0;right:0;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:0 50%;pointer-events:none;animation:mo-bar 8s cubic-bezier(.1,.7,.1,1) .15s both}
@keyframes mo-bar{to{transform:scaleX(.9)}}
@media (prefers-reduced-motion:no-preference){
.next,.stages button,.chips button,.btn,.ib,.fab,.tick{transition:transform 160ms var(--ease)}
.next:active:not(:disabled):not(:focus-visible),.stages button:active:not(:disabled):not(:focus-visible),.chips button:active:not(:disabled):not(:focus-visible),.btn:active:not(:disabled):not(:focus-visible),.ib:active:not(:disabled):not(:focus-visible),.fab:active:not(:disabled):not(:focus-visible),.tick:active:not(:disabled):not(:focus-visible){transform:scale(.97);transition-duration:var(--t-fast)}
.card.leaving{transform:translateX(24px)}
.flash[role=status]{transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease)}
.flash[role=status].out{transform:translateY(8px)}
@starting-style{.flash[role=status]{transform:translateY(8px)}}
.upsheet[open]{transition:transform var(--t-move) var(--ease)}
@starting-style{.upsheet[open]{transform:translateY(100%)}}
.board .card.hold::before{opacity:1;transform:scaleX(1);transition:transform 550ms linear,opacity var(--t-fast) linear}
dialog.upsheet[data-up=back]{transition:transform var(--t-base) var(--ease)}
.up-dim[data-up=back]{transition:opacity var(--t-base) var(--ease)}
dialog.upsheet[data-up=out]{transition:transform 500ms cubic-bezier(.32,.72,0,1)}
.up-dim[data-up=out]{transition:opacity 500ms cubic-bezier(.32,.72,0,1)}
@media (min-width:600px){dialog.upsheet[data-up=out],.up-dim[data-up=out]{transition-timing-function:cubic-bezier(.165,.84,.44,1)}}
details.more summary::after{transition:transform var(--t-base) var(--ease)}
}
@media (prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none!important;transition:none!important}
html.nav-wait body::before{animation:mo-bar 8s cubic-bezier(.1,.7,.1,1) .15s both!important}
.flash[role=status]{transition:opacity var(--t-base) var(--ease)!important}
.flash[role=status].out{transition-duration:var(--t-fast)!important}
.card.leaving{transition:opacity var(--t-base) ease-out!important}
.card.arrived::after{animation:mo-ring 900ms ease-out!important}
.tile .delta{animation:mo-fade var(--t-base) ease-out var(--t-fast) both!important}
dialog.upsheet[data-up=out],.up-dim[data-up=out]{transition:opacity var(--t-base) var(--ease)!important}
.next:active:not(:disabled),.stages button:active:not(:disabled),.chips button:active:not(:disabled),.btn:active:not(:disabled),.ib:active:not(:disabled),.fab:active:not(:disabled),.tick:active:not(:disabled){opacity:.8}
}
