/* 명품휠스토리 수원고색점 관리자 — 휴대폰 우선, 넓은 화면은 왼쪽 메뉴 */
:root {
  --bg: #ffffff;
  --bg-2: #fafbfc;
  --panel: #ffffff;
  --panel-2: #f5f6f8;
  --panel-3: #eceef1;
  --line: #e5e7eb;
  --line-2: #d3d7dd;
  --text: #111214;
  --muted: #5d646e;
  --dim: #8a919b;
  --accent: #ff7a1e;
  --accent-2: #ffb37a;
  --accent-ink: #1a0c02;
  --accent-soft: rgba(255, 122, 30, .1);
  --ok: #129a4c;
  --ok-soft: rgba(18, 154, 76, .1);
  --info: #2563d9;
  --info-soft: rgba(37, 99, 217, .09);
  --warn: #b87800;
  --warn-soft: rgba(245, 166, 35, .13);
  --danger: #dc3a3a;
  --danger-soft: rgba(220, 58, 58, .09);
  --metal: linear-gradient(100deg, #f6f7f8 0%, #a7acb2 38%, #eef0f2 52%, #8c9197 70%, #dfe2e5 100%);
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --num: "Archivo", "Pretendard Variable", sans-serif;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); letter-spacing: -.015em; word-break: keep-all; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 로그인 ───────────────────────────── */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; left: 50%; top: -420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,122,30,.22), rgba(255,122,30,0)); pointer-events: none; }
.login::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px); background-size: 22px 22px; mask: linear-gradient(#000, transparent 70%); pointer-events: none; }
.login__box { position: relative; z-index: 1; width: min(400px, 100%); text-align: center; }
.login__wheel { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg, #2a2b2f, #8c9197, #2a2b2f, #cfd2d6, #2a2b2f, #8c9197, #2a2b2f); box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line-2), 0 30px 80px rgba(255,122,30,.25); animation: spin 14s linear infinite; }
.login__wheel::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb37a, #ff7a1e 55%, #b34d06); box-shadow: inset 0 0 0 3px rgba(0,0,0,.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-word { font: 700 13px var(--num); letter-spacing: .32em; color: var(--text); }
.login h1 { margin: 10px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.login p { margin: 0 0 28px; color: var(--muted); }
.login .btn { width: 100%; height: 56px; font-size: 16px; }
.login__g { width: 20px; height: 20px; }
.login__note { margin-top: 18px; font-size: 13px; color: var(--dim); }
.login__err { margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 600; text-align: left; }

/* ── 버튼 ───────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; transition: transform .15s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:hover { border-color: #b4bac3; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff8a38; border-color: #ff8a38; }
.btn--white { background: #fff; border-color: var(--line-2); color: #111; box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; border-color: rgba(255,95,95,.35); color: var(--danger); }
.btn--sm { height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.btn--lg { height: 56px; font-size: 16px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.icon-btn svg { width: 20px; height: 20px; }

/* ── 셸 ───────────────────────────── */
.shell { min-height: 100svh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.topbar__brand { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
.topbar__brand small { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.pill-demo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 600; border: 0; }
.pill-demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; }
.body, .dash, .dash__l, .dash__r, .dash > *, .tl__body, .col, .card, .gauge__txt { min-width: 0; }
.main { padding: 20px 16px calc(var(--tab-h) + var(--safe-b) + 96px); max-width: 1180px; margin: 0 auto; }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.95); backdrop-filter: blur(16px) saturate(1.3); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--dim); font-size: 11px; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.is-on { color: var(--text); }
.tabbar a.is-on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar .dot, .side a .dot { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 10px/17px var(--num); text-align: center; }
.side { display: none; }

.fab { position: fixed; z-index: 41; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); height: 56px; padding: 0 22px 0 18px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 34px rgba(255,122,30,.35), 0 2px 0 rgba(255,255,255,.25) inset; transition: transform .2s var(--ease); }
.fab:active { transform: scale(.95); }
.fab svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100svh; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg-2); }
  .side__brand { padding: 4px 10px 22px; line-height: 1.2; }
  .side__brand b { display: block; margin-top: 6px; font-size: 16px; }
  .side a { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
  .side a svg { width: 20px; height: 20px; }
  .side a:hover { background: var(--panel); color: var(--text); }
  .side a.is-on { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
  .side a .dot { position: static; margin-left: auto; }
  .side__foot { margin-top: auto; display: grid; gap: 8px; }
  .side__site { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-size: 13px; color: var(--muted); }
  .side__site:hover { color: var(--text); }
  .side__site svg { width: 18px; height: 18px; }
  .tabbar { display: none; }
  .topbar { padding: 0 28px; }
  .topbar__brand { visibility: hidden; }
  .main { padding: 28px 28px 120px; }
  .fab { bottom: 28px; right: 28px; }
}

/* ── 페이지 머리 ───────────────────────────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.ph__eyebrow { font: 600 12px var(--num); letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.ph h1 { margin: 4px 0 0; font-size: 26px; letter-spacing: -.035em; line-height: 1.25; }
.ph p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) { .ph h1 { font-size: 32px; } }

.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.sec-title a, .sec-title button { font-size: 13px; color: var(--muted); font-weight: 500; text-decoration: none; background: none; border: 0; padding: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }

/* 예시 데이터 안내 */
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--warn-soft); color: #6b4a00; font-size: 13px; }
.notice b { color: var(--warn); }
.notice button { margin-left: auto; flex: none; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(184,120,0,.35); background: #fff; color: var(--warn); font-size: 12px; font-weight: 600; }

/* ── 오늘: 계기판 ───────────────────────────── */
.dash { display: grid; gap: 14px; }
.gauge { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 22px; border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,122,30,.12), rgba(255,122,30,0) 55%), var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.gauge::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed rgba(0,0,0,.07); }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(135deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: #eceef1; }
.ring .fg { stroke: url(#rg); transition: stroke-dashoffset 1.2s var(--ease); }
.ring__in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__in b { font: 700 44px/1 var(--num); letter-spacing: -.03em; }
.ring__in span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.gauge__txt h2 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.gauge__txt .big { margin: 2px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.gauge__txt .big em { font-style: normal; color: var(--accent); }
.gauge__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--panel-3); font-size: 12px; color: var(--muted); font-weight: 600; }
.tag b { color: var(--text); font-family: var(--num); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.04); color: inherit; text-decoration: none; display: block; }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; margin-top: 6px; font: 700 28px/1 var(--num); }
.kpi small { font: 600 13px var(--sans); color: var(--muted); margin-left: 2px; }
.kpi--in b { color: var(--accent); }
.kpi--book b { color: var(--info); }
.kpi--lead b { color: var(--warn); }

