/* ASA OS technician phone home: My work + quick tire / brake entry (tech-home.js). Gloves first: every target is 56px
   or taller, one primary action per card, nothing behind hover, high contrast. Uses shop.css tokens (light and dark). */
.th { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.th-head { margin-bottom: 4px; }
.th-sec { display: flex; flex-direction: column; gap: 12px; }
.th-sec-h { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 6px 0 0; }
.th-n { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--ink); font: 600 15px/28px var(--font); text-align: center; }
.th-empty { color: var(--ink-2); margin: 0; font-size: 16px; }
.th-skel-big { height: 180px; border-radius: var(--r-l); }

/* big buttons (gloves) */
.shop-on .th-big, .th-big { min-height: 56px; padding: 0 22px; border-radius: 16px; font: 600 18px/1.1 var(--font); letter-spacing: -0.01em; }
.shop-on .th-big.is-pause { background: var(--amber-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--amber); }
.th-act { width: 100%; }
.th-warn { color: var(--red); font-weight: 600; margin: 8px 0 0; }
.th-msg:empty { display: none; }
.th-pend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.th-pend p { flex: 1 1 100%; margin: 0; }

/* Now */
.th-now { background: var(--surface); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 0 0 1px var(--hair-strong); display: flex; flex-direction: column; gap: 8px; }
.th-now.is-running { box-shadow: 0 0 0 2px var(--green); }
.th-now-l { font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.th-now.is-running .th-now-l { color: var(--green); }
.th-now-job { display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-height: 56px; justify-content: center; }
.th-now-job:hover { text-decoration: none; }
.th-now-t { font: 700 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.th-now-sub { color: var(--ink-2); font-size: 15px; margin: 0; }
.th-now-item { font: 600 18px/1.3 var(--font); color: var(--ink); }
.th-clock { font: 700 56px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--green); margin: 6px 0 2px; }
.th-now-a { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.th-now.is-idle .th-big { margin-top: 6px; }

/* job cards */
.th-job { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-strong); padding: 6px 6px 12px; display: flex; flex-direction: column; gap: 6px; }
.th-job > .th-act, .th-job > .th-ask, .th-job > .th-msg { margin: 0 10px; width: auto; }
.th-job-main { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 6px; border-radius: 14px; color: var(--ink); min-height: 56px; }
.th-job-main:hover { text-decoration: none; }
.th-job-main:active { background: var(--fill); }
@media (hover: hover) { .th-job-main:hover { background: var(--fill); } }   /* no sticky tint after a tap on phones */
.th-job-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-bay { font: 700 14px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--canvas); }
.th-ticket { font: 600 14px/1 var(--font); color: var(--ink-2); }
.th-when { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.th-when.is-late { color: var(--red); font-weight: 600; }
.th-veh { font: 700 20px/1.25 var(--font-display); letter-spacing: -0.015em; }
.th-cust { color: var(--ink-2); font-size: 15px; margin: 0; }
.th-concern { font-size: 16px; color: var(--ink); }
.th-work { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.th-work li { font: 600 16px/1.35 var(--font); padding-left: 18px; position: relative; }
.th-work li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.th-work li.s-in_progress::before { background: var(--amber); }
.th-work li.s-done { color: var(--ink-2); }
.th-work li.s-done::before { background: var(--green); }
.th-done { font-weight: 500; }
.th-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.th-pill { font: 700 15px/1 var(--font); padding: 8px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.th-pill.s-inspect, .th-pill.s-start { background: var(--accent-soft); color: var(--accent); }
.th-pill.s-working, .th-pill.s-ready { background: var(--green-soft); color: var(--green); }
.th-pill.s-qc, .th-pill.s-approval { background: var(--amber-soft); color: var(--amber); }
.th-step-sub { color: var(--ink-2); font-size: 14px; }
.th-ask { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; background: var(--fill); color: var(--ink-2); font: 600 17px/1 var(--font); }

/* quick entry */
.th-qi-head .pg-title { font-size: 26px; margin: 2px 0; }
.th-strip { display: flex; flex-direction: column; gap: 6px; }
.th-strip-l { font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.th-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shop-on .th-cell, .th-cell { min-height: 64px; flex-direction: column; gap: 4px; padding: 6px 4px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink); }
.shop-on .th-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink); }   /* ink, not the brand accent: a green brand must not read as "good" */
.th-cell-k { font: 700 13px/1 var(--font); color: var(--ink-2); }
.th-cell-v { font: 700 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.th-cell-u { font: 600 11px/1 var(--font); color: var(--amber); }
.th-cell.g-ok .th-cell-v { color: var(--green); }
.th-cell.g-attention .th-cell-v { color: var(--amber); }
.th-cell.g-urgent .th-cell-v { color: var(--red); }
.shop-on .th-cell.g-urgent { background: var(--red-soft); }
.shop-on .th-cell.g-attention { background: var(--amber-soft); }
.th-qi-card { background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: 0 0 0 1px var(--hair-strong); display: flex; flex-direction: column; gap: 12px; }
.th-qi-card.g-ok { box-shadow: 0 0 0 2px var(--green); }
.th-qi-card.g-attention { box-shadow: 0 0 0 2px var(--amber); }
.th-qi-card.g-urgent { box-shadow: 0 0 0 2px var(--red); }
.th-qi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.th-qi-top h2 { margin: 0; font-size: 22px; }
.th-qi-read { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px 0; }
.th-qi-val { font: 700 72px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--ink); }
.th-qi-val.is-saved { color: var(--ink-2); }
.th-qi-card.g-ok .th-qi-val:not(.is-saved) { color: var(--green); }
.th-qi-card.g-attention .th-qi-val:not(.is-saved) { color: var(--amber); }
.th-qi-card.g-urgent .th-qi-val:not(.is-saved) { color: var(--red); }
.th-qi-unit { font: 600 24px/1 var(--font); color: var(--ink-2); }
.th-qi-saved { text-align: center; color: var(--ink-2); margin: 0; font-size: 14px; }
.th-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shop-on .th-key, .th-key { min-height: 64px; border-radius: 16px; font: 600 28px/1 var(--font); background: var(--fill); color: var(--ink); }
.shop-on .th-key:active { background: var(--fill-hover); }
.shop-on .th-key.is-del { font-size: 24px; }
.th-qi-a { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.th-cam { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; min-width: 104px; padding: 0 16px; border-radius: 16px;
  background: var(--fill); color: var(--ink); font: 600 17px/1 var(--font); cursor: pointer; }
.th-cam-i { font-size: 20px; }
.th-cam .ji-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.th-save { width: 100%; }

/* phones: quick entry fits pad + Save on one screen (the tab bar steps aside, see shell.after in tech-home.js) */
@media (max-width: 860px) {
  body.th-focus .shop-tabbar { display: none; }
  body.shop-on.th-focus .main { padding-top: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .th-qi { gap: 12px; }
  .th-qi .job-back { margin-bottom: 0; }
  .th-qi-head .pg-kicker { margin: 0; }
  .th-qi-head .pg-title { font-size: 22px; margin: 0; }
  .shop-on .th-cell, .th-cell { min-height: 56px; }
  .th-qi-card { padding: 14px; gap: 10px; }
  .th-qi-top h2 { font-size: 19px; }
  .th-qi-read { padding: 0; }
  .th-qi-val { font-size: 56px; }
  .th-pad { gap: 8px; }
  .shop-on .th-key, .th-key { min-height: 56px; font-size: 26px; }
}
@media (max-width: 640px) {
  .th { gap: 14px; }
  .th-clock { font-size: 52px; }
}

/* batch 30 (UI direction): square cards and buttons like the rest of the shop */
.th-job { border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); }
.th-job-main { border-radius: 4px; }
.shop-on .th-big, .th-big, .th-ask { border-radius: 6px; }
.th-skel-big { border-radius: 4px; }
.th-now, .th-qi-card { border-radius: 6px; }
.shop-on .th-cell, .th-cell, .shop-on .th-key, .th-key { border-radius: 6px; }
