/* 가온 검수 리포트: 중고차 검수 결과 고객용 모바일 리포트 시연 (carcheck) */

.cc {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F6F1EA;
  --text: #2A1F18;
  --muted: #7A6C60;
  --line: #E6DED3;
  --line-strong: #CDBFAF;
  --primary: #6B3F1D;
  --primary-press: #573216;
  --primary-soft: #F2E9E0;
  --accent: #0FA3B1;
  --accent-ink: #0A7480;
  --accent-soft: #E1F4F6;
  --ok: #2E8B57;
  --ok-ink: #226B43;
  --ok-soft: #E6F3EC;
  --warn: #D98A00;
  --warn-soft: #FCEFD3;
  --danger: #C0392B;
  --danger-soft: #FAE4E1;
  --num: "Outfit", "Pretendard Variable", sans-serif;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(42, 31, 24, .06), 0 6px 18px rgba(42, 31, 24, .06);
}

*, *::before, *::after { box-sizing: border-box; }
.cc {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.cc) :where(p, h1, h2, h3, h4, ol, ul, dl, dd, figure) { margin: 0; }
:where(.cc) :where(ol, ul) { padding: 0; list-style: none; }
:where(.cc) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.cc [hidden] { display: none !important; }
.cc :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc a { color: var(--accent-ink); }
.cc-num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.cc-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.cc-assume { font-size: 12px; color: var(--muted); }
.cc-assume b { display: inline-block; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 0 8px; margin-right: 4px; }

/* ---------- 버튼 ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text) !important;
  cursor: pointer; white-space: nowrap;
}
.cc-btn:hover { background: var(--surface-2); }
.cc-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.cc-btn--primary:hover { background: var(--primary-press); }
.cc-btn--ghost { background: transparent; }
.cc-btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.cc-btn--block { width: 100%; }
.cc-btn--danger { color: var(--danger) !important; border-color: #E5B9B3; }
.cc-btn[disabled], .cc-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.cc-icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
}

/* ---------- 안내 띠·머리말 ---------- */
.cc-band {
  height: 28px; line-height: 28px; text-align: center; padding: 0 16px;
  font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden;
}
.cc-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.cc-head__inner { max-width: 1168px; margin: 0 auto; padding: 10px 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-head--slim .cc-head__inner { padding: 8px 16px; max-width: 720px; }
.cc-slim__label { font-size: 13px; color: var(--muted); }
.cc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; min-width: 0; }
.cc-brand__mark { width: 30px; height: 30px; flex: none; }
.cc-brand__name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.cc-brand__sub { font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); white-space: nowrap; }
.cc-nav { overflow-x: auto; scrollbar-width: none; }
.cc-nav::-webkit-scrollbar { display: none; }
.cc-nav__inner { max-width: 1168px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; }
.cc-nav__item {
  flex: none; padding: 10px 12px 11px; font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--muted) !important; border-bottom: 3px solid transparent;
}
.cc-nav__item.is-on { color: var(--primary) !important; border-bottom-color: var(--primary); }

.cc-main { max-width: 1168px; margin: 0 auto; padding: 24px 24px 40px; }
.cc--report .cc-main { max-width: 560px; padding: 0 0 24px; }

