html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -webkit-touch-callout: none;
}

body { user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
.admin-map, .maplibregl-canvas-container, .maplibregl-canvas { touch-action: none; }

.ios-pwa-gate[hidden] { display: none; }
.ios-pwa-gate { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: auto; padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 0, rgba(40,191,242,.12), transparent 38%), #080d14; color: #f5f8fc; }
.ios-pwa-card { width: min(460px,100%); display: grid; justify-items: center; gap: 14px; padding: 26px 22px; border: 1px solid #273447; border-radius: 24px; background: #111a26; box-shadow: 0 30px 90px rgba(0,0,0,.42); text-align: center; }
.ios-pwa-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: #ffd400; color: #101820; font-size: 24px; font-weight: 950; box-shadow: 0 14px 34px rgba(255,212,0,.18); }
.ios-pwa-card h1 { margin: 0; max-width: 13ch; font-size: clamp(28px,8vw,38px); line-height: .98; letter-spacing: -.045em; }
.ios-pwa-card > p { margin: 0; color: #91a0b5; font-size: 14px; line-height: 1.55; }
.ios-pwa-steps { width: 100%; display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }
.ios-pwa-steps li { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px; border: 1px solid #273447; border-radius: 13px; background: #0d151f; }
.ios-pwa-steps li > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,212,0,.1); color: #ffd400; }
.ios-pwa-steps span { color: #c6d0dc; font-size: 13px; line-height: 1.42; }
.ios-pwa-note { padding: 10px 12px; border-radius: 10px; background: rgba(85,214,123,.09); color: #8fe7a8; font-size: 11px; line-height: 1.45; }
.ios-pwa-required body > :not(#ios-pwa-gate) { visibility: hidden !important; }

.performer-app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 62px;
  background: var(--ops-bg);
}

.performer-topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--ops-line-soft);
  background: rgba(8, 13, 20, .94);
}

html[data-theme="light"] .performer-topbar { background: rgba(238, 241, 244, .95); }

.worker-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: var(--ops-text);
  text-align: left;
}

.worker-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #3d4a5e;
  border-radius: 50%;
  background: var(--ops-yellow);
  color: var(--ops-yellow-ink);
  font-size: 13px;
  font-weight: 900;
}

.worker-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.worker-copy b,
.worker-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-copy b { font-size: 14px; }
.worker-copy small { color: var(--ops-muted); font-size: 12px; }

.worker-live-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.worker-gps { color: var(--ops-muted); font-size: 12px; }

.performer-route {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.performer-route.active { display: block; }

.performer-route[data-route-panel="work"] {
  overflow: hidden;
}

.performer-route[data-route-panel="work"].active { display: grid; }

.work-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(360px, 1fr) 330px;
  gap: 12px;
  padding: 12px;
}

.task-rail,
.mission-inspector,
.work-map-shell { min-height: 0; }

.task-rail {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 11px;
}

.rail-head h2 { margin: 3px 0 0; font-size: 20px; }

.rail-tabs,
.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ops-bg-2);
}

.rail-tabs { margin: 0 12px 10px; }

.rail-tabs button,
.schedule-tabs button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-tabs button.active,
.schedule-tabs button.active {
  background: var(--ops-surface-3);
  color: var(--ops-text);
}

.task-list {
  min-height: 0;
  overflow: auto;
  padding: 0 9px 9px;
  scrollbar-width: thin;
}

.task-row {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid transparent;
  border-bottom-color: var(--ops-line-soft);
  background: transparent;
  color: var(--ops-text);
  text-align: left;
}

.task-row:hover { background: rgba(255, 255, 255, .025); }

.task-row.selected {
  border-color: var(--ops-yellow);
  border-radius: var(--ops-radius-sm);
  background: rgba(255, 212, 0, .06);
}

.task-sequence {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ops-surface-3);
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 850;
}

.task-row.selected .task-sequence {
  background: var(--ops-yellow);
  color: var(--ops-yellow-ink);
}

.task-row-copy { min-width: 0; display: grid; gap: 3px; }
.task-row-copy b,
.task-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-copy b { font-size: 12px; }
.task-row-copy small { color: var(--ops-muted); font-size: 11px; }
.task-charge { color: var(--ops-green); font-size: 12px; font-weight: 800; }
.task-charge.low { color: var(--ops-amber); }
.task-charge.critical { color: var(--ops-red); }
.rail-collapse { margin: 9px; min-height: 38px; }

.work-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ops-line-soft);
  border-radius: var(--ops-radius);
  background:
    linear-gradient(rgba(40, 191, 242, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 191, 242, .04) 1px, transparent 1px),
    #0b1420;
  background-size: 42px 42px;
}

.performer-map,
.map-fallback { position: absolute; inset: 0; }

.performer-map { background: #0b1420; }

html[data-theme="light"] .performer-map,
html[data-theme="light"] .map-fallback { background-color: #e7eaed; }

.performer-map [class*="ground-pane"] { filter: grayscale(.18) brightness(.58) contrast(1.16) saturate(.76); }

.map-fallback {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 45%, rgba(40, 191, 242, .12), transparent 24%),
    linear-gradient(120deg, transparent 46%, rgba(40, 191, 242, .14) 46%, rgba(40, 191, 242, .14) 47%, transparent 47%),
    #0c1420;
}

.map-fallback[hidden] { display: none; }

.map-fallback p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ops-line);
  border-radius: var(--ops-radius-sm);
  background: rgba(8, 13, 20, .88);
  color: var(--ops-muted);
  font-size: 12px;
  text-align: center;
}

.fallback-grid { position: absolute; inset: 0; }

.fallback-marker {
  position: absolute;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ops-bg);
  border-radius: 50%;
  background: var(--ops-green);
  color: #07120a;
  box-shadow: 0 0 0 3px rgba(85, 214, 123, .18);
  font-size: 10px;
  font-weight: 900;
}

.fallback-marker.low { background: var(--ops-amber); box-shadow: 0 0 0 3px rgba(255, 173, 50, .18); }
.fallback-marker.critical { background: var(--ops-red); box-shadow: 0 0 0 3px rgba(255, 89, 94, .18); }
.fallback-marker.worker { background: var(--ops-cyan); }

.map-status-strip {
  position: absolute;
  z-index: 7;
  top: 12px;
  left: 12px;
  right: 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(153, 174, 201, .2);
  border-radius: 11px;
  background: rgba(8, 13, 20, .88);
  backdrop-filter: blur(10px);
  color: var(--ops-muted);
  font-size: 11px;
}

