:root {
  --ink: #132019;
  --muted: #647168;
  --line: #dce5df;
  --soft-line: #eaf0ec;
  --paper: #ffffff;
  --canvas: #f1f5f2;
  --night: #07110c;
  --night-2: #102219;
  --green: #28c85d;
  --green-dark: #129343;
  --green-pale: #e7f9ec;
  --amber: #e79b21;
  --amber-pale: #fff6df;
  --red: #de4a4a;
  --red-pale: #fff0f0;
  --blue: #3978e9;
  --shadow: 0 12px 35px rgba(13, 38, 24, .09);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

/* Da Boss daily checklist test view */
.shift-checklists { display: grid; gap: 16px; max-width: 1050px; }
.shift-standalone-main { width: min(1120px, calc(100% - 32px)); margin: 28px auto 72px; }
.shift-standalone-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.shift-standalone-identity span { border-radius: 99px; padding: 5px 9px; color: var(--green-dark); background: var(--green-pale); font-size: 12px; font-weight: 850; }
.shift-back { margin-left: auto; color: #fff; font-weight: 750; text-decoration: none; padding: 10px; }
.shift-back:hover { color: var(--green); }
.tech-sidebar a.global-nav { text-decoration: none; }
.shift-heading, .shift-progress, .shift-section, .shift-actions { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.shift-heading { padding: 22px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.shift-heading h2 { font-size: clamp(24px, 3vw, 34px); margin: 5px 0; }
.shift-heading p { color: var(--muted); margin: 0; line-height: 1.5; }
.shift-heading label { display: grid; gap: 6px; min-width: 160px; font-size: 14px; font-weight: 750; }
.shift-heading input { padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.shift-kicker { color: var(--green-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.shift-tabs { display: flex; gap: 8px; }
.shift-tabs button { flex: 1; min-height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-weight: 800; color: var(--ink); }
.shift-tabs button[aria-selected="true"] { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.shift-progress { padding: 16px 20px; }
.shift-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.shift-progress span { color: var(--muted); }
.shift-track { height: 8px; border-radius: 99px; background: var(--soft-line); margin-top: 12px; overflow: hidden; }
.shift-track i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.shift-alert { background: var(--amber-pale); border: 1px solid #e8cc8c; border-radius: 10px; padding: 12px 16px; font-weight: 750; }
#shiftForm { display: grid; gap: 12px; }
.shift-section { overflow: hidden; }
.shift-section summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 18px 20px; font-size: 17px; font-weight: 800; list-style: none; }
.shift-section summary::-webkit-details-marker { display: none; }
.shift-section summary::after { content: '⌄'; margin-left: 10px; font-size: 18px; color: var(--green-dark); }
.shift-section[open] summary::after { transform: rotate(180deg); }
.shift-section summary small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.shift-rows { border-top: 1px solid var(--soft-line); }
.shift-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 310px); gap: 14px; padding: 13px 20px; align-items: center; border-top: 1px solid var(--soft-line); }
.shift-item:first-child { border-top: 0; }
.shift-item.shift-missing { background: var(--red-pale); }
.shift-item-with-proof { align-items: start; }
.shift-item-proof { grid-column: 1 / -1; display: grid; gap: 8px; margin: 5px -2px -1px; padding: 13px; border: 1px solid #b9d9c2; border-radius: 12px; background: #f4fbf6; }
.shift-item-proof.shift-missing { border-color: var(--red); background: var(--red-pale); }
.shift-proof-heading { display: grid; gap: 2px; }
.shift-proof-heading b { color: var(--green-dark); font-size: 14px; }
.shift-proof-heading small { color: var(--muted); font-size: 12px; }
.shift-label { display: grid; gap: 3px; }
.shift-label b { font-size: 15px; line-height: 1.35; }
.shift-label small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.shift-answer { display: grid; gap: 6px; }
.shift-answer select, .shift-input-wrap input, .shift-item-note { min-height: 44px; width: 100%; border: 1px solid #cbd9cf; border-radius: 9px; padding: 9px 11px; background: #fff; font-size: 15px; }
.shift-answer select:has(option:checked[value="attention"]) { border-color: var(--red); background: var(--red-pale); }
.shift-answer select:has(option:checked[value="ready"]) { border-color: var(--green-dark); background: var(--green-pale); }
.shift-input-wrap { display: flex; align-items: center; border: 1px solid #cbd9cf; border-radius: 9px; overflow: hidden; }
.shift-input-wrap input { border: 0; min-width: 0; }
.shift-input-wrap span { font-size: 13px; font-weight: 800; padding: 0 12px; color: var(--muted); }
.shift-photo { grid-template-columns: 1fr; }
.shift-upload { width: 100%; min-height: 85px; border: 2px dashed #9ac6a8; border-radius: 12px; background: #f5fcf7; color: var(--ink); font: inherit; display: grid; place-content: center; text-align: center; gap: 3px; padding: 13px; cursor: pointer; }
.shift-item-proof .shift-upload { min-height: 72px; background: #fff; }
.shift-upload:hover,.shift-upload:focus-visible { border-color: var(--green-dark); background: #eaf8ed; }
.shift-upload span { color: var(--muted); font-size: 13px; }
.shift-photo-result { color: var(--muted); font-size: 14px; }
.shift-photo-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shift-photo-count b { color: var(--green-dark); }
.shift-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 8px; }
.shift-photo-attached { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 8px 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf9; }
.shift-photo-attached img { width: 72px; height: 72px; object-fit: cover; border-radius: 9px; }
.shift-photo-attached span { min-width: 0; overflow-wrap: anywhere; }
.shift-photo-attached button { grid-column: 2; justify-self: start; }
.shift-battery-section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px; box-shadow: var(--shadow); display: grid; gap: 15px; }
.shift-battery-section h3 { font-size: 22px; line-height: 1.2; margin: 5px 0; }
.shift-battery-section p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.shift-battery-list { display: grid; gap: 12px; }
.shift-battery-row { border: 1px solid #d8e4da; border-radius: 12px; background: #f8fbf8; padding: 14px; display: grid; gap: 10px; }
.shift-battery-row.verified { border-color: #9bdbab; background: #f4fbf5; }
.shift-battery-row.shift-uploading { opacity: .7; pointer-events: none; }
.shift-battery-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.shift-battery-title strong { font-size: 16px; }
.shift-battery-title small { display: block; color: var(--muted); font-size: 14px; }
.shift-battery-title > span { color: #2a6b3c; font-size: 14px; font-weight: 750; max-width: 48%; text-align: right; }
.shift-battery-upload { min-height: 74px; }
.shift-bypass-toggle { justify-self: start; }
.shift-bypass-reason { border-top: 1px solid #d8e4da; padding-top: 12px; display: grid; gap: 10px; }
.shift-bypass-reason[hidden] { display: none; }
.shift-bypass-reason label { display: grid; gap: 7px; font-weight: 750; font-size: 14px; }
.shift-bypass-reason textarea { width: 100%; border: 1px solid #b8d2bc; border-radius: 9px; padding: 10px; min-height: 80px; }
.shift-bypass-reason button { justify-self: start; }
.shift-battery-photo-link { display: flex; align-items: center; gap: 9px; color: var(--green-dark); font-weight: 700; font-size: 14px; }
.shift-battery-photo-link img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; }
.shift-battery-exchange { display: grid; gap: 10px; padding: 12px; border: 1px solid #a9d1b5; border-radius: 10px; background: #eaf7ee; }
.shift-battery-exchange label { display: grid; gap: 5px; color: #194a2b; font-size: 14px; font-weight: 750; }
.shift-battery-exchange input:not([type=checkbox]), .shift-battery-exchange select, .shift-battery-exchange textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #9bbda5; border-radius: 8px; background: #fff; font: inherit; }
.shift-battery-exchange .shift-battery-confirm { display: flex; align-items: center; gap: 10px; }
.shift-battery-exchange .shift-battery-confirm input { width: 20px; height: 20px; flex: none; }
.shift-battery-exchange [hidden] { display: none; }
.shift-battery-captured { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid #d2ac73; border-radius: 9px; background: #fff8eb; color: #734317; font-size: 13px; }
.shift-battery-captured[hidden] { display: none; }
.shift-battery-captured img { width: 72px; height: 72px; object-fit: cover; border-radius: 7px; }
.shift-battery-clear { background: var(--green-pale); color: #285d38; border-radius: 10px; padding: 12px; font-weight: 750; }
.shift-battery-gate { margin: 16px 0; padding: 20px; border: 3px solid #b9182b; border-radius: 17px; background: #fff0f1; color: #70212d; box-shadow: 0 8px 24px #811a2d24; }
.shift-battery-gate > span { font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.shift-battery-gate h3 { margin: 8px 0; font-size: clamp(23px, 5vw, 30px); line-height: 1.15; color: #a10f23; }
.shift-battery-gate p { margin: 8px 0; font-size: 15px; line-height: 1.5; }
.shift-battery-gate ul { margin: 12px 0; padding-left: 22px; font-weight: 800; }
.shift-battery-gate > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.shift-battery-gate .button { min-height: 45px; display: inline-flex; align-items: center; text-decoration: none; }
.shift-battery-gate + .shift-progress, .shift-battery-gate ~ #shiftForm[hidden] { display: none; }
.shift-actions { position: sticky; bottom: 0; z-index: 4; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shift-actions > div:last-child { display: flex; gap: 8px; }
.shift-actions .shift-send-homebase{background:#13703f;color:#fff;box-shadow:0 4px 16px #12723f33}.shift-actions .shift-send-homebase[hidden]{display:none}
.shift-actions .shift-share-homebase{border-color:#13703f;color:#13703f;font-weight:800}.shift-actions .shift-share-homebase[hidden]{display:none}
@media(max-width:640px){.shift-actions .shift-send-homebase,.shift-actions .shift-share-homebase{grid-column:1/-1}}
.homebase-checklist-alert{display:flex;align-items:center;gap:13px;margin:0 0 16px;padding:14px 16px;border-radius:13px;border:1px solid #e9c690;background:#fff4db;color:#51360e;box-shadow:0 6px 22px #874f1317}.homebase-checklist-alert[hidden]{display:none}.homebase-checklist-alert-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:#fff;color:#975207;font-weight:900;font-size:23px}.homebase-checklist-alert>div{min-width:0;flex:1}.homebase-checklist-alert b{font-size:16px}.homebase-checklist-alert p{font-size:13px;margin:2px 0 0}.homebase-checklist-alert>a{background:#166d3c;color:white;text-decoration:none;border-radius:9px;padding:10px 13px;font-size:13px;font-weight:800;white-space:nowrap}@media(max-width:650px){.homebase-checklist-alert{flex-wrap:wrap}.homebase-checklist-alert>a{width:100%;text-align:center}}
#shiftMessage { color: var(--muted); font-size: 14px; }
#shiftMessage.error { color: #b72f2f; font-weight: 750; }
.shift-camera { width: min(94vw, 560px); max-height: 92vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); padding: 14px; box-shadow: 0 24px 80px #0006; }
.shift-camera::backdrop { background: #05130bba; }
.shift-camera-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.shift-camera h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.25; }
.shift-camera-head button { border: 0; background: #e8eee9; border-radius: 8px; min-width: 40px; min-height: 40px; font-size: 24px; cursor: pointer; }
.shift-camera video { display: block; width: 100%; max-height: 60vh; aspect-ratio: 3/4; object-fit: cover; background: #101b14; border-radius: 9px; }
.shift-camera p { font-size: 14px; color: var(--muted); }
.shift-camera #shiftCapture { width: 100%; min-height: 48px; }
.shift-camera #shiftFlash{width:100%;min-height:44px;margin:6px 0;border:1px solid #20884b;color:#156a39;background:#edf9f0}.shift-camera #shiftFlash[hidden]{display:none}
.shift-low-summary{padding:17px;border:2px solid #d54c40;border-radius:14px;background:#fff6f3;color:#4b2622}.shift-low-summary[hidden],.shift-questions-banner[hidden]{display:none}.shift-low-summary h3{margin:0 0 4px;font-size:19px}.shift-low-summary>p{margin:0 0 12px;font-size:14px}.shift-low-summary ul{padding:0;margin:0;list-style:none;display:grid;gap:8px}.shift-low-summary li{border:1px solid #ecc9c1;border-radius:9px;background:white;padding:10px;display:grid;gap:7px}.shift-low-summary li>button:first-child{justify-self:start;border:0;background:none;text-align:left;color:#aa3d2b;font:inherit;font-weight:800;cursor:pointer;padding:1px}.shift-low-summary strong{font-size:13px}.shift-low-summary .shift-approved{color:#187844}.shift-low-summary .shift-low{color:#a33b2c}.shift-low-summary label,.shift-question label{display:grid;gap:5px;font-size:13px}.shift-low-summary textarea,.shift-question textarea{min-height:62px;width:100%;padding:9px;border:1px solid #d5c4c0;border-radius:8px;font:inherit}.shift-low-summary li>button:not(:first-child),.shift-question button,.shift-questions-banner button{justify-self:start;border:1px solid #b34938;border-radius:8px;padding:9px 11px;background:#fff8f6;color:#94382a;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.shift-low-summary button:disabled,.shift-question button:disabled{opacity:.55}.shift-question-container{grid-column:1/-1}.shift-question{padding:10px;border:1px solid #e1cf9d;border-radius:9px;background:#fff9e9;display:grid;gap:6px;font-size:13px}.shift-question+.shift-question{margin-top:7px}.shift-question p{margin:0}.shift-question small{color:#734b15}.shift-questions-banner{border:1px solid #d8b66e;background:#fff5dc;color:#513b10;border-radius:12px;padding:13px 16px}.shift-questions-banner>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.shift-questions-banner button{border-color:#d1a34f;color:#714d0f;background:white}
@media (max-width: 700px) {
  .shift-heading { align-items: stretch; flex-direction: column; }
  .shift-heading label { max-width: 220px; }
  .shift-item { grid-template-columns: 1fr; padding: 14px 16px; gap: 8px; }
  .shift-actions { flex-direction: column; align-items: stretch; }
  .shift-actions > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .shift-actions button { min-height: 44px; }
  .shift-battery-title { flex-direction: column; }
  .shift-battery-title > span { max-width: 100%; text-align: left; }
}



/* The dedicated field link never exposes office navigation or HomeBase chrome. */
.tech-portal #homebaseView,
.tech-portal .role-switcher,
.tech-portal #accountButton,
.tech-portal #syncState,
.tech-portal [data-homebase-only],
.tech-portal [data-homebase-ai] { display: none !important; }
.tech-portal .topbar { grid-template-columns: minmax(0, 1fr) auto auto; }
.portal-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.portal-links a, .portal-label { color: #e7f3ea; font-size: 14px; font-weight: 750; white-space: nowrap; }
.portal-links a { text-decoration: none; padding: 9px 12px; border: 1px solid #31483a; border-radius: 8px; }
.portal-links a:hover, .portal-links a[aria-current="page"] { background: #143923; border-color: #28c85d; }
.portal-label { color: #45e579; }
.tech-home-button, .shift-back { color: #e9f8ed; text-decoration: none; white-space: nowrap; border: 1px solid #345943; background: #143021; border-radius: 9px; padding: 9px 12px; font-size: 14px; font-weight: 800; }
.tech-home-button:hover, .shift-back:hover { color: #fff; border-color: var(--green); background: #1c442c; }
.tech-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; }
.tech-home-card { min-height: 136px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 5px; text-align: left; position: relative; }
.tech-home-card:hover:not(:disabled) { border-color: var(--green-dark); background: #f7fcf8; transform: translateY(-1px); }
.tech-home-card:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.tech-card-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: var(--green-pale); color: var(--green-dark); font-size: 19px; font-weight: 850; grid-column: 1 / -1; }
.tech-home-card strong { font-size: 18px; line-height: 1.25; }
.tech-home-card small { color: var(--muted); font-size: 13px; line-height: 1.35; grid-column: 1 / -1; padding-right: 22px; }
.tech-card-arrow { color: var(--green-dark); grid-column: 2; grid-row: 2; align-self: center; font-weight: 850; }
.tech-home-card:disabled { opacity: .64; cursor: not-allowed; box-shadow: none; }
.tech-home-card:disabled .tech-card-icon { background: #e8edea; color: var(--muted); }
.tech-checklist-completion { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 15px 18px; border: 2px solid #249c51; border-radius: 14px; background: #e9f9ed; color: #145b32; font-size: 15px; font-weight: 750; }
.tech-checklist-completion[hidden] { display: none; }
.tech-checklist-completion b { font-size: 17px; white-space: nowrap; }
.tech-checklist-statuses { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tech-checklist-statuses span { display: inline-flex; padding: 5px 8px; border: 1px solid #d4dfd6; border-radius: 7px; background: #f4f7f4; color: #4d6655; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.tech-checklist-statuses span.completed { border-color: #77cc91; background: #e3f7e9; color: #106934; }
.tech-battery-action-banner { margin:0 0 16px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; border:1px solid #b75f4b; border-radius:15px; background:#3e2723; color:#ffe3d9; }
.tech-battery-action-banner[hidden] { display:none; }
.tech-battery-action-banner b { color:#ffc0a3; font-size:16px; }
.tech-battery-action-banner ul { margin:8px 0 0; padding-left:20px; display:grid; gap:5px; font-size:15px; }
.tech-battery-action-banner button { min-height:44px; padding:10px 14px; border:1px solid #ffc0a3; border-radius:9px; background:#fff0e8; color:#40251f; font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.tech-battery-action-banner button:focus-visible { outline:3px solid #ffc0a3; outline-offset:3px; }
.tech-battery-action-banner li,.battery-tech-alert li { padding:3px 0; }
.tech-battery-action-banner li button,.battery-tech-alert li button { display:block; margin-top:6px; min-height:40px; padding:7px 12px; border:1px solid #ffc0a3; border-radius:8px; background:#fff0e8; color:#40251f; font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.battery-rotation-pending { display:block; margin-top:5px; color:#8b361f; font-size:14px; }
.tech-battery-action-banner .battery-rotation-pending { color:#ffd7a2; }
.battery-rotation-dialog { width:min(94vw,560px); max-height:88vh; padding:0; border:1px solid #69ac7c; border-radius:18px; color:#173224; background:#fff; box-shadow:0 20px 70px #0007; }
.battery-rotation-dialog::backdrop { background:#08170cbb; }
.battery-rotation-dialog form { padding:20px; display:grid; gap:15px; overflow:auto; max-height:88vh; }
.battery-rotation-dialog header { display:flex; justify-content:space-between; gap:12px; }
.battery-rotation-dialog header span { color:#176d38; font-size:12px; font-weight:850; letter-spacing:.1em; }
.battery-rotation-dialog h2 { margin:4px 0; font-size:26px; }
.battery-rotation-dialog p { margin:0; line-height:1.45; }
.battery-rotation-dialog label { display:grid; gap:6px; font-weight:800; }
.battery-date-confirm,.battery-rotation-dialog label.battery-date-confirm { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:750; }
.battery-date-confirm input[type=checkbox] { width:20px; height:20px; flex:none; accent-color:#168545; }
.battery-rotation-dialog input[name=newDateCode] { width:100%; padding:12px; border:1px solid #9ab9a4; border-radius:9px; font:inherit; }
.battery-rotation-dialog button { min-height:44px; padding:10px 14px; border:1px solid #0b7b3c; border-radius:9px; background:#f0faf3; color:#105a2e; font:inherit; font-weight:800; cursor:pointer; }
.battery-rotation-dialog [data-close-rotation] { min-width:44px; }
.battery-rotation-dialog .battery-rotation-send { background:#176d38; color:#fff; }
.battery-rotation-dialog button:disabled { opacity:.6; cursor:wait; }
.battery-rotation-old { padding:10px 12px; border-radius:9px; background:#eaf6ee; font-weight:800; }
.battery-rotation-drop { padding:14px; display:grid; gap:5px; border:2px dashed #8bc59d; border-radius:11px; background:#f4fbf6; }
.battery-rotation-drop.dragging { border-color:#0b7b3c; background:#e1f5e8; }
.battery-rotation-drop img { max-width:100%; max-height:220px; object-fit:contain; }
.battery-rotation-drop small { color:#476753; }
.battery-rotation-photo-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.battery-rotation-dialog [data-rotation-status] { color:#476753; font-size:14px; }
.battery-fleet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.battery-fleet-edit-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 9px; background: #187341; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; }
.battery-fleet-edit-link:focus-visible { outline: 3px solid #187341; outline-offset: 3px; }
@media (max-width: 560px) {
  .tech-home-grid { gap: 9px; }
  .tech-home-card { min-height: 142px; padding: 13px; }
  .tech-home-card strong { font-size: 16px; }
  .tech-home-card small { font-size: 12px; padding-right: 0; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
input, select, textarea { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #9aa79f; }

.topbar {
  height: 74px;
  padding: 0 clamp(18px, 3.4vw, 54px);
  background: var(--night);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(40,200,93,.22)); }
.brand-mark img { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; gap: 4px; letter-spacing: .07em; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .25em; }
.sync-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #c8d5cc; font-size: 13px; }
.sync-state span, .autosave-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(40,200,93,.12); flex: 0 0 auto; }
.sync-state.saving span { background: var(--amber); box-shadow: 0 0 0 4px rgba(231,155,33,.15); }
.role-switcher { display: flex; align-items: center; gap: 9px; margin-left: 8px; }
.role-switcher > span { color: #779084; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.role-switcher select { width: auto; min-height: 36px; padding: 7px 31px 7px 10px; color: #e7f3ea; border: 1px solid #31483a; background-color: #11241a; font-size: 11px; font-weight: 750; }
.avatar-button { display: flex; align-items: center; gap: 9px; color: #fff; background: transparent; border: 0; padding: 5px; }
.avatar-button span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24412f; color: #dffbe7; font-weight: 800; font-size: 12px; }
.avatar-button b { font-size: 13px; }
.field-identity { margin-left: auto; min-height: 42px; padding: 6px 10px; border: 1px solid #31503d; border-radius: 10px; background: #10251a; color: #fff; display: grid; grid-template-columns: auto auto; gap: 1px 10px; align-items: center; text-align: left; }
.field-identity small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.field-identity b { font-size: 12px; }
.field-identity span { grid-column: 2; grid-row: 1 / 3; color: #8fac99; font-size: 9px; font-weight: 800; }

.app-view[hidden] { display: none !important; }
.role-dashboard { min-height: calc(100vh - 74px); background: #eef3ef; }
.app-layout { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); padding: 20px 13px 16px; background: #0b1911; color: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.sidebar-role { display: flex; align-items: center; gap: 10px; padding: 9px 9px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-role > div { display: grid; gap: 3px; }
.sidebar-role b { font-size: 12px; }
.sidebar-role small { color: #7f9789; font-size: 10px; }
.role-badge { min-width: 49px; height: 27px; border-radius: 6px; display: grid; place-items: center; background: var(--green); color: #061009; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.role-badge.tech { background: #235e38; color: #a6f2bb; }
.app-sidebar nav { margin-top: 16px; display: grid; gap: 4px; }
.global-nav { width: 100%; min-height: 43px; padding: 8px 10px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: transparent; color: #8da094; text-align: left; font-size: 12px; font-weight: 750; }
.global-nav > span { color: #6f8476; font-size: 15px; text-align: center; }
.global-nav em { min-width: 22px; padding: 3px 5px; border-radius: 99px; background: rgba(255,255,255,.08); color: #b7c6bc; font-size: 9px; font-style: normal; text-align: center; }
.global-nav:hover { background: rgba(255,255,255,.045); color: #fff; }
.global-nav.active { color: #fff; background: rgba(40,200,93,.12); }
.global-nav.active > span { color: var(--green); }
.sidebar-system { margin-top: auto; padding: 12px 9px; border-radius: 9px; background: rgba(255,255,255,.035); display: flex; align-items: center; gap: 10px; }
.sidebar-system > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(40,200,93,.11); }
.sidebar-system div { display: grid; gap: 2px; }
.sidebar-system b { font-size: 10px; }
.sidebar-system small { color: #71877a; font-size: 8px; }
.dashboard-content { min-width: 0; padding: 32px clamp(22px, 3.5vw, 52px) 54px; }
.module-content { min-width: 0; padding: 32px clamp(22px, 3.5vw, 52px) 54px; }
.module-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.module-heading > div > span, .module-card-title > div > span { color: var(--green-dark); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.module-heading h1 { margin: 7px 0 5px; font-size: clamp(29px,3vw,38px); line-height: 1; letter-spacing: -.04em; }
.module-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.module-heading-actions { display: flex; gap: 9px; }
.admin-capability-bar { margin-bottom: 14px; padding: 12px 15px; display: flex; flex-wrap: wrap; gap: 9px 18px; border: 1px solid #abd8b8; border-radius: 11px; background: #f2fbf5; color: #245d38; font-size: 12px; font-weight: 800; }
.module-toolbar { margin-bottom: 14px; padding: 13px; display: grid; grid-template-columns: minmax(260px,1fr) 210px; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.request-queue-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 18px;padding-bottom:14px;border-bottom:1px solid #d8e4dc}
.request-queue-tabs button{display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 13px;border:0;border-radius:9px;background:transparent;color:#526b5c;font:inherit;font-size:13px;font-weight:750}
.request-queue-tabs button[aria-pressed="true"]{background:#e0f1e6;color:#087a3c}.request-queue-tabs button span{background:#fff;border-radius:20px;padding:1px 7px;font-size:11px;font-variant-numeric:tabular-nums}
.module-toolbar.request-queue-toolbar{grid-template-columns:minmax(200px,1.7fr) repeat(4,minmax(130px,1fr));padding:0;border:0;background:transparent;margin-bottom:18px}
.request-queue-card{overflow:visible}.request-queue-card table{table-layout:fixed;min-width:720px}.request-queue-card th:first-child{width:38px}.request-queue-card th:nth-child(2){width:30%}.request-queue-card th:nth-child(3){width:23%}.request-queue-card th:nth-child(4){width:25%}
.request-queue-card .responsive-table{border-radius:0 0 12px 12px}.request-queue-card td{vertical-align:top;padding-top:18px;padding-bottom:18px;overflow-wrap:anywhere;font-size:14px}.request-queue-card td b{color:#183e28;font-size:14px}.request-customer{display:block;margin-top:4px;color:#425e4c}.request-queue-card td small{font-size:12px;line-height:1.5}.request-queue-card .record-type{font-size:10px}.request-unassigned{color:#8b611e!important}
.request-queue-card .request-next-action{display:inline-flex;justify-content:center;align-items:center;min-height:38px;width:100%;white-space:normal;padding:9px 11px;border:1px solid #b7cebf;border-radius:8px;background:#f3faf6;color:#125c31;font-size:12px;font-weight:800;text-align:center}.request-queue-row[data-view="action"] .request-next-action{border-color:#087a3c;background:#087a3c;color:#fff}
.request-queue-card .request-status-action{background:#fff0ed;color:#a13a2d}.request-queue-card .request-status-waiting{background:#fff3d9;color:#845a00}.request-queue-card .request-status-working{background:#eaf3ff;color:#205d99}.request-queue-card .request-status-scheduled{background:#e5f5eb;color:#136a36}.request-queue-card .request-status-completed,.request-queue-card .request-status-archived,.request-queue-card .request-status-closed{background:#edf2ef;color:#52695b}
.request-row-details{margin-top:8px}.request-row-details summary{font-size:12px;color:#55705e;cursor:pointer;min-height:30px;padding:5px 0}.request-row-details>div{margin-top:8px;padding:12px;background:#f3f7f4;border-radius:8px}.request-row-details p{font-size:12px;line-height:1.5;margin:0 0 9px}.request-row-details .row-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0}.request-row-details .row-actions button,.request-row-details .row-actions a{white-space:normal;text-align:left;min-height:36px}.request-detail-note{white-space:pre-wrap;max-height:220px;overflow:auto}
.request-queue-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;padding:14px 18px;border-top:1px solid #e0e9e3}.request-queue-pagination>span{margin-right:auto;color:#526b5c;font-size:12px;font-variant-numeric:tabular-nums}.request-queue-pagination label{display:flex;align-items:center;gap:6px;font-size:12px;color:#526b5c}.request-queue-pagination select,.request-queue-pagination button{min-height:36px;padding:7px 10px;border:1px solid #c9d8ce;border-radius:7px;background:#fff;color:#245637;font:inherit;font-size:12px}.request-queue-pagination button:disabled{opacity:.4;cursor:default}
.bulk-action-bar[hidden]{display:none!important}
@media(min-width:1600px){.request-queue-card{max-width:1600px}.request-queue-tabs,.module-toolbar.request-queue-toolbar{max-width:1600px}}
@media(max-width:1100px){.module-toolbar.request-queue-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.request-queue-toolbar .module-search{grid-column:1/-1}}
@media(max-width:700px){.request-queue-tabs{gap:4px}.request-queue-tabs button{padding:9px;font-size:12px}.request-queue-card .responsive-table{overflow:visible}.request-queue-card table,.request-queue-card tbody{display:block;min-width:0;width:100%}.request-queue-card thead{display:none}.request-queue-card tr.request-queue-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px 10px;padding:16px;border-top:1px solid #dce7df}.request-queue-card tr[hidden]{display:none!important}.request-queue-card td{display:block;border:0;padding:0!important;min-width:0}.request-queue-card .select-column{grid-column:1;grid-row:1}.request-queue-card .request-vehicle-cell,.request-queue-card .request-technician-cell,.request-queue-card .request-state-cell,.request-queue-card .request-action-cell{grid-column:2}.request-queue-card .request-technician-cell{font-size:12px}.request-queue-card .request-action-cell>.request-next-action{min-height:44px}.request-queue-card td:first-child{display:block}.request-queue-card .request-filter-empty{display:block;padding:18px}.request-queue-pagination{padding:12px;gap:8px}.request-queue-pagination>span{width:100%;margin:0}.request-queue-toolbar select,.request-queue-toolbar input{font-size:16px}}
.module-toolbar label, .quick-entry label, .settings-card > label, .record-drawer label { display: grid; gap: 6px; color: #536159; font-size: 12px; font-weight: 800; }
.module-toolbar input, .module-toolbar select, .quick-entry input, .quick-entry select, .settings-card input, .settings-card select, .record-drawer input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #ccd8d0; border-radius: 8px; background: #fff; font-size: 14px; }
.ppi-queue-tools:not([hidden]) { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:-2px 0 14px; padding:13px; border:1px solid #cfe2d4; border-radius:12px; background:#f8fcf9; }
.ppi-queue-views { display:flex; flex-wrap:wrap; gap:7px; }
.ppi-queue-views button { display:inline-flex; align-items:center; gap:7px; min-height:39px; padding:7px 11px; border:1px solid #c8dbcf; border-radius:8px; background:#fff; color:#245637; font-size:12px; font-weight:850; cursor:pointer; }
.ppi-queue-views button[aria-pressed="true"] { border-color:#177947; background:#176b3d; color:#fff; }
.ppi-queue-views button span { min-width:20px; padding:2px 5px; border-radius:99px; background:rgba(30,110,60,.12); text-align:center; }
.ppi-queue-views button[aria-pressed="true"] span { background:rgba(255,255,255,.22); }
.ppi-queue-tools label { display:grid; gap:5px; min-width:176px; color:#526158; font-size:11px; font-weight:850; }
.ppi-queue-tools select { min-height:39px; padding:7px 9px; border:1px solid #c8d6cc; border-radius:8px; background:#fff; font:inherit; }
.responsive-table td small.ppi-row-date { color:#17683b; font-weight:850; }
.bulk-action-bar { position: sticky; top: 8px; z-index: 12; margin-bottom: 14px; padding: 12px; display: grid; grid-template-columns: minmax(150px,.7fr) auto auto minmax(190px,.8fr) minmax(240px,1.4fr) auto; align-items: end; gap: 9px; border: 1px solid #c9d8ce; border-radius: 13px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(8,53,27,.06); backdrop-filter: blur(10px); }
.bulk-action-bar.has-selection { border-color: #40b66b; box-shadow: 0 8px 26px rgba(13,122,57,.13); }
.bulk-selection-summary { align-self: center; display: grid; gap: 2px; }
.bulk-selection-summary strong { color: #102b1c; font-size: 15px; }
.bulk-selection-summary span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.bulk-action-bar > button { min-height: 42px; padding: 9px 12px; border: 1px solid #bdcec2; border-radius: 8px; background: #fff; color: #245637; font-size: 12px; font-weight: 850; white-space: nowrap; }
.bulk-action-bar > button:hover { border-color: #169849; background: #f0fbf4; }
.bulk-action-bar > button:disabled { cursor: not-allowed; opacity: .45; }
.bulk-action-bar label { display: grid; gap: 5px; color: #526158; font-size: 11px; font-weight: 850; }
.bulk-action-bar select, .bulk-action-bar input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c8d6cc; border-radius: 8px; background: #fff; color: #1a2b20; font: inherit; }
.bulk-action-fields { display: flex; align-items: end; gap: 8px; min-width: 0; }
.bulk-action-fields label { flex: 1; min-width: 130px; }
.bulk-action-fields .bulk-note { min-width: 240px; }
.bulk-action-fields p { margin: 0; padding: 7px 0; color: #68766e; font-size: 11px; line-height: 1.35; }
.bulk-action-bar .bulk-apply { border-color: #149849; background: #149849; color: #fff; }
.select-column { width: 38px; text-align: center !important; }
.responsive-table th.select-column, .responsive-table td.select-column { padding-left: 10px; padding-right: 4px; }
.responsive-table td.select-column { display: table-cell; }
.select-column input { width: 18px; height: 18px; accent-color: #149849; cursor: pointer; }
.workspace-record:has(.request-row-select:checked) td { background: #edfaf2; }
.module-search { min-width: 0; }
.module-metrics { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.module-metrics article { min-height: 103px; padding: 15px 17px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.report-metrics button { min-height: 103px; padding: 15px 17px; display: grid; align-content: center; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.report-metrics button:hover, .report-metrics button[aria-pressed="true"] { border-color: #15974c; background: #effaf3; }
.report-metrics button:focus-visible { outline: 3px solid #15974c; outline-offset: 2px; }
.module-metrics small { color: #74837a; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.module-metrics strong { margin: 3px 0; font-size: 27px; line-height: 1; }
.module-metrics span { color: var(--muted); font-size: 12px; }
.module-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(15,40,24,.035); }
.module-card-title { min-height: 69px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--soft-line); }
.module-card-title h2 { margin: 4px 0 0; font-size: 18px; }
.module-card-title > b { color: var(--muted); font-size: 12px; }
.module-card-title > button { border: 0; background: transparent; color: var(--green-dark); font-weight: 850; }
.responsive-table { width: 100%; overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; min-width: 790px; }
.responsive-table th { padding: 12px 14px; color: #708078; background: #f7faf8; font-size: 11px; text-align: left; letter-spacing: .05em; }
.responsive-table td { padding: 14px; border-top: 1px solid var(--soft-line); color: #344239; font-size: 13px; }
.responsive-table td:first-child { display: flex; align-items: center; gap: 8px; }
.responsive-table .request-filter-empty td:first-child { display: table-cell; }
.request-filter-empty .workspace-empty { min-height: 120px; text-align: center; font-size: 14px; }
.request-filter-empty .workspace-empty button { margin-top: 8px; color: var(--green-dark); }
.responsive-table td small { margin-top: 4px; display: block; color: var(--muted); font-size: 11px; }
.responsive-table td button, .report-record > button, .technician-card footer button, .calendar-job button { min-height: 34px; padding: 7px 10px; border: 1px solid #c6d3ca; border-radius: 7px; background: #fff; color: #26352b; font-size: 12px; font-weight: 850; white-space: nowrap; }
.website-service-open { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid #96caaa; border-radius: 7px; background: #f1faf4; color: #17683b; font-size: 12px; font-weight: 850; white-space: nowrap; text-decoration: none; }
#websiteServiceNotice a { font-weight: 800; color: #843339; }
.website-calendar-error { grid-column: 1 / -1; }
.responsive-table tr.completed-record td { color: #849087; background: #fafcfb; }
.responsive-table tr.completed-record td b { color: #6f7b73; font-weight: 750; }
.responsive-table tr.completed-record .record-type,
.responsive-table tr.completed-record .record-status { color: #7c8780; background: #edf1ee; }
.responsive-table tr.completed-record td button { color: #738078; border-color: #d9e0db; background: #fafcfb; font-weight: 750; }
.responsive-table tr.completed-record td small { color: #9aa39d; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.record-type { min-width: 36px; padding: 5px 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 9px; font-weight: 950; }
.record-type.ppi, .report-icon { color: #6740ac; background: #f0eafb; }
.record-type.service, .report-icon.service { color: #147840; background: #e6f7ec; }
.record-type.battery, .report-icon.battery { color: #275fae; background: #eaf2ff; }
.record-type.emergency { color: #a55316; background: #fff0e4; }
.record-status { display: inline-flex; padding: 6px 8px; border-radius: 99px; color: #546159; background: #eef3ef; font-size: 10px; font-weight: 900; white-space: nowrap; }
.record-status.urgent { color: #a73737; background: var(--red-pale); }
.record-status.waiting { color: #8d5c0f; background: var(--amber-pale); }
.record-status.good { color: #14753c; background: var(--green-pale); }
.record-status.active { color: #255da8; background: #eaf2ff; }
.quick-entry { margin-bottom: 14px; padding: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; gap: 11px; border: 1px solid #abd8b8; border-radius: 12px; background: #f2fbf5; }
.quick-entry > div { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.quick-entry > div b { font-size: 16px; }
.quick-entry > div button { border: 0; background: transparent; color: var(--green-dark); font-weight: 850; }
.manual-ppi-entry { grid-template-columns: 1fr; align-items: stretch; padding: 18px; }
.manual-ppi-entry > div > span { display: grid; gap: 3px; }
.manual-ppi-entry > div small { color: var(--muted); font-size: 11px; font-weight: 600; }
.ppi-photo-intake { padding: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 18px; border: 1px dashed #83b3e6; border-radius: 11px; background: linear-gradient(135deg, #f4f9ff, #f6fcf8); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.ppi-photo-intake.dragging { border-color: #1787d1; background: #eaf6ff; box-shadow: 0 0 0 4px rgba(23,135,209,.15); }
.ppi-photo-intake.dragging .ppi-photo-intake-copy > span { color: #0c66aa; }
.ppi-photo-intake-copy { min-width: 0; }
.ppi-photo-intake-copy > span { color: #2866a6; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.ppi-photo-intake h2 { margin: 4px 0 3px; color: #172b21; font-size: 16px; letter-spacing: -.02em; }
.ppi-photo-intake p { margin: 0; color: #5a6b61; font-size: 12px; line-height: 1.45; }
.ppi-photo-intake-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ppi-photo-intake-controls .button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ppi-photo-intake-status { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid rgba(77,128,105,.18); }
.ppi-photo-intake-status[data-kind="working"] { color: #2866a6; }
.ppi-photo-intake-status[data-kind="success"] { color: #14753c; font-weight: 750; }
.ppi-photo-intake-status[data-kind="error"] { color: #a73737; font-weight: 750; }
.manual-ppi-entry .ai-filled { border-color: #67be86; background: #f2fff6; box-shadow: 0 0 0 3px rgba(35,164,78,.11); }
.manual-ppi-entry fieldset { min-width: 0; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; border: 1px solid #cfe1d4; border-radius: 10px; background: rgba(255,255,255,.82); }
.manual-ppi-entry legend { padding: 0 7px; color: var(--green-dark); font-size: 12px; font-weight: 900; }
.manual-ppi-entry label.wide { grid-column: 1 / -1; }
.manual-ppi-entry textarea { width: 100%; min-height: 74px; padding: 9px 11px; border: 1px solid #ccd8d0; border-radius: 8px; background: #fff; font: inherit; resize: vertical; }
.manual-ppi-entry label small { min-height: 16px; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.35; }
.manual-ppi-submit { justify-self: end; min-width: 220px; }
.calendar-toolbar { margin-bottom: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-toolbar button { min-height: 36px; padding: 7px 11px; border: 1px solid #ccd7cf; border-radius: 7px; background: #fff; font-weight: 800; }
.calendar-toolbar div { display: grid; justify-items: center; gap: 2px; }
.calendar-toolbar b { font-size: 15px; }
.calendar-toolbar span { color: var(--muted); font-size: 11px; }
.week-board { display: grid; grid-template-columns: repeat(6,minmax(150px,1fr)); gap: 9px; overflow-x: auto; padding-bottom: 8px; }
.week-board > article { min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.week-board header { min-height: 82px; padding: 12px; display: grid; align-content: center; justify-items: center; border-bottom: 1px solid var(--soft-line); background: #f8faf9; }
.week-board header span { color: var(--muted); font-size: 10px; font-weight: 900; }
.week-board header b { font-size: 22px; }
.week-board header small { color: var(--green-dark); font-size: 10px; }
.calendar-job { margin: 9px; padding: 10px; display: grid; gap: 5px; border-left: 4px solid #8d62db; border-radius: 8px; background: #f8f6fc; }
.calendar-job.service { border-left-color: #28b861; background: #f3faf5; }
.calendar-job.battery { border-left-color: #387ce2; background: #f3f7fd; }
.calendar-job.emergency { border-left-color: #eb8d27; background: #fff8f1; }
.calendar-job.completed { opacity: .55; border-left-color: #8b9890; background: #f0f3f1; box-shadow: none; }
.calendar-job.completed .calendar-job-status { color: #506057; background: #e1e6e3; }
.calendar-job-status { width: max-content; padding: 4px 6px; border-radius: 99px; color: #14753c !important; background: var(--green-pale); font-size: 8px !important; font-weight: 900; text-transform: uppercase; }
.calendar-job time { color: var(--muted); font-size: 10px; font-weight: 850; }
.calendar-job b { font-size: 12px; }
.calendar-job span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.calendar-job button { margin-top: 3px; }
.calendar-empty { margin: 10px; padding: 24px 8px; color: #93a098; border: 1px dashed #d7e0da; border-radius: 8px; text-align: center; font-size: 12px; }
.report-board { display: grid; gap: 11px; }
.report-record { padding: 17px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.report-record.priority { border-color: #d7b9b9; box-shadow: 0 7px 22px rgba(155,51,51,.06); }
.report-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 950; }
.report-record > div:nth-child(2) > span { color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.report-record h2 { margin: 4px 0 3px; font-size: 17px; }
.report-record p, .report-record small { margin: 0; color: var(--muted); font-size: 12px; }
.report-record small { display: block; margin-top: 6px; }
.report-record .row-actions > button { min-height: 34px; padding: 7px 10px; border: 1px solid #c6d3ca; border-radius: 7px; background: #fff; color: #26352b; font-size: 12px; font-weight: 850; white-space: nowrap; }
.report-record .row-actions > .button-primary { background: var(--green); border-color: var(--green); }
.report-status-dialog { max-width: 540px; }
.report-status-help { color: var(--muted); font-size: 13px; line-height: 1.5; }
.report-toolbar { grid-template-columns: minmax(240px, 1.3fr) minmax(150px, .8fr) minmax(160px, .8fr) minmax(210px, 1fr); }
.report-bulk-bar { grid-template-columns: minmax(160px, 1fr) auto auto minmax(200px, 1fr) auto; }
.report-result-line { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #536159; font-size: 12px; }
.report-result-line label { display: flex; align-items: center; gap: 7px; }
.report-selection { display: grid; justify-items: center; gap: 9px; }
.report-row-select, #reportSelectedOnly { width: 20px; height: 20px; accent-color: #149849; cursor: pointer; }
.report-record.is-selected { border-color: #149849; background: #f4fcf6; box-shadow: inset 3px 0 #149849; }
.report-bulk-message { grid-column: 1 / -1; margin: 0; color: #146431; font-size: 12px; line-height: 1.5; }
.report-bulk-message.has-error { color: #a32e20; }
@media (max-width: 1180px) { .report-toolbar { grid-template-columns: 1fr 1fr; } .report-bulk-bar { position: static; grid-template-columns: 1fr auto auto; } .report-bulk-bar > label { grid-column: 1 / 3; } }
.technician-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.fleet-card { margin-bottom: 18px; }
.device-grid { padding: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.device-card { min-width: 0; padding: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; border: 1px solid #cde2d3; border-radius: 11px; background: #f5fcf7; }
.device-card.inactive { opacity: .62; background: #f5f6f5; }
.device-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #daf5e2; color: #14813e; font-weight: 950; }
.device-card > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.device-card span { color: var(--green-dark); font-size: 8px; font-weight: 950; letter-spacing: .07em; }
.device-card h3 { margin: 0; font-size: 15px; }
.device-card p, .device-card small { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.device-card button { min-height: 34px; padding: 7px 9px; border: 1px solid #bdd0c2; border-radius: 7px; background: #fff; font-size: 11px; font-weight: 850; }
.section-divider-title { margin: 21px 0 11px; }
.section-divider-title span { color: var(--green-dark); font-size: 9px; font-weight: 950; letter-spacing: .11em; }
.section-divider-title h2 { margin: 4px 0 0; font-size: 21px; }
.pin-ready { color: #14753c; }
.pin-missing { color: #a33c3c; }
.technician-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.technician-card header { padding: 17px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--soft-line); }
.tech-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #dffbe7; background: #24412f; font-weight: 900; }
.technician-card h2 { margin: 0 0 3px; font-size: 17px; }
.technician-card p { margin: 0; color: var(--muted); font-size: 12px; }
.technician-card em.online { padding: 5px 7px; border-radius: 99px; color: #16763e; background: var(--green-pale); font-size: 9px; font-style: normal; font-weight: 950; }
.technician-card em.offline { padding: 5px 7px; border-radius: 99px; color: #875b13; background: var(--amber-pale); font-size: 9px; font-style: normal; font-weight: 950; }
.technician-card dl { margin: 0; padding: 8px 17px; }
.technician-card dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--soft-line); }
.technician-card dt { color: var(--muted); font-size: 12px; }
.technician-card dd { margin: 0; font-size: 12px; font-weight: 750; text-align: right; }
.technician-card footer { padding: 14px 17px; display: flex; gap: 8px; }
.battery-fleet-heading { margin-bottom:18px; }
.interstate-intake-panel { margin:0 0 18px; border:1px solid #b8d4bf; border-radius:15px; background:#f7fbf8; overflow:hidden; }
.interstate-intake-panel > summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:17px 20px; cursor:pointer; list-style:none; }
.interstate-intake-panel > summary::-webkit-details-marker { display:none; }
.interstate-intake-panel > summary b { display:block; color:#123c25; font-size:17px; }
.interstate-intake-panel > summary small { display:block; margin-top:4px; color:#587064; font-size:12px; }
.interstate-intake-panel > summary strong { color:#176e40; white-space:nowrap; }
.interstate-intake-body { display:grid; gap:12px; padding:0 20px 20px; }
.interstate-intake-drop { display:grid; justify-items:center; gap:4px; padding:25px 15px; border:2px dashed #77ab83; border-radius:12px; background:#fff; cursor:pointer; text-align:center; }
.interstate-intake-drop.dragging, .interstate-intake-drop:focus-visible { border-color:#126e3c; background:#e9f7ed; outline:2px solid #126e3c; }
.interstate-intake-drop span, .interstate-intake-file, .interstate-intake-status, .interstate-intake-note { color:#52695a; font-size:13px; }
.interstate-intake-status.is-busy { display:flex; align-items:center; gap:9px; color:#176e40; font-weight:700; }
.interstate-intake-status.is-busy::before { content:""; flex:none; width:16px; height:16px; border:3px solid #cce9d4; border-top-color:#176e40; border-radius:50%; animation:interstate-intake-spin .75s linear infinite; }
@keyframes interstate-intake-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .interstate-intake-status.is-busy::before { animation-duration:2s; } }
.interstate-intake-file { display:flex; align-items:center; gap:12px; overflow-wrap:anywhere; }
.interstate-intake-file img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid #d2dfd5; }
.interstate-intake-file img[hidden] { display:none; }
.interstate-intake-actions { display:flex; flex-wrap:wrap; gap:8px; }
.interstate-intake-body label { display:grid; gap:5px; font-size:12px; font-weight:800; color:#294a34; }
.interstate-intake-body input, .interstate-intake-body select, .interstate-intake-body textarea { width:100%; min-width:0; padding:9px; border:1px solid #c8d8cc; border-radius:8px; color:#183322; background:#fff; font:inherit; }
.interstate-intake-review-head { display:flex; justify-content:space-between; gap:14px; align-items:end; padding-top:10px; border-top:1px solid #d6e6d9; }
.interstate-intake-review-head span { font-size:10px; letter-spacing:.08em; color:#197246; font-weight:900; }
.interstate-intake-review-head h3 { margin:3px 0; font-size:17px; overflow-wrap:anywhere; }
.interstate-intake-review-head label { width:min(220px,45%); }
.interstate-intake-warning { padding:10px 12px; border-radius:8px; background:#fff1dc; color:#77430c; font-size:13px; }
.interstate-intake-lines { display:grid; gap:8px; }
.interstate-intake-row { display:grid; grid-template-columns:minmax(130px,1.3fr) minmax(125px,1fr) minmax(125px,1fr) 76px minmax(125px,1fr) 76px 32px; gap:8px; align-items:end; padding:11px; border:1px solid #d9e6dc; border-radius:10px; background:#fff; }
.interstate-intake-row > div:first-child { align-self:center; min-width:0; }
.interstate-intake-row strong, .interstate-intake-row small { display:block; overflow-wrap:anywhere; }
.interstate-intake-row small { color:#66766d; font-size:11px; }
.interstate-intake-result { padding:8px 0; text-align:center; font-weight:850; white-space:nowrap; }
.interstate-intake-row > button { min-height:38px; border:0; background:#f1f4f2; border-radius:8px; cursor:pointer; }
.interstate-intake-core-total { max-width:310px; }
.interstate-intake-totals { display:flex; flex-wrap:wrap; gap:12px; }
.interstate-intake-totals b { padding:9px 13px; border-radius:8px; background:#e2f2e6; color:#126039; }
.interstate-outstanding { border:1px solid #d6e6d9; border-radius:8px; padding:10px 12px; font-size:13px; color:#294a34; }
.interstate-outstanding summary { cursor:pointer; font-weight:750; }
.interstate-outstanding > div { display:grid; gap:5px; margin-top:10px; color:#52695a; }
.interstate-van-confirm { display:flex !important; flex-direction:row; align-items:flex-start; gap:9px; padding:12px; border-radius:8px; background:#fff1dc; color:#77430c !important; }
.interstate-van-confirm input { width:auto; min-width:18px; height:18px; margin:0; }
@media(max-width:800px) { .interstate-intake-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .interstate-intake-row > div:first-child { grid-column:1/-1; } .interstate-intake-result { text-align:left; } }
.interstate-message-dialog { width:min(620px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); padding:22px; border:1px solid #b9d9c4; border-radius:16px; background:#fff; color:#14291c; box-shadow:0 24px 70px #10251f55; }
.interstate-message-dialog::backdrop { background:#07170f99; }
.interstate-message-header { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.interstate-message-header span { color:#16853d; font-size:13px; font-weight:900; letter-spacing:.08em; }
.interstate-message-header h2 { margin:5px 0 0; font-size:24px; }
.interstate-message-dialog p { color:#4b6253; font-size:14px; line-height:1.45; }
.interstate-message-dialog label { display:block; margin:17px 0 7px; font-size:14px; font-weight:800; }
.interstate-message-dialog textarea { display:block; box-sizing:border-box; width:100%; min-height:250px; padding:14px; border:1px solid #b9cec0; border-radius:10px; font-family:inherit; font-size:14px; line-height:1.55; resize:vertical; color:#1b3022; background:#f8fcf9; }
.interstate-message-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:15px; }
.battery-fleet-heading .button:disabled { opacity:.55; cursor:not-allowed; }
.battery-sync-state { max-width:310px; padding:8px 11px; display:inline-flex; align-items:center; border:1px solid #ccd8d0; border-radius:999px; background:#fff; color:#526159; font-size:10px; font-weight:900; line-height:1.25; text-align:center; }
.battery-sync-state.live { border-color:#a9dbb7; color:#11713a; background:#eefaf2; }
.battery-sync-state.warning { border-color:#edbcc0; color:#ad2933; background:#fff4f5; }
.battery-accounting-alert:not([hidden]) { padding:12px 15px; border:1px solid #db757b; border-radius:12px; background:#fff1f2; color:#8b2029; font-size:14px; font-weight:750; line-height:1.45; }
.battery-fleet-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.battery-fleet-metrics article { min-height:104px; padding:15px; display:grid; align-content:center; gap:3px; border:1px solid #dce6df; border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(18,37,25,.045); }
.battery-fleet-metrics article.attention { border-color:#efc4c7; background:#fff8f8; }
.battery-fleet-metrics small { color:#66766c; font-size:9px; font-weight:950; letter-spacing:.08em; }
.battery-fleet-metrics strong { color:#16241b; font-size:31px; line-height:1; letter-spacing:-.04em; }
.battery-fleet-metrics .attention strong { color:#bd2632; }
.battery-fleet-metrics span { color:var(--muted); font-size:11px; }
.battery-return-chart { margin-top:14px; overflow:hidden; border:1px solid #dce6eb; border-radius:15px; background:#fff; box-shadow:0 6px 20px rgba(32,58,73,.055); }
.battery-return-chart>header { padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #e5ebee; background:linear-gradient(135deg,#f8fbfd,#f1f6f8); }
.battery-return-chart>header>div:first-child>span { color:#15963b; font-size:11px; font-weight:950; letter-spacing:.1em; }
.battery-return-chart h2 { margin:3px 0; color:#172330; font-size:20px; }
.battery-return-chart p { margin:0; color:#667985; font-size:13px; }
.battery-return-totals { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.battery-return-totals>span { min-width:98px; padding:8px 11px; display:flex; align-items:center; justify-content:center; gap:7px; border-radius:10px; font-size:12px; font-weight:900; }
.battery-return-totals b { font-size:19px; line-height:1; }
.battery-return-totals .cores { color:#b82833; background:#fff0f1; border:1px solid #efc0c4; }
.battery-return-totals .warranty { color:#a82d55; background:#fff1f6; border:1px solid #edbfd0; }
.battery-return-totals .rotate { color:#7332ab; background:#f7edff; border:1px solid #d8b9ee; }
.battery-return-lanes { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.9fr); gap:10px; padding:10px; align-items:stretch; }
.battery-return-lane { min-width:0; border:1px solid #e0e8ed; border-radius:10px; background:#fff; overflow:hidden; }
.battery-return-lane>header { padding:8px 11px; display:flex; justify-content:space-between; align-items:center; color:#fff; font-size:13px; font-weight:900; text-transform:uppercase; }
.battery-return-lane>header b { border-radius:6px; padding:2px 8px; background:#ffffff35; }
.battery-return-lane.cores>header { background:#cf3540; }
.battery-return-lane.warranties>header { background:#c53d69; }
.battery-return-lane.rotates>header { background:#8c43c2; }
.battery-return-entry { min-height:36px; padding:5px 11px; display:flex; align-items:center; gap:9px; border-top:1px solid #edf1f3; font-size:13px; }
.battery-return-entry strong { white-space:nowrap; }
.battery-return-entry small { color:#627582; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.battery-return-entry b { margin-left:auto; font-size:15px; }
.battery-return-lane.cores .battery-return-entry b { color:#c8323d; }
.battery-return-lane.warranties .battery-return-entry b { color:#ae3158; }
.battery-return-lane.rotates .battery-return-entry b { color:#7b36b0; }
.battery-return-empty { margin:0; padding:16px 11px; color:#73848e; font-size:12px; }
.battery-review-queue { margin-top:14px; overflow:hidden; border:1px solid #cfe2d4; border-radius:15px; background:#fff; box-shadow:0 6px 20px rgba(32,58,73,.05); }
.battery-review-queue.has-pending { border-color:#efb9bd; box-shadow:0 0 0 2px rgba(207,47,59,.08),0 6px 20px rgba(32,58,73,.05); }
.battery-review-queue>header { padding:15px 17px; display:flex; justify-content:space-between; gap:20px; align-items:center; border-bottom:1px solid #f0d3d5; background:linear-gradient(135deg,#fff6f6,#fff0f1); }
.battery-review-queue>header span { color:#bd2733; font-size:10px; font-weight:950; letter-spacing:.08em; }
.battery-review-queue>header h2 { margin:4px 0 2px; color:#76242b; font-size:20px; }
.battery-review-queue>header p { margin:0; color:#92565b; font-size:12px; }
.battery-review-queue>header>strong { min-width:52px; height:52px; display:grid; place-items:center; border-radius:13px; color:#fff; background:#cf2f3b; font-size:25px; }
.battery-review-list { display:grid; }
.battery-review-card { padding:14px 17px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; border-bottom:1px solid #edf1ee; }
.battery-review-card:last-child { border-bottom:0; }
.battery-review-main>span { color:#bf2c37; font-size:10px; font-weight:950; letter-spacing:.05em; text-transform:uppercase; }
.battery-review-main h3 { margin:3px 0; color:#1d2d23; font-size:17px; }
.battery-review-main p { margin:0 0 3px; color:#46564d; font-size:13px; }
.battery-review-main small { color:#748079; font-size:10px; }
.battery-review-actions { display:flex; gap:8px; }
.battery-review-actions button { min-height:38px; }
.battery-review-clear { padding:12px 15px; display:flex; gap:10px; align-items:center; background:#f1faf3; }
.battery-review-clear>span { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#19a447; font-weight:950; }
.battery-review-clear>div { display:grid; gap:2px; }
.battery-review-clear b { color:#176d35; font-size:12px; }
.battery-review-clear small { color:#597260; font-size:10px; }
.battery-add-panel { margin-top:14px; }
.battery-add-panel>summary { width:max-content; min-height:42px; padding:11px 16px; list-style:none; cursor:pointer; }
.battery-add-panel>summary::-webkit-details-marker { display:none; }
.battery-add-panel[open]>summary { border-color:#8fbf9e; background:#e8f6ec; color:#126c35; }
.battery-add-panel .battery-stock-entry { margin-top:10px; }
.battery-fleet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:18px; }
.battery-van-card,.battery-stock-card,.battery-tech-summary { border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:0 8px 22px rgba(18,37,25,.06); }
.battery-van-card { --location-start:#bff5ce; --location-end:#e5f9eb; --location-title:#14823a; --location-subtitle:#537563; overflow:hidden; }
.battery-van-card[data-location="minimedic-1"] { --location-start:#ffd83f; --location-end:#ffe979; --location-title:#6e5900; --location-subtitle:#786a27; }
.battery-van-card[data-location="minimedic-2"] { --location-start:#ff9a49; --location-end:#ffc07a; --location-title:#713306; --location-subtitle:#754b2c; }
.battery-van-card[data-location="minimedic-3"] { --location-start:#a758e2; --location-end:#c782ef; --location-title:#fff; --location-subtitle:rgba(255,255,255,.88); }
.battery-van-card[data-location="minimedic-4"] { --location-start:#ee3f4b; --location-end:#ff6670; --location-title:#fff; --location-subtitle:rgba(255,255,255,.9); }
.battery-van-card[data-location="minimedic-5"] { --location-start:#2f81e7; --location-end:#5ba8ff; --location-title:#fff; --location-subtitle:rgba(255,255,255,.9); }
.battery-van-card[data-location="minimedic-6"] { --location-start:#8bcfcb; --location-end:#b9e5e1; --location-title:#173e3c; --location-subtitle:#3c6663; }
.battery-van-card[data-location="minimedic-7"] { --location-start:#c49a6c; --location-end:#ddbc94; --location-title:#352414; --location-subtitle:#5e432a; }
.battery-van-card.urgent { border-color:#e49ba1; box-shadow:0 0 0 2px rgba(211,45,57,.12),0 8px 22px rgba(18,37,25,.06); }
.battery-van-card header { min-height:108px; padding:17px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(20,45,61,.09); background:linear-gradient(135deg,var(--location-start),var(--location-end)); }
.battery-van-card header>div>span,.battery-tech-summary>span { padding:4px 7px; display:inline-flex; border:1px solid rgba(255,255,255,.6); border-radius:999px; color:#14763b; background:rgba(255,255,255,.82); font-size:10px; font-weight:950; letter-spacing:.07em; }
.battery-van-card.urgent header>div>span { color:#bf2531; }
.battery-van-card h2,.battery-tech-summary h2 { margin:5px 0 3px; }
.battery-van-card h2 { color:var(--location-title); font-size:20px; }
.battery-van-card p { color:var(--location-subtitle); }
.battery-van-card p,.battery-tech-summary p,.battery-stock-card p { margin:3px 0; }
.battery-location-total { min-width:72px; padding:9px 10px; border:1px solid rgba(255,255,255,.62); border-radius:11px; color:#153040; background:rgba(255,255,255,.84); font-size:32px; line-height:.9; text-align:center; }
.battery-location-total small { display:block; margin-top:7px; color:#536875; font-size:9px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.battery-card-body { padding:15px 17px; }
.battery-notice-history { margin-top:12px; color:#223c2c; font-size:13px; }
.battery-notice-history summary { cursor:pointer; font-weight:800; }
.battery-notice-history div { padding:6px 0; border-top:1px solid #e0e9e3; }
.battery-app-alert-button { background:#123a26; color:#fff; }
.battery-tech-notices { margin:18px 0; }
.battery-tech-notices h3 { margin:0 0 10px; }
.battery-tech-notice { border:1px solid #90d6a8; border-radius:13px; padding:15px; margin:10px 0; background:#f1fff5; color:#183124; }
.battery-tech-notice.read { border-color:#d4e0d7; background:#f7faf8; }
.battery-tech-notice-history { margin:22px 0 0; border-top:1px solid #d4e0d7; padding-top:15px; }
.battery-tech-notice-history summary { cursor:pointer; font-weight:800; color:#355746; }
.battery-tech-notice-history .battery-tech-notice { margin-top:12px; }
.battery-tech-notice>div:first-child { display:flex; flex-wrap:wrap; gap:8px 14px; justify-content:space-between; }
.battery-tech-notice small { color:#52675a; }
.battery-notice-message { margin:12px 0; line-height:1.5; white-space:normal; }
.battery-tech-notice button { min-height:42px; border:0; border-radius:9px; padding:8px 16px; background:#126d35; color:white; font-weight:800; cursor:pointer; }
.battery-card-counts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.battery-card-counts span { padding:8px 9px; border-radius:8px; background:#f2f6f3; color:#647269; font-size:11px; }
.battery-card-counts b { color:#203027; font-size:14px; }
.battery-action-block,.battery-ready-block { margin-top:13px; padding:12px; border-radius:10px; }
.battery-action-block { border:1px solid #f0c5c8; background:#fff3f4; }
.battery-action-block>b { color:#bd2733; font-size:10px; letter-spacing:.08em; }
.battery-action-block ul { margin:8px 0 0; padding:0; display:grid; gap:7px; list-style:none; }
.battery-action-block li { display:grid; gap:1px; }
.battery-action-block li strong { color:#702029; font-size:12px; }
.battery-action-block li span,.battery-action-block small { color:#a23a44; font-size:10px; line-height:1.4; }
.battery-ready-block { display:grid; gap:3px; border:1px solid #c4e5cd; background:#effaf2; }
.battery-ready-block b { color:#14763b; font-size:12px; }
.battery-ready-block span { color:#52705b; font-size:10px; }
.battery-van-card>footer { padding:13px 17px 16px; display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:9px; border-top:1px solid var(--soft-line); background:#fbfdfb; }
.battery-van-card>footer>.button { min-height:39px; padding:10px 13px; text-align:center; white-space:nowrap; }
.battery-van-card .button-danger { color:#fff; border-color:#cf2f3b; background:#cf2f3b; }
.battery-card-inventory { flex:1 0 100%; min-width:0; }
.battery-card-inventory>summary { min-height:39px; padding:10px 12px; display:block; border:1px solid #b9cbbf; border-radius:8px; color:#24372b; background:#fff; font-size:12px; font-weight:900; text-align:center; list-style:none; cursor:pointer; }
.battery-card-inventory>summary::-webkit-details-marker { display:none; }
.battery-card-inventory[open] { flex-basis:100%; }
.battery-card-inventory[open]>summary { border-color:#7eb38e; color:#126d35; background:#edf8f0; }
.battery-inventory-table { margin-top:9px; max-height:330px; padding:0 3px; overflow:auto; }
.battery-inventory-row { padding:10px 2px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; border-bottom:1px solid var(--soft-line); }
.battery-inventory-row>div { min-width:0; display:grid; gap:2px; }
.battery-inventory-row>div b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.battery-inventory-row small { color:var(--muted); font-size:9px; }
.battery-inventory-row>span { color:#1c3023; font-size:12px; font-weight:900; }
.battery-inventory-row>em { grid-column:1/-1; color:#178044; font-size:9px; font-style:normal; font-weight:850; }
.battery-inventory-row>em.needs-action { color:#c22e39; }
.battery-inventory-row>[data-workspace-action="correct-stock-date"] { grid-column:1/-1; justify-self:start; border:1px solid #acd2bc; background:#f3fbf5; color:#12683a; border-radius:8px; padding:7px 10px; font-weight:800; }
.battery-inventory-row>[data-stock-date-form] { grid-column:1/-1; display:grid; gap:9px; padding:12px; background:#f3faf5; border:1px solid #b9d9c5; border-radius:10px; font-size:13px; }
.battery-inventory-row>[data-stock-date-form] label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.battery-inventory-row>[data-stock-date-form] input:not([type=checkbox]) { width:100%; min-height:42px; padding:8px; font-size:16px; }
.battery-inventory-row>[data-stock-date-form] input[type=checkbox] { width:22px; height:22px; }
.battery-inventory-row>[data-stock-date-form] button { min-height:40px; }
.battery-inventory-row>[data-stock-date-form] [role=status] { margin:0; color:#315846; }
.command-handoff-row [data-recovery-date-form] { display:grid; gap:10px; padding:12px; background:#f3faf5; border:1px solid #b9d9c5; border-radius:10px; }
.command-handoff-row [data-recovery-date-form] label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.command-handoff-row [data-recovery-date-form] input:not([type=checkbox]) { width:100%; min-height:44px; padding:8px; font-size:16px; }
.command-handoff-row [data-recovery-date-form] input[type=checkbox] { width:22px; height:22px; }
.battery-empty-location { padding:10px; color:var(--muted); font-size:11px; text-align:center; }
.battery-tech-summary { padding:18px; margin-bottom:14px; }
.battery-alert { color:#c51f2d; }
.battery-stock-card { padding:16px; margin-bottom:12px; display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center; }
.battery-stock-card h3 { margin:4px 0; font-size:23px; }
.battery-stock-card h3 small { color:var(--muted); font-size:12px; }
.battery-stock-card.pending-review { border-color:#efbd72; background:#fffaf0; box-shadow:0 0 0 2px rgba(232,151,36,.08); }
.battery-pending { color:#9e5b00; }
.battery-pending-line { margin-top:7px; display:block; color:#9e5b00; font-size:11px; }
.battery-use-actions { display:grid; gap:6px; min-width:210px; }
.battery-use-actions button { min-height:36px; border:1px solid #b8c7bd; border-radius:8px; background:#fff; color:#1d3325; font-weight:850; }
.battery-use-actions button:first-of-type { border-color:var(--green); background:var(--green-pale); }
.battery-use-actions button:disabled { cursor:not-allowed; opacity:.48; }
.tech-content .tech-day-progress[hidden] { display:none; }
.tech-battery-list { display:block; }
.tech-battery-list[hidden] { display:none; }
.battery-tech-console { max-width:960px; padding:20px; border-radius:22px; background:#101c15; color:#f3fbf5; box-shadow:0 16px 40px rgba(12,30,17,.16); }
.battery-tech-console>header { margin-bottom:18px; }
.battery-tech-eyebrow { color:#65e88f; font-size:12px; font-weight:850; letter-spacing:.1em; }
.battery-tech-console h2 { margin:5px 0 2px; color:#fff; font-size:clamp(23px,3vw,32px); }
.battery-tech-console>header p { margin:0; color:#bbcbbf; font-size:14px; }
.battery-fleet-console>header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.battery-fleet-console>header .battery-tech-retry { margin-top:0; flex:none; }
.battery-fleet-vans { display:grid; gap:10px; }
.battery-stock-entry [hidden] { display:none!important; }
.battery-fleet-van { border:1px solid #3c6248; border-radius:13px; background:#1d3325; overflow:hidden; }
.battery-fleet-van summary { min-height:70px; padding:13px 15px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; }
.battery-fleet-van summary:focus-visible { outline:3px solid #a3f4b8; outline-offset:-3px; }
.battery-fleet-van summary strong { display:block; font-size:18px; }
.battery-fleet-van summary small { display:block; margin-top:3px; color:#bfd6c5; font-size:13px; }
.battery-fleet-count { color:#7de8a0; font-weight:850; text-align:right; line-height:1.45; }
.battery-fleet-van-body { padding:0 14px 14px; display:grid; gap:7px; }
.battery-fleet-group { padding:11px 13px; border:1px solid #3b6247; border-radius:9px; display:grid; gap:2px; background:#14271b; }
.battery-fleet-group strong { font-size:15px; }
.battery-fleet-group span { color:#e7f9e9; font-size:14px; }
.battery-fleet-group small { color:#bfdbca; font-size:12px; }
.battery-fleet-empty { margin:10px 0; color:#bfdbca; font-size:14px; }
.battery-tech-hero { padding:20px; border:1px solid #327046; border-radius:18px; background:linear-gradient(125deg,#163c24,#102819); }
.battery-tech-hero>span { color:#78efa0; font-size:12px; font-weight:850; letter-spacing:.12em; }
.battery-tech-hero strong { display:block; margin:5px 0 1px; font-size:clamp(36px,6vw,48px); line-height:1; }
.battery-tech-hero strong small { font-size:21px; font-weight:600; }
.battery-tech-hero p { margin:9px 0 0; color:#d3e5d8; font-size:14px; }
.battery-tech-alert { margin-top:14px; padding:14px 17px; border:1px solid #af614c; border-radius:15px; background:#3e2723; color:#ffe3d9; }
.battery-tech-pickups { margin-top:16px; padding:18px; border:1px solid #347450; border-radius:17px; background:#173524; }
.battery-tech-homebase { margin-top:18px; border:1px solid #427458; border-radius:16px; background:#152b1d; overflow:hidden; }
.battery-tech-homebase>summary { padding:16px 18px; color:#e7f9e9; font-size:16px; font-weight:800; cursor:pointer; }
.battery-tech-homebase>summary:focus-visible { outline:3px solid #a3f4b8; outline-offset:-3px; }
.battery-tech-homebase[open]>summary { border-bottom:1px solid #427458; }
.battery-tech-homebase .battery-tech-pickups { margin:14px; }
.battery-tech-homebase .battery-tech-return-prompt { margin:14px; }
.battery-tech-pickups h3 { margin:0 0 6px; font-size:20px; color:#fff; }
.battery-tech-pickups>p { margin:0 0 14px; color:#d1e5d5; font-size:14px; line-height:1.45; }
.battery-tech-pickup { display:grid; gap:9px; padding:13px; margin:9px 0; border:1px solid #549468; border-radius:12px; background:#f5fcf7; color:#193125; }
.battery-tech-pickup strong { font-size:17px; }
.battery-tech-pickup span { color:#315c40; font-size:14px; }
.battery-tech-pickup form { display:grid; gap:12px; }
.battery-tech-pickup label { display:grid; gap:6px; font-size:14px; font-weight:750; }
.battery-tech-pickup select,.battery-tech-pickup textarea { width:100%; padding:11px; border:1px solid #b4caba; border-radius:9px; font:inherit; color:#193125; background:#fff; }
.battery-tech-pickup [data-pickup-date] input[type=text] { width:100%; padding:11px; border:1px solid #b4caba; border-radius:9px; font:inherit; color:#193125; background:#fff; }
.battery-tech-pickup textarea { min-height:78px; }
.battery-tech-pickup label[data-pickup-photo] { padding:14px; border:2px dashed #95c8a5; border-radius:10px; background:#ebf8ee; cursor:pointer; }
.battery-tech-pickup label[data-pickup-photo].dragging { border-color:#108d43; background:#d3f4dd; }
.battery-tech-pickup [data-pickup-preview] { display:block; max-width:100%; max-height:210px; object-fit:contain; border-radius:8px; background:#fff; }
.battery-tech-pickup .battery-pickup-status { margin:0; font-size:14px; font-weight:700; color:#225b34; line-height:1.45; }
.battery-tech-pickup .battery-pickup-restore { margin:0; padding:10px 12px; border:1px solid #6ab985; border-radius:9px; background:#dcf5e4; color:#164a2b; font-size:14px; font-weight:750; line-height:1.45; }
.battery-tech-pickup input[type=file] { width:100%; font:inherit; font-size:14px; }
.battery-tech-pickup button { padding:12px 16px; border:0; border-radius:9px; background:#149444; color:#fff; font:inherit; font-weight:800; cursor:pointer; }
.battery-tech-pickup button:disabled { opacity:.6; cursor:wait; }
.battery-tech-pickup [hidden] { display:none !important; }
.battery-tech-alert>b { font-size:12px; letter-spacing:.1em; color:#ffc0a3; }
.battery-tech-alert ul { margin:8px 0 0; padding-left:17px; display:grid; gap:4px; font-size:14px; }
.battery-tech-clear { margin:14px 0 0; color:#94e8ac; font-size:14px; }
.battery-tech-review { margin-top:13px; padding:12px 14px; border:1px solid #9a7135; border-radius:12px; color:#ffe0a0; background:#342b1e; font-size:14px; }
.battery-tech-retry { min-height:44px; margin-top:14px; padding:10px 15px; border:1px solid #71d892; border-radius:10px; background:#176a36; color:#fff; font-weight:800; cursor:pointer; }
.battery-tech-heading { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:20px 0 10px; }
.battery-tech-heading h3 { margin:0; color:#fff; font-size:19px; }
.battery-tech-heading span { color:#a3bba9; font-size:13px; }
.battery-tech-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.battery-tech-tile { min-width:0; min-height:146px; padding:15px; display:flex; flex-direction:column; align-items:flex-start; text-align:left; border:1px solid #3c6248; border-radius:16px; background:#1d3325; color:#f5fff7; cursor:pointer; transition:transform .16s,border-color .16s,background .16s; }
.battery-tech-tile:hover:not(:disabled),.battery-tech-tile:focus-visible { transform:translateY(-2px); border-color:#69d889; background:#24442e; }
.battery-tech-tile:focus-visible { outline:3px solid #a3f4b8; outline-offset:2px; }
.battery-tech-tile.has-returns { border-color:#aa7048; }
.battery-tech-tile.awaiting-review { border-color:#ac884f; }
.battery-tech-tile:disabled { cursor:default; }
.battery-tech-type { font-size:18px; line-height:1.22; font-weight:850; overflow-wrap:anywhere; }
.battery-tech-tile strong { margin:6px 0 3px; font-size:34px; line-height:1; }
.battery-tech-tile strong small { margin-left:5px; color:#c5d9ca; font-size:12px; font-weight:700; }
.battery-tech-date { margin-top:auto; color:#b6d4bd; font-size:13px; }
.battery-tech-return,.battery-tech-waiting { display:block; margin-top:7px; color:#ffc09c; font-size:12px; font-weight:750; }
.battery-tech-waiting { color:#ffe0a0; }
.battery-tech-dialog { position:fixed; inset:0; z-index:110; padding:16px; display:flex; align-items:flex-end; justify-content:center; background:rgba(3,16,9,.76); }
.battery-tech-sheet { width:min(100%,540px); max-height:min(88vh,720px); overflow:auto; padding:22px; border:1px solid #416e4c; border-radius:22px 22px 16px 16px; background:#15261b; color:#f3fff6; box-shadow:0 -16px 54px rgba(0,0,0,.3); }
.battery-tech-sheet header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.battery-tech-sheet header span { color:#73e998; font-size:12px; font-weight:850; letter-spacing:.1em; }
.battery-tech-sheet header h2 { margin:3px 0; font-size:26px; }
.battery-tech-sheet header p { margin:0; color:#c6d8cb; font-size:14px; }
.battery-tech-sheet header>button { flex:0 0 40px; height:40px; border:0; border-radius:50%; background:#304938; color:#fff; font-size:28px; cursor:pointer; }
.battery-tech-choices { display:grid; gap:8px; margin:18px 0 12px; }
.battery-tech-choices button { min-height:64px; padding:10px 13px; display:grid; grid-template-columns:34px 1fr; align-items:center; gap:0 9px; border:1px solid #46654c; border-radius:12px; background:#223629; color:#fff; cursor:pointer; text-align:left; }
.battery-tech-choices button:hover,.battery-tech-choices button:focus-visible { border-color:#77e99b; background:#2a4632; }
.battery-tech-choices button:disabled { opacity:.55; cursor:wait; }
.battery-tech-choices button>span { grid-row:1/3; color:#79e89b; font-size:24px; text-align:center; }
.battery-tech-choices button>b { font-size:16px; }
.battery-tech-choices button>small { color:#bed1c2; font-size:12px; }
.battery-tech-sheet-note { margin:0; color:#d8e2d9; font-size:12px; }
.battery-tech-choices[hidden],.battery-tech-proof[hidden],.battery-tech-dropzone img[hidden] { display:none; }
.battery-tech-proof { margin:18px 0 14px; }
.battery-tech-proof h3 { color:#78e69a; font-size:19px; margin:0 0 5px; }
.battery-tech-proof p { color:#d9e9dc; line-height:1.45; margin:0 0 13px; }
.battery-tech-dropzone { padding:17px; min-height:135px; border:2px dashed #6fae80; border-radius:14px; background:#1e3826; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; text-align:center; }
.battery-tech-dropzone.dragging { border-color:#98ffb6; background:#295336; }
.battery-tech-dropzone.has-photo { border-style:solid; border-width:3px; border-color:#81f6a6; background:#1f6638; box-shadow:0 0 0 4px rgba(129,246,166,.16); }
.battery-tech-dropzone.has-photo strong { color:#fff; font-size:22px; font-weight:900; letter-spacing:.035em; line-height:1.2; }
.battery-tech-dropzone.has-photo small { color:#fff; font-size:14px; font-weight:700; line-height:1.35; }
.battery-tech-dropzone img { max-width:100%; max-height:220px; object-fit:contain; border-radius:9px; }
.battery-tech-dropzone strong { overflow-wrap:anywhere; }
.battery-tech-dropzone small { color:#c3d6c8; }
.battery-tech-photo-actions { display:flex; gap:9px; margin-top:12px; }
.battery-tech-photo-actions label,.battery-tech-back,.battery-tech-preview-button { padding:12px; border:1px solid #70ab7c; border-radius:11px; background:#263e2d; color:white; font-weight:750; cursor:pointer; }
.battery-tech-photo-actions label { position:relative; flex:1; overflow:hidden; text-align:center; }
.battery-tech-photo-actions input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:16px; }
.battery-tech-preview-button { margin-top:9px; width:100%; }
.battery-tech-note { display:grid; gap:6px; margin-top:16px; color:#e0efe3; font-size:14px; font-weight:750; }
.battery-tech-note textarea { width:100%; min-height:88px; padding:11px 12px; resize:vertical; border:1px solid #6fae80; border-radius:10px; background:#152c1c; color:#fff; font:inherit; font-weight:450; }
.battery-tech-note input[type=text] { width:100%; padding:11px 12px; border:1px solid #6fae80; border-radius:10px; background:#152c1c; color:#fff; font:inherit; font-weight:500; }
.battery-tech-proof .battery-date-confirm { margin:10px 0; color:#e0efe3; }
.battery-tech-note textarea:focus-visible { outline:2px solid #79e89b; outline-offset:2px; }
.battery-tech-note small { color:#bbd2c0; font-weight:450; }
.battery-review-tech-note { padding:9px 11px; margin:8px 0; border-left:3px solid #27a855; border-radius:7px; background:#f0faf2; color:#1c3b29; white-space:pre-wrap; overflow-wrap:anywhere; }
.battery-tech-submit { display:block; width:100%; padding:15px; margin-top:13px; background:#17bc51; border:0; border-radius:11px; color:#092012; font-size:16px; font-weight:900; cursor:pointer; }
.battery-tech-submit:disabled { opacity:.48; cursor:not-allowed; }
.battery-tech-back { margin-top:9px; width:100%; }
.battery-review-photo { display:inline-flex; gap:11px; align-items:center; width:max-content; max-width:100%; margin:10px 0; color:#14683d; font-weight:750; }
.battery-review-photo img { width:90px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #c6e0cd; }
@media(max-width:690px) { .battery-tech-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .battery-tech-console { padding:15px; } }
@media(max-width:520px) { .battery-fleet-console>header { flex-direction:column; } .battery-fleet-console>header .battery-tech-retry { margin-top:3px; } .battery-fleet-van summary { align-items:flex-start; flex-direction:column; } .battery-fleet-count { text-align:left; font-size:13px; } }
@media(max-width:390px) { .battery-tech-tile { padding:12px; } .battery-tech-hero { padding:16px; } }
.permission-panel { margin-top: 14px; }
.permission-list { padding: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; color: #46554c; font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.settings-card { padding-bottom: 17px; }
.settings-card > label { margin: 14px 17px 0; }
.switch-row { min-height: 52px; grid-template-columns: 1fr auto; align-items: center; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-size: 11px; font-weight: 500; }
.switch-row input { width: 22px; min-height: 22px; }
.settings-save { grid-column: 1 / -1; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #abd8b8; border-radius: 11px; background: #f2fbf5; color: #536159; font-size: 12px; }
.record-drawer { margin-top: 15px; padding: 18px; border: 1px solid #9fceb0; border-radius: 13px; background: #f7fcf8; box-shadow: var(--shadow); }
.record-drawer.dashboard-appointment-editor { width: min(840px, calc(100vw - 26px)); max-height: min(88vh, 900px); overflow: auto; margin: auto; border: 1px solid #9fceb0; background: #f7fcf8; color: #173229; }
.record-drawer.dashboard-appointment-editor::backdrop,.command-apple-edit-dialog::backdrop { background: rgba(4, 22, 13, .7); }
.record-drawer > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--green-dark); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.record-drawer > div:first-child button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e5f3e9; color: #174d2c; font-size: 21px; }
.record-drawer h2 { margin: 9px 0 7px; font-size: 22px; }
.record-drawer p { margin: 0; color: #536159; font-size: 14px; line-height: 1.65; }
.customer-history-drawer > p + p { margin-top: 9px; }
.customer-history-list { display: grid; gap: 9px; margin-top: 17px; }
.customer-history-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #d7e6da; border-radius: 9px; background: #fff; }
.customer-history-list article b,.customer-history-list article span { display: block; }
.customer-history-list article b { font-size: 14px; color: #1b2b21; }
.customer-history-list article span { margin-top: 5px; font-size: 12px; color: #536159; }
.customer-history-list button { min-height: 38px; padding: 8px 12px; border: 1px solid #8dbba0; border-radius: 8px; background: #f2faf4; color: #155d32; font-size: 14px; font-weight: 800; cursor: pointer; }
.customer-empty { padding: 20px; color: #536159; font-size: 14px; }
.record-drawer form { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.detail-actions { margin-top: 15px; }
.editor-drawer { background: #fff; }
.editor-drawer form { display: block; }
.editor-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.editor-grid.assignment-only { grid-template-columns: repeat(2,minmax(0,1fr)); }
.editor-grid label, .permission-editor label { display: grid; gap: 6px; color: #536159; font-size: 12px; font-weight: 800; }
.editor-grid label.wide { grid-column: 1 / -1; }
.editor-grid input, .editor-grid select, .editor-grid textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd7cf; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.editor-grid textarea { min-height: 86px; resize: vertical; }
.appointment-date-editor .manual-date-toggle { width: fit-content; min-height: 36px; padding: 7px 11px; border: 1px solid #8dbd9b; border-radius: 8px; color: #0c7032; background: #f3fbf5; font-size: 12px; font-weight: 900; cursor: pointer; }
.appointment-date-editor .manual-date-toggle:hover { border-color: #159342; background: #e8f8ed; }
.appointment-date-editor .manual-date-entry { padding: 10px; border: 1px solid #9dceb0; border-radius: 9px; background: #f2fbf5; }
.appointment-date-editor .manual-date-entry[hidden] { display: none; }
.appointment-date-editor .manual-date-entry small { display: block; margin-top: 6px; color: #52685a; font-size: 11px; line-height: 1.4; }
.editor-switch { align-self: end; min-height: 42px; padding: 6px 10px; border: 1px solid #d7e1da; border-radius: 8px; grid-template-columns: 1fr auto !important; }
.permission-editor { margin: 18px 0 0; padding: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 10px; }
.permission-editor legend { padding: 0 7px; font-size: 13px; font-weight: 900; }
.permission-check { min-height: 42px; padding: 9px; grid-template-columns: 21px 1fr; align-items: center; border: 1px solid var(--soft-line); border-radius: 8px; }
.permission-check input { width: 19px; height: 19px; }
.locked-permissions { grid-column: 1 / -1; padding: 11px 12px; display: grid; gap: 3px; border-radius: 8px; color: #7a3b3b; background: var(--red-pale); font-size: 12px; }
.editor-actions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.danger-button { margin-left: auto; border-color: #e0bcbc !important; color: #a33c3c !important; background: #fff7f7 !important; }
.workspace-loading, .workspace-empty { min-height: 180px; padding: 30px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #cdd8d0; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.7); }
.workspace-error { margin-bottom: 14px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid #e1b7b7; border-radius: 10px; color: #7b3535; background: #fff4f4; font-size: 12px; }
.workspace-error[hidden] { display: none; }
.workspace-error button { border: 1px solid #d39b9b; border-radius: 7px; background: #fff; padding: 7px 10px; font-weight: 800; }
.audit-card { grid-column: 1 / -1; }
.audit-list { padding: 8px 17px 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.audit-list div { padding: 10px 0; display: grid; gap: 3px; border-bottom: 1px solid var(--soft-line); }
.audit-list b { font-size: 12px; text-transform: capitalize; }
.audit-list span { color: var(--muted); font-size: 11px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 23px; }
.dashboard-kicker { color: var(--green-dark); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.dashboard-heading h1 { margin: 7px 0 4px; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.04em; }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-actions { display: flex; gap: 9px; }
.operations-tabs { display: flex; gap: 3px; overflow-x: auto; margin-bottom: 16px; padding: 4px; background: #dfe7e1; border-radius: 10px; scrollbar-width: none; }
.operations-tabs::-webkit-scrollbar { display: none; }
.operations-tabs button { min-width: max-content; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #617168; font-size: 10px; font-weight: 850; }
.operations-tabs button span { margin-left: 5px; color: #839087; }
.operations-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(9,30,17,.08); }
.metric-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-cards article { min-height: 105px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(14,39,23,.035); display: flex; align-items: flex-start; gap: 11px; }
.metric-cards article > div { display: grid; }
.metric-cards small { color: #75847b; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.metric-cards strong { margin: 3px 0 1px; font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.metric-cards p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.metric-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 950; }
.metric-icon.urgent { color: #b43333; background: var(--red-pale); }
.metric-icon.today { color: #235fbd; background: #edf4ff; }
.metric-icon.active { color: #14813d; background: var(--green-pale); }
.metric-icon.waiting { color: #93600a; background: var(--amber-pale); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 16px; }
.dashboard-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(15,40,24,.035); }
.card-heading { min-height: 66px; padding: 14px 16px; border-bottom: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-heading span { color: var(--green-dark); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.card-heading h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.02em; }
.card-heading button { border: 0; background: transparent; color: var(--green-dark); font-size: 9px; font-weight: 900; }
.calendar-days { padding: 10px 12px; display: grid; grid-template-columns: repeat(7, minmax(48px, 1fr)); gap: 5px; border-bottom: 1px solid var(--soft-line); overflow-x: auto; }
.calendar-days button { min-height: 60px; border: 1px solid transparent; border-radius: 8px; background: transparent; display: grid; place-items: center; align-content: center; gap: 1px; }
.calendar-days small { color: #8b978f; font-size: 7px; font-weight: 900; }
.calendar-days b { font-size: 13px; }
.calendar-days i { color: #137039; font-size: 7px; font-style: normal; font-weight: 900; }
.calendar-days button.selected { border-color: #a5dfb5; background: var(--green-pale); }
.schedule-list { padding: 3px 14px; }
.schedule-row { min-height: 65px; display: grid; grid-template-columns: 47px 8px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--soft-line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time { display: grid; color: #1d2c23; font-size: 12px; font-weight: 900; line-height: 1; }
.schedule-row time small { color: #8b978f; font-size: 7px; }
.type-dot { width: 7px; height: 7px; border-radius: 50%; background: #999; }
.schedule-row.ppi .type-dot, .calendar-legend .ppi::before { background: #8d62db; }
.schedule-row.service .type-dot, .calendar-legend .service::before { background: #28b861; }
.schedule-row.battery .type-dot, .calendar-legend .battery::before { background: #387ce2; }
.schedule-row.emergency .type-dot, .calendar-legend .emergency::before { background: #eb8d27; }
.schedule-row > div { min-width: 0; }
.schedule-row b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-row p { margin: 3px 0 0; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-status, .open-job-link { border: 0; border-radius: 6px; padding: 5px 7px; background: #eff4f0; color: #526159; font-size: 7px; font-weight: 950; letter-spacing: .04em; }
.schedule-status.alert { color: #a24d12; background: #fff2e5; }
.open-job-link { color: #13743a; background: var(--green-pale); }
.calendar-legend { padding: 10px 15px 14px; display: flex; flex-wrap: wrap; gap: 13px; color: #6f7c74; font-size: 8px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.action-list { padding: 5px 14px; }
.action-list article { min-height: 70px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--soft-line); }
.action-list article:last-child { border-bottom: 0; }
.action-type { width: 32px; height: 29px; display: grid; place-items: center; border-radius: 7px; font-size: 7px; font-weight: 950; }
.action-type.ppi { color: #6740ac; background: #f0eafb; }
.action-type.service { color: #147840; background: #e6f7ec; }
.action-type.battery { color: #275fae; background: #eaf2ff; }
.action-type.emergency { color: #a55316; background: #fff0e4; }
.action-list b { display: block; font-size: 10px; }
.action-list p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.3; }
.action-list button { border: 1px solid #c9d6cd; border-radius: 6px; background: #fff; padding: 6px 7px; color: #26342b; font-size: 8px; font-weight: 900; }
.role-control-card { margin-top: 16px; padding: 17px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(105deg, #f9fcfa, #edf8f0); }
.role-control-card > div { display: flex; align-items: center; gap: 13px; }
.lock-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--night); color: var(--green); font-size: 18px; }
.role-control-card h2 { margin: 0 0 3px; font-size: 14px; }
.role-control-card p { margin: 0; max-width: 730px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.tech-day-progress { margin-bottom: 15px; padding: 16px 18px; border-radius: 12px; color: #fff; background: linear-gradient(110deg,#0b1b11,#13321f); }
.tech-day-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tech-day-progress span { color: #90a498; font-size: 10px; font-weight: 800; }
.tech-day-progress b { color: #dff9e6; font-size: 11px; }
.route-progress { height: 5px; margin: 11px 0 7px; border-radius: 99px; background: #294032; overflow: hidden; }
.route-progress i { display: block; width: 34%; height: 100%; background: var(--green); }
.tech-day-progress small { color: #84988c; font-size: 8px; }
.tech-jobs { display: grid; gap: 12px; }
.tech-job { min-height: 126px; padding: 17px; display: grid; grid-template-columns: 91px minmax(0, 1fr) auto; align-items: center; gap: 17px; border: 1px solid var(--line); border-left: 4px solid #387ce2; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(13,38,24,.04); }
.tech-job.ppi-job { border-left-color: #8d62db; }
.tech-job.service-job { border-left-color: #28b861; }
.tech-job.field-job { grid-template-columns: 91px minmax(0, 1fr) auto; }
.tech-job.field-job.needs-office { border-left-color: #d63042; background: #fffafa; }
.field-job-state { display: inline-flex; margin-top: 12px; padding: 6px 10px; border-radius: 8px; background: #e6f7ec; color: #09612b; font-size: 12px; font-weight: 800; }
.field-job-state.needs_homebase, .field-job-state.ready_for_review { background: #ffe5e8; color: #9d1426; }
.field-job-actions { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #e0ece3; padding-top: 12px; }
.field-job-actions summary { cursor: pointer; color: #096932; font-size: 14px; font-weight: 850; }
.field-job-actions form { display: grid; gap: 11px; margin-top: 12px; }
.field-job-actions label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.field-job-actions select, .field-job-actions textarea, .field-job-actions input[type=file] { box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px; border: 1px solid #b7cfc0; border-radius: 9px; background: #fff; font: inherit; }
.field-job-actions button { min-height: 46px; border: 0; border-radius: 9px; background: #076932; color: #fff; font-weight: 850; cursor: pointer; }
.field-job-actions button:disabled { opacity: .6; }
.field-job-actions [role=status] { margin: 0; color: #8a2335; }
.field-job-history { margin-top: 12px; padding: 12px; border-radius: 9px; background: #f0f7f2; font-size: 12px; }
.field-job-history p { margin: 8px 0 0; line-height: 1.55; }
.command-field-updates-list { display: grid; gap: 8px; padding: 0 20px 20px; }
.command-field-job { border: 1px solid #d3e5d9; border-radius: 13px; background: #f6fbf7; overflow: hidden; }
.command-field-job.is-urgent { border-color: #ed9da6; background: #fff0f1; }
.command-field-job summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.command-field-job summary::-webkit-details-marker { display: none; }
.command-field-job summary > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.command-field-job summary b { font-size: 16px; color: #19372a; }
.command-field-job summary small { font-size: 12px; color: #526c5b; }
.command-field-job-indicator { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #d6f2dc; color: #087331; font-weight: 900; }
.command-field-job.is-urgent .command-field-job-indicator { background: #d33042; color: #fff; }
.command-field-job-expand { color: #176636; font-size: 12px; font-weight: 800; }
.command-field-job-body { padding: 0 16px 15px 56px; }
.command-field-event { padding: 10px 0; border-top: 1px solid #dce8df; font-size: 12px; }
.command-field-event strong { margin-right: 7px; }
.command-field-event p { margin: 7px 0; white-space: pre-wrap; }
.command-field-event a { color: #0a6d38; font-weight: 750; }
@media (max-width: 650px) { .tech-job.field-job { grid-template-columns: 66px minmax(0,1fr); } .command-field-job-expand { font-size: 10px; } .command-field-job-body { padding-left: 16px; } }
.tech-job.featured { box-shadow: 0 7px 24px rgba(81,47,142,.09); }
.ppi-completion { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-top: 6px; padding: 4px 7px; border: 1px solid #c5e3cd; border-radius: 7px; color: #126833; background: #eff9f2; font-size: 11px; font-weight: 900; white-space: nowrap; vertical-align: middle; }
.ppi-completion-label { flex: 0 0 auto; }
.ppi-completion-track { display: inline-block; width: 62px; height: 5px; overflow: hidden; border-radius: 9px; background: #c9e3d0; }
.ppi-completion-track i { display: block; height: 100%; border-radius: inherit; background: #15ad52; transition: width .25s ease; }
.command-tech-job .ppi-completion { margin: 0 6px 0 0; }
.job-time { align-self: stretch; display: grid; align-content: center; justify-items: start; border-right: 1px solid var(--soft-line); }
.job-time strong { font-size: 20px; line-height: 1; }
.job-time span { margin: 3px 0 11px; color: var(--muted); font-size: 8px; }
.job-time em { padding: 5px 6px; border-radius: 5px; color: #24643a; background: var(--green-pale); font-size: 7px; font-style: normal; font-weight: 950; }
.job-info { min-width: 0; }
.job-type { color: var(--green-dark); font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.job-info h2 { margin: 5px 0 3px; font-size: 18px; letter-spacing: -.025em; }
.job-info p { margin: 0 0 8px; color: #58675e; font-size: 10px; }
.job-info small { color: #89968e; font-size: 9px; line-height: 1.4; }
.job-controls { display: flex; gap: 6px; }
.job-controls button { min-height: 35px; padding: 7px 9px; border: 1px solid #cdd8d0; border-radius: 7px; background: #fff; color: #36443b; font-size: 9px; font-weight: 850; }
.job-controls a { min-height: 35px; padding: 7px 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd8d0; border-radius: 7px; background: #fff; color: #36443b; font-size: 9px; font-weight: 850; text-decoration: none; }
.job-controls button.primary { border-color: var(--night); background: var(--night); color: #fff; }
.tech-permission-note { margin-top: 15px; padding: 15px 17px; display: flex; gap: 12px; border: 1px solid #b9dfc3; border-radius: 11px; background: var(--green-pale); }
.tech-permission-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: #07110c; font-weight: 950; }
.tech-permission-note b { font-size: 11px; }
.tech-permission-note p { margin: 3px 0 0; color: #52705d; font-size: 9px; line-height: 1.45; }
.inspection-return { min-height: 53px; padding: 8px clamp(18px, 3.4vw, 54px); display: flex; align-items: center; gap: 13px; background: #f7faf8; border-bottom: 1px solid var(--line); }
.inspection-return span { color: var(--muted); font-size: 10px; font-weight: 800; }

.job-hero {
  padding: 30px clamp(18px, 3.4vw, 54px) 27px;
  color: #fff;
  background:
    radial-gradient(circle at 77% 15%, rgba(40,200,93,.13), transparent 29%),
    linear-gradient(135deg, #08130d 0%, #0d1e14 55%, #10271a 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
}
.eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.job-number { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.status-chip, .status-awaiting { border: 1px solid rgba(40,200,93,.36); color: #8df3aa; background: rgba(40,200,93,.09); border-radius: 99px; padding: 5px 8px 4px; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.job-heading h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.08; margin: 0; letter-spacing: -.035em; }
.job-heading p { margin: 9px 0 0; color: #afbeb4; font-size: 14px; }
.job-heading p span { color: #52675a; padding: 0 5px; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.hero-actions .button-ghost { color: #e8f2eb; border-color: #34483b; background: rgba(255,255,255,.025); }
.hero-actions .button-dark { color: #0c1810; background: #fff; }
.hero-metrics { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.hero-metrics > div { min-height: 58px; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.09); display: grid; align-content: start; gap: 4px; }
.hero-metrics > div:first-child { border-left: 0; padding-left: 0; }
.hero-metrics small { color: #759083; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.hero-metrics strong { font-size: 14px; }
.hero-metrics span { color: #a6b7ac; font-size: 12px; }
.hero-metrics .progress-metric strong { color: var(--green); font-size: 19px; line-height: 1; }

.field-procedure { padding: 13px clamp(18px, 3.4vw, 54px); color: #d7e4db; background: #0b1810; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid #21372a; display: grid; grid-template-columns: minmax(210px,.8fr) minmax(0,2fr); align-items: center; gap: 18px; }
.procedure-heading { display: grid; gap: 4px; }
.procedure-heading span { color: var(--green); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.procedure-heading strong { font-size: 11px; line-height: 1.45; }
.field-procedure ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.field-procedure li { min-width: 0; padding: 8px; border: 1px solid #284132; border-radius: 9px; background: #102219; display: flex; align-items: center; gap: 7px; }
.field-procedure li > b { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #07110c; background: var(--green); font-size: 9px; }
.field-procedure li > span { min-width: 0; display: grid; gap: 2px; color: #f0f7f2; font-size: 9px; font-weight: 850; }
.field-procedure li small { color: #789083; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.workspace { max-width: 1460px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 42px) 54px; display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 24px; align-items: start; }
.step-rail { position: sticky; top: 100px; background: #f8faf8; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 18px rgba(15,40,24,.035); }
.rail-title { padding: 17px 18px 13px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--soft-line); }
.rail-title b { color: var(--ink); }
.rail-title strong { margin-left: 5px; color: #087639; }
.rail-mobile-percent { display: none; }
.inspection-page-access { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; background: #eaf6ee; border-bottom: 1px solid #c5dfcc; }
.inspection-page-access .button { min-height: 44px; flex-shrink: 0; color: #075c32; border: 1px solid #9ec7ac; background: #fff; }
.inspection-page-access .button:disabled { opacity: 1; background: #d6efdf; color: #075c32; cursor: default; }
.inspection-page-access p { flex: 1 1 210px; margin: 0; font-size: 12px; line-height: 1.5; color: #335b42; }
.step-link { width: 100%; background: transparent; border: 0; border-left: 3px solid transparent; padding: 13px 15px; display: grid; grid-template-columns: 31px 1fr 20px; gap: 10px; align-items: center; text-align: left; color: var(--ink); transition: .18s ease; }
.step-link:hover { background: #f1f6f2; }
.step-link.active { background: var(--green-pale); border-left-color: var(--green); }
.step-link i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #e7ede9; color: #607066; font-size: 12px; font-weight: 900; font-style: normal; }
.step-link.active i { color: #07110c; background: var(--green); }
.step-link span { display: grid; gap: 3px; min-width: 0; }
.step-link b { font-size: 13px; }
.step-link small { color: #7e8b83; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-link em { display: none; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--green); color: #07110c; font-style: normal; font-size: 11px; font-weight: 900; }
.step-link.done em { display: grid; }
.step-link.done i { color: var(--green-dark); background: var(--green-pale); }
.step-link.done.active i { color: #07110c; background: var(--green); }
.rail-footer { border-top: 1px solid var(--soft-line); padding: 15px 18px; display: flex; gap: 11px; align-items: center; }
.rail-footer div { display: grid; gap: 2px; }
.rail-footer b { font-size: 12px; }
.rail-footer small { color: var(--muted); font-size: 10px; }
.rail-footer > button { margin-left: auto; min-height: 30px; padding: 6px 8px; border: 1px solid #b8d3bf; border-radius: 7px; background: #f1faf4; color: #0b7135; font-size: 9px; font-weight: 900; cursor: pointer; }
.rail-footer > button:disabled { opacity: .6; cursor: wait; }
.safe-refresh-mobile { display: none; }

.form-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prototype-banner { display: flex; gap: 12px; align-items: center; padding: 11px 22px; background: #eff8f1; border-bottom: 1px solid #d4ebda; color: #42644e; font-size: 12px; }
.prototype-banner strong { color: #0d6f32; font-size: 10px; letter-spacing: .1em; border: 1px solid #a8dbb7; border-radius: 5px; padding: 4px 6px; white-space: nowrap; }
.form-step { display: none; padding: clamp(22px, 4vw, 42px); }
.form-step.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-kicker { color: var(--green-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.section-heading h2 { margin: 7px 0 6px; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.1; letter-spacing: -.032em; }
.section-heading p, .subsection-title p, .panel-heading p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.45; }
.required-note { color: var(--muted); font-size: 11px; white-space: nowrap; }
.alert-card { display: flex; gap: 13px; border: 1px solid #f2d58d; background: var(--amber-pale); border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; }
.alert-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 900; flex: 0 0 auto; }
.alert-card b { font-size: 13px; }
.alert-card p { margin: 3px 0 0; color: #755c2e; font-size: 12px; line-height: 1.45; }
.validation-message { min-height: 16px; color: var(--muted); font-size: 10px; line-height: 1.35; font-weight: 650; }
.validation-message.good { color: #0c7132; }
.validation-message.warn { color: #8c620f; }
.validation-message.bad { color: #b33838; }
.vin-verify { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border: 1px solid #d8b76c; border-radius: 12px; background: #fff8e8; }
.vin-verify[hidden] { display: none; }
.vin-verify strong { color: #633c12; font-size: 14px; }
.vin-verify p { margin: 0; color: #624e31; font-size: 12px; line-height: 1.4; }
.vin-verify label { display: grid; gap: 5px; color: #493e2b; font-weight: 750; font-size: 12px; }
.vin-verify input:not([type="checkbox"]),.vin-verify textarea { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #c8bba1; border-radius: 8px; background: #fff; font: inherit; }
.vin-verify textarea { min-height: 62px; }
.vin-verify .vin-verify-check { display: flex; align-items: center; gap: 8px; }
.vin-verify-check input { flex: 0 0 auto; width: 20px; height: 20px; }
.vin-verify > button { justify-self: start; padding: 9px 12px; border: 0; border-radius: 8px; background: #16733f; color: white; font-weight: 800; }
.vin-verify > button:disabled { opacity: .6; }
.vin-verify > small { color: #633c12; }

label { display: grid; gap: 7px; min-width: 0; }
label > span, .verdict-fieldset legend { font-size: 12px; font-weight: 800; color: #415047; }
input, select, textarea { width: 100%; min-height: 45px; padding: 10px 12px; background: #fbfcfb; border: 1px solid #ccd7d0; border-radius: 9px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(40,200,93,.12); }
textarea { resize: vertical; line-height: 1.5; }
.field-grid { display: grid; gap: 17px; margin-bottom: 27px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.field-grid .wide { grid-column: span 2; }
.input-action, .input-suffix { display: flex; border: 1px solid #ccd7d0; border-radius: 9px; background: #fbfcfb; overflow: hidden; }
.input-action:focus-within, .input-suffix:focus-within { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(40,200,93,.12); }
.input-action input, .input-suffix input { border: 0; box-shadow: none; min-width: 0; background: transparent; }
.input-action button { border: 0; border-left: 1px solid var(--line); background: #f1f5f2; color: var(--green-dark); font-size: 10px; font-weight: 900; padding: 0 14px; }
.input-suffix span { display: grid; place-items: center; min-width: 45px; padding: 0 10px; color: #738078; font-size: 11px; font-weight: 900; }
.temperature-checks > label { align-content: start; }
.temperature-assessment { min-height: 42px; padding: 8px 10px; display: grid; grid-template-columns: 9px minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid #d9e1dc; border-radius: 9px; background: #f7f9f8; color: #536159; }
.temperature-assessment i { width: 8px; height: 8px; border-radius: 50%; background: #9ca8a1; box-shadow: 0 0 0 3px rgba(156,168,161,.13); }
.temperature-assessment > span { min-width: 0; display: grid; gap: 2px; }
.temperature-assessment b { color: #425047; font-size: 11px; line-height: 1.25; }
.temperature-assessment em { color: #738078; font-size: 9px; font-style: normal; font-weight: 650; line-height: 1.3; }
.temperature-assessment[data-state="within"] { border-color: #a9daba; background: #edf9f1; }
.temperature-assessment[data-state="within"] i { background: #149849; box-shadow: 0 0 0 3px rgba(20,152,73,.13); }
.temperature-assessment[data-state="within"] b { color: #0e7538; }
.temperature-assessment[data-state="attention"] { border-color: #edb6b6; background: #fff1f1; }
.temperature-assessment[data-state="attention"] i { background: #d64040; box-shadow: 0 0 0 3px rgba(214,64,64,.12); }
.temperature-assessment[data-state="attention"] b { color: #a52f2f; }
.temperature-assessment[data-state="attention"] em { color: #8a4a4a; }

.subsection-title, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 13px; }
.subsection-title h3, .panel-heading h3, .signoff-card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.subsection-title > span { border: 1px solid var(--line); background: #f8faf8; color: var(--muted); border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.checklist { border: 1px solid #b9cbbf; border-radius: 12px; overflow: hidden; }
.check-row { padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid #c6d5cb; background: #fff; }
.check-row[hidden] { display: none !important; }
.check-row:first-child { border-top: 0; }
.check-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.check-row b { font-size: 13px; }
.check-row small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.condition-group { display: flex; gap: 5px; flex: 0 0 auto; }
.condition-group button { min-width: 48px; padding: 8px 10px; background: #f4f7f5; color: #68766e; border: 1px solid #d9e2dc; border-radius: 8px; font-size: 10px; font-weight: 900; }
.condition-group button.selected { color: #fff !important; border-width: 2px; transform: translateY(-1px); }
.condition-group button.selected::after { content: " ✓"; font-weight: 950; }
.condition-group button.selected[data-value="good"] { border-color: #087438; background: #087438; box-shadow: 0 0 0 2px #fff,0 0 0 4px #087438; }
.condition-group button.selected[data-value="fair"] { border-color: #9a5b00; background: #9a5b00; box-shadow: 0 0 0 2px #fff,0 0 0 4px #9a5b00; }
.condition-group button.selected[data-value="caution"] { border-color: #bd6210; background: #bd6210; box-shadow: 0 0 0 2px #fff,0 0 0 4px #bd6210; }
.condition-group button.selected[data-value="bad"] { border-color: #b52525; background: #b52525; box-shadow: 0 0 0 2px #fff,0 0 0 4px #b52525; }
.condition-group button.selected[data-value="na"] { border-color: #4f5d54; background: #4f5d54; box-shadow: 0 0 0 2px #fff,0 0 0 4px #4f5d54; }
.condition-group.fluid-level { padding: 4px; border-radius: 10px; background: linear-gradient(90deg,#ffe0e0 0 25%,#fff1c9 25% 55%,#dff6e6 55% 100%); }
.condition-group.fluid-level button { background: rgba(255,255,255,.82); }
.condition-group.fluid-level.extended { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(500px,100%); }
.condition-group.fluid-level.extended button { min-width: 0; }
.inline-select { width: 180px; min-height: 37px; padding: 7px 9px; font-size: 11px; }
.compact .check-row { padding: 12px 14px; }
.power-source-scope { margin: 0 0 20px; padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 14px; border: 1px solid #91d3aa; border-radius: 13px; background: linear-gradient(135deg,#effbf3,#f7fcf9); }
.power-source-scope > span { padding: 6px 9px; border-radius: 99px; color: #08763a; background: #d9f5e2; font-size: 9px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.power-source-scope > div { display: grid; gap: 4px; }
.power-source-scope b { font-size: 13px; }
.power-source-scope p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.compact .condition-group button { min-width: 43px; }
.check-row:has(.item-note-field) { flex-wrap: wrap; }
.item-line-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.item-note-toggle, .item-photo-toggle { min-height: 31px; padding: 6px 9px; border: 1px solid #cfd9d2; border-radius: 7px; color: #4d5d53; background: #fff; font-size: 9px; font-weight: 850; }
.item-photo-toggle { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.item-photo-toggle input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; opacity: 0; }
.item-note-toggle:hover, .item-photo-toggle:hover { border-color: #84be94; color: #0c7032; background: #f4fcf6; }
.item-note-field { flex: 1 0 100%; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); }
.item-note-field[hidden] { display: none; }
.item-note-copy { display: grid; gap: 5px; }
.item-note-field span { color: #53625a; font-size: 10px; }
.item-note-field textarea { min-height: 62px; background: #f9fbfa; font-size: 11px; }
.item-note-evidence { margin-top: 9px; padding: 10px; border: 1px dashed #a9b9af; border-radius: 9px; background: #f7faf8; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; }
.item-note-evidence > div:first-child { display: grid; gap: 2px; }
.item-note-evidence b { font-size: 10px; }
.item-note-evidence small { color: var(--muted); font-size: 9px; }
.item-note-evidence .upload-button { min-height: 32px; padding: 7px 10px; font-size: 9px; }
.item-note-evidence .media-strip { grid-column: 1 / -1; }
.item-note-evidence .media-strip:empty { display: none; }

.intake-gate { margin: 4px 0 30px; padding: 0 18px 18px; border: 1px solid #b9d9c2; border-radius: 13px; background: linear-gradient(180deg,#f9fdfa,#f1f8f3); }
.intake-gate .subsection-title { margin-top: 18px; }
.keys-confirm { margin-bottom: 14px; padding: 13px 14px; border: 1px solid #d4e3d8; border-radius: 10px; background: #fff; grid-template-columns: 19px 1fr; align-items: center; cursor: pointer; }
.keys-confirm input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--green-dark); }
.keys-confirm > span { display: grid; gap: 3px; }
.keys-confirm b { color: var(--ink); font-size: 11px; }
.keys-confirm small { color: var(--muted); font-size: 9px; font-weight: 500; }
.opening-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.opening-slot { min-width: 0; padding: 12px; border: 1px solid #d7e1da; border-radius: 11px; background: #fff; display: grid; grid-template-columns: 28px minmax(0,1fr) auto auto; gap: 8px; align-items: center; transition: .15s; }
.opening-slot.complete { border-color: #73d990; box-shadow: inset 3px 0 0 var(--green); background: #f8fdf9; }
.opening-slot.marked-na { border-color: #b8c2bc; box-shadow: inset 3px 0 0 #8c9890; background: #f6f8f7; }
.slot-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--night); font-size: 9px; font-weight: 950; }
.opening-slot > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.opening-slot b { font-size: 11px; }
.opening-slot small { color: var(--muted); font-size: 8px; }
.opening-slot .upload-button { min-height: 32px; padding: 7px 9px; font-size: 9px; }
.slot-na { min-height: 32px; padding: 6px 8px; border: 1px solid #cbd6cf; border-radius: 7px; color: #55635b; background: #fff; font-size: 8px; font-weight: 900; }
.slot-na[aria-pressed="true"] { color: #26342b; background: #e5ebe7; border-color: #aab7af; }
.opening-slot .media-strip { grid-column: 2 / -1; }
.opening-slot .media-strip:empty { display: none; }
.identity-card { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbf9; }
.identity-card.opening-sequence-card { position: relative; padding-top: 15px; border-color: #a9d7b6; }
.identity-sequence { position: absolute; top: -10px; left: 10px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #0b7f42; color: #fff; font-size: 9px; font-weight: 950; box-shadow: 0 2px 7px rgba(8,75,38,.2); }
.identity-card.wide { grid-column: 1 / -1; }
.identity-card > label { display: grid; gap: 6px; }
.identity-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.identity-photo .media-strip { flex-basis: 100%; }
.opening-evidence-grid.single { grid-template-columns: 1fr; }
.intake-scan { margin-top: 11px; padding: 13px; border: 1px solid #d4e0d7; border-radius: 11px; background: #fff; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: center; }
.intake-scan > div:first-child { display: flex; align-items: center; gap: 11px; }
.intake-scan b { font-size: 12px; }
.intake-scan p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.intake-scan .report-upload { grid-column: 1 / -1; }
.scan-handoff-confirm { grid-column: 1 / -1; padding: 13px 14px; border: 1px solid #b9dfc3; border-radius: 10px; background: var(--green-pale); grid-template-columns: 19px 1fr; align-items: center; cursor: pointer; }
.scan-handoff-confirm input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--green-dark); }
.scan-handoff-confirm > span { display: grid; gap: 3px; }
.scan-handoff-confirm b { color: var(--ink); font-size: 11px; }
.scan-handoff-confirm small { color: #52705d; font-size: 9px; font-weight: 500; line-height: 1.4; }
.office-handoff-note { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #b9d3ed; border-radius: 10px; background: #f1f7fd; display: grid; gap: 3px; }
.office-handoff-note b { color: #1d4f80; font-size: 11px; }
.office-handoff-note span { color: #53708a; font-size: 9px; line-height: 1.45; }
.scan-bypass { grid-column: 1 / -1; padding: 12px; border: 1px solid #e5c56d; border-radius: 10px; background: #fffbef; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; }
.scan-bypass > div { display: grid; gap: 3px; }
.scan-bypass small { color: #735f28; font-size: 9px; line-height: 1.4; }
.scan-bypass button { min-height: 38px; padding: 8px 12px; border: 1px solid #b88b18; border-radius: 8px; background: #fff; color: #765600; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.scan-bypass button[aria-pressed="true"] { background: #9a6900; color: #fff; }
.scan-bypass label { grid-column: 1 / -1; display: grid; gap: 5px; }
.scan-bypass[hidden], .scan-bypass label[hidden] { display: none; }
.scan-bypass label span { color: #765600; font-size: 9px; font-weight: 900; }
.scan-bypass textarea { width: 100%; padding: 10px; border: 1px solid #d5bc76; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; resize: vertical; }
.gate-message { margin: 12px 2px 0; color: #8b5c08; font-size: 10px; font-weight: 750; }
.gate-message.ready { color: #0b7232; }

.evidence-card { margin-top: 19px; border: 1px dashed #a9b9af; border-radius: 12px; background: #f8fbf9; padding: 15px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.evidence-card > div:first-child { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.evidence-card b { font-size: 13px; }
.evidence-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.camera-icon { width: 30px; height: 30px; display: grid; place-items: center; color: transparent; background: var(--night); border-radius: 8px; position: relative; }
.camera-icon::before { content: ""; width: 12px; height: 9px; border: 2px solid var(--green); border-radius: 3px; }
.camera-icon::after { content: ""; width: 4px; height: 4px; border: 1px solid var(--green); border-radius: 50%; position: absolute; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 38px; padding: 9px 13px; color: #fff; background: var(--night); border-radius: 8px; font-size: 11px; font-weight: 850; cursor: pointer; }
.upload-button input, .report-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop-target { transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease; }
.file-drop-target.is-file-dragover { border-color: var(--green) !important; outline: 3px solid rgba(40,200,93,.2); outline-offset: 2px; background: #eaf9ee !important; color: #0a6a30 !important; box-shadow: 0 10px 28px rgba(16,86,43,.16); transform: translateY(-1px); }
.file-drop-target.is-file-dragover * { pointer-events: none; }
.media-strip { width: 100%; display: flex; gap: 9px; overflow-x: auto; }
.media-thumb { width: 176px; min-width: 0; min-height: 0; padding: 6px; gap: 5px; border: 1px solid #cddbd1; border-radius: 8px; flex: 0 0 auto; background: #f3f8f4; position: relative; overflow: hidden; display: flex; flex-direction: column; color: #4b5a50; font-size: 10px; text-align: center; }
.media-thumb img, .media-thumb video { width: 100%; height: 96px; border-radius: 5px; object-fit: cover; background: #102018; }
.media-file-name { padding: 3px 25px 2px 3px; overflow-wrap: anywhere; text-align: left; font-weight: 700; }
.media-thumb-actions { order: 4; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; width: 100%; }
.media-thumb-actions button { position: static; width: 100%; min-height: 30px; height: auto; padding: 5px 6px; border: 0; border-radius: 6px; background: #173d29; color: #fff; line-height: 1.15; font-size: 10px; font-weight: 800; cursor: pointer; overflow-wrap: anywhere; }
.media-thumb .media-save-copy { grid-column: 1 / -1; background: #176c3c; }
.media-thumb .media-retry { grid-column: 1 / -1; background: #a92323; }
.media-thumb .media-retry[hidden] { display: none; }
.media-thumb .media-view-photo { width: 100%; min-height: 34px; margin: 0; padding: 6px; border: 0; border-radius: 6px; background: #176c3c; color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.media-thumb .media-view-photo:disabled { opacity: .7; cursor: default; }
.media-thumb .media-save-copy.is-saved { background: #087a36; }
.media-thumb.saved-to-photos { border-color: #20a850; box-shadow: 0 0 0 2px rgba(32,168,80,.16); }
.media-thumb .media-saved-badge { position: absolute; z-index: 2; left: 5px; top: 5px; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #20b957; color: #fff; box-shadow: 0 2px 8px rgba(0,40,18,.3); font-size: 13px; font-weight: 950; line-height: 1; }
.media-thumb .media-upload-state { order: 3; display: block; padding: 6px; border-radius: 5px; background: rgba(4,25,15,.88); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.2; }
.media-thumb .media-upload-state[hidden] { display: none; }
.media-thumb .media-caption { order: 2; width: 100%; min-height: 34px; padding: 7px 8px; border: 1px solid #cddbd1; border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; }
.media-thumb.upload-failed { outline: 2px solid #c43737; background: #fff0f0; }
.media-thumb.upload-failed .media-upload-state { background: #a92323; }
.record-field-video { display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;margin:5px;border:1px solid #138a46;border-radius:9px;background:#e9f8ee;color:#07572b;font:inherit;font-size:14px;font-weight:750;cursor:pointer; }
.record-field-video:focus-visible { outline:3px solid #127a42;outline-offset:2px; }
.field-video-dialog video { display:block;width:100%;max-height:55vh;aspect-ratio:16/9;object-fit:contain;border-radius:10px;background:#07150e; }
.field-video-dialog #fieldVideoStatus { margin:12px 0 0;font-size:14px; }
.field-video-dialog .modal-footer { flex-wrap:wrap; }
.media-thumb.failed-photo-focus { animation: failed-photo-focus 1.05s ease-in-out 2; }
@keyframes failed-photo-focus { 0%,100% { box-shadow: 0 0 0 2px rgba(196,55,55,.22); } 50% { box-shadow: 0 0 0 6px rgba(196,55,55,.48); } }
.failed-photo-panel { margin: 18px 0; padding: 16px; border: 2px solid #d23c3c; border-radius: 13px; background: #fff5f5; }
.failed-photo-panel[hidden] { display: none; }
.failed-photo-heading { display: flex; align-items: flex-start; gap: 11px; }
.failed-photo-heading > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #bd2828; font-size: 20px; font-weight: 950; }
.failed-photo-heading h3 { margin: 0; color: #941f1f; font-size: 18px; }
.failed-photo-heading p { margin: 4px 0 0; color: #6d3c3c; font-size: 13px; line-height: 1.45; }
.failed-photo-list { display: grid; gap: 9px; margin-top: 13px; }
.failed-photo-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px; border: 1px solid #efb5b5; border-radius: 10px; background: #fff; }
.failed-photo-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.failed-photo-row strong { color: #722020; font-size: 13px; line-height: 1.35; }
.failed-photo-row span { overflow-wrap: anywhere; color: #765b5b; font-size: 11px; }
.failed-photo-row > div:last-child { display: flex; gap: 7px; }
.failed-photo-row button { min-height: 38px; padding: 8px 11px; border: 1px solid #bd7777; border-radius: 8px; color: #7d2222; background: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.failed-photo-row button.retry { border-color: #a92323; color: #fff; background: #a92323; }
.failed-photo-row button.delete { border-color: #d23c3c; color: #a92323; background: #fff5f5; }
.failed-photo-row button.delete:hover { color: #fff; background: #a92323; }
@media (max-width: 700px) {
  .failed-photo-panel { padding: 13px; }
  .failed-photo-row { grid-template-columns: 1fr; }
  .failed-photo-row > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .failed-photo-row button.delete { grid-column: 1 / -1; }
  .failed-photo-row button { width: 100%; min-height: 44px; }
}
.overview-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 22px; }
.overview-photo-grid.two-up { grid-template-columns: repeat(2,minmax(0,1fr)); }
.overview-photo { min-width: 0; min-height: 132px; padding: 14px; border: 1px dashed #9fb4a5; border-radius: 11px; background: #f8fbf9; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.overview-photo::before { content: "+"; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--green-pale); color: var(--green-dark); font-size: 19px; font-weight: 900; }
.overview-photo b { font-size: 12px; }
.overview-photo small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.overview-photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.overview-photo-actions button, .overview-photo-actions label { min-height: 34px; padding: 7px 8px; border: 1px solid #0b6f35; border-radius: 7px; display: grid; place-items: center; color: #fff; background: #0b6f35; font-size: 9px; font-weight: 900; text-align: center; cursor: pointer; }
.overview-photo-actions label { color: #174d2b; background: #fff; border-color: #a9c8b2; }
.overview-photo-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.overview-photo .media-strip { min-width: 0; max-width: 100%; margin-top: 7px; overscroll-behavior-inline: contain; }

.battery-date-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.battery-date-control button { min-width: 54px; border: 1px solid #a9b9af; border-radius: 8px; color: #47564d; background: #fff; font-size: 10px; font-weight: 900; }
.battery-date-control button[aria-pressed="true"] { border-color: #4f5d54; color: #fff; background: #4f5d54; box-shadow: 0 0 0 2px rgba(79,93,84,.14); }

.section-missing-panel { margin-top: 22px; padding: 14px; border: 2px solid #e2a62f; border-radius: 12px; background: #fff8e7; }
.section-missing-panel > header { display: flex; align-items: center; gap: 10px; }
.section-missing-panel > header span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #bd7600; font-weight: 950; }
.section-missing-panel h3 { margin: 0; font-size: 14px; }
.section-missing-panel p { margin: 3px 0 0; color: #76561e; font-size: 10px; }
.section-missing-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 11px; }
.section-missing-list button { min-height: 42px; padding: 9px 10px; border: 1px solid #dda943; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #412d0d; background: #fff; text-align: left; font-size: 10px; font-weight: 850; }
.section-missing-list button b { color: #08763a; white-space: nowrap; }
.section-missing-panel.complete { border-color: #57bd78; background: #effaf3; }
.section-missing-panel.complete > header span { background: #118a43; }
.section-missing-panel.complete p { color: #26613b; }
.requirement-focus { outline: 3px solid #e2a62f; outline-offset: 4px; box-shadow: 0 0 0 8px rgba(226,166,47,.18); }

.multi-photo-camera-modal { width: min(700px,calc(100vw - 20px)); overflow: hidden; }
.multi-photo-camera-body { padding: 14px; display: grid; gap: 12px; background: #07140d; }
.multi-photo-camera-stage { position: relative; min-height: min(58vh,540px); overflow: hidden; border-radius: 12px; background: #000; }
.multi-photo-camera-stage video { width: 100%; height: min(58vh,540px); display: block; object-fit: cover; }
.multi-photo-camera-stage > div { position: absolute; inset: auto 10px 10px; padding: 8px 10px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.66); font-size: 10px; font-weight: 800; text-align: center; }
.multi-photo-camera-count { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; }
.multi-photo-camera-count b { font-size: 12px; }
.multi-photo-camera-count span { color: #9fafa5; font-size: 9px; text-align: right; }
.multi-photo-camera-queue { display: flex; gap: 7px; overflow-x: auto; min-height: 0; }
.multi-photo-camera-queue:empty { display: none; }
.multi-photo-camera-queue img { width: 66px; height: 66px; flex: 0 0 auto; border: 2px solid #32d667; border-radius: 8px; object-fit: cover; }
.multi-photo-camera-actions { background: #fff; }

.paint-map { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: linear-gradient(180deg,#fbfcfb,#f5f8f6); }
.inspection-vehicle-map { margin: 0 0 18px; overflow: hidden; border: 1px solid #cfddd4; border-radius: 14px; background: radial-gradient(circle at 50% 42%,#fff 0,#f2f7f3 68%,#e8f0eb 100%); }
.vehicle-map-head { position: relative; z-index: 2; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce7df; background: rgba(255,255,255,.88); }
.vehicle-map-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
.vehicle-map-head b { font-size: 12px; }
.vehicle-map-head span { color: var(--muted); font-size: 9px; }
.vehicle-map-view { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: #edf3ef; }
.vehicle-map-view button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: #65746b; font-size: 9px; font-weight: 850; cursor: pointer; }
.vehicle-map-view button.active { background: #fff; color: var(--green-dark); box-shadow: 0 1px 4px rgba(17,50,31,.12); }
.vehicle-render-stage { position: relative; width: min(760px,100%); aspect-ratio: 3 / 2; margin: -2% auto -4%; isolation: isolate; }
.vehicle-render-stage::after { content: ""; position: absolute; z-index: -1; left: 13%; right: 10%; bottom: 15%; height: 8%; border-radius: 50%; background: rgba(4,23,14,.15); filter: blur(14px); }
.vehicle-render-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; filter: drop-shadow(0 18px 18px rgba(15,32,22,.16)); }
.vehicle-render-stage.is-right > img { transform: scaleX(-1); }
.vehicle-hotspots { position: absolute; inset: 0; }
.vehicle-hotspot { --marker:#7b8880; position: absolute; width: 22px; height: 22px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 2px var(--marker),0 5px 13px rgba(3,20,12,.24); cursor: pointer; transition: transform .16s ease,box-shadow .16s ease; }
.vehicle-hotspot:hover,.vehicle-hotspot:focus-visible { z-index: 4; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(255,255,255,.9),0 0 0 6px var(--marker),0 8px 17px rgba(3,20,12,.25); outline: 0; }
.vehicle-hotspot span { position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 150px; transform: translateX(-50%); padding: 6px 8px; border-radius: 7px; background: #081d13; color: #fff; font-size: 9px; line-height: 1.25; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.vehicle-hotspot span::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border: 4px solid transparent; border-top-color: #081d13; }
.vehicle-hotspot:hover span,.vehicle-hotspot:focus-visible span { opacity: 1; }
.vehicle-hotspot.status-good { --marker:#13a752; }
.vehicle-hotspot.status-watch { --marker:#d89a13; }
.vehicle-hotspot.status-concern { --marker:#c43a3a; }
.vehicle-hotspot.hood { left: 27%; top: 49%; }
.vehicle-hotspot.roof { left: 58%; top: 13%; }
.vehicle-hotspot.front-fender { left: 45%; top: 56%; }
.vehicle-hotspot.front-door { left: 69%; top: 51%; }
.vehicle-hotspot.rear-door { left: 81%; top: 44%; }
.vehicle-hotspot.rear-quarter { left: 90%; top: 38%; }
.vehicle-hotspot.decklid { left: 94%; top: 25%; }
.vehicle-hotspot.rocker { left: 72%; top: 70%; }
.vehicle-hotspot.front-bumper { left: 10%; top: 68%; }
.vehicle-hotspot.rear-bumper { left: 95%; top: 51%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.hood { left: auto; right: 27%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.roof { left: auto; right: 58%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.front-fender { left: auto; right: 45%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.front-door { left: auto; right: 69%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.rear-door { left: auto; right: 81%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.rear-quarter { left: auto; right: 90%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.decklid { left: auto; right: 94%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.rocker { left: auto; right: 72%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.front-bumper { left: auto; right: 10%; }
.vehicle-hotspots[data-map-side="right"] .vehicle-hotspot.rear-bumper { left: auto; right: 95%; }
.vehicle-map-legend { padding: 11px 15px 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 17px; border-top: 1px solid #dce7df; background: rgba(255,255,255,.86); color: #617067; font-size: 8px; font-weight: 750; }
.vehicle-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-map-legend i { width: 9px; height: 9px; border-radius: 50%; background: #7b8880; box-shadow: 0 0 0 2px #fff,0 0 0 3px currentColor; }
.vehicle-map-legend i.good { background: #13a752; color: #13a752; }
.vehicle-map-legend i.watch { background: #d89a13; color: #d89a13; }
.vehicle-map-legend i.concern { background: #c43a3a; color: #c43a3a; }
.measurement-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.measurement-grid label { padding: 9px; border: 1px solid var(--soft-line); border-radius: 8px; background: #fff; }
.measurement-grid label > span { font-size: 10px; }
.measurement-grid label > div { display: flex; align-items: center; }
.measurement-grid input, .measurement-grid select { min-height: 34px; padding: 5px 7px; border: 0; background-color: transparent; font-size: 16px; font-weight: 800; box-shadow: none; }
.paint-grid input { min-width: 0; flex: 1; cursor: text; }
.paint-grid label > div { gap: 5px; }
.paint-na-button { min-width: 38px; min-height: 29px; padding: 5px 7px; border: 1px solid #b9c7be; border-radius: 7px; background: #f4f7f5; color: #546259; font-size: 9px; font-weight: 900; cursor: pointer; }
.paint-na-button.active { border-color: #77877d; background: #dfe6e1; color: #223128; }
.paint-grid label.panel-not-applicable { opacity: .7; background: #eef1ef; border-style: dashed; }
.paint-map-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.paint-map-actions > span { border: 1px solid var(--line); background: #f8faf8; color: var(--muted); border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.paint-map-actions button { min-height: 30px; padding: 6px 10px; border: 1px solid #8ac69a; border-radius: 7px; background: #edf9f1; color: #08743a; font-size: 10px; font-weight: 850; cursor: pointer; }
.paint-map-actions button:hover { background: #dff4e6; }
.measurement-grid em { color: #809087; font-size: 10px; font-style: normal; font-weight: 800; }
.paint-grid label > small { min-height: 13px; color: #8a9790; font-size: 8px; line-height: 1.25; font-weight: 750; }
.paint-grid label.band-normal { border-color: #80d696; background: #f2fbf5; }
.paint-grid label.band-normal > small { color: #14723a; }
.paint-grid label.band-low { border-color: #e7c064; background: #fffaf0; }
.paint-grid label.band-low > small { color: #8b5c08; }
.paint-grid label.band-high { border-color: #ee9696; background: #fff7f7; }
.paint-grid label.band-high > small { color: #a32e2e; }

.measurement-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 25px; }
.measurement-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.measurement-table th, .measurement-table td { padding: 12px; border-bottom: 1px solid var(--soft-line); text-align: left; }
.measurement-table thead th { color: #6c7971; background: #f4f7f5; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.measurement-table tbody th { font-size: 12px; }
.measurement-table tbody tr:last-child th, .measurement-table tbody tr:last-child td { border-bottom: 0; }
.measurement-table label { display: flex; align-items: center; gap: 3px; border: 1px solid #d2dcd5; border-radius: 8px; padding: 0 7px; }
.measurement-table input { width: 58px; min-height: 36px; border: 0; background: transparent; padding: 5px; box-shadow: none; }
.measurement-table label span { color: #7a8880; font-size: 10px; }
.measurement-table select { min-height: 37px; padding: 7px; font-size: 11px; }
.measurement-table .dot-input { width: 74px; min-height: 37px; padding: 7px 9px; font-size: 11px; }
.tire-grade { display: inline-flex; min-width: 104px; padding: 6px 8px; border-radius: 7px; color: #68766e; background: #eef2ef; font-size: 8px; font-weight: 900; line-height: 1.25; }
.tire-grade.good { color: #0c7032; background: var(--green-pale); }
.tire-grade.fair { color: #8b5c08; background: var(--amber-pale); }
.tire-grade.poor { color: #a22d2d; background: var(--red-pale); }
.measurement-legend { margin: -11px 2px 23px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.measurement-legend b { color: #425047; }
.wheel-corner-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.wheel-corner-card { min-width: 0; padding: 15px; border: 2px solid #b7cbbd; border-radius: 14px; background: #f9fcfa; box-shadow: 0 8px 22px rgba(15,53,31,.05); }
.wheel-corner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.wheel-corner-head > div { display: flex; align-items: center; gap: 9px; }
.wheel-corner-head span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--night); color: #fff; font-size: 10px; font-weight: 950; }
.wheel-corner-head h3 { margin: 0; font-size: 15px; }
.wheel-corner-head .tire-grade { min-width: 0; }
.wheel-workflow-block { display: grid; gap: 9px; margin-top: 11px; padding: 11px; border: 1px solid #cbd9cf; border-radius: 11px; background: #fff; }
.wheel-disc-only[hidden], .wheel-drum-only[hidden] { display: none !important; }
.rear-brake-type { display: grid; gap: 5px; padding: 10px; border: 1px solid #88b99a; border-radius: 9px; background: #f1fbf4; color: #18482d; font-size: 11px; font-weight: 850; }
.rear-brake-type select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #94b9a0; border-radius: 8px; background: #fff; color: #173c28; font: inherit; font-size: 13px; }
.wheel-drum-note { margin: 0 0 9px; color: #526b5a; font-size: 10px; line-height: 1.5; }
.wheel-workflow-title { display: flex; align-items: center; gap: 9px; }
.wheel-workflow-title > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #e4f6ea; color: #08743a; font-size: 10px; font-weight: 950; }
.wheel-workflow-title > div { display: grid; gap: 2px; }
.wheel-workflow-title b { font-size: 11px; }
.wheel-workflow-title small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.wheel-measurements { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 13px; }
.wheel-measurements.one { grid-template-columns: minmax(0,1fr); margin-bottom: 0; }
.wheel-measure-field { min-width: 0; padding: 10px; border: 1px solid #c4d3c9; border-radius: 10px; background: #fff; display: grid; gap: 7px; align-content: start; }
.wheel-measure-field > label:first-child { display: grid; gap: 5px; }
.wheel-measure-field > label:first-child > span { color: #435149; font-size: 10px; font-weight: 850; }
.wheel-measure-field > label:first-child > div { display: flex; align-items: center; border: 1px solid #cad6ce; border-radius: 8px; overflow: hidden; }
.wheel-measure-field input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 8px; border: 0; box-shadow: none; background: transparent; font-size: 15px; font-weight: 850; }
.wheel-measure-field em { padding-right: 8px; color: #6d7b72; font-size: 10px; font-style: normal; font-weight: 800; }
.wheel-dot-na { width: 100%; min-height: 36px; border: 1px solid #a9b9af; border-radius: 8px; background: #fff; color: #47564d; font-size: 10px; font-weight: 900; cursor: pointer; }
.wheel-dot-na[aria-pressed="true"] { border-color: #4f5d54; background: #4f5d54; color: #fff; box-shadow: 0 0 0 2px rgba(79,93,84,.14); }
.wheel-photo-button { min-height: 32px; padding: 7px 8px; display: grid; place-items: center; border: 1px solid #8bc39a; border-radius: 8px; background: #edf9f1; color: #08743a; font-size: 9px; font-weight: 900; cursor: pointer; }
.wheel-photo-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }
.wheel-measure-field > small { color: #718078; font-size: 8px; line-height: 1.3; }
.wheel-measure-field .media-strip { gap: 6px; }
.wheel-measure-field .media-thumb { width: 160px; }
.wheel-measure-field .media-thumb img, .wheel-measure-field .media-thumb video { height: 86px; }
.wheel-corner-checklist { border-color: #b8c9be; }
.wheel-additional-info textarea { width: 100%; resize: vertical; min-height: 72px; padding: 10px; border: 1px solid #cad6ce; border-radius: 8px; font: inherit; font-size: 11px; }
.battery-test-evidence { margin: 11px 0 20px; padding: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px dashed #9fbfa8; border-radius: 11px; background: #f4fbf6; }
.battery-test-evidence > div:first-child { display: grid; gap: 3px; }
.battery-test-evidence b { font-size: 12px; }
.battery-test-evidence small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.battery-test-evidence .media-strip { grid-column: 1 / -1; }
.cold-start-evidence { margin: 0 0 18px; padding: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 16px; border: 2px solid #25bd59; border-radius: 12px; background: linear-gradient(135deg,#effbf3,#f8fffa); box-shadow: 0 8px 22px rgba(13,113,53,.08); }
.cold-start-copy { display: flex; align-items: center; gap: 12px; }
.cold-start-copy > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--night); color: var(--green); font-size: 16px; }
.cold-start-copy > div { display: grid; gap: 2px; }
.cold-start-copy em { color: #08743a; font-size: 8px; font-style: normal; font-weight: 950; letter-spacing: .12em; }
.cold-start-copy h3 { margin: 0; font-size: 14px; }
.cold-start-copy p { margin: 0; max-width: 720px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.cold-start-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cold-start-actions label { min-height: 39px; padding: 8px 12px; display: grid; place-items: center; border: 1px solid #0b6f35; border-radius: 8px; background: #0b6f35; color: #fff; font-size: 10px; font-weight: 900; text-align: center; cursor: pointer; white-space: nowrap; }
.cold-start-actions label.secondary { border-color: #96bca2; background: #fff; color: #174d2b; }
.cold-start-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cold-start-evidence .media-strip { grid-column: 1 / -1; }
.cold-start-evidence[hidden] { display: none; }
.cold-start-evidence[data-missing="true"] { border-color: #bb232e; background: #fff4f4; }
.cold-start-status { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 8px; background: #ffe4e7; color: #a21826; font-size: 13px; font-weight: 900; }
.cold-start-evidence[data-missing="false"] .cold-start-status { background: #def6e6; color: #0b6f35; }
.notes-field { margin-top: 20px; position: relative; }
.summary-field button { position: absolute; right: 10px; bottom: 10px; border: 0; background: var(--night); color: #fff; border-radius: 7px; padding: 7px 10px; font-size: 10px; font-weight: 800; }

.accordion-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.accordion { border-top: 1px solid var(--soft-line); background: #fff; }
.accordion:first-child { border-top: 0; }
.accordion > button { width: 100%; padding: 14px; border: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.accordion > button span { display: grid; gap: 3px; }
.accordion > button b { font-size: 13px; }
.accordion > button small { color: var(--muted); font-size: 10px; }
.accordion > button em { font-style: normal; font-size: 20px; color: var(--green-dark); }
.accordion.open > button { background: #f8fbf9; }
.accordion .accordion-body { display: none; padding: 0 12px 12px; }
.accordion.open .accordion-body { display: block; }

.scan-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fafcfb; }
.scan-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.scan-header > div { display: flex; align-items: center; gap: 11px; }
.scan-header b { font-size: 14px; }
.scan-header p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.scan-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--night); color: var(--green); font-size: 21px; }
.status-awaiting { color: #97650e; border-color: #ecc565; background: var(--amber-pale); }
.status-awaiting.ready { color: #0d7234; border-color: #8ddb9f; background: var(--green-pale); }
.report-upload { min-height: 72px; padding: 13px; border: 1px dashed #aebdb3; border-radius: 10px; background: #fff; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; cursor: pointer; }
.homebase-scan-upload { border: 2px dashed #148640; background: #f3fcf6; }
.scan-secure-control { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e4bd58; border-radius: 12px; background: #fff9e8; }
.scan-secure-control[hidden] { display: none; }
.scan-secure-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff0b7; font-size: 18px; }
.scan-secure-control > div:nth-child(2) { display: grid; gap: 3px; }
.scan-secure-control b { color: #5f4800; font-size: 11px; }
.scan-secure-control small { color: #765f1b; font-size: 9px; line-height: 1.4; }
.scan-secure-control button { min-height: 40px; padding: 9px 14px; border: 0; border-radius: 9px; background: #0d7135; color: #fff; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.scan-secure-control.secured { border-color: #78cf96; background: #eefbf3; }
.scan-secure-control.secured .scan-secure-mark { background: #d9f7e4; }
.scan-secure-control.secured b { color: #0d7135; }
.scan-secure-control.secured small { color: #397454; }
.scan-secure-control.secured button { background: #d9f7e4; color: #0d7135; cursor: default; }
.report-upload > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--green-pale); color: var(--green-dark); font-size: 20px; }
.report-upload div { display: grid; gap: 2px; }
.report-upload b { font-size: 12px; }
.report-upload small { color: var(--muted); font-size: 10px; }
.report-upload em { color: var(--green-dark); font-size: 11px; font-style: normal; font-weight: 900; }
.ai-inline-action { margin-top: 12px; padding: 13px 14px; border: 1px solid #b8d8c2; border-radius: 11px; background: linear-gradient(135deg,#f4fcf6,#e9f8ee); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-inline-action > div { display: flex; align-items: center; gap: 10px; }
.ai-inline-action > div > div { display: grid; gap: 2px; }
.ai-inline-action b { font-size: 12px; }
.ai-inline-action small { color: #55705d; font-size: 10px; line-height: 1.4; }
.scan-interpret-action { padding: 16px; border: 2px solid #38b967; background: linear-gradient(135deg,#effbf3,#ddf7e6); box-shadow: 0 8px 22px rgba(16,126,58,.08); }
.scan-interpret-action b { color: #0b5f2d; font-size: 14px; }
.scan-interpret-action .button { min-height: 48px; padding-inline: 18px; white-space: nowrap; }
.ai-spark { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #07110c; background: var(--green); font-size: 10px; font-weight: 950; letter-spacing: .04em; }
.button-ai { color: #fff; border-color: #173b24; background: #123420; }
.button-ai:hover { background: #19502d; }
.ai-inline-result { margin-top: 11px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 8px; background: #edf8f0; color: #365541; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.special-test { margin: 15px 0 26px; border: 1px solid var(--line); border-radius: 10px; }
.special-test summary { padding: 13px 15px; display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.special-test summary::-webkit-details-marker { display:none; }
.special-test summary span { display:grid; gap: 3px; }
.special-test summary b { font-size: 12px; }
.special-test summary small { color: var(--muted); font-size: 10px; }
.special-test summary em { font-style: normal; color: var(--green-dark); font-size: 20px; }
.special-test .field-grid { padding: 0 15px; }

.readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ai-review-center { margin-bottom: 22px; padding: 18px; border: 1px solid #b6d8c0; border-radius: 14px; background: linear-gradient(145deg,#f9fdf9,#eef8f1); box-shadow: 0 8px 22px rgba(13,55,28,.05); }
.ai-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-review-heading > div { display: flex; align-items: center; gap: 11px; }
.ai-review-heading h3 { margin: 0 0 3px; font-size: 16px; }
.ai-review-heading p { margin: 0; color: #5d7063; font-size: 11px; line-height: 1.4; }
.ai-connection { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #e7c46a; border-radius: 99px; color: #855b0c; background: var(--amber-pale); font-size: 9px; font-weight: 900; }
.ai-connection.ready { color: #0b6d30; border-color: #80d497; background: var(--green-pale); }
.ai-setup-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #c88812; border-radius: 8px; background: #fff8e7; color: #684d14; font-size: 11px; line-height: 1.45; }
.ai-review-actions { margin-top: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.ai-review-actions button { min-height: 74px; padding: 12px; border: 1px solid #c8d9cd; border-radius: 10px; background: #fff; text-align: left; display: grid; align-content: center; gap: 4px; }
.ai-review-actions button:hover { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(40,200,93,.1); }
.ai-review-actions b { font-size: 12px; }
.ai-review-actions span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.ai-assistant-row { margin-top: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 9px; }
.ai-assistant-row input { min-height: 40px; }
.ai-review-output { margin-top: 13px; padding: 14px; border: 1px solid #c8d9cd; border-radius: 10px; background: #fff; }
.ai-review-output > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-review-output > div:first-child b { font-size: 12px; }
.ai-review-output > div:first-child button { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #eef3ef; color: #4a5d50; font-size: 18px; }
#aiOutputBody { width: 100%; min-height: 210px; padding: 13px; border: 1px solid #c8d9cd; border-radius: 9px; background: #fbfdfb; color: #24392b; font: inherit; font-size: 12px; line-height: 1.6; resize: vertical; white-space: pre-wrap; }
.ai-output-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-output-actions button { min-height: 36px; padding: 8px 11px; border: 1px solid #8fc7a1; border-radius: 8px; background: #eff9f2; color: #0b7134; font-size: 10px; font-weight: 900; }
.dtc-editor { margin-top: 14px; padding: 16px; border: 1px solid #a8cfb4; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(12,65,31,.06); }
.dtc-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dtc-editor-heading h3 { margin: 6px 0 3px; font-size: 16px; }
.dtc-editor-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.homebase-lock { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #0a7537; color: #fff; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.dtc-editor-heading > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.dtc-editor-heading button,.dtc-preview-bar button { padding: 8px 10px; border: 1px solid #9fcaae; border-radius: 8px; background: #f3faf5; color: #0b6e34; font-size: 10px; font-weight: 900; }
.dtc-metrics,.dtc-report-metrics { margin: 14px 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.dtc-metrics article,.dtc-report-metrics article { position: relative; overflow: hidden; min-height: 62px; padding: 10px; border: 1px solid #d8e2da; border-radius: 9px; background: #f7faf8; display: grid; align-content: center; gap: 2px; }
.dtc-metrics article::before,.dtc-report-metrics article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #89978e; }
.dtc-metrics article.current::before,.dtc-report-metrics article.current::before { background: #c73838; }
.dtc-metrics article.pending::before,.dtc-report-metrics article.pending::before { background: #e49b1f; }
.dtc-metrics article.history::before,.dtc-report-metrics article.history::before { background: #5f718f; }
.dtc-metrics article.permanent::before,.dtc-report-metrics article.permanent::before { background: #7b4fb0; }
.dtc-metrics span,.dtc-report-metrics span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.dtc-metrics b,.dtc-report-metrics b { font-size: 20px; line-height: 1; }
.dtc-overview-field,.dtc-review-field { display: grid; gap: 6px; }
.dtc-overview-field > span,.dtc-review-field > span { color: #435248; font-size: 10px; font-weight: 900; }
.dtc-review-field { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dtc-review-field small { color: #8a5d0c; font-weight: 700; }
.dtc-code-list { margin-top: 12px; display: grid; gap: 10px; }
.dtc-code-editor { overflow: hidden; border: 1px solid #d7e1da; border-left: 4px solid #89978e; border-radius: 10px; background: #fafcfb; }
.dtc-code-editor.current { border-left-color: #c73838; }.dtc-code-editor.pending { border-left-color: #e49b1f; }.dtc-code-editor.history { border-left-color: #5f718f; }.dtc-code-editor.permanent { border-left-color: #7b4fb0; }
.dtc-code-editor-head { padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e8e3; background: #f3f7f4; }
.dtc-code-editor-head span { font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.dtc-code-editor-head button { border: 0; background: transparent; color: #a13030; font-size: 9px; font-weight: 900; }
.dtc-code-fields { padding: 11px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.dtc-code-fields label { display: grid; gap: 4px; }
.dtc-code-fields label.wide { grid-column: 1 / -1; }
.dtc-code-fields label span { color: #59685f; font-size: 9px; font-weight: 850; }
.dtc-code-fields input,.dtc-code-fields textarea { min-height: 38px; padding: 9px 10px; border: 1px solid #cbd9cf; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.dtc-editor-empty,.dtc-report-empty { padding: 22px; border: 1px dashed #bdcbc1; border-radius: 9px; display: grid; gap: 4px; text-align: center; color: var(--muted); }
.dtc-editor-empty b,.dtc-report-empty b { color: var(--ink); font-size: 12px; }.dtc-editor-empty span,.dtc-report-empty p { margin: 0; font-size: 10px; }
.dtc-client-preview { margin-top: 16px; padding: 13px; border: 1px solid #1d5230; border-radius: 12px; background: #edf2ee; }
.dtc-preview-bar { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }.dtc-preview-bar b { color: #0d7234; font-size: 9px; letter-spacing: .14em; }
.dtc-report { overflow: hidden; border: 1px solid #cddbd1; border-radius: 12px; background: #fff; color: #142119; }
.dtc-report-head { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(120deg,#071b12,#12462b); color: #fff; }
.dtc-report-head span { color: #5be48d; font-size: 8px; font-weight: 950; letter-spacing: .14em; }.dtc-report-head h4 { margin: 4px 0 0; font-size: 17px; }.dtc-report-head small { display: block; margin-top: 4px; color: #c6ddce; font-size: 8px; }.dtc-report-head > strong { padding: 6px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.09); font-size: 9px; }
.dtc-report-metrics { margin: 12px; }.dtc-report-overview { margin: 0 12px 12px; padding: 11px 12px; border-left: 3px solid #22b458; border-radius: 7px; background: #f0f8f3; color: #405248; font-size: 11px; line-height: 1.55; }
.dtc-report-codes { padding: 0 12px 12px; display: grid; gap: 9px; }
.dtc-report-code { padding: 11px 12px; border: 1px solid #dbe4dd; border-left: 4px solid #87968d; border-radius: 9px; background: #fcfdfc; }.dtc-report-code.current { border-left-color: #c73838; background: #fffafa; }.dtc-report-code.pending { border-left-color: #e49b1f; background: #fffdf8; }.dtc-report-code.history { border-left-color: #5f718f; }.dtc-report-code.permanent { border-left-color: #7b4fb0; }
.dtc-report-code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.dtc-report-code-head strong { font-size: 16px; letter-spacing: .03em; }.dtc-report-code-head span { padding: 4px 7px; border-radius: 999px; background: #eef2ef; color: #46564c; font-size: 8px; font-weight: 950; text-transform: uppercase; }.dtc-report-code > small { display: block; margin-top: 1px; color: #728078; font-size: 9px; }
.dtc-report-code > div:not(.dtc-report-code-head) { margin-top: 9px; }.dtc-report-code > div:not(.dtc-report-code-head) b { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.dtc-report-code p { margin: 3px 0 0; color: #46564c; font-size: 10px; line-height: 1.45; }
@media (max-width: 760px) {
  .battery-fleet-grid { grid-template-columns:1fr; }
  .battery-fleet-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .battery-fleet-metrics article:first-child { grid-column:1/-1; }
  .battery-return-chart>header { align-items:flex-start; flex-direction:column; }
  .battery-return-lanes { grid-template-columns:1fr; }
  .battery-return-entry { min-height:42px; }
  .battery-return-totals { width:100%; justify-content:stretch; }
  .battery-return-totals>span { flex:1; min-width:90px; }
  .battery-review-queue>header { align-items:stretch; flex-direction:column; }
  .battery-review-queue>header>strong { width:52px; }
  .battery-review-card { align-items:stretch; grid-template-columns:1fr; }
  .battery-review-actions { flex-direction:column; }
  .battery-sync-state { max-width:none; }
  .battery-add-panel>summary { width:100%; text-align:center; }
  .battery-stock-card { display:grid; grid-template-columns:1fr; }
  .battery-van-card>footer { align-items:stretch; }
  .battery-van-card>footer>.button { flex:1; }
  .dtc-editor-heading { flex-direction: column; }
  .dtc-editor-heading > div:last-child { justify-content: flex-start; }
  .dtc-metrics,.dtc-report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dtc-metrics article.total,.dtc-report-metrics article.total { grid-column: 1 / -1; }
  .dtc-code-fields { grid-template-columns: 1fr; }
  .dtc-code-fields label.wide { grid-column: auto; }
  .dtc-report-head { align-items: flex-start; }
}
.report-dialog-actions { display: flex; align-items: center; gap: 8px; }
.report-dialog-actions .button { min-height: 34px; }
.readiness-grid article { border: 1px solid var(--line); border-radius: 11px; padding: 14px; display: flex; align-items: center; gap: 11px; }
.readiness-grid article div { display: grid; gap: 2px; }
.readiness-grid b { font-size: 12px; }
.readiness-grid small { color: var(--muted); font-size: 10px; }
.readiness-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #e9eef5; color: var(--blue); font-weight: 900; }
.readiness-icon.good { background: var(--green-pale); color: var(--green-dark); }
.readiness-icon.warn { background: var(--amber-pale); color: #a76d07; }
.findings-panel { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px 16px; margin-top: 18px; }
.findings-list { display: grid; gap: 9px; }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.empty-state span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-weight: 900; }
.empty-state b { color: var(--ink); font-size: 12px; }
.empty-state small { font-size: 10px; }
.finding-item { border-left: 4px solid var(--amber); border-radius: 8px; background: #fbf9f3; padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; }
.finding-item.urgent { border-left-color: var(--red); background: #fff6f6; }
.finding-item.note { border-left-color: #87958c; background: #f5f7f6; }
.finding-item > div { display: grid; gap: 3px; }
.finding-item b { font-size: 12px; }
.finding-item small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.finding-item button { width: 25px; height: 25px; border: 0; border-radius: 6px; background: rgba(0,0,0,.06); color: #536058; }
.finding-item-copy { min-width: 0; flex: 1; }
.finding-item-actions { display: flex !important; align-items: flex-start; gap: 5px !important; }
.finding-item-actions button:first-child { width: auto; padding: 0 8px; color: #0a7035; background: #e6f5eb; font-size: 9px; font-weight: 900; }
.finding-media-summary { display: grid; gap: 6px; margin-top: 8px; }
.finding-media-summary > span { color: #52705d; font-size: 9px; font-weight: 850; }
.repair-estimate-panel { margin-top: 18px; border: 1px solid #9fd8ae; border-radius: 14px; background: linear-gradient(145deg,#f7fcf8,#eef9f2); overflow: hidden; }
.repair-estimate-heading { margin: 0; padding: 18px; align-items: center; border-bottom: 1px solid #cbe8d2; }
.repair-estimate-heading > div > span { display: block; margin-bottom: 4px; color: var(--green-dark); font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.repair-estimate-heading h3 { margin: 0; font-size: 17px; }
.repair-estimate-heading p { margin: 5px 0 0; max-width: 620px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.repair-estimate-vehicle { margin: 14px 18px 0; padding: 11px 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; border: 1px solid #d5e8da; border-radius: 9px; background: rgba(255,255,255,.75); }
.repair-estimate-vehicle span { grid-row: 1 / 3; padding: 5px 7px; border-radius: 6px; background: var(--night); color: #59e58d; font-size: 7px; font-weight: 950; letter-spacing: .09em; }
.repair-estimate-vehicle b { font-size: 11px; }
.repair-estimate-vehicle small { color: var(--muted); font-size: 8px; }
.repair-estimate-list { padding: 14px 18px 0; display: grid; gap: 10px; }
.repair-estimate-row { padding: 12px; display: grid; grid-template-columns: 28px minmax(180px,1fr) 150px 105px 105px; gap: 9px; align-items: end; border: 1px solid #d6e4da; border-left: 4px solid var(--amber); border-radius: 10px; background: #fff; }
.repair-estimate-row.invalid { border-color: #d84b4b; background: #fff7f7; }
.repair-estimate-number { width: 25px; height: 25px; align-self: start; display: grid; place-items: center; border-radius: 7px; background: var(--night); color: #fff; font-size: 10px; font-weight: 950; }
.repair-estimate-copy { min-width: 0; align-self: start; display: grid; gap: 3px; }
.repair-estimate-copy b { font-size: 11px; }
.repair-estimate-copy small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.repair-estimate-copy em { width: max-content; padding: 3px 6px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); font-size: 7px; font-style: normal; font-weight: 900; }
.repair-estimate-row label { display: grid; gap: 4px; }
.repair-estimate-row label[hidden] { display: none; }
.repair-estimate-row select { width: 100%; min-height: 40px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; }
.repair-estimate-note { grid-column: 2 / -1; }
.repair-estimate-note input { padding-left: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.repair-estimate-row label > span { color: #506158; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.repair-estimate-row label > div { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.repair-estimate-row label > div:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(40,200,93,.12); }
.repair-estimate-row label i { padding-left: 9px; color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 900; }
.repair-estimate-row input { min-width: 0; min-height: 36px; padding: 8px 8px 8px 3px; border: 0; border-radius: 0; font-size: 10px; }
.repair-estimate-basis { grid-column: 2 / -1; }
.repair-estimate-basis input { padding-left: 10px; border: 1px solid var(--line); border-radius: 8px; }
.repair-estimate-empty { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed #bcd7c3; border-radius: 10px; background: rgba(255,255,255,.6); }
.repair-estimate-empty > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-weight: 950; }
.repair-estimate-empty b { font-size: 11px; }
.repair-estimate-empty p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.repair-estimate-total { margin: 14px 18px 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 10px; background: var(--night); color: #fff; }
.repair-estimate-total span { display: grid; gap: 3px; white-space: nowrap; }
.repair-estimate-total small { color: #5be48d; font-size: 7px; font-weight: 950; letter-spacing: .12em; }
.repair-estimate-total b { font-size: 19px; }
.repair-estimate-total p { margin: 0; max-width: 480px; color: #c1cec6; font-size: 9px; line-height: 1.5; }
.repair-estimate-publication { margin: 0 18px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid #bcd7c3; border-radius: 10px; background: #fff; }
.repair-estimate-publication[hidden] { display: none; }
.repair-estimate-publication p { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.repair-estimate-publication .button { white-space: normal; max-width: 100%; }
.issue-button { border: 1px solid #b9d7c1; border-radius: 8px; background: #f1faf4; color: #137138; padding: 8px 10px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.verdict-fieldset { margin: 25px 0; padding: 0; border: 0; }
.verdict-fieldset legend { margin-bottom: 10px; }
.verdict-options { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.verdict-options label { cursor: pointer; }
.verdict-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.verdict-card { min-height: 112px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 12px; text-align: center; transition: .15s; }
.verdict-card i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: #eef2ef; }
.verdict-card b { font-size: 12px; }
.verdict-card small { color: var(--muted); font-size: 9px; }
.verdict-options input:checked + .passed { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,200,93,.13); background: var(--green-pale); }
.verdict-options input:checked + .attention { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(231,155,33,.13); background: var(--amber-pale); }
.verdict-options input:checked + .caution { border-color: #d67916; box-shadow: 0 0 0 3px rgba(214,121,22,.16); background: #fff0db; }
.verdict-options input:checked + .failed { border-color: var(--red); box-shadow: 0 0 0 3px rgba(222,74,74,.11); background: var(--red-pale); }
@media (min-width: 701px) and (max-width: 1000px) { .verdict-options { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.signoff-card { border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; padding: 17px; margin-top: 23px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 16px; align-items: end; }
.signoff-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.confirm-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.confirm-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--green-dark); }
.confirm-check span { font-weight: 600; }
.delivery-card { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--night); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.delivery-card > div { display: flex; align-items: center; gap: 12px; }
.delivery-card > div > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: rgba(40,200,93,.14); color: var(--green); font-size: 19px; }
.delivery-card b { font-size: 13px; }
.delivery-card p { margin: 3px 0 0; color: #a8b7ad; font-size: 10px; }
.discard-line-button { margin: 6px 10px 9px auto; padding: 5px 8px; border: 1px solid #d89a9a; border-radius: 6px; background: #fff7f7; color: #a22d2d; font-size: 9px; font-weight: 800; }
.check-row.report-excluded { opacity: .62; background: #f2f2f2; }
.check-row.report-excluded > div:first-child b { text-decoration: line-through; }
.check-row.report-excluded .discard-line-button { border-color: #68bd87; background: #eefaf2; color: #08793b; }
.report-share-card { margin-top: 14px; padding: 20px; border: 1px solid #9ad4af; border-radius: 16px; background: linear-gradient(145deg,#f5fff8 0%,#eaf8ef 100%); box-shadow: 0 10px 30px rgba(13,83,41,.08); }
.report-share-heading { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.report-share-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #0e7738; font-size: 22px; font-weight: 900; }
.report-share-heading>div:nth-child(2)>span { color: var(--green-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.report-share-card h3 { margin: 3px 0; font-size: 18px; }
.report-share-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.report-share-status { padding: 6px 9px; border-radius: 999px; color: #6c786f; background: #fff; border: 1px solid #c8d8cd; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.report-share-card.has-link .report-share-status { color: #087536; background: #dcf6e5; border-color: #a8deb9; }
.client-inspector-choice { display: grid; gap: 6px; margin-top: 17px; color: var(--ink); font-size: 11px; font-weight: 850; }
.client-inspector-choice select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #a9c8b2; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.client-inspector-choice small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.report-share-hidden-url { position: fixed !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.report-share-copy { width: 100%; min-height: 68px; margin-top: 17px; padding: 13px 16px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; border: 1px solid #0f8e42; border-radius: 13px; background: #0f8e42; color: #fff; text-align: left; box-shadow: 0 8px 18px rgba(15,142,66,.2); }
.report-share-copy>span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.15); font-size: 17px; }
.report-share-copy b { font-size: 14px; }
.report-share-copy small { color: #c9f4d8; font-size: 9px; }
.report-share-copy:hover:not(:disabled) { background: #0b7c39; transform: translateY(-1px); }
.report-share-copy:disabled { border-color: #becbc2; background: #dfe7e1; color: #718077; box-shadow: none; cursor: not-allowed; }
.report-share-copy:disabled small { color: #7e8982; }
.report-share-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.report-share-actions button { min-height: 40px; padding: 8px 10px; border: 1px solid #a9c8b2; border-radius: 9px; background: #fff; color: var(--green-dark); font-size: 10px; font-weight: 850; }
.report-share-actions button:disabled { opacity: .42; }
.report-share-meta { margin-top: 10px; color: var(--muted); font-size: 9px; }
.report-share-settings { margin-top: 12px; border-top: 1px solid #cce2d3; padding-top: 10px; }
.report-share-settings summary { width: max-content; color: #456351; font-size: 10px; font-weight: 850; cursor: pointer; }
.report-share-settings>div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.report-share-settings button { min-height: 34px; padding: 7px 10px; border: 1px solid #a9c8b2; border-radius: 8px; background: #fff; color: #145e31; font-size: 9px; font-weight: 850; }
.report-share-settings button.danger { color: #a22d2d; border-color: #dfa9a9; }
.missing-items-panel { margin: 15px 0; padding: 16px; border: 1px solid #e4ba58; border-radius: 12px; background: #fff9eb; }
.missing-items-panel > div:first-child { display: flex; align-items: center; gap: 10px; }
.missing-items-panel h3 { margin: 0; font-size: 14px; }
.missing-items-panel p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.missing-items-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.missing-items-list button { min-height: 42px; padding: 9px 10px; border: 1px solid #dfc27b; border-radius: 8px; background: #fff; color: var(--ink); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: left; font-size: 10px; font-weight: 750; }
.missing-items-list button span { color: #8b5c08; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.missing-items-list button b { color: var(--green-dark); font-size: 9px; }
.missing-items-panel.complete { border-color: #88d2a0; background: #effaf3; }
.missing-complete { color: #0c7032; font-size: 11px; font-weight: 850; }
.section-heading > .issue-button { display: none; }

.form-footer { border-top: 1px solid var(--line); padding: 16px clamp(22px, 4vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 14px; position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.footer-save { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.button { min-height: 40px; border-radius: 8px; padding: 9px 14px; border: 1px solid transparent; font-size: 11px; font-weight: 850; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.button-primary { color: #07110c; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: #3ddd6c; }
.button-ghost { background: #fff; color: var(--ink); border-color: #cfd9d2; }
.button-dark { background: var(--night); color: #fff; }
.button-voice { color: #174b29; border-color: #aed8bb; background: #eef9f1; }
.button-voice.recording { color: #972b2b; border-color: #eca0a0; background: #fff1f1; }

.persistent-preview {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 60;
  min-width: 300px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(73, 214, 121, .32);
  border-radius: 14px;
  background: rgba(7, 25, 17, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  backdrop-filter: blur(12px);
}
.persistent-preview span { display: grid; gap: 2px; }
.persistent-preview b { color: #5de68d; font-size: 9px; letter-spacing: .09em; }
.persistent-preview small { color: #c9d8ce; font-size: 10px; white-space: nowrap; }
.persistent-preview .button { min-height: 42px; padding-inline: 17px; box-shadow: 0 7px 18px rgba(20, 154, 72, .24); }

.modal { width: min(620px, calc(100vw - 28px)); max-height: min(820px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.32); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(3,10,6,.68); backdrop-filter: blur(3px); }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header span { color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.modal-header h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.02em; }
.modal-header button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f0f4f1; color: #425047; font-size: 22px; }
.report-modal .modal-header { gap: 12px; }
.report-modal .modal-header > div:first-child { min-width: 0; }
.report-modal .report-dialog-actions { flex: none; }
.report-modal .report-dialog-actions .button { width: auto; height: auto; min-height: 36px; padding: 8px 12px; border: 1px solid #cfd9d2; background: #fff; font-size: 12px; white-space: nowrap; }
.report-modal .report-dialog-actions [data-close-modal] { flex: none; }
@media (max-width: 600px) {
  .report-modal .modal-header { flex-wrap: wrap; }
  .report-modal .report-dialog-actions { margin-left: auto; }
}
.voice-modal { width: min(620px, calc(100vw - 28px)); }
.voice-body { padding: 20px; display: grid; gap: 17px; }
.voice-recorder { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; display: flex; align-items: center; gap: 12px; }
.voice-recorder > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #8b9990; background: #e9efeb; }
.voice-recorder.recording > span { color: #e63f3f; background: #ffe8e8; animation: pulseVoice 1.1s ease-in-out infinite; }
.voice-recorder div { display: grid; gap: 3px; }
.voice-recorder b { font-size: 12px; }
.voice-recorder small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.voice-controls { display: flex; gap: 9px; }
.voice-controls .button { flex: 1; }
@keyframes pulseVoice { 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(230,63,63,.08); } }
.modal-body { padding: 20px; display: grid; gap: 17px; }
.modal-body .field-grid { margin: 0; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.vin-scanner-modal { width: min(540px, calc(100vw - 28px)); }
.vin-scanner-intro, .vin-scanner-help { display: grid; gap: 5px; padding: 14px; border-radius: 11px; background: #f1f7f3; color: #46564c; font-size: 12px; line-height: 1.45; }
.vin-scanner-intro b, .vin-scanner-help b { color: var(--ink); font-size: 13px; }
.vin-camera-capture { min-height: 96px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 2px dashed #7bb98c; border-radius: 13px; background: #fbfefb; cursor: pointer; }
.vin-camera-capture input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vin-camera-capture > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #def3e5; color: var(--green-dark); font-size: 25px; font-weight: 900; }
.vin-camera-capture div { display: grid; gap: 3px; }
.vin-camera-capture b { font-size: 14px; color: var(--ink); }
.vin-camera-capture small { color: var(--muted); font-size: 11px; }
.vin-camera-capture em { padding: 7px 9px; border-radius: 7px; background: var(--green); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; }
.vin-scanner-preview { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 13px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vin-scanner-preview img { width: 108px; height: 78px; object-fit: cover; border-radius: 8px; background: #eff4f0; }
.vin-scanner-preview div { display: grid; gap: 5px; }
.vin-scanner-preview b { font-size: 13px; color: var(--ink); }
.vin-scanner-preview small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-login-modal { width: min(520px, calc(100vw - 24px)); }
.field-login-brand { padding: 23px 22px 19px; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 15px; align-items: center; color: #fff; background: linear-gradient(135deg, #07110c 0%, #0c3a21 100%); }
.field-login-brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.field-login-brand span { color: #54dc82; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.field-login-brand h2 { margin: 4px 0 4px; font-size: 23px; }
.field-login-brand p { margin: 0; color: #bfd0c4; font-size: 11px; line-height: 1.45; }
.field-login-body label { display: grid; gap: 7px; color: #3c4b42; font-size: 13px; font-weight: 850; }
.field-login-body label > small { color: var(--muted); font-size: 10px; font-weight: 500; }
.field-login-body select, .field-login-body input { width: 100%; min-height: 52px; padding: 11px 13px; border: 1px solid #c9d7cd; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.field-login-body input { font-size: 24px; letter-spacing: .35em; text-align: center; }
.field-login-message { padding: 11px 12px; border-radius: 9px; color: #4e5f54; background: #eef5f0; font-size: 11px; line-height: 1.5; }
.field-login-message.error { color: #8d3232; background: #fff0f0; }
.field-login-message.success { color: #176e38; background: #e8f8ed; }
.field-login-actions { justify-content: space-between; }
.field-login-actions .button-primary { margin-left: auto; }
.detail-list > div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--soft-line); }
.detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list span { color: var(--green-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.detail-list b { font-size: 13px; }
.detail-list small { color: var(--muted); font-size: 11px; }
.success-modal { text-align: center; padding: 34px; }
.success-modal h2 { margin: 12px 0 7px; font-size: 23px; }
.success-modal p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.success-mark { margin: 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-size: 27px; font-weight: 900; }
.report-modal { width: min(780px, calc(100vw - 28px)); }
.report-preview { background: #eef2ef; padding: 22px; }
.report-pages { display: grid; gap: 22px; }
.report-sheet { width: 100%; max-width: 680px; aspect-ratio: 8.5 / 11; margin: 0 auto; background: #fff; padding: 27px; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.report-brand { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--green); padding-bottom: 13px; }
.report-brand strong { font-size: 15px; }
.report-brand span { color: var(--green-dark); font-size: 10px; font-weight: 900; }
.report-page-title { padding: 18px 0 13px; border-bottom: 1px solid var(--soft-line); }
.report-page-title > span { color: var(--green-dark); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.report-page-title h3 { margin: 4px 0; font-size: 20px; }
.report-page-title p { margin: 0; color: var(--muted); font-size: 10px; }
.report-result { margin: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.report-result h3 { margin: 0; font-size: 22px; }
.report-result p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.report-badge { border-radius: 7px; padding: 7px 10px; background: var(--amber-pale); color: #7e5308; font-size: 10px; font-weight: 900; }
.report-badge.passed { background: #e5f8ec; color: #08743a; }
.report-badge.caution { background: #fff0db; color: #9a4e0d; }
.report-badge.failed { background: #ffe6e6; color: #a32929; }
.report-summary { border: 1px solid var(--line); border-radius: 9px; padding: 13px; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.report-counts { margin-bottom: 16px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.report-counts div { min-width: 0; padding: 10px 5px; display: grid; justify-items: center; gap: 3px; background: #f8faf8; }
.report-counts b { font-size: 18px; line-height: 1; }
.report-counts span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.report-counts .good b { color: var(--green-dark); }
.report-counts .fair b { color: #a46b08; }
.report-counts .caution b { color: #bd6210; }
.report-counts .bad b { color: var(--red); }
.report-findings { margin-top: 16px; }
.report-findings h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.report-findings li { margin: 8px 0; font-size: 11px; line-height: 1.45; }
.report-findings li span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.report-repair-total { margin: 17px 0 13px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-radius: 10px; background: linear-gradient(120deg,#071b12,#12462b); color: #fff; }
.report-repair-total > div { display: grid; gap: 4px; }
.report-repair-total span { color: #5be48d; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.report-repair-total b { font-size: 22px; }
.report-repair-total p { margin: 0; max-width: 240px; color: #c2d2c8; font-size: 9px; line-height: 1.4; }
.report-repair-list { display: grid; gap: 8px; }
.report-repair-list article { padding: 9px 10px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; }
.report-repair-list article > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--night); color: #fff; font-size: 8px; font-weight: 950; }
.report-repair-list article > div { min-width: 0; display: grid; gap: 2px; }
.report-repair-list article b { font-size: 10px; }
.report-repair-list article small { color: var(--green-dark); font-size: 8px; font-weight: 800; }
.report-repair-list article p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.35; }
.report-repair-list article strong { font-size: 11px; white-space: nowrap; }
.report-repair-note { margin-top: 13px; padding: 10px 12px; border-left: 3px solid var(--green); background: #f2f8f4; }
.report-repair-note b { font-size: 9px; }
.report-repair-note p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.report-repair-empty { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.report-repair-empty > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-weight: 950; }
.report-repair-empty b { font-size: 12px; }
.report-repair-empty p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.report-value-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.report-value-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-value-grid > div { min-width: 0; padding: 9px 10px; display: grid; gap: 3px; background: #fff; }
.report-value-grid span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.report-value-grid b { overflow-wrap: anywhere; font-size: 10px; }
.report-value-grid .battery-result-cell.pass { background: #e6f7ec; color: #08743a; }
.report-value-grid .battery-result-cell.attention { background: #fff3d8; color: #825700; }
.report-value-grid .battery-result-cell.fail { background: #fff0f0; color: #9f2525; }
.report-value-grid .battery-result-cell.unrated { background: #f4f7f5; color: #56635b; }
.report-opening-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-opening-grid > div { padding: 10px 12px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); display: grid; gap: 3px; }
.report-opening-grid span { color: var(--muted); font-size: 8px; }
.report-opening-grid b { font-size: 10px; }
.report-check-group { margin-top: 16px; }
.report-check-group > h4 { margin: 0 0 7px; color: var(--green-dark); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.report-checklist { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.report-check-row { padding: 8px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--soft-line); }
.report-check-row:last-child { border-bottom: 0; }
.report-check-row > div { min-width: 0; display: grid; gap: 2px; }
.report-check-row b { font-size: 10px; }
.report-check-row small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.report-check-row p { margin: 3px 0 0; color: #33443a; font-size: 8px; line-height: 1.4; }
.report-wheel-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.report-wheel-groups .report-check-group { margin-top: 12px; }
.report-wheel-groups .report-check-row { padding: 6px 8px; gap: 7px; }
.report-wheel-groups .report-check-row small { font-size: 7px; }
.report-wheel-groups .report-condition { min-width: 58px; padding: 4px 6px; font-size: 7px; }
.report-condition { min-width: 74px; padding: 5px 7px; border-radius: 6px; text-align: center; font-size: 8px; font-weight: 900; }
.report-condition.good { color: #11753b; background: #e3f5e9; }
.report-condition.fair { color: #815706; background: #fff1cf; }
.report-condition.caution { color: #995009; background: #ffead7; }
.report-condition.bad { color: #a32626; background: #ffe4e4; }
.report-condition.na, .report-condition.blank { color: #5d6b62; background: #edf1ee; }
.report-note { margin-top: 15px; padding: 11px 12px; border-left: 3px solid var(--green); background: #f5f8f6; }
.report-note b { font-size: 10px; }
.report-note p { margin: 5px 0 0; color: #44534a; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.report-file-list { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.report-file-row { padding: 9px 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--soft-line); }
.report-file-row:last-child { border-bottom: 0; }
.report-file-row > div { min-width: 0; display: grid; gap: 2px; }
.report-file-row b { font-size: 10px; }
.report-file-row small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.report-file-row > span { min-width: 24px; padding: 4px; border-radius: 6px; background: var(--green-pale); color: var(--green-dark); text-align: center; font-size: 9px; font-weight: 900; }
.report-file-row > a { color: var(--green-dark); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.report-signoff { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--night); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.report-signoff > div { display: grid; gap: 4px; }
.report-signoff span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.report-signoff b { font-size: 10px; }
.report-section { margin-top: 17px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.report-section-head { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f4f7f5; border-bottom: 1px solid var(--line); }
.report-section-head h4 { margin: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.report-section-head span { color: var(--muted); font-size: 8px; }
.report-health-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.report-health-view { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: radial-gradient(circle at 50% 45%,#fff,#eef4f0); }
.report-health-view > span { display: block; padding: 6px 8px; border-bottom: 1px solid var(--soft-line); color: var(--muted); background: rgba(255,255,255,.9); font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.report-health-view > div { position: relative; aspect-ratio: 3/2; margin: -3% -2% -4%; }
.report-health-view img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(15,32,22,.13)); }
.report-health-view.right img { transform: scaleX(-1); }
.report-health-markers { position: absolute; inset: 0; }
.report-health-marker { --marker:#77847c; position: absolute; width: 8px; height: 8px; border: 1.5px solid #fff; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1px var(--marker); }
.report-health-marker.good { --marker:#13a752; }
.report-health-marker.watch { --marker:#d89a13; }
.report-health-marker.concern { --marker:#c43a3a; }
.report-health-marker.hood { left: 27%; top: 49%; }
.report-health-marker.roof { left: 58%; top: 13%; }
.report-health-marker.front-fender { left: 45%; top: 56%; }
.report-health-marker.front-door { left: 69%; top: 51%; }
.report-health-marker.rear-door { left: 81%; top: 44%; }
.report-health-marker.rear-quarter { left: 90%; top: 38%; }
.report-health-marker.decklid { left: 94%; top: 25%; }
.report-health-marker.rocker { left: 72%; top: 70%; }
.report-health-marker.front-bumper { left: 10%; top: 68%; }
.report-health-marker.rear-bumper { left: 95%; top: 51%; }
.report-health-view.right .report-health-marker.hood { left: auto; right: 27%; }
.report-health-view.right .report-health-marker.roof { left: auto; right: 58%; }
.report-health-view.right .report-health-marker.front-fender { left: auto; right: 45%; }
.report-health-view.right .report-health-marker.front-door { left: auto; right: 69%; }
.report-health-view.right .report-health-marker.rear-door { left: auto; right: 81%; }
.report-health-view.right .report-health-marker.rear-quarter { left: auto; right: 90%; }
.report-health-view.right .report-health-marker.decklid { left: auto; right: 94%; }
.report-health-view.right .report-health-marker.rocker { left: auto; right: 72%; }
.report-health-view.right .report-health-marker.front-bumper { left: auto; right: 10%; }
.report-health-view.right .report-health-marker.rear-bumper { left: auto; right: 95%; }
.report-measures { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.report-measure { min-width: 0; min-height: 76px; padding: 10px 12px 11px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: #fff; }
.report-measure-label { min-width: 0; display: flex; align-items: center; gap: 7px; }
.report-measure-label i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #aab5ae; box-shadow: 0 0 0 3px rgba(170,181,174,.12); }
.report-measure-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #536159; font-size: 9px; font-weight: 700; line-height: 1.25; }
.report-measure.normal .report-measure-label i { background: var(--green-dark); box-shadow: 0 0 0 3px rgba(19,167,82,.12); }
.report-measure.low .report-measure-label i { background: var(--amber); box-shadow: 0 0 0 3px rgba(216,154,19,.14); }
.report-measure.high .report-measure-label i { background: var(--red); box-shadow: 0 0 0 3px rgba(196,58,58,.12); }
.report-measure-result { min-width: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.report-measure-reading { min-width: 0; display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.report-measure-reading b { color: var(--night); font-size: 17px; font-weight: 900; letter-spacing: -.03em; line-height: .95; }
.report-measure-reading small { color: var(--muted); font-size: 8px; font-weight: 750; line-height: 1; }
.report-measure-result em { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #edf1ef; color: #607068; font-size: 7px; font-style: normal; font-weight: 900; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.report-measure.normal .report-measure-result em { background: #e7f7ed; color: #0b773a; }
.report-measure.low .report-measure-result em { background: #fff3d6; color: #946100; }
.report-measure.high .report-measure-result em { background: #fde9e9; color: #a72c2c; }
.report-tires { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-tires > div { padding: 10px 12px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); display: flex; flex-wrap: wrap; gap: 5px 10px; }
.report-tires b { flex: 1 0 100%; font-size: 10px; }
.report-tires span { color: var(--muted); font-size: 8px; }
.report-attachments p { margin: 0; padding: 12px; display: grid; gap: 4px; }
.report-attachments p b { font-size: 10px; }
.report-attachments p span { color: var(--muted); font-size: 8px; }
.report-meta { margin-top: auto; border-top: 1px solid var(--line); padding-top: 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 9px; background: #07110c; color: #fff; font-size: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.background-upload-status { position: fixed; right: 16px; bottom: 78px; z-index: 99; min-width: 260px; max-width: calc(100vw - 32px); padding: 11px 13px; border: 1px solid #39754d; border-radius: 11px; background: #092216; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.22); display: flex; align-items: center; gap: 11px; pointer-events: none; }
.background-upload-status[hidden] { display: none; }
.background-upload-status div { display: grid; gap: 2px; }
.background-upload-status b { font-size: 12px; }
.background-upload-status small { color: #b9d7c2; font-size: 10px; }
.background-upload-spinner { width: 20px; height: 20px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.2); border-top-color: #28c85d; border-radius: 50%; animation: upload-spin .8s linear infinite; }
@keyframes upload-spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .app-layout { grid-template-columns: 78px minmax(0, 1fr); }
  .app-sidebar { padding-inline: 8px; }
  .sidebar-role { justify-content: center; }
  .sidebar-role > div, .global-nav:not(.active)::after, .global-nav { font-size: 0; }
  .sidebar-role .role-badge { min-width: 44px; }
  .global-nav { grid-template-columns: 1fr; justify-items: center; padding: 8px; }
  .global-nav > span { font-size: 17px; }
  .global-nav em { position: absolute; margin: -22px 0 0 29px; font-size: 7px; }
  .sidebar-system { justify-content: center; }
  .sidebar-system div { display: none; }
  .metric-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .tech-job { grid-template-columns: 80px minmax(0,1fr); }
  .job-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .workspace { grid-template-columns: 1fr; padding-top: 15px; }
  .step-rail { position: sticky; top: 74px; z-index: 30; display: flex; align-items: center; border-radius: 0; margin: 0 -16px; border-left: 0; border-right: 0; }
  .rail-title, .rail-footer { display: none; }
  .rail-mobile-percent { display: grid; flex: 0 0 auto; place-items: center; min-width: 51px; margin-left: 8px; padding: 7px 5px; border-radius: 8px; color: #087639; background: #e1f5e6; font-size: 12px; font-weight: 950; }
  .step-rail nav { min-width: 0; flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; gap: 6px; }
  .step-rail nav::-webkit-scrollbar { display:none; }
  .step-link { width: auto; min-width: max-content; grid-template-columns: 26px auto; border: 0; border-radius: 8px; padding: 8px 10px; gap: 7px; }
  .step-link i { width: 25px; height: 25px; }
  .step-link span small, .step-link em { display: none; }
  .step-link b { font-size: 11px; }
  .job-hero { padding-bottom: 20px; }
  .field-procedure { grid-template-columns: 1fr; }
  .field-procedure ol { overflow-x: auto; grid-template-columns: repeat(6,150px); padding-bottom: 2px; }
}

@media (max-width: 760px) {
  .item-note-evidence { grid-template-columns: 1fr; }
  .item-note-evidence .upload-button, .item-note-evidence .media-strip { grid-column: 1; }
  .item-note-evidence .upload-button { width: 100%; }
  .topbar { height: auto; min-height: 64px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .portal-links a { padding: 8px 10px; }
  .portal-links ~ .role-switcher { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 7px; }
  .sync-state { display: none; }
  .role-switcher { margin-left: auto; }
  .role-switcher > span { display: none; }
  .role-switcher select { max-width: 155px; min-height: 34px; font-size: 9px; }
  .field-identity { margin-left: auto; min-height: 38px; padding: 5px 8px; }
  .field-identity span { display: none; }
  .field-identity small { font-size: 7px; }
  .field-identity b { font-size: 10px; }
  .avatar-button b { display: none; }
  .avatar-button span { width: 31px; height: 31px; }
  .job-hero { grid-template-columns: 1fr; padding: 20px 16px 16px; gap: 15px; }
  .field-procedure { padding: 10px 14px; gap: 9px; }
  .procedure-heading strong { font-size: 9px; }
  .hero-actions { position: absolute; right: 14px; top: 82px; }
  .hero-actions .button { font-size: 0; width: 36px; min-height: 36px; padding: 0; border-radius: 9px; }
  .hero-actions .button::before { font-size: 16px; }
  #jobDetailsBtn::before { content: "•••"; }
  #callSellerBtn::before { content: "☎"; }
  .job-heading h1 { padding-right: 80px; font-size: 24px; }
  .job-heading p { font-size: 11px; }
  .hero-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 0; padding-top: 16px; }
  .hero-metrics > div { padding: 0 11px; min-height: 50px; }
  .hero-metrics > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-metrics small { font-size: 8px; }
  .hero-metrics strong { font-size: 11px; }
  .hero-metrics span { font-size: 9px; }
  .workspace { padding: 0 0 44px; gap: 0; }
  .role-dashboard { min-height: calc(100vh - 64px); }
  .app-layout { min-height: calc(100vh - 64px); display: block; }
  .app-sidebar { position: sticky; top: 64px; z-index: 25; width: 100%; height: auto; padding: 7px 11px; display: block; overflow-x: auto; overflow-y: hidden; }
  .sidebar-role, .sidebar-system { display: none; }
  .app-sidebar nav { margin: 0; display: flex; gap: 5px; min-width: max-content; }
  .global-nav { width: auto; min-width: max-content; min-height: 34px; padding: 7px 10px; display: flex; gap: 6px; font-size: 9px; }
  .global-nav > span { font-size: 12px; }
  .global-nav em { position: static; margin: 0; }
  .dashboard-content { padding: 22px 14px 40px; }
  .module-content { padding: 22px 14px 40px; }
  .module-heading { align-items: stretch; flex-direction: column; }
  .module-heading .button { width: 100%; }
  .module-heading-actions { width: 100%; }
  .module-heading-actions .button { flex: 1; }
  .module-toolbar { grid-template-columns: 1fr; }
  .ppi-queue-tools:not([hidden]) { align-items:stretch; flex-direction:column; }
  .ppi-queue-views { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ppi-queue-views button { justify-content:space-between; white-space:normal; }
  .ppi-queue-tools label { min-width:0; }
  .bulk-action-bar { position: static; grid-template-columns: 1fr 1fr; }
  .bulk-selection-summary, .bulk-action-bar > label, .bulk-action-fields, .bulk-action-bar .bulk-apply { grid-column: 1 / -1; }
  .bulk-action-fields { flex-wrap: wrap; }
  .module-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .module-metrics article, .report-metrics button { min-height: 88px; padding: 12px; }
  .quick-entry { grid-template-columns: 1fr 1fr; }
  .quick-entry > .button { grid-column: 1 / -1; }
  .manual-ppi-entry { grid-template-columns: 1fr; }
  .manual-ppi-entry fieldset { grid-template-columns: 1fr 1fr; }
  .ppi-photo-intake { grid-template-columns: 1fr; }
  .ppi-photo-intake-controls { width: 100%; display: grid; grid-template-columns: 1fr; }
  .ppi-photo-intake-controls .button { width: 100%; }
  .manual-ppi-submit { width: 100%; justify-self: stretch; }
  .week-board { grid-template-columns: repeat(6, 172px); }
  .report-record { grid-template-columns: 42px minmax(0,1fr); }
  .report-record > .record-status, .report-record > button { grid-column: 2; justify-self: start; }
  .report-record > .row-actions { grid-column: 1 / -1; }
  .technician-grid, .settings-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; }
  .device-card { grid-template-columns: 32px minmax(0,1fr); padding: 11px; }
  .device-card > button { grid-column: 2; justify-self: start; }
  .permission-list { grid-template-columns: 1fr; }
  .record-drawer form { grid-template-columns: 1fr; }
  .editor-grid, .editor-grid.assignment-only { grid-template-columns: 1fr 1fr; }
  .permission-editor { grid-template-columns: 1fr 1fr; }
  .audit-list { grid-template-columns: 1fr; }
  .workspace-error { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: flex-start; margin-bottom: 17px; }
  .dashboard-heading h1 { font-size: 25px; }
  .dashboard-heading p { font-size: 10px; }
  .dashboard-actions { align-self: center; }
  .dashboard-actions .button:first-child { display: none; }
  .operations-tabs { margin-inline: -2px; }
  .metric-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .metric-cards article { min-height: 94px; padding: 12px; }
  .metric-icon { display: none; }
  .calendar-days { grid-template-columns: repeat(7, 53px); }
  .schedule-row { grid-template-columns: 41px 7px 1fr; }
  .schedule-row > :last-child { grid-column: 3; justify-self: start; margin: -3px 0 8px; }
  .role-control-card { align-items: stretch; flex-direction: column; }
  .role-control-card .button { width: 100%; }
  .tech-job { grid-template-columns: 66px minmax(0,1fr); padding: 14px; gap: 12px; }
  .job-info h2 { font-size: 16px; }
  .job-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .job-controls button { padding-inline: 5px; }
  .inspection-return { min-height: 47px; padding: 7px 12px; }
  .step-rail { top: 64px; margin: 0; }
  .form-panel { border: 0; border-radius: 0; box-shadow: none; }
  .prototype-banner { padding: 9px 14px; align-items: flex-start; font-size: 10px; }
  .prototype-banner span { line-height: 1.35; }
  .persistent-preview {
    display: none;
  }
  .persistent-preview > span { display: none; }
  .persistent-preview .button { min-height: 46px; padding-inline: 18px; }
  .report-preview { padding: 10px; }
  .report-pages { gap: 12px; }
  .report-sheet { padding: 18px 14px; }
  .report-brand span { font-size: 8px; }
  .report-value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-measures { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-condition { min-width: 66px; }
  .report-signoff { grid-template-columns: 1fr; }
  .form-step { padding: 23px 16px 29px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 12px; }
  .section-heading .issue-button, .required-note { margin-top: 20px; }
  .field-grid.two, .field-grid.three, .field-grid.four { grid-template-columns: 1fr 1fr; }
  .field-grid .wide { grid-column: 1 / -1; }
  .check-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .item-line-actions { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .item-note-toggle, .item-photo-toggle { min-height: 38px; width: 100%; }
  .condition-group { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .condition-group:not(.four) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .condition-group.five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .checklist.compact .condition-group { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .checklist.compact .condition-group.five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .condition-group button { min-width: 0; }
  .overview-photo-grid, .overview-photo-grid.two-up { grid-template-columns: 1fr 1fr; }
  .missing-items-list { grid-template-columns: 1fr; }
  .inline-select { width: 100%; }
  .evidence-card { align-items: flex-start; }
  .evidence-card .upload-button { margin-left: auto; }
  .opening-evidence-grid { grid-template-columns: 1fr; }
  .opening-slot { grid-template-columns: 27px minmax(0,1fr) auto; align-items: start; }
  .opening-slot > .slot-number { grid-column: 1; grid-row: 1; }
  .opening-slot > div:nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
  .opening-slot > .upload-button { grid-column: 1 / 3; grid-row: 2; width: 100%; min-width: 0; }
  .opening-slot > .slot-na { grid-column: 3; grid-row: 2; min-width: 52px; align-self: stretch; }
  .opening-slot > .record-field-video { grid-column: 1 / -1; grid-row: 3; width: 100%; min-width: 0; margin: 0; white-space: normal; text-align: center; }
  .opening-slot > .media-strip { grid-column: 1 / -1; min-width: 0; }
  .identity-photo .record-field-video { flex: 1 0 100%; width: 100%; margin: 0; white-space: normal; }
  .intake-gate { padding-inline: 12px; }
  .measurement-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wheel-corner-grid { grid-template-columns: 1fr; }
  .wheel-corner-card { padding: 13px; }
  .vehicle-map-head { align-items: flex-start; flex-direction: column; }
  .vehicle-map-view { width: 100%; }
  .vehicle-map-view button { flex: 1; min-height: 38px; }
  .vehicle-render-stage { width: calc(100% + 26px); margin-left: -13px; margin-right: -13px; }
  .vehicle-hotspot { width: 19px; height: 19px; border-width: 2px; }
  .readiness-grid { grid-template-columns: 1fr; }
  .ai-review-heading, .ai-inline-action { align-items: stretch; flex-direction: column; }
  .ai-review-actions { grid-template-columns: 1fr; }
  .ai-assistant-row { grid-template-columns: 1fr; }
  .ai-assistant-row .button, .ai-inline-action .button { width: 100%; }
  .verdict-options { grid-template-columns: 1fr; }
  .verdict-card { min-height: 76px; grid-template-columns: 31px 1fr; justify-items: start; text-align: left; }
  .verdict-card small { grid-column: 2; }
  .signoff-card { grid-template-columns: 1fr; }
  .confirm-check { grid-column: 1; }
  .delivery-card { align-items: stretch; flex-direction: column; }
  .delivery-card .button { width: 100%; }
  .report-share-heading { grid-template-columns: 42px minmax(0,1fr); }
  .report-share-status { grid-column: 2; justify-self: start; }
  .report-share-actions { grid-template-columns: 1fr; }
  .form-footer { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .footer-save { display: none; }
  .form-footer .button { flex: 1; }
  .form-footer .button-voice { flex: 0 0 auto; font-size: 0; }
  .form-footer .button-voice::before { content: "●"; font-size: 12px; }
  .modal { margin: auto; }
}

@media (max-width: 470px) {
  .module-metrics, .quick-entry { grid-template-columns: 1fr; }
  .manual-ppi-entry fieldset { grid-template-columns: 1fr; }
  .manual-ppi-entry label.wide { grid-column: auto; }
  .quick-entry > .button { grid-column: auto; }
  .calendar-toolbar { align-items: stretch; flex-wrap: wrap; }
  .calendar-toolbar div { order: -1; width: 100%; }
  .calendar-toolbar button { flex: 1; }
  .settings-save { align-items: stretch; flex-direction: column; }
  .editor-grid, .editor-grid.assignment-only, .permission-editor { grid-template-columns: 1fr; }
  .locked-permissions { grid-column: auto; }
  .device-grid { grid-template-columns: 1fr; }
  .field-login-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .field-login-actions .button-primary { margin-left: 0; grid-column: 1 / -1; grid-row: 1; }
  .danger-button { margin-left: 0; }
  .field-grid.two, .field-grid.three, .field-grid.four { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .measurement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wheel-measurements { grid-template-columns: 1fr; }
  .section-heading { gap: 10px; }
  .section-heading .button { padding-inline: 8px; }
  .scan-header { align-items: flex-start; }
  .scan-header .status-awaiting { text-align: center; }
}

/* HomeBase Command Center */
.sidebar-nav-label { display: block; margin: 14px 10px 4px; color: #65b481; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.app-sidebar nav .sidebar-nav-label:first-child { margin-top: 2px; }
.app-sidebar nav a.global-nav { text-decoration: none; }
.app-sidebar .global-nav em[hidden] { display: none; }
.command-heading { align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.command-heading .dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); flex: 1 1 650px; align-items: stretch; }
.command-heading .dashboard-actions input[hidden] { display: none; }
.command-heading .dashboard-actions .button { min-height: 43px; padding-inline: 16px; }
.command-heading .dashboard-actions .command-photo-launch { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 9px 13px; border: 2px dashed #35be64; border-radius: 11px; background: #123b24; color: #fff; text-align: left; cursor: pointer; }
.command-photo-launch-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 8px; background: #236c3c; font-size: 21px; }
.command-photo-launch strong, .command-photo-launch small { display: block; white-space: nowrap; }
.command-photo-launch strong { font-size: 14px; }
.command-photo-launch small { margin-top: 2px; color: #b5f1c5; font-size: 11px; font-weight: 650; }
.command-photo-spinner { display: none; width: 28px; height: 28px; flex: 0 0 28px; border: 3px solid #7de49d; border-top-color: #fff; border-radius: 50%; animation: command-photo-spin .7s linear infinite; }
.command-photo-launch.is-reading .command-photo-spinner, .command-photo-drop.is-reading .command-photo-spinner { display: block; }
.command-photo-launch.is-reading .command-photo-launch-icon, .command-photo-drop.is-reading .command-photo-icon { display: none; }
@keyframes command-photo-spin { to { transform: rotate(360deg); } }
.command-heading .dashboard-actions .command-photo-launch:hover, .command-heading .dashboard-actions .command-photo-launch:focus-visible, .command-heading .dashboard-actions .command-photo-launch.is-dragging { border-color: #7cf49d; background: #1a6236; color: #fff; outline: none; }
.command-heading .dashboard-actions .command-ppi-launch { background: #183c32; border-color: #83d6a0; }
.command-heading .dashboard-actions .command-qb-launch { background: #183b47; border-color: #5cbed2; }
.command-photo-vehicle-inline { display: block; margin-top: 5px; color: #257343; font-size: 12px; font-weight: 650; }
.command-photo-vehicle-inline.is-warning { color: #a4512d; }
.command-photo-vehicle-inline[hidden] { display: none; }
.command-heading .dashboard-actions .command-photo-launch.is-dragging { box-shadow: 0 0 0 4px #22bb6347; }
.command-photo-appointment-dialog { width: min(1100px, calc(100vw - 22px)); max-height: min(94dvh, 1100px); padding: 0; border: 1px solid #b6d6bf; border-radius: 17px; background: #fff; color: #152b1e; box-shadow: 0 28px 90px #071a1280; overflow-y: auto; }
.command-photo-appointment-dialog.is-dragging { border: 3px solid #33c56c; }
.command-photo-appointment-dialog::backdrop { background: #061b12bd; }
.command-photo-header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #0b2116; color: #fff; }
.command-photo-header span { color: #51e37b; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.command-photo-header h2 { margin: 4px 0; font-size: clamp(21px, 3vw, 28px); }
.command-photo-header p { margin: 0; color: #bdd4c4; font-size: 14px; }
.command-photo-header button { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #587662; border-radius: 9px; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.command-photo-content { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: 18px; padding: 18px; }
.command-photo-source { min-width: 0; align-self: start; padding: 13px; border: 1px solid #d7e6db; border-radius: 13px; background: #f3faf5; }
.command-photo-drop { display: grid; align-content: center; justify-items: center; gap: 7px; min-height: 180px; padding: 16px; text-align: center; border: 2px dashed #58ac72; border-radius: 11px; background: #fff; cursor: pointer; }
.command-photo-drop:hover, .command-photo-drop:focus-visible, .command-photo-drop.is-dragging { border-color: #15944b; background: #e7f7eb; outline: none; }
.command-photo-drop.is-reading { border-color: #15944b; background: #e7f7eb; }
.command-photo-drop .command-photo-spinner { border-color: #b3dfc1; border-top-color: #108943; }
.command-photo-icon { font-size: 30px; color: #168c47; }
.command-photo-drop b { font-size: 17px; }
.command-photo-drop span:not(.command-photo-icon) { color: #4c6d56; font-size: 14px; }
.command-photo-drop small { color: #5b7060; font-size: 12px; }
.command-photo-source-actions { display: flex; gap: 8px; margin-top: 10px; }
.command-photo-source-actions button, .command-photo-preview button { min-height: 43px; border: 1px solid #b7d4c0; border-radius: 8px; background: #fff; color: #205b37; font: inherit; font-weight: 750; cursor: pointer; }
.command-photo-source-actions button { flex: 1; }
.command-photo-preview { margin-top: 13px; }
.command-photo-preview img { display: block; width: 100%; max-height: 280px; object-fit: contain; border-radius: 8px; background: #e8efeb; }
.command-photo-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.command-photo-preview button { flex: 0 0 auto; padding: 5px 9px; }
.command-photo-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.command-photo-previews[hidden] { display: none; }
.command-photo-preview-item { min-width: 0; padding: 9px; border: 1px solid #bed8c7; border-radius: 10px; background: #fff; }
.command-photo-preview-item img { height: 150px; object-fit: contain; }
.command-photo-preview-item > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.command-photo-preview-item b { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.command-photo-preview-item button { font-size: 12px; }
.command-photo-converting { min-height: 100px; color: #385b46; }
.command-photo-error { margin: 8px 0 0; color: #a52222; font-size: 12px; overflow-wrap: anywhere; }
.command-appointment-photo-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; overflow-wrap: anywhere; }
@media(max-width: 380px) { .command-photo-previews { grid-template-columns: 1fr; } }
.command-photo-source p { margin: 13px 0 0; color: #405e49; font-size: 14px; line-height: 1.4; }
.command-photo-review { min-width: 0; }
.command-photo-review-top { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.command-photo-review-top h3 { margin: 0; font-size: 20px; }
.command-photo-review-top small { color: #37774c; font-size: 13px; }
.command-photo-alert { padding: 11px 12px; margin-bottom: 13px; border-left: 4px solid #d83240; border-radius: 8px; background: #fff0f0; color: #a52834; font-weight: 800; font-size: 14px; }
.command-photo-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.command-photo-fields label { display: grid; align-content: start; gap: 5px; color: #405649; font-weight: 750; font-size: 14px; }
.command-photo-fields .wide { grid-column: 1 / -1; }
.command-photo-fields input, .command-photo-fields select, .command-photo-fields textarea { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #c6d7cc; border-radius: 8px; background: #fff; color: #152b1e; font: inherit; font-size: 16px; }
.command-photo-fields textarea { min-height: 82px; resize: vertical; }
.command-photo-fields .command-photo-confirm { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 10px 11px; background: #f3faf5; border-radius: 8px; color: #173f27; }
.command-photo-confirm input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; }
#commandPhotoPpiSetup { align-items:flex-start; }
#commandPhotoPpiSetup > span { min-width:0; }
#commandPhotoPpiSetup small { display:block; margin-top:5px; font-weight:500; line-height:1.45; }
.command-photo-type-review { margin-top:18px; padding:16px; border:2px solid #a1cfb0; border-radius:12px; background:#f3faf5; }
.command-photo-type-review > label { display:block; font-weight:850; color:#173f27; margin-bottom:8px; }
.command-photo-type-review > select { width:100%; min-height:46px; padding:10px 12px; border:1px solid #8dbd9d; border-radius:8px; background:#fff; color:#183e28; font:inherit; font-size:16px; }
.command-photo-type-review > p { margin:9px 0 0; line-height:1.5; font-size:14px; color:#496853; }
.command-photo-type-review .command-photo-confirm:not([hidden]) { display:flex; align-items:flex-start; gap:9px; margin:12px 0 0; padding:12px; border-radius:8px; background:#e0f2e6; color:#173f27; }
.command-photo-type-review .command-photo-confirm[hidden] { display:none; }
.command-photo-fields .command-photo-confirm[hidden] { display: none; }
.command-photo-arrival { min-width: 0; margin: 0; padding: 12px; border: 1px solid #c6d7cc; border-radius: 10px; background: #f8fbf9; }
.command-photo-arrival legend { padding: 0 5px; color: #405649; font-size: 14px; font-weight: 800; }
.command-photo-arrival legend small { margin-left: 8px; color: #65796d; font-weight: 500; }
.command-photo-arrival button { min-height: 44px; padding: 9px 8px; border: 1px solid #b9d1c0; border-radius: 8px; background: #fff; color: #215735; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.command-photo-arrival button[aria-pressed="true"] { border-color: #176b3a; background: #176b3a; color: #fff; }
.command-photo-arrival button:focus-visible { outline: 3px solid #9ecfb0; outline-offset: 2px; }
.command-photo-arrival-all-day { width: 100%; margin-bottom: 8px; }
.command-photo-arrival-windows { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.command-photo-custom-times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.command-photo-custom-times[hidden] { display: none; }
.command-photo-arrival p { margin: 10px 0 0; color: #526b5d; font-size: 13px; line-height: 1.4; }
@media(max-width: 460px) { .command-photo-arrival-windows { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.command-photo-vehicle-lookup { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px 13px; align-items: center; padding: 12px; border: 1px solid #c8e1cf; border-radius: 9px; background: #f3faf5; }
.command-photo-vehicle-lookup[hidden] { display: none; }
.command-photo-vehicle-lookup button { min-height: 42px; padding: 8px 14px; border: 1px solid #177c43; border-radius: 8px; background: #176b3a; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.command-photo-vehicle-lookup button:disabled { opacity: .65; cursor: wait; }
.command-photo-vehicle-lookup p { margin: 0; color: #365547; font-size: 14px; line-height: 1.4; }
.command-photo-vehicle-lookup p.is-warning { color: #9e2b35; font-weight: 750; }
.command-photo-vehicle-lookup #commandPhotoVehicleDetails { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #fff; color: #173d27; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.command-photo-vehicle-lookup #commandPhotoVehicleDetails b { display: block; font-size: 16px; }
.command-photo-decoded-fields { padding: 15px; border: 1px solid #c8e1cf; border-radius: 9px; background: #f3faf5; }
.command-photo-decoded-fields > strong { display: block; margin-bottom: 10px; color: #173d27; }
.command-photo-decoded-fields > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.command-photo-decoded-fields label { min-width: 0; }
.command-photo-decoded-fields small { display: block; margin-top: 8px; color: #526b5d; }
@media (max-width: 550px) { .command-photo-vehicle-lookup { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .command-photo-decoded-fields > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.command-photo-calendar-preview { margin-top: 15px; border: 1px solid #c8e1cf; border-radius: 10px; background: #f0f9f3; overflow: hidden; }
.command-photo-event-alert { padding: 8px 12px; background: #d72d3c; color: #fff; font-weight: 850; font-size: 14px; }
.command-photo-event-body { display: grid; gap: 4px; padding: 12px; }
.command-photo-event-body small { font-size: 12px; color: #39754e; font-weight: 850; }
.command-photo-event-body strong { font-size: 17px; }
.command-photo-event-body span { font-size: 14px; color: #496658; }
.command-photo-event-body pre { margin: 8px 0 0; padding: 12px; border: 1px solid #d5e7da; border-radius: 8px; background: #fff; color: #20392b; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.5; }
.command-photo-review-note { min-height: 19px; margin: 10px 0; color: #a12a35; font-size: 14px; }
.command-photo-save { display: flex; justify-content: end; gap: 9px; flex-wrap: wrap; }
.command-photo-save button { min-height: 44px; padding: 9px 14px; border: 1px solid #b9d1c0; border-radius: 8px; background: #fff; color: #215735; font: inherit; font-weight: 800; cursor: pointer; }
.command-photo-save button[type=submit] { border-color: #148242; background: #148242; color: #fff; }
.command-photo-save button:disabled { opacity: .6; cursor: wait; }
@media(max-width: 730px) { .command-photo-content { grid-template-columns: 1fr; } .command-photo-preview img { max-height: 180px; } }
@media(max-width: 460px) { .command-photo-content { padding: 12px; gap: 12px; } .command-photo-fields { grid-template-columns: 1fr; } .command-photo-fields .wide { grid-column: 1; } .command-heading .dashboard-actions { grid-template-columns: 1fr; } .command-heading .dashboard-actions .command-photo-launch { flex-basis: 100%; } }
.command-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.command-summary > button { min-width: 0; min-height: 92px; padding: 15px 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 4px 15px rgba(14,39,23,.035); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.command-summary > button::after { content: "→"; flex: 0 0 auto; margin-left: auto; color: currentColor; font-size: 18px; font-weight: 900; opacity: .45; }
.command-summary > button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(14,39,23,.11); }
.command-summary > button:focus-visible { outline: 3px solid rgba(20,152,73,.26); outline-offset: 3px; }
.command-summary > button:active { transform: translateY(0); }
.command-summary > button.active-ppi { border-color: #0b6f34; background: linear-gradient(135deg,#05281b,#0d5631); color: #fff; }
.command-summary > button.active-ppi::after { color: #72ef9c; opacity: .8; }
.command-summary > button.urgent { border-color: #f0caca; background: var(--red-pale); }
.command-summary > button.waiting { border-color: #edd7a7; background: var(--amber-pale); }
.command-summary > button.today { border-color: #bde3c8; background: var(--green-pale); }
.command-summary > button.completed { border-color: #d9dfdb; background: #f7f9f8; color: #78837c; }
.command-summary > button.fleet { border-color: #bfdaee; background: #eef7fc; }
#homebaseView .command-summary > button.fleet { display:grid; grid-template-columns:42px minmax(0,1fr) 18px; gap:0 12px; align-items:center; }
.command-summary > button.fleet > .command-summary-icon { grid-column:1; grid-row:1; }
.command-summary > button.fleet > div:first-of-type { grid-column:2; grid-row:1; }
.command-summary > button.fleet::after { grid-column:3; grid-row:1; margin-left:0; }
.command-fleet-returns { grid-column:1/-1; grid-row:2; min-width:0; margin-top:12px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.command-fleet-returns-caption { grid-column:1/-1; color:#416078; font-size:11px; font-weight:900; letter-spacing:.08em; }
.command-fleet-return { min-width:0; display:flex; align-items:baseline; justify-content:space-between; gap:5px; padding:7px 9px; border:1px solid #c9d9e4; border-radius:8px; background:#fff; color:#203e50; }
.command-fleet-return b { font-size:19px; line-height:1; font-variant-numeric:tabular-nums; }
.command-fleet-return span { font-size:12px; font-weight:800; }
.command-fleet-return.core { border-color:#ebd1a0; background:#fff7e9; color:#754a0c; }
.command-fleet-return.rotate { border-color:#b7d6e8; background:#f1f9ff; color:#15577e; }
.command-fleet-return.warranty { border-color:#d6c4e7; background:#faf5ff; color:#68418a; }
.command-summary-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 11px; color: #a92f35; background: rgba(255,255,255,.75); font-size: 20px; font-weight: 950; }
.command-summary .waiting .command-summary-icon { color: #8a5b0d; }
.command-summary .today .command-summary-icon { color: #0d7737; }
.command-summary .completed .command-summary-icon { color: #7c8780; background: #eef1ef; }
.command-summary .fleet .command-summary-icon { color: #1469a3; background: #dbefff; }
.command-summary .active-ppi .command-summary-icon { color: #071d11; background: #5ce986; }
.command-summary > button > div { min-width: 0; }
.command-summary strong { display: inline; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.command-summary p { display: inline; margin: 0 0 0 8px; color: #26372d; font-size: 14px; font-weight: 850; }
.command-summary small { margin-top: 5px; display: block; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.command-summary .active-ppi strong,.command-summary .active-ppi p { color: #fff; }
.command-summary .active-ppi small { color: #c7eed4; }
.command-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 14px; }
.command-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(15,40,24,.035); overflow: hidden; }
.command-scroll-region { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.command-scroll-region:focus-visible { outline: 3px solid rgba(20,152,73,.24); outline-offset: -3px; }
.command-scroll-region::-webkit-scrollbar { width: 10px; }
.command-scroll-region::-webkit-scrollbar-track { background: #f3f7f4; }
.command-scroll-region::-webkit-scrollbar-thumb { border: 2px solid #f3f7f4; border-radius: 999px; background: #a8c7b1; }
.command-priority-list,.command-today-list { max-height: 340px; }
.command-completed-list { max-height: 370px; }
.repeat-ppi-dialog { width: min(700px, calc(100vw - 24px)); max-height: min(90vh, 900px); padding: 24px; overflow: auto; border: 1px solid #b7d4c3; border-radius: 18px; background: #f9fcfa; color: #173229; box-shadow: 0 25px 90px rgba(5, 30, 16, .28); }
.repeat-ppi-dialog::backdrop { background: rgba(4, 22, 13, .7); }
.repeat-ppi-heading { display: flex; justify-content: space-between; gap: 18px; }
.repeat-ppi-heading small { color: #218343; font-weight: 900; letter-spacing: .12em; }
.repeat-ppi-heading h2 { margin: 8px 0; font-size: clamp(22px, 4vw, 30px); }
.repeat-ppi-heading p, .repeat-ppi-warning { color: #52655a; line-height: 1.5; }
.repeat-ppi-heading button { align-self: start; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #e6f2e9; font-size: 23px; cursor: pointer; }
.repeat-ppi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.repeat-ppi-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.repeat-ppi-grid label.wide { grid-column: 1 / -1; }
.repeat-ppi-grid input, .repeat-ppi-grid textarea, .repeat-ppi-grid select { width: 100%; padding: 11px 12px; border: 1px solid #c5d6cb; border-radius: 9px; background: white; color: #173229; font: inherit; }
.repeat-ppi-warning { padding: 12px; border-left: 4px solid #c18032; background: #fff7ed; }
.repeat-ppi-error { color: #aa2727; font-weight: 750; }
.repeat-ppi-override { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid #d4b783; border-radius: 10px; background: #fffaf0; cursor: pointer; }
.repeat-ppi-override input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #117435; }
.repeat-ppi-override span { display: grid; gap: 5px; }
.repeat-ppi-override small { color: #52655a; line-height: 1.5; }
.repeat-ppi-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.repeat-ppi-actions button { padding: 11px 16px; border: 1px solid #bcd0c2; border-radius: 9px; background: white; color: #19472b; font-weight: 800; cursor: pointer; }
.repeat-ppi-actions button[type=submit] { border-color: #117435; background: #117435; color: white; }
.repeat-ppi-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .repeat-ppi-dialog { padding: 18px; } .repeat-ppi-grid { grid-template-columns: 1fr; } .repeat-ppi-grid label.wide { grid-column: auto; } }
.command-team-list { max-height: 220px; }
.command-priority-panel { scroll-margin-top: 90px; }
.command-panel-heading { min-height: 77px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--soft-line); }
.command-panel-heading > div { min-width: 0; }
.command-panel-heading span { color: var(--green-dark); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.command-panel-heading h2 { margin: 3px 0 2px; font-size: 19px; letter-spacing: -.02em; }
.command-panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.command-panel-heading > button { flex: 0 0 auto; min-height: 35px; padding: 7px 10px; border: 1px solid #c7d7cc; border-radius: 8px; background: #fff; color: var(--green-dark); font-size: 11px; font-weight: 900; }
.command-team-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.command-team-actions button { min-height: 35px; padding: 7px 10px; border: 1px solid #c7d7cc; border-radius: 8px; background: #fff; color: var(--green-dark); font: inherit; font-size: 11px; font-weight: 800; }
.command-team-actions button strong { font-size: 14px; }
.command-day-tools { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.command-day-tools button { min-height: 37px; padding: 7px 11px; border: 1px solid #b8cfc0; border-radius: 8px; background: #fff; color: var(--green-dark); font-size: 11px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.command-day-tools button:hover { border-color: var(--green-dark); background: var(--green-pale); }
.command-day-tools .command-day-arrow { min-width: 40px; padding: 3px 10px 7px; font-size: 25px; line-height: 1; }
.command-day-tools .command-day-today { min-width: 58px; }
.command-day-tools .command-day-today:disabled { border-color: #149849; background: #149849; color: #fff; cursor: default; opacity: 1; }
.command-day-tools label { display: grid; gap: 3px; color: #476454; font-size: 10px; font-weight: 800; }
.command-day-tools input[type="date"] { min-height: 37px; padding: 6px 8px; border: 1px solid #b8cfc0; border-radius: 8px; background: #fff; color: #173a27; font: inherit; font-size: 12px; }
.command-van-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid #e2eae4; background: #f4f9f5; }
.command-van-day-heading > div:first-child { display: grid; gap: 2px; }
.command-van-day-heading strong { color: #164e2b; font-size: 15px; }
.command-van-day-heading small { color: #617669; font-size: 12px; }
.command-priority-list,.command-today-list { display: grid; }
.command-priority-row { min-height: 76px; padding: 11px 15px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--soft-line); }
.command-priority-row:last-child,.command-today-row:last-child { border-bottom: 0; }
.command-rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--night-2); font-size: 13px; font-weight: 900; }
.command-priority-copy,.command-today-copy { min-width: 0; }
.command-priority-copy b,.command-today-copy b { display: block; overflow: hidden; color: #1b2b21; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.command-priority-copy p,.command-today-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.command-priority-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-scan-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 9px; }
.command-scan-status { color: #8a5a05; font-size: 12px; font-weight: 800; }
.command-scan-status.is-secured { color: #08743a; }
.command-scan-tools>a,.command-scan-tools>button { color: #08743a; background: none; border: 0; padding: 5px 2px; font-size: 14px; font-weight: 800; cursor: pointer; }
.command-scan-drop { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; max-width: 100%; min-height: 42px; padding: 8px 10px; border: 1px dashed #82bb96; border-radius: 8px; background: #f2faf4; color: #155d32; cursor: pointer; }
.command-scan-drop strong { font-size: 14px; }
.command-scan-drop small { color: #58705e; font-size: 12px; }
.command-scan-drop.is-file-dragover { border-color: #088b3b; background: #d9f4e1; box-shadow: 0 0 0 2px #32b96444; }
.command-scan-drop.is-busy { cursor: wait; opacity: .65; }
.command-client-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; }
.command-client-contact strong { color: #1b2b21; }
.command-client-contact a { color: #087b3b; font-weight: 800; text-decoration: none; }
.command-client-contact a:hover { text-decoration: underline; }
.command-job-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-action-button { min-height: 35px; padding: 7px 10px; border: 1px solid #98caaa; border-radius: 8px; background: #f5fbf7; color: #0b7436; font-size: 11px; font-weight: 900; }
.command-action-button:hover { border-color: var(--green-dark); background: var(--green-pale); }
.command-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.command-row-actions button { min-height: 31px; padding: 6px 8px; border: 1px solid #b9cfbf; border-radius: 7px; background: #fff; color: #145e31; font-size: 10px; font-weight: 900; white-space: nowrap; }
.command-row-actions button:hover { border-color: var(--green-dark); background: var(--green-pale); }
.command-row-actions button.primary { border-color: #149849; background: #149849; color: #fff; }
.command-row-actions button.report-link { border-color: #0b6f34; background: #e6f7ec; color: #075f2b; }
.command-row-actions button.danger { border-color: #efc1c1; color: #a73737; }
.command-row-actions button.danger:hover { background: var(--red-pale); }
.command-more-menu { position: relative; }
.command-more-menu summary { min-height: 31px; padding: 6px 9px; display: grid; place-items: center; border: 1px solid #b9cfbf; border-radius: 7px; background: #fff; color: #145e31; font-size: 10px; font-weight: 900; list-style: none; cursor: pointer; }
.command-more-menu summary::-webkit-details-marker { display: none; }
.command-more-menu[open] summary { border-color: var(--green-dark); background: var(--green-pale); }
.command-more-menu > div { min-width: 154px; margin-top: 6px; padding: 7px; display: grid; gap: 6px; border: 1px solid #c8d5cc; border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgba(10,35,20,.12); }
.command-more-menu > div button { width: 100%; justify-content: flex-start; text-align: left; }
.command-status-menu { position: relative; }
.command-status-menu summary { min-height: 31px; padding: 6px 9px; display: grid; place-items: center; border: 1px solid #91c7a2; border-radius: 7px; background: #eaf6ee; color: #145e31; font-size: 10px; font-weight: 900; list-style: none; cursor: pointer; }
.command-status-menu summary::-webkit-details-marker { display: none; }
.command-status-menu[open] summary { border-color: var(--green-dark); background: #dcf3e3; }
.command-status-menu > div { min-width: 170px; max-height: 285px; overflow-y: auto; margin-top: 6px; padding: 7px; display: grid; gap: 6px; border: 1px solid #c8d5cc; border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgba(10,35,20,.12); }
.command-status-menu > div strong { padding: 5px 4px; color: #53685b; font-size: 11px; }
.command-status-menu > div button { width: 100%; justify-content: flex-start; text-align: left; }
.command-today-row { width: 100%; min-height: 76px; padding: 11px 15px; display: grid; grid-template-columns: 56px 9px minmax(0,1fr) auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--soft-line); background: #fff; color: inherit; text-align: left; }
.command-today-row:hover { background: #f8fbf9; }
.command-time { display: grid; color: #1d2c23; font-size: 13px; font-weight: 950; line-height: 1.05; }
.command-time small { color: #849188; font-size: 9px; }
.command-type-dot { width: 9px; height: 9px; border-radius: 50%; background: #8d62db; }
.command-type-dot.service { background: #28b861; }.command-type-dot.battery { background: #387ce2; }.command-type-dot.emergency { background: #eb8d27; }
.command-status { max-width: 110px; padding: 6px 8px; overflow: hidden; border-radius: 999px; color: #16723c; background: var(--green-pale); font-size: 9px; font-weight: 950; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.command-status.urgent { color: #a73737; background: var(--red-pale); }
.command-status.waiting { color: #8d5c0f; background: var(--amber-pale); }
.command-team-panel { margin-top: 14px; }
.command-completed-panel { margin-top: 14px; scroll-margin-top: 90px; border-color: #dce2de; background: #f8faf9; box-shadow: none; }
.command-completed-panel.is-collapsed .command-panel-heading { border-bottom: 0; }
.command-completed-panel.is-collapsed .command-completed-tools label { display: none; }
.command-completed-tools { flex: 0 1 540px; display: flex; align-items: end; justify-content: flex-end; gap: 8px; }
.command-completed-tools label { flex: 1 1 340px; display: grid; gap: 4px; }
.command-completed-tools label span { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.command-completed-tools input { width: 100%; min-height: 37px; border: 1px solid #c7d7cc; border-radius: 8px; background: #fff; padding: 7px 10px; color: var(--ink); font: inherit; font-size: 12px; }
.command-completed-tools input:focus { outline: 3px solid rgba(20,152,73,.18); border-color: var(--green-dark); }
.command-completed-tools > button { flex: 0 0 auto; min-height: 37px; padding: 7px 11px; border: 1px solid #c7d7cc; border-radius: 8px; background: #fff; color: var(--green-dark); font-size: 11px; font-weight: 900; }
.command-completed-list { display: grid; }
.command-completed-row { min-height: 88px; padding: 13px 16px; display: grid; grid-template-columns: minmax(180px,1fr) minmax(220px,1.25fr) minmax(150px,.75fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid #e4e8e5; background: #f8faf9; }
.command-completed-row:last-child { border-bottom: 0; }
.command-completed-row > div { min-width: 0; }
.command-completed-row span { display: block; color: #8b958e; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.command-completed-row b { display: block; margin-top: 3px; overflow: hidden; color: #6f7972; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.command-completed-row small,.command-completed-row a { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.command-completed-row a { color: #77847c; font-weight: 750; text-decoration: none; }
.command-completed-report b { text-transform: capitalize; }
.command-completed-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.command-completed-actions button { min-height: 35px; padding: 7px 10px; border: 1px solid #d2d9d4; border-radius: 8px; background: #f8faf9; color: #737e76; font-size: 11px; font-weight: 800; white-space: nowrap; }
.command-completed-actions button.primary { border-color: #bfcac2; background: #eef2ef; color: #536058; }
.command-completed-actions button.report-link { border-color: #c7d1ca; background: #f1f4f2; color: #657168; }
.command-completed-actions button.danger { border-color: #efc1c1; color: #a73737; }
.command-team-list { padding: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.command-tech-card { min-width: 0; padding: 12px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border-radius: 11px; background: #f6faf7; }
.command-tech-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #173824; font-size: 11px; font-weight: 900; }
.command-tech-card b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.command-tech-card > div > span { margin-top: 3px; display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.command-tech-card.is-signed-in { border: 2px solid var(--van-color); background: color-mix(in srgb,var(--van-color) 16%,#fff); box-shadow: inset 5px 0 var(--van-color); }
.command-tech-card.is-signed-in .command-tech-avatar { background: var(--van-color); color: #17231b; }
.command-tech-card.is-signed-in[data-van-id="minimedic-3"] .command-tech-avatar,
.command-tech-card.is-signed-in[data-van-id="minimedic-4"] .command-tech-avatar,
.command-tech-card.is-signed-in[data-van-id="minimedic-5"] .command-tech-avatar { color: #fff; }
.command-tech-card .command-tech-live { display: block; margin: 0 0 3px; color: #07833d; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.command-tech-card .command-tech-van { display: block; margin: 0 0 5px; color: #222c24; font-size: 12px; font-weight: 950; letter-spacing: .03em; }
.command-tech-card.is-signed-in > div > span { color: #263b2d; }
.command-loading,.command-empty { min-height: 102px; padding: 22px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
.command-empty b { color: var(--ink); font-size: 14px; }
.command-empty span { margin-top: 4px; display: block; }
.command-empty .command-action-button { margin: 12px auto 0; display: inline-flex; align-items: center; text-decoration: none; }
.command-data-note { margin: 10px 0 0; color: #7a887f; font-size: 11px; }
.command-team-panel + .role-control-card { margin-top: 14px; }

/* Command Center: a distinct landing view with direct access to every workspace. */
#homebaseView .dashboard-content { padding: 26px clamp(24px,3.1vw,58px) 58px; }
#homebaseView .global-nav { font-size: 13px; cursor: pointer; }
#homebaseView .global-nav[hidden],#homebaseView .command-tool[hidden] { display: none; }
#homebaseView .sidebar-nav-label { font-size: 11px; }
#homebaseView .command-heading { min-height: 165px; margin: 0 0 16px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(112deg,#0b2418 0%,#15482b 70%,#1b6336 100%); color: #fff; box-shadow: 0 12px 30px rgba(9,48,25,.16); }
#homebaseView .command-heading .dashboard-kicker { color: #83e7a3; }
#homebaseView .command-heading h1 { color: #fff; font-size: clamp(30px,3vw,45px); }
#homebaseView .command-heading #dashboardDateLine { color: #c0d9c7; }
.command-hero-note { margin: 12px 0 0; color: #e0f2e5; font-size: 14px; }
#homebaseView .command-heading .button-ghost { border-color: #8ab49a; background: rgba(255,255,255,.08); color: #fff; }
#homebaseView .command-heading .button-primary { color: #0b2418; background: #5ce986; }
#homebaseView .command-summary { gap: 14px; margin-bottom: 23px; }
#homebaseView .command-summary > button { min-height: 118px; padding: 20px; }
#homebaseView .command-summary strong { font-size: 35px; }
#homebaseView .command-summary p { display: block; margin: 4px 0 0; font-size: 14px; }
#homebaseView .command-summary small { margin-top: 8px; }
.command-tech-access { margin: 0 0 23px; padding: 22px 25px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px 25px; align-items: center; border: 1px solid #acd6b9; border-radius: 18px; background: linear-gradient(115deg,#f6fcf7,#e3f5e8); box-shadow: 0 8px 22px rgba(16,82,37,.07); }
.command-tech-access-copy > span { color: #13793a; font-size: 11px; letter-spacing: .14em; font-weight: 900; }
.command-tech-access h2 { margin: 4px 0 5px; color: #153624; font-size: clamp(19px,2vw,25px); letter-spacing: -.03em; }
.command-tech-access p { margin: 0; color: #4d6955; line-height: 1.4; font-size: 14px; }
.command-tech-access-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 14px 18px; border-radius: 11px; background: #117637; color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.command-tech-access-button:hover,.command-tech-access-button:focus-visible { background: #0b5929; }
.command-tech-access-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.command-tech-access-stats span { padding: 7px 11px; border: 1px solid #bfe5c8; border-radius: 30px; background: #fff; color: #205739; font-size: 12px; font-weight: 800; }
.command-tools { margin-bottom: 25px; }
.command-tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.command-tools-heading span { color: #14783a; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.command-tools-heading h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.03em; }
.command-tools-heading p { margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.command-tools-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.command-tool { position: relative; min-width: 0; min-height: 116px; padding: 17px 42px 16px 17px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #dce9df; border-radius: 13px; background: #fff; color: #1c3525; box-shadow: 0 5px 15px rgba(15,40,24,.035); font: inherit; text-decoration: none; text-align: left; cursor: pointer; }
.command-tool:hover,.command-tool:focus-visible { border-color: #4ab870; background: #f5fcf7; box-shadow: 0 9px 22px rgba(15,60,30,.11); }
.command-tool-icon { width: 29px; height: 29px; margin-bottom: 9px; display: grid; place-items: center; border-radius: 7px; background: #e3f6e9; color: #0e7b39; font-size: 17px; font-weight: 900; }
.command-tool:nth-child(4) .command-tool-icon { background: #e2f1ff; color: #176ca9; }
.command-tool b { font-size: 15px; line-height: 1.15; }
.command-tool small { margin-top: 5px; color: #63746a; font-size: 12px; }
.command-tool-arrow { position: absolute; top: 17px; right: 16px; color: #2e9e56; font-size: 17px; font-weight: 800; }
#homebaseView .command-grid { grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); }
#homebaseView .command-panel-heading h2 { font-size: 21px; }
#homebaseView .command-priority-list,#homebaseView .command-today-list { min-height: 175px; }
#homebaseView .command-completed-panel { margin-top: 18px; }
#homebaseView .command-team-panel { margin-top: 14px; }
.command-team-panel.is-collapsed .command-panel-heading { border-bottom: 0; }
.command-team-count { margin-left: 8px; padding: 5px 9px; border-radius: 999px; background: #e7f7ec; color: #166e37; font-size: 11px; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.command-team-count strong { font-size: 13px; }
#homebaseView .command-team-list[hidden] { display: none; }

@media (max-width: 1200px) {
  .command-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #homebaseView .command-grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  #homebaseView .global-nav { font-size: 0; }
  #homebaseView .sidebar-nav-label { display: none; }
}
@media (max-width: 760px) {
  .command-heading .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .command-tech-access { grid-template-columns: 1fr; padding: 18px; }
  .command-tech-access-button { width: 100%; }
  #homebaseView .global-nav { font-size: 11px; }
  #homebaseView .sidebar-nav-label { display: none; }
  #homebaseView .command-heading { align-items: stretch; flex-direction: column; min-height: 0; padding: 22px; }
  #homebaseView .command-summary > button { min-height: 102px; padding: 13px; }
  #homebaseView .command-summary strong { font-size: 28px; }
  .command-tools-heading { display: block; }
  .command-tools-heading p { margin: 6px 0 0; }
  .command-tool { min-height: 108px; }
}
@media (max-width: 470px) {
  #homebaseView .command-summary > button.fleet { grid-template-columns:32px minmax(0,1fr) 12px; gap:0 5px; }
  .command-fleet-return { display:grid; justify-content:start; gap:2px; padding:6px; }
  .command-fleet-return b { font-size:17px; }
  .command-fleet-return span { font-size:11px; }
  .command-tools-grid { gap: 8px; }
  .command-tool { min-height: 112px; padding: 12px 23px 12px 12px; }
  .command-tool b { font-size: 13px; }
  .command-tool small { font-size: 10px; }
  .command-tool-arrow { top: 12px; right: 10px; }
  .command-team-count { display: inline-block; margin: 7px 0 0; }
}

@media (max-width: 1060px) {
  .command-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #homebaseView .sidebar-nav-label { display: none; }
  .command-heading { align-items: flex-start; }
  .command-heading .dashboard-actions { width: 100%; align-self: stretch; }
  .command-heading .dashboard-actions .button { flex: 1; }
  .command-heading .dashboard-actions { flex-wrap: wrap; }
  .command-heading .dashboard-actions .command-photo-launch { flex: 1 0 100%; order: -1; }
  .command-heading .dashboard-actions .button:first-child { display: inline-flex; }
  .command-summary { grid-template-columns: 1fr 1fr; }
  .command-summary > button.active-ppi { grid-column: auto; }
  .command-summary > button.urgent { grid-column: auto; }
  .command-summary > button { min-height: 84px; padding: 12px; }
  .command-summary-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .command-summary strong { font-size: 26px; }
  .command-summary p { font-size: 12px; }
  .command-summary small { font-size: 10px; }
  .command-panel-heading { align-items: flex-start; min-height: 0; padding: 14px; }
  .command-panel-heading p { font-size: 11px; }
  .command-day-heading { display: grid; }
  .command-day-tools { width: 100%; display: grid; grid-template-columns: 44px minmax(58px,.7fr) 44px minmax(105px,1.3fr); }
  .command-day-tools button { width: 100%; }
  .command-completed-panel .command-panel-heading { display: grid; }
  .command-completed-tools { width: 100%; flex-basis: auto; }
  .command-completed-row { grid-template-columns: 1fr 1fr; gap: 11px; }
  .command-completed-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .command-team-list { grid-template-columns: 1fr; }
  .command-priority-list,.command-today-list,.command-completed-list,.command-team-list { max-height: min(62vh, 430px); }
  .command-today-row { grid-template-columns: 48px 9px minmax(0,1fr); align-items: start; }
  .command-today-row .command-time { grid-column: 1; grid-row: 1; }
  .command-today-row .command-type-dot { grid-column: 2; grid-row: 1; margin-top: 5px; }
  .command-today-row .command-status { grid-column: 3; grid-row: 1; justify-self: start; }
  .command-today-row .command-today-copy { grid-column: 1 / -1; grid-row: 2; padding: 10px 0 2px; }
  .command-today-row .command-row-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; padding-top: 7px; }
  .command-today-copy b { font-size: 15px; white-space: normal; }
  .command-client-contact,.command-job-detail { white-space: normal; }
}

@media (max-width: 470px) {
  .command-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .command-summary > button.active-ppi { grid-column: auto; }
  .command-summary > button.urgent { grid-column: auto; }
  .command-panel-heading { flex-direction: column; }
  .command-panel-heading > button { width: 100%; }
  .command-day-tools { grid-template-columns: 44px 1fr 44px; }
  .command-day-tools button:last-child { grid-column: 1 / -1; }
  .command-priority-row { grid-template-columns: 32px minmax(0,1fr); }
  .command-priority-row .command-row-actions { grid-column: 2; justify-content: flex-start; }
  .command-today-row { grid-template-columns: 46px 8px minmax(0,1fr); }
  .command-completed-tools { display: grid; }
  .command-completed-tools > button { width: 100%; }
  .command-completed-row { grid-template-columns: 1fr; }
  .command-completed-actions { grid-column: auto; }
}

/* Readiness interpretation and scannable client-summary presentation */
.monitor-review { margin-top: 14px; border: 1px solid #b9dfc6; border-radius: 14px; background: #f4fcf7; overflow: hidden; }
.monitor-report-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 16px; border: 1px solid #b9dfc6; border-radius: 14px; background: #fff; }
.monitor-report-controls[hidden] { display: none; }
.monitor-report-controls > div:first-child { flex: 1 1 260px; display: grid; gap: 6px; }
.monitor-report-controls b { font-size: 14px; }
.monitor-report-controls strong { width: fit-content; padding: 5px 8px; border-radius: 6px; background: #edf7f0; color: #15552e; font-size: 12px; }
.monitor-report-controls p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.monitor-report-controls small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.monitor-report-actions { flex: 0 1 290px; display: grid; gap: 8px; }
.monitor-report-actions .button { width: 100%; white-space: normal; }
.monitor-report-actions [aria-pressed="true"] { border-color: #b67b12; background: #fff5dc; color: #704600; }
.monitor-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; }
.monitor-review-head > div { display: flex; align-items: center; gap: 11px; }
.monitor-review-head > div > div { display: grid; gap: 3px; }
.monitor-review-head b { font-size: 13px; }
.monitor-review-head small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.monitor-review-result { padding: 0 15px 15px; }
.monitor-verdict { border: 1px solid #d4ddd7; border-left: 6px solid #6c7a71; border-radius: 12px; padding: 17px; background: #fff; }
.monitor-verdict.all_clear { border-color: #a8ddba; border-left-color: #14964a; background: #f4fff7; }
.monitor-verdict.not_ready { border-color: #efc1c1; border-left-color: #c33535; background: #fff7f7; }
.monitor-verdict.unreadable { border-color: #ead89e; border-left-color: #b77800; background: #fffaf0; }
.monitor-verdict-title { display: flex; align-items: center; gap: 12px; }
.monitor-verdict-title > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #edf2ee; color: #33453a; font-size: 20px; font-weight: 950; }
.monitor-verdict.all_clear .monitor-verdict-title > span { background: #daf6e4; color: #08753a; }
.monitor-verdict.not_ready .monitor-verdict-title > span { background: #ffe1e1; color: #a52626; }
.monitor-verdict.unreadable .monitor-verdict-title > span { background: #fff0c8; color: #895900; }
.monitor-verdict-title div { display: grid; gap: 1px; }
.monitor-verdict-title small { color: #647169; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.monitor-verdict-title h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.monitor-verdict > p { margin: 12px 0 0; color: #33453a; font-size: 13px; line-height: 1.55; }
.monitor-verdict-lists { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.monitor-list { padding: 11px; border: 1px solid rgba(20,60,35,.1); border-radius: 9px; background: rgba(255,255,255,.72); }
.monitor-list b { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.monitor-list ul { margin: 7px 0 0; padding-left: 18px; }
.monitor-list li { margin: 4px 0; color: #405047; font-size: 11px; line-height: 1.4; }
.monitor-review-note { display: grid; gap: 3px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(20,60,35,.1); }
.monitor-review-note b { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.monitor-review-note span { color: #59675e; font-size: 11px; line-height: 1.4; }
.summary-presentation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.summary-presentation section { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #f8fbf9; }
.summary-presentation section:first-child { grid-column: 1/-1; border-left: 4px solid var(--green); }
.summary-presentation h4 { margin: 0 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.summary-presentation p,.summary-presentation li { margin: 0; color: #405047; font-size: 11px; line-height: 1.5; }
.summary-presentation p + p { margin-top: 6px; }
.summary-presentation ul { margin: 0; padding-left: 17px; }
.summary-presentation li + li { margin-top: 5px; }
.report-summary { padding: 0; border: 0; background: transparent; }
@media (max-width: 700px) { .monitor-review-head { align-items: flex-start; flex-direction: column; } .monitor-review-head .button { width: 100%; } .monitor-verdict-lists,.summary-presentation { grid-template-columns: 1fr; } .summary-presentation section:first-child { grid-column: auto; } }

@media (max-width: 760px) {
  .scan-bypass { grid-template-columns: 1fr; }
  .scan-bypass button { width: 100%; }
  .scan-secure-control { grid-template-columns: auto minmax(0,1fr); }
  .scan-secure-control button { grid-column: 1 / -1; width: 100%; }
  .overview-photo-grid, .overview-photo-grid.two-up { grid-template-columns: minmax(0,1fr); }
  .overview-photo-actions { grid-template-columns: 1fr; }
  .report-upload { grid-template-columns: 36px minmax(0,1fr); }
  .report-upload em { grid-column: 2; }
  .condition-group.fluid-level.extended { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-missing-list { grid-template-columns: 1fr; }
  .multi-photo-camera-modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .multi-photo-camera-stage, .multi-photo-camera-stage video { height: min(58dvh,520px); }
  .multi-photo-camera-count { align-items: flex-start; flex-direction: column; }
  .multi-photo-camera-count span { text-align: left; }
  .multi-photo-camera-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .multi-photo-camera-actions .button:first-child { grid-column: 1 / -1; }
  .repair-estimate-heading { align-items: flex-start; flex-direction: column; }
  .repair-estimate-heading .button { width: 100%; }
  .repair-estimate-row { grid-template-columns: 26px 1fr 1fr; }
  .repair-estimate-copy { grid-column: 2 / -1; }
  .repair-estimate-mode { grid-column: 1 / -1; }
  .repair-estimate-basis { grid-column: 1 / -1; }
  .repair-estimate-note { grid-column: 1 / -1; }
  .repair-estimate-total { align-items: flex-start; flex-direction: column; }
  .safe-refresh-mobile { display: inline-flex; }
  .battery-test-evidence { grid-template-columns: 1fr; }
  .battery-test-evidence .media-strip { grid-column: 1; }
  .cold-start-evidence { grid-template-columns: 1fr; }
  .cold-start-actions { grid-template-columns: 1fr 1fr; }
  .cold-start-evidence .media-strip { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ari's official inventory editor on the HomeBase fleet page. */
.manager-access-card { margin-bottom: 18px; }
.manager-access-card .module-card-title { align-items: center; }
.manager-access-card .module-card-title p { margin: 6px 0 0; max-width: 660px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.manager-account { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e4ede6; }
.manager-account strong { display: block; font-size: 15px; }
.manager-account small { display: block; margin-top: 4px; color: #5e7264; font-size: 12px; }
.manager-account p { margin: 6px 0 0; color: #246d3e; font-size: 12px; }
.manager-account button { min-height: 38px; padding: 8px 11px; border: 1px solid #a5cdb0; border-radius: 8px; background: #effaf2; color: #10642e; font-weight: 800; cursor: pointer; }
@media (max-width: 620px) { .manager-access-card .module-card-title,.manager-account { align-items: stretch; flex-direction: column; } }
.battery-count-panel { margin-top: 16px; border: 1px solid #abd8b8; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(12,55,29,.06); }
.battery-count-panel { max-width: 1120px; margin-left: auto; margin-right: auto; }
.battery-count-panel[hidden] { display: none; }
.battery-count-panel > summary { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #173a24; background: #ecf9f0; border-radius: 15px; list-style: none; cursor: pointer; }
.battery-count-panel > summary::-webkit-details-marker,.battery-count-location > summary::-webkit-details-marker { display: none; }
.battery-count-panel > summary b { display: block; font-size: 19px; }
.battery-count-panel > summary small { display: block; margin-top: 4px; color: #557562; font-size: 12px; }
.battery-count-panel > summary > strong { color: #0c7834; font-size: 12px; white-space: nowrap; }
.battery-count-panel[open] > summary { border-radius: 15px 15px 0 0; }
.battery-count-hint { padding: 14px 20px; color: #496052; background: #f7fcf9; font-size: 13px; }
.battery-count-toolbar { display: flex; align-items: end; gap: 18px; padding: 12px 18px; background: #fff; }
.battery-count-toolbar label { display: grid; gap: 5px; min-width: 240px; color: #203e2c; font-size: 14px; font-weight: 800; }
.battery-count-toolbar select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #b7d4c0; border-radius: 9px; background: #fff; color: #173824; font-size: 16px; }
.battery-count-toolbar span { padding-bottom: 9px; color: #587060; font-size: 14px; }
.battery-count-row[hidden] { display: none; }
.battery-count-head,.battery-count-row { display: grid; grid-template-columns: minmax(125px,1.65fr) repeat(4,minmax(102px,1fr)); gap: 8px; align-items: center; }
.battery-count-head { margin: 0 16px; padding: 11px 5px; border-radius: 8px; background: #173824; color: #fff; font-size: 11px; font-weight: 850; text-align: center; }
.battery-count-head span:first-child { text-align: left; }
.battery-count-location { margin: 12px 16px; overflow: hidden; border: 1px solid #d8e8dd; border-radius: 11px; }
.battery-count-location > .battery-count-head { margin: 0; border-radius: 0; padding: 11px 10px; gap: 6px; }
.battery-count-location > summary { padding: 14px 17px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #f1faf5; cursor: pointer; list-style: none; }
.battery-count-location > summary strong { display: block; font-size: 16px; }
.battery-count-location > summary small { display: block; margin-top: 3px; color: #5a7363; font-size: 12px; }
.battery-count-location > summary em { color: #18753d; font-size: 12px; font-style: normal; font-weight: 800; }
.battery-count-row { min-height: 75px; padding: 8px 13px; border-top: 1px solid #e5eee7; }
.battery-count-row > strong { font-size: 13px; }
.battery-count-cell { min-width: 0; overflow: hidden; border: 1px solid #daece0; border-radius: 10px; text-align: center; }
.battery-count-cell.changed { border-color: #20ab58; background: #edfff3; }
.battery-count-cell output { display: block; padding: 5px; background: #f1faf4; font-size: 18px; font-weight: 850; }
.battery-count-cell > div { display: grid; grid-template-columns: 1fr 1fr; }
.battery-count-cell button { min-height: 34px; border: 0; border-top: 1px solid #daece0; background: #fff; color: #0b7134; font-size: 21px; font-weight: 900; cursor: pointer; }
.battery-count-cell button + button { border-left: 1px solid #daece0; }
.battery-count-cell button:hover { background: #dbf8e5; }
.battery-count-cell button[data-step="1"] { background: #eaf8ee; color: #087a39; }
.battery-count-cell button[data-step="1"]:hover,.battery-count-cell button[data-step="1"]:active { background: #cfebd8; }
.battery-count-cell button[data-step="-1"] { background: #fff0f1; color: #b02d3e; }
.battery-count-cell button[data-step="-1"]:hover,.battery-count-cell button[data-step="-1"]:active { background: #fbdadd; }
.battery-count-cell button:focus-visible { outline: 3px solid #236b42; outline-offset: -3px; }
.battery-count-savebar { position: sticky; bottom: 0; z-index: 3; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #bfdcc6; background: #fff; }
.battery-count-savebar strong,.battery-count-savebar small { display: block; }
.battery-count-savebar small { margin-top: 3px; color: #64776a; font-size: 11px; }
.battery-count-savebar button:disabled { opacity: .45; cursor: default; }
.battery-count-row { min-height: 48px; padding: 4px 10px; gap: 6px; }
.battery-count-row > strong { font-size: 14px; }
.battery-count-cell { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.battery-count-cell output { flex: 1; padding: 5px 8px; background: transparent; font-size: 16px; }
.battery-count-cell > div { display: flex; flex: 0 0 auto; }
.battery-count-cell button { width: 36px; min-height: 38px; border-top: 0; border-left: 1px solid #daece0; font-size: 19px; }
.battery-count-location > summary { padding: 10px 14px; }
@media (max-width: 700px) {
  .battery-count-toolbar { display: block; }
  .battery-count-toolbar label { min-width: 0; }
  .battery-count-toolbar span { display: block; padding: 7px 0 0; }
  .battery-count-cell { display: block; }
  .battery-count-cell > div { display: grid; grid-template-columns: 1fr 1fr; }
  .battery-count-cell button { width: 100%; min-height: 36px; border-top: 1px solid #daece0; border-left: 0; }
}
.battery-count-dialog { width: min(560px,calc(100vw - 28px)); max-height: 85vh; padding: 24px; border: 1px solid #bbd8c2; border-radius: 15px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.battery-count-dialog::backdrop { background: rgba(8,24,13,.64); }
.battery-count-dialog-head,.battery-count-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.battery-count-dialog-head h2 { margin: 0; font-size: 22px; }
.battery-count-dialog-head button { border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.battery-count-dialog ul { max-height: 32vh; padding: 0; overflow: auto; list-style: none; }
.battery-count-dialog li { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e4ebe5; font-size: 13px; }
.battery-count-dialog li span { white-space: nowrap; }
.battery-count-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.battery-count-dialog textarea { width: 100%; min-height: 80px; padding: 10px; border: 1px solid #bccfc2; border-radius: 8px; font: inherit; }
.battery-count-status { color: #a72b34; font-size: 12px; }
.battery-count-dialog-actions { margin-top: 13px; }
.battery-count-dialog-actions > button:first-child { min-height: 38px; border: 1px solid #cad8ce; border-radius: 8px; background: #fff; cursor: pointer; }
.battery-van-card > footer > .battery-edit-location { border: 1px solid #a8d6b4; background: #e9f8ed; color: #0d7236; font-size: 12px; font-weight: 800; cursor: pointer; }
@media (max-width: 900px) {
  .battery-count-head,.battery-count-row { grid-template-columns: minmax(85px,1.3fr) repeat(4,minmax(75px,1fr)); gap: 4px; }
  .battery-count-location > .battery-count-head { gap: 4px; padding: 9px 6px; }
  .battery-count-row { padding: 6px; }
  .battery-count-cell button { min-height: 40px; }
}
@media (max-width: 620px) {
  .battery-count-head,.battery-count-row { grid-template-columns: minmax(72px,1.15fr) repeat(4,minmax(54px,1fr)); gap: 3px; }
  .battery-count-head { margin: 0 5px; font-size: 9px; }
  .battery-count-location > .battery-count-head { gap: 3px; }
  .battery-count-location { margin: 9px 5px; }
  .battery-count-row > strong { font-size: 11px; overflow-wrap: anywhere; }
  .battery-count-cell output { font-size: 15px; }
  .battery-count-cell button { font-size: 18px; }
  .battery-count-panel > summary { align-items: flex-start; flex-direction: column; }
  .battery-count-savebar { padding: 11px; }
  .battery-count-dialog li { display: grid; gap: 2px; }
  .battery-van-card > footer { flex-wrap: wrap; }
}
.icloud-panel { padding: clamp(18px, 3vw, 30px); border: 1px solid #cbded3; border-radius: 20px; background: #f9fffb; color: #173229; }
.icloud-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.icloud-panel-header span { color: #237549; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.icloud-panel-header h2 { margin: 5px 0; font-size: clamp(22px, 3vw, 28px); }
.icloud-panel-header p, .icloud-setup p, .icloud-note, .icloud-editor p { color: #54685e; line-height: 1.5; }
.icloud-setup, .icloud-editor { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #d8e7dd; }
.icloud-setup h3, .icloud-editor h3 { margin: 0 0 8px; }
.icloud-setup form, .icloud-editor { display: grid; gap: 14px; }
.icloud-setup label, .icloud-editor label, .icloud-connection label { display: grid; gap: 6px; font-weight: 700; }
.icloud-panel input, .icloud-panel textarea, .icloud-panel select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #bccfc3; border-radius: 9px; background: #fff; color: #173229; font: inherit; }
.icloud-panel textarea { min-height: 76px; }
.icloud-panel button { cursor: pointer; }
.icloud-connection, .icloud-summary, .icloud-editor-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.icloud-connection label { flex: 1 1 260px; }
.icloud-summary span { color: #587167; font-size: 13px; }
.icloud-events { display: grid; gap: 8px; max-height: 660px; overflow: auto; }
.icloud-event { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #dce9df; border-radius: 10px; background: #fff; }
.icloud-event div { display: grid; gap: 3px; }
.icloud-event small, .icloud-event span { color: #60736a; }
.icloud-event-notes { margin: 4px 0 0; color: #4c6256; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.icloud-visit-update { display: grid; gap: 5px; margin: 10px 0; padding: 10px; border-radius: 9px; background: #e9f7ed; color: #174d2c; font-size: 12px; }
.icloud-visit-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.icloud-visit-photos a { color: #075b2b; font-weight: 800; }
.tech-day-toolbar { display: grid; gap: 15px; margin-bottom: 18px; padding: 19px; border: 1px solid #cfe5d6; border-radius: 17px; background: linear-gradient(135deg,#f0faf3,#fff); }
.tech-day-title h2 { margin: 7px 0 2px; color: #102b1d; font-size: clamp(21px,4vw,28px); line-height: 1.2; }
.tech-day-title small { color: #51725c; font-size: 13px; font-weight: 700; }
.tech-day-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-day-controls button,.tech-day-picker-heading button { min-height: 43px; padding: 9px 13px; border: 1px solid #bcd9c5; border-radius: 9px; background: #fff; color: #155632; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.tech-day-controls button:disabled { opacity: .5; cursor: default; }
.tech-day-controls .tech-day-open { border-color: #177940; background: #177940; color: #fff; }
.tech-day-picker { max-width: 520px; margin: -2px 0 20px; padding: 13px; border: 1px solid #cfe4d4; border-radius: 15px; background: #fff; box-shadow: 0 9px 30px rgba(8,44,23,.08); }
.tech-day-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #163d27; }
.tech-day-picker-heading button { width: 43px; padding: 5px; font-size: 24px; }
.tech-day-picker-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.tech-day-picker-grid > span { min-width: 0; }
.tech-day-picker-grid .tech-day-weekday { padding: 6px 0; color: #6c8173; font-size: 11px; font-weight: 800; text-align: center; }
.tech-day-picker-grid button { position: relative; display: grid; place-items: center; gap: 0; min-width: 0; min-height: 46px; padding: 3px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #163525; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.tech-day-picker-grid button small { color: #128243; font-size: 10px; line-height: 1; }
.tech-day-picker-grid button[data-today] { border-color: #86d6a3; }
.tech-day-picker-grid button[aria-pressed="true"] { background: #137943; color: #fff; }
.tech-day-picker-grid button[aria-pressed="true"] small { color: #c8f6d6; }
.tech-day-picker-grid button:hover,.tech-day-picker-grid button:focus-visible { outline: 2px solid #17944e; outline-offset: -2px; }
@media(max-width: 480px) { .tech-day-toolbar { padding: 14px; } .tech-day-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } .tech-day-controls button { padding: 7px 5px; } .tech-day-controls .tech-day-open { grid-column: 1 / -1; } .tech-day-picker { padding: 9px; } }
.tech-visit-section { display: grid; gap: 14px; margin-bottom: 28px; }
.tech-trip-section { margin: 0 0 18px; }
.tech-trip-section > details { border: 2px solid #65bd81; border-radius: 14px; padding: 14px 16px; background: #f0faf3; }
.tech-trip-section > details > summary { color: #125d33; font-size: 18px; font-weight: 900; cursor: pointer; }
.tech-trip-section > details > p { margin: 12px 0 0; color: #335d40; font-weight: 750; }
#techTripForm { display: grid; gap: 12px; margin-top: 15px; }
#techTripForm > label:not([data-trip-confirm]) { display: grid; gap: 5px; color: #1a4b2e; font-size: 14px; font-weight: 800; }
#techTripForm input:not([type=checkbox]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #87b897; border-radius: 9px; background: #fff; color: #162d1e; font: inherit; }
#techTripForm select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #87b897; border-radius: 9px; background: #fff; color: #162d1e; font: inherit; }
#techTripForm .tech-service-departure { display:grid; gap:10px; padding:15px; border:2px solid #d59234; border-radius:12px; background:#fff7e8; color:#413016; }
#techTripForm .tech-service-departure > strong { font-size:17px; }
#techTripForm .tech-service-departure > p { margin:0; line-height:1.45; }
#techTripForm .tech-service-departure > label:not(.tech-return-service-choice) { display:grid; gap:5px; font-size:14px; font-weight:800; }
#techTripForm .tech-service-departure textarea { width:100%; min-height:70px; padding:10px 12px; border:1px solid #bba176; border-radius:9px; font:inherit; resize:vertical; }
#techTripForm > .tech-return-service-choice { display: flex !important; align-items: flex-start; gap: 9px; padding: 11px 12px; border-radius: 9px; background: #dff3e6; }
#techTripForm .tech-service-departure .tech-return-service-choice { display:flex; align-items:flex-start; gap:9px; padding:10px; border-radius:8px; background:#fff; font-weight:850; }
#techTripForm .tech-return-service-choice input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; }
#techTripForm button { justify-self: start; min-height: 44px; padding: 9px 16px; border: 0; border-radius: 9px; background: #176c3c; color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
#techTripForm button:disabled { opacity: .55; cursor: not-allowed; }
#techTripForm [data-trip-verified] { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #9acdad; border-radius: 9px; background: #fff; color: #1a4b2e; overflow-wrap: anywhere; }
#techTripForm [data-trip-verified][hidden],#techTripForm [data-trip-confirm][hidden] { display: none; }
#techTripForm [data-trip-verified] a { color: #176c3c; font-weight: 800; }
#techTripForm [data-trip-confirm] { display: flex; align-items: center; gap: 8px; color: #15442a; font-weight: 850; }
#techTripForm [data-trip-confirm] input { width: 21px; height: 21px; flex: 0 0 auto; }
#techTripForm [data-trip-status] { margin: 0; color: #76521c; font-size: 13px; font-weight: 750; }
.tech-trip-address { position: relative; min-width: 0; }
.tech-trip-address > label { display: grid; gap: 5px; color: #1a4b2e; font-size: 14px; font-weight: 800; }
#techTripForm .command-dispatch-suggestions button { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e2eee5; border-radius: 0; background: #fff; color: #173c27; text-align: left; font-weight: 650; overflow-wrap: anywhere; }
#techTripForm .command-dispatch-suggestions button:is(:hover,:focus-visible,.is-active) { background: #e9f7ed; }
#techTripForm .command-dispatch-suggestions[hidden] { display: none; }
.starred-locations { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #a4cdb0; border-radius: 10px; background: #f7fcf8; color: #17452b; }
.starred-locations > strong { font-size: 14px; }
.starred-locations-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.starred-locations-heading strong { font-size:15px; }
#commandDispatchForm .starred-locations-heading [data-star-open] { min-height:36px; padding:6px 11px; border:1px solid #28804b; background:#fff; color:#17653a; font-size:13px; }
.starred-locations [data-star-list] { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 7px; }
.starred-location { display: flex; min-width: 0; border: 1px solid #b6d7c0; border-radius: 8px; background: #fff; }
#commandDispatchForm .starred-location button,#techTripForm .starred-location button { display: grid; gap: 3px; flex: 1; width: 100%; min-width: 0; min-height: 55px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #155d35; text-align: left; font-size: 13px; }
.starred-location small { color: #52695a; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
#commandDispatchForm .starred-location .starred-remove { flex: none; width: 32px; min-height: 40px; padding: 5px; place-items: center; font-size: 20px; }
.starred-locations [data-star-editor] { display: flex; gap: 7px; flex-wrap: wrap; }
.starred-locations [data-star-editor] input { flex: 1; min-width: 145px; padding: 9px; border: 1px solid #a4cdb0; border-radius: 8px; font: inherit; }
#commandDispatchForm .starred-location-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; border:1px solid #a4cdb0; border-radius:9px; background:#fff; }
.starred-location-address { position:relative; min-width:0; }
.starred-location-address .command-dispatch-suggestions { top:100%; }
.starred-location-verified { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:5px 10px; padding:9px; border-radius:7px; background:#e8f6ed; color:#145c36; font-size:13px; overflow-wrap:anywhere; }
.starred-location-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
#commandDispatchForm .starred-location-actions [data-star-cancel] { border:1px solid #bdd6c5; background:#f4f8f5; color:#245437; }
.starred-locations [data-star-status] { color: #476554; font-size: 12px; }
#techTripForm .starred-locations [hidden],#commandDispatchForm .starred-locations [hidden] { display: none !important; }
@media (max-width: 600px) { #commandDispatchForm .starred-location-editor { grid-template-columns:1fr; } }
@media (max-width: 480px) { .starred-locations [data-star-list] { grid-template-columns: 1fr; } }
.tech-van-trip .visit-heading strong { overflow-wrap: anywhere; }
.tech-next-stop-button { display: grid; gap: 5px; width: 100%; margin: 0 0 15px; padding: 15px 18px; text-align: left; border: 2px solid #32c96b; border-radius: 15px; background: linear-gradient(120deg,#092318,#185637); color: #fff; cursor: pointer; font: inherit; }
.tech-next-stop-button span { color: #65ed9e; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.tech-next-stop-button strong { font-size: 20px; }
.tech-next-stop-button small { color: #d2ecd9; font-size: 13px; overflow-wrap: anywhere; }
.tech-next-stop-button em { margin-top: 5px; color: #8cf1b0; font-size: 13px; font-style: normal; font-weight: 850; }
.tech-next-stop-button.is-reroute { border-color:#f6c654; background:linear-gradient(120deg,#3b260e,#75430e); }
.tech-reroute-dialog { max-width:min(92vw,520px); padding:24px; border:3px solid #e5ab34; border-radius:18px; box-shadow:0 20px 80px #0008; color:#17291d; }
.tech-reroute-dialog::backdrop { background:#08190dc9; }
.tech-reroute-dialog > span { color:#87530b; font-size:12px; font-weight:900; letter-spacing:.1em; }
.tech-reroute-dialog h2 { margin:10px 0; }
.tech-reroute-dialog p { overflow-wrap:anywhere; }
.tech-reroute-dialog > div { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.tech-reroute-dialog button { padding:12px 16px; border:1px solid #16683b; border-radius:9px; background:#fff; color:#165b36; font:inherit; font-weight:800; }
.tech-reroute-dialog button[data-trip-step] { background:#146b3b; color:#fff; }
.tech-visit-section > h2 { margin: 0; color: #102d1c; font-size: 25px; }
.visit-error { margin: 0; padding: 12px; background: #fff0e7; color: #9b4521; border-radius: 10px; }
.tech-calendar-visit { border: 1px solid #d9e8dc; border-left: 6px solid var(--visit-color); border-radius: 15px; background: #fff; box-shadow: 0 5px 22px rgba(10,44,25,.06); padding: 16px; }
.tech-calendar-visit.is-next-stop { border-color: #8bd7a2; border-left-color: #19b957; background: linear-gradient(145deg,#effaf2,#fff 55%); box-shadow: 0 8px 25px rgba(14,101,44,.11); }
.tech-calendar-visit.is-notification-target { outline: 3px solid #129448; outline-offset: 3px; }
.tech-calendar-visit, [data-tech-route-update], #technicianCalendarList { scroll-margin-top: 105px; }
.visit-dispatch-tag { display: inline-block; width: fit-content; margin-bottom: 9px; padding: 5px 9px; border-radius: 6px; background: #163e29; color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.visit-eta { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #ecf7f0; color: #164a2a; font-weight: 800; }
.visit-onsite { width: fit-content; margin: 10px 0; padding: 7px 11px; border-radius: 7px; background: #e0f4e6; color: #12663a; font-size: 14px; font-weight: 850; }
.visit-complete { display: grid; justify-items: start; gap: 5px; margin: 10px 0; padding: 11px; border-radius: 9px; background: #eaf7ee; }
.visit-complete button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 7px; background: #167944; color: #fff; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; }
.visit-complete small { color: #3d6950; }
.visit-eta.is-due, .visit-eta-late { background: #fff0ef; color: #ac2532; font-weight: 850; }
.visit-travel-issue { margin: 9px 0; padding: 10px 12px; border: 1px solid #e5a2a4; border-radius: 8px; background: #fff1ef; color: #922d31; font-size: 13px; font-weight: 800; }
.visit-issue-report { margin: 10px 0; padding: 10px 12px; border: 1px solid #e7c49d; border-radius: 9px; background: #fffaf3; }
.visit-issue-report summary { color: #8b501d; font-size: 13px; font-weight: 800; cursor: pointer; }
.visit-issue-report form { display: grid; gap: 8px; margin-top: 10px; }
.visit-issue-report label { display: grid; gap: 4px; color: #694d31; font-size: 12px; font-weight: 750; }
.visit-issue-report select,.visit-issue-report textarea { width: 100%; min-height: 39px; padding: 8px; border: 1px solid #d6b795; border-radius: 7px; background: #fff; color: #2b382d; font: inherit; font-size: 14px; }
.visit-issue-report textarea { min-height: 66px; resize: vertical; }
.visit-issue-report button { justify-self: start; min-height: 40px; padding: 8px 13px; border: 0; border-radius: 7px; background: #ad452b; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.visit-eta-entry { display: inline-flex; align-items: center; gap: 8px; color: #284b32; font-weight: 800; }
.visit-eta-entry input { width: 70px; min-height: 42px; padding: 5px; border: 1px solid #80ab8b; border-radius: 8px; font: inherit; text-align: center; }
.visit-manual-eta { margin: 10px 0; padding: 10px 12px; border: 1px solid #cce5d4; border-radius: 9px; background: #f7fcf8; }
.visit-manual-eta summary { color: #176c3c; font-size: 13px; font-weight: 800; cursor: pointer; }
.visit-manual-eta p { margin: 8px 0; color: #52695a; font-size: 13px; }
.visit-manual-eta small { display: block; margin-bottom: 8px; color: #225d39; font-weight: 800; }
.visit-manual-eta > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 10px; }
.visit-manual-eta button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 7px; background: #167944; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.visit-timeline { margin: 8px 0; }
.visit-timeline summary { cursor: pointer; color: #176c3c; font-weight: 800; }
.visit-timeline ol { margin: 5px 0 0; padding-left: 23px; }
.visit-timeline li { margin: 5px 0; }
.command-next-stops-list { display: grid; gap: 8px; padding: 14px; container-type: inline-size; }
.command-live-van-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-items:start; }
@container (min-width: 1650px) { .command-live-van-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.command-live-van-card { min-width: 0; padding: 11px 12px; border: 2px solid var(--van-color); border-radius: 10px; background: color-mix(in srgb, var(--van-color) 13%, #fff); }
.command-live-van-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; margin-bottom: 5px; }
.command-live-van-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: color-mix(in srgb,var(--van-color) 26%,white); font-size: 16px; }
.command-live-van-card header strong { font-size: 16px; color: color-mix(in srgb,var(--van-color) 32%,#132f20); white-space: nowrap; }
.command-van-role { padding:4px 7px; border:1px solid var(--van-color); border-radius:6px; background:#fff; color:#12673a; font-size:12px; font-weight:900; letter-spacing:.025em; white-space:nowrap; }
.command-van-at-shop { flex:none; padding:5px 9px; border:1px solid #086136; border-radius:6px; background:#086136; color:#fff; font-size:14px; font-weight:900; letter-spacing:.045em; white-space:nowrap; }
.command-van-tracking { flex:none; padding:4px 7px; border:1px solid #a8b9af; border-radius:6px; background:#f5f8f5; color:#426152; font-size:12px; font-weight:850; letter-spacing:.025em; white-space:nowrap; }
.command-van-tracking.is-live { border-color:#147147; background:#e4f6ea; color:#096238; }
.command-live-van-card header small { margin-left: auto; font-size: 12px; color: #365a40; font-weight: 850; text-align: right; }
.command-van-fuel { --fuel-color:#11683c; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:3px 9px; margin:10px 0 0; padding:9px 11px; border:1px solid #a2cbb2; border-left:5px solid var(--fuel-color); border-radius:8px; background:#f0faf3; color:var(--fuel-color); text-decoration:none; }
.command-van-fuel.is-low { --fuel-color:#c5182c; background:#fff0f0; border-color:#e8a1aa; border-left-color:var(--fuel-color); }
.command-van-fuel.is-caution { --fuel-color:#a84900; background:#fff6e8; border-color:#edc28d; border-left-color:#e47c13; }
.command-van-fuel.is-unknown { --fuel-color:#58655e; background:#f6f8f6; border-color:#cbd5ce; border-left-color:#9aa89e; }
.command-van-fuel:hover { filter:brightness(.97); }
.command-van-fuel:focus-visible { outline:3px solid #163bba; outline-offset:3px; }
.command-van-fuel-icon { text-align:center; font-size:34px; line-height:1; font-weight:950; }
.command-van-fuel.is-low .command-van-fuel-icon { font-size:44px; }
.command-van-fuel.is-caution .command-van-fuel-icon { color:#da720c; }
.command-van-fuel-reading { display:grid; gap:1px; min-width:0; }
.command-van-fuel-reading > small { font-size:10px; font-weight:850; letter-spacing:.07em; }
.command-van-fuel-reading > strong { font-size:25px; line-height:1.1; font-weight:900; font-variant-numeric:tabular-nums; }
.command-van-fuel-reading > strong > span { font-size:15px; }
.command-van-fuel.is-unknown .command-van-fuel-reading > strong { font-size:15px; }
.command-van-fuel-action { font-size:10px; line-height:1.3; font-weight:900; text-align:right; }
.command-van-fuel-source { grid-column:1/-1; margin-top:2px; color:#526157; font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.command-van-fuel > .fuel-confirmation { grid-column:1/-1; min-width:0; margin-top:2px; font-size:11px; line-height:1.4; overflow-wrap:break-word; }
.command-van-fuel-panel > summary { list-style:none; cursor:pointer; }
.command-van-fuel-panel > summary::-webkit-details-marker { display:none; }
.command-van-fuel-panel[open] > summary { border-radius:8px 8px 0 0; }
.command-van-fuel-gauge { display:block; width:100%; max-width:180px; height:5px; margin-top:5px; border-radius:4px; background:color-mix(in srgb,currentColor 17%,#fff); overflow:hidden; }
.command-van-fuel-gauge > span { display:block; height:100%; border-radius:inherit; background:currentColor; }
.command-van-fuel-details { border:1px solid #c8d8ce; border-top:0; border-radius:0 0 8px 8px; padding:10px 12px; background:#fff; color:#274c36; font-size:12px; line-height:1.5; }
.command-van-fuel-details p { margin:5px 0; }
.command-van-fuel-details small { color:#526157; }
.command-van-day-controls { display:flex; align-items:center; gap:7px; margin:10px 0 12px; padding:8px; border:1px solid color-mix(in srgb,var(--van-color) 35%,#d3e0d6); border-radius:8px; background:#fff; }
.command-van-day-controls label { display:grid; gap:2px; flex:1; min-width:0; }
.command-van-day-controls label > span { color:#365a40; font-size:12px; font-weight:850; }
.command-van-day-controls input { width:100%; min-width:0; border:0; padding:2px 0; background:#fff; color:#173823; font:inherit; font-size:14px; font-weight:800; }
.command-van-day-controls button { flex:none; min-width:36px; min-height:40px; padding:6px 9px; border:1px solid #c5d8cc; border-radius:6px; background:#edf5ef; color:#155932; font:inherit; font-size:14px; font-weight:850; cursor:pointer; }
.command-van-day-controls button[data-command-action$="-van-day"] { font-size:24px; line-height:1; }
.command-van-day-controls button:disabled { opacity:.4; cursor:default; }
.command-van-day-controls :focus-visible { outline:2px solid #086136; outline-offset:2px; }
.command-live-van-stops { display:grid; gap: 7px; }
.command-live-van-card .command-van-appointment-detail.is-primary,.command-live-van-card .command-van-trip-detail.is-primary { border:0; box-shadow:none; background:transparent; }
.command-live-van-card .command-van-compact-summary { background:transparent; }
.command-live-van-card .command-van-compact-time:not(.is-en-route) { color:color-mix(in srgb,var(--van-color) 50%,#132f20); }
.command-live-van-card .command-van-compact-foot { padding-top:7px; border-top:1px solid color-mix(in srgb,var(--van-color) 32%,transparent); }
.command-live-van-card .command-van-compact-details { background:#fff; border-radius:0 0 7px 7px; }
.command-van-row { display:grid; gap:3px; min-width:0; }
.command-undo-clear { justify-self:start; min-height:34px; margin:2px 0 6px 4px; padding:5px 11px; border:1px solid #90bea1; border-radius:7px; background:#effaf2; color:#17683b; font:inherit; font-size:12px; font-weight:850; cursor:pointer; }
.command-undo-clear:hover,.command-undo-clear:focus-visible { background:#dff3e5; outline-color:#17683b; }
.command-undo-clear:disabled { opacity:.65; cursor:wait; }
.command-cancel-route { justify-self:start; min-height:42px; margin:4px 0 6px 2px; padding:8px 13px; border:1px solid #c6847c; border-radius:8px; background:#fff7f5; color:#8b302d; font:inherit; font-size:14px; font-weight:850; cursor:pointer; }
.command-cancel-route:hover,.command-cancel-route:focus-visible { background:#fceae7; outline-color:#8b302d; }
.command-cancel-route:disabled { opacity:.65; cursor:wait; }
.command-trip-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:4px 0 6px 2px; }
.command-trip-actions button { min-height:42px; padding:8px 13px; border-radius:8px; font:inherit; font-size:14px; font-weight:850; cursor:pointer; }
.command-trip-actions .command-clear-trip { border:1px solid #d6a266; background:#fff8ee; color:#80501d; }
.command-trip-actions .command-clear-trip:hover,.command-trip-actions .command-clear-trip:focus-visible { background:#ffedcf; outline-color:#80501d; }
.command-trip-actions .command-cancel-route { margin:0; border-color:#91bf9c; background:#eff8f0; color:#1c6637; }
.command-trip-actions .command-cancel-route:hover,.command-trip-actions .command-cancel-route:focus-visible { background:#dcf0e1; outline-color:#1c6637; }
.command-trip-actions button:disabled { opacity:.65; cursor:wait; }
.command-van-trip { min-width: 0; padding: 10px; border: 1px solid #92cda6; border-radius: 9px; background: #f5fbf6; }
.command-van-trip.is-primary { border-width: 2px; }
.command-van-trip.is-en-route,.command-van-appointment-detail.is-en-route { border-color:#57add6; }
.command-van-trip.is-at-location,.command-van-appointment-detail.is-at-location { border-color:#3dba6a; }
.command-van-trip-address { margin: 8px 0; color: #395642; font-size: 14px; overflow-wrap: anywhere; }
.command-van-trip-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 10px; font-size: 13px; }
.command-van-trip-links a { color: #176c3c; font-weight: 850; }
.command-van-trip-links small { color: #536a5b; }
.command-dispatch-composer { max-width: 1100px; margin: 12px auto 18px; padding: 16px; border: 1px solid #9acdad; border-radius: 13px; background: #f3faf5; }
.command-dispatch-composer > summary { cursor: pointer; color: #145e36; font-weight: 850; font-size: 17px; }
#commandDispatchForm { display: grid; gap: 14px; padding-top: 16px; }
#commandDispatchForm label { display: grid; gap: 5px; min-width: 0; font-weight: 750; color: #21432e; }
#commandDispatchForm input[type=checkbox] { width: 20px; height: 20px; min-width: 20px; min-height: 20px; padding: 0; margin: 0; accent-color: #167545; flex: 0 0 20px; }
#commandDispatchForm input:not([type=checkbox]),#commandDispatchForm textarea,#commandDispatchForm select { width: 100%; max-width: 100%; min-height: 44px; padding: 10px; border: 1px solid #9dbca5; border-radius: 8px; background: #fff; font: inherit; }
#commandDispatchForm button { width: fit-content; min-height: 42px; padding: 9px 14px; border-radius: 8px; background: #176f42; color: white; font-weight: 800; }
#commandDispatchForm button:disabled { opacity: .55; }
#commandDispatchForm [hidden] { display: none !important; }
.command-dispatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.command-dispatch-title { min-width: 0; display: grid; align-content: start; gap: 7px; }
.command-dispatch-title > label:first-child { display: block !important; }
.command-dispatch-title [data-dispatch-title-entry] { margin-top: 3px; }
.command-dispatch-title [data-dispatch-title-feedback]:empty { display: none; }
.command-dispatch-title [data-dispatch-title-feedback] { color: #276c42; font-weight: 700; }
.command-dispatch-address { position: relative; min-width: 0; }
.command-dispatch-address > label { display: block !important; margin-bottom: 5px; }
.command-dispatch-suggestions { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: min(340px, 48vh); overflow-y: auto; border: 1px solid #a5cbb2; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 12px 24px #10351b30; }
#commandDispatchForm .command-dispatch-suggestions button { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e2eee5; border-radius: 0; background: #fff; color: #173c27; text-align: left; font-weight: 650; overflow-wrap: anywhere; }
#commandDispatchForm .command-dispatch-suggestions button:is(:hover,:focus-visible,.is-active) { background: #e9f7ed; }
.command-dispatch-suggestions > p { margin: 0; padding: 12px; color: #52695a; font-size: 13px; }
.command-dispatch-attribution { padding: 5px 10px; text-align: right; }
.command-dispatch-attribution img { width: 115px; height: auto; vertical-align: middle; }
#commandDispatchForm fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid #b7d8c1; border-radius: 9px; background: #edf7f0; }
#commandDispatchForm legend { padding: 0 5px; font-weight: 850; }
#commandDispatchForm fieldset label,#commandDispatchForm .command-dispatch-confirm,#commandDispatchForm .command-dispatch-option { display: flex !important; align-items: center; gap: 10px !important; margin: 0; }
#commandDispatchForm .command-dispatch-select-all { width: fit-content; padding: 4px 2px 8px; cursor: pointer; }
.command-dispatch-recipients { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 6px; }
#commandDispatchForm .command-dispatch-recipients label { min-height: 52px; padding: 10px; border: 1px solid #c4d9c9; border-left: 5px solid var(--dispatch-van-color,#258750); border-radius: 9px; background: #fff; cursor: pointer; overflow-wrap: anywhere; }
#commandDispatchForm .command-dispatch-recipients label:has(input:checked) { border-color: #237a45; border-left-color: var(--dispatch-van-color,#258750); background: #e3f4e9; }
.command-dispatch-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#commandDispatchForm .command-dispatch-option { min-height: 68px; padding: 10px 12px; border: 1px solid #bdd7c4; border-radius: 9px; background: #fff; cursor: pointer; }
.command-dispatch-option span { display: grid; gap: 3px; }
.command-dispatch-option small { color: #55705d; font-size: 12px; font-weight: 500; line-height: 1.35; }
.command-dispatch-verify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.command-dispatch-verify-row .command-dispatch-verified { flex: 1 1 250px; }
#commandDispatchForm .command-dispatch-confirm { padding: 10px; border: 1px solid #a4cdb0; border-radius: 8px; background: #e8f6ec; cursor: pointer; }
#commandDispatchStatus { margin: 0; color: #175a37; font-weight: 750; }
#commandDispatchStatus:empty { display: none; }
.command-dispatch-verified { padding: 10px; border-radius: 8px; background: white; border: 1px solid #9acdad; overflow-wrap: anywhere; }
.command-dispatch-receipt { display:grid; gap:5px; padding:12px 14px; border:2px solid #29844c; border-radius:9px; background:#eaf8ef; color:#16432b; font-size:14px; overflow-wrap:anywhere; }
.command-dispatch-receipt[hidden] { display:none; }
.command-dispatch-receipt strong { font-size:16px; }
.command-dispatch-receipt small { color:#426a50; font-size:12px; }
.command-dispatch-verified a { color: #12633d; font-weight: 800; }
.command-dispatch-photo-zone { padding: 18px; border: 2px dashed #8cbea0; border-radius: 10px; background: white; cursor: pointer; text-align: center; }
.command-dispatch-photo-zone.is-dragging { background: #e0f7e8; }
.command-dispatch-photo-preview { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); gap: 10px; }
.command-dispatch-photo-preview[hidden] { display: none; }
.command-dispatch-photo-item { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 10px; border: 1px solid #bdd7c4; border-radius: 9px; background: white; overflow-wrap: anywhere; }
.command-dispatch-photo-preview img { display: block; max-width: min(100%,300px); max-height: 210px; object-fit: contain; border-radius: 8px; }
.command-dispatch-photo-preview button { margin-top: 8px; }
.dispatch-task-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.dispatch-task-photos > a { min-width: 0; max-width: min(100%,240px); display: grid; align-content: start; gap: 5px; overflow-wrap: anywhere; }
.tech-dispatch-instructions { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; border-radius: 9px; background: #f2faf4; }
.tech-dispatch-photo { display: inline-grid; gap: 4px; width: fit-content; color: #12633d; font-weight: 800; }
.tech-dispatch-photo img { max-width: min(100%,320px); max-height: 220px; border-radius: 9px; object-fit: contain; }
.tech-route-photo-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #101c16; color: white; }
.tech-route-photo-dialog::backdrop { background: #07110dec; }
.tech-route-photo-dialog header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; min-height: 62px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: #123722; }
.tech-route-photo-dialog header strong { flex: 1; }
.tech-route-photo-dialog header button { flex: none; min-height: 44px; padding: 8px 11px; border: 1px solid #a9d7b9; border-radius: 8px; background: #e7f5e9; color: #10432c; font: inherit; font-weight: 800; }
.tech-route-photo-dialog header button:last-child { background: white; }
.tech-route-photo-frame { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(100dvh - 62px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); text-align: center; }
.tech-route-photo-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.tech-route-photo-dialog.is-zoomed .tech-route-photo-frame { display: block; text-align: left; }
.tech-route-photo-dialog.is-zoomed .tech-route-photo-frame img { width: 150vw; max-width: none; max-height: none; height: auto; }
.command-van-task { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; font-weight: 700; }
.command-van-task-photo img { display: block; max-width: min(100%,220px); max-height: 140px; object-fit: cover; border-radius: 8px; }
.route-update { display:grid; gap:8px; min-width:0; margin:10px 0; padding:12px; border:1px solid #abcdbb; border-radius:10px; background:#f1faf4; overflow-wrap:anywhere; }
.route-update.is-unread { border:2px solid #187444; background:#e6f7e9; }
.route-update b { color:#155936; }
.route-update p { margin:0; white-space:pre-wrap; }
.route-update small { color:#456756; font-weight:700; }
.route-update-files { display:flex; gap:8px; flex-wrap:wrap; }
.route-update-files a { display:grid; gap:4px; max-width:160px; padding:5px; border:1px solid #bad5c5; border-radius:8px; background:white; color:#155936; font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.route-update-files img { width:100%; max-height:130px; object-fit:contain; border-radius:5px; }
.route-update-composer { margin:10px 0; padding:10px; border:1px solid #a3c8af; border-radius:10px; background:#f4fbf5; }
.route-update-composer summary { cursor:pointer; color:#12633d; font-weight:800; }
.route-update-composer form { display:grid; gap:10px; margin-top:10px; }
.route-update-composer label { display:grid; gap:5px; font-weight:700; }
.route-update-composer textarea,.route-update-composer input[type=file] { width:100%; max-width:100%; }
.route-update-upload { display:grid; gap:8px; min-width:0; }
.route-update-dropzone { position:relative; display:grid; justify-items:center; gap:5px; padding:22px 12px; border:2px dashed #79b58f; border-radius:10px; background:white; color:#175d39; text-align:center; cursor:pointer; overflow:hidden; }
.route-update-dropzone input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; z-index:1; }
.route-update-dropzone strong,.route-update-dropzone span { pointer-events:none; }
.route-update-dropzone:hover,.route-update-dropzone:focus-visible,.route-update-dropzone.is-dragging { border-color:#147447; background:#e4f7e9; outline-offset:2px; }
.route-update-dropzone:focus-within { border-color:#147447; outline:2px solid #147447; outline-offset:2px; }
.route-update-dropzone span { font-size:14px; }
.route-update-preview { display:flex; flex-wrap:wrap; gap:10px; }
.route-update-preview-item { display:grid; gap:5px; width:min(160px,100%); padding:8px; border:1px solid #bed8c7; border-radius:9px; background:white; overflow-wrap:anywhere; }
.route-update-preview-item img { width:100%; height:100px; object-fit:contain; border-radius:5px; }
.route-update-preview-item button { min-height:34px; }
.route-update-pdf-icon { display:grid; place-items:center; height:100px; border-radius:5px; background:#f1f5f2; font-weight:800; }
@media(max-width:800px){.command-dispatch-recipients{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.command-dispatch-composer{padding:12px}.command-dispatch-grid,.command-dispatch-options{grid-template-columns:1fr}.command-dispatch-verify-row{align-items:stretch}.command-dispatch-verify-row .command-dispatch-verified{flex-basis:100%}}
@media(max-width:360px){.command-dispatch-recipients{grid-template-columns:1fr}}
.command-van-row > .command-clear-stop { justify-self:start; margin:0 0 3px 4px; border:0; padding:0; }
.command-van-row > .command-clear-stop > summary { padding:3px 7px; border:1px solid #e7c5c3; border-radius:6px; background:#fff5f4; text-decoration:none; }
.command-van-row > .command-clear-stop[open] { width:100%; margin:0; padding:8px; border:1px solid #e7c5c3; border-radius:8px; background:#fff9f8; }
.command-van-row > .command-clear-stop[open] > summary { border:0; padding:0; background:none; }
.command-van-row > .command-clear-stop form { max-width:440px; }
.command-van-appointment-detail { min-width:0; overflow:hidden; border:1px solid #dce9df; border-radius:8px; background:#fff; }
.command-van-appointment-detail > summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 10px; cursor:pointer; list-style:none; }
.command-van-appointment-detail > summary::-webkit-details-marker { display:none; }
.command-van-appointment-detail > summary::after { content:'▾'; grid-column:2; justify-self:end; color:#4b7858; font-size:15px; }
.command-van-appointment-detail[open] > summary::after { content:'▴'; }
.command-van-appointment-detail > summary:focus-visible { outline:2px solid #207e4b; outline-offset:-2px; }
.command-van-appointment-detail > summary .command-van-appointment-copy { display:grid; min-width:0; gap:2px; grid-row:1 / 3; }
.command-van-appointment-copy b { color:#267447; font-size:12px; }
.command-van-appointment-copy strong { color:#173823; font-size:14px; overflow-wrap:anywhere; }
.command-van-appointment-copy small { color:#536e5c; font-size:12px; overflow-wrap:anywhere; }
.command-van-appointment-copy .command-van-row-eta { color:#126e3e; font-weight:850; }
.command-van-appointment-copy .command-van-row-issue { color:#a33439; font-weight:850; }
.command-van-appointment-status { grid-column:2; grid-row:1; display:grid; justify-items:end; gap:2px; text-align:right; }
.command-van-appointment-status b { color:#197544; font-size:12px; white-space:nowrap; }
.command-van-appointment-status small { color:#247347; font-size:11px; font-weight:750; white-space:nowrap; }
.command-van-appointment-status .command-van-contact-time { color:#137744; font-weight:900; }
.command-van-appointment-detail.is-active { border-color:#9bd8af; background:#f9fdf9; }
.command-van-appointment-detail.is-finished { border-color:#bbc9be; background:#dce3dd; }
.command-van-appointment-detail.is-finished .command-van-appointment-copy b,.command-van-appointment-detail.is-finished .command-van-appointment-status b,.command-van-appointment-detail.is-finished .command-van-appointment-status small { color:#43594a; }
.command-van-appointment-detail.is-finished .command-van-appointment-copy strong { color:#334b3a; }
.command-van-appointment-detail.is-finished .command-van-service-compact { color:#536656; }
.command-van-service-compact { font-weight:800; color:#205d38 !important; }
.command-van-appointment-detail.is-primary { border:2px solid #84c99b; background:#fff; box-shadow:0 3px 10px #16462b15; }
.command-van-appointment-detail.is-primary > summary { display:block; padding:12px; }
.command-van-appointment-detail.is-primary > summary::after { content:none; }
.command-van-trip-detail { min-width:0; overflow:hidden; border:1px solid #a4d1ae; border-radius:9px; background:#fff; }
.command-van-trip-detail.is-primary { border-width:2px; }
.command-van-trip-detail.is-finished { border-color:#bbc9be; background:#edf1ee; }
.command-van-trip-detail > summary { list-style:none; cursor:pointer; }
.command-van-trip-detail > summary::-webkit-details-marker { display:none; }
.command-van-trip-detail > summary:focus-visible { outline:2px solid #207e4b; outline-offset:-2px; }
.command-van-compact-summary { display:grid !important; grid-template-columns:minmax(0,1fr) !important; align-items:stretch !important; gap:8px; padding:11px 12px !important; }
.command-van-compact-top,.command-van-compact-foot { display:flex; align-items:center; gap:9px; min-width:0; }
.command-van-compact-top { justify-content:space-between; padding:7px 9px; border-left:5px solid #9aada0; border-radius:6px; background:#eef3ef; color:#3c5845; font-size:12px; }
.command-van-compact-top > span { min-width:0; overflow-wrap:anywhere; }
.command-van-compact-top > b { flex:none; padding:4px 8px; border-radius:6px; background:#426c52; color:#fff; font-size:12px; text-transform:uppercase; }
.is-en-route > .command-van-compact-summary .command-van-compact-top { border-left-color:#087bb5; background:#d9f0fc; color:#064d70; }
.is-en-route > .command-van-compact-summary .command-van-compact-top > b { background:#087bb5; color:#fff; }
.is-at-location > .command-van-compact-summary .command-van-compact-top { border-left-color:#19834b; background:#ddf5e5; color:#135c37; }
.is-at-location > .command-van-compact-summary .command-van-compact-top > b { background:#177b43; color:#fff; }
.is-away > .command-van-compact-summary .command-van-compact-top { border-left-color:#b66b0c; background:#fff0d5; color:#78440a; }
.is-away > .command-van-compact-summary .command-van-compact-top > b { background:#a85d09; color:#fff; }
.is-finished > .command-van-compact-summary .command-van-compact-top { border-left-color:#8c9b90; background:#e4e9e5; color:#405246; }
.is-finished > .command-van-compact-summary .command-van-compact-top > b { background:#64776a; color:#fff; }
.command-van-compact-main { display:grid; grid-template-columns:minmax(0,130px) minmax(0,1fr); align-items:center; gap:10px; min-width:0; }
.command-van-compact-main > div { min-width:0; display:grid; gap:2px; }
.command-van-compact-main > div > b { color:#183824; font-size:15px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.command-van-compact-main > div > span { color:#5b705f; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.command-van-compact-main > div > .command-van-contact-time { color:#137744; font-size:12px; font-weight:900; overflow-wrap:anywhere; }
.command-van-compact-clock small { color:#4d6757; font-size:10px; font-weight:900; letter-spacing:.04em; line-height:1.2; }
.command-van-compact-time { min-width:0; color:#13743e; font-size:21px; line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.command-van-compact-time.is-en-route { color:#117398; }
.command-van-travel-time { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 10px; border:1px solid #b8dcef; border-radius:7px; background:#eaf6fc; color:#075779; }
.command-van-travel-time > span { font-size:11px; font-weight:900; letter-spacing:.04em; }
.command-van-travel-time > strong { font-size:20px; line-height:1.2; font-variant-numeric:tabular-nums; }
.is-at-location > .command-van-compact-summary .command-van-compact-time { color:#11683b; }
.is-away > .command-van-compact-summary .command-van-compact-time { color:#965509; }
.command-van-ppi-progress .ppi-completion { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; width:100%; max-width:none; margin:0; padding:8px 10px; border-color:#93cfa7; background:#f5fcf7; font-size:13px; }
.command-van-ppi-progress .ppi-completion-track { width:100%; height:9px; }
.command-van-ppi-link { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; min-width:0; padding:0; border:0; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.command-van-ppi-link:focus-visible { outline:2px solid #147342; outline-offset:3px; border-radius:7px; }
.command-van-ppi-link .ppi-completion { min-width:0; }
.command-van-ppi-open { color:#14643b; font-size:12px; font-weight:900; white-space:nowrap; text-decoration:underline; }
.command-van-ppi-unlinked { display:block; padding:8px 10px; border:1px solid #d4e0d7; border-radius:7px; background:#fff; color:#5b6b60; font-size:12px; font-weight:750; }
.command-van-compact-foot { justify-content:space-between; color:#526a59; font-size:12px; }
.command-van-compact-foot > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#154e2d; font-size:13px; }
.command-van-compact-foot > strong.is-unassigned { color:#a42d35; }
.command-van-compact-foot > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.command-van-compact-foot > span:last-child { flex:none; color:#176b3f; font-weight:800; }
.command-dispatch-meta { display:flex; flex-wrap:wrap; gap:3px 12px; align-items:baseline; padding:5px 7px; border-radius:5px; background:#eaf7ef; color:#195438; font-size:12px; }
.command-dispatch-meta b { font-weight:900; }
.command-dispatch-meta span { color:#456452; }
.command-van-trip-detail.is-finished .command-dispatch-meta { background:#e2eae4; }
.command-van-compact-details { padding:0 10px 10px; border-top:1px solid #e2ebe4; }
.command-van-compact-details .command-van-copy-fields { margin-top:10px; }
.command-van-compact-details > .command-van-row-eta { display:block; margin-top:8px; }
.command-van-compact-details > .command-van-trip { margin-top:10px; }
.command-van-appointment-detail.is-finished .command-van-compact-summary,.command-van-trip-detail.is-finished .command-van-compact-summary { background:#edf1ee; }
.command-van-appointment-detail.is-finished .command-van-compact-time,.command-van-trip-detail.is-finished .command-van-compact-time { color:#667669; }
.command-van-appointment-detail > .command-clear-stop { margin:0 10px 10px; }
.command-van-quick-assign { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:10px 12px; border-top:1px solid #d3e5d8; background:#edf8f0; }
.command-van-quick-assign label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#194e30; font-size:13px; font-weight:850; }
.command-van-quick-assign select { min-width:180px; max-width:100%; min-height:36px; padding:6px 9px; border:1px solid #8fbea0; border-radius:7px; background:#fff; color:#143b24; font:inherit; cursor:pointer; }
.command-van-quick-assign select:disabled { opacity:.7; cursor:wait; }
.command-van-quick-assign small { color:#436e50; font-size:11px; }
.command-van-appointment-detail.is-finished .command-van-quick-assign { background:#e5ece6; }
.command-van-copy-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; color:#287247; font-size:12px; }
.command-van-state-badge { padding:3px 7px; border-radius:5px; background:#177845; color:#fff; font-size:11px; font-weight:850; text-transform:uppercase; }
.command-van-onsite-clock { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; margin-top:10px; padding:12px 16px; border-radius:8px; background:#135f38; color:#fff; box-shadow:0 2px 8px #104d2d25; }
.command-van-onsite-clock > span { font-size:12px; font-weight:900; letter-spacing:.08em; }
.command-van-onsite-clock > strong { font-size:clamp(22px, 2.4vw, 30px); line-height:1.1; font-variant-numeric:tabular-nums; white-space:nowrap; }
.command-van-onsite-clock > small { flex-basis:100%; color:#d9f4e2; font-size:12px; font-weight:800; }
.command-van-onsite-clock.is-en-route { background:#136b8b; box-shadow:0 2px 8px #125b7929; }
.command-van-onsite-clock.is-en-route > small { color:#e0f5ff; }
.command-van-onsite-clock.is-at-location { background:#136735; }
.command-photo-complete-star { display:inline-block; margin-right:4px; color:#d99000; font-size:28px; line-height:1; vertical-align:-3px; text-shadow:0 1px 1px #67460055; }
.command-van-compact-foot .command-photo-complete-star { font-size:25px; vertical-align:-4px; }
.command-van-service-focus { margin:10px 0 7px; padding:9px 10px; border-left:5px solid var(--van-color); border-radius:6px; background:#e9f5ec; }
.command-van-service-focus small { display:block; color:#216841; font-size:10px; font-weight:900; letter-spacing:.09em; }
.command-van-service-focus strong { display:block; color:#102f1d; font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
.command-van-copy-customer { color:#304b39; font-size:13px; overflow-wrap:anywhere; }
.command-van-copy-customer small { display:block; color:#5b705f; }
.command-van-assignee { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 8px; margin-top:8px; color:#154e2d; }
.command-van-assignee > span { font-size:10px; font-weight:850; letter-spacing:.07em; }
.command-van-assignee > strong { font-size:15px; font-weight:900; overflow-wrap:anywhere; }
.command-van-assignee.is-unassigned > strong { color:#a42d35; }
.command-van-appointment-copy .command-van-assignee { margin-top:4px; }
.command-van-copy-fields { display:grid; grid-template-columns:1fr 1.45fr 1fr; gap:7px; margin-top:10px; }
.command-van-copy-field { display:grid; align-content:start; gap:3px; min-width:0; padding:8px; border:1px solid #d5e3d8; border-radius:7px; background:#f6faf7; }
.command-van-copy-field > span { color:#526a59; font-size:10px; font-weight:850; text-transform:uppercase; }
.command-van-copy-field > b { color:#193b28; font-size:12px; overflow-wrap:anywhere; }
.command-van-copy-field > button { justify-self:start; margin-top:3px; padding:4px 7px; border:1px solid #a9cbb2; border-radius:5px; background:#fff; color:#176d3c; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.command-van-copy-field > small { color:#738278; font-size:10px; }
.command-van-copy-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px; margin-top:9px; color:#1c663c; font-size:12px; }
.command-van-copy-footer > span { margin-right:auto; }
.command-van-detail-hint { display:block; margin-top:7px; color:#4e7058; font-size:11px; text-align:right; }
.command-van-next-preview { margin:4px 2px 0; color:#405a48; font-size:12px; overflow-wrap:anywhere; }
.command-van-day-rest { border:1px solid #d3e0d6; border-radius:7px; background:#f1f5f2; }
.command-van-last-stop { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; margin:8px 0; padding:9px 11px; border:1px solid color-mix(in srgb,var(--van-color) 35%,#d3e0d6); border-radius:8px; background:#fff; color:#294d38; font-size:13px; line-height:1.35; }
.command-van-last-stop span { font-weight:750; }
.command-van-last-stop strong { color:#126b3d; font-size:14px; }
.command-van-day-rest > summary { padding:8px 10px; color:#375742; font-size:12px; font-weight:800; cursor:pointer; }
.command-van-day-rest > div { display:grid; gap:6px; padding:0 7px 7px; }
.command-van-appointment-detail .command-live-stop { border:0; border-top:1px solid #e1eae3; border-radius:0; }
.command-live-stop { padding: 9px 10px; border: 1px solid #dce9df; border-radius: 8px; background: #fff; }
.command-live-stop + .command-live-stop { border-color: #e2e7e3; }
.command-live-stop-top { display:flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.command-live-stop-top b { color:#173823; font-size: 15px; overflow-wrap: anywhere; }
.command-live-stop-top span { flex:0 0 auto; color:#267447; font-size: 13px; font-weight: 800; }
.command-live-stop > p,.command-van-empty { margin: 3px 0 8px; color:#5f7266; font-size: 14px; overflow-wrap: anywhere; }
.command-live-stop .command-stop-service { margin-top: -4px; color: #255d3a; font-size: 13px; font-weight: 750; }
.command-live-stop .command-stop-notes { white-space:pre-wrap; color:#4b6754; font-size:12px; }
.command-live-stop .command-cleared-reason { color:#69776c; font-size:12px; }
.command-service-timer { display: inline-block; padding: 4px 7px; border-radius: 6px; background: #e0f3e5; color: #12663a; font-size: 13px; }
.command-van-service-milestones { display:flex; flex-wrap:wrap; gap:6px 12px; margin:8px 0; font-size:12px; color:#3d6048; }
.command-van-service-milestones span { display:inline-flex; align-items:center; gap:4px; padding:5px 8px; border-radius:6px; background:#eaf3ed; }
.command-van-service-milestones .is-contact-made { background:#dcf4e3; color:#0c6537; font-weight:850; }
.command-van-service-milestones .is-contact-pending { background:#fff2dc; color:#80570b; font-weight:850; }
.command-van-photos { margin-top: 9px; padding: 8px; border-radius: 8px; background: #f1f7f2; }
.command-van-photos-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; color: #1b482e; font-size: 13px; }
.command-van-photos-heading > div { display: inline-flex; align-items: center; gap: 7px; }
.command-van-photos-heading button { width: 32px; height: 30px; border: 1px solid #b7d5bf; border-radius: 6px; background: #fff; color: #176c3c; font: inherit; font-size: 20px; cursor: pointer; }
.command-van-photos [data-photo-frame] { display: grid; place-items: center; min-height: 78px; margin-top: 7px; border: 1px solid #d7e6dc; border-radius: 6px; background: #fff; }
.command-van-photos [data-photo-frame] img { display: block; max-width: 100%; max-height: 240px; object-fit: contain; }
.command-van-photos [data-photo-frame] small { margin: 5px 0 9px; color: #346b47; font-size: 11px; font-weight: 700; }
.command-van-photos [data-photo-frame] p { margin: 10px; color: #597161; font-size: 13px; }
.command-van-photos [data-vehicle-readings] { display: grid; gap: 5px; margin-top: 8px; }
.visit-extra-photos { margin-top:12px; padding-top:11px; border-top:1px solid #c7dfcf; }
.visit-extra-photos > strong { display:block; margin-bottom:8px; color:#174a2e; }
.visit-extra-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); gap:10px; }
.visit-extra-photo { display:grid; align-content:start; gap:5px; padding:7px; background:#fff; border:1px solid #bed8c7; border-radius:9px; color:#174a2e; text-decoration:none; overflow-wrap:anywhere; }
.visit-extra-photo img { width:100%; height:112px; object-fit:cover; border-radius:5px; background:#eaf3ed; }
.visit-extra-photo span { font-weight:800; }
.visit-extra-photo small { color:#57705f; }
.command-vehicle-reading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding: 7px 8px; border: 1px solid #d7e6dc; border-radius: 6px; background: #fff; color: #1b482e; font-size: 13px; }
.command-vehicle-reading > strong { min-width: 42px; }
.command-vehicle-reading > span { flex: 1 1 150px; overflow-wrap: anywhere; }
.command-vehicle-reading > span b { font-size: 14px; letter-spacing: .02em; }
.command-vehicle-reading > span small { display: block; color: #576d5c; font-size: 12px; }
.command-vehicle-reading > button,.command-vehicle-reading form button { border: 1px solid #b7d5bf; border-radius: 6px; background: #f1f7f2; color: #176c3c; padding: 5px 8px; font: inherit; font-weight: 700; cursor: pointer; }
.command-vehicle-reading form { display: flex; flex: 1 1 100%; align-items: end; flex-wrap: wrap; gap: 7px; border-top: 1px solid #e4ece6; padding-top: 8px; }
.command-vehicle-reading form[hidden] { display: none; }
.command-vehicle-reading form label { display: grid; gap: 3px; flex: 1 1 160px; }
.command-vehicle-reading form label:has(input[name="plateState"]) { flex: 0 1 120px; }
.command-vehicle-reading form input { max-width: 100%; min-height: 34px; border: 1px solid #b7d5bf; border-radius: 6px; padding: 5px 7px; font: inherit; text-transform: uppercase; }
.command-vehicle-reading form [role="status"] { flex: 1 1 100%; color: #a63737; }
.command-live-stop footer { display: flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
.command-live-stop footer span { color:#205c39; font-size:13px; font-weight:800; }
.command-live-stop footer a,.command-live-stop footer button { border:0; padding:0; background:transparent; color:#197847; font:inherit; font-size:13px; font-weight:800; text-decoration:underline; cursor:pointer; }
.command-live-stop > em { display:block; margin-top:7px; color:#a73035; font-size:13px; font-style:normal; font-weight:800; }
.command-live-stop.has-issue { border-color:#ecaeb1; background:#fff8f7; }
.command-clear-stop { margin-top:8px; border-top:1px solid #e2e9e3; padding-top:7px; }
.command-clear-stop summary { width:max-content; color:#8d3235; font-size:13px; font-weight:800; text-decoration:underline; cursor:pointer; }
.command-clear-stop form { display:grid; gap:8px; margin-top:9px; }
.command-clear-stop label { display:grid; gap:4px; color:#2e4936; font-size:14px; font-weight:750; }
.command-clear-stop select,.command-clear-stop textarea { width:100%; min-height:40px; border:1px solid #c5d8cb; border-radius:7px; background:#fff; padding:8px; color:#173823; font:inherit; }
.command-clear-stop textarea { resize:vertical; }
.command-clear-stop button { justify-self:start; min-height:40px; padding:8px 12px; border:0; border-radius:7px; background:#98413d; color:#fff; font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.command-clear-stop button:disabled { opacity:.6; cursor:wait; }
.command-clear-stop [role="status"] { color:#8d3235; font-size:13px; }
.command-live-van-card > b { display: block; overflow: hidden; color: #173823; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.command-live-van-card > p { overflow: hidden; margin: 2px 0 8px; color: #637769; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.command-live-van-card footer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-height: 22px; }
.command-live-van-card footer span { color: #205c39; font-size: 11px; font-weight: 850; }
.command-live-van-card footer a,.command-live-van-card footer button { border: 0; padding: 0; background: transparent; color: #197847; font: inherit; font-size: 11px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.command-eta-checkpoint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 6px 0 8px; padding: 6px 8px; border-radius: 7px; background: #eaf7ee; color: #205c39; font-size: 11px; }
.command-eta-checkpoint strong { font-size: 11px; }
.command-eta-checkpoint > span { font-weight: 850; }
.command-eta-checkpoint details { width: 100%; }
.command-eta-checkpoint summary { cursor: pointer; font-weight: 750; }
.command-eta-checkpoint ol { margin: 4px 0 0; padding-left: 18px; line-height: 1.5; }
.command-live-van-card > em { display: block; margin-top: 7px; color: #a73035; font-size: 11px; font-style: normal; font-weight: 850; }
.command-live-van-card.has-issue { background: #fff8f7; border-color: #ecaeb1; border-left-color: var(--van-color); }
@media (max-width: 900px) { .command-live-van-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .command-live-van-grid { grid-template-columns: 1fr; } .command-live-van-card { padding: 9px; } .command-live-van-card header { display: flex; } .command-live-stop-top { flex-wrap:wrap; } }
@media (max-width: 560px) { .command-van-compact-main { grid-template-columns:minmax(0,105px) minmax(0,1fr); gap:8px; } .command-van-compact-time { font-size:20px; } .command-van-compact-top > b { max-width:53%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
@media (max-width: 560px) { .command-van-copy-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .command-van-copy-field:nth-child(2) { grid-column:1/-1; } }
.command-next-stop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid #cfe5d5; border-radius: 11px; background: #f3fbf5; }
.command-next-stop.is-late { border-color: #ee8f98; background: #fff0ef; }
.command-next-stop > span { display: grid; align-content: center; gap: 3px; }
.command-next-stop b { color: #116e37; font-size: 14px; }
.command-next-stop strong { color: #153321; font-size: 17px; }
.command-next-stop small { color: #586b5d; font-size: 14px; overflow-wrap: anywhere; }
.command-next-stop-status { color: #205b35; font-size: 14px; font-weight: 850; }
.command-next-stop.is-late .command-next-stop-status { color: #ab2531; }
.command-next-stop.needs-date-confirmation { border-color: #eca8ad; background: #fff5f4; }
.command-next-stop-date-alert { color: #bc2432; font-size: 12px; font-style: normal; font-weight: 850; letter-spacing: .025em; }
.command-next-stop.is-editable,.command-today-row.is-editable { cursor: pointer; }
.command-next-stop.is-editable:hover,.command-next-stop.is-editable:focus-visible,.command-today-row.is-editable:hover,.command-today-row.is-editable:focus-visible { outline: 2px solid #1e9c4d; outline-offset: -2px; background: #ecf8f0; }
.command-next-stops-empty { margin: 0; color: #607267; font-size: 14px; }
.command-van-view-switch { display: flex; gap: 5px; padding: 10px 14px 0; background: #fff; }
.command-van-view-switch button { min-height: 34px; padding: 6px 13px; border: 1px solid #cdded1; border-radius: 8px; background: #fff; color: #23553a; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.command-van-view-switch button[aria-pressed="true"] { border-color: #167944; background: #167944; color: #fff; }
.command-van-day-list,.command-van-calendar { padding: 12px 14px 16px; }
.command-van-day-list[hidden],.command-van-calendar[hidden] { display: none; }
.command-van-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; align-items: start; }
.command-van-group { min-width: 0; overflow: hidden; border: 1px solid #dbe7dd; border-radius: 11px; background: #fafcfb; }
.command-van-group > summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 11px; color: #173c28; cursor:pointer; }
.command-van-group > summary strong { min-width: 0; font-size: 13px; }
.command-van-group > summary small { margin-left: auto; color: #64786a; font-size: 11px; font-weight: 800; }
.command-van-group[open] > summary { border-bottom: 1px solid #e5ede6; }
.command-van-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--van-color); }
.command-van-group-items { display: grid; gap: 5px; padding: 7px; }
.command-van-appointment-item { min-width:0; }
.command-van-appointment-item .command-undo-clear { margin:3px 0 2px 5px; }
.command-van-appointment { width: 100%; min-width: 0; display: grid; gap: 2px; padding: 7px 10px; border: 1px solid #e1e9e3; border-left: 4px solid var(--van-color); border-radius: 7px; background: #fff; color: #1b3827; font: inherit; text-align: left; cursor: pointer; }
.command-van-appointment b { color: #195b36; font-size: 12px; line-height: 1.3; }
.command-van-appointment strong { overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.command-van-appointment span,.command-van-appointment small { overflow: hidden; color: #566f5e; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.command-van-appointment .command-van-service { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; color: #284b35; font-weight: 700; }
.command-van-appointment.needs-date-confirmation { border-color: #ecc6c7; border-left-color: var(--van-color); background: #fff8f6; }
.command-van-appointment.needs-date-confirmation b { color: #a52d36; }
.command-van-appointment.is-finished { border-color:#e0e5e1; border-left-color:#bdc8bf; background:#f4f6f4; }
.command-van-appointment.is-finished b,.command-van-appointment.is-finished strong,.command-van-appointment.is-finished .command-van-service { color:#718075; }
.command-van-appointment:hover,.command-van-appointment:focus-visible { outline: 2px solid #268b51; outline-offset: -2px; background: #f1faf3; }
.command-van-calendar-scroll { width: 100%; overflow-x: auto; border: 1px solid #dfe9e1; border-radius: 10px; }
.command-van-calendar-table { width: 100%; min-width: 840px; border-collapse: collapse; table-layout: fixed; }
.command-van-calendar-table th,.command-van-calendar-table td { padding: 6px; border-right: 1px solid #e7eee8; border-bottom: 1px solid #e7eee8; text-align: left; vertical-align: top; }
.command-van-calendar-table tr > :first-child { width: 82px; }
.command-van-calendar-table thead th { padding: 9px 6px; background: #f3f8f4; color: #234a32; font-size: 11px; white-space: nowrap; }
.command-van-calendar-table thead th .command-van-dot { margin-right: 5px; }
.command-van-calendar-table tbody th { background: #fafcfb; color: #546a59; font-size: 11px; white-space: nowrap; }
.command-van-calendar-table tbody td { height: 52px; }
.command-van-calendar-table tbody td .command-van-appointment + .command-van-appointment { margin-top: 5px; }
.command-van-calendar-table tbody td .command-van-appointment-item + .command-van-appointment-item { margin-top:5px; }
.command-van-appointment.in-calendar { padding: 6px; }
.command-van-appointment.in-calendar strong,.command-van-appointment.in-calendar span { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.command-calendar-all-day { display: grid; gap: 8px; margin-bottom: 10px; padding: 9px 10px; border: 1px solid #eadbd7; border-radius: 9px; background: #fffaf7; }
.command-calendar-all-day > strong { color: #703d37; font-size: 12px; }
.command-calendar-all-day > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
@media(max-width: 650px) { .command-van-groups,.command-calendar-all-day > div { grid-template-columns: 1fr; } }
.command-apple-edit-dialog { width: min(700px, calc(100vw - 22px)); max-height: min(90vh, 980px); padding: 0; border: 1px solid #98ccaa; border-radius: 17px; background: #fff; color: #183426; box-shadow: 0 24px 80px rgba(0, 0, 0, .24); overflow-y: auto; }
.command-apple-edit-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 18px 21px; border-bottom: 1px solid #e1ebe3; background: #eff8f1; }
.command-apple-edit-heading span { color: #168141; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.command-apple-edit-heading h2 { margin: 5px 0; font-size: 24px; }
.command-apple-edit-heading p { margin: 0; color: #5f7165; }
.command-apple-edit-heading button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #cee0d1; border-radius: 9px; background: #fff; font-size: 24px; cursor: pointer; }
.command-apple-edit-dialog form { padding: 20px; }
.command-apple-edit-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.command-apple-edit-fields label { display: grid; align-content: start; gap: 6px; font-size: 12px; font-weight: 800; color: #3e5845; }
.command-apple-edit-fields .wide { grid-column: 1 / -1; }
.command-apple-edit-fields input,.command-apple-edit-fields select,.command-apple-edit-fields textarea { min-width: 0; width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c9dace; border-radius: 8px; background: #fff; color: #182c1d; font: inherit; font-size: 14px; }
.command-apple-edit-fields textarea { min-height: 95px; resize: vertical; }
.command-apple-edit-fields textarea[name="description"] { overflow-y: hidden; resize: none; }
.command-apple-edit-fields .command-apple-all-day { display: flex; align-items: center; gap: 8px; }
.command-apple-all-day input { width: auto; min-height: 0; }
.command-apple-edit-fields [hidden] { display: none; }
.message-emoji-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -5px 0 5px; padding: 10px; border: 1px solid #d3e5d7; border-radius: 10px; background: #f5fbf6; }
.message-emoji-picker span { width: 100%; color: #496450; font-size: 12px; font-weight: 750; }
.message-emoji-picker button { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 4px; border: 1px solid #c8dbcd; border-radius: 9px; background: #fff; color: #193624; font-size: 23px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.message-emoji-picker button.favorite { min-width: 50px; border-color: #71b987; background: #e6f7ea; font-size: 27px; }
.message-emoji-picker button:focus-visible { outline: 2px solid #168c47; outline-offset: 2px; }
.command-apple-edit-info { color: #617267; font-size: 12px; line-height: 1.5; }
.command-apple-edit-error { color: #ad2732; font-weight: 800; }
.command-apple-edit-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.command-apple-edit-actions button { min-height: 41px; padding: 9px 14px; border: 1px solid #bdd4c2; border-radius: 8px; background: #fff; color: #1a5833; font-weight: 800; cursor: pointer; }
.command-apple-edit-actions .button-primary { background: #148342; border-color: #148342; color: #fff; }
.command-apple-edit-actions .command-apple-delete { margin-right: auto; border-color: #f0c0c4; background: #fff6f6; color: #b52734; }
@media(max-width: 560px) { .command-apple-edit-fields { grid-template-columns: 1fr; } .command-apple-edit-fields .wide { grid-column: 1; } .command-apple-edit-dialog form { padding: 16px; } }
.visit-heading { display: grid; gap: 5px; color: #506f59; }
.visit-heading > span { color: #187443; font-size: 12px; font-weight: 850; letter-spacing: .035em; }
.visit-heading > strong { color: #10251a; font-size: 19px; }
.visit-heading > small { font-size: 13px; overflow-wrap: anywhere; }
.visit-actions, .visit-photo-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.visit-actions a, .visit-actions button, .visit-photo-controls button, .visit-photo-slot > button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid #70b78a; border-radius: 9px; background: #f0faf3; color: #116136; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.visit-actions button, .visit-photo-slot > button { color: #fff; background: #176c3c; border-color: #176c3c; }
.visit-actions button:disabled, .visit-photo-slot > button:disabled { opacity: .55; }
.tech-calendar-visit > details { border-top: 1px solid #e4ede7; padding-top: 10px; }
.tech-calendar-visit > details > summary { color: #176c3c; font-weight: 850; cursor: pointer; }
.visit-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: #354e3d; }
.visit-instruction { color: #536a5a; font-size: 13px; }
.visit-photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 10px; margin-top: 12px; }
.visit-photo-slot { display: grid; align-content: start; gap: 8px; padding: 12px; background: #f6faf7; border: 1px dashed #a4c9ae; border-radius: 11px; }
.visit-photo-slot.is-dragging { background: #dbf5e3; border-color: #157b3a; }
.visit-photo-slot > img, .visit-photo-slot a img { width: 100%; height: 125px; object-fit: cover; border-radius: 8px; }
.visit-photo-slot > img[hidden] { display: none; }
.visit-photo-slot > img[data-visit-preview] { height: auto; max-height: 260px; object-fit: contain; background: #fff; }
.visit-photo-slot > button[data-visit-discard], .visit-extra-photo-form > button[data-visit-discard] { background: #fff; color: #536a5a; border-color: #a4c9ae; }
.visit-saved-photo-link { color: #116136; font-weight: 800; overflow-wrap: anywhere; }
.visit-photo-slot > span[role=status], .visit-photo-slot small { color: #536a5a; font-size: 11px; }
.visit-photo-controls { margin: 0; }
.visit-photo-controls button { flex: 1; min-width: 92px; padding: 6px; font-size: 12px; }
.visit-photo-slot > button { width: 100%; }
.visit-extra-photo-form { display:grid; gap:10px; margin-top:15px; padding:14px; border:1px solid #a4c9ae; border-radius:11px; background:#f3faf5; }
.visit-extra-photo-form.is-dragging { background:#dbf5e3; border-color:#157b3a; }
.visit-extra-photo-form > strong { color:#174a2e; }
.visit-extra-photo-form p { margin:0; color:#536a5a; }
.visit-extra-photo-form label { display:grid; gap:5px; font-weight:700; }
.visit-extra-photo-form textarea { width:100%; min-height:72px; padding:9px; border:1px solid #b7d5bf; border-radius:8px; font:inherit; }
.visit-extra-photo-form > button { min-height:42px; border:0; border-radius:9px; background:#176c3c; color:#fff; font:inherit; font-weight:800; cursor:pointer; }
.visit-extra-photo-form > button:disabled { opacity:.55; }
.visit-extra-photo-form > span[role=status] { color:#3e5e49; }
.tech-past-visits { border-top: 1px solid #cfdfd3; padding-top: 14px; }
.tech-past-visits > summary { margin-bottom: 14px; color: #176c3c; font-weight: 800; cursor: pointer; }
.tech-past-visits > article { margin-bottom: 12px; }
.icloud-editor { margin-top: 18px; }
.icloud-calendar-settings { flex: 1 1 300px; padding: 12px 14px; border: 1px solid #d8e7dd; border-radius: 12px; background: #fff; }
.icloud-calendar-settings summary { cursor: pointer; font-weight: 800; }
.icloud-calendar-settings p { color: #54685e; font-size: 13px; }
.icloud-calendar-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px; margin: 12px 0; }
.icloud-calendar-choices label { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #d8e7dd; border-radius: 9px; font-size: 13px; }
.icloud-panel .icloud-calendar-choices input { width: 18px; min-height: 18px; accent-color: #237549; }
.icloud-calendar-choices i,.icloud-filters i,.icloud-event-calendar i { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--calendar-color); }
.icloud-filters { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.icloud-filters button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid #ccdfd2; border-radius: 999px; background: #fff; color: #245039; font-weight: 700; }
.icloud-filters button[aria-pressed="true"] { background: #e5f5ea; border-color: #5faa74; }
.icloud-event { border-left: 5px solid var(--calendar-color,#5a8d6d); }
.icloud-event-calendar { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.icloud-move { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 14px; border: 1px solid #d8e7dd; border-radius: 14px; background: #fff; }
.icloud-move label { flex: 1 1 220px; display: grid; gap: 6px; font-weight: 700; }
.icloud-move small { flex-basis: 100%; color: #60736a; }
.icloud-schedule-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-top: 1px solid #dce9df; }
.icloud-schedule-toolbar > div > span { color: #237549; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.icloud-schedule-toolbar h3 { margin: 3px 0 0; color: #173229; font-size: 22px; }
.icloud-schedule-controls { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.icloud-schedule-controls label { display: grid; gap: 5px; color: #54685e; font-size: 11px; font-weight: 800; }
.icloud-panel .icloud-schedule-controls input { width: clamp(180px,20vw,280px); min-height: 38px; }
.icloud-schedule-controls button { min-height: 38px; padding: 8px 12px; border: 1px solid #cbded3; border-radius: 8px; background: #fff; color: #214c35; font: inherit; font-weight: 800; }
.icloud-schedule-controls button:disabled { opacity: .45; cursor: not-allowed; }
.icloud-schedule-controls button[data-icloud="previous-month"],.icloud-schedule-controls button[data-icloud="next-month"] { width: 40px; padding: 3px; font-size: 28px; line-height: 1; }
.icloud-schedule-controls .button-primary { background: #237549; color: #fff; border-color: #237549; }
.icloud-calendar-layout { display: grid; grid-template-columns: minmax(0, var(--calendar-left, 55fr)) minmax(0, var(--calendar-right, 45fr)); gap: 16px; align-items: start; }
.icloud-size-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 0 12px; color: #536b5a; font-size: 12px; font-weight: 800; }
.icloud-size-toolbar label { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.icloud-size-toolbar input[type="range"] { width: 180px; min-height: 28px; padding: 0; accent-color: #237549; }
.icloud-size-toolbar output { color: #237549; font-size: 11px; }
.icloud-month,.icloud-day-list { background: #fff; border: 1px solid #dce9df; border-radius: 14px; overflow: hidden; }
.icloud-month-weekdays,.icloud-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.icloud-month-weekdays { border-bottom: 1px solid #e5eee7; }
.icloud-month-weekdays span { padding: 12px 0; text-align: center; color: #68766f; font-size: 12px; font-weight: 800; }
.icloud-month-grid { background: #e8eee9; gap: 1px; }
.icloud-date { min-width: 0; min-height: 81px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 7px 2px; border: 0; background: #fff; color: #173229; font: inherit; }
.icloud-date:hover,.icloud-date:focus-visible { background: #eef8f0; }
.icloud-date[aria-pressed="true"] { background: #e9f5ee; box-shadow: inset 0 0 0 2px #237549; }
.icloud-date.is-outside { color: #9aaba0; background: #f9faf9; }
.icloud-date-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 750; }
.icloud-date-number.is-today { background: #c93537; color: #fff; }
.icloud-date-marks { min-height: 7px; display: flex; justify-content: center; gap: 2px; width: 90%; }
.icloud-date-marks i { flex: 1 1 0; max-width: 16px; height: 6px; border-radius: 3px; background: var(--calendar-color); }
.icloud-date small { font-size: 10px; color: #637369; }
.icloud-day-list > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid #e6eee8; }
.icloud-day-list > header span { color: #237549; font-size: 10px; letter-spacing: .08em; font-weight: 900; }
.icloud-day-list > header h3 { margin: 3px 0 0; font-size: 20px; }
.icloud-day-list > header > small { color: #5b6b60; text-align: right; }
.icloud-day-list > header small { color: #5b6b60; }
.icloud-day-navigation { display: flex; align-items: end; gap: 5px; flex-wrap: wrap; }
.icloud-day-navigation label { display: grid; gap: 3px; color: #526c5b; font-size: 11px; font-weight: 800; }
.icloud-day-navigation button,.icloud-day-navigation input { min-height: 38px; border: 1px solid #b8d3c1; border-radius: 8px; background: #fff; color: #1c6840; font: inherit; font-size: 13px; font-weight: 800; }
.icloud-day-navigation button { min-width: 36px; padding: 6px 9px; cursor: pointer; }
.icloud-day-navigation input { padding: 5px 7px; width: 145px; }
.icloud-day-navigation button:hover { background: #e9f5ee; }
.icloud-list-rows { max-height: 550px; overflow-y: auto; }
.icloud-list-event { border-bottom: 1px solid #e8eee9; }
.icloud-list-event:last-child { border-bottom: 0; }
.icloud-list-event.is-current { background: #ecf7ee; }
.icloud-list-event.is-past { background: #f7f8f7; }
.icloud-list-event.is-past .icloud-list-color { background: #abb7ae; }
.icloud-list-event.is-past .icloud-list-main b,.icloud-list-event.is-past .icloud-list-time { color: #77847b; }
.icloud-list-event.is-past .icloud-list-main small { color: #89948c; }
.icloud-list-event.is-past > summary:hover { background: #eef2ee; }
.icloud-list-event > summary { list-style: none; display: grid; grid-template-columns: 4px minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 12px 14px; cursor: pointer; }
.icloud-list-event > summary::-webkit-details-marker { display: none; }
.icloud-list-event > summary:hover { background: #f4f9f5; }
.icloud-list-color { align-self: stretch; min-height: 34px; border-radius: 2px; background: var(--calendar-color); }
.icloud-list-main { min-width: 0; display: grid; gap: 4px; }
.icloud-list-main b { color: #193529; font-size: 14px; overflow-wrap: anywhere; }
.icloud-list-main small { color: #647169; font-size: 12px; overflow-wrap: anywhere; }
.icloud-list-time { text-align: right; color: #32493a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.icloud-list-time small { display: block; color: #7c8c80; font-size: 11px; font-weight: 500; }
.icloud-list-time .icloud-event-phase { font-weight: 800; color: #237549; }
.icloud-list-event.is-past .icloud-event-phase { color: #7d8980; }
.icloud-list-details { display: grid; gap: 9px; padding: 0 16px 14px 30px; color: #4c6256; font-size: 12px; }
.icloud-list-details p { margin: 0; }
.icloud-list-details button { justify-self: start; }
.icloud-search-bar { display: flex; align-items: end; gap: 10px; margin-top: 14px; }
.icloud-search-bar label { display: grid; flex: 1; gap: 5px; font-size: 12px; font-weight: 800; color: #54685e; }
.icloud-search-bar button { padding: 11px; border: 1px solid #cbded3; border-radius: 8px; background: white; color: #237549; }
.icloud-agenda { display: grid; gap: 11px; }
.icloud-day { border: 1px solid #dce9df; border-radius: 14px; overflow: hidden; background: #fff; }
.icloud-day.is-today { border-color: #5fa974; box-shadow: 0 0 0 1px #bde7c7; }
.icloud-day > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: #f0f7f2; }
.icloud-day > header h3 { margin: 0; font-size: 15px; }
.icloud-day > header h3 small { margin-left: 5px; color: #237549; font-size: 11px; }
.icloud-day > header span { color: #60736a; font-size: 12px; font-weight: 700; }
.icloud-day-empty { margin: 0; padding: 12px 16px; color: #718278; font-size: 12px; }
.icloud-agenda-event { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid #edf2ee; border-left: 5px solid var(--calendar-color,#5a8d6d); }
.icloud-agenda-time { padding-top: 3px; color: #183927; font-size: 13px; font-weight: 800; white-space: nowrap; }
.icloud-agenda-main { min-width: 0; display: grid; gap: 3px; }
.icloud-agenda-main b { color: #173229; font-size: 14px; overflow-wrap: anywhere; }
.icloud-agenda-main > small { display: flex; align-items: center; gap: 6px; color: #536a5b; font-size: 11px; font-weight: 750; }
.icloud-agenda-main > small i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--calendar-color); }
.icloud-agenda-main > span { color: #60736a; font-size: 12px; overflow-wrap: anywhere; }
.icloud-agenda-details summary { width: fit-content; margin-top: 3px; color: #217247; font-size: 12px; font-weight: 800; cursor: pointer; }
.icloud-agenda-details > div { display: grid; gap: 8px; margin-top: 7px; padding: 12px; border-radius: 8px; background: #f4f9f5; }
.icloud-agenda-details > div button { justify-self: start; }
.icloud-agenda-details > div small { color: #60736a; }
.icloud-editor-heading { margin-bottom: 0; }
.icloud-panel .icloud-delete-appointment { width: fit-content; min-height: 42px; padding: 9px 14px; border: 1px solid #e7aab0; border-radius: 8px; background: #fff5f5; color: #b52734; font: inherit; font-weight: 800; }
.icloud-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.icloud-dates[hidden] { display: none; }
.icloud-appointment-times { display: grid; gap: 10px; padding: 16px; border: 1px solid #cfe2d4; border-radius: 14px; background: #f4fbf5; }
.icloud-appointment-times[hidden] { display: none; }
.icloud-time-row { display: grid; gap: 9px; }
.icloud-time-row + .icloud-time-row { padding-top: 10px; border-top: 1px solid #d8e6da; }
.icloud-time-row > b { color: #1e6d40; font-size: 15px; }
.icloud-time-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 12px; }
.icloud-time-fields label { min-width: 0; }
.icloud-panel .icloud-time-fields input { min-width: 0; font-size: 16px; }
.icloud-time-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.icloud-time-presets span { width: 78px; color: #53695a; font-size: 12px; font-weight: 800; }
.icloud-panel .icloud-time-presets button { min-height: 34px; padding: 6px 11px; border: 1px solid #bad7c4; border-radius: 8px; background: #fff; color: #1e643d; font: inherit; font-size: 12px; font-weight: 800; }
.icloud-panel .icloud-time-presets button:hover, .icloud-panel .icloud-time-presets button:focus-visible { background: #e3f4e8; border-color: #47a567; }
.icloud-time-hint { color: #526b59; font-size: 12px; }
.icloud-panel .icloud-editor textarea[name="description"] { min-height: 112px; overflow-y: hidden; resize: none; }
.icloud-all-day { display: flex !important; align-items: center; gap: 9px; }
.icloud-panel .icloud-all-day input { width: 20px; min-height: 20px; height: 20px; accent-color: #237549; }
.icloud-error { color: #9b2d20; padding: 12px; background: #fff0ed; border-radius: 8px; }
.icloud-conflict { padding: 16px; border: 1px solid #dfb55f; border-radius: 12px; background: #fff9eb; color: #283b30; }
.icloud-conflict strong { font-size: 17px; }
.icloud-conflict ul { margin: 12px 0; padding-left: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.icloud-conflict li + li { margin-top: 8px; }
.icloud-conflict > div { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .icloud-panel-header, .icloud-event { align-items: stretch; flex-direction: column; } .icloud-dates { grid-template-columns: 1fr; } .icloud-schedule-controls { width: 100%; } .icloud-schedule-controls label { width: 100%; } .icloud-panel .icloud-schedule-controls input { width: 100%; } .icloud-agenda-event { grid-template-columns: 68px minmax(0,1fr); gap: 8px; padding: 10px; } }
@media (max-width: 850px) { .icloud-calendar-layout { grid-template-columns: minmax(0,1fr); } .icloud-list-rows { max-height: none; } .icloud-size-toolbar { display: none; } }
@media (max-width: 640px) { .icloud-panel { padding: 12px; } .icloud-schedule-toolbar { gap: 10px; } .icloud-schedule-toolbar h3 { font-size: 20px; } .icloud-schedule-controls { justify-content: space-between; } .icloud-date { min-height: 63px; gap: 4px; padding: 5px 0; } .icloud-date-number { height: 27px; width: 27px; font-size: 13px; } .icloud-date-marks i { height: 5px; } .icloud-month-weekdays span { font-size: 10px; padding: 10px 0; } .icloud-list-event > summary { gap: 8px; padding: 11px 8px; } }
@media (max-width: 480px) { .icloud-appointment-times { padding: 12px; } .icloud-time-fields { grid-template-columns: 1fr; gap: 8px; } .icloud-time-presets span { width: 100%; } }
.command-tech-card .command-tech-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.command-tech-card .command-tech-actions button { border: 1px solid #adcdb9; background: white; border-radius: 8px; padding: 7px 12px; color: #165c39; font: inherit; font-weight: 700; cursor: pointer; }
.command-tech-card .command-tech-job { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.command-tech-card .command-tech-job + .command-tech-job { padding-top: 8px; border-top: 1px solid #d8e9df; }
.command-tech-card .command-tech-job strong { flex-basis: 100%; color: #173824; font-size: 12px; }

/* Available in the Home Screen app even when browser controls are hidden. */
.ppi-refresh-top { display: none; flex: 0 0 auto; min-height: 44px; padding: 9px 12px; border: 1px solid #67bc83; border-radius: 10px; background: #173a27; color: #effff3; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
body:has(#inspectionView:not([hidden])) .ppi-refresh-top { display: inline-flex; align-items: center; justify-content: center; }
.ppi-refresh-top:disabled { opacity: .65; cursor: wait; }
.ppi-refresh-top:focus-visible { outline: 3px solid #43df75; outline-offset: 3px; }

/* Independent section heights; optional stacked, full-width work panels. */
#homebaseView .command-grid { align-items: start; }
#homebaseView .command-grid.command-grid-stacked { grid-template-columns: minmax(0,1fr); }
.command-tile-size { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 14px; border-bottom: 1px solid #dfeae2; background: #f5faf7; }
.command-tile-size > span { margin-right: 4px; color: #52705d; font-size: 11px; font-weight: 800; }
.command-tile-size button { min-height: 36px; padding: 6px 11px; border: 1px solid #c4d9cb; border-radius: 8px; background: #fff; color: #176936; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.command-tile-size button:hover:not(:disabled) { border-color: #18964a; background: #e9f8ee; }
.command-tile-size button:focus-visible { outline: 3px solid #48bb70; outline-offset: 2px; }
.command-tile-size button:disabled { opacity: .45; cursor: default; }
.command-tile-size button[aria-pressed="true"] { background: #deefe4; border-color: #65a77e; }
.command-panel.is-collapsed .command-tile-size { display: none; }
@media (max-width: 760px) {
  .command-tile-size { gap: 6px; padding: 8px 10px; }
  .command-tile-size button { min-height: 44px; padding: 8px 10px; }
  .command-tile-size button[aria-pressed] { display: none; }
}
.homebase-phone-alerts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eff8f0;border:1px solid #bcdcc4;border-radius:14px;padding:14px 18px;margin:0 0 16px;color:#173c26}.homebase-phone-alerts>div{display:grid;gap:3px;flex:1;min-width:180px}.homebase-phone-alerts b{font-size:16px}.homebase-phone-alerts small{font-size:14px;color:#405f48}.homebase-phone-alerts button{border:1px solid #19733e;border-radius:9px;padding:10px 14px;background:#14713d;color:white;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.homebase-phone-alerts button+button{background:white;color:#17693b}.homebase-phone-alerts button[hidden]{display:none}.homebase-phone-alerts button:disabled{opacity:.55;cursor:wait}
.homebase-notifications-content{padding:30px 34px 55px;min-width:0;width:100%;max-width:1180px}.homebase-notifications-content[hidden]{display:none}.homebase-notifications-content .dashboard-heading{margin-bottom:20px}.homebase-notifications-card{margin-bottom:16px;border:1px solid #dce8df;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,40,24,.035)}.homebase-notifications-title{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border-bottom:1px solid #e5eee7}.homebase-notifications-title span{font-size:11px;letter-spacing:.1em;font-weight:900;color:#187245}.homebase-notifications-title h2{margin:4px 0 0;font-size:20px;color:#173324}.homebase-notifications-title a{color:#126b39;font-weight:750}.homebase-notifications-card .homebase-phone-alerts{margin:18px 20px 10px}.homebase-notifications-hint{margin:0 20px 19px;color:#586b5f;font-size:13px}.homebase-notification-row{display:flex;align-items:center;gap:12px;padding:15px 20px;border-top:1px solid #eaf0eb;color:#193b27;text-decoration:none}.homebase-notification-row:hover{background:#f5faf6}.homebase-notification-row>span:nth-child(2){display:grid;gap:4px;flex:1}.homebase-notification-row small{color:#65746b}.homebase-notification-new{padding:5px 7px;border-radius:7px;color:#fff;background:#168346;font-size:10px;font-weight:950}.homebase-notification-empty{margin:0;padding:24px 20px;color:#5e7265}
.homebase-notifications-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.homebase-notifications-actions [hidden]{display:none}
.command-battery-overview{margin:0 0 15px}.command-battery-overview .command-panel-heading p{margin:5px 0 0;color:#667a6c;font-size:12px;overflow-wrap:anywhere}.command-battery-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.command-battery-actions button{min-height:38px;padding:8px 12px;border:1px solid #b9d8c4;border-radius:9px;color:#17673a;background:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.command-battery-actions button:last-child{background:#176f3b;color:#fff;border-color:#176f3b}.command-battery-actions button:disabled{opacity:.55;cursor:wait}.command-battery-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid #e5eee7}.command-battery-metrics>div{padding:13px 20px;display:grid;gap:4px}.command-battery-metrics>div+div{border-left:1px solid #e5eee7}.command-battery-metrics small{color:#597264;font-weight:700}.command-battery-metrics strong{font-size:25px;color:#156535}.command-battery-metrics>div:not(:first-child) strong{color:#9a4431}.command-battery-updates{display:flex;gap:10px 24px;flex-wrap:wrap;padding:13px 20px}.command-battery-updates p{margin:0;color:#425a4a;font-size:13px;font-weight:600}
.command-battery-returns{padding:16px 20px;border-bottom:1px solid #e5eee7;background:#f9fcfa}.command-battery-returns-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.command-battery-returns-heading>div{display:grid;gap:2px}.command-battery-returns-heading b{font-size:15px;color:#1b3d2a}.command-battery-returns-heading small{font-size:12px;color:#617466}.command-battery-van-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.command-battery-van{min-width:0;border:1px solid #d5e4d9;border-radius:11px;background:#fff;overflow:hidden}.command-battery-van-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#eef7f0;border-bottom:1px solid #e2ece4}.command-battery-van-title b{font-size:13px;color:#175b32}.command-battery-van-title small{font-size:11px;color:#506a58;text-align:right}.command-battery-van-kinds{display:grid;gap:9px;padding:11px 12px}.command-battery-return-kind{display:grid;gap:3px;font-size:12px}.command-battery-return-kind b{color:#9b4a30}.command-battery-return-kind span{color:#384c3e;line-height:1.4;overflow-wrap:anywhere}.command-battery-return-kind.pickup b{color:#98630c}.command-battery-returns-clear{grid-column:1/-1;margin:0;padding:12px;border-radius:9px;background:#eef8f0;color:#236a3d;font-size:13px}.command-battery-homebase{margin:12px 0 0;font-size:12px;color:#597366}
@media(max-width:1100px){.command-battery-van-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.homebase-notifications-content{padding:18px 14px 40px}.homebase-notifications-title{align-items:flex-start;flex-direction:column}.command-battery-overview .command-panel-heading{align-items:stretch;flex-direction:column}.command-battery-actions{justify-content:flex-start}.command-battery-metrics>div{padding:12px 9px}.command-battery-metrics strong{font-size:21px}.command-battery-updates{padding:12px 14px}}
@media(max-width:620px){.command-battery-returns{padding:13px 12px}.command-battery-van-list{grid-template-columns:minmax(0,1fr)}.command-battery-van-title{align-items:flex-start;flex-direction:column;gap:2px}.command-battery-van-title small{text-align:left}}
.tech-phone-alerts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #bcdcc4;background:#eff8f0;border-radius:14px;padding:14px 18px;margin:0 0 16px;color:#173c26}.tech-phone-alerts[hidden],.tech-phone-alerts button[hidden]{display:none}.tech-phone-alerts>div{display:grid;gap:3px;flex:1;min-width:180px}.tech-phone-alerts b{font-size:16px}.tech-phone-alerts small{font-size:14px;color:#405f48}.tech-phone-alerts button{border:1px solid #19733e;border-radius:9px;background:#14713d;color:white;padding:10px 14px;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.tech-phone-alerts button+button{background:white;color:#17693b}.tech-phone-alerts button:disabled{opacity:.55}

.command-battery-van.has-updates{border-color:#e89aa1;box-shadow:0 0 0 2px rgba(203,46,58,.09)}
.command-battery-van.has-updates .command-battery-van-title{background:#fff0f1}
.command-battery-van.has-updates .command-battery-van-title small{color:#ae2631;font-weight:850}
.command-battery-urgent:not([hidden]){margin:0 0 14px;padding:18px;border:3px solid #b7192a;border-radius:14px;background:#fff0f1;color:#74202b;box-shadow:0 8px 26px #8f1a2b23}
.command-battery-urgent>strong{display:block;color:#a71224;font-size:clamp(18px,2.5vw,23px);font-weight:950;letter-spacing:.02em}
.command-battery-urgent p{margin:7px 0 12px;font-size:14px;line-height:1.4}
.command-battery-urgent>div{display:flex;flex-wrap:wrap;gap:9px}
.command-battery-urgent button{display:grid;gap:3px;text-align:left;max-width:100%;min-height:54px;padding:9px 12px;border:1px solid #bc4552;border-radius:9px;background:#fff;color:#8e1625;font:inherit;cursor:pointer}
.command-battery-urgent button b{font-size:15px}.command-battery-urgent button span{font-size:12px;line-height:1.35}
.command-battery-van-warning{display:grid;gap:4px;padding:12px;border:2px solid #bb2534;border-radius:10px;background:#fff0f2;color:#8d1829;font-size:13px;line-height:1.4}
.command-battery-van-warning b{font-size:16px}
.battery-date-code-alert:not([hidden]),.command-van-date-code-alert{display:grid;gap:8px;padding:12px;border:2px solid #b52535;border-radius:10px;background:#fff0f1;color:#8f1827;line-height:1.4;margin:8px 0;min-width:0}
.battery-date-code-alert[hidden]{display:none}
.battery-date-code-alert p{margin:0;color:#772633;font-size:13px}
.battery-date-code-alert>div{display:flex;flex-wrap:wrap;gap:7px}
.battery-date-code-alert button,.command-van-date-code-alert button{min-height:40px;white-space:normal;text-align:left;border:1px solid #b52535;border-radius:8px;padding:8px 11px;background:#fff;color:#8f1827;font:inherit;font-weight:800;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.battery-date-code-alert button:focus-visible,.command-van-date-code-alert button:focus-visible{outline:3px solid #a51c2c;outline-offset:3px}
.command-van-date-code-alert{font-size:13px;grid-column:1/-1}
.command-van-date-code-alert span{overflow-wrap:anywhere}
.battery-date-code-note{display:block;color:#a21c2d;font-size:12px;font-weight:800;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.battery-inventory-row.missing-date{border:1px solid #c42a3b;background:#fff3f4;border-radius:7px;padding:9px}
.command-battery-van.has-updates{border-color:#c52b3a;box-shadow:0 0 0 2px #c52b3a18}
.command-battery-van-title{cursor:pointer;list-style:none}
.command-battery-van-title::-webkit-details-marker{display:none}
.command-battery-van-title::after{content:"⌄";flex:0 0 auto;font-size:19px;font-weight:800;line-height:1;color:#24653f;transition:transform .15s ease}
.command-battery-van[open]>.command-battery-van-title::after{transform:rotate(180deg)}
.command-battery-van:not([open])>.command-battery-van-title{border-bottom:0}
.command-battery-van-title:focus-visible{outline:3px solid #1ca85a;outline-offset:-3px}
.command-layout-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 13px; margin:0 0 12px; border:1px solid #cbded1; border-radius:11px; background:#f5faf6; color:#18442b; }
.command-layout-toolbar > span:first-child { display:grid; gap:2px; margin-right:auto; font-size:14px; font-weight:850; }
.command-layout-toolbar small { font-size:12px; font-weight:550; color:#5a7060; }
.command-layout-toolbar button { min-height:40px; border:1px solid #197243; border-radius:8px; background:white; color:#17663a; padding:8px 13px; font:inherit; font-weight:800; cursor:pointer; }
.command-layout-toolbar button[aria-pressed="true"] { background:#176b3d; color:white; }
.command-layout-toolbar [data-layout-status] { flex:1 1 100%; min-height:16px; color:#486950; font-size:12px; }
#homebaseView .command-dashboard-tiles { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr); gap:14px; align-items:start; }
#homebaseView .command-dashboard-tiles > * { grid-column:1/-1; min-width:0; margin:0; }
#homebaseView .command-dashboard-tiles > .command-priority-panel:has(+ .command-today-panel),
#homebaseView .command-dashboard-tiles > .command-today-panel:has(+ .command-priority-panel),
#homebaseView .command-dashboard-tiles > .command-priority-panel + .command-today-panel,
#homebaseView .command-dashboard-tiles > .command-today-panel + .command-priority-panel { grid-column:span 1; }
#homebaseView .command-dashboard-tiles.command-grid-stacked > .command-priority-panel,
#homebaseView .command-dashboard-tiles.command-grid-stacked > .command-today-panel { grid-column:1/-1; }
.command-layout-handle { display:none; z-index:4; flex:0 0 auto; border:1px solid #86b498; border-radius:7px; background:#fff; color:#17683e; padding:6px 8px; font:inherit; font-size:12px; font-weight:800; cursor:grab; touch-action:none; }
.command-layout-handle:active { cursor:grabbing; }
.command-layout-arranging .command-layout-handle { display:inline-flex; align-items:center; }
.command-layout-arranging [data-layout-scope] { outline:1px dashed #97bea3; outline-offset:-3px; }
.command-layout-arranging [data-layout-scope].command-layout-over { outline:3px solid #198849; outline-offset:-3px; background-color:#f0faef; }
.command-layout-arranging [data-layout-scope].command-layout-dragging { opacity:.5; }
.command-layout-arranging .command-layout-clickable { position:relative; touch-action:none; cursor:grab; }
.command-layout-arranging .command-layout-clickable::before { content:'⠿ Move'; position:absolute; z-index:4; top:4px; right:4px; border:1px solid #90bca1; border-radius:6px; padding:3px 5px; background:white; color:#17683e; font-size:11px; font-weight:800; }
.command-layout-arranging .command-tool-arrow { visibility:hidden; }
.command-dashboard-tiles > [data-layout-scope] { position:relative; }
.command-layout-arranging .command-dashboard-tiles > [data-layout-scope] > .command-panel-heading,
.command-layout-arranging .command-dashboard-tiles > [data-layout-scope] > .command-tools-heading { position:relative; padding-right:105px; }
.command-dashboard-tiles > [data-layout-scope] > .command-panel-heading > .command-layout-handle,
.command-dashboard-tiles > [data-layout-scope] > .command-tools-heading > .command-layout-handle { position:absolute; top:12px; right:12px; }
.command-dashboard-tiles > .command-tech-access > .command-tech-access-copy > .command-layout-handle,
.command-dashboard-tiles > .command-summary > .command-layout-handle { position:absolute; top:9px; right:9px; }
.command-layout-arranging .command-live-van-card,
.command-layout-arranging .command-van-row,
.command-layout-arranging .command-battery-van,
.command-layout-arranging .command-field-job,
.command-layout-arranging .command-van-group,
.command-layout-arranging .command-priority-row,
.command-layout-arranging .command-today-row,
.command-layout-arranging .command-tech-card,
.command-layout-arranging .command-completed-row { position:relative; }
.command-live-van-card > header > .command-layout-handle { margin-left:6px; }
.command-layout-arranging .command-van-row > .command-layout-handle,
.command-layout-arranging .command-battery-van > .command-layout-handle,
.command-layout-arranging .command-field-job > .command-layout-handle,
.command-layout-arranging .command-van-group > .command-layout-handle,
.command-layout-arranging .command-priority-row > .command-layout-handle,
.command-layout-arranging .command-today-row > .command-layout-handle,
.command-layout-arranging .command-tech-card > .command-layout-handle,
.command-layout-arranging .command-completed-row > .command-layout-handle { position:absolute; top:7px; right:7px; }
.command-layout-arranging .command-van-row { padding-top:36px; }
.command-layout-arranging .command-van-row > .command-layout-handle { top:3px; left:6px; right:auto; }
.command-layout-arranging .command-van-row > .command-van-appointment-detail > summary,
.command-layout-arranging .command-battery-van > summary,
.command-layout-arranging .command-field-job > summary,
.command-layout-arranging .command-van-group > summary { padding-right:90px; }
@media(max-width:1060px) { #homebaseView .command-dashboard-tiles { grid-template-columns:minmax(0,1fr); } #homebaseView .command-dashboard-tiles > .command-priority-panel,#homebaseView .command-dashboard-tiles > .command-today-panel { grid-column:1/-1; } }
@media(max-width:600px) { .command-layout-toolbar { gap:8px; } .command-layout-toolbar > span:first-child { flex:1 1 100%; } .command-live-van-card > header > .command-layout-handle { font-size:11px; padding:5px; } }
.command-battery-stock{display:grid;gap:0;border:1px solid #dce9df;border-radius:10px;overflow:hidden;background:#fff}
.command-battery-stock>b{padding:9px 10px;background:#edf7ef;color:#175b32;font-size:13px}
.command-battery-stock-row{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-top:1px solid #edf2ee;font-size:13px}
.command-battery-stock-row b{color:#193d28}.command-battery-stock-row span{color:#536c5a;text-align:right}
.command-battery-stock-empty{margin:0;padding:10px;color:#596e5f;font-size:13px}
.command-battery-stock-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 9px;background:#edf7ef;color:#175b32}
.command-battery-stock-heading b{font-size:13px}
.command-battery-quick-toggle{border:1px solid #a7d4b4;border-radius:7px;background:#fff;color:#146838;padding:6px 8px;font:inherit;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.command-battery-stock-row.selectable{width:100%;border:0;border-top:1px solid #edf2ee;text-align:left;font:inherit;background:#fff;cursor:pointer}
.command-battery-stock-row.selectable:hover,.command-battery-stock-row.selectable.selected{background:#e9f8ee}
.command-battery-stock-row.selectable:focus-visible,.command-battery-quick-toggle:focus-visible{outline:3px solid #19a953;outline-offset:-3px}
.command-battery-quick-editor{padding:12px;border:1px solid #bfdcc7;border-radius:11px;background:#fbfefb;display:grid;gap:11px}
.command-battery-quick-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.command-battery-quick-title b{font-size:17px;color:#153d26}
.command-battery-quick-title span,.command-battery-quick-editor>small{font-size:12px;color:#617867}
.command-battery-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.command-battery-quick-cell{min-width:0;border:1px solid #d5e9dc;border-radius:9px;background:#eff9f2;text-align:center;padding:7px 5px}
.command-battery-quick-cell.cores{border-color:#f1d4d7;background:#fff0f1}
.command-battery-quick-cell.warranty{border-color:#eed6e0;background:#fff1f5}
.command-battery-quick-cell.rotate{border-color:#e4d3f0;background:#f8f0ff}
.command-battery-quick-cell>span{display:block;color:#435b49;font-size:12px;font-weight:800}
.command-battery-quick-cell output{display:block;padding:5px;font-size:20px;font-weight:850;color:#183e28}
.command-battery-quick-cell>div{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.command-battery-quick-cell button{min-height:39px;border:1px solid #cbded0;border-radius:7px;background:#fff;color:#126c38;font-size:22px;font-weight:750;cursor:pointer}
.command-battery-quick-cell.cores button{color:#ad293a;border-color:#efc9cf}
.command-battery-quick-cell.warranty button{color:#aa315c;border-color:#eecddd}
.command-battery-quick-cell.rotate button{color:#743eb1;border-color:#e2cdf2}
.command-battery-quick-cell button:focus-visible{outline:3px solid #186c3e}
.command-battery-quick-size-label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#235138}
.command-battery-quick-size-label select{width:100%;min-height:40px;padding:7px;border:1px solid #bcdac4;border-radius:8px;background:#fff;color:#183e28;font:inherit;font-size:14px}
.command-battery-quick-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px solid #dce9df}
.command-battery-quick-footer span{font-size:12px;color:#546e5a}
.command-battery-quick-footer button{border:1px solid #126638;border-radius:8px;background:#126638;color:#fff;padding:9px 12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.command-battery-quick-dialog{width:min(520px,calc(100vw - 28px));max-height:85vh;overflow:auto;padding:20px;border:1px solid #b7d9bf;border-radius:15px;background:#fff;color:#153523;box-shadow:0 20px 70px #0e291e66}
.command-battery-quick-dialog::backdrop{background:#0a221bb3}
.command-battery-quick-dialog h2{margin:0;font-size:22px}
.command-battery-quick-dialog p{margin:8px 0;color:#526a59;font-size:14px}
.command-battery-quick-dialog ul{padding:0;margin:16px 0;list-style:none}
.command-battery-quick-dialog li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e2ece5;font-size:14px}
.command-battery-quick-dialog label{display:block;font-weight:800;font-size:14px;margin-bottom:6px}
.command-battery-quick-dialog textarea{box-sizing:border-box;width:100%;min-height:76px;padding:10px;border:1px solid #bcd4c3;border-radius:8px;font:inherit;font-size:16px}
.command-battery-quick-dialog #commandBatteryQuickStatus{min-height:20px;color:#aa2838}
.command-battery-quick-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.command-battery-quick-dialog-actions button{min-height:42px;padding:8px 12px;border:1px solid #bcd4c3;border-radius:8px;background:#fff;color:#16452a;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.command-battery-quick-dialog-actions button:last-child{background:#126638;border-color:#126638;color:#fff}
.command-battery-quick-dialog-actions button:disabled{opacity:.55;cursor:default}
.command-battery-activity{border-top:1px solid #dbe8dc;padding-top:10px;display:grid;gap:8px}
.command-battery-activity>summary{cursor:pointer;color:#204632;font-size:13px;font-weight:850;list-style:revert}
.command-battery-activity>summary:focus-visible{outline:3px solid #1ca85a;outline-offset:3px}
.command-battery-activity-list{display:grid;gap:8px}
.command-battery-no-updates{color:#6b7d70;font-size:13px}
.command-battery-update{border:1px solid #e0e8e1;border-radius:9px;padding:10px;display:grid;gap:8px;min-width:0;background:#f7faf8}
.command-battery-update.new{border-color:#eea8af;background:#fff2f3}
.command-battery-update>div:first-child{display:grid;gap:4px;min-width:0}
.command-battery-update b{color:#ba2635;font-size:13px}
.command-battery-update.seen b{color:#51715a}
.command-battery-update span,.command-battery-update small{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.command-battery-update small{color:#607367}
.command-battery-update-actions{display:flex;gap:8px;flex-wrap:wrap}
.command-battery-update-actions a,.command-battery-update-actions button,.command-battery-review-alert button{border:1px solid #c7737d;border-radius:8px;padding:7px 10px;background:#fff;color:#a91f2e;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-decoration:none}
.command-battery-history summary{cursor:pointer;font-weight:750;font-size:13px;color:#385d42;margin:7px 0}
.command-battery-history .command-battery-update{margin-top:8px}
.battery-pickup-inline-review{margin-top:7px;border:1px solid #bb3150;border-radius:8px;padding:7px 11px;background:#fff;color:#a41e3b;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-align:left}
.battery-pickup-detail-dialog{border:1px solid #d3e0d8;border-radius:20px;padding:0;width:min(560px,calc(100vw - 26px));max-height:min(86vh,850px);box-shadow:0 24px 90px #061e1b75;background:#fff;color:#1a2e24}
.battery-pickup-detail-dialog::backdrop{background:#081c18a8}
.battery-pickup-detail-head{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#10281e;color:#86efac;padding:17px 20px;font-size:13px;letter-spacing:.07em}
.battery-pickup-detail-head button{border:0;background:#264837;color:#fff;border-radius:50%;width:36px;height:36px;font-size:26px;cursor:pointer}
.battery-pickup-detail-body{padding:20px;overflow-y:auto;max-height:calc(86vh - 72px)}
.battery-pickup-detail-body h2{margin:0 0 12px;font-size:25px;color:#162d21}
.battery-pickup-detail-body p{margin:8px 0;line-height:1.55}
.battery-pickup-detail-photo{margin:18px 0;border-radius:13px;overflow:hidden;border:1px solid #dee9e0;background:#f2f7f3}
.battery-pickup-detail-photo a{display:grid;gap:9px;padding:10px;color:#185b37;font-weight:800;text-align:center}
.battery-pickup-detail-photo img{width:100%;height:auto;max-height:50vh;object-fit:contain;border-radius:9px}
.battery-pickup-photo-empty{padding:23px;color:#713b3b}
.battery-pickup-review-note{font-size:13px;color:#52675a}
.battery-pickup-plugin-link{display:inline-block;margin:13px 0 2px;background:#1b7d43;color:#fff;border-radius:10px;padding:11px 16px;font-weight:800;text-decoration:none}
.battery-tech-inventory-unit{display:grid;gap:6px;min-width:0}
.battery-tech-inventory-unit .battery-tech-tile{width:100%}
.battery-tech-return-action,.battery-tech-return-prompt a{display:block;border:1px solid #ef755d;border-radius:11px;padding:10px 12px;background:#3c261f;color:#fff;text-decoration:none;font-size:13px;font-weight:850;line-height:1.35}
.battery-tech-return-action:focus-visible,.battery-tech-return-prompt a:focus-visible{outline:3px solid #ffbd87;outline-offset:2px}
.battery-tech-return-prompt{display:grid;gap:10px;margin:14px 0;padding:16px;border:1px solid #f68669;border-radius:14px;background:#43231e;color:#fff}
.battery-tech-return-prompt strong{font-size:17px;color:#ffd1a5}
.battery-tech-return-prompt span{font-size:13px;line-height:1.5}
.battery-tech-return-prompt a{width:max-content;max-width:100%;background:#a53c24}
.command-battery-transfer-hint{padding:10px 12px;border:1px solid #f0c19f;border-radius:10px;background:#fff7ed;color:#733f23;font-size:12px;font-weight:650;line-height:1.5}
.command-battery-transfer-hint a{color:#9d3726;font-weight:900}
.command-battery-review-alert{border:1px solid #e99da4;background:#fff1f2;border-radius:9px;padding:10px;display:grid;gap:6px;font-size:13px;color:#762730}
.command-battery-review-alert>b{color:#ad2631}
.command-alert-dock { position: fixed; z-index: 60; left: 254px; bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 270px)); margin: 0; border: 2px solid #9b1725; border-radius: 16px; background: #fff; color: #1c2d23; box-shadow: 0 16px 40px #32101255; overflow: hidden; }
.command-battery-van-title { flex-wrap: wrap; }
.command-battery-van-title small { flex: 1 1 135px; text-align: left; font-size: 12px; }
.command-handoff-launch { min-height: 36px; padding: 7px 10px; border: 1px solid #236c43; border-radius: 8px; background: #fff; color: #175b34; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.command-handoff-launch.ready { border-color: #a82431; background: #b71f2e; color: #fff; }
.command-handoff-launch:focus-visible { outline: 3px solid #ebbd4b; outline-offset: 2px; }
.command-handoff-dialog { width: min(750px, calc(100vw - 24px)); max-height: min(91vh, 900px); padding: 0; border: 1px solid #cadecf; border-radius: 18px; background: #f7faf8; color: #1b3023; box-shadow: 0 25px 70px #061e1b75; }
.command-handoff-dialog::backdrop { background: #081b17a8; }
.command-handoff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; background: #10281e; color: #fff; }
.command-handoff-head span { color: #7be49e; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.command-handoff-head h2 { margin: 3px 0 0; color: #fff; font-size: 25px; }
.command-handoff-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #315741; color: #fff; font-size: 26px; cursor: pointer; }
.command-handoff-body { max-height: calc(91vh - 85px); overflow-y: auto; padding: 18px; }
.command-handoff-instruction { margin: 0 0 13px; font-size: 14px; line-height: 1.5; color: #4e6556; }
.command-handoff-overview { padding: 17px 18px; margin-bottom: 14px; border: 1px solid #ccded2; border-radius: 12px; background: #fff; }
.command-handoff-overview h3 { margin: 6px 0; font-size: 21px; color: #163e2c; }
.command-handoff-overview p { margin: 7px 0 13px; color: #4e6556; line-height: 1.5; font-size: 14px; }
.command-handoff-kind { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 850; letter-spacing: .09em; color: #466653; }
.command-handoff-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.command-handoff-counts span { border-radius: 6px; padding: 6px 10px; background: #edf5ef; color: #294c38; font-size: 13px; }
.command-handoff-corrected { display: grid; gap: 4px; padding: 12px 15px; border-left: 4px solid #35734e; border-radius: 6px; background: #e4f2e9; font-size: 14px; color: #204e32; }
.command-handoff-corrected span { font-size: 13px; }
.command-handoff-movement { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 12px; margin: 15px 0; padding: 12px; border: 1px solid #e0e9e3; border-radius: 8px; background: #f6f9f7; }
.command-handoff-movement div { display: grid; gap: 4px; min-width: 0; }
.command-handoff-movement div > span { font-size: 10px; letter-spacing: .08em; color: #63776a; font-weight: 800; }
.command-handoff-movement b { font-size: 14px; overflow-wrap: anywhere; }
.command-handoff-arrow { color: #687c6e; font-size: 21px; }
.command-handoff-next { display: grid; gap: 5px; padding: 12px; margin-top: 12px; border-radius: 8px; background: #f1f6f3; color: #244534; font-size: 14px; line-height: 1.5; }
.command-handoff-next > b { font-size: 12px; }
.command-handoff-next small { margin: 3px 0 0; }
.command-handoff-row.handoff-pickup:not(.ready) { border-left-color: #327b9b; }
.command-handoff-row.handoff-warranty:not(.ready) { border-left-color: #8c609c; }
.handoff-warranty .command-handoff-kind { color: #704585; }
.command-handoff-classification { padding: 9px 12px; background: #f6f0f9; border-radius: 7px; color: #613d71; }
.command-handoff-alternative { flex-basis: 100%; }
.command-handoff-section { margin: 0 0 14px; padding: 12px; border: 1px solid #d7e5da; border-radius: 12px; background: #edf5ef; }
.command-handoff-section > h3, .command-handoff-section > summary { margin: 0 0 10px; color: #1a4c2e; font-size: 16px; font-weight: 850; }
.command-handoff-section > summary { cursor: pointer; margin-bottom: 0; }
.command-handoff-section[open] > summary { margin-bottom: 10px; }
.command-handoff-list { display: grid; gap: 11px; }
.command-handoff-row { padding: 15px; border: 1px solid #dbe8de; border-left: 5px solid #b3c2b8; border-radius: 12px; background: #fff; }
.command-handoff-row.ready { border-left-color: #b71f2e; }
.command-handoff-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.command-handoff-row-head b { font-size: 18px; }
.command-handoff-row-head strong { padding: 4px 8px; border-radius: 6px; background: #e9f3eb; color: #27603a; font-size: 13px; white-space: nowrap; }
.command-handoff-row.ready .command-handoff-row-head strong { background: #ffe6e9; color: #a51d2b; }
.command-handoff-row p { margin: 8px 0; line-height: 1.45; font-size: 15px; }
.command-handoff-row small { display: block; margin: 5px 0; color: #617468; font-size: 13px; }
.command-handoff-row img { display: block; width: 100%; max-height: 230px; object-fit: contain; margin: 10px 0; border-radius: 9px; background: #edf3ed; }
.command-handoff-row img[data-handoff-proof] { cursor: zoom-in; }
.command-handoff-row img[data-handoff-proof]:focus-visible { outline: 3px solid #148647; outline-offset: 3px; }
.command-photo-zoom { min-height: 38px; padding: 5px 11px; border: 1px solid #8ab79a; border-radius: 8px; background: #f3faf4; color: #145d35; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.battery-photo-check { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 9px 11px; border-radius: 8px; background: #edf3f0; color: #30483a; font-size: 14px; font-weight: 700; line-height: 1.4; }
.battery-photo-check[data-result="match"] { background: #e2f5e9; color: #165d36; }
.battery-photo-check[data-result="mismatch"] { background: #fff0e9; color: #933317; }
.battery-photo-check button { padding: 7px 10px; border: 1px solid currentColor; border-radius: 7px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.battery-photo-check button[hidden] { display: none; }
.battery-photo-viewer { width: min(96vw, 1200px); height: min(94dvh, 1000px); max-width: none; max-height: none; padding: 0; border: 1px solid #729080; border-radius: 14px; background: #f4f8f5; color: #173622; box-shadow: 0 24px 80px #071b14a8; }
.battery-photo-viewer[open] { display: flex; flex-direction: column; }
.battery-photo-viewer::backdrop { background: #04120fe0; }
.battery-photo-viewer header, .battery-photo-viewer-tools { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.battery-photo-viewer header { justify-content: space-between; background: #10281e; color: #fff; }
.battery-photo-viewer button, .battery-photo-viewer-tools a { min-height: 40px; padding: 7px 12px; border: 1px solid #8ab79a; border-radius: 8px; background: #fff; color: #145d35; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.battery-photo-viewer header button { border: 0; background: #315741; color: #fff; font-size: 23px; }
.battery-photo-viewer-tools { flex-wrap: wrap; }
.battery-photo-viewer-viewport { flex: 1; min-height: 0; overflow: auto; padding: 10px; background: #1b2c22; text-align: center; }
.battery-photo-viewer-frame { position: relative; margin: auto; }
.battery-photo-viewer-frame img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: contain; }
.battery-photo-viewer p { margin: 0; padding: 8px 14px; font-size: 13px; }
.command-handoff-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.command-handoff-actions:empty { display: none; }
.command-handoff-actions button { min-height: 43px; padding: 9px 14px; border: 1px solid #15673a; border-radius: 8px; background: #176d3e; color: #fff; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; }
.command-handoff-actions button.secondary { background: #fff; color: #9d2633; border-color: #c9868e; }
.command-handoff-actions button:disabled { opacity: .52; cursor: wait; }
.command-handoff-actions button[hidden] { display: none; }
.command-handoff-attestation { width: 100%; padding: 12px; border: 2px solid #176d3e; border-radius: 9px; background: #eef8f0; }
.command-handoff-attestation b,.command-handoff-attestation small { display: block; margin-bottom: 8px; }
.command-handoff-attestation label { display:block; margin:9px 0; font-weight:750; }
.command-handoff-attestation input[type=text] { display:block; width:100%; margin-top:5px; padding:10px; border:1px solid #9bbb9f; border-radius:8px; font:inherit; }
.command-handoff-attestation .battery-date-confirm { display:flex; align-items:center; gap:8px; }
.command-handoff-attestation div { display: flex; flex-wrap: wrap; gap: 8px; }
.command-handoff-inline-error { margin: 10px 0 0; padding: 10px; border-radius: 8px; background: #fff0ee; color: #9d2633; font-weight: 750; }
.command-handoff-empty,.command-handoff-other,.command-handoff-status { margin: 10px 0 0; font-size: 14px; color: #526b59; }
.command-handoff-status:not(:empty) { padding: 10px; border-radius: 8px; background: #fff1d8; color: #66450b; }
@media(max-width:620px) { .command-handoff-body { padding: 12px; } .command-handoff-row-head { flex-direction: column; } .command-handoff-row-head strong { white-space: normal; } .command-handoff-actions button { flex: 1 1 100%; } }
.command-alert-dock[hidden] { display: none; }
.command-alert-dock > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 17px; background: #b71f2e; color: #fff; cursor: pointer; list-style: none; }
.command-alert-dock > summary::-webkit-details-marker { display: none; }
.command-alert-dock > summary:focus-visible, .command-alert-dock button:focus-visible, .command-alert-dock a:focus-visible { outline: 3px solid #ffd575; outline-offset: -3px; }
.command-alert-dock > summary > span { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; letter-spacing: .025em; }
.command-alert-dock > summary b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 7px; border-radius: 999px; background: #fff; color: #a51827; font-size: 19px; letter-spacing: 0; }
.command-alert-dock > summary small { display: flex; align-items: center; gap: 7px; color: #ffe3e6; font-size: 14px; font-weight: 750; white-space: nowrap; }
.command-alert-dock:not([open]) > summary small span { transform: rotate(180deg); }
.command-alert-dock-body { padding: 11px; background: #fff8f8; }
.command-alert-dock-list { display: grid; gap: 9px; max-height: min(55vh, 510px); overflow-y: auto; overscroll-behavior: contain; }
.command-alert-item { padding: 13px; border: 1px solid #e1e8e2; border-left: 5px solid #81958a; border-radius: 10px; background: #fff; }
.command-alert-item.urgent { border-left-color: #b71f2e; }
.command-alert-item.review { border-left-color: #dc851f; }
.command-alert-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.command-alert-item-head strong { min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.command-alert-item-head span { flex: none; padding: 3px 6px; border-radius: 5px; background: #edf2ee; color: #345344; font-size: 12px; font-weight: 800; }
.command-alert-item.urgent .command-alert-item-head span { background: #ffe5e7; color: #9b1725; }
.command-alert-item.review .command-alert-item-head span { background: #fff0db; color: #895008; }
.command-alert-item p { margin: 7px 0 4px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.command-alert-item > small { color: #66796b; font-size: 12px; }
.command-alert-item-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.command-alert-item-actions a, .command-alert-item-actions button, #commandAlertMore { min-height: 38px; padding: 8px 12px; border-radius: 8px; border: 1px solid #cbd9ce; background: #fff; color: #185e36; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.command-alert-item-actions button { border-color: #b71f2e; color: #a51827; }
.command-alert-item-actions button:disabled, #commandAlertMore:disabled { opacity: .55; cursor: wait; }
#commandAlertMore { display: block; width: 100%; margin-top: 10px; }
#commandAlertMore[hidden], #commandAlertStatus[hidden] { display: none; }
#commandAlertStatus { margin: 8px 2px 2px; color: #a51827; font-size: 14px; }
@media (max-width: 1000px) { .command-alert-dock { left: 94px; width: min(420px, calc(100vw - 110px)); } }
@media (max-width: 760px) { .command-alert-dock { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); } .command-alert-dock-list { max-height: min(50vh, 440px); } }
@media (max-width: 380px) { .command-alert-dock > summary { padding: 10px 12px; } .command-alert-dock > summary > span { font-size: 16px; } .command-alert-dock > summary small { font-size: 12px; } }

/* Routine events stay within their van and topic; details remain available on demand. */
.command-alert-dock { width: min(330px, calc(100vw - 270px)); border-color: #ad3940; }
.command-alert-dock > summary { min-height: 48px; padding: 7px 12px; background: #173c2a; }
.command-alert-dock > summary > span { font-size: 15px; }
.command-alert-dock > summary b { min-width: 28px; height: 28px; font-size: 14px; color: #a51827; }
.command-alert-dock > summary small { font-size: 12px; }
.command-alert-group, .command-alert-topic { min-width: 0; border: 1px solid #dbe8dd; border-radius: 9px; background: #fff; }
.command-alert-group { border-left: 4px solid #899a8d; }
.command-alert-group.review, .command-alert-topic.review, .command-van-alerts.review { border-left-color: #d6841e; }
.command-alert-group.urgent, .command-alert-topic.urgent, .command-van-alerts.urgent { border-left-color: #b71f2e; }
.command-alert-group > summary, .command-alert-topic > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; cursor: pointer; list-style: none; }
.command-alert-group > summary::-webkit-details-marker, .command-alert-topic > summary::-webkit-details-marker, .command-van-alerts > summary::-webkit-details-marker { display: none; }
.command-alert-group > summary strong { font-size: 14px; color: #183d29; }
.command-alert-group > summary span, .command-alert-topic > summary span { color: #59705e; font-size: 12px; text-align: right; }
.command-alert-group > div, .command-alert-topic > div { display: grid; gap: 8px; padding: 0 8px 8px; }
.command-alert-group .command-alert-topic { border-left: 3px solid #8ba495; }
.command-alert-topic > summary strong { font-size: 13px; color: #244b32; }
.command-alert-item { padding: 9px 10px; }
.command-alert-item > strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.command-alert-item p { font-size: 12px; }
.command-van-alerts { margin: 8px 0 9px; border: 1px solid #d9e7db; border-left: 4px solid #8ba495; border-radius: 9px; background: #f3f9f4; }
.command-van-alerts > summary { display: grid; gap: 2px; padding: 9px 10px; cursor: pointer; list-style: none; }
.command-van-alerts > summary span { color: #9c2430; font-size: 12px; font-weight: 900; }
.command-van-alerts > summary strong { color: #1f4930; font-size: 13px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.command-van-alerts > summary small { color: #5f7364; font-size: 11px; }
.command-van-alerts > div { display: grid; gap: 7px; padding: 0 8px 8px; }
.command-van-alerts .command-alert-topic { border-left: 3px solid #9aac9c; }
.command-alert-extra-card { --van-color: #ad3940; }
@media (max-width: 1000px) { .command-alert-dock { width: min(330px, calc(100vw - 110px)); } }
@media (max-width: 760px) { .command-alert-dock { width: min(330px, calc(100vw - 24px)); } }

/* Keep the Command Center's writing and upload controls within a phone viewport. */
.command-heading .dashboard-actions { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.command-heading .dashboard-actions .button { min-width: 0; max-width: 100%; }
.command-heading .dashboard-actions .command-photo-launch > span:last-child { min-width: 0; }
.command-photo-launch strong, .command-photo-launch small { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
@media (max-width: 760px) {
  .command-heading .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #homebaseView .command-heading { min-width: 0; padding: 18px; }
  #homebaseView .command-heading .dashboard-actions { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  #homebaseView .command-heading .dashboard-actions .button { width: 100%; justify-content: flex-start; text-align: left; }
  #homebaseView .command-heading .dashboard-actions .command-photo-launch { min-height: 62px; }
  #homebaseView .command-heading .dashboard-actions .button:not(.command-photo-launch) { min-height: 46px; }
}

/* Shop-ready batteries are a separate, visible count from fleet and returns. */
.command-heading .dashboard-actions .command-inventory-text-control { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 10px; border: 1px solid #68ba82; border-radius: 11px; background: #173d29; }
.command-heading .dashboard-actions .command-inventory-text-launch { display: block; min-height: 28px; width: 100%; padding: 0; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.command-heading .dashboard-actions .command-inventory-text-launch:hover, .command-heading .dashboard-actions .command-inventory-text-launch:focus-visible { color: #85f3a7; text-decoration: underline; }
.command-inventory-text-control label { color: #a8e4b9; font-size: 11px; font-weight: 700; }
.command-inventory-text-control select { box-sizing: border-box; width: 100%; min-height: 27px; padding: 3px 7px; border: 1px solid #80bc91; border-radius: 6px; background: #fff; color: #153d25; font: inherit; font-size: 13px; }
.command-battery-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.command-battery-metrics > div { min-width: 0; }
.command-battery-metrics .command-battery-shop { background: #ebf9ef; }
.command-battery-metrics .command-battery-shop strong,
.command-battery-metrics > div:nth-child(2) strong { color: #156535; }
.command-summary .fleet .command-fleet-shop { color: #126339; font-weight: 850; white-space: normal; overflow: visible; text-overflow: clip; }
.battery-fleet-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.battery-fleet-metrics .battery-shop-metric { border-color: #9bd3ad; background: #eaf9ef; }
.battery-fleet-metrics .battery-shop-metric strong { color: #156535; }
.battery-shop-reference { margin-bottom: 10px; padding: 9px 11px; border: 1px solid #b6dec2; border-radius: 9px; background: #ecf9ef; color: #165c32; font-size: 12px; font-weight: 750; }
.battery-shop-reference b { font-size: 17px; }
@media (max-width: 760px) {
  .command-battery-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .command-battery-metrics > div { grid-column: span 2; border-top: 1px solid #e5eee7; }
  .command-battery-metrics > div:first-child,
  .command-battery-metrics > div:nth-child(2) { grid-column: span 3; border-top: 0; }
  .command-battery-metrics > div:nth-child(3) { border-left: 0; }
  .command-battery-metrics small { line-height: 1.25; }
  .battery-fleet-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .battery-fleet-metrics .battery-shop-metric { grid-column: 1 / -1; }
}

/* The arrange affordance belongs inside each small priority tile on phones. */
@media (max-width: 760px) {
  .command-layout-arranging .command-summary > button.command-layout-clickable {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 8px 10px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .command-layout-arranging .command-summary > button.command-layout-clickable::before {
    position: static;
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    width: auto;
    max-width: 100%;
    margin: 0;
    line-height: 1.2;
  }
  .command-layout-arranging .command-summary > button.command-layout-clickable > .command-summary-icon {
    grid-column: 1;
    grid-row: 2;
  }
  .command-layout-arranging .command-summary > button.command-layout-clickable > div {
    grid-column: 2;
    grid-row: 2;
  }
  .command-layout-arranging .command-summary > button.command-layout-clickable::after { display: none; }
}

/* This section handle is also a direct child of .command-summary. Exclude it
   from the priority-card button rules, which otherwise make it visible always. */
#homebaseView .command-dashboard-tiles > .command-summary > .command-layout-handle {
  display: none;
  min-height: 0;
  width: auto;
  padding: 6px 9px;
  gap: 0;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: none;
}
#homebaseView .command-dashboard-tiles > .command-summary > .command-layout-handle::after { content: none; }
#homebaseView .command-layout-arranging .command-dashboard-tiles > .command-summary { padding-top: 43px; }
#homebaseView .command-layout-arranging .command-dashboard-tiles > .command-summary > .command-layout-handle { display: inline-flex; }

.command-layout-move-dialog { width: min(380px, calc(100vw - 28px)); padding: 22px; border: 1px solid #9dc9aa; border-radius: 15px; background: #fff; color: #173b27; box-shadow: 0 20px 70px #071b1299; }
.command-layout-move-dialog::backdrop { background: #071b1299; }
.command-layout-move-dialog h2 { margin: 0 0 10px; font-size: 22px; }
.command-layout-move-dialog p { margin: 6px 0; color: #425c4b; }
.command-layout-move-dialog [data-layout-move-label] { font-size: 18px; font-weight: 850; color: #183e29; }
.command-layout-move-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.command-layout-move-actions button { min-height: 46px; padding: 9px 11px; border: 1px solid #8ebda0; border-radius: 9px; background: #eaf8ef; color: #145d32; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.command-layout-move-actions button:disabled { opacity: .4; cursor: default; }
.command-layout-move-actions [data-layout-move="close"] { grid-column: 1 / -1; background: #146b3a; color: #fff; }

.shop-count-text-dialog { box-sizing: border-box; width: min(570px, calc(100vw - 24px)); max-height: min(90dvh, 850px); padding: 20px; overflow: auto; border: 1px solid #a9cdb2; border-radius: 16px; background: #fff; color: #183a28; box-shadow: 0 24px 75px #071b1299; }
.shop-count-text-dialog::backdrop { background: #071b12b3; }
.shop-count-text-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.shop-count-text-dialog p { margin: 0 0 14px; color: #516b59; font-size: 14px; }
.shop-count-text-dialog label { display: block; margin: 12px 0 5px; font-weight: 800; font-size: 14px; }
.shop-count-text-dialog input, .shop-count-text-dialog select, .shop-count-text-dialog textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #bbd5c3; border-radius: 8px; background: #fff; color: #193927; font: inherit; font-size: 16px; }
.shop-count-text-dialog textarea { min-height: 230px; resize: vertical; line-height: 1.4; }
.shop-count-text-dialog small { display: block; margin-top: 5px; color: #56705d; }
.shop-count-text-dialog #shopCountTextStatus { min-height: 20px; margin: 10px 0; color: #22673c; }
.shop-count-text-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.shop-count-text-actions button { min-height: 44px; padding: 9px 12px; border: 1px solid #a9ceb5; border-radius: 9px; background: #fff; color: #155b33; font: inherit; font-weight: 800; cursor: pointer; }
.shop-count-text-actions [data-shop-count-send] { background: #176e3a; color: #fff; border-color: #176e3a; }
.shop-count-text-actions button:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) { .shop-count-text-dialog { padding: 16px; } .shop-count-text-actions button { flex: 1 1 auto; } .shop-count-text-actions [data-shop-count-send] { flex-basis: 100%; } }

/* Original, independent upload paths remain visible as a clearly scoped fallback. */
.app-sidebar .failsafe-heading{color:#f1c86b;margin-top:20px}
.app-sidebar .failsafe-nav{min-height:55px;border:1px solid rgba(241,200,107,.28);background:rgba(241,200,107,.06);color:#f5e4b9}
.app-sidebar .failsafe-nav:hover,.app-sidebar .failsafe-nav.is-dragging{background:rgba(241,200,107,.17);border-color:#f1c86b}
.app-sidebar .failsafe-copy{display:grid;gap:2px;text-align:left;color:inherit}
.app-sidebar .failsafe-copy b{font-size:12px;line-height:1.2}
.app-sidebar .failsafe-copy small{font-size:10px;line-height:1.25;color:#b9c9ba;font-weight:600}
@media(max-width:760px){.app-sidebar .failsafe-nav{min-width:145px}.app-sidebar .failsafe-heading{align-self:center;white-space:nowrap}}

/* Outstanding battery transactions stay prominent on the Tech dashboard. */
.tech-battery-action-banner { background: #fff0f0; border: 3px solid #c82020; color: #9d1212; }
.tech-battery-action-banner b { color: #b51212; font-size: 20px; font-weight: 900; }
.tech-battery-action-banner button { background: #b51212; color: white; min-height: 52px; font-weight: 850; }
.battery-return-form { padding: 16px; border: 2px solid #c82020; border-radius: 12px; display: grid; gap: 12px; margin: 12px 0; }
.battery-return-form label { display: grid; gap: 6px; font-weight: 750; }
.battery-return-form input { max-width: 100%; min-height: 44px; }
.battery-return-form select { width: 100%; min-height: 48px; padding: 9px; border: 1px solid #b76767; border-radius: 8px; background: #fff; color: #30211f; font: inherit; }
.battery-paired-swap { background: #fff0f0; color: #8a1522; }
.battery-paired-swap p { margin: 0; line-height: 1.5; }
.battery-return-form button { background: #b51212; color: #fff; border: 0; border-radius: 9px; padding: 14px; font-weight: 850; }
.battery-form-photo-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; }
.battery-form-photo-buttons button { min-height:52px; font-size:16px; line-height:1.25; }
.battery-return-form [hidden] { display:none !important; }
.battery-return-form [role=status] { font-size:16px; font-weight:750; line-height:1.4; }
.battery-return-form input[type=checkbox] { width:26px; height:26px; min-height:26px; accent-color:#0e8c40; }
.battery-return-shortcut { min-height:48px; width:100%; padding:10px; border:1px solid #ffaaa3; border-radius:10px; background:#a91818; color:#fff; font-size:14px; font-weight:850; }
.battery-tech-homebase [data-battery-return-record] { scroll-margin-top:100px; }

.tech-battery-action-banner { cursor: pointer; }

/* Keep the current appointment action visible across Tech modules. */
.tech-step-panel { margin:0 0 20px; padding:20px; border:1px solid #e2bd72; border-left:5px solid #b87314; border-radius:17px; background:#fff3dc; color:#192e22; }
.tech-step-panel.is-urgent { background:#fff0ed; border-color:#d67c74; border-left-color:#b62327; }
.tech-step-kicker { color:#915a10; font-size:12px; font-weight:900; letter-spacing:.06em; }
.is-urgent .tech-step-kicker, .tech-departure-dialog .tech-step-kicker { color:#a82327; }
.tech-step-panel h2, .tech-departure-dialog h2 { margin:8px 0; font-size:25px; line-height:1.15; letter-spacing:-.5px; }
.tech-step-vehicle { display:block; font-size:17px; overflow-wrap:anywhere; }
.tech-step-panel p, .tech-departure-dialog p { margin:10px 0 16px; font-size:15px; line-height:1.5; }
.tech-step-actions { display:grid; gap:9px; max-width:600px; }
.tech-step-primary, .tech-step-secondary { min-height:48px; padding:12px 15px; border-radius:10px; border:1px solid #bbd1c2; font:inherit; font-weight:850; cursor:pointer; }
.tech-step-primary { background:#11763e; color:#fff; border-color:#11763e; }
.tech-step-secondary { background:#fff; color:#1d402c; }
.tech-step-primary:disabled, .tech-step-secondary:disabled { opacity:.55; cursor:wait; }
.tech-step-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.tech-step-progress { display:flex; justify-content:space-between; list-style:none; padding:0; margin:17px 0 14px; max-width:600px; gap:8px; }
.tech-step-progress li { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:750; color:#69716c; }
.tech-step-progress b { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#e3e8e1; }
.tech-step-progress .is-done { color:#11763e; }
.tech-step-progress .is-done b { background:#11763e; color:#fff; }
.tech-step-meta { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; color:#516458; font-size:12px; }
.tech-step-meta button { background:transparent; color:#116b38; border:0; padding:9px 0; min-height:36px; font:inherit; font-weight:850; cursor:pointer; }
.tech-step-dock { position:fixed; z-index:85; right:20px; bottom:calc(16px + env(safe-area-inset-bottom)); width:min(470px,calc(100% - 40px)); padding:12px 15px; border:2px solid #ceae68; border-radius:15px; background:#fff3dc; box-shadow:0 8px 35px #09241836; color:#192e22; display:flex; align-items:center; gap:14px; }
.tech-step-dock[hidden], .tech-step-panel[hidden] { display:none; }
.tech-step-dock.is-urgent { background:#fff0ed; border-color:#bc3e35; }
.tech-step-dock div { flex:1; min-width:0; }
.tech-step-dock b { display:block; font-size:11px; color:#915a10; }
.tech-step-dock.is-urgent b { color:#a82327; }
.tech-step-dock span { display:block; font-size:13px; font-weight:750; overflow-wrap:anywhere; margin-top:4px; }
.tech-step-dock button { background:#11763e; color:#fff; border:0; border-radius:10px; padding:12px; min-height:48px; max-width:180px; font:inherit; font-size:13px; font-weight:850; cursor:pointer; }
.has-tech-step-dock .app-shell { padding-bottom:130px; }
.tech-departure-dialog { width:min(420px,calc(100% - 28px)); border:2px solid #c44a41; border-radius:20px; padding:23px; background:#fff5f2; color:#192e22; box-shadow:0 20px 70px #0005; }
.tech-departure-dialog::backdrop { background:#061b15b3; }
.tech-departure-dialog button { width:100%; margin:0 0 10px; }
@media(max-width:600px) {
  .tech-step-panel { padding:17px 14px; }
  .tech-step-panel h2 { font-size:23px; }
  .tech-step-actions { max-width:none; }
  .tech-step-dock { right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); width:calc(100% - 20px); padding:10px 12px; gap:10px; }
  .tech-step-dock button { max-width:150px; font-size:12px; }
  .tech-step-progress li { flex-direction:column; }
}

.tech-fuel-warning{position:sticky;top:0;z-index:25;margin:12px;padding:18px;border:3px solid #b91c1c;border-radius:14px;background:#fee2e2;color:#991b1b;font-size:20px;font-weight:900}.tech-fuel-warning[hidden]{display:none}.command-van-fuel-details form{display:grid;gap:8px;margin-top:16px}.command-van-fuel-details input{width:100%;padding:10px}

.tech-fuel-warning button{display:block;margin-top:12px;padding:12px;border:2px solid #991b1b;border-radius:10px;background:white;color:#991b1b;font-weight:800}.tech-fuel-warning small{display:block;margin-top:8px;font-size:14px}.fuel-confirmation{font-weight:800;color:#92400e}.fuel-confirmation.is-confirmed{color:#166534}

.fuel-message-dialog{width:min(92vw,460px);border:3px solid #b91c1c;border-radius:18px;padding:24px;background:#fff;color:#102e20}.fuel-message-dialog::backdrop{background:rgba(0,0,0,.65)}.fuel-message-dialog h2{color:#991b1b}.fuel-message-dialog button{display:block;width:100%;margin-top:18px;padding:14px}.fuel-message-dialog small{display:block}

.section-evidence-coverage{padding:10px 12px;background:#fff3d8;border-left:4px solid #c58000;color:#583b00;font-weight:800;line-height:1.5}.item-photo-toggle.essential-evidence{border:2px solid #b96d00;background:#fff7e7;color:#714200;font-weight:850}

/* PPI upload health is operational telemetry, not an inspection-completion verdict. */
.ppi-upload-health-key{margin:0 22px 18px;padding:14px 16px;border:1px solid #cee0d4;border-radius:12px;background:#f8fbf9;color:#344e40}
.ppi-upload-health-key>b{font-size:14px}.ppi-upload-health-key ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px 18px;list-style:none;padding:0;margin:12px 0}
.ppi-upload-health-key li{--upload-key-color:#83938a;display:flex;align-items:flex-start;gap:9px;line-height:1.45;font-size:12px;min-width:0}
.ppi-upload-health-key li.is-caught_up{--upload-key-color:#268447}.ppi-upload-health-key li.is-uploading{--upload-key-color:#317baf}.ppi-upload-health-key li.is-stale{--upload-key-color:#ad740c}.ppi-upload-health-key li.is-attention{--upload-key-color:#bd2929}
.ppi-upload-health-key li i{flex:0 0 12px;width:12px;height:12px;border-radius:50%;margin-top:3px;background:var(--upload-key-color)}
.ppi-upload-health-key li strong{display:block;font-size:13px;color:#253d2e;margin-bottom:2px}.ppi-upload-health-key p{font-size:12px;line-height:1.5;margin:0;padding-top:10px;border-top:1px solid #dce7df}
@media(max-width:600px){.ppi-upload-health-key{margin:0 14px 14px;padding:12px}}
.ppi-upload-health-list{display:grid;gap:14px;padding:0 22px 22px;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.ppi-upload-health-job{min-width:0;padding:16px;border:1px solid #cee0d4;border-radius:14px;background:#fff}
.ppi-upload-health-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ppi-upload-health-title button{flex-shrink:0;border:1px solid #95b9a2;border-radius:9px;padding:10px 13px;color:#145b32;background:#f5fbf7;font-weight:750}
.ppi-upload-health-progress .ppi-completion{display:flex;width:100%;margin:0 0 12px;padding:8px 10px;font-size:13px;box-sizing:border-box}
.ppi-upload-health-progress .ppi-completion-track{flex:1;min-width:0;height:8px}
.ppi-upload-health-status{display:grid;gap:7px;border-left:4px solid #83938a;padding:10px 12px;background:#f1f5f3;color:#344e40;margin-top:8px}
.ppi-upload-health-status>b{font-size:14px}.ppi-upload-health-status>small{display:block;line-height:1.5;font-size:12px;color:inherit;white-space:normal}
.ppi-upload-health-counts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;line-height:1.5}
.ppi-upload-health-counts span:first-child{width:100%}.ppi-upload-health-counts strong{font-size:19px}
.ppi-upload-health-status.is-attention,.ppi-upload-health-status.is-stalled{border-color:#bd2929;background:#fff2f2;color:#822525}
.ppi-upload-health-status.is-stale{border-color:#ad740c;background:#fff8e7;color:#705014}
.ppi-upload-health-status.is-uploading{border-color:#317baf;background:#edf6fd;color:#225575}
.ppi-upload-health-status.is-caught_up{border-color:#268447;background:#edf9f0;color:#285b38}
.ppi-upload-health-empty{color:#596d60;margin:0}
@media(max-width:600px){.ppi-upload-health-list{padding:0 14px 14px}.ppi-upload-health-job{padding:12px}.ppi-upload-health-title{align-items:flex-start}.ppi-upload-health-title button{padding:9px}}

/* PPI evidence recovery remains reachable from every inspection step. */
.inspection-recovery-launcher{margin:12px 20px;padding:12px 16px;text-align:left;border:1px solid #aacdb9;border-radius:10px;background:#f3faf6;color:#174b30;font-weight:700}
.inspection-recovery-launcher.needs-attention,.inspection-recovery-dialog .needs-attention{background:#fff5de;color:#805300;border-color:#d99f2a}
.inspection-recovery-dialog{max-width:760px;width:calc(100% - 24px);max-height:90dvh;overflow:auto}
.inspection-recovery-row{padding:16px 0;border-top:1px solid #cfddd5;overflow-wrap:anywhere}
.inspection-recovery-row pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f2;padding:12px;border-radius:8px;font:inherit}
.inspection-recovery-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.inspection-recovery-dialog button{min-height:44px;margin:4px;padding:10px 14px}

/* Keep each selected paint gauge photo beside its panel reading. */
.paint-evidence-panel { min-width: 0; padding: 8px; border: 1px solid #cce0d3; border-radius: 12px; background: #f6faf7; }
.paint-evidence-panel > label { width: 100%; box-sizing: border-box; }
.paint-evidence-controls { min-width: 0; margin-top: 7px; }
.paint-evidence-controls .upload-button { display: flex; justify-content: center; padding: 10px 8px; border-radius: 8px; font-size: 12px; }
.paint-evidence-controls .media-strip { max-width: 100%; overflow-x: auto; }

.media-upload-error { margin: 8px 0; padding: 8px; background: #fff2f2; color: #a62323; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.media-upload-error[hidden] { display: none; }
.ppi-upload-health-error { margin: 8px 0; padding: 8px; border-left: 3px solid #b72a2a; color: #922626; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

/* Active PPI management beside live upload health. */
.ppi-active-meta{display:grid;gap:5px;margin-bottom:14px;color:#53685c;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.ppi-active-meta strong{color:#183e29;font-size:15px}
.ppi-active-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.ppi-active-actions button{border:1px solid #bfd4c7;border-radius:8px;padding:9px 11px;background:#f7fbf8;color:#195f36;font-weight:700;min-height:40px}
.ppi-active-scan{border:1px solid #d5e3da;background:#f7fbf8;border-radius:10px;padding:12px;margin:14px 0}
.ppi-active-scan h3{margin:0 0 9px;font-size:15px;color:#203f2c}
.ppi-active-scan .command-scan-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.ppi-active-scan .command-scan-status,.ppi-active-scan .command-scan-drop{width:100%;box-sizing:border-box}
.ppi-active-scan .command-scan-drop{justify-content:center;min-height:76px;text-align:center}
.ppi-active-upload-heading{font-size:13px;font-weight:800;color:#345442;margin-top:14px}
/* Live service workspace: active teams first, completed work tucked below. */
.field-van-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.field-van-card{min-width:0;border:1px solid #d4e2d9;border-top:4px solid var(--field-van-color,#16804b);border-radius:13px;padding:17px;background:#fff;color:#173a28;overflow-wrap:anywhere}
.field-van-card header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:16px}
.field-van-card header>span{font-size:12px;background:#fff0ee;color:#9f2525;border-radius:7px;padding:5px 7px;font-weight:750}
.field-van-card.needs-homebase{background:#fffaf8}
.field-van-tech,.field-van-vehicle{color:#607568;font-size:13px;line-height:1.5;margin:5px 0}
.field-van-card h3{font-size:18px;line-height:1.3;margin:18px 0 5px}
.field-van-state{display:grid;gap:5px;background:#eef7f1;padding:12px;border-radius:9px;margin:15px 0;color:#17643a}
.field-van-state small{color:#566f60;font-size:12px}
.field-van-steps{display:flex;gap:5px;padding:0;margin:15px 0;list-style:none}
.field-van-steps li{flex:1;min-width:0;color:#63796b;font-size:11px;text-align:center}
.field-van-steps i{display:block;height:5px;border-radius:4px;background:#e2eae5;margin-bottom:7px}
.field-van-steps li.recorded i{background:#148246}
.field-van-steps li.recorded{color:#145f34;font-weight:750}
.field-van-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.field-van-card button,.field-finished button{border:1px solid #a9cbb6;background:#f5fbf7;color:#175f35;border-radius:8px;padding:9px 12px;font-weight:750;min-height:40px}
.field-van-activity{border-top:1px solid #dce8df;margin-top:12px;padding-top:6px}
.field-van-activity>summary,.field-van-other>summary,.field-finished>summary{padding:9px 0;font-weight:750;color:#24583b;cursor:pointer;font-size:13px}
.field-van-other{margin-top:10px}.field-van-other>div{border-top:1px solid #dce8df;padding:12px 0}
.field-finished{margin-top:18px;border-top:1px solid #d5e3da;padding-top:8px}
.field-finished-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-top:1px solid #e0e9e3;padding:14px 0}
.field-finished-row>div{flex:1;min-width:0}.field-finished-row p{color:#617668;font-size:12px;margin:5px 0;overflow-wrap:anywhere}
@media(max-width:600px){.field-van-grid{grid-template-columns:1fr}.field-finished-row{flex-wrap:wrap}.field-van-card{padding:14px}}

.command-van-tracking.is-offline { border-color:#b82f38; background:#fff0ee; color:#9d2633; }
.command-van-gps-warning { display:grid; gap:5px; margin:10px 0; padding:12px; border:1px solid #d46868; border-left:5px solid #b82f38; border-radius:8px; background:#fff0ee; color:#89252e; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.command-van-gps-warning strong { color:#89252e; }

.media-thumb-actions .media-feature{position:static;flex-basis:100%;padding:7px;border:1px solid #9acbb0;background:#f3faf6;color:#145b37;border-radius:6px;font-size:11px;line-height:1.3}.media-thumb-actions .media-feature[aria-pressed="true"]{background:#145b37;color:#fff}

.battery-pickup-history{margin-top:13px;padding:10px 12px;border:1px solid #d7e4dc;border-radius:10px;background:#f6f9f7;color:#52705b;font-size:11px}.battery-pickup-history summary{cursor:pointer;font-weight:700}.battery-pickup-history ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:7px}.battery-pickup-history li{display:grid;gap:2px}.battery-pickup-history span{font-size:10px}

.command-battery-stock-row{flex-wrap:wrap}.command-battery-stock-row>.battery-date-code-note{order:3;flex-basis:100%;text-align:left}.battery-inventory-row.missing-date>em{font-size:12px}

/* Combined physical battery counts across every inventory location. */
.battery-master{min-width:0;margin:18px 0 24px;padding:0;border:2px solid #198447;border-radius:18px;background:#fff;scroll-margin-top:96px;overflow:hidden}
.battery-master>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px;list-style:none;cursor:pointer;background:#fff;transition:background .16s ease}.battery-master>summary::-webkit-details-marker{display:none}.battery-master>summary:hover{background:#f4faf6}.battery-master>summary:focus-visible{outline:3px solid #118748;outline-offset:-4px}.battery-master>summary span{font-size:11px;letter-spacing:.12em;font-weight:850;color:#17633b}.battery-master h2{margin:5px 0;font-size:27px;color:#143c27}.battery-master>summary p{margin:0;color:#52665a;line-height:1.5}.battery-master-toggle-meta{display:grid;justify-items:end;gap:7px;min-width:270px;text-align:right}.battery-master-toggle-meta>span{letter-spacing:0;font-size:12px;line-height:1.4;color:#52665a}.battery-master-toggle-meta strong{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border-radius:999px;background:#153e29;color:#fff;font-size:12px}.battery-master-toggle-meta strong span{color:#fff;letter-spacing:.02em}.battery-master-close-label{display:none}.battery-master[open] .battery-master-open-label{display:none}.battery-master[open] .battery-master-close-label{display:inline}.battery-master-body{padding:0 22px 22px;border-top:1px solid #d8e7dc}.battery-master-actions{justify-content:flex-end;padding:14px 0}
.battery-master-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.battery-master-summary article{padding:18px;border-radius:12px;background:#edf5ef;border:1px solid #d0e2d5}.battery-master-summary article:first-child{background:#123e29;color:#fff;border-color:#123e29}.battery-master-summary span,.battery-master-summary small{display:block;font-size:11px}.battery-master-summary span{font-weight:850;letter-spacing:.06em}.battery-master-summary strong{display:block;font-size:35px;line-height:1.3;margin:5px 0;font-variant-numeric:tabular-nums}.battery-master-summary small{line-height:1.4}
.battery-master-source{font-size:12px;font-weight:700;line-height:1.5}.battery-master-source.live{color:#136a35}.battery-master-source.warning{color:#8b5106;background:#fff5dc;border-radius:7px;padding:10px}
.battery-master-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:18px 0 12px}.battery-master-toolbar label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#264f37;max-width:330px;width:100%}.battery-master-toolbar input{min-width:0;width:100%;min-height:42px;padding:10px 12px;border:1px solid #b5ccbc;border-radius:8px;font:inherit;font-size:15px;background:#fff;color:#153c26}.battery-master-toolbar input:focus-visible{outline:3px solid #118748;outline-offset:2px}.battery-master-toolbar>span{font-size:12px;white-space:nowrap;color:#52665a}
.battery-master-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #c9dcd0;border-radius:10px}.battery-master-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.battery-master-table caption{text-align:left;padding:12px;font-weight:800;color:#244e35;background:#f4f8f5}.battery-master-table th,.battery-master-table td{padding:12px 10px;border-bottom:1px solid #dfe9e2;text-align:right;white-space:nowrap}.battery-master-table th:first-child{text-align:left;min-width:150px}.battery-master-table th small{display:block;margin-top:4px;font-size:10px;font-weight:500;color:#5c6e61}.battery-master-table thead{background:#edf4ef;color:#33533e}.battery-master-table tbody tr:nth-child(even){background:#fafcfb}.battery-master-table .battery-master-total{font-size:15px;font-weight:850;background:#e7f3ea;color:#124e2a}.battery-master-table tfoot{background:#153e29;color:#fff;font-weight:850}.battery-master-table tfoot .battery-master-total{background:#0c6533;color:#fff;font-size:20px}.battery-master-table tfoot th,.battery-master-table tfoot td{border-bottom:0}.battery-master-formula,.battery-master-empty{font-size:12px;line-height:1.55;color:#52665a;margin:12px 0 0}.battery-master-empty{font-weight:750;color:#805307}
@media(max-width:680px){.battery-master{margin:14px 0 20px}.battery-master>summary{display:block;padding:14px}.battery-master h2{font-size:23px}.battery-master-toggle-meta{justify-items:start;min-width:0;margin-top:12px;text-align:left}.battery-master-body{padding:0 14px 14px}.battery-master-actions{justify-content:flex-start}.battery-master-summary{gap:6px}.battery-master-summary article{padding:10px 8px}.battery-master-summary strong{font-size:27px}.battery-master-summary span,.battery-master-summary small{font-size:9px}.battery-master-toolbar{display:block}.battery-master-toolbar>span{display:block;margin-top:8px}.battery-master-table-wrap{overflow:visible;border:0}.battery-master-table,.battery-master-table tbody,.battery-master-table tfoot{display:block}.battery-master-table caption{display:block;border-radius:8px;margin-bottom:8px}.battery-master-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.battery-master-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:10px;border:1px solid #c9dcd0;border-radius:10px;overflow:hidden}.battery-master-table tr[hidden]{display:none}.battery-master-table th:first-child{grid-column:1/-1;min-width:0;padding:12px;font-size:15px;background:#f0f6f2;white-space:normal}.battery-master-table td{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;white-space:normal;border-bottom:1px solid #e2ebe5;font-weight:800}.battery-master-table td::before{content:attr(data-label);font-size:10px;line-height:1.3;font-weight:600;text-align:left;color:#52665a}.battery-master-table td.battery-master-total{grid-column:1/-1;font-size:22px}.battery-master-table tfoot th:first-child{background:#153e29;color:#fff}.battery-master-table tfoot td::before{color:#d9eadf}.battery-master-table tfoot td{background:#153e29}.battery-master-table tfoot td.battery-master-total{background:#0c6533}}
@media print{.battery-master{break-inside:auto}.battery-master>.battery-master-body{display:block!important}.battery-master-toggle-meta,.battery-master-actions,.battery-master-toolbar{display:none}}

.command-battery-bulk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.command-battery-bulk-actions button,.command-battery-mark-van{border:1px solid #a9cdb6;border-radius:8px;background:#fff;color:#155e35;padding:9px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.command-battery-bulk-actions button:first-child{background:#176f3b;color:#fff}.command-battery-bulk-actions button:disabled{opacity:.5;cursor:default}.command-battery-bulk-actions small{width:100%;color:#617467}.command-battery-update.new{border-color:#bdd7c6;background:#f2f8f4}.command-battery-update.new b{color:#205c3a}

/* Full PPI details are a focused office dialog, including from the request queue. */
.ppi-info-editor .editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ppi-info-editor .editor-grid>.wide{grid-column:1/-1}
.ppi-info-editor .editor-grid>h3{margin:15px 0 0;padding-top:12px;border-top:1px solid #d7e7dc;color:#174d2c;font-size:16px}
.ppi-info-editor .editor-grid>p{font-size:12px;line-height:1.5}
.ppi-info-editor input[name="vin"]{font-size:18px;font-weight:800;letter-spacing:.06em;border:2px solid #409863;background:#f7fff9}
.ppi-info-editor .editor-actions{position:sticky;bottom:-18px;background:#f7fcf8;border-top:1px solid #bed8c7;padding:13px 0;margin-top:20px;z-index:2}
@media(max-width:600px){.ppi-info-editor .editor-grid{grid-template-columns:1fr}.ppi-info-editor input[name="vin"]{font-size:16px;letter-spacing:.025em}}

.rotation-photo-override{padding:13px 15px;border:1px solid #8abd9c;border-radius:10px;background:#f0faf3;margin:12px 0;color:#174d2c}.rotation-photo-override>b{font-size:17px}.rotation-photo-override>p{font-size:13px;margin:6px 0 12px}.rotation-photo-override>label{display:flex;align-items:flex-start;gap:10px;font-weight:750;font-size:14px;line-height:1.5}.rotation-photo-override input[type=checkbox]{width:22px;height:22px;accent-color:#176d3e;flex:none;margin:0}.rotation-photo-override .rotation-override-note{display:grid;margin-top:12px;font-size:12px;font-weight:600;gap:4px}.rotation-override-note input{width:100%;padding:9px 11px;border:1px solid #b8cebf;border-radius:7px;font:inherit;background:white;color:#173229}
.command-handoff-amendment{margin-top:16px;padding:14px;border:1px solid #a9c8b7;border-radius:12px;background:#f4faf6;color:#163e2c}
.command-handoff-amendment p{font-size:14px;line-height:1.45}
.battery-review-amend-form{display:grid;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #bdd3c4}
.battery-review-amend-form h4{margin:0;font-size:18px}
.battery-review-amend-form label,.battery-review-return-choice{display:grid;gap:6px;font-weight:750}
.battery-review-amend-form input:not([type=checkbox]),.battery-review-amend-form select,.battery-review-return-choice select{width:100%;min-height:44px;padding:10px;border:1px solid #7fa58d;border-radius:8px;background:#fff;color:#173b28;font:inherit}
.battery-review-amend-form .battery-review-confirm{display:flex;align-items:flex-start;gap:9px;font-size:14px}
.battery-review-amend-form [role=status]{font-weight:750}
.battery-review-return-choice{margin:12px 0}.battery-review-return-choice small{font-weight:400;line-height:1.4}
.command-handoff-amendment button{cursor:pointer}.command-handoff-amendment button:disabled{cursor:wait;opacity:.6}

.icloud-reconnect { margin-bottom: 18px; max-width: 100%; }
.icloud-reconnect summary { cursor: pointer; color: #145c35; padding: 4px 0; }
.icloud-reconnect form { max-width: 600px; }
.icloud-reconnect input { width: 100%; min-width: 0; box-sizing: border-box; }
