/* =========================================================
   새 모양 (Pro Max판, 2026-11-26 사용자 결정) — html 에 class="v2" 가 있을 때만 먹는다.
   되돌리기: 이 기기만 → 주소 끝에 ?ui=old (다시 ?ui=new) / 모두 → 설정.json "ui_v2": false
   기준: docs 화면흐름_1126/프로토타입_promax_v2 (Minimalism & Swiss, 보험 파랑 #0369A1, IBM Plex Sans KR)
   - 색은 아래 이름 붙인 색으로만. 밝은·어두운 모양 둘 다
   - 간격 4의 배수, 본문 16px, 누르는 곳 44px 이상, 단추 사이 8px
   - 기능·화면 순서는 그대로 두고 모양만 바꾼다(빠지는 기능이 없게). 바뀐 배치는 휴대폰 아래 메뉴(js/v2.js)뿐
   ========================================================= */
html.v2 {
  --bg:#F3F7FA; --card:#FFFFFF; --ink:#0F172A; --sub:#475569; --line:#D5E1EA; --line-2:#64748B; --surface-2:#EEF4F8;
  --accent:#0369A1; --accent-ink:#FFFFFF; --accent-press:#075985; --accent-soft:#E0F2FE; --accent-line:#BAE6FD; --on-soft:#075985; --sel:#F0F9FF;
  --ok:#166534; --ok-bg:#DCFCE7; --ok-line:#BBF7D0;
  --warn:#92400E; --warn-bg:#FEF3C7; --warn-line:#FCD34D; --warn-ink:#78350F; --warn-strong:#B45309;
  --bad:#B91C1C; --bad-bg:#FEE2E2; --bad-line:#FCA5A5; --bad-ink:#7F1D1D;
  --idle:#EEF4F8; --shade:rgba(15,23,42,.55); --shadow:rgba(2,6,23,.18);
  --toast-bg:#0F172A; --toast-fg:#F8FAFC; --input:#FFFFFF; --focus:#0369A1;
  --font:"IBM Plex Sans KR","Malgun Gothic","맑은 고딕","Apple SD Gothic Neo",sans-serif;
  --r-sm:8px; --r:12px; --r-lg:16px;
}
@media (prefers-color-scheme: dark) {
  html.v2:not([data-theme="light"]) {
    --bg:#0B1220; --card:#111A2B; --ink:#E2E8F0; --sub:#A9B6C6; --line:#26354B; --line-2:#8494AB; --surface-2:#1A2638;
    --accent:#38BDF8; --accent-ink:#082F49; --accent-press:#7DD3FC; --accent-soft:#0C2A40; --accent-line:#155E75; --on-soft:#BAE6FD; --sel:#0C2A40;
    --ok:#86EFAC; --ok-bg:#062B18; --ok-line:#166534;
    --warn:#FCD34D; --warn-bg:#2A1E05; --warn-line:#92400E; --warn-ink:#FDE68A; --warn-strong:#F59E0B;
    --bad:#FCA5A5; --bad-bg:#2A0E0E; --bad-line:#991B1B; --bad-ink:#FECACA;
    --idle:#1A2638; --shade:rgba(0,0,0,.65); --shadow:rgba(0,0,0,.5);
    --toast-bg:#E2E8F0; --toast-fg:#0F172A; --input:#0F1828; --focus:#7DD3FC;
    color-scheme: dark;
  }
}
html.v2 body { font-family: var(--font); font-size: 16px; line-height: 1.55; background: var(--bg); color: var(--ink); word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
html.v2 :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
html.v2 a { color: var(--accent); }

/* ---------- 위쪽 머리띠 ---------- */
html.v2 header { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 24px; }
html.v2 header h1 { font-size: 20px; font-weight: 700; letter-spacing: 0; }
html.v2 .chip { font-size: 14px; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
                background: var(--surface-2); color: var(--sub); border: 1px solid var(--line); }
html.v2 button.chip { min-height: 44px; }
html.v2 .chip.in { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
html.v2 .chip.out { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
html.v2 .chip.wait { background: var(--surface-2); color: var(--sub); border-color: var(--line); }      /* 다시 연결 중(2026-12-01) */
html.v2 .chip.practice { background: #EDE9FE; color: #5B21B6; border-color: #DDD6FE; }
html.v2 .banner { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: var(--r); font-size: 16px; padding: 12px 16px; }
html.v2 #meBtn { display: none; }
#whoName { display: none; }
html.v2 #whoName { display: inline-flex; gap: 4px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; }
html.v2 #whoName .n { display: inline-block; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
html.v2 #whoName:empty { display: none; }
@media (min-width: 641px) { html.v2 #meBtn { display: inline-flex; } html.v2 #whoBar { display: none; } }

/* ---------- 카드·글 ---------- */
html.v2 .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
html.v2 h2 { font-size: 20px; font-weight: 700; }
html.v2 .hint { font-size: 14px; color: var(--sub); margin-top: 6px; }
html.v2 label.f { font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
html.v2 .err { font-size: 16px; font-weight: 600; color: var(--bad); margin-top: 6px; }
html.v2 .err:empty { margin: 0; }
html.v2 .empty { font-size: 16px; color: var(--sub); }
html.v2 .note-ok { color: var(--ok); font-size: 14px; } html.v2 .note-warn { color: var(--warn); font-size: 14px; } html.v2 .note-bad { color: var(--bad); font-size: 14px; }

/* ---------- 입력 칸 ---------- */
html.v2 input[type=text], html.v2 input[type=password], html.v2 input[type=tel], html.v2 textarea,
html.v2 #loginBody input:not([type=radio]):not([type=checkbox]), html.v2 #onbBody input:not([type=radio]):not([type=checkbox]) {
  min-height: 52px; padding: 12px 16px; font-size: 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--input); color: var(--ink);
}
html.v2 input::placeholder { color: #64748B; }
html.v2 input[type=text]:focus, html.v2 input[type=password]:focus, html.v2 input[type=tel]:focus, html.v2 textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
html.v2 select.evf { min-height: 44px; font-size: 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--input); color: var(--ink); }
html.v2 input[type=checkbox], html.v2 input[type=radio] { accent-color: var(--accent); }

/* ---------- 단추 ---------- */
html.v2 button.main { min-height: 52px; padding: 12px 16px; font-size: 18px; font-weight: 700; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
html.v2 button.main:hover { background: var(--accent-press); }
html.v2 button.main:disabled { background: var(--surface-2); color: var(--sub); border: 1px solid var(--line); cursor: not-allowed; }
html.v2 button.ghost { min-height: 44px; padding: 8px 16px; font-size: 16px; font-weight: 600; color: var(--accent); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
html.v2 button.ghost:hover { background: var(--surface-2); }
html.v2 button.ghost.danger { color: var(--bad); border-color: var(--bad-line); }
html.v2 button.ghost:disabled { color: var(--sub); }
html.v2 .row { gap: 8px; }
html.v2 .peek { min-height: 40px; padding: 4px 12px; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card); color: var(--accent); }
html.v2 .spin { border-color: var(--accent-line); border-top-color: var(--accent); }

/* ---------- 탭(PC·태블릿) ---------- */
html.v2 .tabs { gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; }
html.v2 .tab { min-height: 44px; border: 0; border-radius: var(--r-sm); background: none; color: var(--sub); font-size: 16px; font-weight: 600; }
html.v2 .tab.on { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px var(--shadow); }

/* ---------- 회사 고르기 ---------- */
html.v2 .pick { min-height: 60px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); gap: 12px; }
html.v2 .pick.on { border-color: var(--accent); background: var(--sel); box-shadow: inset 0 0 0 1px var(--accent); }
html.v2 .pick input { width: 24px; height: 24px; }
html.v2 .pick small { font-size: 14px; color: var(--sub); }
html.v2 .sub-opts { margin: 8px 0 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; }
html.v2 .sub-opts label { min-height: 44px; margin-right: 16px; }
html.v2 .fee { font-size: 16px; color: var(--sub); }
html.v2 #rrnBox { border: 1px solid var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent); border-radius: var(--r) !important; background: var(--card); }

/* ---------- 작업 카드 ---------- */
html.v2 .job { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
html.v2 .job .nm { font-size: 18px; font-weight: 700; }
html.v2 .no { font-size: 14px; color: var(--sub); }
html.v2 .tag { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
html.v2 .st { font-size: 14px; font-weight: 700; padding: 4px 12px; border: 1px solid transparent; }
html.v2 .st.running { background: var(--accent-soft); color: var(--on-soft); border-color: var(--accent-line); }
html.v2 .st.done { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
html.v2 .st.ask { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
html.v2 .st.failed, html.v2 .st.orphan { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
html.v2 .st.ended, html.v2 .st.unregistered { background: var(--surface-2); color: var(--sub); border-color: var(--line); }
html.v2 .job .line { font-size: 16px; color: var(--sub); }
html.v2 .dots i { height: 8px; border-radius: 4px; background: var(--surface-2); }
html.v2 .dots i.success { background: #15803D; } html.v2 .dots i.running { background: var(--accent); } html.v2 .dots i.failed { background: var(--bad); }
html.v2 .ask { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 12px; }
html.v2 .ask p { font-size: 16px; color: var(--warn-ink); }
html.v2 .ask .detail { font-size: 14px; color: var(--warn-ink); }
html.v2 .ask button { min-height: 44px; margin: 8px 8px 0 0; padding: 8px 16px; font-size: 16px; border-radius: var(--r); background: var(--warn-strong); color: #fff; }
html.v2 .ask button.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
html.v2 details.steps { font-size: 14px; }
html.v2 details.steps summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); font-weight: 600; }

/* ---------- 창(팝업) ---------- */
html.v2 .modal { background: var(--shade); }
html.v2 .sheet { background: var(--card); color: var(--ink); border-radius: var(--r-lg); border: 1px solid var(--line); }
html.v2 .sheet h2 { font-size: 22px; }
html.v2 table.sum { font-size: 16px; }
html.v2 table.sum th { color: var(--sub); }
html.v2 table.sum td { border-bottom-color: var(--line); }
html.v2 #whoGate { background: var(--bg) !important; }
html.v2 #whoGate .sheet { box-shadow: 0 12px 32px var(--shadow); }
html.v2 #whoNames button { min-height: 48px; font-size: 16px; }
html.v2 .ev, html.v2 .stop { font-size: 16px; border-bottom-color: var(--line); }
html.v2 .ev .t, html.v2 .ev .m, html.v2 .stop .sub, html.v2 .stop .h .t { font-size: 14px; }
html.v2 .ev .lv, html.v2 .stop .k { font-size: 13px; }
html.v2 canvas#pad { border: 2px dashed var(--line-2); border-radius: var(--r); background: #fff; }      /* 서명 칸은 어두운 모양에서도 흰 종이 */
html.v2 #toast { background: var(--toast-bg); color: var(--toast-fg); font-size: 16px; border-radius: var(--r); }
html.v2 #askBar { background: var(--warn-strong); font-size: 16px; min-height: 48px; }

/* ---------- 내 정보 ---------- */
html.v2 .me-sec { margin-top: 20px; }
html.v2 .me-sec > b { display: block; font-size: 16px; color: var(--sub); margin-bottom: 4px; }
html.v2 .me-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
html.v2 .me-row:first-of-type { border-top: 0; }
html.v2 .me-row .grow { flex: 1; min-width: 0; }
html.v2 .me-row .grow small { display: block; font-size: 14px; color: var(--sub); }
html.v2 .me-row button { width: auto; margin: 0; flex: none; }
html.v2 .pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 600;
                background: var(--surface-2); color: var(--sub); border: 1px solid var(--line); white-space: nowrap; }
html.v2 .pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
html.v2 .pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
html.v2 .pill.admin { background: var(--accent-soft); color: var(--on-soft); border-color: var(--accent-line); }
#stepMe { display: none; }
html:not(.v2) .v2only { display: none !important; }
html:not(.v2) #meBtn, html:not(.v2) #botNav { display: none !important; }

/* ---------- 휴대폰: 아래 메뉴 4칸(접수 · 오늘 작업 · 동의 장부 · 내 정보) ---------- */
#botNav { display: none; }
@media (max-width: 640px) {
  html.v2 #botNav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
                    background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  html.v2 #botNav button { position: relative; border: 0; background: none; min-height: 60px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer;
                           display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  html.v2 #botNav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  html.v2 #botNav button[aria-current="page"] { color: var(--accent); }
  html.v2 #botNav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  html.v2 #botNav .cnt { position: absolute; top: 4px; left: calc(50% + 10px); min-width: 20px; padding: 2px 6px; border-radius: 999px; font-size: 13px; line-height: 1.2;
                         background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
  html.v2 #botNav .cnt:empty { display: none; }
  html.v2 main { padding: 12px 16px 96px; gap: 12px; }
  html.v2 .card { padding: 16px; border-radius: var(--r); }
  html.v2 .tabs { display: none; }
  html.v2 #whoBar { display: none !important; }
  html.v2 header { padding: 8px 16px; }
  html.v2 header h1 { font-size: 18px; }
  html.v2 #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.v2 body.signing #toast { bottom: auto; top: 10px; }
  /* 고른 메뉴의 칸만 보인다 */
  html.v2 body[data-nav="jobs"] #left { display: none; }
  html.v2 body:not([data-nav="jobs"]) #jobsCard { display: none; }
  html.v2 body[data-nav="jobs"] #jobsCard { display: block; }
}

/* 화면 코드(js) 안에 글자 크기를 직접 적어 둔 작은 단추·글 — 새 모양에서는 누르기 쉽게 키운다 */
html.v2 button.ghost[style*="font-size:12px"] { font-size: 14px !important; padding: 8px 12px !important; min-height: 44px; }
html.v2 label[style*="font-size:13px"] { font-size: 14px !important; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
html.v2 [style*="font-size:12px"]:not(button) { font-size: 14px !important; }
/* 창이 떠 있을 때 아래 알림이 창 맨 아래 단추를 가리지 않게 위로 */
html.v2 body:has(.modal.on) #toast { bottom: auto; top: 12px; }

/* 서명 화면(휴대폰 전체 화면): 어두운 모양에서도 글자가 보이게 — 바탕을 어두운 판으로, 서명 칸만 흰 종이 (2026-11-27 검사: 흰 바탕에 밝은 글자) */
html.v2 #stepSign.full { background: var(--card) !important; color: var(--ink); }
/* 로그인 상태 한 줄 요약은 휴대폰에서만(PC 는 회사별 표시가 다 보인다) */
@media (min-width: 641px) { html.v2 .chip.sum { display: none; } }

/* =========================================================
   2026-11-27 프로토타입 배치에 맞춤 — 들어가기·처음 등록·첫 설정(비밀번호·회사 로그인)은 휴대폰에서 한 화면 전체로
   ========================================================= */
html.v2 .v2no { display: none !important; }
html.v2 .pwbox { position: relative; }
html.v2 #suPhone { width: 100%; }
html.v2 .pwbox input { padding-right: 72px; }
html.v2 .pwbox .eye { position: absolute; right: 4px; top: 4px; height: 44px; min-width: 56px; border: 0; background: none; color: var(--accent); font-size: 16px; font-weight: 600; cursor: pointer; border-radius: 6px; }
html.v2 button.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; color: var(--accent); font-size: 16px; font-weight: 600; cursor: pointer; width: auto; margin: 0; }
html.v2 button.back svg, html.v2 .gate-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .gate-hero { text-align: center; margin: 8px 0 8px; }
html.v2 .gate-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; }
html.v2 .gate-ic svg { width: 28px; height: 28px; }
html.v2 .gate-hero h2 { margin: 16px 0 4px; font-size: 22px; }
html.v2 .gate-hero .hint { font-size: 16px; margin-top: 12px; }
html.v2 .gate-foot { text-align: center; margin-top: 8px; }
html.v2 .gate-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); font-weight: 600; text-decoration: none; font-size: 16px; }
html.v2 #whoGate.signup .gate-login { display: none; }
html.v2 #whoNames:empty { display: none !important; }
html.v2 .onb-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
html.v2 .onb-steps .pill.on { background: var(--accent-soft); color: var(--on-soft); border-color: var(--accent-line); }
@media (max-width: 640px) {
  html.v2 .modal.fullpage { background: var(--bg) !important; padding: 0; align-items: stretch; justify-content: stretch; }
  html.v2 .modal.fullpage > .sheet { width: 100% !important; max-width: none; max-height: none; min-height: 100%; height: 100%; overflow-y: auto; border: 0; border-radius: 0; box-shadow: none !important;
                                     background: var(--bg); padding: 16px 16px 0; display: flex; flex-direction: column; }
  html.v2 .modal.fullpage .gate-login, html.v2 .modal.fullpage #signupBox[style*="block"] { display: flex !important; flex-direction: column; flex: 1; }
  html.v2 #whoGate.signup .gate-login { display: none !important; }
  html.v2 .modal.fullpage #onbBody { display: flex; flex-direction: column; flex: 1; }
  html.v2 .modal.fullpage .gate-hero { margin-top: 40px; }
  html.v2 .modal.fullpage .acts-bottom { margin: auto -16px 0; position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  html.v2 .modal.fullpage .acts-bottom button.main { width: 100%; margin: 0; }
  html.v2 .modal.fullpage .acts-bottom + * { margin-top: 0; }
}

/* ---------- 2026-11-27 프로토타입 배치: 접수·고객 목록·고객 정보 ---------- */
html.v2 .ib { display: inline-flex; align-items: center; gap: 8px; }
html.v2 svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .subhd { margin: 0 0 12px; }
html.v2 .subhd h2 { margin: 4px 0 0; font-size: 22px; }
html.v2 .subhd .hint { margin-top: 2px; }
html.v2 .v2ph { display: none; }
html.v2 #rrnBox .subhd { display: none; }
/* 회사 아래 고르기(동의서/보장분석, PDF 저장만/프린트까지)는 나란히 고르는 단추로 */
html.v2 .sub-opts span[data-c] { display: flex; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; margin: 0 0 8px; }
html.v2 .sub-opts span[data-c][style*="none"] { display: none; }
html.v2 .sub-opts span[data-c] label { flex: 1; justify-content: center; text-align: center; margin: 0; min-height: 44px; display: flex; align-items: center; border-radius: var(--r-sm); color: var(--sub); font-weight: 600; cursor: pointer; }
html.v2 .sub-opts span[data-c] label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html.v2 .sub-opts span[data-c] label:has(input:checked) { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px var(--shadow); }
html.v2 .sub-opts span[data-c] label:has(input:focus-visible) { outline: 3px solid var(--focus); }
html.v2 .sub-opts { background: none; border: 0; padding: 0; }
/* 고를 것의 이름(할 일·결과)은 위에 작게, 고를 것이 하나뿐이면 단추가 아닌 글자로(2026-11-29) */
html.v2 .sub-opts .opt { margin: 0 0 12px; }
html.v2 .sub-opts .opt-lb { font-size: 14px; font-weight: 600; color: var(--sub); margin: 0 0 6px 2px; }
html.v2 .sub-opts .opt-one { font-size: 15px; color: var(--ink); padding: 0 2px; }
html.v2 .sub-opts .opt-one .opt-lb { display: inline; margin: 0 6px 0 0; }
html.v2 .sub-opts .opt span[data-c] { margin: 0; }
@media (max-width: 640px) {
  /* 위쪽: 화면 이름 + ○○ 님, 오른쪽에 로그인 표시 */
  html.v2 header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; background: var(--bg); border-bottom: 0; padding: 12px 16px 4px; }
  html.v2 header h1 { grid-column: 1; grid-row: 1; font-size: 22px; line-height: 1.3; }
  html.v2 header #whoName { grid-column: 1; grid-row: 2; font-weight: 400; }
  html.v2 header #chips { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  html.v2 header #meBtn, html.v2 header #whoBar { display: none !important; }
  /* 접수 칸은 카드 없이 바탕에 바로 */
  html.v2 #left { background: none; border: 0; padding: 0; box-shadow: none; }
  html.v2 #jobsCard { background: none; border: 0; padding: 0; box-shadow: none; }
  html.v2 #jobsCard > h2 { display: none; }
  html.v2 .v2ph { display: block; }
  html.v2 #rrnBox .subhd { display: block; }
  /* 아래에 붙는 큰 단추 (아래 메뉴 바로 위) */
  html.v2 body[data-nav="new"] #btnLookup, html.v2 body[data-nav="new"] #lookupBox > button.main, html.v2 body[data-nav="new"] #btnNext {
    position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 6px 16px var(--shadow); }
  /* 고객 목록·고객 정보는 따로 된 화면처럼 */
  html.v2 body[data-sub="list"] #stepForm > :not(#lookupBox), html.v2 body[data-sub="cust"] #stepForm > :not(#rrnBox) { display: none !important; }
  html.v2 body[data-nav="new"][data-sub="list"] header h1, html.v2 body[data-nav="new"][data-sub="list"] header #whoName,
  html.v2 body[data-nav="new"][data-sub="cust"] header h1, html.v2 body[data-nav="new"][data-sub="cust"] header #whoName { display: none; }
  html.v2 body[data-sub="cust"] #rrnBox { border: 0 !important; box-shadow: none; padding: 0 !important; margin-top: 0 !important; background: none; }
  html.v2 body[data-sub="cust"] #rrnWho { display: none; }
  html.v2 body[data-sub="list"] #lookupBox { margin-top: 0 !important; }
}
/* 오늘 작업 묶음 제목·카드 (프로토타입 6-1) */
html.v2 .jgroup { font-size: 16px; font-weight: 700; color: var(--sub); margin: 16px 0 8px; }
html.v2 .jgroup:first-child { margin-top: 4px; }
html.v2 .job .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.v2 .job .top .tag { order: -1; }
html.v2 .job .top .no { margin-left: auto; }
html.v2 .job .top .st { order: 5; flex-basis: auto; }
html.v2 .job.askc, html.v2 .job:has(.ask) { border-color: var(--warn-line); }
html.v2 .ask button { width: 100%; margin: 8px 0 0; min-height: 52px; font-size: 18px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; }
html.v2 .ask button.alt { background: var(--card); color: var(--accent); border-color: var(--line-2); font-weight: 700; }
html.v2 .ask button.ghost { width: auto; min-height: 44px; font-size: 14px; background: var(--card); color: var(--accent); border-color: var(--line-2); }
/* 내 정보 묶음 카드 (프로토타입 7-1·7-2) */
html.v2 .me-t { font-size: 16px; font-weight: 700; color: var(--sub); margin: 16px 0 8px; }
html.v2 .me-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
html.v2 .me-card .me-row:first-child { border-top: 0; }
html.v2 a.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; font-weight: 600; flex: none; }
html.v2 .me-out { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 16px 0 0; border: 0; background: none; color: var(--sub); font-size: 18px; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  html.v2 body[data-nav="me"][data-mesub="pw"] header h1, html.v2 body[data-nav="me"][data-mesub="pw"] header #whoName { display: none; }
  html.v2 #mpGo { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); margin-top: 16px; }
}
html.v2 .job .top::before { content: ""; order: 5; flex-basis: 100%; height: 0; }
html.v2 .job .top .st { order: 6; margin: 0; align-self: flex-start; line-height: 1.4; padding: 2px 10px; min-height: 0; border-radius: 999px; }
/* 확인 필요 띠: 바탕에 얹힌 부드러운 노란 띠(프로토타입 4-1·6-1) */
html.v2 #askBar { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: var(--r); font-weight: 600; text-align: left; padding: 8px 16px; }
@media (max-width: 640px) { html.v2 #askBar { width: auto; margin: 8px 16px 0; } }

/* =========================================================
   2026-11-29 갤럭시: "로그인 필요 N곳"을 누르면 회사별 표시가 제목·이름 위로 겹쳐 보이던 것 →
   제목 아래 한 칸을 통째로 쓰는 목록(회사마다 한 줄: 왼쪽 이름, 오른쪽 상태)으로 펼친다
   ========================================================= */
@media (max-width: 640px) {
  html.v2 header #chips.open { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; display: flex; flex-direction: column; gap: 0;
    margin: 10px 0 4px; padding: 4px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 4px 12px var(--shadow); }
  html.v2 header #chips.open .chip { display: flex; width: 100%; min-height: 48px; margin: 0; padding: 8px 14px; border: 0; border-radius: 0; background: none;
    color: var(--ink); font-size: 15px; justify-content: space-between; gap: 12px; text-align: left; }
  html.v2 header #chips.open .chip + .chip { border-top: 1px solid var(--line); }
  html.v2 header #chips.open .chip .cn { font-weight: 600; }
  html.v2 header #chips.open .chip.site .cs { flex: none; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--sub); background: var(--surface-2); border: 1px solid var(--line); }
  html.v2 header #chips.open .chip.site.in .cs { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
  html.v2 header #chips.open .chip.site:not(.in):not(.wait) .cs { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
  /* 요약(닫기) 줄: 목록 맨 위, 오른쪽에 ▴ */
  html.v2 header #chips.open .chip.sum { color: var(--sub); font-size: 14px; min-height: 44px; }
  html.v2 header #chips.open .chip.practice { color: #5B21B6; font-size: 14px; }
}
/* 아래에 붙는 큰 단추를 누른 뒤 테두리가 두 겹으로 보이던 것(포커스 표시가 단추 밖에 한 겹 더) → 표시를 단추 안쪽 흰 선으로 */
html.v2 button.main:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -6px; }