.map-controls {
  position: absolute;
  z-index: 7;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 7px;
}

.map-controls .ops-icon-btn { background: rgba(8, 13, 20, .9); }

.next-task-banner {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: rgba(8, 13, 20, .92);
  backdrop-filter: blur(12px);
}

.mission-inspector {
  overflow: auto;
  padding: 16px;
  scrollbar-width: thin;
}

.mission-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.mission-empty h2,
.mission-empty p { margin: 0; }
.mission-empty h2 { font-size: 24px; line-height: 1.08; }
.mission-empty p { color: var(--ops-muted); font-size: 13px; line-height: 1.55; }

.mission-card { display: grid; gap: 15px; }
.mission-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mission-head-actions { display: flex; align-items: center; gap: 8px; }
.inspector-close { width: 36px; min-height: 36px; flex: 0 0 auto; }
.mission-card h2 { margin: 5px 0 0; font-size: 21px; }
.mission-bike { color: var(--ops-cyan); }

.mission-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--ops-line-soft); }
.mission-fact { padding: 12px 8px; }
.mission-fact:nth-child(odd) { border-right: 1px solid var(--ops-line-soft); }
.mission-fact span { display: block; color: var(--ops-muted); font-size: 10px; }
.mission-fact b { display: block; margin-top: 4px; font-size: 13px; }
.mission-actions { display: grid; gap: 9px; }
.mission-actions.two { grid-template-columns: 1fr 1fr; }
.role-work-filters { padding:10px 12px; border-bottom:1px solid var(--ops-line-soft); background:var(--ops-surface-2); }.role-filter-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }.role-filter-head b { font-size:11px; }.role-filter-head small { color:var(--ops-muted); font-size:9px; }.role-filter-chips { display:flex; gap:6px; margin-top:8px; overflow-x:auto; scrollbar-width:none; }.role-filter-chips button { flex:0 0 auto; min-height:32px; padding:0 10px; border:1px solid var(--ops-line-soft); border-radius:999px; background:var(--ops-bg-2); color:var(--ops-muted); font:inherit; font-size:9px; font-weight:750; }.role-filter-chips button.active { border-color:var(--ops-yellow); background:rgba(255,212,0,.11); color:var(--ops-yellow); }
.map-layer-panel{position:absolute;z-index:40;right:14px;top:58px;bottom:14px;width:min(430px,calc(100% - 28px));padding:0;overflow:auto;background:color-mix(in srgb,var(--ops-surface) 97%,transparent);backdrop-filter:blur(20px)}.map-filter-sheet-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--ops-line-soft);background:color-mix(in srgb,var(--ops-surface) 96%,transparent)}.map-filter-sheet-head>div{display:grid;gap:2px}.map-filter-sheet-head span{color:var(--ops-muted);font-size:10px}.map-filter-sheet-head b{font-size:15px}.map-filter-section{padding:14px 16px;border-bottom:1px solid var(--ops-line-soft)}.map-filter-section h3{margin:0 0 10px;font-size:13px}.map-filter-chips{display:flex;flex-wrap:wrap;gap:8px}.map-filter-chips button{min-height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 13px;border:1px solid var(--ops-line-soft);border-radius:999px;background:var(--ops-bg-2);color:var(--ops-muted);font:inherit;font-size:11px;font-weight:750}.map-filter-chips button.active{border-color:var(--ops-yellow);background:rgba(255,212,0,.13);color:var(--ops-yellow)}.map-filter-chips button i{width:16px;height:16px;display:grid;place-items:center;border-radius:50%;background:var(--ops-yellow);color:var(--ops-yellow-ink);font-size:10px;font-style:normal}.heartbeat-filter-settings label{display:grid;grid-template-columns:minmax(90px,1fr) 86px 44px;align-items:center;gap:8px;margin-top:8px;color:var(--ops-muted);font-size:11px}.heartbeat-filter-settings input[type="number"]{width:100%;min-height:36px;padding:0 9px;border:1px solid var(--ops-line);border-radius:8px;background:var(--ops-bg-2);color:var(--ops-text)}.heartbeat-filter-settings .map-filter-safety{grid-template-columns:20px 1fr;margin-top:13px;color:var(--ops-green)}.heartbeat-filter-settings .map-filter-safety input{width:18px;height:18px;accent-color:var(--ops-green)}.map-filter-sheet-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px;background:color-mix(in srgb,var(--ops-surface) 96%,transparent);border-top:1px solid var(--ops-line-soft)}.bike-track-history{margin-top:12px;border-top:1px solid var(--ops-line-soft);padding-top:10px}.bike-track-history>div{display:flex;justify-content:space-between;gap:8px}.bike-track-history small{color:var(--ops-muted)}.bike-track-history ol{max-height:220px;overflow:auto;margin:8px 0 0;padding:0;list-style:none}.bike-track-history li{display:grid;grid-template-columns:24px 1fr;gap:3px 8px;padding:7px 2px;border-top:1px solid var(--ops-line-soft);font-size:10px}.bike-track-history li b{grid-row:1/3;color:var(--ops-yellow)}.bike-track-history li span{color:var(--ops-muted)}
.performer-bike-popover{position:absolute;z-index:28;left:50%;top:70px;width:min(390px,calc(100% - 24px));max-height:min(58%,520px);overflow:auto;transform:translate(-50%,-8px);opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease}.performer-bike-popover.visible{opacity:1;pointer-events:auto;transform:translate(-50%,0)}.performer-bike-card{display:grid;gap:10px;padding:13px;border:1px solid var(--ops-line);border-radius:16px;background:color-mix(in srgb,var(--ops-surface) 96%,transparent);box-shadow:0 18px 52px rgba(0,0,0,.38);backdrop-filter:blur(18px)}.performer-bike-card header,.performer-bike-card footer,.performer-bike-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.performer-bike-card header h2{margin:4px 0 0;color:var(--ops-cyan);font-size:18px}.performer-bike-card footer .ops-btn{flex:1}.performer-bike-card .performer-bike-detail{margin:0;padding-top:8px;gap:8px}.performer-bike-card .mission-facts{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.performer-bike-card .mission-fact{padding:7px}.performer-bike-card .mission-fact b{font-size:10px}.performer-bike-card .performer-rental-head~.mission-facts .mission-fact:nth-child(n+5){display:none}.bike-track-summary{position:absolute;z-index:27;top:62px;left:50%;width:min(420px,calc(100% - 24px));transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--ops-line);border-radius:13px;background:color-mix(in srgb,var(--ops-surface) 94%,transparent);box-shadow:var(--ops-shadow);backdrop-filter:blur(16px)}.bike-track-summary[hidden]{display:none}.bike-track-summary>div{min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 8px}.bike-track-summary b{overflow:hidden;text-overflow:ellipsis}.bike-track-summary small{grid-column:1/-1;color:var(--ops-muted);font-size:9px}
.bike-control-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--ops-line-soft)}.bike-control-panel .ops-btn{min-width:0;padding-inline:8px;font-size:10px}
.performer-bike-detail{display:grid;gap:10px;margin-top:4px;padding-top:12px;border-top:1px solid var(--ops-line-soft)}.performer-bike-source,.performer-rental-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.performer-bike-source small{color:var(--ops-muted);font-size:9px}.performer-bike-detail .bike-detail-facts{display:grid}.performer-bike-detail .mission-fact b{overflow-wrap:anywhere}.bike-detail-loading,.bike-rental-loading{min-height:48px;display:grid;place-items:center;padding:10px;color:var(--ops-muted);font-size:10px;text-align:center;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.035) 45%,transparent 70%);background-size:220% 100%;animation:performer-bike-shimmer 1.4s linear infinite}.bike-rental-error{padding:10px;border:1px solid rgba(255,89,94,.3);border-radius:10px;color:var(--ops-red);font-size:10px}@keyframes performer-bike-shimmer{to{background-position:-220% 0}}
.navigation-actions .navigation-button { grid-column: 1 / -1; border-color: rgba(40,191,242,.35); color: var(--ops-cyan); background: rgba(40,191,242,.06); }
.navigation-copy { min-width: 0; display: grid; gap: 4px; }
.navigation-copy b,.navigation-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navigation-copy b { color: var(--ops-text); font-size: 12px; }
.navigation-copy small { color: var(--ops-muted); font-size: 10px; }
.next-task-banner > .ops-icon-btn { flex: 0 0 auto; background: var(--ops-surface-3); }