/* ---------- 공고 대응표·알림 ---------- */
.cc-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--primary); background: var(--surface); color: var(--primary);
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer;
}
.cc--inspect .cc-fab { bottom: 96px; }
.cc-dialog {
  width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 0; border-radius: var(--r); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.cc-dialog::backdrop { background: rgba(42, 31, 24, .45); }
.cc-dialog--sm { width: min(400px, calc(100% - 32px)); }
.cc-dialog__body { padding: 20px; display: grid; gap: 14px; }
.cc-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-dialog__title { font-size: 22px; letter-spacing: -.02em; }
.cc-dialog__sub { font-size: 15px; margin-top: 4px; }
.cc-dialog__foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.cc-map { display: grid; gap: 6px; }
.cc-map li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.cc-map__need { font-size: 13px; color: var(--muted); }
.cc-map__show { font-size: 15px; font-weight: 600; text-decoration: none; }
.cc-prio { display: grid; gap: 6px; }
.cc-prio li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.cc-prio b { font-size: 13px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; text-align: center; padding: 2px 0; }
.cc-prio small { display: block; color: var(--muted); font-size: 13px; }
.cc-info { font-size: 15px; }
.cc-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: #fff; font-size: 15px; box-shadow: var(--shadow);
}
.cc-toast[data-tone="ok"] { background: var(--ok-ink); }
.cc-toast[data-tone="warn"] { background: #5A3A00; }
.cc .demo-notice { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 16px 80px; }
.cc--inspect .demo-notice { padding-bottom: 150px; }

/* ---------- 공통 카드·배지·토글 ---------- */
.cc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cc-card__h { font-size: 17px; letter-spacing: -.01em; }
.cc-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); background: var(--surface);
}
.cc-pill.is-normal, .cc-pill.is-good, .cc-pill.is-ok { color: var(--ok-ink); background: var(--ok-soft); border-color: #BFE0CC; }
.cc-pill.is-repaint, .cc-pill.is-caution { color: var(--text); background: var(--warn); border-color: var(--warn); }
.cc-pill.is-sheet, .cc-pill.is-bad, .cc-pill.is-fail { color: var(--danger); background: var(--danger-soft); border-color: #EDBDB6; }
.cc-pill.is-none { color: var(--muted); background: var(--surface-2); border-style: dashed; }
.cc-pill.is-info { color: var(--accent-ink); background: var(--accent-soft); border-color: #B5E3E8; }
.cc-pill.is-brand { color: var(--primary); background: var(--primary-soft); border-color: #E2CFBE; }

.cc-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: var(--line-strong); transition: background .2s; }
.cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cc-switch input:checked + .cc-switch__track { background: var(--primary); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-switch__text { font-size: 15px; font-weight: 600; }
.cc-switch__text small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---------- 차체 도면(시그니처) ---------- */
.cc-car { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.cc-car__svg { display: block; width: 100%; height: auto; }
.cc-chip {
  position: absolute; transform: translate(-50%, -50%);
  width: 78px; min-height: 52px; padding: 4px 2px 5px; display: grid; justify-items: center; gap: 0;
  border-radius: 14px; border: 1.5px solid var(--ok); background: var(--surface);
  cursor: pointer; line-height: 1.15; box-shadow: 0 1px 3px rgba(42,31,24,.12);
}
.cc-chip__name { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cc-chip__val b { font-family: var(--num); font-size: 16px; font-weight: 700; }
.cc-chip__val small { font-size: 10px; color: var(--muted); margin-left: 1px; }
.cc-chip__j { font-size: 11px; font-weight: 700; color: var(--ok-ink); white-space: nowrap; }
.cc-chip.is-repaint { background: var(--warn-soft); border-color: var(--warn); }
.cc-chip.is-repaint .cc-chip__j { color: var(--text); background: var(--warn); border-radius: 999px; padding: 0 5px; }
.cc-chip.is-sheet { background: var(--danger-soft); border-color: var(--danger); }
.cc-chip.is-sheet .cc-chip__j { color: var(--danger); }
.cc-chip.is-empty { border-style: dashed; border-color: var(--line-strong); }
.cc-chip.is-empty .cc-chip__j { color: var(--muted); }
.cc-chip.is-sel { box-shadow: 0 0 0 3px var(--accent), 0 4px 10px rgba(15,163,177,.25); z-index: 2; }
.cc-chip[disabled] { cursor: default; }
.cc-car__cap { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.cc-legend li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cc-legend li span { font-weight: 400; color: var(--muted); font-family: var(--num); }
.cc-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--ok); background: var(--surface); }
.cc-legend .is-repaint i { background: var(--warn); border-color: var(--warn); }
.cc-legend .is-sheet i { background: var(--danger-soft); border-color: var(--danger); }

/* ---------- 점수 게이지(시그니처) ---------- */
.cc-gauge { position: relative; width: 220px; margin: 4px auto 0; }
.cc-gauge svg { display: block; width: 100%; height: auto; }
.cc-gauge [data-g="arc"] { transition: stroke-dasharray .65s cubic-bezier(.2,.7,.2,1); }
.cc-gauge__needle { transform-box: view-box; transform-origin: 100px 100px; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.cc-gauge__tick { font: 600 10px var(--num); fill: var(--muted); }
.cc-gauge__num { text-align: center; margin-top: -2px; }
.cc-gauge__num b { font-family: var(--num); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.cc-gauge__num span { font-size: 17px; font-weight: 600; margin-left: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cc *, .cc *::before, .cc *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 고객 리포트 ---------- */
.rp { display: grid; gap: 12px; padding: 16px; background: var(--bg); }
.rp-head { padding: 4px 2px 0; display: grid; gap: 8px; }
.rp-dealer { font-size: 13px; color: var(--primary); font-weight: 600; }
.rp-title { font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.rp-title small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.rp-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rp-spec div { padding: 7px 4px; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.rp-spec div:first-child { border-left: 0; }
.rp-spec dt { font-size: 11px; color: var(--muted); }
.rp-spec dd { font-size: 13px; font-weight: 600; font-family: var(--num); white-space: nowrap; }
.rp-meta { font-size: 13px; color: var(--muted); }
.rp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.rp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-h { font-size: 17px; letter-spacing: -.01em; }
.rp-sub { font-size: 13px; color: var(--muted); }
.rp-facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-facts li { border-radius: 12px; padding: 8px 12px; border: 1px solid #BFE0CC; background: var(--ok-soft); display: grid; }
.rp-facts li span { font-size: 12px; color: var(--muted); }
.rp-facts li b { font-size: 15px; color: var(--ok-ink); }
.rp-facts li.is-repaint { background: var(--warn-soft); border-color: var(--warn); }
.rp-facts li.is-repaint b { color: var(--text); }
.rp-facts li.is-sheet { background: var(--danger-soft); border-color: #EDBDB6; }
.rp-facts li.is-sheet b { color: var(--danger); }
.rp-score { text-align: center; }
.rp-score .rp-row { text-align: left; }
.rp-why { text-align: left; border-top: 1px solid var(--line); padding-top: 4px; }
.rp-why summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: var(--accent-ink); list-style: none; }
.rp-why summary::-webkit-details-marker { display: none; }
.rp-why summary::after { content: "펼치기"; font-size: 13px; color: var(--muted); font-weight: 400; }
.rp-why[open] summary::after { content: "접기"; }
.rp-lines { display: grid; gap: 4px; }
.rp-lines li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name ded" "why calc";
  gap: 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); transition: background .3s, box-shadow .3s;
}
.rp-lines .ln-name { grid-area: name; font-weight: 600; }
.rp-lines .ln-why { grid-area: why; font-size: 13px; color: var(--muted); }
.rp-lines .ln-calc { grid-area: calc; font: 500 13px var(--num); color: var(--muted); text-align: right; }
.rp-lines .ln-ded { grid-area: ded; font: 700 17px var(--num); color: var(--danger); text-align: right; }
.rp-lines li.is-zero .ln-ded { color: var(--muted); }
.rp-lines li.is-changed { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rp-total { font: 600 15px var(--num); text-align: right; margin-top: 6px; }
.rp-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.rp-zone { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.cc-zone__svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.cc-zone__num { font: 700 15px var(--num); fill: var(--text); }
.rp-zone__name { font-size: 13px; color: var(--muted); }
.rp-zone__val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rp-zone__val b { font: 700 28px var(--num); line-height: 1.1; }
.rp-zone__range { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rp-cats { display: grid; gap: 6px; }
.rp-cat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rp-cat summary { min-height: 52px; padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.rp-cat summary::-webkit-details-marker { display: none; }
.rp-cat__name { font-weight: 600; }
.rp-cat__sum { font-size: 13px; color: var(--muted); text-align: right; }
.rp-cat__sum.has-issue { color: var(--text); }
.rp-cat ul { border-top: 1px solid var(--line); padding: 6px 12px 10px; display: grid; }
.rp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.rp-item:last-child { border-bottom: 0; }
.rp-item__memo { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.rp-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rp-photo { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; text-align: left; }
.rp-photo__img { display: block; aspect-ratio: 4 / 3; }
.rp-photo__img svg, .rp-photo__img img, .cc-photo__svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-photo__tag { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--muted); }
.rp-photo__tag.is-real { color: var(--accent-ink); }
.rp-photo__name { display: block; font-size: 13px; padding: 6px 10px; background: var(--surface); }
.rp-foot { display: grid; gap: 8px; padding: 4px 2px; }
.rp-foot__url { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rp-foot__url b { font-family: var(--num); color: var(--text); }
.rp-legal { font-size: 12px; color: var(--muted); text-align: center; }
.rp-zoom figure { display: grid; gap: 8px; }
.rp-zoom figure > div { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.rp-zoom figure svg, .rp-zoom figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rp-closed { margin: 40px 16px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.rp-closed svg { width: 64px; height: 64px; }
.rp-closed h1 { font-size: 22px; }
.rp-closed p { color: var(--muted); }

/* ---------- 첫 화면: 리포트 + 기준 전환 ---------- */
.hm-intro { display: none; }
.hm-grid { display: block; }
.hm-phone { margin: -24px -24px 0; }
.hm-band {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 60px; padding: 8px 140px 8px 16px; border: 0; border-top: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 -4px 16px rgba(42,31,24,.08); text-align: left; cursor: pointer;
}
.hm-band__text { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hm-band__text b { display: block; font-size: 15px; color: var(--text); }
.hm-band__go { font-size: 13px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.cc--home .cc-fab { bottom: 8px; min-height: 44px; }
.hm-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(42,31,24,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hm-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 16px 24px;
  transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
}
.hm.is-sheet .hm-panel { transform: none; visibility: visible; }
.hm.is-sheet .hm-scrim { opacity: 1; pointer-events: auto; }
.hm-panel__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 8px; }
.pn { display: grid; gap: 14px; }
.pn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pn-head h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.pn-lead { font-size: 15px; color: var(--muted); }
.pn-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pn-std {
  display: grid; gap: 2px; text-align: left; padding: 12px; min-height: 48px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.pn-std b { font-size: 15px; }
.pn-std small { font-size: 12px; color: var(--muted); }
.pn-std__score { font: 700 22px var(--num); color: var(--muted); }
.pn-std[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.pn-std[aria-checked="true"] .pn-std__score { color: var(--primary); }
.pn-weights { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-weights li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pn-weights li b { font-family: var(--num); }
.pn-weights li.is-up { background: var(--accent-soft); border-color: #B5E3E8; }
.pn-box { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 12px; display: grid; gap: 2px; }
.pn-hint { font-size: 13px; color: var(--muted); }
.pn-note { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pn-link { font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.pn-car { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.cc-select {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 15px; color: var(--text);
}

@media (min-width: 900px) {
  .hm-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; max-width: 1120px; margin-inline: auto; }
  .hm-intro h1 { font-size: 22px; letter-spacing: -.02em; }
  .hm-intro p { font-size: 15px; color: var(--muted); }
  .hm-grid { display: grid; grid-template-columns: 404px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1120px; margin: 0 auto; }
  .hm-phone {
    margin: 0; height: min(780px, calc(100vh - 200px)); min-height: 560px;
    border: 10px solid #2A1F18; border-radius: 46px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 60px rgba(42,31,24,.18);
  }
  .hm-phone__screen { height: 100%; overflow-y: auto; scrollbar-width: thin; }
  .hm-band, .hm-scrim, .hm-panel__grip, .pn-close { display: none !important; }
  .hm-panel { position: sticky; top: 140px; transform: none; visibility: visible; max-height: none; overflow: visible; border-radius: var(--r); border: 1px solid var(--line); padding: 22px; z-index: 1; }
  .cc--home .cc-fab { bottom: 16px; }
  .cc--home .demo-notice { padding-bottom: 24px; }
}

/* ---------- 직원 입력 ---------- */
.ins { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.ins-head { display: grid; gap: 10px; }
.ins-who { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.ins-who small { font-weight: 400; color: var(--muted); font-size: 13px; }
.ins-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.ins-car { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ins-prog { display: grid; gap: 6px; }
.ins-prog__bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.ins-prog__bar i { display: block; height: 100%; background: var(--primary); border-radius: 8px; transition: width .3s; }
.ins-prog p { font-size: 13px; color: var(--muted); }
.ins-prog p b { color: var(--text); font-family: var(--num); }
.ins-tabs { position: sticky; top: 103px; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.ins-tab { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ins-tab[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(42,31,24,.12); }
.ins-cat { display: grid; gap: 8px; }
.ins-cat__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 17px; padding: 6px 2px 0; }
.ins-cat__h small { font-size: 13px; color: var(--muted); font-weight: 400; }
.ins-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.ins-item.is-missing { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.ins-item__name { font-weight: 600; }
.ins-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ins-seg button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; color: var(--muted); }
.ins-seg button[data-st="good"][aria-checked="true"] { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.ins-seg button[data-st="caution"][aria-checked="true"] { border-color: var(--warn); background: var(--warn); color: var(--text); }
.ins-seg button[data-st="bad"][aria-checked="true"] { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.ins-memo { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.ins-note { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); }
.ins-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ins-photo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; }
.ins-photo__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.ins-photo__img svg, .ins-photo__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ins-photo__body { padding: 8px 10px 10px; display: grid; gap: 6px; }
.ins-photo__name { font-weight: 600; font-size: 15px; }
.ins-photo__size { font-size: 12px; color: var(--muted); min-height: 18px; }
.ins-shoot { position: relative; overflow: hidden; }
.ins-shoot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ins-paint { display: grid; gap: 14px; }
.ins-paint__map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.ins-pad { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; }
.ins-pad__zone { font-size: 13px; color: var(--muted); }
.ins-pad__val { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ins-pad__val output { font: 700 40px var(--num); line-height: 1.1; min-width: 2ch; }
.ins-pad__val .cc-pill { align-self: center; }
.ins-pad__range { font-size: 12px; color: var(--muted); }
.ins-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ins-keys button { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: 600 22px var(--num); cursor: pointer; }
.ins-keys button.is-fn { font: 600 15px var(--font); color: var(--muted); }
.ins-keys button:active { background: var(--primary-soft); }
.ins-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(42,31,24,.08);
}
.ins-bar__inner { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ins-bar__score { display: grid; line-height: 1.2; }
.ins-bar__score span { font-size: 12px; color: var(--muted); }
.ins-bar__score b { font: 700 28px var(--num); }
.ins-bar__score b small { font: 600 15px var(--font); margin-left: 2px; }
.ins-done { background: var(--surface); border: 1.5px solid var(--ok); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.ins-done h2 { font-size: 22px; letter-spacing: -.02em; }
.ins-done dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ins-done dl div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.ins-done dt { font-size: 12px; color: var(--muted); }
.ins-done dd { font-weight: 700; font-family: var(--num); }
.ins-done__acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) {
  .ins-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-paint { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}

/* ---------- 관리자 ---------- */
.ad { display: grid; gap: 16px; }
.ad-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ad-top h1 { font-size: 22px; letter-spacing: -.02em; }
.ad-top p { font-size: 13px; color: var(--muted); }
.ad-role { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-role button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ad-role button[aria-checked="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(42,31,24,.12); }
.ad-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-kpis li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; }
.ad-kpis span { font-size: 12px; color: var(--muted); }
.ad-kpis b { font: 700 22px var(--num); }
.ad-kpis b small { font: 600 13px var(--font); margin-left: 2px; color: var(--muted); }
.ad-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tab { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.ad-tab b { font-family: var(--num); margin-left: 4px; }
.ad-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.ad-grid { display: grid; gap: 16px; align-items: start; }
.ad-thead { display: none; }
.ad-rows { display: grid; gap: 8px; }
.ad-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.ad-row.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ad-c-car b { display: block; font-size: 15px; }
.ad-c-car small { font-size: 12px; color: var(--muted); }
.ad-c-plate { font-family: var(--num); font-weight: 600; }
.ad-c-branch, .ad-c-staff, .ad-c-date { font-size: 13px; color: var(--muted); }
.ad-c-score { font: 700 22px var(--num); text-align: right; }
.ad-c-score small { font: 400 12px var(--font); color: var(--muted); display: block; }
.ad-c-status { justify-self: end; }
.ad-row .ad-meta { grid-column: 1 / 2; display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ad-panel { display: none; }
.ad-sheet-close { display: inline-grid; }
.ad.is-sheet .ad-panel {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 88vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; background: var(--surface); padding: 16px 16px 28px;
}
.ad-scrim { display: none; }
.ad.is-sheet .ad-scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(42,31,24,.45); }
.ap { display: grid; gap: 14px; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ap-plate { font: 600 13px var(--num); color: var(--muted); }
.ap-head h2 { font-size: 17px; line-height: 1.35; }
.ap-meta { font-size: 13px; color: var(--muted); }
.ap-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ap-score b { font: 700 28px var(--num); line-height: 1; }
.ap-score span { font-size: 13px; color: var(--muted); }
.ap-sec { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.ap-sec__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-sec h3 { font-size: 15px; }
.ap-muted { font-size: 13px; color: var(--muted); }
.ap-url { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-soft); font: 600 15px var(--num); min-width: 0; }
.ap-url span { min-width: 0; overflow-wrap: anywhere; }
.ap-url.is-closed { border-color: var(--line-strong); background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.ap-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ap-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.ap-form input { width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; color: var(--text); }
.ap-preview { border-radius: 14px; padding: 12px; background: #EDE6DC; display: grid; gap: 6px; }
.ap-preview__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ap-bubble { background: var(--surface); border-radius: 4px 14px 14px 14px; padding: 12px; display: grid; gap: 6px; font-size: 13px; max-width: 320px; }
.ap-bubble__title { font-weight: 700; font-size: 15px; }
.ap-bubble__btn { display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--surface-2); font-weight: 600; }
.ap-log { display: grid; gap: 6px; }
.ap-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.ap-log__who { color: var(--muted); }
.ap-log__when { font-family: var(--num); font-weight: 600; color: var(--text); margin-right: 6px; }
.ap-log .cc-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 1000px) {
  .ad-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .ad-thead {
    display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 0.9fr 0.8fr 0.9fr 0.7fr 1.1fr; gap: 10px;
    padding: 0 14px 6px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line);
  }
  .ad-rows { gap: 0; }
  .ad-row { grid-template-columns: minmax(0, 2.2fr) 1fr 0.9fr 0.8fr 0.9fr 0.7fr 1.1fr; align-items: center; gap: 10px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .ad-row:hover { background: var(--surface); }
  .ad-row.is-sel { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
  .ad-row .ad-meta { display: contents; }
  .ad-c-score { text-align: left; font-size: 17px; }
  .ad-c-status { justify-self: start; }
  .ad-panel, .ad.is-sheet .ad-panel { display: block; position: sticky; top: 120px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 18px; max-height: calc(100vh - 140px); overflow-y: auto; z-index: 1; }
  .ad.is-sheet .ad-scrim, .ad-sheet-close { display: none !important; }
}
@media (max-width: 999px) {
  .ad-c-plate, .ad-c-branch, .ad-c-staff, .ad-c-date { font-size: 13px; }
  .ad-c-score { grid-row: 1; grid-column: 2; }
  .ad-c-status { grid-column: 2; grid-row: 2; align-self: end; }
}

/* ---------- 점수 기준표 ---------- */
.sc { display: grid; gap: 16px; }
.sc-top h1 { font-size: 22px; letter-spacing: -.02em; }
.sc-top p { font-size: 15px; color: var(--muted); }
.sc-top p b { color: var(--primary); }
.sc-grid { display: grid; gap: 16px; align-items: start; }
.sc-col { display: grid; gap: 16px; min-width: 0; }
.sc-stds { display: grid; gap: 6px; margin-top: 10px; }
.sc-std { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.sc-std b { font-size: 15px; }
.sc-std small { grid-column: 1 / 2; font-size: 12px; color: var(--muted); }
.sc-std .sc-std__tags { grid-row: 1 / 3; grid-column: 2; display: grid; gap: 4px; justify-items: end; }
.sc-std[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sc-new { margin-top: 8px; }
.sc-edit { display: grid; gap: 14px; }
.sc-edit__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-lock { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); }
.sc-group { display: grid; gap: 6px; }
.sc-group h3 { font-size: 15px; }
.sc-group > p { font-size: 12px; color: var(--muted); }
.sc-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sc-step:last-child { border-bottom: 0; }
.sc-step__name { font-size: 15px; }
.sc-step__name small { display: block; font-size: 12px; color: var(--muted); }
.sc-step__ctl { display: inline-grid; grid-template-columns: 44px 80px 44px; align-items: center; }
.sc-step__ctl button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 20px; cursor: pointer; line-height: 1; }
.sc-step__ctl button[disabled] { opacity: .35; cursor: not-allowed; }
.sc-step__ctl output { text-align: center; font: 700 17px var(--num); }
.sc-step.is-diff output { color: var(--accent-ink); }
.sc-imp__sum { font-size: 17px; }
.sc-imp__sum b { font: 700 28px var(--num); color: var(--primary); }
.sc-imp__sub { font-size: 13px; color: var(--muted); }
.sc-imp { display: grid; gap: 4px; margin-top: 6px; }
.sc-imp li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.sc-imp li.is-same { background: transparent; color: var(--muted); }
.sc-imp__car { font-size: 15px; font-weight: 600; min-width: 0; }
.sc-imp__car small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.sc-imp__score { font: 600 15px var(--num); white-space: nowrap; }
.sc-imp__score b { font-size: 17px; }
.sc-imp__d { font: 700 15px var(--num); min-width: 40px; text-align: right; }
.sc-imp__d.is-down { color: var(--danger); }
.sc-imp__d.is-up { color: var(--ok-ink); }
.sc-modes { display: grid; gap: 8px; }
.sc-mode { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.sc-mode input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.sc-mode b { display: block; font-size: 15px; }
.sc-mode small { font-size: 13px; color: var(--muted); }
.sc-mode:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.sc-apply { display: grid; gap: 10px; }
.sc-foot { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); }
@media (min-width: 1000px) {
  .sc-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .sc-paint { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: start; }
}

/* ---------- 좁은 화면 ---------- */
@media (max-width: 640px) {
  .cc-band__long { display: none; }
  .cc-brand__sub { display: none; }
  .cc-head__inner { padding: 8px 16px 2px; }
  .cc-nav__inner { padding: 0 8px; gap: 0; }
  .cc-nav__item { padding: 10px 10px 11px; }
  .cc-main { padding: 16px 16px 32px; }
  .hm-phone { margin: -16px -16px 0; }
  .cc--report .cc-main { padding: 0 0 24px; }
  .ins-tabs { top: 99px; }
  .ad-kpis b { font-size: 17px; }
  .ad-role button { padding: 0 10px; }
}