.photo-cta { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,122,30,.35); background: linear-gradient(90deg, rgba(255,122,30,.14), rgba(255,122,30,.03)); }
.photo-cta__ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.photo-cta__ic svg { width: 24px; height: 24px; }
.photo-cta b { display: block; font-size: 15px; }
.photo-cta span { font-size: 13px; color: var(--muted); }
.photo-cta .btn { margin-left: auto; }

/* 타임라인 */
.tl { position: relative; display: grid; gap: 2px; }
.tl__row { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tl__time { padding-top: 14px; font: 600 14px var(--num); color: var(--muted); text-align: right; }
.tl__row.is-now .tl__time { color: var(--accent); }
.tl__body { position: relative; padding-left: 18px; padding-bottom: 8px; }
.tl__body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl__body::after { content: ""; position: absolute; left: -4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.tl__row.tl--in .tl__body::after { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl__row.tl--done .tl__body::after { border-color: var(--ok); background: var(--ok); }
.tl__row.tl--booked .tl__body::after { border-color: var(--info); }
.tl__now { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; margin: 2px 0; }
.tl__now span { font: 700 11px var(--num); color: var(--accent); text-align: right; letter-spacing: .08em; }
.tl__now i { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }

/* 작업 카드 줄 */
.job { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); text-align: left; transition: border-color .2s, background .2s; }
.job:hover { border-color: var(--line-2); background: var(--panel-2); }
.job__logo { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #ffffff, #f0f1f4); border: 1px solid var(--line-2); color: #23252a; }
.job__logo svg { width: 24px; height: 24px; fill: currentColor; }
.mono { font: 700 15px var(--sans); color: #23252a; }
.job__main { min-width: 0; flex: 1; display: block; }
.job__car { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.job__car span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.job__time { font: 600 13px var(--num); color: var(--muted); }
.job__act { flex: none; }
.st { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-booked { color: var(--info); background: var(--info-soft); }
.st-in { color: var(--accent); background: var(--accent-soft); }
.st-done { color: var(--ok); background: var(--ok-soft); }
.st-noshow, .st-cancel { color: var(--dim); background: var(--panel-3); }
.st-photo { color: var(--warn); background: var(--warn-soft); }
.st-photo::before { display: none; }
.list { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.empty { padding: 34px 16px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 16px; font-size: 14px; }

/* 주간 막대 */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; padding-top: 18px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 34px; min-height: 4px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #d6dae0, #c5cad2); transition: height 1s var(--ease); position: relative; }
.bar b { font: 600 12px var(--num); color: var(--muted); }
.bar span { font-size: 12px; color: var(--dim); font-weight: 600; }
.bar.is-today i { background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 24px rgba(255,122,30,.3); }
.bar.is-today b, .bar.is-today span { color: var(--text); }
.week-sum { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.week-sum b { color: var(--text); font: 700 18px var(--num); margin-right: 3px; }
.up { color: var(--ok); font-weight: 700; }
.down { color: var(--danger); font-weight: 700; }

.month { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.month div { background: var(--panel); padding: 14px; }
.month span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.month b { font: 700 24px var(--num); }

@media (min-width: 960px) {
  .dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .dash__l, .dash__r { display: grid; gap: 14px; }
  .gauge { padding: 28px; }
  .ring { width: 156px; height: 156px; }
  .ring__in b { font-size: 52px; }
}

/* ── 세그먼트 ───────────────────────────── */
.seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.seg button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.seg button em { font: 700 12px var(--num); font-style: normal; color: var(--dim); }
.seg button.is-on em { color: var(--accent); }
.seg--accent button.is-on { background: var(--accent); color: var(--accent-ink); }
.seg--accent button.is-on em { color: var(--accent-ink); }
.seg--full { display: flex; }
.seg--full button { flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }

/* ── 예약 ───────────────────────────── */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.day span { font-size: 12px; color: var(--dim); font-weight: 600; }
.day b { font: 700 19px var(--num); }
.day i { height: 6px; display: flex; gap: 3px; margin-top: 3px; }
.day i u { width: 5px; height: 5px; border-radius: 50%; background: var(--info); }
.day.is-today b { color: var(--accent); }
.day.is-on { background: #111214; border-color: #111214; color: #fff; }
.day.is-on span { color: #a5abb3; }
.day.is-on b { color: #fff; }
.day.is-off { opacity: .45; }
.week-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.week-nav b { font-size: 16px; margin-right: auto; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__h { text-align: center; font-size: 12px; color: var(--dim); padding: 6px 0; font-weight: 600; }
.cal__d { aspect-ratio: 1 / 1.05; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 6px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.cal__d b { font: 600 13px var(--num); }
.cal__d em { align-self: flex-end; font: 700 11px var(--num); font-style: normal; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--info-soft); color: var(--info); display: grid; place-items: center; }
.cal__d.is-out { opacity: .3; }
.cal__d.is-today { border-color: var(--accent); }
.cal__d.is-on { background: #111214; color: #fff; border-color: #111214; }

/* ── 작업 칸반 ───────────────────────────── */
.kanban { display: grid; gap: 18px; }
.col__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.col__h em { font: 700 13px var(--num); font-style: normal; color: var(--dim); }
@media (min-width: 960px) {
  .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .kanban .col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 14px; min-height: 340px; }
  .jobs-seg { display: none !important; }
  .kanban .col[hidden] { display: block !important; }
}

/* ── 사례 ───────────────────────────── */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wk { border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.05); display: flex; flex-direction: column; }
.wk__img { position: relative; aspect-ratio: 4 / 3; background: #0f0f10; overflow: hidden; }
.wk__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk__img .b { clip-path: inset(0 50% 0 0); }
.wk__img::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.6); }
.wk__badges { position: absolute; z-index: 1; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; }
.wk__badges .st { backdrop-filter: blur(8px); background: rgba(255,255,255,.92); }
.wk__badges .pin { margin-left: auto; color: var(--accent); }
.wk__body { padding: 14px; display: flex; align-items: center; gap: 10px; }
.wk__body .job__logo { width: 38px; height: 38px; border-radius: 11px; }
.wk__body .job__logo svg { width: 20px; height: 20px; }
.wk__txt { flex: 1; min-width: 0; }
.wk__txt b { display: block; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk__txt span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk__foot { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; }
.wk__foot .sw { margin-right: auto; }
.wk.is-off .wk__img { filter: grayscale(1) brightness(.5); }
.wk-sec { margin: 26px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.wk-sec h2 { margin: 0; font-size: 17px; }
.wk-sec span { font-size: 13px; color: var(--dim); }

/* 스위치 */
.sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.sw input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--panel-3); border: 1px solid var(--line-2); position: relative; transition: background .2s; cursor: pointer; margin: 0; flex: none; }
.sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #8a8e94; transition: transform .25s var(--ease), background .2s; }
.sw input:checked { background: var(--accent); border-color: var(--accent); }
.sw input:checked::after { transform: translateX(18px); background: #fff; }
.sw input:checked + span { color: var(--text); }

/* ── 문의 ───────────────────────────── */
.lead { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); width: 100%; text-align: left; }
.lead.is-new { border-color: rgba(255,194,74,.4); }
.lead__top { display: flex; align-items: center; gap: 8px; }
.lead__top b { font-size: 15px; }
.lead__top time { margin-left: auto; font: 500 12px var(--num); color: var(--dim); }
.lead__car { font-size: 14px; color: #2a2d33; }
.lead__car, .lead__msg { display: block; min-width: 0; }
.lead__msg { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-new { color: var(--warn); background: var(--warn-soft); }
.st-called { color: var(--info); background: var(--info-soft); }
.st-booked2 { color: var(--ok); background: var(--ok-soft); }
.st-closed { color: var(--dim); background: var(--panel-3); }

/* ── 시트 (휴대폰: 아래에서 / PC: 오른쪽에서) ───────────────────────────── */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(17,18,20,.42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 94svh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .38s var(--ease); }
.sheet.is-open { transform: none; }
.sheet-bg.is-open { opacity: 1; }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 10px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px; flex: none; }
.sheet__head h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; margin-right: auto; }
.sheet__body { padding: 4px 18px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__foot { display: flex; gap: 8px; padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg-2); flex: none; }
.sheet__foot .btn { flex: 1; }
.sheet--full { top: 0; max-height: none; border-radius: 0; }
@media (min-width: 960px) {
  .sheet { left: auto; top: 0; bottom: 0; width: 520px; max-height: none; border-radius: 24px 0 0 24px; border: 1px solid var(--line-2); border-right: 0; transform: translateX(100%); }
  .sheet__grip { display: none; }
  .sheet__head { padding: 22px 24px 14px; }
  .sheet__body { padding: 4px 24px 24px; }
  .sheet__foot { padding: 14px 24px; }
  .sheet--full { width: min(980px, 92vw); }
}

/* 양식 */
.field { margin-bottom: 18px; }
.field > label, .field > .lbl { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #2a2d33; }
.field > label small, .field > .lbl small { font-weight: 500; color: var(--dim); }
.inp { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.inp { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 14px; color: #33363c; display: inline-flex; align-items: center; gap: 6px; }
.chip.is-on { background: #111214; border-color: #111214; color: #fff; }
.chip--num { min-width: 52px; justify-content: center; font-family: var(--num); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }
.pick-brand { display: flex; align-items: center; gap: 12px; width: 100%; height: 62px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; }
.pick-brand .job__logo { width: 40px; height: 40px; }
.pick-brand b { display: block; font-size: 15px; }
.pick-brand span { font-size: 12px; color: var(--muted); }
.pick-brand > svg { margin-left: auto; width: 18px; height: 18px; color: var(--dim); }
.pick-brand.is-empty b { color: var(--muted); font-weight: 600; }

/* 브랜드 고르기 */
.bp-search { position: relative; margin-bottom: 12px; }
.bp-search svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--dim); }
.bp-search .inp { padding-left: 44px; }
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 420px) { .bp-grid { grid-template-columns: repeat(4, 1fr); } }
.bp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 1 / .92; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 600; color: #2a2d33; padding: 6px; transition: border-color .2s, transform .15s; }
.bp-tile:active { transform: scale(.96); }
.bp-tile svg { width: 30px; height: 30px; fill: #1d1f23; }
.bp-tile .mono-lg { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #6b717a; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #1d1f23; }
.bp-tile.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bp-note { margin-top: 14px; font-size: 11px; color: var(--dim); }

/* 작업 상세 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 18px; }
.steps div { position: relative; padding: 10px 0 0; border-top: 3px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--dim); }
.steps div small { display: block; font: 500 11px var(--num); color: var(--dim); margin-top: 2px; }
.steps div.is-done { border-color: var(--ok); color: var(--ok); }
.steps div.is-cur { border-color: var(--accent); color: var(--accent); }
.dl { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; margin: 0 0 18px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.dl a { color: var(--accent); text-decoration: none; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.hist li { display: flex; gap: 10px; }
.hist time { font-family: var(--num); color: var(--dim); flex: none; width: 92px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }

/* ── 사진 올리기 ───────────────────────────── */
.wz-steps { display: flex; gap: 6px; padding: 0 18px 12px; flex: none; }
.wz-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.wz-steps i.is-on { background: var(--accent); }
@media (min-width: 960px) { .wz-steps { padding: 0 24px 14px; } }
.wz-h { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.03em; }
.wz-p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.drop { display: block; position: relative; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--panel); margin-bottom: 14px; transition: border-color .2s, background .2s; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.drop__h b { font-size: 15px; }
.drop__h .tagx { font: 700 11px var(--num); letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--panel-3); }
.drop__h .tagx.a { color: var(--accent); }
.drop__h label { margin-left: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.th { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #0f0f10; border: 2px solid transparent; padding: 0; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.is-rep { border-color: var(--accent); }
.th.is-rep::after { content: "대표"; position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; }
.th__x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.add-ph { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; gap: 2px; }
.add-ph svg { width: 22px; height: 22px; margin: 0 auto; }
.add-ph:hover { border-color: var(--accent); color: var(--accent); }
.drop__empty { display: grid; place-items: center; gap: 6px; padding: 26px 10px; text-align: center; color: var(--muted); cursor: pointer; font-size: 14px; }
.drop__empty svg { width: 34px; height: 34px; color: var(--dim); }
.drop__empty b { color: var(--text); }
.proc { font-size: 13px; color: var(--accent); margin-top: 8px; }

.mini-ba { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0f0f10; user-select: none; touch-action: pan-y; margin-bottom: 16px; }
.mini-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mini-ba .b { clip-path: inset(0 50% 0 0); }
.mini-ba .h { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.mini-ba .h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.mini-ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.mini-ba .t { position: absolute; top: 12px; font: 700 11px var(--num); padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.6); pointer-events: none; }
.mini-ba .t.l { left: 12px; } .mini-ba .t.r { right: 12px; color: var(--accent); }
.pick-row { margin-bottom: 14px; }
.pick-row .lbl { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #2a2d33; }
.pick-row .thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

.blur-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #0f0f10; touch-action: none; margin-bottom: 12px; }
.blur-wrap canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.blur-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.blur-tools .lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.blur-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.blur-tabs button { flex: none; width: 76px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #0f0f10; position: relative; }
.blur-tabs button img { width: 100%; height: 100%; object-fit: cover; }
.blur-tabs button.is-on { border-color: var(--accent); }
.blur-tabs button.is-done::after { content: "✓"; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; margin-bottom: 10px; font-size: 14px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); margin: 0; display: grid; place-items: center; transition: all .2s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.check.is-req:not(:has(input:checked)) { border-color: rgba(255,122,30,.4); }

.preview-cap { padding: 12px 14px; border-radius: 14px; background: #0b0b0c; border: 1px solid #0b0b0c; font-size: 14px; color: #9da1a8; margin-bottom: 18px; }
.preview-cap small { display: block; font: 700 10px var(--num); letter-spacing: .14em; color: #6b7078; margin-bottom: 4px; }
.preview-cap b { color: #fff; margin-right: 8px; }

.done-screen { text-align: center; padding: 30px 6px 10px; }
.done-screen .big-ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease); }
.done-screen .big-ok svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.done-screen h3 { margin: 0 0 6px; font-size: 22px; }
.done-screen p { margin: 0 0 22px; color: var(--muted); }
.done-screen .mini-ba { max-width: 460px; margin: 0 auto 20px; }

/* 설정 */
.set-sec { margin-bottom: 26px; }
.set-sec h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.staff { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.staff b { display: block; font-size: 14px; }
.staff span { font-size: 12px; color: var(--muted); }
.staff .st { margin-left: auto; }

/* 토스트 */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 86px); transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 14px; background: #111214; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px rgba(16,24,40,.25); opacity: 0; pointer-events: none; transition: all .3s var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ── Firebase 연결 후 추가 (연결 표시·경고·손님 찾기·입고 사진·안내 촬영·설정) ── */
.net { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; border: 0; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(18,154,76,.18); }
.net.is-off { background: var(--warn-soft); color: var(--warn); }
.net.is-off i { box-shadow: none; }
.warn-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff4e8; border-bottom: 1px solid #ffd9b8; color: #7a3b00; font-size: 13px; }
.warn-bar[hidden] { display: none; }
.warn-bar b { color: #c4581a; }
.warn-bar button { margin-left: auto; flex: none; height: 32px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.login__keep { text-align: left; margin: 2px 0 12px; }
.find { margin-bottom: 14px; }
.find .inp { height: 48px; }
.prev { margin: -4px 0 16px; padding: 12px; border-radius: 14px; background: var(--info-soft); }
.prev > b { display: block; font-size: 13px; color: var(--info); margin-bottom: 8px; }
.prev button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; margin-top: 6px; }
.prev button > span { flex: 1; min-width: 0; }
.prev button > span b { display: block; font-size: 14px; }
.prev button > span span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev button em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--info); flex: none; }
.pre-ph { margin-bottom: 18px; padding: 14px; border-radius: 16px; background: var(--panel-2); }
.pre-ph__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.pre-ph__h b { font-size: 14px; }
.pre-ph__h span { font-size: 12px; color: var(--muted); }
.pre-ph .add-ph { background: #fff; }
.shot-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shot-intro > div > b { display: block; }
.shot-intro span { font-size: 13px; color: var(--muted); }
.shot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.shot-btn { display: grid; justify-items: center; gap: 4px; padding: 20px 10px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; text-align: center; }
.shot-btn svg { width: 30px; height: 30px; }
.shot-btn b { font-size: 15px; }
.shot-btn span { font-size: 12px; color: var(--muted); }
.shot-btn--main { background: var(--accent); border-color: var(--accent); color: #fff; }
.shot-btn--main span { color: rgba(255,255,255,.85); }
.guide-btn { margin-top: 10px; gap: 8px; }
.guide-btn small { font-weight: 500; color: var(--muted); font-size: 12px; }
.gcam { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.gcam video, .gcam__ref { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcam__ref { opacity: .4; pointer-events: none; }
.gcam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.gcam__flash.is-on { animation: gflash .35s ease-out; }
@keyframes gflash { from { opacity: .85; } to { opacity: 0; } }
.gcam__tools { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.gcam__tools input { flex: 1; accent-color: var(--accent); }
.howto { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.howto li { margin: 4px 0; }
.howto b { color: var(--text); }
.row-inp { display: flex; gap: 8px; }
.row-inp .inp { flex: 1; min-width: 0; }
.row-inp .btn { flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