.performer-nav {
  position: relative;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 12px 8px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 13px;
  background: rgba(13, 21, 31, .96);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
}

.performer-nav button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 750;
}

.performer-nav button.active { color: var(--ops-yellow); background: rgba(255, 212, 0, .055); }
.nav-icon { display: inline-flex; }

.performer-page-head,
.shift-layout,
.result-metrics,
.results-grid,
.profile-layout {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.performer-page-head { padding: 30px 0 20px; }
.performer-page-head h1 { margin: 5px 0 0; font-size: clamp(32px, 6vw, 50px); letter-spacing: -.04em; }
.performer-page-head p { margin: 7px 0 0; color: var(--ops-muted); font-size: 13px; }

.shift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 14px;
  padding-bottom: 32px;
}

.shift-primary { grid-row: auto; }

.shift-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid #35445a;
  border-radius: var(--ops-radius-lg);
  background: linear-gradient(135deg, #111d2c, #0d1520);
  box-shadow: var(--ops-shadow);
}

.shift-card-top { display: flex; justify-content: space-between; gap: 16px; }
.shift-card h2 { margin: 14px 0 0; font-size: 30px; line-height: 1.08; }
.shift-card p { margin: 8px 0 0; color: var(--ops-muted); }
.shift-time { display: flex; gap: 14px; flex-wrap: wrap; color: #d7e0ec; font-size: 14px; }
.shift-countdown { font-size: 38px; font-weight: 760; letter-spacing: -.04em; }
.shift-card-action { display: flex; align-items: end; justify-content: space-between; gap: 18px; }

.selfie-panel,
.schedule-panel { padding: 18px; }

.selfie-capture {
  min-height: 112px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed #42516a;
  border-radius: var(--ops-radius);
  background: var(--ops-bg-2);
  cursor: pointer;
}

.selfie-preview {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ops-surface-3);
  color: var(--ops-muted);
}

.selfie-preview img { width: 100%; height: 100%; object-fit: cover; }
.selfie-capture b,
.selfie-capture small { display: block; }
.selfie-capture b { font-size: 13px; }
.selfie-capture small { margin-top: 5px; color: var(--ops-muted); font-size: 11px; }
.selfie-action { color: var(--ops-yellow); font-size: 12px; font-weight: 800; }
.shift-photo-flow { display: grid; gap: 16px; }
.shift-photo-copy { display: grid; gap: 8px; }
.shift-photo-copy h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.025em; }
.shift-photo-copy p { margin: 0; color: var(--ops-muted); font-size: 13px; line-height: 1.55; }
.shift-photo-capture { min-height: 132px; margin-top: 0; border-style: solid; border-color: rgba(255, 211, 0, .42); background: rgba(255, 211, 0, .055); }
.shift-photo-capture:active { transform: scale(.99); }
.staged-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.staged-photo-grid .selfie-capture { margin-top: 0; grid-template-columns: 58px minmax(0, 1fr); }
.staged-photo-grid .selfie-preview { width: 58px; height: 58px; }
.parking-inspection-sla { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(40,191,242,.25); border-radius: 12px; background: rgba(40,191,242,.07); }
.parking-inspection-sla span,.parking-inspection-sla small { color: var(--ops-muted); font-size: 10px; }
.parking-inspection-sla b { color: var(--ops-cyan); font-size: 18px; }
.parking-inspection-sla.urgent { border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.parking-inspection-sla.urgent b { color: var(--ops-amber); }

.schedule-tabs { margin: 14px 0 10px; grid-template-columns: 1fr 1fr; }
.schedule-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 3px;
  border-bottom: 1px solid var(--ops-line-soft);
}
.schedule-dot { width: 10px; height: 10px; margin-top: 4px; border: 2px solid var(--ops-muted); border-radius: 50%; }
.schedule-dot.active { border-color: var(--ops-yellow); background: var(--ops-yellow); }
.schedule-row b { display: block; font-size: 12px; }
.schedule-row small { display: block; margin-top: 4px; color: var(--ops-muted); font-size: 11px; }

.result-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.result-metric { min-height: 116px; padding: 16px; }
.result-metric b { display: block; margin-top: 12px; font-size: 30px; }
.result-metric span { color: var(--ops-muted); font-size: 11px; }
.results-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; padding: 14px 0 32px; }
.result-focus,
.result-history { padding: 18px; }
.result-bars { display: grid; gap: 15px; margin-top: 18px; }
.result-bar-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ops-line-soft); }
.history-row b { font-size: 12px; }
.history-row small { color: var(--ops-muted); }

