/* Wet Check 52.2 "Steady Hands" — tap targets, setup checkboxes, short-landscape screens. CSS only; no layout of the driving HUD changes
   (the visual size of every control stays the same; the touch area grows invisibly or by a few px). */

/* ---- WC-006: "Job ▾" chip — a real 44 px box, drawn smaller. The negative block margin keeps the HUD layout exactly as in 52.1. ---- */
.wch-chip,body.wch-phone .wch-chip{position:relative;isolation:isolate;min-height:44px;min-width:44px;margin-block:-7px;border-color:transparent;background:transparent;justify-content:center}
.wch-chip::before{content:"";position:absolute;inset:7px 0;z-index:-1;border-radius:999px;border:2px solid #16273b;background:#fff}
body.wch-phone .wch-chip::after{content:none}
.wch-chip:focus-visible{outline:3px solid #ffd23f;outline-offset:-3px;border-radius:999px}

/* ---- WC-006: Soaky Sense and the other small panel buttons ---- */
.wc-sense,#wcSense{min-height:44px;box-sizing:border-box}
#dotFieldDockV25 details>summary,.wch-more details>summary{min-height:44px;display:flex;align-items:center;box-sizing:border-box;cursor:pointer}
#brief .row>button,#board .row>button,.df25-row button,.df25-action-row button{min-height:44px;box-sizing:border-box}
#brief .row>button.hear{min-width:44px}

/* ---- WC-007: setup / title checkboxes — the whole row (label) is the hit target; the input itself is a 44 px box that draws a 24 px check ---- */
#dotSetup .ds-extra,#title .dt212-ack{min-height:48px;box-sizing:border-box;touch-action:manipulation;-webkit-tap-highlight-color:rgba(8,124,165,.18)}
#dotSetup .ds-extra input[type=checkbox],#title .dt212-ack input[type=checkbox]{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:44px;height:44px;flex:0 0 44px;margin:-10px -10px -10px -10px;padding:0;border:0;border-radius:12px;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:26px 26px;cursor:pointer;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='5' fill='%23fff' stroke='%23587a86' stroke-width='2'/%3E%3C/svg%3E")}
#dotSetup .ds-extra input[type=checkbox]:checked,#title .dt212-ack input[type=checkbox]:checked{
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='5' fill='%23087ca5' stroke='%23065d7b' stroke-width='2'/%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#title .dt212-ack input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='2' y='2' width='22' height='22' rx='5' fill='%23376760' stroke='%23284d48' stroke-width='2'/%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#dotSetup .ds-extra input[type=checkbox]:focus-visible,#title .dt212-ack input[type=checkbox]:focus-visible{outline:3px solid #ffd23f;outline-offset:-4px}
#dotSetup .ds-extra input[type=checkbox]:disabled,#title .dt212-ack input[type=checkbox]:disabled{opacity:.55;cursor:default}

/* ---- WC-006: job-board secondary buttons (Replay scene / Story & cast / Upgrades / Achievements) were 40 px tall ---- */
#board .wc-btn,#brief .wc-btn{min-height:44px;box-sizing:border-box}
.wc-diff-l{font-size:11px}

/* ---- WC-008 / WC-010: short landscape phones (844x390, 932x430, 667x375, 821x462, 907x510).
   1. The Menu button no longer sits on top of the board / brief card: it moves up and the overlay starts below it.
   2. Board: tighter header, three job columns when wide enough, no 10 px text.
   3. Brief + field-prep: two columns, so the tip is never cut off and the Roll / Head-out buttons stay on screen. ---- */
@media (max-height:540px) and (orientation:landscape){
 body:not(.driving) #top{top:calc(env(safe-area-inset-top,0px) + 6px)}
 #board,#brief{inset:calc(env(safe-area-inset-top,0px) + 52px) 0 0 0;padding-top:6px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px)}
 #board::before,#brief::before{content:"";position:fixed;left:0;right:0;top:0;height:calc(env(safe-area-inset-top,0px) + 52px);background:rgba(22,39,59,.42);pointer-events:none}
 /* board */
 #board .card{padding:12px 16px;gap:10px}
 #board .wo-head{padding-bottom:4px}
 #board .lead{margin:0}
 #board .crewbar{padding:4px 8px}
 #board .jobs{gap:8px}
 #board .job{min-height:0;padding:8px 10px;gap:3px}
 #board .job .jt{gap:6px}
 #board .job b{font-size:16px}
 #board .row{padding-top:2px}
 /* brief (work order) */
 #brief .card{max-width:780px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 18px;padding:12px 18px;align-items:start}
 #brief .card>.wo-head,#brief .card>#wAddr,#brief .card>#dotDrivingBrief,#brief .card>.row{grid-column:1/-1}
 #brief .card>#wAddr{margin:0;font-size:20px}
 #brief .card>.wo-head{grid-row:1}#brief .card>#wAddr{grid-row:2}
 #brief .card>.wo{grid-column:1;grid-row:3/span 3;gap:1px 12px;font-size:14px}
 #brief .card>.radio{grid-column:2;grid-row:3}#brief .card>.tip{grid-column:2;grid-row:4}#brief .card>#wCrew{grid-column:2;grid-row:5}
 #brief .card>#dotDrivingBrief{grid-row:6}#brief .card>.row{grid-row:7}
 #brief .wo dt{font-size:11px}
 #brief .wo dt{padding-top:2px}
 #brief .radio{padding:6px 10px}
 #brief .tip{font-size:14px}
 #brief .crewbar{padding:4px 8px}
 #brief .card>.row{position:sticky;bottom:-6px;z-index:2;background:inherit;padding:6px 0 2px;box-shadow:0 -6px 8px -4px rgba(16,44,59,.25)}
 /* field-prep screen (first job card) */
 .df25-prep{padding:8px 12px}
 .df25-prep-card{padding:10px 18px 0;max-height:calc(100dvh - 16px)}
 .df25-prep h2{font-size:clamp(18px,3.4vw,24px);margin:2px 0 6px}
 .df25-prep-card p{margin:4px 0}
 .df25-prep .df25-quote{font-size:15px;margin:6px 0}
 .df25-prep-card .df25-row{position:sticky;bottom:0;z-index:2;background:#fff5dd;padding:8px 0 10px;margin-top:6px;gap:8px}
 .df25-prep-card .df25-row button{font-size:15px;padding:8px 12px}
}
@media (max-height:540px) and (orientation:landscape) and (min-width:760px){
 #board .jobs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
#board .type{font-size:11px}
