/* pages-handover – handover app (mobile first), contract + protocol panels, signature pad, car diagram, public signing page (sign.html).
   Only design tokens from theme.css; light + dark. */

/* ---------- list ---------- */
.ho-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ho-toolbar .seg button { height: 38px; padding: 0 16px; font-size: var(--fs); }
.ho-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text-3); }
.ho-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--primary-soft); }
.ho-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-md); }
.ho-sec { margin-bottom: 22px; }
.ho-sec-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 0 2px 10px; }
.ho-sec-h .n { margin-left: 2px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-size: 11.5px; display: inline-grid; place-items: center; letter-spacing: 0; }
.ho-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.ho-card { display: flex; align-items: stretch; gap: 14px; min-height: 92px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none !important; transition: border-color .12s, transform .12s, box-shadow .12s; position: relative; overflow: hidden; }
.ho-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st-confirmed); }
.ho-card.return::before { background: var(--st-active); } .ho-card.late::before { background: var(--st-overdue); }
.ho-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); } .ho-card:active { transform: scale(.99); }
.ho-time { display: flex; flex-direction: column; justify-content: center; min-width: 58px; padding-left: 4px; }
.ho-time b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; } .ho-time span { font-size: var(--fs-xs); color: var(--text-3); }
.ho-card.late .ho-time b { color: var(--danger); }
.ho-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.ho-name { font-weight: 650; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-br { display: inline-flex; align-items: center; gap: 3px; }
.ho-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ho-go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: var(--fs-xs); font-weight: 700; }
.ho-card.return .ho-go { background: var(--success-bg); color: var(--success); } .ho-card.late .ho-go { background: var(--danger-bg); color: var(--danger); }
.ho-go .icon { width: 22px; height: 22px; }
.ho-plate { display: inline-flex; align-items: center; height: 22px; padding: 0 7px 0 11px; border: 1.5px solid var(--text); border-radius: 4px; font-weight: 700; font-size: 12px; letter-spacing: .04em; background: var(--surface);
  background-image: linear-gradient(90deg, #1d4ed8 0 6px, transparent 6px); white-space: nowrap; }

/* ---------- wizard ---------- */
.ho-wiz { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.ho-top { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; }
.ho-top-main { flex: 1; min-width: 0; } .ho-top-t { font-weight: 700; font-size: var(--fs-lg); line-height: 1.3; }
body:has(.ho-nav) .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); }
.ho-progress { padding: 4px 0 10px; margin-bottom: 4px; }
.ho-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; } .ho-bar i { display: block; height: 100%; background: var(--grad); transition: width .25s; }
.ho-dots { display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; } .ho-dots::-webkit-scrollbar { display: none; }
.ho-dot { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-3); font: inherit; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; white-space: nowrap; }
.ho-dot span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
.ho-dot em { font-style: normal; display: none; } .ho-dot.on em { display: inline; }
.ho-dot.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); } .ho-dot.on span { background: var(--primary); color: var(--on-primary); }
.ho-dot.done span { background: var(--success-bg); color: var(--success); } .ho-dot:disabled { cursor: default; }
.ho-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.ho-h { font-size: var(--fs-xl); font-weight: 750; letter-spacing: -.01em; margin-bottom: 4px; } .ho-h3 { font-size: var(--fs-md); margin: 20px 0 10px; }
.ho-lead { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 16px; line-height: 1.5; }
.ho-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
@media (min-width: 961px) { .ho-nav { left: var(--sidebar-w); } }
.ho-nav .btn { height: 52px; font-size: var(--fs-md); border-radius: 14px; } .ho-back { flex: 0 0 auto; min-width: 110px; } .ho-next { flex: 1; max-width: 520px; margin-left: auto; }
.ho-nav .btn:disabled { opacity: .5; }
.btn-accent.ho-next { background: var(--success); border-color: var(--success); color: #fff; }

/* driver */
.ho-person { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.ho-person-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ho-person-h .right { margin-left: auto; }
.ho-dl { font-size: var(--fs-sm); margin-bottom: 10px; }
.ho-issues { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.ho-issues li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: var(--fs-sm); background: var(--warning-bg); }
.ho-issues li.error { background: var(--danger-bg); color: var(--text); } .ho-issues li.error .icon { color: var(--danger); } .ho-issues li.warn .icon { color: var(--warning); }
.ho-ok { display: flex; align-items: center; gap: 6px; color: var(--success); font-size: var(--fs-sm); font-weight: 600; padding: 4px 0; }
.ho-person-a { display: flex; gap: 8px; flex-wrap: wrap; } .ho-person-a .btn { height: 44px; } label.btn.busy { opacity: .6; pointer-events: none; }
.ho-err { color: var(--danger); font-weight: 600; } .ho-warn { color: var(--warning); font-weight: 600; }

/* vehicle */
.ho-vcard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); margin-bottom: 16px; }
.ho-vcard > .icon { width: 28px; height: 28px; color: var(--primary); flex: none; }
.ho-fields { display: grid; gap: 16px; } @media (min-width: 640px) { .ho-fields { grid-template-columns: 1fr 1fr; } }
.ho-km { display: flex; align-items: center; gap: 8px; } .ho-km span { color: var(--text-3); font-weight: 600; }
.input.ho-big { height: 54px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ho-fuel { display: flex; align-items: center; gap: 12px; }
.ho-gauge { flex: 1; display: flex; gap: 4px; height: 34px; --p: 0%; }
.ho-gauge i { flex: 1; border-radius: 6px; background: var(--surface-3); cursor: pointer; transition: background .12s; } .ho-gauge i.on { background: var(--grad); }
.ho-gauge:empty { border-radius: 8px; background: linear-gradient(90deg, var(--success) var(--p), var(--surface-3) var(--p)); }
.ho-fuel output { min-width: 56px; text-align: right; font-weight: 750; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.ho-range { width: 100%; height: 34px; accent-color: var(--primary); }
.ho-checks { display: grid; gap: 8px; } @media (min-width: 640px) { .ho-checks { grid-template-columns: 1fr 1fr; } }
.ho-check { display: flex; align-items: center; min-height: 52px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ho-keys { justify-content: space-between; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.ho-stepper { display: flex; align-items: center; gap: 6px; } .ho-stepper .btn { width: 40px; height: 40px; font-size: 20px; } .ho-stepper output { min-width: 22px; text-align: center; font-weight: 750; font-size: var(--fs-lg); }
.ho-vehs { display: grid; gap: 8px; }
.ho-veh { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ho-veh > span { flex: 1; display: flex; flex-direction: column; } .ho-veh:hover { border-color: var(--primary); }
.ho-more { margin-top: 14px; } .ho-more summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }

/* photos */
.ho-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (min-width: 640px) { .ho-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ho-shot { position: relative; aspect-ratio: 4 / 3; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; color: var(--text-2); }
.ho-shot.has { border-style: solid; border-color: var(--success); } .ho-shot.busy { opacity: .55; pointer-events: none; }
.ho-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ho-shot-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ho-shot-l { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 650; }
.ho-shot.has .ho-shot-l { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, .7); color: #fff; font-size: var(--fs-xs); }
.ho-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ho-thumb { position: relative; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); } .ho-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ho-thumb .btn { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; padding: 0; background: var(--surface); }

/* damages */
.ho-dmg-list { display: grid; gap: 6px; margin-top: 14px; }
.ho-dmg { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: var(--fs-sm); background: var(--surface-2); }
.ho-dmg .right { margin-left: auto; }
.ho-dmg-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 750; color: #fff; background: #f59e0b; flex: none; }
.ho-dmg.medium .ho-dmg-n { background: #ea580c; } .ho-dmg.major .ho-dmg-n, .ho-dmg.new .ho-dmg-n { background: var(--danger); }

/* car diagram */
.cd-views { display: flex; gap: 4px; overflow-x: auto; padding: 3px; background: var(--surface-3); border-radius: 12px; scrollbar-width: none; }
.cd-views button { flex: 1; min-width: 64px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.cd-views button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.cd-views .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; display: inline-grid; place-items: center; padding: 0 4px; }
.cd-stage { margin-top: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); padding: 12px; display: flex; justify-content: center; }
.cd-stage.editable { cursor: crosshair; }
.cd-svg { width: 100%; max-height: 360px; touch-action: manipulation; user-select: none; } .cd-top { max-width: 220px; }
.cd-body { fill: var(--surface); stroke: var(--text-3); stroke-width: 2.4; } .cd-glass { fill: color-mix(in srgb, var(--info) 18%, var(--surface)); stroke: var(--text-3); stroke-width: 1.6; }
.cd-roof { fill: var(--surface-3); stroke: var(--text-3); stroke-width: 1.4; } .cd-line { fill: none; stroke: var(--border-strong); stroke-width: 1.6; }
.cd-tyre { fill: var(--text-2); } .cd-rim { fill: var(--surface-3); } .cd-mirror { fill: var(--text-3); } .cd-light { fill: #fde68a; stroke: var(--text-3); stroke-width: 1; } .cd-light.rear { fill: #fca5a5; }
.cd-grille { fill: var(--surface-3); stroke: var(--text-3); stroke-width: 1.4; } .cd-dir { fill: var(--text-3); font-size: 10px; text-anchor: middle; }
.cd-mark { cursor: pointer; } .cd-mark circle { fill: #f59e0b; stroke: #fff; stroke-width: 2.5; } .cd-mark.medium circle { fill: #ea580c; } .cd-mark.major circle, .cd-mark.new circle { fill: #dc2626; }
.cd-mark .cd-ring { fill: none !important; stroke: #dc2626 !important; stroke-width: 2 !important; opacity: .5; animation: cd-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.cd-mark text { fill: #fff; font-size: 12px; font-weight: 800; text-anchor: middle; pointer-events: none; font-family: var(--font); }
@keyframes cd-pulse { from { opacity: .7; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .cd-mark .cd-ring { animation: none; } }
.cd-hint { margin-top: 8px; text-align: center; }
.ho-sheet .chips .chip { height: 40px; padding: 0 14px; }

/* deposit / contract / charges */
.ho-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.ho-box-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .ho-box-h .right { margin-left: auto; }
.ho-dep { display: grid; gap: 12px; } .ho-dep .btn { height: 48px; }
.ho-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; } @media (min-width: 640px) { .ho-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ho-tile { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ho-tile span { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; } .ho-tile b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; } .ho-tile small { font-size: var(--fs-xs); color: var(--text-3); }
.ho-tile.warn { background: var(--warning-bg); border-color: transparent; } .ho-tile.err { background: var(--danger-bg); border-color: transparent; }
.ho-charges { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.ho-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); } .ho-line:last-child { border-bottom: 0; }
.ho-line b { font-variant-numeric: tabular-nums; white-space: nowrap; } .ho-line.total { background: var(--surface-2); font-weight: 700; }

/* signatures */
.ho-sig-grid { display: grid; gap: 12px; margin-top: 12px; } @media (min-width: 720px) { .ho-sig-grid { grid-template-columns: 1fr 1fr; } }
.sig { user-select: none; -webkit-user-select: none; }
.sig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .sig-label { font-weight: 650; font-size: var(--fs-sm); color: var(--text-2); }
.sig-pad { position: relative; height: 190px; border: 1.5px solid var(--border-strong); border-radius: 14px; background: #fff; overflow: hidden; touch-action: none; }
.sig-pad canvas { position: absolute; inset: 0; touch-action: none; cursor: crosshair; z-index: 2; }
.sig-line { position: absolute; left: 18px; right: 18px; bottom: 44px; border-bottom: 1.5px dashed #cbd5e1; }
.sig-ph { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #94a3b8; font-size: var(--fs-xs); pointer-events: none; transition: opacity .15s; }
.sig.signed .sig-ph { opacity: 0; } .sig.signed .sig-pad { border-color: var(--success); }
.ho-accept { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: var(--fs-sm); line-height: 1.45; cursor: pointer; }
.ho-accept input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.ho-mini { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-sm); margin-bottom: 12px; }
.ho-sum { margin-bottom: 12px; }
.ho-sigs { display: flex; gap: 10px; margin: 12px 0; } .ho-sigs img { flex: 1; min-width: 0; height: 74px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.ho-sign-modal .modal-body { max-height: calc(100vh - 170px); overflow: auto; }
.ho-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }

/* done */
.ho-done { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ho-done-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); margin-bottom: 6px; } .ho-done-ic .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.ho-done .ho-charges { width: 100%; max-width: 480px; text-align: left; }
.ho-done-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; } .ho-done-a .btn { height: 46px; }
.ho-keybox { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--primary-soft); text-align: left; margin: 6px 0; }
.ho-keybox .icon { width: 30px; height: 30px; color: var(--primary); } .ho-keybox b { display: block; } .ho-keybox div div { font-size: var(--fs-xl); font-weight: 800; color: var(--primary); }

/* rental detail panels */
.ho-panel .card-head .right { margin-left: auto; }
.ho-docs { display: grid; gap: 8px; }
.ho-doc { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.ho-doc-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); flex: none; }
.ho-doc-ic.signed { background: var(--success-bg); color: var(--success); } .ho-doc-ic.void { background: var(--surface-3); color: var(--text-3); }
.ho-doc-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ho-doc-act { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ho-protos { display: grid; gap: 12px; } @media (min-width: 900px) { .ho-protos { grid-template-columns: 1fr 1fr; } }
.ho-proto { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ho-proto-h { display: flex; align-items: center; gap: 8px; } .ho-proto-h .badge { margin-left: auto; }
.ho-proto-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ho-pthumbs { display: flex; gap: 6px; flex-wrap: wrap; } .ho-pthumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.ho-pthumbs .more { width: 64px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.ho-cmp { margin-top: 16px; } .ho-cmp h3 { font-size: var(--fs-md); margin-bottom: 10px; }
.ho-dev .code { font-size: var(--fs-lg); font-weight: 800; letter-spacing: .15em; }

@media (max-width: 640px) {
  .ho-step { padding: 14px; border-radius: 14px; } .ho-h { font-size: var(--fs-lg); }
  .ho-card { padding: 12px; gap: 10px; } .ho-go { min-width: 64px; } .ho-time b { font-size: 19px; }
  .ho-page .page-head { margin-bottom: 12px; }
}

/* ---------- public signing page ---------- */
.sg-body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; }
.sg { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.sg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.sg-card h1 { font-size: var(--fs-xl); font-weight: 750; margin: 16px 0 6px; letter-spacing: -.01em; }
.sg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sg-logo { max-height: 40px; max-width: 120px; object-fit: contain; }
.sg-mono { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; }
.sg-lang { margin-left: auto; display: flex; gap: 4px; } .sg-lang button { width: 34px; height: 26px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; }
.sg-lang button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); } .sg-lang .flag { width: 100%; height: 100%; display: block; border-radius: 3px; }
.sg-center .sg-lang { justify-content: flex-end; }
.sg-dl { margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.sg-pdf { width: 100%; height: 46px; }
.sg-terms { margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; } .sg-terms summary { padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.sg-terms-t { white-space: pre-wrap; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); padding: 0 14px 14px; max-height: 340px; overflow: auto; }
.sg-form { display: grid; gap: 14px; margin-top: 8px; }
.sg-code { font-size: 26px; letter-spacing: .5em; text-align: center; font-weight: 750; height: 58px; font-variant-numeric: tabular-nums; }
.sg-submit { height: 54px; font-size: var(--fs-md); }
.sg-center { text-align: center; } .sg-center h1 { margin-top: 8px; }
.sg-ic { width: 72px; height: 72px; margin: 10px auto 4px; border-radius: 50%; display: grid; place-items: center; } .sg-ic .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.sg-ic.ok { background: var(--success-bg); color: var(--success); } .sg-ic.err { background: var(--danger-bg); color: var(--danger); }
.sg-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* ---------- checklist items from the class template (public/js/lib/checklist-ui.js) ---------- */
.cl-tpl { margin-left: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-3); vertical-align: middle; }
.cl-items .ho-check { gap: 10px; }
.cl-row { justify-content: space-between; }
.cl-col { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
.cl-row-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-row-h output { font-weight: 750; font-variant-numeric: tabular-nums; }
.cl-name { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.cl-name .req { color: var(--danger); margin-left: 2px; }
.cl-exp { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); }
.cl-off { border-color: var(--warning); background: var(--warning-bg); }
.cl-yn { display: flex; gap: 6px; flex: none; }
.cl-yn .btn { min-height: 40px; }
.cl-yn [data-yn="1"][aria-pressed="true"] { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.cl-yn [data-yn="0"][aria-pressed="true"] { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.cl-range[data-unset] { opacity: .45; }
.cl-photo { position: relative; flex: none; min-height: 40px; overflow: hidden; }
.cl-photo img { width: 34px; height: 26px; object-fit: cover; border-radius: 6px; }
.cl-photo.busy { opacity: .55; pointer-events: none; }
.cl-reqhint { margin-top: 6px; } .cl-reqhint .req { color: var(--danger); }
.cl-diffs { display: grid; gap: 6px; margin-bottom: 8px; }
.cl-diff { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--warning-bg); color: var(--text); font-size: var(--fs-sm); }
.cl-diff .icon { color: var(--warning); flex: none; margin-top: 2px; }
.cl-sug .switch { width: 100%; } .cl-sug .txt small { font-weight: 700; color: var(--text); }

/* ---------- photo comparison: pickup vs return per position / damage area ---------- */
.pc-grid { display: grid; gap: 10px; } @media (min-width: 1100px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-row { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface); }
.pc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: var(--fs-sm); }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-l { font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .02em; }
.pc-pics { display: grid; grid-template-columns: 1fr; gap: 4px; position: relative; }
.pc-pics a:not(:first-child) { display: none; }
.pc-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: var(--surface-3); }
.pc-more { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, .7); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.pc-none { aspect-ratio: 4 / 3; border: 2px dashed var(--border-strong); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); font-size: var(--fs-xs); }
.pc-dmg { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--text-2); }
.pc-dmg li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); margin-right: 6px; }
.pc-dmg li.new::before { background: var(--danger); } .pc-dmg li.new { font-weight: 650; color: var(--text); }
.ho-stepper output.cl-unset { color: var(--text-3); font-weight: 500; }