.profile-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; padding-bottom: 32px; }
.profile-hero,
.profile-data,
.profile-actions { padding: 20px; }
.profile-hero { display: grid; place-items: center; text-align: center; min-height: 260px; }
.profile-hero-inner { width: 100%; display: grid; justify-items: center; align-content: center; text-align: center; }
.profile-big-avatar { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: var(--ops-yellow); color: var(--ops-yellow-ink); font-size: 24px; font-weight: 900; }
.parking-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--ops-line-soft); border-radius: 12px; overflow: hidden; }
.parking-summary-grid > div { padding: 10px; border-right: 1px solid var(--ops-line-soft); border-bottom: 1px solid var(--ops-line-soft); }
.parking-summary-grid > div:nth-child(even) { border-right: 0; }
.parking-summary-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.parking-summary-grid span,.parking-summary-grid b { display: block; }
.parking-summary-grid span { color: var(--ops-muted); font-size: 9px; }
.parking-summary-grid b { margin-top: 4px; font-size: 18px; }
.parking-summary-grid b.low { color: var(--ops-amber); }
.parking-ranks { display: flex; gap: 7px; flex-wrap: wrap; }
.parking-ranks span { padding: 7px 9px; border-radius: 8px; background: var(--ops-surface-3); color: var(--ops-muted); font-size: 10px; }
.parking-ranks b { color: var(--ops-yellow); }
.parking-bike-scroll { max-height: 166px; display: grid; overflow: auto; border-top: 1px solid var(--ops-line-soft); scrollbar-width: thin; }
.parking-bike-scroll button { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--ops-line-soft); background: transparent; color: var(--ops-text); }
.parking-bike-scroll button span { font-size: 11px; font-weight: 750; }
.parking-bike-scroll button b { font-size: 11px; }
.parking-bike-scroll button b.low { color: var(--ops-amber); }
.parking-bike-scroll button b.critical { color: var(--ops-red); }
.profile-hero h2 { margin: 15px 0 0; font-size: 24px; }
.profile-hero p { margin: 6px 0 0; color: var(--ops-muted); }
.profile-data { display: grid; align-content: center; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--ops-line-soft); }
.profile-row span { color: var(--ops-muted); font-size: 12px; }
.profile-row b { text-align: right; font-size: 13px; }
.profile-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.profile-actions a { text-decoration: none; }
.profile-settings { grid-column: 1 / -1; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-settings h2 { margin: 5px 0 0; font-size: 18px; }
.profile-settings p { margin: 6px 0 0; color: var(--ops-muted); font-size: 12px; }
.theme-choice { display: grid; grid-template-columns: 1fr 1fr; min-width: 240px; padding: 4px; border: 1px solid var(--ops-line); border-radius: 11px; background: var(--ops-bg-2); }
.theme-choice button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ops-muted); font-weight: 750; }
.theme-choice button.active { background: var(--ops-surface-3); color: var(--ops-text); box-shadow: inset 0 0 0 1px var(--ops-line-soft); }

html[data-theme="light"] .performer-nav { background: rgba(247, 248, 249, .97); }
html[data-theme="light"] .map-status-strip,
html[data-theme="light"] .map-controls .ops-icon-btn,
html[data-theme="light"] .next-task-banner { background: rgba(247, 248, 249, .9); }
html[data-theme="light"] .shift-card { background: linear-gradient(135deg, #ffffff, #eef1f4); }

.performer-auth-card { display: grid; gap: 22px; }
.performer-auth-card h1 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.performer-auth-card p { margin: 7px 0 0; color: var(--ops-muted); line-height: 1.5; }
.performer-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--ops-yellow); color: var(--ops-yellow-ink); font-weight: 900; }
.performer-login-form { display: grid; gap: 13px; }
.auth-note { min-height: 18px; color: var(--ops-muted); font-size: 12px; }
.legacy-link { color: var(--ops-muted); font-size: 12px; text-decoration-color: var(--ops-line); }
.inwork-layout{width:min(100% - 32px,1080px);margin:0 auto 28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.inwork-card{padding:16px;display:grid;gap:12px}.inwork-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.inwork-card h2{margin:5px 0 0;font-size:20px}.inwork-card p{margin:0;color:var(--ops-muted);font-size:12px}.inwork-card-actions{display:flex;gap:8px;flex-wrap:wrap}.inwork-card-actions .ops-btn{flex:1}.gps-required-gate{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:var(--ops-bg)}.gps-required-gate[hidden]{display:none}.gps-required-card{width:min(420px,100%);display:grid;gap:17px;text-align:center;padding:28px;border:1px solid var(--ops-line);border-radius:18px;background:var(--ops-surface);box-shadow:var(--ops-shadow)}.gps-required-card .performer-mark{margin:auto}.gps-required-card h2,.gps-required-card p{margin:0}.gps-required-card p{color:var(--ops-muted);line-height:1.55}.mission-inspector[hidden]{display:none!important}
.schedule-selfies{display:flex;gap:7px;margin-top:6px}.schedule-selfies a{color:var(--ops-cyan);font-size:9px;text-decoration:none}

@media (min-width: 901px) and (max-width: 1180px) {
  .work-layout { grid-template-columns: 290px minmax(340px, 1fr); }
  .mission-inspector { position: absolute; right: 22px; top: 94px; bottom: 82px; z-index: 12; width: 320px; box-shadow: var(--ops-shadow); }
}

@media (max-width: 900px) {
  html,
  body { overflow: hidden; }

  .performer-app { grid-template-rows: 68px minmax(0, 1fr) calc(72px + env(safe-area-inset-bottom)); }
  .performer-topbar { padding: 0 14px; gap: 8px; }
  .worker-avatar { width: 38px; height: 38px; }
  .worker-copy b { max-width: 150px; }
  .worker-copy small { max-width: 160px; }
  .worker-live-cluster { gap: 7px; }
  .worker-gps { display: none; }
  .worker-live-cluster .ops-status { min-height: 26px; padding-inline: 8px; font-size: 10px; }
  .worker-live-cluster .ops-icon-btn { width: 38px; min-height: 38px; }

  .work-layout { position: relative; display: block; padding: 0; }
  .work-map-shell { position: absolute; inset: 0; border: 0; border-radius: 0; }
  .map-status-strip { top: 10px; left: 10px; right: 10px; }
  .map-controls { right: 10px; bottom: 250px; }
  .work-layout:not(.has-selection) .map-controls{bottom:18px}
  .work-layout:not(.has-selection) .map-layer-panel{bottom:72px}
  .map-layer-panel{position:fixed;z-index:80;inset:max(8px,env(safe-area-inset-top)) 8px calc(78px + env(safe-area-inset-bottom));width:auto;border-radius:20px}
  .performer-bike-popover{width:min(380px,calc(100% - 20px));max-height:min(52dvh,460px)}
  .performer-bike-card .performer-bike-detail .mission-facts{display:grid}
  .bike-track-summary{top:66px}
  .map-controls .ops-icon-btn { width: 44px; min-height: 44px; }
  .next-task-banner { bottom: 236px; }

  .task-rail {
    position: fixed;
    z-index: 46;
    left: 8px;
    right: 8px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-height: 54dvh;
    transform: translateY(calc(100% + 100px));
    transition: transform .2s ease;
    box-shadow: var(--ops-shadow);
  }
  .task-rail.mobile-open { transform: translateY(0); }

  .mission-inspector {
    position: absolute;
    z-index: 20;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-height: min(42dvh, 340px);
    overflow: auto;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .34);
  }

  .mission-inspector::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: -4px auto 10px;
    border-radius: 999px;
    background: #465164;
  }

  .mission-empty { min-height: 170px; justify-content: flex-start; gap: 9px; }
  .mission-empty h2 { font-size: 19px; }
  .mission-empty p { font-size: 12px; line-height: 1.45; }
  .mission-card { gap: 10px; }
  .mission-card h2 { font-size: 18px; }
  .mission-facts { display: none; }
  .parking-card .parking-summary-grid { display: grid; }
  .parking-card .parking-bike-scroll { max-height: 118px; }
  .mission-actions .ops-btn { min-height: 46px; }

  .performer-nav {
    margin: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }
  .performer-nav button {
    min-height: 58px;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1;
  }
  .performer-nav .ops-icon { width: 21px; height: 21px; }

  .performer-route:not([data-route-panel="work"]) { padding-bottom: 12px; }
  .performer-page-head,
  .shift-layout,
  .result-metrics,
  .results-grid,
  .profile-layout { width: min(100% - 24px, 620px); }
  .performer-page-head { padding: 20px 0 15px; }
  .performer-page-head h1 { font-size: 34px; }
  .performer-page-head p { max-width: 34ch; }

  .shift-layout,
  .results-grid,
  .profile-layout { grid-template-columns: 1fr; }
  .shift-primary { grid-row: auto; }
  .shift-card { min-height: 300px; padding: 18px; }
  .shift-card h2 { font-size: 24px; }
  .shift-card-action { align-items: stretch; flex-direction: column; }
  .shift-countdown { font-size: 32px; }
  .selfie-panel,
  .schedule-panel { padding: 15px; }
  .selfie-capture { grid-template-columns: 64px minmax(0, 1fr); }
  .selfie-preview { width: 64px; height: 64px; }
  .selfie-action { grid-column: 1 / -1; min-height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--ops-surface-3); }

  .result-metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .result-metric { min-height: 98px; padding: 13px; }
  .result-metric b { font-size: 26px; }
  .results-grid { padding-top: 10px; }
  .profile-actions { grid-column: auto; flex-direction: column; }
  .profile-actions .ops-btn { width: 100%; }
  .profile-settings { grid-column: auto; align-items: stretch; flex-direction: column; }
  .theme-choice { min-width: 0; width: 100%; }
  .profile-hero { min-height: 220px; }
  .profile-big-avatar { margin-inline: auto; }
}

