.truck-screen .section-head {margin-bottom:12px}
.truck-trip-info:not([hidden]) {
  display:flex;align-items:center;gap:12px;min-width:0;margin-top:12px;
  padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);
}
.truck-trip-mark {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:11px;background:var(--tint);color:var(--accent)}
.truck-trip-mark svg {width:21px;height:21px}
.truck-trip-info>div {display:grid;min-width:0;gap:3px;overflow-wrap:anywhere}
.truck-trip-info strong {font-size:16px;line-height:1.25}
.truck-trip-info>div>span {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:13px}
.truck-trip-info>div svg,.truck-status-pill svg {width:14px;height:14px;flex:none}
.truck-status-pill {display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.3}
.truck-status-pill.ready {color:var(--success);background:var(--success-bg)}
.truck-status-message {overflow-wrap:anywhere}
.truck-screen #status {display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:14px;margin:0 0 16px}
.truck-screen #status.warn {color:var(--warning)}
.truck-summary {display:grid;gap:9px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.truck-summary>div {display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.truck-summary strong {font-size:19px}.truck-summary small,.truck-unit small {color:var(--muted)}
.truck-controls,.truck-row-actions,.truck-manual form {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.truck-controls {margin:14px 0 8px}.truck-controls label {cursor:pointer}
.truck-camera {position:relative;max-width:480px;border-radius:12px;overflow:hidden;background:var(--ink)}
.truck-camera video {width:100%;max-height:36dvh;display:block;object-fit:cover}
.truck-camera:has(video[hidden]) {display:none}
.truck-camera button {position:absolute;bottom:8px;right:8px}
.truck-manual summary {cursor:pointer;font-size:14px;color:var(--muted);width:fit-content;padding:5px 0}
.truck-manual form {align-items:end;padding:8px 0}
.truck-screen #feedback:not(:empty) {margin:10px 0;background:var(--tint);border-radius:8px;padding:8px 12px}
.truck-screen h2 {font-size:17px;margin:20px 0 8px}
.truck-screen ul {list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.truck-screen li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;overflow-wrap:anywhere}
.truck-screen li+li {border-top:1px solid var(--line)}
.truck-unit {display:grid;gap:2px;min-width:0}.truck-row-actions a,.truck-screen #saved a {font-size:14px;color:var(--accent);font-weight:600}
.truck-row-actions a {padding:8px 4px}
@media(max-width:600px){.truck-screen li {padding:12px}.truck-row-actions {gap:6px}.truck-row-actions .button {min-height:44px}.truck-controls .button {min-height:44px}}
.truck-summary .truck-hint {font-size:13px;color:var(--muted)}
.truck-identity {display:flex;align-items:center;gap:10px;min-width:0}
.truck-loaded-mark {display:grid;place-items:center;flex:none;width:32px;height:32px;background:var(--success-bg);color:var(--success);border-radius:50%}
.truck-loaded-mark svg {width:18px;height:18px}
.truck-loaded-row [data-unload] {background:transparent;border-color:transparent;color:var(--muted)}
.truck-loaded-row [data-unload]:hover {background:var(--soft);color:var(--ink)}
.truck-screen #feedback.truck-confirmed {display:flex;align-items:center;gap:8px;background:var(--success-bg);color:var(--success)}
.truck-screen #feedback.truck-silent {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}

.truck-other-panel:not([hidden]) {display:grid;gap:13px;padding:14px;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.truck-controls [aria-expanded=true] svg {transform:rotate(180deg)}

@media screen and (max-width:800px), screen and (max-width:1024px) and (pointer:coarse) {
  .truck-controls {display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px;margin:12px 0 8px}
  .truck-camera {max-width:none}
  .truck-camera #stop {left:8px;right:8px;min-height:44px}
  .truck-controls>.button,.truck-other-panel .button {width:100%;min-width:0;min-height:46px;padding:8px;justify-content:center;text-align:center;white-space:normal;line-height:1.25}
  .truck-other-panel {min-width:0;grid-column:1/-1}
  .truck-other-panel form {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:end}
  .truck-other-panel form input {min-width:0;width:100%}
}
@media screen and (max-width:640px) {
  .dep-list {gap:12px}
  .dep-site {border-radius:18px}
  .dep-site header {display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;padding:16px;align-items:start}
  .dep-site header time {grid-column:1;grid-row:1/3;min-width:58px;padding:10px 7px;background:var(--tint);color:var(--accent);text-align:center;font-size:17px;border-radius:10px}
  .dep-site h2 {font-size:19px;line-height:1.2;margin:0 0 3px}
  .dep-site header .kit-status {grid-column:2;justify-self:start}
  .dep-missing {border-top:1px solid var(--line)}
  .dep-missing summary,.truck-help summary {display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer}
  .dep-missing summary::-webkit-details-marker,.truck-help summary::-webkit-details-marker {display:none}
  .dep-missing summary {padding:9px 16px;font-size:14px;font-weight:600}
  .dep-missing summary b,.truck-group-count {display:inline-grid;min-width:21px;padding:1px 5px;place-items:center;background:var(--soft);border-radius:7px;font-weight:600;font-size:12px;line-height:18px;color:var(--muted)}
  .dep-missing summary svg,.truck-help summary svg {width:15px;height:15px;margin-left:auto;flex:none;color:var(--muted)}
  .dep-missing[open]>summary svg,.truck-help[open]>summary svg {transform:rotate(180deg)}
  .dep-site li {display:grid;grid-template-columns:42px minmax(0,1fr);gap:7px 12px;padding:12px 16px}
  .dep-site li img,.dep-site li .no-photo {width:42px;height:42px}
  .dep-unit {line-height:1.35}
  .dep-unit a {font-size:15px}
  .dep-actions:not(:empty) {grid-column:1/-1;width:100%;padding:0;gap:7px;display:grid;grid-template-columns:minmax(0,1fr)}
  .dep-actions .button {width:100%;min-width:0;min-height:46px;padding:6px 8px;white-space:normal;text-align:center}
  .dep-actions:empty {display:none}
  .dep-site .load-entry {display:grid;grid-template-columns:minmax(0,1fr);padding:12px 16px;gap:8px}
  .dep-site .load-entry a {width:100%;min-height:46px;background:var(--tint);color:var(--accent);box-shadow:none;border:1px solid transparent}
  .dep-blank,.dep-summary {background:var(--surface);border-radius:16px}
  .dep-blank {padding:25px 18px}
  .truck-screen #status {gap:6px;font-size:13px;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}
  .truck-screen #status.warn {padding:10px 12px;background:var(--warning-bg);border-radius:10px}
  .truck-screen #status .button {display:flex;width:100%;margin-top:2px;min-height:44px}
  .truck-summary {gap:9px;padding:16px;border-radius:16px}
  .truck-summary strong {font-size:20px;line-height:1.2}
  .truck-summary progress {height:7px;margin:0}
  .truck-screen h2 {display:flex;align-items:center;gap:8px;margin:22px 0 9px}
  .truck-screen #lists ul,.truck-screen #saved ul {border-radius:16px;overflow:hidden}
  .truck-screen #lists li,.truck-screen #saved li:has(.truck-row-actions) {
    display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:13px 14px
  }
  .truck-unit strong {font-size:15px;line-height:1.3}
  .truck-unit small:empty {display:none}
  .truck-row-actions,.truck-help div {display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  .truck-row-actions .button,.truck-help a,.truck-row-actions>a {
    width:100%;min-width:0;min-height:44px;padding:8px 10px;text-align:center;justify-content:center
  }
  .truck-row-actions [data-load] {background:var(--tint);color:var(--accent);box-shadow:none}
  .truck-row-actions [data-load]:hover {background:var(--tint-subtle)}
  .truck-row-actions .truck-help {border-top:1px solid var(--line);margin-top:2px}
  .truck-help summary {font-size:13px;color:var(--muted);font-weight:600}
  .truck-help a,.truck-row-actions>a {
    display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface)
  }
  .truck-screen #saved>ul>li {padding:0}
  .truck-screen #saved li>a {display:block;padding:14px;width:100%}
  .dispatch-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;border:1px solid var(--line);padding:4px;border-radius:14px}
  .dispatch-tabs button {display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:4px;padding:7px 10px;font-size:13px;font-weight:600;text-align:left}
  .dispatch-tabs button span {min-width:20px;margin:0;padding:1px 4px;text-align:center;border-radius:6px;background:var(--surface);font-size:12px}
  .dispatch-tabs button[aria-pressed=true] {color:var(--accent);border-color:transparent}
  .dispatch-tabs button[aria-pressed=true] span {background:var(--accent-fill)}
  .dispatch-row {padding:15px;gap:12px;border-radius:17px}
  .dispatch-row .row-identity img,.dispatch-row .row-identity .no-photo {width:52px;height:52px;object-fit:cover;border-radius:11px}
  .dispatch-action:not(:has(*)) {display:none}
  .dispatch-action {gap:7px}
  .dispatch-action .button {background:var(--tint);color:var(--accent);border-color:transparent;min-height:44px}
  .project-grid .project-tile {display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-content:start;align-items:start;gap:3px 9px;padding:15px;border-radius:17px}
  .project-tile header {display:contents}
  .project-tile .site-symbol {width:38px;height:38px;border-radius:10px;grid-column:1;grid-row:1/3}
  .project-tile h2 {grid-column:2;grid-row:1;font-size:17px;line-height:1.24;overflow-wrap:anywhere}
  .project-tile header .kit-status {grid-column:3;grid-row:1;max-width:104px;text-align:left;line-height:1.2}
  .project-tile p {grid-column:2/4;grid-row:2;line-height:1.35;margin:0}
  .project-tile dl,.project-tile footer {grid-column:1/-1;width:100%}
  .project-tile dl {grid-template-columns:auto minmax(0,1fr);margin:10px 0;gap:5px 12px;font-size:13px}
  .project-tile dd {text-align:right;overflow-wrap:anywhere}
  .project-tile footer {padding-top:10px}
  .kit-page .site-overview {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
  .kit-page .site-overview>div:first-child {grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
  .kit-page .site-overview progress {grid-column:1/-1;max-width:none;width:100%;margin:0;height:6px}
}

.trip-day-switch {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;max-width:470px;padding:4px;margin:0 0 16px;background:#e8ecf4;border-radius:16px}
.trip-day-switch>a,.trip-day-switch>button {min-width:0;min-height:54px;display:grid;align-content:center;justify-items:center;gap:2px;padding:6px 2px;border:1px solid transparent;border-radius:12px;text-decoration:none;background:transparent;color:var(--ink);font:inherit;line-height:1.2;text-align:center}
.trip-day-switch strong {font-size:14px;font-weight:650}
.trip-day-switch small {display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
.trip-day-switch svg {width:13px;height:13px;flex:none}
.trip-day-switch [aria-current] {background:var(--surface);border-color:#dce1ef;box-shadow:0 1px 4px #20243615;color:var(--accent)}
.trip-day-switch [aria-current] small {color:var(--accent)}
.trip-saved {display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:14px;font-weight:600;margin:-9px 0 7px}
.trip-card header {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:16px}
.trip-card header>div {grid-row:1;grid-column:1}
.trip-card header h2 {line-height:1.2;margin-bottom:5px}
.trip-card header small {display:flex;align-items:center;gap:5px}
.trip-card header small svg {width:14px;height:14px;flex:none}
.trip-card header time {grid-column:2;grid-row:1;display:flex;align-items:center;gap:5px;padding:7px 9px;border-radius:10px;background:var(--tint);color:var(--accent);font-size:17px;font-weight:700;line-height:1.15}
.trip-card header time svg {width:16px;height:16px}
.trip-readiness {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:7px;padding:0 16px 14px;font-size:13px}
.trip-readiness>span {color:var(--muted)}
.trip-readiness>strong {color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.trip-readiness progress {grid-column:1/-1;width:100%;max-width:none;height:6px;margin:0;border:0;border-radius:5px;appearance:none;background:var(--soft);color:var(--accent);overflow:hidden}
.trip-readiness progress::-webkit-progress-bar {background:var(--soft)}
.trip-readiness progress::-webkit-progress-value {background:var(--accent-stroke);border-radius:5px}
.trip-readiness progress::-moz-progress-bar {background:var(--accent-stroke)}
.trip-readiness.complete progress::-webkit-progress-value {background:var(--success)}
.trip-readiness.complete progress::-moz-progress-bar {background:var(--success)}
.move-empty {display:grid;justify-items:center;gap:12px;padding:26px 16px;border:1px solid var(--line);border-radius:17px;background:var(--surface);text-align:center}
.move-empty>svg {width:40px;height:40px;padding:9px;border-radius:13px;background:var(--tint);color:var(--accent)}
.move-empty h2 {font-size:17px;line-height:1.25}
.move-card .dispatch-action small {display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.move-card .dispatch-action small svg {width:14px;height:14px;flex:none}
.dispatch-list + .booking-overview {margin-top:18px}
@media screen and (max-width:640px) {
  .trip-day-switch {max-width:none}
  .trip-card header {padding-bottom:13px}
  .trip-card .load-entry {padding:12px 16px 14px}
  .trip-card .load-entry .button {width:100%;background:var(--accent-fill);color:var(--accent-on);border-radius:12px}
  .trip-card .dep-missing summary {font-weight:600;justify-content:initial}
  .dispatch-tabs {background:#e8ecf4;border-radius:16px;margin-bottom:14px}
  .dispatch-tabs button {min-height:45px;border-radius:12px}
  .dispatch-tabs button[aria-pressed=true] {background:var(--tint);border:1px solid var(--accent-border)}
  .move-card {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;background:var(--surface);gap:11px}
  .move-card .row-identity {align-items:center}
  .move-card .row-identity>div {min-width:0;display:grid;justify-items:start;gap:4px}
  .move-card .row-identity h3 {margin:0;line-height:1.25}
  .move-card .dispatch-action {grid-column:1;justify-self:stretch;gap:8px}
  .move-card .dispatch-action>.button {width:100%;min-height:46px;border-radius:12px;white-space:normal;text-align:center}
  #dialog [data-trip-day] .calendar-grid button {min-height:38px}
}
