/* OEM LEVEL — Inspection checklist, local KB and estimator (mobile-first, touch targets ≥48px) */
.small { font-size: 12px; }
.hidden { display: none !important; }
#ck-root, #es-root, #kbl-root { --ok: #3ddc84; --at: #f5a623; --fl: #ff4d5e; }
.ck-chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); vertical-align: middle; }
.ck-chip.example, .chip.example { background: #3d2e10; border-color: var(--amber); color: #ffd789; font-weight: 700; letter-spacing: .05em; }
.ck-chip.local, .kbl-chip { background: #10302a; border-color: var(--green); color: var(--green); font-weight: 700; }
.ck-chip.st-pass { background: rgba(61,220,132,.15); border-color: var(--ok); color: var(--ok); }
.ck-chip.st-att { background: rgba(245,166,35,.15); border-color: var(--at); color: var(--at); }
.ck-chip.st-fail { background: rgba(255,77,94,.15); border-color: var(--fl); color: #ff8a96; }
.ck-chip.st-na { color: var(--muted); }
.st-pass { color: var(--ok); } .st-att { color: var(--at); } .st-fail { color: #ff8a96; }
.ck-info { background: rgba(0,212,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ck-alert { background: rgba(191,10,48,.2); border: 2px solid var(--red); color: #ffd0d8; border-radius: 10px; padding: 8px 12px; font-weight: 700; margin: 8px 0; }
.ck-warn { color: #ffd789; font-size: 12px; }
.ck-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ck-tool, .ck-big { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; }
.ck-big { padding: 10px 16px; font-weight: 600; }

/* start screen */
.ck-start { max-width: 900px; margin: 0 auto; }
.ck-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px 4px; background: radial-gradient(600px 200px at 50% 0%, rgba(0,212,255,.12), transparent 70%); border-radius: 14px; }
.ck-logo { height: 34px; width: auto; }
.ck-logo.big { height: 56px; max-width: 92%; }
.ck-brandmark { text-align: center; line-height: 1; }
.ck-brandmark .ck-make { font-family: Orbitron, sans-serif; font-weight: 700; letter-spacing: .1em; color: #fff; font-size: 22px; text-shadow: 0 0 18px rgba(0,212,255,.35); }
.ck-brandmark.big .ck-make { font-size: clamp(34px, 10vw, 64px); background: linear-gradient(180deg, #fff, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ck-brandmark .ck-ymm { font-family: Orbitron, sans-serif; color: var(--cyan); font-size: 12px; letter-spacing: .12em; margin-top: 4px; }
.ck-brandmark.big .ck-ymm { font-size: clamp(14px, 3.6vw, 20px); }
.ck-brandmark .ck-ymm span { color: var(--muted); font-size: .8em; }
.ck-brandmark.ghost .ck-make { color: #2a3a5c; background: none; text-shadow: none; -webkit-text-fill-color: #2a3a5c; }
.ck-vin { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 10px; font-family: Orbitron, monospace; }
.ck-vin span { width: 20px; text-align: center; padding: 4px 0; border-radius: 4px; background: var(--bg-3); font-size: 13px; }
.ck-vin .w { color: var(--gold); } .ck-vin .d { color: var(--cyan); } .ck-vin .k { color: #ff8a96; } .ck-vin .y { color: var(--green); }
.ck-vinbox { margin: 10px 0; }
.ck-vininput { width: 100%; font-family: Orbitron, monospace; font-size: clamp(16px, 4.6vw, 24px); letter-spacing: .12em; text-transform: uppercase; padding: 14px; min-height: 56px; border-radius: 12px; background: #050a14; border: 2px solid var(--cyan); color: #fff; text-align: center; }
#ck-video { width: 100%; max-height: 260px; border-radius: 12px; margin-top: 8px; background: #000; }
.ck-msg { color: #ffd789; min-height: 1em; }
.ck-start label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ck-start input, .ck-start select { min-height: 48px; }
.ck-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ck-tpl { text-align: left; background: var(--bg-3); border: 2px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); min-height: 96px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ck-tpl b { font-family: Orbitron, sans-serif; font-size: 13px; color: var(--gold); }
.ck-tpl span { font-size: 20px; font-weight: 700; color: var(--cyan); }
.ck-tpl small { color: var(--muted); font-size: 11px; }
.ck-tpl.on { border-color: var(--cyan); background: #0b2148; box-shadow: 0 0 0 3px rgba(0,212,255,.2); }
.ck-go { width: 100%; min-height: 60px; font-size: 18px; font-weight: 700; margin-top: 14px; }
.ck-list { display: grid; gap: 8px; }
.ck-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ck-cnt { display: inline-block; font-weight: 700; padding: 0 6px; border-radius: 6px; margin-left: 4px; }
.ck-cnt.g { color: #06210f; background: var(--ok); } .ck-cnt.y { color: #2b1a00; background: var(--at); } .ck-cnt.r { color: #fff; background: var(--fl); }

/* checklist */
.ck-wrap { max-width: 980px; margin: 0 auto; }
main:has(.ck-wrap) { padding-left: 10px; padding-right: 10px; }
.ck-head { position: sticky; top: 71px; z-index: 18; background: rgba(9,15,28,.97); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.ck-headrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ck-headrow .ck-brandmark { text-align: right; }
.ck-vinrow { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); margin: 4px 0; }
.ck-vinrow b { color: var(--cyan); font-family: Orbitron, monospace; letter-spacing: .04em; }
.ck-prog { margin: 4px 0; }
.ck-bar { height: 12px; background: #1a253c; border-radius: 99px; overflow: hidden; display: flex; }
.ck-bar i { display: block; height: 100%; }
.ck-bar .p { background: var(--ok); } .ck-bar .a { background: var(--at); } .ck-bar .f { background: var(--fl); } .ck-bar .n { background: #5b6b84; }
.ck-progtxt { font-size: 12px; margin-top: 3px; }
.ck-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ck-tab { flex: 0 0 auto; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); padding: 6px 10px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.ck-tab small { color: var(--muted); }
.ck-tab.on { background: var(--texas); border-color: var(--cyan); }
.ck-tab.pass { border-color: var(--ok); } .ck-tab.att { border-color: var(--at); } .ck-tab.fail, .ck-tab.fail-p { border-color: var(--fl); }
.ck-tab.pass small, .ck-tab.att small, .ck-tab.fail small { color: inherit; }
.ck-tab.sum { border-color: var(--gold); color: var(--gold); }
.ck-sec h2 { font-size: 18px; color: var(--gold); margin: 6px 0; }
.ck-sech { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.ck-passrest { font-size: 12px; min-height: 40px; }
.ck-item { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid #2a3650; border-radius: 14px; padding: 12px; margin: 10px 0; transition: box-shadow .3s; }
.ck-item.st-pass { border-left-color: var(--ok); } .ck-item.st-att { border-left-color: var(--at); background: linear-gradient(90deg, rgba(245,166,35,.08), var(--panel) 40%); } .ck-item.st-fail { border-left-color: var(--fl); background: linear-gradient(90deg, rgba(255,77,94,.1), var(--panel) 40%); } .ck-item.st-na { opacity: .75; }
.ck-item.flash { box-shadow: 0 0 0 3px var(--cyan); }
.ck-ih { display: flex; gap: 10px; align-items: flex-start; }
.ck-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.ck-lbl { flex: 1; font-weight: 600; font-size: 16px; line-height: 1.25; }
.ck-hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
.ck-auto { font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap; }
.ck-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.ck-f { display: flex; flex-direction: column; gap: 3px; background: #0a1222; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.ck-f.spec { border-style: dashed; }
.ck-f.st-pass { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); } .ck-f.st-att { border-color: var(--at); box-shadow: inset 0 0 0 1px var(--at); } .ck-f.st-fail { border-color: var(--fl); box-shadow: inset 0 0 0 1px var(--fl); }
.ck-fl { font-size: 11px; color: var(--muted); } .ck-fl i { font-style: normal; color: var(--cyan); } .ck-fl em { font-style: normal; color: var(--gold); font-size: 10px; }
.ck-f input, .ck-f select { min-height: 44px; font-size: 18px; font-weight: 600; background: #050a14; border: 1px solid #22324f; border-radius: 8px; padding: 6px 8px; width: 100%; color: #fff; }
.ck-fh { font-size: 10px; color: var(--muted); }
.ck-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ck-b { min-height: 56px; border-radius: 12px; border: 2px solid #2a3650; background: #0d1628; color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.ck-b.b-pass.on { background: var(--ok); border-color: var(--ok); color: #06210f; }
.ck-b.b-att.on { background: var(--at); border-color: var(--at); color: #2b1a00; }
.ck-b.b-fail.on { background: var(--fl); border-color: var(--fl); color: #fff; }
.ck-b.b-na.on { background: #5b6b84; border-color: #5b6b84; color: #fff; }
.ck-b.b-pass { border-color: rgba(61,220,132,.45); } .ck-b.b-att { border-color: rgba(245,166,35,.45); } .ck-b.b-fail { border-color: rgba(255,77,94,.45); }
.ck-b:active { transform: scale(.97); }
.ck-note, .ck-next textarea { width: 100%; min-height: 64px; margin-top: 8px; border-radius: 10px; background: #050a14; border: 1px solid #22324f; padding: 8px; font-size: 15px; }
.ck-next { margin-top: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--cyan); background: rgba(0,40,104,.35); }
.ck-next.missing { border: 2px dashed var(--fl); }
.ck-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ck-sg { min-height: 44px; border-radius: 22px; padding: 6px 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-size: 13px; cursor: pointer; text-align: left; }
.ck-sg.on { background: var(--cyan); color: #00121a; border-color: var(--cyan); font-weight: 700; }
.ck-flag { color: #ffd789; font-size: 12px; margin-top: 6px; }
.ck-kb { margin-top: 8px; padding: 8px; background: rgba(232,184,74,.06); border-left: 3px solid var(--gold); border-radius: 8px; font-size: 13px; }
.ck-kb ul { margin: 4px 0 4px 18px; padding: 0; }
.ck-part { display: grid; grid-template-columns: 2fr 1.4fr .7fr; gap: 6px; margin-top: 8px; }
.ck-part .ck-tools { grid-column: 1 / -1; }
.ck-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ck-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ck-cyl { margin-top: 10px; }
.ck-cyl > .ck-f { display: inline-flex; width: 150px; margin: 0 6px 6px 0; }
.ck-cylgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.ck-cylc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0a1222; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px 8px; overflow: hidden; }
.ck-cylc span { font-size: 11px; color: var(--muted); z-index: 1; }
.ck-cylc input { width: 100%; min-height: 44px; text-align: center; font-size: 17px; font-weight: 700; background: rgba(5,10,20,.85); border: 1px solid #22324f; border-radius: 8px; color: #fff; z-index: 1; }
.ck-cylc i { position: absolute; left: 0; right: 0; bottom: 0; opacity: .28; background: var(--cyan); }
.ck-cylc.st-pass i { background: var(--ok); } .ck-cylc.st-att i { background: var(--at); } .ck-cylc.st-fail i { background: var(--fl); }
.ck-cylc.st-fail { border-color: var(--fl); } .ck-cylc.st-att { border-color: var(--at); }
.ck-nav { display: flex; gap: 10px; margin: 16px 0 6px; }
.ck-navb { flex: 1; min-height: 60px; font-size: 17px; font-weight: 700; }

/* tire & brake health */
.ck-tirepanel { background: linear-gradient(180deg, #0b1630, #08101f); border: 1px solid var(--cyan); border-radius: 16px; padding: 10px; margin: 10px 0; }
.ck-tirepanel h3 { margin: 0; color: var(--cyan); font-size: 15px; }
.ck-tgrid { display: grid; grid-template-columns: 1fr minmax(112px, 150px) 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.ck-carwrap { grid-column: 2; grid-row: 1 / span 2; display: flex; justify-content: center; }
.ck-car { width: 100%; max-width: 160px; height: auto; }
.ck-wheel { cursor: pointer; }
.ck-corner { background: #0a1222; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; font-size: 11px; cursor: pointer; min-width: 0; }
.ck-corner.st-pass { border-color: var(--ok); } .ck-corner.st-att { border-color: var(--at); } .ck-corner.st-fail { border-color: var(--fl); box-shadow: 0 0 12px rgba(255,77,94,.35); }
.ck-ch { display: flex; justify-content: space-between; align-items: center; font-family: Orbitron, sans-serif; }
.ck-treads { display: flex; gap: 3px; margin-top: 4px; }
.ck-tv { flex: 1; text-align: center; border-radius: 6px; padding: 4px 0; font-size: 15px; background: #22324f; color: #fff; }
.ck-tv.st-pass { background: var(--ok); color: #06210f; } .ck-tv.st-att { background: var(--at); color: #2b1a00; } .ck-tv.st-fail { background: var(--fl); color: #fff; }
.ck-small { color: var(--muted); font-size: 10.5px; margin-top: 2px; overflow-wrap: anywhere; }
.ck-small .ck-chip { font-size: 9px; padding: 0 5px; }
.ck-size { margin-top: 10px; }
.ck-size h4 { margin: 0 0 4px; font-size: 13px; color: var(--gold); }
.ck-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ck-table th, .ck-table td { border-bottom: 1px solid var(--line); padding: 5px 4px; text-align: left; }

/* damage */
.ck-dmgtypes { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ck-dt { min-height: 44px; border-radius: 10px; border: 2px solid var(--c); background: #0d1628; color: var(--text); padding: 4px 10px; font-size: 13px; cursor: pointer; }
.ck-dt b { color: var(--c); }
.ck-dt.on { background: var(--c); color: #05080f; } .ck-dt.on b { color: #05080f; }
.ck-dmg { width: 100%; max-width: 340px; display: block; margin: 6px auto; touch-action: manipulation; }
.ck-dmg.live { cursor: crosshair; }
.ck-dmglist { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }
.ck-dmglist li { margin: 4px 0; }
.ck-dmgnote { min-height: 40px; width: 60%; }

/* summary */
.ck-sumcounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.ck-sumcounts div { border-radius: 14px; padding: 10px; text-align: center; font-size: 12px; font-weight: 700; }
.ck-sumcounts b { display: block; font-size: 30px; font-family: Orbitron, sans-serif; }
.ck-sumcounts .g { background: rgba(61,220,132,.18); color: var(--ok); } .ck-sumcounts .y { background: rgba(245,166,35,.18); color: var(--at); } .ck-sumcounts .r { background: rgba(255,77,94,.18); color: #ff8a96; } .ck-sumcounts .n { background: #1a253c; color: var(--muted); }
.ck-prio { border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.ck-prio h4 { margin: 2px 0 6px; }
.ck-prio ul { margin: 0 0 0 18px; padding: 0; }
.ck-prio li { margin: 4px 0; }
.ck-prio.r { background: rgba(255,77,94,.14); border: 1px solid var(--fl); } .ck-prio.y { background: rgba(245,166,35,.12); border: 1px solid var(--at); } .ck-prio.b { background: rgba(0,212,255,.08); border: 1px solid var(--line); }
.ck-missing { list-style: none; padding: 0; } .ck-missing li { margin: 4px 0; } .ck-missing .btn { min-height: 40px; }
.ck-sign { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.ck-sign input { width: 100%; min-height: 48px; }
.ck-sig { width: 100%; height: auto; aspect-ratio: 10 / 3; background: #fff; border-radius: 10px; border: 2px solid var(--line); touch-action: none; margin: 6px 0; display: block; }
.ck-final { margin-top: 14px; }
.ck-casepanel .ck-list { margin-top: 8px; }

/* estimator */
.es-wrap { max-width: 1000px; margin: 0 auto; }
.es-exbanner { background: #3d2e10; color: #ffd789; border: 1px solid var(--amber); border-radius: 10px; padding: 6px 10px; font-weight: 700; margin-bottom: 8px; }
.es-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--cyan); padding-bottom: 8px; }
.es-oemlogo { height: 40px; }
.es-shoplogo { max-height: 56px; max-width: 200px; background: #fff; border-radius: 6px; padding: 4px; }
.es-shopname { font-size: 20px; font-weight: 700; color: var(--gold); }
.es-shopsub { font-size: 12px; color: var(--muted); }
.es-meta { text-align: right; font-size: 12px; }
.es-title { font-family: Orbitron, sans-serif; color: var(--cyan); font-size: 16px; }
.es-veh { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; font-size: 13px; }
.es-veh span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.es-vin { font-family: Orbitron, monospace; letter-spacing: .05em; color: var(--cyan); }
.es-actions .btn { min-height: 48px; }
.es-warn { background: rgba(245,166,35,.12); border: 1px solid var(--amber); color: #ffd789; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.es-ph { margin: 14px 0 4px; font-size: 15px; } .es-ph.immediate { color: #ff8a96; } .es-ph.future { color: var(--at); }
.es-line { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--fl); border-radius: 14px; padding: 10px; margin: 8px 0; }
.es-line.pr-future { border-left-color: var(--at); }
.es-line.dc-approved { box-shadow: inset 0 0 0 2px rgba(61,220,132,.6); } .es-line.dc-declined { opacity: .6; }
.es-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.es-n { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.es-prio { display: flex; gap: 4px; }
.es-prio button, .es-dec button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); padding: 4px 10px; cursor: pointer; font-weight: 600; }
.es-prio button.on { background: var(--texas); border-color: var(--cyan); }
.es-del { margin-left: auto; min-height: 40px; }
.es-f { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.es-f input, .es-f select, .es-f textarea { min-height: 44px; font-size: 15px; background: #050a14; border: 1px solid #22324f; border-radius: 8px; padding: 6px 8px; color: #fff; width: 100%; }
.es-descf { margin-top: 8px; } .es-descf textarea { min-height: 52px; }
.es-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; align-items: end; }
.es-op { grid-column: span 2; }
.es-chk { display: flex; align-items: center; gap: 6px; font-size: 12px; min-height: 44px; }
.es-chk input { width: 22px; height: 22px; }
.es-cat { min-height: 44px; font-size: 12px; }
.es-lf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.es-dec { display: flex; gap: 6px; }
.es-dec .ok.on { background: var(--ok); color: #06210f; border-color: var(--ok); } .es-dec .no.on { background: var(--fl); color: #fff; border-color: var(--fl); }
.es-lt { font-size: 13px; }
.es-discrow { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.es-discrow input { width: 120px; min-height: 44px; }
.es-tot { margin: 10px 0 0 auto; border-collapse: collapse; min-width: min(100%, 420px); font-size: 14px; }
.es-tot th, .es-tot td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.es-tot td:first-child { text-align: left; color: var(--muted); }
.es-grand td { font-weight: 800; font-size: 17px; color: var(--gold) !important; border-top: 2px solid var(--gold); }
.es-sign { margin-top: 16px; }
.es-sign input, .es-sign select { min-height: 48px; width: 100%; }
.es-settings { margin-top: 16px; background: #0a1630; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.es-settings summary { cursor: pointer; font-weight: 700; color: var(--gold); min-height: 40px; display: flex; align-items: center; }
.es-settings label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.es-settings label.check-row { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; color: var(--text); }
.es-settings input:not([type=checkbox]):not([type=radio]), .es-settings textarea { min-height: 44px; }

/* local KB */
.kbl-banner { background: rgba(61,220,132,.08); border: 1px dashed var(--green); border-radius: 10px; padding: 8px 12px; color: #c9f5dc; font-size: 13px; }
.kbl-card ol { margin: 4px 0 4px 18px; padding: 0; }
.kbl-edit { max-width: 760px; }
.kbl-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.kbl-edit input, .kbl-edit select, .kbl-edit textarea { min-height: 44px; width: 100%; }
#kbl-modal { z-index: 95; }

/* tablet and up */
@media (min-width: 720px) {
  .ck-sign { grid-template-columns: 1fr 1fr; }
  .ck-lbl { font-size: 17px; }
  .ck-tgrid { grid-template-columns: 1fr 180px 1fr; }
  .ck-car { max-width: 180px; }
  .ck-small { font-size: 12px; }
}
@media (max-width: 420px) {
  .ck-btns { gap: 4px; }
  .ck-b { font-size: 13px; min-height: 54px; }
  .ck-head { top: 64px; padding: 6px 8px; }
  .ck-headrow .ck-logo { height: 24px; }
  .ck-brandmark .ck-make { font-size: 18px; }
  .ck-tgrid { grid-template-columns: 1fr 96px 1fr; gap: 5px; }
  .ck-corner { padding: 5px; }
  .ck-tv { font-size: 13px; }
  .ck-part { grid-template-columns: 1fr 1fr; }
  .es-op { grid-column: span 1; }
}
@media print {
  .ck-head, .ck-nav, #tk-fab { display: none !important; }
}
/* inspection/estimate mode: keep the screen for the checklist (only while those views are open) */
body.ck-on .demo-banner { position: static; }
@media (max-width: 720px) {
  body.ck-on .app-header { position: static; }
  body.ck-on .ck-head { top: 0; }
}
/* compact phone app header (all views) */
@media (max-width: 480px) {
  .app-header { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .app-header img.logo { height: 34px; }
  .header-titles { flex: 1 1 140px; }
  .header-titles p { display: none; }
  .header-actions { width: 100%; justify-content: flex-end; }
  .nav { padding: 8px 12px; gap: 5px; }
  .nav button { padding: 7px 10px; font-size: 14px; }
}
/* Tilso cards FAB would cover the status buttons on phones during an inspection: shrink to an icon */
@media (max-width: 720px) {
  body.ck-on #tk-fab { font-size: 0 !important; min-height: 44px !important; width: 48px; padding: 0 !important; bottom: 76px !important; opacity: .85; }
  body.ck-on #tk-fab::before { content: "⚡"; font-size: 20px; }
}
/* estimate compact line */
.es-line.compact { padding: 10px 12px; }
.es-line.compact .es-lh { margin-bottom: 4px; }
.es-cprio { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,77,94,.14); color: #ffb3bd; }
.es-cprio.future { background: rgba(245,166,35,.14); color: #ffd789; }
.es-cdesc { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 2px 0; }
.es-cop { font-size: 13px; color: var(--muted); margin: 2px 0; }
.es-csum { font-size: 13px; color: var(--text); margin: 4px 0 6px; line-height: 1.5; }
.es-miss { color: #ff9aa6; font-weight: 700; }
.es-edit { min-height: 36px; padding: 4px 10px; font-size: 13px; }
/* ===== checklist plus: map, network, DLC, ADAS inventory, tire report ===== */
.px-lbl { font-size: 12px; color: var(--muted); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.px-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.px-seg button { flex: 1 1 0; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-weight: 700; cursor: pointer; padding: 6px 8px; }
.px-seg button.on { background: var(--texas); border-color: var(--cyan); color: #fff; }
.px-seg.sm button { min-height: 42px; font-size: 13px; }
.px-seg .b-online.on, .px-seg .b-ok.on { background: #154d2f; border-color: #3ddc84; }
.px-seg .b-dtc.on, .px-seg .b-cal.on { background: #4d3a10; border-color: #f5a623; }
.px-seg .b-nocomm.on, .px-seg .b-fail.on { background: #4d1018; border-color: #ff4d5e; }
.px-seg .b-na.on { background: #2a3650; border-color: #8ea0b8; }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.px-chip { border: 1px solid var(--line); background: var(--bg-3); color: var(--text); border-radius: 999px; padding: 8px 12px; min-height: 40px; cursor: pointer; font-size: 13px; }
.px-chip.on { background: #06324a; border-color: var(--cyan); color: var(--cyan); font-weight: 700; }
.px-archsvg { width: 100%; max-width: 460px; display: block; margin: 6px auto; background: #070d1a; border-radius: 10px; }
.px-sum { font-weight: 700; margin: 6px 0; }
.px-mod, .px-sens { border: 1px solid var(--line); border-left: 5px solid #2a3650; border-radius: 12px; padding: 8px; margin: 8px 0; background: rgba(255,255,255,.02); }
.px-mod.st-pass, .px-sens.st-pass { border-left-color: #3ddc84; } .px-mod.st-att, .px-sens.st-att { border-left-color: #f5a623; } .px-mod.st-fail, .px-sens.st-fail { border-left-color: #ff4d5e; } .px-sens.st-na { border-left-color: #5b6b84; }
.px-modh { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.px-modh b { flex: 1; font-size: 14px; }
.px-modn { flex: 1; min-width: 0; }
.px-mod input, .px-mod select, .px-sens input, .px-sens select, .px-addrow select, .px-tmeta select { background: #070d1a; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px; min-height: 44px; font-size: 15px; }
.px-moddtc { width: 100%; margin-top: 6px; box-sizing: border-box; }
.px-x { min-height: 40px; padding: 4px 10px; }
.px-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.px-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.px-row2 input { min-width: 0; }
.px-mini { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); gap: 2px; }
.px-addrow { display: flex; gap: 6px; margin: 8px 0; } .px-addrow select { flex: 1; min-width: 0; }
.px-sens.flash, .px-mod.flash { outline: 3px solid var(--cyan); }
.px-dlcwrap { margin: 8px 0; } .px-dlc { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.px-mapmini { max-width: 300px; margin: 6px auto; background: #070d1a; border-radius: 14px; }
.px-map { width: 100%; display: block; touch-action: manipulation; }
.px-map .px-zone, .px-map .px-node, .px-map .px-sdot, .px-map .px-cone { cursor: pointer; }
.px-map .px-zone:hover { fill-opacity: .3; }
.px-mapview .px-mapgrid { display: grid; gap: 12px; }
.px-mapbox { background: #070d1a; border: 1px solid var(--line); border-radius: 16px; padding: 6px; max-width: 520px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.px-zbtns { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; } .px-zbtns .btn { flex: 1; min-height: 46px; }
.px-sheet { background: var(--bg-2, #0c1424); border: 1px solid var(--cyan); border-radius: 16px; padding: 12px; }
.px-sheeth { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; } .px-sheeth b { font-size: 16px; }
.px-sitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-left: 5px solid #2a3650; color: var(--text); border-radius: 10px; padding: 10px; margin: 6px 0; min-height: 48px; cursor: pointer; font-size: 14px; }
.px-sitem.st-pass { border-left-color: #3ddc84; } .px-sitem.st-att { border-left-color: #f5a623; } .px-sitem.st-fail { border-left-color: #ff4d5e; } .px-sitem.st-na { border-left-color: #5b6b84; }
.px-sline { margin: 4px 0; font-size: 14px; }
.ck-tab.px-maptab { background: #06324a; border-color: var(--cyan); color: var(--cyan); }
.px-tirex { margin-top: 10px; display: grid; gap: 10px; }
.px-tmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.px-tmeta label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
.px-tmeta .px-chk { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.px-tmeta .px-chk input { width: 24px; height: 24px; }
.px-bdbox, .px-rotbox { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(255,255,255,.02); }
.px-bdbox h4, .px-rotbox h4 { margin: 0 0 8px; }
.px-bdrow { display: grid; grid-template-columns: 34px 1fr 64px; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.px-bdbar { position: relative; height: 16px; background: #0a1222; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.px-bdbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.px-bdbar em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #eef6ff; opacity: .7; }
.px-rotbox { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.px-rotbox h4 { grid-column: 1 / -1; }
.px-rot { width: 100%; background: #070d1a; border-radius: 10px; }
.px-bd { color: #cfe3ff; }
@media (max-width: 420px) { .px-tmeta { grid-template-columns: 1fr; } .px-rotbox { grid-template-columns: 120px 1fr; } }
@media (min-width: 720px) { .px-mapview .px-mapgrid { grid-template-columns: minmax(320px, 1fr) 1fr; align-items: start; } .px-mapview .px-sheet { position: sticky; top: 260px; } .px-tirex { grid-template-columns: 1fr 1fr; } .px-tmeta { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); } }
/* ===== Diagnostic Hub ===== */
.dh-wrap { max-width: 1100px; margin: 0 auto; }
.dh-head { background: rgba(9,15,28,.97); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.dh-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.dh-brand .ck-logo { height: 34px; }
.dh-title { margin: 0; color: var(--gold, #e8b84a); }
.dh-veh { text-align: right; }
.dh-ymm { font-family: Orbitron, sans-serif; color: var(--cyan); font-size: 14px; letter-spacing: .04em; }
.dh-vin { font-size: 12px; color: var(--muted); } .dh-vin b { color: var(--cyan); letter-spacing: .08em; }
.dh-pickbtn { margin-top: 8px; min-height: 40px; }
.dh-search { display: flex; gap: 8px; margin-top: 10px; }
.dh-search input { flex: 1; min-width: 0; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--cyan); background: #070d1a; color: var(--text); min-height: 52px; }
.dh-search .btn { min-height: 52px; padding: 0 16px; font-weight: 700; }
.dh-ctx { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.dh-chip { border: 1px solid var(--gold, #e8b84a); background: #2a2210; color: #ffd789; border-radius: 999px; padding: 6px 12px; font-weight: 700; min-height: 36px; cursor: pointer; }
.dh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dh-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, #101c33, #0a1222); color: var(--text); cursor: pointer; text-align: center; transition: transform .08s; }
.dh-tile:active { transform: scale(.97); }
.dh-tile .dh-ic { width: 38px; height: 38px; color: var(--tc); }
.dh-tile.has { border-color: var(--tc); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 18px -8px var(--tc); }
.dh-tl { font-size: 13px; font-weight: 700; line-height: 1.2; }
.dh-n { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--tc, #00d4ff); color: #05080f; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.dh-n.zero { background: #1d2a44; color: #8ea0b8; }
.dh-dh h2 .dh-n { position: static; margin-left: 6px; }
.dh-detail { background: rgba(9,15,28,.6); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.dh-dh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-dh h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--tc); }
.dh-dh h2 .dh-ic { width: 28px; height: 28px; }
.dh-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; -webkit-overflow-scrolling: touch; }
.dh-mini { position: relative; flex: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #0d1a30; color: var(--tc); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dh-mini .dh-ic { width: 24px; height: 24px; }
.dh-mini.on { border-color: var(--tc); background: #13233f; }
.dh-mini i { position: absolute; bottom: 2px; right: 4px; font-style: normal; font-size: 10px; color: #eef6ff; font-weight: 700; }
.dh-row { border: 1px solid var(--line); border-left: 4px solid var(--tc, #00d4ff); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: rgba(255,255,255,.02); }
.dh-detail .dh-row { border-left-color: var(--line); }
.dh-rowh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .dh-rowh b { flex: 1 1 180px; font-size: 15px; }
.dh-cnt { font-weight: 800; color: var(--gold, #e8b84a); }
.dh-sub { font-size: 13px; color: #cfe3ff; margin-top: 4px; line-height: 1.4; }
.dh-steps { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: var(--muted); }
.dh-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.dh-acts .btn { min-height: 42px; }
.dh-acts.big .btn { flex: 1 1 200px; min-height: 52px; font-weight: 700; }
.dh-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #1d2a44; color: #cfe3ff; letter-spacing: .03em; }
.dh-badge.tilso { background: #3a2e10; color: #ffd789; } .dh-badge.own { background: #123d28; color: #9ff0c2; } .dh-badge.local { background: #2a1840; color: #d9c2ff; }
.dh-badge.ex { background: #4d3a10; color: #ffd789; } .dh-badge.nhtsa { background: #3a1018; color: #ffc2ca; } .dh-badge.hit { background: var(--cyan); color: #05080f; } .dh-badge.insp { background: #06324a; color: var(--cyan); }
.dh-badge.st-fail { background: #4d1018; color: #ffb3bd; } .dh-badge.st-att { background: #4d3a10; color: #ffd789; }
.dh-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; color: #cfe3ff; }
.dh-verify { margin-top: 12px; }
.dh-verify .btn { min-height: 44px; margin: 3px 2px; }
.dh-kv { width: 100%; border-collapse: collapse; font-size: 14px; } .dh-kv td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; } .dh-kv td:first-child { color: var(--muted); width: 45%; }
.dh-detail h4 { margin: 14px 0 4px; color: var(--gold, #e8b84a); }
.dh-free { display: grid; gap: 8px; margin-top: 8px; } .dh-free input { font-size: 16px; padding: 12px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #070d1a; color: var(--text); } .dh-free .btn { min-height: 52px; font-weight: 700; }
.dh-cases { display: grid; gap: 8px; }
.dh-case { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); cursor: pointer; min-height: 56px; }
.dh-casebtn { margin: 10px 0; } .dh-casebtn .btn { min-height: 52px; width: 100%; font-weight: 700; font-size: 16px; }
@media (max-width: 420px) { .dh-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .dh-tile { min-height: 100px; padding: 10px 4px; } .dh-tile .dh-ic { width: 32px; height: 32px; } .dh-tl { font-size: 12px; } .dh-veh { text-align: left; } }
@media (min-width: 720px) { .dh-grid { grid-template-columns: repeat(4, 1fr); } .dh-free { grid-template-columns: 1fr 1fr 2fr auto; } .dh-cases { grid-template-columns: 1fr 1fr; } }