@media (max-width: 430px) {
  .performer-app { grid-template-rows: 72px minmax(0, 1fr) calc(76px + env(safe-area-inset-bottom)); }
  .worker-avatar { width: 42px; height: 42px; font-size: 14px; }
  .worker-copy b { font-size: 15px; }
  .worker-copy small { font-size: 12px; }
  .performer-nav button { min-height: 62px; font-size: 11px; }
  .performer-nav .ops-icon { width: 23px; height: 23px; }
  .mission-card h2 { font-size: 20px; }
  .mission-card p,.mission-actions .ops-btn,.task-row-copy b { font-size: 13px; }
  .task-row-copy small { font-size: 11px; }
  .ops-btn { min-height: 44px; }
  .performer-page-head h1 { font-size: 36px; }
  .profile-row span,.profile-row b { font-size: 13px; }
  .staged-photo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  html.ios-standalone { -webkit-text-size-adjust: 112%; }
  html.ios-standalone .performer-app { grid-template-rows: 78px minmax(0, 1fr) calc(82px + env(safe-area-inset-bottom)); }
  html.ios-standalone .performer-topbar { padding-inline: 16px; }
  html.ios-standalone .worker-avatar { width: 46px; height: 46px; font-size: 15px; }
  html.ios-standalone .worker-copy b { max-width: 165px; font-size: 16px; }
  html.ios-standalone .worker-copy small { max-width: 170px; font-size: 13px; }
  html.ios-standalone .worker-live-cluster .ops-status { min-height: 30px; padding-inline: 10px; font-size: 11px; }
  html.ios-standalone .performer-nav { margin: 7px 8px calc(8px + env(safe-area-inset-bottom)); }
  html.ios-standalone .performer-nav button { min-height: 68px; gap: 5px; font-size: 12px; }
  html.ios-standalone .performer-nav .ops-icon { width: 25px; height: 25px; }
  html.ios-standalone .mission-inspector { max-height: min(48dvh, 390px); padding: 17px; }
  html.ios-standalone .mission-card h2 { font-size: 22px; }
  html.ios-standalone .mission-card p,html.ios-standalone .mission-actions .ops-btn { font-size: 14px; }
  html.ios-standalone .mission-actions .ops-btn { min-height: 50px; }
  html.ios-standalone .task-row { min-height: 58px; }
  html.ios-standalone .task-row-copy b { font-size: 14px; }
  html.ios-standalone .task-row-copy small { font-size: 12px; }
  html.ios-standalone .task-charge { min-width: 48px; min-height: 32px; font-size: 12px; }
  html.ios-standalone .performer-page-head h1 { font-size: 39px; }
  html.ios-standalone .performer-page-head p,html.ios-standalone .profile-settings p { font-size: 14px; }
  html.ios-standalone .profile-row { padding-block: 15px; }
  html.ios-standalone .profile-row span,html.ios-standalone .profile-row b { font-size: 14px; }
  html.ios-standalone .shift-card h2 { font-size: 27px; }
  html.ios-standalone .shift-countdown { font-size: 36px; }
  html.ios-standalone .ops-field > span,html.ios-standalone .selfie-capture b { font-size: 14px; }
  html.ios-standalone .ops-input,html.ios-standalone .ops-select,html.ios-standalone .ops-textarea { font-size: 16px; }
}

@media (max-width: 380px) {
  .worker-copy b { max-width: 118px; }
  .worker-copy small { max-width: 125px; }
  .performer-nav button { font-size: 9px; }
  .mission-inspector { max-height: 215px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .performer-app { grid-template-rows: 52px minmax(0, 1fr); }
  .performer-topbar { min-height: 52px; }
  .performer-nav {
    position: fixed;
    z-index: 50;
    top: 58px;
    left: 8px;
    bottom: 8px;
    width: 64px;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
  }
  .performer-nav button { font-size: 8px; }
  .performer-route { grid-row: 2; }
  .work-layout { margin-left: 72px; }
  .task-rail { position: absolute; left: 8px; top: 8px; bottom: 8px; right: auto; width: 250px; max-height: none; transform: none; }
  .work-map-shell { left: 266px; right: 300px; top: 0; bottom: 0; }
  .mission-inspector { left: auto; right: 8px; top: 8px; bottom: 8px; width: 284px; max-height: none; }
  .map-controls { bottom: 10px; }
  .mission-facts { display: grid; }
  .mission-inspector::before { display: none; }
}
.install-help-link { display:inline-flex; align-items:center; justify-content:center; color:var(--ops-cyan); font-size:12px; font-weight:700; text-align:center; text-underline-offset:3px; }

.app-control-gate {
  position: fixed; inset: 0; z-index: 10000; padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  display: grid; place-items: center; background: #f6f5f1; color: #17191c;
}
.app-control-gate[hidden] { display: none; }
.app-control-card { width: min(100%, 430px); display: grid; gap: 15px; justify-items: center; padding: 30px 24px; border: 1px solid #e5e2da; border-radius: 28px; background: #fff; box-shadow: 0 18px 50px rgba(28,30,34,.12); text-align: center; }
.app-control-card h1 { margin: 0; font-size: clamp(26px, 7vw, 36px); line-height: 1.05; }
.app-control-card p { margin: 0 0 5px; color: #68717b; line-height: 1.5; }
.app-control-card .ops-btn { width: 100%; }
html[data-theme="dark"] .app-control-gate { background: #090f16; color: #f4f6f8; }
html[data-theme="dark"] .app-control-card { border-color: #253342; background: #121c26; }

.notification-badge { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #ff4d5b; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.notification-badge[hidden] { display: none; }
html[data-theme="dark"] .notification-badge { border-color: #0b1219; }

.app-inbox { display: grid; gap: 10px; }
.app-inbox-loading { padding: 34px; text-align: center; color: var(--ops-muted); }
.app-inbox-item { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 14px; border: 1px solid var(--ops-line); border-radius: 16px; background: var(--ops-panel); color: var(--ops-text); text-align: left; }
.app-inbox-item.unread { border-color: rgba(0,156,208,.38); box-shadow: inset 3px 0 0 var(--ops-cyan); }
.app-inbox-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,212,0,.15); font-size: 20px; }
.app-inbox-item b,.app-inbox-item p,.app-inbox-item small { display: block; }
.app-inbox-item p { margin: 5px 0; color: var(--ops-muted); line-height: 1.4; }
.app-inbox-item small { color: var(--ops-muted); }

.duty-check-alert {
  position: fixed; z-index: 180; left: 50%; top: calc(12px + env(safe-area-inset-top)); bottom: auto; transform: translateX(-50%);
  width: min(760px, calc(100vw - 28px)); display: grid; grid-template-columns: 52px minmax(0,1fr) auto auto;
  gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(255,196,0,.75); border-radius: 22px;
  background: color-mix(in srgb, var(--ops-panel) 94%, #ffd400 6%); color: var(--ops-text);
  box-shadow: 0 18px 60px rgba(20,25,30,.25), 0 0 0 4px rgba(255,212,0,.1);
}
.duty-check-alert.overdue { border-color: rgba(255,77,91,.72); box-shadow: 0 18px 60px rgba(20,25,30,.25),0 0 0 4px rgba(255,77,91,.1); }
.duty-alert-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--ops-yellow); color: #121417; }
.duty-alert-icon .ops-icon { width: 27px; height: 27px; }
.duty-check-alert b,.duty-check-alert small { display: block; }
.duty-check-alert b { margin: 2px 0; font-size: 17px; }
.duty-check-alert small { color: var(--ops-muted); }
.duty-check-alert strong { min-width: 74px; color: var(--ops-text); font-size: 23px; font-variant-numeric: tabular-nums; text-align: center; }
.duty-check-alert strong.overdue { min-width: 145px; color: var(--ops-red); font-size: 13px; line-height: 1.25; }
.duty-check-alert .ops-btn { white-space: nowrap; }
body:has(#task-action-modal.visible) .duty-check-alert { display:none; }

.duty-shift-card { margin-top: 14px; padding: 22px; }
.duty-shift-card h2 { margin: 4px 0; }
.duty-shift-card p { margin: 0; color: var(--ops-muted); }
.duty-shift-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0; border: 1px solid var(--ops-line); border-radius: 18px; overflow: hidden; }
.duty-shift-metrics span { min-height: 92px; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 12px; border-right: 1px solid var(--ops-line); }
.duty-shift-metrics span:last-child { border-right: 0; }
.duty-shift-metrics b { font-size: 28px; }
.duty-shift-metrics small { color: var(--ops-muted); }
.duty-shift-metrics .danger b { color: var(--ops-red); }
.duty-history-list { display: grid; }
.duty-history-list > div:not(.ops-empty) { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--ops-line); }
.duty-history-list b,.duty-history-list small { display: block; }
.duty-history-list small { margin-top: 3px; color: var(--ops-muted); }
.duty-history-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ops-muted); }
.duty-history-dot.ok { background: var(--ops-green); }
.duty-history-dot.late { background: var(--ops-red); }

.duty-photo-flow { display: grid; gap: 18px; }
.duty-photo-flow h3 { margin: 0 0 5px; font-size: 23px; }
.duty-photo-flow p { margin: 0; color: var(--ops-muted); line-height: 1.45; }
.duty-photo-deadline { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-radius: 16px; background: rgba(255,212,0,.13); }
.duty-photo-deadline b { font-size: 25px; font-variant-numeric: tabular-nums; }
.duty-photo-deadline.overdue { background: rgba(255,77,91,.11); color: var(--ops-red); }
.duty-photo-deadline b.overdue { max-width: 220px; font-size: 14px; text-align: right; }
.duty-photo-rules { display: grid; grid-template-columns: 30px 1fr; gap: 11px 12px; padding: 16px; border: 1px solid var(--ops-line); border-radius: 16px; }
.duty-photo-rules > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ops-yellow); color: #17191c; font-weight: 900; }
.duty-late-note { padding: 14px 16px; border: 1px solid rgba(255,77,91,.32); border-radius: 14px; background: rgba(255,77,91,.08); color: var(--ops-red); line-height: 1.45; }

.performer-charger-popover-card { width: 100%; min-width: 0; gap: 14px; overflow: hidden; }
.performer-charger-popover-card header { min-width: 0; align-items: flex-start; }
.performer-charger-popover-card .performer-parking-title,.performer-charger-popover-card .performer-parking-title > div { min-width: 0; flex: 1 1 auto; }
.performer-charger-popover-card .performer-parking-title h2 { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.performer-charger-popover-card .performer-parking-title small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.performer-charger-popover-card header > .ops-icon-btn { flex: 0 0 auto; }
.performer-charger-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #111820; border-radius: 13px; background: var(--ops-yellow); color: #111820; font-size: 22px; }
.charger-charge-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--ops-line); border-radius: 14px; }
.charger-charge-grid > span { min-height: 78px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 8px 4px; border-right: 1px solid var(--ops-line); text-align: center; }
.charger-charge-grid > span:last-child { border-right: 0; }
.charger-charge-grid b { font-size: 24px; line-height: 1; }
.charger-charge-grid small { color: var(--ops-muted); font-size: 9px; line-height: 1.3; }
.charger-charge-grid .green b { color: var(--ops-green); }
.charger-charge-grid .amber b { color: var(--ops-amber); }
.charger-charge-grid .red b { color: var(--ops-red); }
.charger-unknown { margin: -4px 0 0; color: var(--ops-muted); font-size: 11px; }
.performer-summary-charger { font-size: 17px; }

@media (max-width: 700px) {
  .duty-check-alert { grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; top: calc(8px + env(safe-area-inset-top)); bottom: auto; width: calc(100vw - 20px); padding: 10px; border-radius: 17px; }
  .duty-alert-icon { width: 44px; height: 44px; border-radius: 13px; }
  .duty-check-alert .ops-kicker,.duty-check-alert small { display: none; }
  .duty-check-alert b { font-size: 14px; }
  .duty-check-alert strong { min-width: 62px; font-size: 19px; }
  .duty-check-alert strong.overdue { min-width: 82px; max-width: 82px; font-size: 10px; }
  .duty-check-alert .ops-btn { grid-column: 1 / -1; width: 100%; min-height: 42px; }
  .duty-shift-card { padding: 16px; }
  .duty-shift-metrics b { font-size: 23px; }
  .duty-shift-metrics small { font-size: 10px; text-align: center; }
  .duty-history-list .ops-status { font-size: 10px; }
  .performer-bike-popover { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .performer-charger-popover-card { padding: 14px; }
  .performer-charger-popover-card .performer-parking-title h2 { font-size: 18px; line-height: 1.12; }
  .performer-charger-popover-card footer { grid-template-columns: 1fr 1fr; }
  .performer-charger-popover-card footer .ops-status { grid-column: 1 / -1; justify-self: start; }
  .charger-charge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .charger-charge-grid > span { min-height: 68px; border-bottom: 1px solid var(--ops-line); }
  .charger-charge-grid > span:nth-child(2n) { border-right: 0; }
  .charger-charge-grid > span:nth-last-child(-n+2) { border-bottom: 0; }
  .charger-charge-grid b { font-size: 21px; }
}
.charger-detail-modal { display: grid; gap: 16px; }
.charger-detail-modal > p { margin: 0; color: var(--ops-muted); }
.charger-detail-modal .cabinet-inventory { padding: 14px; box-shadow: none; }
.duty-location-note{padding:11px 13px;border:1px solid rgba(40,191,242,.25);border-radius:12px;background:rgba(40,191,242,.07);color:var(--ops-muted);font-size:12px;line-height:1.45}

body.duty-scout-workspace .performer-route[data-route-panel="work"] .task-rail,body.duty-scout-workspace .performer-route[data-route-panel="work"] .work-map-shell,body.duty-scout-workspace .performer-route[data-route-panel="work"] .mission-inspector{display:none!important}body.duty-scout-workspace .performer-route[data-route-panel="work"] .work-layout{display:block;overflow:auto;background:var(--ops-bg)}.duty-workspace{min-height:100%;padding:18px}.duty-workspace[hidden]{display:none}.duty-console{width:min(1180px,100%);display:grid;gap:15px;margin:0 auto}.duty-console-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px;border:1px solid var(--ops-line);border-radius:24px;background:var(--ops-panel);box-shadow:var(--ops-shadow)}.duty-console-head h1{margin:8px 0 5px;font-size:clamp(25px,4vw,42px);line-height:1.05}.duty-console-head p,.duty-console-fresh small{margin:0;color:var(--ops-muted)}.duty-console-fresh{display:grid;gap:4px;text-align:right}.duty-console-batteries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--ops-line);border-radius:22px;background:var(--ops-panel);box-shadow:var(--ops-shadow)}.duty-console-batteries article{min-height:145px;display:grid;align-content:center;gap:4px;padding:20px;border-right:1px solid var(--ops-line)}.duty-console-batteries article:last-child{border-right:0}.duty-console-batteries span,.duty-console-batteries small{color:var(--ops-muted)}.duty-console-batteries b{font-size:clamp(34px,6vw,58px);line-height:1}.duty-console-batteries .green b{color:var(--ops-green)}.duty-console-batteries .amber b{color:var(--ops-amber)}.duty-console-batteries .red b{color:var(--ops-red)}.duty-console-stack{height:16px;display:flex;overflow:hidden;border-radius:999px;background:var(--ops-panel)}.duty-console-stack span{min-width:2px}.duty-console-stack .green{background:var(--ops-green)}.duty-console-stack .amber{background:var(--ops-amber)}.duty-console-stack .red{background:var(--ops-red)}.duty-console-stack .muted{background:var(--ops-muted)}.duty-console-actions{display:flex;align-items:center;gap:10px}.duty-console-actions .ops-btn{min-width:180px;min-height:50px}.duty-console-actions>span{margin-left:auto;color:var(--ops-muted);font-weight:750}.duty-console-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:14px}.duty-console-grid>.ops-panel{padding:20px}.duty-console-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:16px;overflow:hidden;border:1px solid var(--ops-line);border-radius:17px}.duty-console-stat-grid span{min-height:100px;display:grid;place-content:center;gap:3px;padding:10px;border-right:1px solid var(--ops-line);text-align:center}.duty-console-stat-grid span:last-child{border-right:0}.duty-console-stat-grid b{font-size:28px}.duty-console-stat-grid small{color:var(--ops-muted)}.duty-console-stat-grid .green b{color:var(--ops-green)}.duty-console-stat-grid .red b{color:var(--ops-red)}.duty-console-history>div:last-child{display:grid;gap:7px;margin-top:12px}.duty-console-history article{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;padding:10px;border:1px solid var(--ops-line);border-radius:12px}.duty-console-history article div{display:grid;gap:2px}.duty-console-history small{color:var(--ops-muted)}.duty-break-banner{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:15px 18px;border:1px solid rgba(255,212,0,.48);border-radius:18px;background:color-mix(in srgb,var(--ops-yellow) 12%,var(--ops-panel))}.duty-break-banner>div{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center}.duty-break-banner b{grid-row:1/3;grid-column:2;font-size:29px;font-variant-numeric:tabular-nums}.duty-break-banner small{color:var(--ops-muted)}.duty-console-empty{width:min(560px,calc(100% - 24px));display:grid;justify-items:center;gap:13px;margin:8vh auto;padding:34px;border:1px solid var(--ops-line);border-radius:27px;background:var(--ops-panel);box-shadow:var(--ops-shadow);text-align:center}.duty-console-empty h1,.duty-console-empty p{margin:0}.duty-console-empty p{color:var(--ops-muted);line-height:1.5}.duty-console-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:var(--ops-yellow);color:#16191d;font-size:27px}.duty-exchange-form,.duty-break-form{display:grid;gap:16px}.duty-exchange-site{display:flex;gap:12px;align-items:center}.duty-exchange-site div{display:grid;gap:3px}.duty-exchange-site small{color:var(--ops-muted)}.duty-exchange-form fieldset{display:grid;gap:9px;padding:0;border:0}.duty-success-choice,.duty-break-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.duty-success-choice label,.duty-break-choices label{cursor:pointer}.duty-success-choice input,.duty-break-choices input{position:absolute;opacity:0;pointer-events:none}.duty-success-choice span,.duty-break-choices span{min-height:48px;display:grid;place-items:center;border:1px solid var(--ops-line);border-radius:14px;background:var(--ops-panel);font-weight:850}.duty-success-choice label:first-child input:checked+span{border-color:var(--ops-green);background:rgba(47,202,123,.12);color:var(--ops-green)}.duty-success-choice label:last-child input:checked+span{border-color:var(--ops-red);background:rgba(255,77,91,.1);color:var(--ops-red)}.duty-break-choices{grid-template-columns:repeat(3,1fr)}.duty-break-choices input:checked+span{border-color:var(--ops-yellow);background:rgba(255,212,0,.13)}.duty-break-choices label.disabled{opacity:.4;cursor:not-allowed}.duty-exchange-problem{display:grid;gap:12px}.duty-exchange-problem[hidden],.duty-exchange-problem [hidden]{display:none!important}
.cabinet-inventory{padding:18px;border:1px solid var(--ops-line);border-radius:22px;background:var(--ops-panel);box-shadow:var(--ops-shadow)}.cabinet-inventory .ops-section-head>span{color:var(--ops-muted);font-weight:750}.cabinet-slot-grid{display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:8px;margin-top:15px;padding:14px;border-radius:18px;background:color-mix(in srgb,var(--ops-yellow) 14%,var(--ops-bg))}.cabinet-slot{min-height:70px;display:grid;place-items:center;align-content:center;gap:4px;border:2px solid var(--ops-line);border-radius:12px;background:var(--ops-panel);color:var(--ops-text);cursor:help}.cabinet-slot small{color:var(--ops-muted);font-weight:800}.cabinet-slot b{font-size:16px}.cabinet-slot.high{border-color:var(--ops-green);background:color-mix(in srgb,var(--ops-green) 13%,var(--ops-panel))}.cabinet-slot.mid{border-color:var(--ops-amber);background:color-mix(in srgb,var(--ops-amber) 13%,var(--ops-panel))}.cabinet-slot.low{border-color:var(--ops-red);background:color-mix(in srgb,var(--ops-red) 12%,var(--ops-panel))}.cabinet-slot.empty{border-style:dashed;opacity:.65}.cabinet-slot-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;color:var(--ops-muted);font-size:12px}.cabinet-slot-legend span:before{content:"";width:9px;height:9px;display:inline-block;margin-right:5px;border-radius:50%;background:var(--ops-muted)}.cabinet-slot-legend .high:before{background:var(--ops-green)}.cabinet-slot-legend .mid:before{background:var(--ops-amber)}.cabinet-slot-legend .low:before{background:var(--ops-red)}
@media(max-width:760px){.duty-workspace{padding:10px 10px calc(90px + env(safe-area-inset-bottom))}.duty-console-head{padding:17px;border-radius:20px}.duty-console-head{display:grid}.duty-console-fresh{text-align:left}.duty-console-batteries{grid-template-columns:1fr 1fr}.duty-console-batteries article{min-height:112px;padding:15px}.duty-console-batteries article:nth-child(2){border-right:0}.duty-console-batteries article:nth-child(-n+2){border-bottom:1px solid var(--ops-line)}.duty-console-actions{display:grid;grid-template-columns:1fr 1fr}.duty-console-actions .ops-btn{min-width:0}.duty-console-actions>span{grid-column:1/-1;margin:0;text-align:center}.duty-console-grid{grid-template-columns:1fr}.duty-console-grid>.ops-panel{padding:15px}.duty-console-stat-grid{grid-template-columns:1fr 1fr}.duty-console-stat-grid span:nth-child(2){border-right:0}.duty-console-stat-grid span:nth-child(-n+2){border-bottom:1px solid var(--ops-line)}.duty-break-banner{align-items:stretch;flex-direction:column}.duty-break-banner .ops-btn{width:100%}}
@media(max-width:760px){.cabinet-inventory{padding:14px}.cabinet-slot-grid{grid-template-columns:repeat(5,minmax(42px,1fr));gap:6px;padding:10px}.cabinet-slot{min-height:60px;border-radius:10px}.cabinet-slot b{font-size:14px}}
