/* IOVO Tech Portal — Ground-up Living-Sea Glass Redesign (Aqua / Day / Night)
   Phone-first (390x844 iPhone / Xcode PWA) to iPad & Desktop master-detail split.
   Single-blur glass law: translucent panels float cleanly over IovoAquaSea without muddy nested blurs. */

:root {
  color-scheme: dark;
  --tp-font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --tp-font-display: 'Raleway', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tp-font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --tp-ease: cubic-bezier(.16, 1, .3, 1);
  --tp-safe-t: env(safe-area-inset-top, 0px);
  --tp-safe-b: env(safe-area-inset-bottom, 0px);
  --tp-safe-l: env(safe-area-inset-left, 0px);
  --tp-safe-r: env(safe-area-inset-right, 0px);

  /* Default Aqua living-sea glass */
  --tp-page-bg: #02202b;
  --tp-glass: rgba(0, 30, 42, .34);
  --tp-glass-strong: rgba(0, 26, 38, .58);
  --tp-glass-hover: rgba(0, 44, 58, .44);
  --tp-field: rgba(0, 20, 30, .42);
  --tp-field-hover: rgba(0, 34, 48, .52);
  --tp-border: rgba(119, 236, 223, .28);
  --tp-border-strong: rgba(119, 236, 223, .58);
  --tp-shadow: 0 18px 46px rgba(0, 12, 20, .34), inset 0 1px 0 rgba(176, 250, 244, .22);
  --tp-shadow-sm: 0 10px 26px rgba(0, 12, 20, .24), inset 0 1px 0 rgba(176, 250, 244, .18);
  --tp-ink: #f1f9fc;
  --tp-ink-2: rgba(226, 246, 250, .78);
  --tp-ink-3: rgba(196, 232, 240, .56);
  --tp-accent: #52e5d4;
  --tp-accent-ink: #032129;
  --tp-accent-soft: rgba(82, 229, 212, .16);
  --tp-cta: #ff8a3d;
  --tp-cta-hover: #ff9a57;
  --tp-cta-ink: #1a0b02;
  --tp-success: #42e09d;
  --tp-success-soft: rgba(66, 224, 157, .16);
  --tp-warning: #f7be59;
  --tp-warning-soft: rgba(247, 190, 89, .16);
  --tp-danger: #ff7b7b;
  --tp-danger-soft: rgba(255, 123, 123, .15);
  --tp-blur: 18px;
}
html.native-ios { --tp-safe-t: 0px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --tp-page-bg: #070606;
  --tp-glass: rgba(18, 14, 12, .80);
  --tp-glass-strong: rgba(14, 11, 9, .92);
  --tp-glass-hover: rgba(28, 22, 18, .88);
  --tp-field: rgba(255, 240, 226, .055);
  --tp-field-hover: rgba(255, 240, 226, .095);
  --tp-border: rgba(255, 200, 156, .14);
  --tp-border-strong: rgba(244, 121, 32, .48);
  --tp-shadow: 0 20px 50px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 224, 198, .08);
  --tp-shadow-sm: 0 10px 26px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 224, 198, .06);
  --tp-ink: #f6f3ef;
  --tp-ink-2: rgba(242, 232, 222, .76);
  --tp-ink-3: rgba(226, 208, 192, .54);
  --tp-accent: #f47920;
  --tp-accent-ink: #1a0b02;
  --tp-accent-soft: rgba(244, 121, 32, .16);
  --tp-cta: #f47920;
  --tp-cta-hover: #ff8f3d;
  --tp-cta-ink: #1a0b02;
  --tp-success: #3ecf8e;
  --tp-success-soft: rgba(62, 207, 142, .15);
  --tp-warning: #f5b041;
  --tp-warning-soft: rgba(245, 176, 65, .15);
  --tp-danger: #ff7b7b;
  --tp-danger-soft: rgba(255, 123, 123, .14);
  --tp-map-grid: rgba(255, 176, 110, .10);
  --tp-map-street: rgba(255, 214, 180, .18);
  --tp-map-water: rgba(244, 121, 32, .22);
  --tp-map-land: #17110d;
  --tp-map-edge: #0a0807;
  --tp-map-route: #f47920;
  --tp-halo: rgba(244, 121, 32, .38);
  --tp-chip: rgba(255, 236, 218, .065);
}

:root[data-theme="light"] {
  color-scheme: light;
  --tp-page-bg: #eef4f7;
  --tp-glass: rgba(255, 255, 255, .72);
  --tp-glass-strong: rgba(255, 255, 255, .88);
  --tp-glass-hover: rgba(255, 255, 255, .86);
  --tp-field: rgba(11, 34, 46, .045);
  --tp-field-hover: rgba(11, 34, 46, .075);
  --tp-border: rgba(11, 44, 58, .12);
  --tp-border-strong: rgba(8, 126, 139, .38);
  --tp-shadow: 0 18px 42px rgba(10, 36, 52, .10), inset 0 1px 0 rgba(255, 255, 255, .85);
  --tp-shadow-sm: 0 8px 22px rgba(10, 36, 52, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
  --tp-ink: #0b1f2a;
  --tp-ink-2: #3d5b68;
  --tp-ink-3: #66818d;
  --tp-accent: #087f8c;
  --tp-accent-ink: #ffffff;
  --tp-accent-soft: rgba(8, 127, 140, .11);
  --tp-cta: #e86820;
  --tp-cta-hover: #f2742d;
  --tp-cta-ink: #ffffff;
  --tp-success: #11804f;
  --tp-success-soft: rgba(17, 128, 79, .11);
  --tp-warning: #9a6000;
  --tp-warning-soft: rgba(154, 96, 0, .12);
  --tp-danger: #c42b33;
  --tp-danger-soft: rgba(196, 43, 51, .10);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  background: var(--tp-page-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--tp-page-bg);
  color: var(--tp-ink);
  font: 15px/1.45 var(--tp-font-ui);
  overscroll-behavior-y: none;
}

html[data-sea-surface] body { background: transparent !important; }
body::before { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tp-accent-soft), 0 0 0 1.5px var(--tp-accent);
}

/* View-as controls live in the Profile account card, not a top banner. */
#techAccountCard .preview-exit-bar {
  position: static;
  inset: auto;
  min-height: 0;
  padding: 0;
  display: flex;
  background: none;
  box-shadow: none;
}
#techAccountCard .preview-exit-bar button { min-height: 44px; }
body.tech-preview { padding-top: 0; }

/* ---------- Shell Container ---------- */
.app-shell {
  position: relative; z-index: 2;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: calc(10px + var(--tp-safe-t)) calc(14px + var(--tp-safe-r)) calc(36px + var(--tp-safe-b)) calc(14px + var(--tp-safe-l));
}

/* ---------- Floating Glass Topbar (56px, single row, IOVO · Tech) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 56px;
  padding: 7px 10px 7px 12px;
  border: 1px solid var(--tp-border-strong);
  border-radius: 20px;
  background: var(--tp-glass);
  box-shadow: var(--tp-shadow);
  backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(145%);
}

.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto;
}
.brand-mark {
  display: grid; place-items: center;
  flex: 0 0 34px; width: 34px; height: 34px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0;
}
.brand-mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
.brand-copy {
  display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap;
}
.brand-tech-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  background: var(--tp-accent-soft);
  border: 1px solid var(--tp-border);
  color: var(--tp-accent);
  font: 700 11px/1.1 var(--tp-font-ui);
  letter-spacing: .04em; text-transform: uppercase;
}
.brand-dealer {
  display: none;
  color: var(--tp-ink-3);
  font-size: 12px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.top-actions {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
}

.top-btn, .theme-btn, .lang-btn, .iovo-mail-topbar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; min-width: 40px;
  padding: 0 11px;
  border: 1px solid var(--tp-border);
  border-radius: 13px;
  background: var(--tp-field);
  color: var(--tp-ink);
  font: 600 13px/1 var(--tp-font-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .14s var(--tp-ease);
}
.top-btn:hover, .theme-btn:hover, .lang-btn:hover, .iovo-mail-topbar-btn:hover {
  background: var(--tp-field-hover);
  border-color: var(--tp-border-strong);
}
.top-btn:active, .theme-btn:active, .lang-btn:active, .iovo-mail-topbar-btn:active {
  transform: scale(.97);
}
.lang-btn {
  min-width: 42px; padding: 0 10px;
  font: 600 12px/1 var(--tp-font-mono);
  letter-spacing: .04em;
  color: var(--tp-accent);
}
.theme-btn { padding: 0; width: 40px; font-size: 16px; }
.iovo-mail-topbar-btn {
  border-color: var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-ink);
  font-weight: 700;
}
.iovo-mail-topbar-btn svg { color: var(--tp-accent); }

/* ---------- Offline Sync Strip (only visible when offline or uploading) ---------- */
.tech-sync-strip {
  position: sticky; top: calc(8px + var(--tp-safe-t)); z-index: 25;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: 10px; padding: 8px 14px;
  border: 1px solid var(--tp-warning);
  border-radius: 16px;
  background: var(--tp-glass-strong);
  box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(var(--tp-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(140%);
  color: var(--tp-ink); font-size: 13px; font-weight: 600; line-height: 1.3;
}
.tech-sync-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--tp-success); }
.tech-sync-strip[data-state="saving"] .tech-sync-dot { background: var(--tp-accent); animation: tp-pulse 1.1s infinite; }
.tech-sync-strip[data-state="offline"] .tech-sync-dot,
.tech-sync-strip[data-state="waiting"] .tech-sync-dot { background: var(--tp-warning); }
.tech-sync-text { flex: 1; min-width: 0; }
.tech-sync-btn {
  flex: 0 0 auto; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--tp-border-strong); border-radius: 999px;
  background: var(--tp-accent-soft); color: var(--tp-accent);
  font-size: 13px; font-weight: 700;
}
@keyframes tp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82, 229, 212, .45); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ---------- Compact Route Sub-Header (Jobs immediately above the fold!) ---------- */
.overview {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 12px;
  padding: 14px 2px 12px;
}
.overview-left { min-width: 0; display: grid; gap: 2px; }
.overview-title-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.overview h1 {
  margin: 0;
  font: 750 22px/1.15 var(--tp-font-display);
  letter-spacing: -.02em;
  color: var(--tp-ink);
}
.route-count-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--tp-glass); border: 1px solid var(--tp-border);
  font: 600 12px/1.2 var(--tp-font-mono);
  color: var(--tp-accent);
}
.route-count-pill strong { color: var(--tp-ink); font-weight: 700; }
.overview-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 0; color: var(--tp-ink-2); font-size: 13px;
}
.overview-meta strong { color: var(--tp-ink); font-weight: 600; }
.overview-dot { opacity: .45; }
.portal-date { margin: 0; color: var(--tp-ink-3); font-size: 12.5px; text-transform: none; }
.portal-date::first-letter { text-transform: uppercase; }
.route-progress-note { display: none; }

.overview-right {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* Sleek 2-pill Jobs | Calendar Switcher */
.tp-seg {
  display: inline-flex; padding: 3px;
  border-radius: 13px;
  border: 1px solid var(--tp-border);
  background: var(--tp-glass);
  backdrop-filter: blur(var(--tp-blur));
  -webkit-backdrop-filter: blur(var(--tp-blur));
}
.tp-seg button {
  min-height: 34px; padding: 0 13px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--tp-ink-2);
  font-size: 13px; font-weight: 700;
  transition: background .16s ease, color .16s ease;
}
.tp-seg button[aria-selected="true"] {
  background: var(--tp-accent); color: var(--tp-accent-ink);
}

/* Compact 1-line Company GPS Live Status Pill (Automatic — never an optional toggle box!) */
.location-sharing {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: var(--tp-glass);
  backdrop-filter: blur(var(--tp-blur));
  -webkit-backdrop-filter: blur(var(--tp-blur));
  color: var(--tp-ink-2);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.location-dot {
  width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: var(--tp-ink-3);
}
.location-sharing[data-state="Sharing"] {
  border-color: rgba(66, 224, 157, .48);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}
.location-sharing[data-state="Sharing"] .location-dot {
  background: var(--tp-success);
  box-shadow: 0 0 0 4px var(--tp-success-soft);
  animation: tp-pulse 1.8s infinite;
}
.location-sharing[data-state="Pending"] .location-dot { background: var(--tp-accent); }
.location-sharing[data-state="Unavailable"] {
  border-color: rgba(247, 190, 89, .48);
  background: var(--tp-warning-soft);
  color: var(--tp-warning);
}
.location-sharing[data-state="Unavailable"] .location-dot { background: var(--tp-warning); }
.location-sharing button {
  min-height: 26px; padding: 0 9px;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font-size: 11px; font-weight: 700;
}

/* ---------- Calendar Tab Host ---------- */
#aquaCalendarTech {
  margin-bottom: 14px;
}

/* ---------- Workspace Layout (Mobile 1-col -> Desktop 2-pane Living Glass) ---------- */
.workspace {
  display: grid;
  gap: 14px;
  align-items: start;
}

.glass-panel {
  border: 1px solid var(--tp-border);
  border-radius: 22px;
  background: var(--tp-glass);
  box-shadow: var(--tp-shadow);
  backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  overflow: hidden;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--tp-border);
}
.panel-head h2 {
  margin: 0;
  font: 700 14px/1.2 var(--tp-font-ui);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--tp-ink-2);
}
.job-count {
  font: 600 12px/1 var(--tp-font-mono);
  color: var(--tp-ink-3);
}

/* ---------- Job Cards (Crisp, Immediately Scannable) ---------- */
.jobs-list {
  display: grid; gap: 8px;
  padding: 10px;
}

.job-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px 14px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 17px;
  background: var(--tp-field);
  color: var(--tp-ink);
  text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .14s var(--tp-ease);
}
.job-card::before {
  content: attr(data-stop);
  grid-column: 1; grid-row: 1;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
  font: 700 13px/1 var(--tp-font-mono);
  font-variant-numeric: tabular-nums;
}
.job-card::after {
  content: '›';
  grid-column: 3; grid-row: 1;
  font-size: 20px; line-height: 1;
  color: var(--tp-ink-3);
  text-align: right;
}
.job-card-body {
  grid-column: 2; grid-row: 1;
  display: grid; gap: 4px; min-width: 0;
}
.job-card:hover {
  background: var(--tp-field-hover);
  border-color: var(--tp-border-strong);
}
.job-card.active {
  background: var(--tp-accent-soft);
  border-color: var(--tp-border-strong);
  box-shadow: inset 3px 0 0 var(--tp-accent);
}
.job-card:active { transform: scale(.99); }

.job-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.job-window {
  font: 600 12px/1.2 var(--tp-font-mono);
  color: var(--tp-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--tp-border);
  background: var(--tp-field);
  color: var(--tp-ink-2);
  font: 700 11px/1 var(--tp-font-ui);
  white-space: nowrap;
}
.status-chip[data-status="en_route"],
.status-chip[data-status="arrived"],
.status-chip[data-status="on_site"],
.status-chip[data-status="working"] {
  border-color: rgba(247, 190, 89, .42);
  background: var(--tp-warning-soft);
  color: var(--tp-warning);
}
.status-chip[data-status="completed"],
.status-chip[data-status="verified"] {
  border-color: rgba(66, 224, 157, .42);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}
.status-chip[data-status="no_access"],
.status-chip[data-status="canceled"] {
  border-color: rgba(255, 123, 123, .42);
  background: var(--tp-danger-soft);
  color: var(--tp-danger);
}

.job-name {
  display: block;
  font: 700 16.5px/1.25 var(--tp-font-ui);
  color: var(--tp-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.job-address {
  display: block;
  color: var(--tp-ink-2);
  font-size: 13px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.job-system {
  display: block;
  color: var(--tp-ink-3);
  font-size: 12px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Empty & Loading States */
.empty-state, .loading-state {
  display: grid; place-items: center;
  min-height: 240px; padding: 32px 20px;
  text-align: center; color: var(--tp-ink-2);
}
.empty-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 16px; border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft); color: var(--tp-accent);
  font: 700 20px/1 var(--tp-font-mono);
}
.empty-state h3 { margin: 0; font: 700 18px/1.2 var(--tp-font-display); color: var(--tp-ink); }
.empty-state p { max-width: 300px; margin: 8px auto 0; font-size: 13.5px; color: var(--tp-ink-2); }
.loading-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--tp-accent); animation: tp-dot .8s infinite alternate; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tp-dot { from { opacity: .3; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }

/* ---------- Job Detail Workspace ---------- */
.detail-panel { min-width: 0; }
.detail-shell { padding: 16px; }
.detail-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 13px;
  border: 1px solid var(--tp-border); border-radius: 12px;
  background: var(--tp-field); color: var(--tp-ink);
  font-size: 13.5px; font-weight: 700;
}
.back-btn:hover { border-color: var(--tp-border-strong); background: var(--tp-field-hover); }
.detail-type {
  font: 600 11px/1 var(--tp-font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--tp-ink-3);
}

/* Detail Hero */
.detail-hero {
  padding: 18px;
  border: 1px solid var(--tp-border-strong);
  border-radius: 18px;
  background: var(--tp-field);
}
.detail-hero-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.detail-order {
  font: 700 11px/1 var(--tp-font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--tp-accent);
}
.detail-hero h2 {
  margin: 0;
  font: 750 clamp(22px, 4.5vw, 30px)/1.12 var(--tp-font-display);
  letter-spacing: -.02em; color: var(--tp-ink);
}
.detail-hero-window {
  margin: 6px 0 0;
  color: var(--tp-ink-2);
  font: 500 13px/1.35 var(--tp-font-mono);
}

/* 3-up Quick Actions: Maps · Call · Record */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.quick-link, .call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 0 10px;
  border: 1px solid var(--tp-border);
  border-radius: 13px;
  background: var(--tp-glass-strong);
  color: var(--tp-ink);
  font: 700 13.5px/1 var(--tp-font-ui);
  text-decoration: none; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .14s var(--tp-ease);
}
.quick-link.is-primary {
  background: var(--tp-accent); color: var(--tp-accent-ink); border-color: transparent;
}
.quick-link:hover, .call-btn:hover { border-color: var(--tp-border-strong); filter: brightness(1.06); }
.quick-link:active, .call-btn:active { transform: scale(.98); }
.qa-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-link.is-primary .qa-icon { stroke: currentColor; }
.call-btn .rec-dot { fill: var(--tp-danger); stroke: none; }

/* 5-Step Progress Rail */
.ladder-wrap {
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  background: var(--tp-field);
}
.ladder-title {
  margin: 0 0 12px;
  font: 700 12px/1 var(--tp-font-ui);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--tp-ink-3);
}
.status-ladder {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
}
.ladder-step {
  position: relative; display: grid; justify-items: center; gap: 6px;
  min-width: 0; color: var(--tp-ink-3);
  font: 600 10px/1.15 var(--tp-font-ui); text-align: center;
}
.ladder-step::before {
  content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: var(--tp-border);
}
.ladder-step:first-child::before { display: none; }
.ladder-dot {
  position: relative; z-index: 1; width: 15px; height: 15px;
  border-radius: 50%; border: 2px solid var(--tp-page-bg);
  background: var(--tp-ink-3);
}
.ladder-step.done { color: var(--tp-ink-2); }
.ladder-step.done::before, .ladder-step.current::before { background: var(--tp-accent); }
.ladder-step.done .ladder-dot { background: var(--tp-accent); }
.ladder-step.current { color: var(--tp-accent); }
.ladder-step.current .ladder-dot {
  background: var(--tp-accent);
  box-shadow: 0 0 0 4px var(--tp-accent-soft);
}

/* Job Facts Card */
.facts {
  display: grid;
  margin-top: 14px;
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  background: var(--tp-field);
  overflow: hidden;
}
.fact { padding: 13px 16px; min-width: 0; }
.fact + .fact { border-top: 1px solid var(--tp-border); }
.fact-label {
  display: block; margin-bottom: 4px;
  font: 600 10px/1.2 var(--tp-font-mono);
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--tp-ink-3);
}
.fact-value {
  display: block; color: var(--tp-ink);
  font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
a.fact-value { color: var(--tp-accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Evidence & Closeout Checklist ---------- */
.checklist-panel {
  margin-top: 18px;
}
.checklist-head h3 {
  margin: 0; font: 700 18px/1.2 var(--tp-font-display); color: var(--tp-ink);
}
.checklist-head p {
  margin: 4px 0 0; font-size: 13px; color: var(--tp-ink-2);
}

.closeout-guide {
  margin-top: 12px; border: 1px solid var(--tp-border); border-radius: 14px; background: var(--tp-field);
}
.closeout-guide summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 0 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none;
}
.closeout-guide summary::-webkit-details-marker { display: none; }
.closeout-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; padding: 4px 14px 14px; border-top: 1px solid var(--tp-border);
}
.closeout-kicker { display: block; margin: 8px 0 6px; font-size: 12px; font-weight: 700; color: var(--tp-accent); }
.closeout-guide ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 6px; font-size: 13px; color: var(--tp-ink-2); }

.checklist-progress {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ratio copy" "track track";
  align-items: center; gap: 8px 12px;
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--tp-border); border-radius: 15px;
  background: var(--tp-field);
}
#checklistProgressRatio {
  grid-area: ratio;
  font: 700 18px/1 var(--tp-font-mono);
  color: var(--tp-accent);
}
.checklist-progress[data-complete="true"] #checklistProgressRatio { color: var(--tp-success); }
.checklist-progress-copy { grid-area: copy; display: grid; gap: 2px; min-width: 0; }
.checklist-progress-copy span { font-size: 13.5px; font-weight: 700; color: var(--tp-ink); }
.checklist-progress-copy small { font-size: 12px; color: var(--tp-ink-3); }
.checklist-progress-track {
  grid-area: track; height: 6px; overflow: hidden;
  border-radius: 999px; background: var(--tp-border);
}
.checklist-progress-track span {
  display: block; height: 100%; width: 0;
  border-radius: inherit; background: var(--tp-accent);
  transition: width .28s var(--tp-ease);
}
.checklist-progress[data-complete="true"] .checklist-progress-track span { background: var(--tp-success); }

.checklist-groups { display: grid; gap: 16px; margin-top: 14px; }
.checklist-group { display: grid; gap: 10px; }
.checklist-group-title {
  display: flex; align-items: baseline; gap: 8px; margin: 0 2px;
  font: 700 11px/1.2 var(--tp-font-mono);
  letter-spacing: .09em; text-transform: uppercase; color: var(--tp-ink-3);
}
.checklist-item {
  padding: 12px;
  border: 1px solid var(--tp-border); border-radius: 16px;
  background: var(--tp-field);
  scroll-margin: 88px 0 140px;
}
.checklist-item.done { border-color: rgba(66, 224, 157, .38); }
.checklist-item.missing { border-color: var(--tp-danger); box-shadow: 0 0 0 3px var(--tp-danger-soft); }
.checklist-item.busy { pointer-events: none; opacity: .66; }

.checklist-item-head { display: flex; align-items: center; gap: 11px; }
.checklist-state-icon {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  font: 700 13px/1 var(--tp-font-ui); color: var(--tp-accent);
}
.checklist-state-icon .cl-ico {
  display: block; width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.checklist-item.missing .checklist-state-icon {
  border-color: var(--tp-danger); background: var(--tp-danger-soft); color: var(--tp-danger);
}
.checklist-item.done .checklist-state-icon {
  border-color: var(--tp-success); background: var(--tp-success); color: #041a13;
}
.checklist-item-title { min-width: 0; flex: 1; display: grid; gap: 2px; }
.checklist-item-title strong { font: 600 15px/1.3 var(--tp-font-ui); color: var(--tp-ink); }
.checklist-badge { font-size: 12px; color: var(--tp-ink-3); }
.checklist-item.done .checklist-badge { color: var(--tp-success); }

.checklist-controls { display: grid; gap: 10px; margin-top: 12px; }
.checklist-controls label:not(.capture-button) { display: block; font-size: 12px; font-weight: 600; color: var(--tp-ink-2); }
.checklist-controls input,
.checklist-controls select,
.checklist-controls textarea {
  width: 100%; min-width: 0;
  border: 1px solid var(--tp-border); border-radius: 12px;
  background: var(--tp-glass-strong); color: var(--tp-ink);
  font-size: max(16px, 1rem);
}
.checklist-controls input, .checklist-controls select { min-height: 48px; padding: 0 12px; }
.checklist-controls textarea { min-height: 104px; padding: 12px; line-height: 1.45; resize: vertical; }
.checklist-controls input::placeholder, .checklist-controls textarea::placeholder { color: var(--tp-ink-3); }
.field-error { display: block; margin-top: 4px; color: var(--tp-danger); font-size: 12px; font-weight: 600; }
.field-error:empty { display: none; }

.reading-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); gap: 8px; }
.reading-field { display: grid; gap: 5px; min-width: 0; }
.stage-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stage-toggle button {
  min-height: 44px; border: 1px solid var(--tp-border); border-radius: 11px;
  background: var(--tp-glass-strong); color: var(--tp-ink-2); font-weight: 600;
}
.stage-toggle button.active {
  border-color: var(--tp-accent); background: var(--tp-accent-soft); color: var(--tp-accent);
}

.capture-button, .checklist-save, .confirmation-toggle, .deviation-start, #signatureClear, #signatureSave {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 13px; font-weight: 700; font-size: 14.5px; text-align: center; cursor: pointer;
}
.capture-button, .confirmation-toggle, .deviation-start {
  border: 1px solid var(--tp-border-strong); background: var(--tp-accent-soft); color: var(--tp-accent);
}
.checklist-save, #signatureSave {
  border: 0; background: var(--tp-accent); color: var(--tp-accent-ink);
}
#signatureClear {
  border: 1px solid var(--tp-border); background: transparent; color: var(--tp-ink-2);
}
.capture-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checklist-thumbnail { display: block; width: 100%; max-height: 240px; margin-top: 10px; border: 1px solid var(--tp-border); border-radius: 12px; object-fit: cover; }
.checklist-summary { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--tp-border); border-radius: 11px; background: var(--tp-glass-strong); font-size: 13px; color: var(--tp-ink-2); display: grid; gap: 4px; }
.checklist-summary strong { color: var(--tp-ink); }
.signature-wrap { overflow: hidden; border: 1px solid var(--tp-border-strong); border-radius: 13px; background: #f8fbff; }
#signaturePad { display: block; width: 100%; height: 196px; touch-action: none; cursor: crosshair; }
.signature-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deviation-status { display: inline-flex; padding: 6px 10px; border-radius: 9px; background: var(--tp-warning-soft); color: var(--tp-warning); font-size: 12px; font-weight: 600; }
.deviation-status.approved { background: var(--tp-success-soft); color: var(--tp-success); }
.checklist-feedback { min-height: 16px; font-size: 12px; color: var(--tp-ink-2); }
.checklist-empty { padding: 20px 14px; border: 1px dashed var(--tp-border); border-radius: 14px; color: var(--tp-ink-2); text-align: center; font-size: 13px; }
.checklist-metadata-warning { margin: 8px 0 0; color: var(--tp-warning); font-size: 12px; }

/* Complaint Card (tucked cleanly below evidence) */
.complaint-card {
  margin-top: 16px; padding: 14px;
  border: 1px solid var(--tp-border); border-radius: 16px;
  background: var(--tp-field);
}

/* ---------- Sticky Thumb-Zone Primary Action Dock ---------- */
.action-dock {
  position: sticky; z-index: 15;
  bottom: calc(10px + var(--tp-safe-b));
  margin-top: 16px; padding: 10px;
  border: 1px solid var(--tp-border-strong);
  border-radius: 18px;
  background: var(--tp-glass-strong);
  box-shadow: var(--tp-shadow);
  backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(145%);
}
.action-dock-copy {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 8px; font-size: 12px; color: var(--tp-ink-2);
}
.action-dock-copy strong { color: var(--tp-ink); font-weight: 700; }
.advance-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 0; border-radius: 13px;
  background: var(--tp-cta); color: var(--tp-cta-ink);
  font: 800 16px/1 var(--tp-font-ui);
  box-shadow: 0 10px 24px rgba(255, 138, 61, .28);
  transition: background .16s ease, transform .14s var(--tp-ease);
}
.advance-btn:hover { background: var(--tp-cta-hover); }
.advance-btn:active { transform: scale(.985); }
.advance-btn:disabled, .no-access-btn:disabled, .call-btn:disabled { opacity: .55; cursor: wait; }
.no-access-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; margin-top: 8px; padding: 0 16px;
  border: 1px solid rgba(255, 123, 123, .42); border-radius: 12px;
  background: var(--tp-danger-soft); color: var(--tp-danger);
  font-size: 13px; font-weight: 700;
}

/* ---------- Toast & Agent Phone Modal ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%;
  bottom: calc(20px + var(--tp-safe-b));
  width: min(360px, calc(100% - 28px));
  padding: 13px 16px;
  border: 1px solid var(--tp-border-strong); border-radius: 14px;
  background: var(--tp-glass-strong); box-shadow: var(--tp-shadow);
  backdrop-filter: blur(var(--tp-blur)); -webkit-backdrop-filter: blur(var(--tp-blur));
  color: var(--tp-ink); font-size: 13.5px; font-weight: 600; text-align: center;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s var(--tp-ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: var(--tp-danger); color: var(--tp-danger); }

.modal-backdrop {
  position: fixed; z-index: 80; inset: 0;
  display: grid; place-items: end center;
  padding: 16px calc(16px + var(--tp-safe-r)) calc(18px + var(--tp-safe-b)) calc(16px + var(--tp-safe-l));
  background: rgba(2, 10, 16, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  width: min(420px, 100%); padding: 20px;
  border: 1px solid var(--tp-border-strong); border-radius: 22px;
  background: var(--tp-glass-strong); box-shadow: var(--tp-shadow);
}
.modal-card h2 { margin: 0; font: 700 20px/1.2 var(--tp-font-display); }
.modal-card p { margin: 8px 0 14px; color: var(--tp-ink-2); font-size: 13.5px; }
.modal-card label { display: block; margin-bottom: 6px; font: 600 11px/1 var(--tp-font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tp-ink-3); }
.modal-card input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--tp-border); border-radius: 13px;
  background: var(--tp-field); color: var(--tp-ink);
  font: 500 16px var(--tp-font-mono);
}
.modal-error { min-height: 18px; margin: 6px 0 0; color: var(--tp-danger); font-size: 12px; }
.modal-save { width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 13px; background: var(--tp-cta); color: var(--tp-cta-ink); font-weight: 800; }
.modal-cancel { width: 100%; min-height: 46px; margin-top: 8px; border: 1px solid var(--tp-border); border-radius: 13px; background: transparent; color: var(--tp-ink); font-weight: 600; }

.brand-footer, .app-privacy-footer {
  position: relative; z-index: 2;
  text-align: center; color: var(--tp-ink-3);
  font-size: 12px;
}
.app-privacy-footer { padding: 14px 12px calc(26px + var(--tp-safe-b)); }
.app-privacy-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--tp-ink-3); text-decoration: none; }

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 640px) {
  .brand-dealer { display: inline; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(2) { border-left: 1px solid var(--tp-border); }
  .fact:nth-child(n+3) { grid-column: 1 / -1; border-top: 1px solid var(--tp-border); border-left: 0; }
  .modal-backdrop { place-items: center; }
}

@media (min-width: 920px) {
  .app-shell { padding: 18px 24px 48px; }
  .overview { padding: 16px 4px 14px; }
  .overview h1 { font-size: 26px; }
  .workspace { grid-template-columns: 370px minmax(0, 1fr); gap: 18px; }
  .list-panel { position: sticky; top: 18px; max-height: calc(100dvh - 130px); overflow-y: auto; }
  .detail-panel { min-height: 620px; }
  .detail-shell { padding: 22px; }
  .back-btn { display: none; }
}

@media (max-width: 919px) {
  .app-shell.detail-open .overview,
  .app-shell.detail-open .list-panel,
  .app-shell.detail-open #aquaCalendarTech { display: none; }
  .app-shell.detail-open .detail-panel { margin-top: 12px; }
}

@media (max-width: 440px) {
  .reading-grid { grid-template-columns: 1fr 1fr; }
  .reading-field:first-child { grid-column: 1 / -1; }
  .quick-actions { gap: 6px; }
  .quick-link, .call-btn { font-size: 12.5px; padding: 0 6px; gap: 5px; }
}

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

/* Native consent is separate from the existing messaging preference. */
.location-consent label { display: flex; align-items: center; gap: .5rem; }
.location-consent p { margin: .25rem 0 .75rem; }
.tech-scanner { max-width: min(90vw, 32rem); color: inherit; background: var(--surface-1); }
.tech-scanner video { display: block; max-width: 100%; max-height: 65vh; }
.tech-scanner button { margin-top: .5rem; }

/* Direction A — the map, glass sheet and cockpit share the same marine palette. */
:root {
  --tp-font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'DM Sans', system-ui, sans-serif;
  --tp-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'DM Sans', system-ui, sans-serif;
  --tp-map-grid: rgb(127 203 210 / .13);
  --tp-map-street: rgb(170 217 225 / .21);
  --tp-map-water: rgb(37 118 147 / .45);
  --tp-map-land: #0a282d;
  --tp-map-edge: #081a24;
  --tp-map-route: #6cf9f2;
  --tp-halo: rgb(53 230 226 / .35);
  --tp-chip: #23383e;
}
:root[data-theme="aqua"] {
  --tp-page-bg: #06171c;
  --tp-glass: rgb(17 34 40 / .82);
  --tp-glass-strong: #10262c;
  --tp-glass-hover: #1b3b42;
  --tp-field: rgb(181 223 228 / .065);
  --tp-field-hover: rgb(181 223 228 / .13);
  --tp-border: rgb(166 219 229 / .2);
  --tp-border-strong: rgb(131 220 225 / .46);
  --tp-ink: #f2fafb;
  --tp-ink-2: #bfd1d5;
  --tp-ink-3: #9cb7be;
  --tp-accent: #74eae6;
  --tp-accent-ink: #052026;
  --tp-accent-soft: rgb(92 235 231 / .14);
  --tp-cta: #51e3df;
  --tp-cta-hover: #84f6ef;
  --tp-cta-ink: #041f24;
}
:root[data-theme="light"] {
  --tp-page-bg: #edf6f5;
  --tp-ink-2: #26464e;
  --tp-ink-3: #3b5e65;
  --tp-border: rgb(17 65 72 / .21);
  --tp-cta: #056974;
  --tp-cta-hover: #075b64;
  --tp-map-grid: rgb(56 111 118 / .19);
  --tp-map-street: rgb(255 255 255 / .88);
  --tp-map-water: rgb(71 155 177 / .42);
  --tp-map-land: #dcefea;
  --tp-map-edge: #bee1e1;
  --tp-map-route: #006f7b;
  --tp-halo: rgb(0 100 112 / .26);
  --tp-chip: #e4f1f1;
}
html[data-sea-surface] body:has(#portalApp), body:has(#portalApp) {
  background: radial-gradient(ellipse at 48% 18%, var(--tp-map-land), transparent 60%), var(--tp-page-bg) !important;
}
html[data-sea-surface] body:has(#portalApp) canvas[data-aqua-sea-canvas] { visibility: hidden; }
.app-shell { padding-bottom: calc(100px + var(--tp-safe-b)); }
.app-shell > *, .workspace > * { min-width: 0; }
#techAccountCard .preview-exit-bar button { min-height: 44px; }
body.tech-preview { padding-top: 0; }
.topbar {
  position: relative; z-index: 5;
  justify-content: space-between; flex-wrap: wrap; gap: 6px;
  min-height: 0; padding: 0; border: 0; background: none;
  box-shadow: none; backdrop-filter: none;
}
.top-actions { margin-left: auto; min-width: 0; }
.topbar :is(.lang-btn, .theme-btn, .top-btn, .iovo-mail-topbar-btn) {
  min-height: 44px; background: var(--tp-glass); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--tp-shadow-sm);
}
.location-sharing button { min-height: 44px; }
.topbar .theme-btn { width: 44px; }
.topbar .lang-btn { min-width: 48px; }
.topbar .brand { order: -1; }
.route-visual {
  overflow: hidden; min-height: 305px; height: clamp(305px, 43dvh, 395px);
  position: relative; isolation: isolate; border: 1px solid var(--tp-border); border-radius: 24px;
  padding: 16px;
  background: radial-gradient(ellipse at 44% 65%, var(--tp-map-land), var(--tp-map-edge));
  box-shadow: var(--tp-shadow);
  margin-top: 10px;
}
.route-art { position: absolute; inset: 0; pointer-events: none; opacity: .85; }
.route-art svg { width: 100%; height: 100%; display: block; }
.map-meta {
  display: grid; gap: 3px; position: absolute; z-index: 1; top: 17px; left: 16px;
  pointer-events: none;
}
.map-meta strong { font: 760 23px/1.1 var(--tp-font-display); letter-spacing: -.045em; }
.map-meta span, .map-caption, .peek-heading {
  font: 600 10px/1.25 var(--tp-font-mono); letter-spacing: .06em; color: var(--tp-ink-3);
}
.map-caption {
  position: absolute; bottom: 15px; left: 15px; margin: 0; max-width: calc(100% - 30px);
  padding: 5px 8px; border: 1px solid var(--tp-border); border-radius: 7px;
  background: var(--tp-glass-strong); letter-spacing: 0;
}
.map-compass {
  position: absolute; right: 14px; bottom: 15px; display: grid; place-items: center;
  border: 1px solid var(--tp-border); border-radius: 50%; width: 32px; height: 32px;
  background: var(--tp-glass); color: var(--tp-accent);
}
.map-compass svg { fill: currentColor; width: 17px; }
.map-plot { position: absolute; inset: 60px 20px 43px; }
.map-plot > svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-plot polyline {
  fill: none; stroke: var(--tp-map-route); stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px var(--tp-halo));
}
.map-pin {
  position: absolute; left: var(--px); top: var(--py); transform: translate(-50%, -75%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none;
}
.map-pin span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--tp-map-route); border-radius: 50% 50% 50% 6px;
  background: var(--tp-glass-strong); color: var(--tp-accent); box-shadow: 0 0 14px var(--tp-halo);
  font: 750 13px/1 var(--tp-font-mono);
}
.map-pin.primary { z-index: 1; }
.map-pin.primary span { color: var(--tp-cta-ink); background: var(--tp-cta); }
.overview { padding: 10px 4px; }
.overview-right:empty { display: none; }
.overview .route-count-pill { white-space: normal; }
.location-consent { padding: 14px; border: 1px solid var(--tp-border); border-radius: 16px; background: var(--tp-glass); }
.location-consent label { min-height: 44px; }
.location-consent input { accent-color: var(--tp-accent); flex: 0 0 auto; }
.app-shell:not([data-tab="profile"]) #techWhatsappOptInCard,
.app-shell:not([data-tab="profile"]) #nativeLocationSettings,
.app-shell:not([data-tab="profile"]) #historyLink { display: none !important; }
.app-shell[data-tab="profile"] .overview-right { width: 100%; }
.app-shell[data-tab="profile"] .location-consent { width: 100%; }
.profile-intro, .schedule-fallback { margin: 14px 0; padding: 16px; }
.profile-intro h2, .schedule-fallback h2 { margin: 0 0 5px; }
.profile-intro p { margin: 0; color: var(--tp-ink-2); }
.schedule-stop {
  text-align: left; display: block; min-height: 44px; width: 100%; margin-top: 8px; padding: 8px 12px;
  background: var(--tp-field); border: 1px solid var(--tp-border); border-radius: 10px;
}
.tech-sync-strip { flex-wrap: wrap; }
.tech-sync-btn { min-height: 44px; }
.list-panel { background: var(--tp-glass); border-radius: 23px; }
.jobs-list { gap: 6px; }
.active-stop {
  padding: 12px; border: 1px solid var(--tp-border); border-radius: 18px;
  background: radial-gradient(ellipse at 50% 110%, var(--tp-accent-soft), transparent 70%), var(--tp-field);
}
.active-stop .job-card { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
.active-stop .job-card::before, .active-stop .job-card::after { display: none; }
.active-stop .job-card-body { gap: 4px; }
.job-card { min-height: 54px; grid-template-columns: 26px minmax(0, 1fr) 10px; gap: 8px; padding: 7px 10px; border-radius: 12px; }
.job-card::before { width: 26px; height: 26px; font-size: 11px; }
.job-card .status-chip { max-width: 100%; min-width: 0; white-space: normal; text-align: center; }
.job-card .job-window { white-space: normal; overflow: visible; font-size: 10px; text-transform: uppercase; }
.job-top { min-width: 0; }
.job-customer { font-weight: 750; font-size: 14px; overflow-wrap: anywhere; line-height: 1.09; }
.job-location { overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.28; color: var(--tp-ink-2); }
.active-stop .job-customer { font: 780 clamp(23px, 7vw, 30px)/1.03 var(--tp-font-display); letter-spacing: -.045em; }
.active-stop .job-location { font-size: 12.5px; }
.active-stop .job-window { font-size: 11px; }
.peek-heading { margin: 4px 1px 1px; }
.hero-actions { display: flex; gap: 8px; margin: 12px 0 9px; }
.hero-actions:empty { display: none; }
.hero-actions .quick-link { flex: 1; border-radius: 999px; }
.quick-link, .call-btn { min-height: 44px; }
.advance-btn {
  background: var(--tp-cta); box-shadow: 0 0 20px var(--tp-halo), inset 0 1px 0 var(--tp-border-strong);
  min-height: 48px; border-radius: 999px; font-size: 14px; line-height: 1.15;
}
.route-action { position: relative; padding: 6px 43px; margin-top: 8px; min-height: 48px; }
.route-action span {
  position: absolute; left: 4px; display: grid; place-items: center; width: 39px; height: 39px;
  border: 1px solid var(--tp-border-strong); border-radius: 50%; background: var(--tp-cta-hover);
}
.bottom-nav {
  position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(480px,100%); padding: 6px calc(8px + var(--tp-safe-r)) calc(6px + var(--tp-safe-b)) calc(8px + var(--tp-safe-l));
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px;
  border-radius: 20px 20px 0 0; background: var(--tp-glass-strong); box-shadow: 0 -5px 32px var(--tp-page-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.bottom-nav button,
.bottom-nav a {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 3px;
  min-height: 48px; padding: 4px 2px; border: 0; border-radius: 14px;
  background: transparent; text-decoration: none;
  font: 600 10.5px/1.1 var(--tp-font-ui); color: var(--tp-ink-3);
  transition: background .16s ease, color .16s ease;
}
.bottom-nav button[aria-pressed="true"],
.bottom-nav a[aria-current="page"] { background: var(--tp-accent-soft); color: var(--tp-accent); }
.bottom-nav .ic { --ic-size: 20px; line-height: 1; }
.bottom-nav svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.detail-shell { padding: 13px; }
.detail-nav { margin-bottom: 7px; }
.back-btn { display: inline-flex; min-height: 44px; border-radius: 999px; }
.detail-hero { padding: 13px; background: none; }
.detail-hero-meta { margin-bottom: 6px; }
.detail-hero h2 { font-size: clamp(23px, 6.8vw, 32px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.detail-hero-window { font: 550 12px/1.4 var(--tp-font-ui); }
.ladder-wrap { padding: 0; border: 0; background: none; margin-top: 13px; }
.ladder-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status-ladder { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ladder-step { font-size: 11px; gap: 6px; overflow-wrap: anywhere; }
.ladder-step::before { top: 8px; background: var(--tp-border); }
.ladder-dot {
  width: 17px; height: 17px; display: grid; place-items: center;
  font-size: 10px; color: var(--tp-accent-ink); line-height: 1;
}
.ladder-step.current .ladder-dot { border-color: var(--tp-map-route); }
.quick-actions { display: flex; flex-wrap: wrap; margin-top: 11px; }
.quick-actions > * { flex: 1 1 auto; min-width: 0; }
.quick-actions .quick-link, .quick-actions .call-btn, .hero-actions .quick-link, .serial-actions .quick-link {
  border-radius: 999px; background: var(--tp-field); color: var(--tp-ink); border: 1px solid var(--tp-border);
}
.quick-actions #jobWaterTest { white-space: normal; }
.evidence-quick { display: grid; gap: 11px; margin-top: 12px; }
.evidence-quick h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: -.01em; }
.photo-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(69px, calc((100% - 24px) / 4));
  gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 5px; scroll-snap-type: x proximity;
}
.photo-tile {
  display: grid; gap: 4px; align-self: start; min-width: 0;
  border: 0; background: transparent; padding: 0; scroll-snap-align: start;
}
.photo-tile-picture {
  display: grid; place-items: center; height: 62px; overflow: hidden;
  border: 1px solid var(--tp-border); border-radius: 12px; background: var(--tp-chip);
  color: var(--tp-ink-2); font-size: 23px;
}
.photo-tile-picture img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile-label { font-size: 11px; line-height: 1.12; overflow-wrap: anywhere; }
.photo-tile-label b { color: var(--tp-accent); }
.serial-card {
  display: grid; justify-items: center; gap: 6px; padding: 11px; text-align: center;
  border: 1px solid var(--tp-border-strong); border-radius: 17px;
  background: radial-gradient(ellipse at 50% 110%,var(--tp-accent-soft),transparent 72%), var(--tp-field);
  box-shadow: 0 8px 28px var(--tp-accent-soft), inset 0 1px 0 var(--tp-border);
}
.serial-card h3 { font: 740 16px/1.15 var(--tp-font-display); margin: 0; }
.serial-card p { margin: 0; color: var(--tp-ink-2); font-size: 11.5px; }
.serial-glyph { width: 57px; height: 45px; stroke: var(--tp-accent); stroke-width: 2.5; fill: none; }
.serial-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; min-width: 0; }
.serial-actions > * { max-width: 100%; }
.serial-receipt {
  padding: 4px 7px; border-radius: 999px; background: var(--tp-accent-soft);
  color: var(--tp-accent); font-size: 11px; overflow-wrap: anywhere;
}
.serial-receipt.pending { color: var(--tp-warning); background: var(--tp-warning-soft); }
.job-facts { margin-top: 9px; }
.job-facts summary, #fullChecklist summary, .closeout-guide summary {
  min-height: 44px; padding: 11px 8px; cursor: pointer; color: var(--tp-ink-2); font-weight: 650;
}
.finish-dock { margin-top: 12px; }
#actionDock:has(#advanceBtn[data-next-status="completed"]) { position: static; }
.signoff-dialog, .tech-scanner {
  margin: auto;
  width: min(480px, calc(100% - var(--tp-safe-l) - var(--tp-safe-r) - 24px));
  max-height: calc(100dvh - var(--tp-safe-t) - var(--tp-safe-b) - 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; color: var(--tp-ink); border: 1px solid var(--tp-border-strong);
  border-radius: 22px; background: var(--tp-glass-strong); box-shadow: var(--tp-shadow);
}
.signoff-dialog::backdrop, .tech-scanner::backdrop { background: rgb(0 10 14 / .73); backdrop-filter: blur(7px); }
.signoff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.signoff-head h2 { font-size: 21px; letter-spacing: -.04em; margin: 0; }
#signoffClose { min-width: 44px; min-height: 44px; padding: 0 14px; }
.signoff-sync { border-radius: 12px; padding: 10px; background: var(--tp-field); color: var(--tp-ink-2); }
.signoff-sync[data-receipt="queued"] { color: var(--tp-warning); }
.signoff-sync[data-receipt="synced"] { color: var(--tp-success); }
#signoffContent .checklist-item { margin: 0; }
.tech-scanner video {
  display: block; width: 100%; max-height: 55dvh; margin-bottom: 12px;
  border-radius: 14px; background: #000; object-fit: cover;
}
#scannerClose { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--tp-border); background: var(--tp-field); color: var(--tp-ink); font-weight: 700; }
.toast { bottom: calc(82px + var(--tp-safe-b)); }

@media (min-width: 920px) {
  .app-shell {
    padding: calc(18px + var(--tp-safe-t)) calc(24px + var(--tp-safe-r)) calc(108px + var(--tp-safe-b)) calc(24px + var(--tp-safe-l));
  }
  .app-shell.detail-open #routeVisual { height: 305px; }
  .app-shell:not(.detail-open) .workspace { grid-template-columns: 1fr; }
  .finish-dock { margin: 15px 0; }
}
@media (max-width: 919px) {
  .app-shell { padding-inline: calc(10px + var(--tp-safe-l)) calc(10px + var(--tp-safe-r)); }
  .app-shell[data-tab="jobs"]:not(.detail-open) .route-visual {
    min-height: 245px; margin-top: 8px;
  }
  .app-shell.detail-open .route-visual { display: none; }
  .app-shell.detail-open .detail-panel { margin-top: 7px; }
  .app-shell[data-tab="jobs"]:not(.detail-open) .overview {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 2px 10px;
  }
  .app-shell[data-tab="jobs"] .overview h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .app-shell[data-tab="jobs"] .overview-meta { font-size: 12px; }
  .app-shell[data-tab="jobs"] .route-count-pill { padding: 3px 9px; font-size: 11px; white-space: nowrap; }
  .app-shell[data-tab="jobs"] .overview-left { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .app-shell[data-tab="jobs"] .route-status { flex: 0 0 auto; margin-top: 0 !important; }
  .app-shell[data-tab="jobs"] .route-status .location-sharing { min-height: 30px; padding: 3px 10px; font-size: 11.5px; }
  .app-shell[data-tab="jobs"] .overview-meta strong, .app-shell[data-tab="jobs"] .overview-dot { display: none; }
  .app-shell[data-tab="jobs"] .list-panel .panel-head { display: none; }
  .app-shell.detail-open:has(#finishDock:not([hidden])) .bottom-nav { display: none; }
  .finish-dock {
    position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; margin: 0;
    padding: 9px calc(15px + var(--tp-safe-r)) calc(12px + var(--tp-safe-b)) calc(15px + var(--tp-safe-l));
    background: var(--tp-glass-strong); border-top: 1px solid var(--tp-border); box-shadow: var(--tp-shadow);
  }
}
.map-grid, .map-river, .map-road { fill: none; vector-effect: non-scaling-stroke; }
.map-grid { stroke: var(--tp-map-grid); stroke-width: 1; }
.map-park { fill: var(--tp-map-land); }
.map-river { stroke: var(--tp-map-water); stroke-width: 4; }
.map-road { stroke: var(--tp-map-street); stroke-width: 1.5; }
.map-road.minor { stroke-width: 1; opacity: .72; }
.map-pin { margin-left: calc(min(var(--stack), 3) * 12px); margin-top: calc(min(var(--stack), 3) * 12px); }
.job-name.job-customer, .job-address.job-location { white-space: normal; overflow: visible; }
.job-location .job-system { display: inline; color: inherit; font: inherit; white-space: inherit; }
.active-stop .status-chip[data-status="en_route"], .detail-hero .status-chip[data-status="working"] {
  color: var(--tp-accent); border-color: var(--tp-border-strong); background: var(--tp-accent-soft);
}
@media (max-width: 919px) {
  .app-shell[data-tab="jobs"]:not(.detail-open) .route-visual { height: clamp(245px, 42dvh, 395px); }
  .active-stop { padding: 10px; }
  .active-stop .job-top .status-chip { min-height: 20px; }
  .active-stop .hero-actions { margin-top: 8px; margin-bottom: 6px; }
  .jobs-list { padding: 7px; }
  .jobs-list > .job-card .job-top { display: contents; }
  .jobs-list > .job-card .job-card-body { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 3px; }
  .jobs-list > .job-card .job-location { flex-basis: 100%; }
  .jobs-list > .job-card .job-top .status-chip { display: none; }
  .detail-hero .quick-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .detail-hero .quick-actions > * { min-height: 44px; font-size: 12px; padding: 6px; gap: 4px; white-space: normal; text-align: center; }
  .detail-hero .quick-actions .qa-icon { flex-basis: 15px; width: 15px; height: 15px; }
  .finish-dock { z-index: 41; }
}
@media (max-width: 520px) {
  .detail-hero .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px), (pointer: coarse) {
  #portalApp :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    font-size: max(16px, 1rem);
    min-height: 44px;
  }
  #portalApp :is(button, .top-btn, .back-btn, .tech-sync-btn, summary) {
    min-height: 44px;
  }
}
/* Fixed navigation stays above the privacy footer, including when scrolled to the last field. */
html { scroll-padding-bottom: calc(130px + var(--tp-safe-b)); }
.app-shell { z-index: 3; }
.app-privacy-footer { padding-bottom: calc(78px + var(--tp-safe-b)); }
body:has(#portalApp.detail-open) .app-privacy-footer { padding-bottom: calc(124px + var(--tp-safe-b)); }
@media (min-width: 920px) {
  .finish-dock {
    position: fixed; z-index: 40; bottom: calc(11px + var(--tp-safe-b));
    right: max(24px, var(--tp-safe-r)); width: min(23vw, 310px);
    margin: 0;
  }
}
.action-dock { bottom: calc(69px + var(--tp-safe-b)); }


/* Keep the view title and preferences out of the route art at every width. */
.topbar,
html.native-tech-portal #portalApp .topbar {
  min-height: 50px; gap: 4px; padding: 3px 6px; flex-wrap: nowrap;
  align-items: center;
  border: 1px solid var(--tp-border); border-radius: 16px;
  background: var(--tp-glass-strong);
  box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(145%);
}
.topbar .brand { gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.topbar .brand-mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: visible; }
.topbar .brand-mark img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.topbar .brand-copy { gap: 6px; min-width: 0; overflow: hidden; }
.topbar .brand-tech-tag {
  padding: 0 4px 0 0; border: 0; background: none; color: var(--tp-ink);
  font: 700 15.5px/1.15 var(--tp-font-display); letter-spacing: -.015em;
  text-transform: none; overflow: hidden; text-overflow: ellipsis;
}
.topbar .top-actions,
html.native-tech-portal #portalApp .top-actions {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end;
  gap: 4px; flex: 0 0 auto; max-width: 100%;
}
.topbar .back-home-btn {
  width: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 11px; border: 1px solid var(--tp-border);
  background: var(--tp-field); color: var(--tp-ink);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  flex: 0 0 44px;
}
.topbar .back-home-btn .back-ico-home { display: none; }
#portalApp.detail-open .topbar .back-home-btn .back-ico-arrow { display: none; }
#portalApp.detail-open .topbar .back-home-btn .back-ico-home { display: block; }
.topbar .lang-btn, .topbar .theme-btn {
  padding: 0 6px; min-width: 30px; width: auto; min-height: 44px;
  color: var(--tp-ink); border: 0; border-radius: 9px;
  box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  font: 600 11px/1 var(--tp-font-ui);
}
.topbar .lang-btn {
  display: inline-flex; align-items: center; gap: 2px; min-width: 52px; padding: 2px;
  border: 1px solid var(--tp-border); border-radius: 11px;
  background: var(--tp-field); font: 700 10.5px/1 var(--tp-font-mono);
}
.topbar .lang-btn span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 6px; border-radius: 8px;
  color: var(--tp-ink-2);
}
.lang-btn[data-active-language="en"] span:first-child,
.lang-btn[data-active-language="es"] span:last-child {
  background: var(--tp-accent-soft); color: var(--tp-accent);
}
.tech-themes {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--tp-border); border-radius: 11px; background: var(--tp-field);
}
.topbar .tech-themes .theme-btn {
  width: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 8px;
  color: var(--tp-ink-2);
}
@media (max-width: 768px), (pointer: coarse) {
  #portalApp .topbar .tech-themes .theme-btn { width: 44px; min-width: 44px; min-height: 44px; }
}
.topbar .tech-themes .theme-btn .ic { --ic-size: 16px; color: inherit; }
.topbar .tech-themes .theme-btn[aria-pressed="true"] {
  background: var(--tp-accent); color: var(--tp-accent-ink);
  box-shadow: 0 2px 10px var(--tp-halo);
}
html.native-tech-portal #native-launcher {
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: 10px; border: 1px solid var(--tp-border);
  background: var(--tp-field); color: var(--tp-ink);
  font: 700 11px/1.15 var(--tp-font-ui); white-space: nowrap;
}
html.native-tech-portal #native-launcher[data-active="true"] {
  border-color: var(--tp-border-strong); background: var(--tp-accent-soft); color: var(--tp-accent);
}
#portalApp .top-actions .iovo-mail-topbar-btn { display: none; }
#portalApp[data-tab="profile"] .top-actions .iovo-mail-topbar-btn { display: inline-flex; min-height: 44px; }
#portalApp[data-tab="profile"] .top-actions { display: flex; flex-wrap: nowrap; align-items: center; }
@media (max-width: 520px) {
  .app-shell { padding-left: calc(8px + var(--tp-safe-l)); padding-right: calc(8px + var(--tp-safe-r)); }
  #portalApp[data-tab="profile"] .top-actions .iovo-mail-topbar-btn { min-width: 44px; width: 44px; padding: 0; font-size: 0; gap: 0; border-radius: 10px; flex: 0 0 44px; }
  #portalApp[data-tab="profile"] .top-actions .iovo-mail-topbar-btn svg { width: 17px; height: 17px; }
  .topbar,
  html.native-tech-portal #portalApp .topbar { gap: 6px; padding: 5px 8px; flex-wrap: nowrap; }
  .topbar .brand { gap: 7px; flex: 1 0 auto; min-width: max-content; overflow: visible; }
  .topbar .brand-mark { display: grid; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: visible; }
  .topbar .brand-mark img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
  .topbar .brand-tech-tag { display: inline-flex; font-size: 15px; white-space: nowrap; overflow: visible; text-overflow: clip; padding-right: 2px; letter-spacing: -.02em; }
  .topbar .top-actions,
  html.native-tech-portal #portalApp .top-actions { gap: 3px; min-width: 0; }
  .topbar .lang-btn { min-width: 44px; padding: 2px; font-size: 9.5px; }
  .topbar .lang-btn span { padding: 0 4px; }
  .topbar .tech-themes { gap: 0; padding: 1px; }
  html.native-tech-portal #native-launcher { padding: 0 6px; font-size: 10px; }
  html.native-tech-portal #portalApp[data-tab="profile"] .topbar { flex-wrap: wrap; }
  html.native-tech-portal #portalApp[data-tab="profile"] .top-actions { flex-wrap: wrap; }
}
@media (max-width: 425px) {
  html.native-tech-portal #portalApp .topbar { flex-wrap: wrap; }
  html.native-tech-portal #portalApp .top-actions { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
}
#profileIntro [data-iovo-settings] { scroll-margin-top: 84px; }
body:has(#portalApp[data-tab="profile"] [data-iovo-settings]) .app-privacy-footer { display: none; }
.overview-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.route-status:has(> :not([hidden])) { margin-top: 8px; display: flex; justify-content: flex-end; }
#portalApp[data-tab="profile"] .route-status:has(#locationSharing[data-state="off"]),
#portalApp.detail-open .route-status:has(#locationSharing[data-state="off"]),
#portalApp[data-tab="calendar"] .route-status:has(#locationSharing[data-state="off"]) {
  display: none;
}
.route-status .location-sharing {
  min-height: 36px; padding: 3px 6px 3px 11px; gap: 8px;
  white-space: nowrap; flex-wrap: nowrap; max-width: 100%;
  font-size: 12px; border-color: var(--tp-border);
  background: var(--tp-glass);
}
.route-status .location-sharing button {
  min-height: 44px; margin: -4px -2px -4px 0; padding: 0 12px; border: 0;
  border-radius: 999px; background: var(--tp-accent-soft);
  color: var(--tp-accent); font-size: 11.5px; font-weight: 700;
}
@media (max-width: 768px), (pointer: coarse) {
  .route-status .location-sharing button { min-height: 44px; margin: -4px -2px -4px 0; padding: 0 12px; }
}

/* ---------- Route Map & Active Stop Polish (Fits Active Stop + UP NEXT Above Fold) ---------- */
.route-action-ico {
  position: absolute; left: 5px; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(0, 0, 0, .14); color: currentColor;
}
.route-action-ico svg { width: 17px; height: 17px; display: block; }
:root[data-theme="light"] .route-action-ico {
  border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .18);
}
.back-ico { flex: 0 0 16px; display: block; }
html[data-brand="iovo"] button.map-pin.primary,
button.map-pin.primary {
  background: none !important; border: 0 !important; box-shadow: none !important;
}
.map-pin.primary span {
  border-color: var(--tp-cta);
  box-shadow: 0 0 16px var(--tp-halo), 0 4px 12px rgba(0, 0, 0, .35);
}
@media (max-width: 919px) {
  .app-shell[data-tab="jobs"]:not(.detail-open) .route-visual {
    min-height: 208px; height: clamp(208px, 26.5dvh, 244px);
    border-radius: 20px; padding: 14px; margin-top: 8px;
  }
  .route-visual .map-meta { top: 13px; left: 14px; gap: 2px; }
  .route-visual .map-meta strong { font-size: 19px; }
  .route-visual .map-plot { inset: 72px 18px 34px; }
  .route-visual .map-caption { bottom: 10px; left: 12px; font-size: 9.5px; padding: 4px 8px; }
  .route-visual .map-compass { bottom: 10px; right: 12px; width: 28px; height: 28px; }
  .route-visual .map-compass svg { width: 14px; }
  .app-shell[data-tab="jobs"]:not(.detail-open) .overview { padding: 6px 4px 8px; }
  .app-shell.detail-open { padding-bottom: calc(124px + var(--tp-safe-b)); }
  .app-shell.detail-open .detail-shell { padding-bottom: calc(124px + var(--tp-safe-b)); }
  .finish-dock {
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
  }
}

/* ---------- Detail Disclosure Rows & Photo Tiles Polish ---------- */
.photo-tile-picture {
  border-radius: 14px;
  transition: border-color .16s ease, background .16s ease, transform .14s var(--tp-ease);
}
.photo-tile:active .photo-tile-picture { transform: scale(.96); }
.photo-tile-label { color: var(--tp-ink-2); font-weight: 600; text-align: center; }
.job-facts summary, #fullChecklist summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border: 1px solid var(--tp-border); border-radius: 14px;
  background: var(--tp-field); color: var(--tp-ink); font-size: 13.5px; font-weight: 700;
  list-style: none;
}
.job-facts summary::-webkit-details-marker, #fullChecklist summary::-webkit-details-marker { display: none; }
.job-facts summary::after, #fullChecklist summary::after, .closeout-guide summary::after {
  content: '›'; font-size: 18px; line-height: 1; color: var(--tp-ink-3);
  transition: transform .18s var(--tp-ease);
}
.job-facts[open] > summary::after, #fullChecklist[open] > summary::after, .closeout-guide[open] > summary::after {
  transform: rotate(90deg); color: var(--tp-accent);
}
.job-facts[open] > .facts { margin-top: 8px; }

/* ---------- Install Calendar & Schedule Fallback (Living-Sea Aqua / Night / Day) ---------- */
#aquaCalendarTech .aqua-cal {
  margin: 4px 0 14px; padding: 16px;
  border: 1px solid var(--tp-border); border-radius: 22px;
  background: var(--tp-glass); color: var(--tp-ink);
  box-shadow: var(--tp-shadow);
  backdrop-filter: blur(var(--tp-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--tp-blur)) saturate(145%);
}
#aquaCalendarTech .aqua-cal h3 {
  font: 750 18px/1.2 var(--tp-font-display); letter-spacing: -.02em; color: var(--tp-ink);
}
#aquaCalendarTech .aqua-cal-bar { gap: 8px; margin-bottom: 10px; }
#aquaCalendarTech .aqua-cal button {
  border: 1px solid var(--tp-border); border-radius: 999px;
  min-height: 36px; padding: 0 14px;
  background: var(--tp-field); color: var(--tp-ink);
  font: 600 13px/1 var(--tp-font-ui);
}
#aquaCalendarTech .aqua-cal button[aria-pressed="true"] {
  background: var(--tp-accent); color: var(--tp-accent-ink); border-color: transparent;
  box-shadow: 0 4px 14px var(--tp-halo);
}
#aquaCalendarTech .aqua-cal-note { color: var(--tp-ink-2); font-size: 12.5px; }
#aquaCalendarTech .aqua-cal-day {
  padding: 14px 16px; border: 1px solid var(--tp-border); border-radius: 18px;
  background: var(--tp-field);
}
#aquaCalendarTech .aqua-cal-day[data-today] {
  border-color: var(--tp-accent);
  box-shadow: inset 0 0 0 1px var(--tp-accent), 0 0 18px var(--tp-accent-soft);
}
#aquaCalendarTech .aqua-cal-day h4 {
  margin: 0 0 8px; font: 700 13px/1.2 var(--tp-font-ui);
  color: var(--tp-ink); text-transform: capitalize;
}
#aquaCalendarTech .aqua-cal-day[data-today] h4 { color: var(--tp-accent); }
#aquaCalendarTech .aqua-cal-visit {
  padding: 10px 12px; border: 1px solid var(--tp-border); border-radius: 13px;
  background: var(--tp-glass-strong); color: var(--tp-ink);
}
#aquaCalendarTech .aqua-cal-visit span { color: var(--tp-ink-2); font-size: 12.5px; }
#aquaCalendarTech .aqua-cal-badge {
  background: var(--tp-accent-soft); color: var(--tp-accent);
  border: 1px solid var(--tp-border-strong); font-size: 11px;
}
#aquaCalendarTech .aqua-cal-badge[data-kind="canceled"] {
  background: var(--tp-danger-soft); color: var(--tp-danger); border-color: rgba(255, 123, 123, .38);
}
#aquaCalendarTech .aqua-cal-empty { color: var(--tp-ink-3); }

.schedule-fallback { margin: 4px 0 14px; padding: 16px; }
.schedule-fallback h2 {
  margin: 0 0 12px; font: 750 17px/1.2 var(--tp-font-display); color: var(--tp-ink);
}
#scheduleStops { display: grid; gap: 9px; }
.schedule-empty { margin: 4px 0; color: var(--tp-ink-2); font-size: 13.5px; }
.schedule-stop {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 14px; align-items: center; gap: 11px;
  width: 100%; min-height: 60px; margin: 0; padding: 11px 12px;
  border: 1px solid var(--tp-border); border-radius: 16px;
  background: var(--tp-field); color: var(--tp-ink); text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .14s var(--tp-ease);
}
.schedule-stop:active { transform: scale(.985); }
.schedule-stop-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--tp-border-strong); background: var(--tp-accent-soft);
  color: var(--tp-accent); font: 700 12.5px/1 var(--tp-font-mono);
}
.schedule-stop-body { display: grid; gap: 3px; min-width: 0; }
.schedule-stop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.schedule-stop-time { font: 600 11.5px/1.2 var(--tp-font-mono); color: var(--tp-accent); }
.schedule-stop-name { font: 700 15px/1.2 var(--tp-font-ui); color: var(--tp-ink); }
.schedule-stop-meta {
  font-size: 12.5px; line-height: 1.3; color: var(--tp-ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.schedule-stop-chev { font-size: 20px; line-height: 1; color: var(--tp-ink-3); text-align: right; }

/* ---------- Profile & Sync Tab — Apple Settings Cards & iOS Toggles ---------- */
#portalApp[data-tab="profile"] .overview {
  padding: 12px 2px 10px; gap: 10px;
}
#portalApp[data-tab="profile"] .route-count-pill { display: none; }
#portalApp[data-tab="profile"] .overview-meta strong,
#portalApp[data-tab="profile"] .overview-dot { display: none; }
#portalApp[data-tab="profile"] .overview-right {
  width: 100%; display: grid; gap: 12px; margin-top: 2px;
}
#portalApp[data-tab="profile"] #historyLink {
  width: 100%; justify-content: space-between; padding: 0 16px; min-height: 50px;
  border-radius: 16px; border: 1px solid var(--tp-border);
  background: var(--tp-glass); color: var(--tp-ink);
  font: 700 14.5px/1 var(--tp-font-ui); box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(var(--tp-blur)); -webkit-backdrop-filter: blur(var(--tp-blur));
}
#portalApp[data-tab="profile"] #historyLink::after {
  content: '›'; font-size: 21px; line-height: 1; color: var(--tp-accent);
}
.location-consent {
  padding: 16px; border: 1px solid var(--tp-border); border-radius: 20px;
  background: var(--tp-glass); box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(var(--tp-blur)); -webkit-backdrop-filter: blur(var(--tp-blur));
}
.location-consent label.tp-toggle-row {
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; cursor: pointer;
  font: 700 15px/1.25 var(--tp-font-ui); color: var(--tp-ink);
}
.location-consent p {
  margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--tp-ink-2);
}

/* Native Apple iOS Toggle Switch (pure CSS on native checkbox) */
.tp-switch {
  -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 50px;
  width: 50px; height: 30px; margin: 0; border-radius: 999px;
  border: 1px solid var(--tp-border-strong); background: var(--tp-field-hover);
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.tp-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, .32);
  transition: transform .2s var(--tp-ease);
}
.tp-switch:checked {
  background: var(--tp-accent); border-color: var(--tp-accent);
}
.tp-switch:checked::after {
  transform: translateX(20px);
}
.tp-switch:disabled { opacity: .5; cursor: wait; }

.wa-optin-card {
  margin: 0 0 12px; padding: 16px;
  display: grid; gap: 12px;
}
.wa-optin-label {
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 44px; margin: 0; cursor: pointer;
}
.wa-optin-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.wa-optin-copy strong { font: 700 15px/1.25 var(--tp-font-ui); color: var(--tp-ink); }
.wa-optin-copy small { font-size: 12.5px; line-height: 1.4; color: var(--tp-ink-2); }
.wa-phone-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#techWaPhoneInput {
  flex: 1 1 180px; min-width: 140px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--tp-border); border-radius: 12px;
  background: var(--tp-field); color: var(--tp-ink); font-size: max(16px, 1rem);
}

/* ---------- Tech Account Card, Sign Out & Standalone Polish ---------- */
html[data-brand="iovo"]:not([data-iovo-see~="proposals"]) #homeBackBtn {
  display: none !important;
}
#portalApp[data-tab="calendar"] .overview,
#portalApp[data-tab="calendar"] .route-count-pill,
#portalApp[data-tab="profile"] .overview-left {
  display: none;
}
.tech-account-card {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 4px; padding: 16px;
  border-radius: 20px;
}
.tech-account-avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tp-accent-soft); border: 1px solid var(--tp-border-strong);
  color: var(--tp-accent); font: 750 16px/1 var(--tp-font-display);
}
.tech-account-info { display: grid; gap: 3px; min-width: 0; flex: 1; }
.tech-account-info strong {
  font: 750 17px/1.2 var(--tp-font-display); color: var(--tp-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tech-account-info span {
  font-size: 12.5px; line-height: 1.3; color: var(--tp-ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tech-account-role {
  display: inline-flex; align-items: center; justify-self: start; margin-top: 2px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--tp-accent-soft); border: 1px solid var(--tp-border);
  color: var(--tp-accent) !important; font: 600 11px/1.2 var(--tp-font-ui);
}
#techWaPhoneInput { border-radius: 14px; }
#techWaPhoneSave { border-radius: 999px; padding: 0 18px; }
.tech-signout-row { margin: 4px 0 18px; }
.tech-signout-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 123, 123, .34);
  background: var(--tp-danger-soft); color: var(--tp-danger);
  font: 700 14px/1 var(--tp-font-ui); cursor: pointer;
  transition: transform .14s var(--tp-ease), background .16s ease;
}
.tech-signout-btn:active { transform: scale(.98); }
.tech-signout-btn:disabled { opacity: .55; cursor: wait; }

.profile-intro {
  margin: 0 0 12px; padding: 16px;
}
.profile-intro h2 { font: 750 17px/1.2 var(--tp-font-display); margin: 0 0 4px; }
.profile-intro p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tp-ink-2); }
#profileIntro [data-iovo-settings] { margin-top: 12px; }
#profileIntro [data-iovo-settings] .iovo-settings-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid var(--tp-border-strong); border-radius: 999px;
  background: var(--tp-accent-soft); color: var(--tp-accent);
  font: 700 13.5px/1 var(--tp-font-ui); box-shadow: none;
}
#profileIntro .iovo-settings-panel {
  margin-top: 10px; padding: 12px;
  border: 1px solid var(--tp-border); border-radius: 14px;
  background: var(--tp-glass-strong); color: var(--tp-ink);
}
#profileIntro .iovo-settings-panel .iovo-settings-link {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: 10px; color: var(--tp-ink); text-decoration: none; font-weight: 600;
}
#profileIntro .iovo-settings-panel .iovo-settings-link:hover { background: var(--tp-field-hover); }

.bottom-nav {
  border-top: 1px solid var(--tp-border);
  border-left: 1px solid var(--tp-border);
  border-right: 1px solid var(--tp-border);
  border-bottom: 0;
}

@media (min-width: 920px) {
  #portalApp .top-actions .iovo-mail-topbar-btn { display: inline-flex; }
  #portalApp[data-tab="profile"] .top-actions:has(.iovo-mail-topbar-btn) { display: flex; }
}
@media (max-width: 480px) {
  .topbar { gap: 5px !important; padding: 6px 8px !important; flex-wrap: nowrap !important; }
  .topbar .brand { gap: 6px !important; min-width: 0 !important; flex: 1 1 auto !important; }
  .topbar .brand-copy { min-width: 0 !important; overflow: hidden !important; }
  .topbar .top-actions { gap: 4px !important; flex: 0 0 auto !important; flex-wrap: nowrap !important; }
  .topbar .tech-themes { padding: 2px !important; border-radius: 999px !important; gap: 0 !important; }
  .topbar .tech-themes .theme-btn { width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important; border-radius: 999px !important; padding: 0 !important; }
  .topbar .tech-themes .theme-btn[aria-pressed="true"],
  .topbar .tech-themes .theme-btn.active { background: var(--tp-accent, #56ecdb) !important; color: #041920 !important; box-shadow: 0 0 12px color-mix(in srgb, var(--tp-accent, #56ecdb) 45%, transparent) !important; }
  .topbar .lang-btn { display: inline-flex !important; align-items: center !important; gap: 2px !important; min-height: 34px !important; height: 34px !important; padding: 2px !important; border-radius: 999px !important; }
  .topbar .lang-btn span { display: inline-flex !important; align-items: center !important; justify-content: center !important; height: 28px !important; min-width: 28px !important; border-radius: 999px !important; padding: 0 8px !important; line-height: 1 !important; }
  .topbar .back-home-btn { width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 34px !important; border-radius: 999px !important; }
  .topbar .ws-pill { width: 34px !important; min-width: 34px !important; height: 34px !important; padding: 0 !important; justify-content: center !important; border-radius: 999px !important; }
  .topbar .ws-pill__label, .topbar .ws-pill__chevron { display: none !important; }
  .topbar .iovo-mail-topbar-btn { width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 34px !important; padding: 0 !important; justify-content: center !important; border-radius: 999px !important; }
  .topbar .iovo-mail-topbar-btn > span:not(.iovo-mail-badge) { display: none !important; }
  .topbar #native-launcher { display: none !important; }
}
@media (max-width: 360px) {
  .topbar .brand-copy { flex-direction: column; gap: 1px; }
}
/* Scrawl #32 + #34: Apple glass Materials & Evidence card + capsule pill polish */
.install-job-usage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--tp-border);
  border-radius: 20px;
  background: var(--tp-glass-strong);
  box-shadow: var(--tp-shadow-sm, 0 8px 24px rgba(0, 0, 0, .18));
}
.install-job-usage > h3 {
  grid-column: 1; grid-row: 1; margin: 0;
  font: 700 15px/1.25 var(--tp-font-display);
  letter-spacing: -.01em; color: var(--tp-ink);
}
.install-job-usage > .iox-btn {
  grid-column: 2; grid-row: 1; justify-self: end;
  min-height: 44px; padding: 0 16px;
  font-size: 13px;
}
.install-job-usage > p:not([role="status"]) {
  grid-column: 1 / -1; margin: 0;
  font: 500 12.5px/1.45 var(--tp-font-ui);
  color: var(--tp-ink-3);
}
.install-job-usage > div {
  grid-column: 1 / -1;
}
.install-job-usage > div:empty {
  display: none;
}
.install-job-usage > p[role="status"] {
  grid-column: 1 / -1; margin: 0;
}
.install-job-usage > p[role="status"]:empty {
  display: none;
}
.install-job-usage > p[role="status"]:not(:empty) {
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--tp-border);
  border-left: 3px solid var(--tp-accent);
  background: var(--tp-field);
  color: var(--tp-ink-2);
  font: 500 12.5px/1.45 var(--tp-font-ui);
}
.install-job-usage .iox-btn,
.signoff-dialog #signoffClose,
.signoff-dialog button,
.checklist-item .capture-button,
.checklist-item .confirmation-toggle,
.checklist-item .deviation-start,
.checklist-item button[type="submit"],
.checklist-item .signature-actions button {
  border-radius: 999px !important;
}
.serial-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.serial-candidates[hidden] { display: none; }
.serial-candidate-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-ink);
  font: 700 13.5px/1.2 var(--tp-font-mono, monospace);
  cursor: pointer;
}
.serial-candidate-chip:active { transform: scale(.98); }
.install-job-usage .iox-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--tp-border); background: var(--tp-field); color: var(--tp-ink);
  font: 600 13px/1 var(--tp-font-ui); cursor: pointer;
}
.signoff-dialog #signoffClose:focus:not(:focus-visible) {
  outline: none; box-shadow: none;
}

/* ---------- Scrawl #12: Apple Glass Detail & Checklist Card Polish + Dive Clearance ---------- */
html {
  scroll-padding-top: calc(76px + var(--tp-safe-t));
  scroll-padding-bottom: calc(156px + var(--tp-safe-b));
}
.detail-panel {
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 218, 0.20);
  background: var(--tp-glass);
  box-shadow: 0 18px 44px rgba(0, 12, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(var(--tp-blur, 18px)) saturate(155%);
  -webkit-backdrop-filter: blur(var(--tp-blur, 18px)) saturate(155%);
  overflow: hidden;
  scroll-margin-top: calc(76px + var(--tp-safe-t));
}
:root[data-theme="light"] .detail-panel {
  border-color: rgba(8, 127, 140, 0.16);
  box-shadow: 0 16px 38px rgba(10, 36, 52, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
:root[data-theme="dark"] .detail-panel {
  border-color: rgba(255, 200, 156, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 224, 198, 0.08);
}
#checklistPanel,
.checklist-panel {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 218, 0.20);
  background: linear-gradient(180deg, rgba(16, 48, 58, 0.52), rgba(7, 26, 34, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 10, 16, 0.20);
  overflow: hidden;
  scroll-margin-top: calc(76px + var(--tp-safe-t));
}
:root[data-theme="light"] #checklistPanel,
:root[data-theme="light"] .checklist-panel {
  border-color: rgba(8, 127, 140, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 26px rgba(10, 36, 52, 0.08);
}
:root[data-theme="dark"] #checklistPanel,
:root[data-theme="dark"] .checklist-panel {
  border-color: rgba(255, 200, 156, 0.16);
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.72), rgba(16, 12, 10, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 224, 198, 0.08), 0 14px 32px rgba(0, 0, 0, 0.38);
}
#checklistPanel .checklist-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(110, 231, 218, 0.14);
}
:root[data-theme="light"] #checklistPanel .checklist-head {
  border-bottom-color: rgba(8, 127, 140, 0.12);
}
:root[data-theme="dark"] #checklistPanel .checklist-head {
  border-bottom-color: rgba(255, 200, 156, 0.12);
}
#checklistPanel .closeout-guide,
#checklistPanel .checklist-progress {
  border-color: rgba(110, 231, 218, 0.16);
  border-radius: 18px;
}
:root[data-theme="light"] #checklistPanel .closeout-guide,
:root[data-theme="light"] #checklistPanel .checklist-progress {
  border-color: rgba(8, 127, 140, 0.14);
}
:root[data-theme="dark"] #checklistPanel .closeout-guide,
:root[data-theme="dark"] #checklistPanel .checklist-progress {
  border-color: rgba(255, 200, 156, 0.14);
}
.app-shell.detail-open:has(#finishDock:not([hidden])) .detail-shell {
  padding-bottom: calc(148px + var(--tp-safe-b));
}
.app-shell.detail-open:has(#finishDock:not([hidden])) #checklistPanel {
  margin-bottom: 16px;
}
@media (min-width: 920px) {
  #checklistPanel,
  .checklist-panel {
    padding: 20px;
  }
  .app-shell.detail-open:has(#finishDock:not([hidden])) .detail-shell {
    padding-bottom: calc(116px + var(--tp-safe-b));
  }
}
@media (max-width: 919px) {
  .app-shell.detail-open {
    padding-bottom: calc(148px + var(--tp-safe-b));
  }
  .app-shell.detail-open .detail-panel {
    margin-top: 16px;
  }
  .app-shell.detail-open .detail-shell {
    padding-bottom: calc(148px + var(--tp-safe-b));
  }
  .finish-dock {
    border-radius: 22px 22px 0 0;
    border-top: 1px solid rgba(110, 231, 218, 0.20);
    box-shadow: 0 -10px 30px rgba(0, 12, 20, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  :root[data-theme="light"] .finish-dock {
    border-top-color: rgba(8, 127, 140, 0.16);
    box-shadow: 0 -8px 24px rgba(10, 36, 52, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }
  :root[data-theme="dark"] .finish-dock {
    border-top-color: rgba(255, 200, 156, 0.16);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 224, 198, 0.08);
  }
}
body:has(#portalApp) .iovo-sea-dive-btn {
  right: 16px;
  bottom: calc(82px + var(--tp-safe-b));
  z-index: 42;
}
body:has(#portalApp.detail-open #finishDock:not([hidden])) .iovo-sea-dive-btn {
  bottom: calc(88px + var(--tp-safe-b));
}
body:has(dialog[open], #agentPhoneModal:not([hidden])) .iovo-sea-dive-btn {
  display: none !important;
}

/* ---------- Tech Playbook Inline Field Guides & Google Review QR Modal ---------- */
.tp-guide-letter {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
  font: 700 12.5px/1 var(--tp-font-mono);
  letter-spacing: 0.02em;
}
.checklist-item.done .tp-guide-letter {
  border-color: rgba(66, 224, 157, 0.42);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}
.tp-guide {
  margin-top: 9px;
  padding-left: 45px;
  display: grid;
  gap: 7px;
}
.checklist-item.done .tp-guide {
  opacity: 0.72;
}
.tp-guide-tip {
  margin: 0;
  font: 450 12.5px/1.42 var(--tp-font-ui);
  color: var(--tp-ink-2);
  overflow-wrap: anywhere;
}
.tp-guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 13px;
  border: 1px solid rgba(247, 190, 89, 0.36);
  background: var(--tp-warning-soft);
  color: var(--tp-warning);
  font: 600 12px/1.38 var(--tp-font-ui);
}
:root[data-theme="light"] .tp-guide-warning {
  border-color: rgba(154, 96, 0, 0.28);
  background: rgba(154, 96, 0, 0.09);
  color: #824f00;
}
:root[data-theme="dark"] .tp-guide-warning {
  border-color: rgba(245, 176, 65, 0.34);
  background: rgba(245, 176, 65, 0.12);
  color: #f8c468;
}
.tp-guide-warn-ico {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checklist-item--review-qr {
  border-color: rgba(82, 229, 212, 0.36);
  background:
    radial-gradient(ellipse at 92% 0%, var(--tp-accent-soft), transparent 62%),
    var(--tp-field);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
:root[data-theme="light"] .checklist-item--review-qr {
  border-color: rgba(8, 127, 140, 0.28);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(8, 127, 140, 0.10), transparent 62%),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
:root[data-theme="dark"] .checklist-item--review-qr {
  border-color: rgba(244, 121, 32, 0.34);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(244, 121, 32, 0.12), transparent 62%),
    var(--tp-field);
}
.checklist-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.tp-optional-rec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
  font: 700 11px/1.15 var(--tp-font-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tp-review-qr-actions {
  margin-top: 12px;
}
.tp-review-qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-accent);
  color: var(--tp-accent-ink);
  font: 750 14.5px/1.15 var(--tp-font-ui);
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--tp-accent) 26%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.14s var(--tp-ease), filter 0.16s ease;
}
.tp-review-qr-btn:hover {
  filter: brightness(1.06);
}
.tp-review-qr-btn:active {
  transform: scale(0.985);
}
.tp-review-qr-btn-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-qr-dialog {
  margin: auto;
  width: min(380px, calc(100% - var(--tp-safe-l) - var(--tp-safe-r) - 28px));
  max-height: calc(100dvh - var(--tp-safe-t) - var(--tp-safe-b) - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(110, 231, 218, 0.28);
  border-radius: 28px;
  background: var(--tp-glass-strong);
  color: var(--tp-ink);
  box-shadow: 0 28px 68px rgba(0, 10, 18, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
:root[data-theme="light"] .review-qr-dialog {
  border-color: rgba(8, 127, 140, 0.20);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 56px rgba(10, 36, 52, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
:root[data-theme="dark"] .review-qr-dialog {
  border-color: rgba(255, 200, 156, 0.22);
  background: rgba(16, 13, 11, 0.95);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 224, 198, 0.12);
}
.review-qr-dialog::backdrop {
  background: rgba(2, 12, 18, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.review-qr-sheet {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 22px 20px;
  text-align: center;
}
.review-qr-head {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.review-qr-kicker {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
}
.review-qr-head h2 {
  margin: 2px 0 0;
  font: 750 22px/1.15 var(--tp-font-display);
  letter-spacing: -0.025em;
  color: var(--tp-ink);
}
.review-qr-subtitle {
  margin: 0;
  max-width: 28ch;
  font: 500 13.5px/1.4 var(--tp-font-ui);
  color: var(--tp-ink-2);
}
.review-qr-stage {
  display: grid;
  place-items: center;
  width: 100%;
}
.review-qr-frame {
  display: inline-grid;
  place-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 42, 0.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.92);
}
#reviewQrCanvas {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  image-rendering: pixelated;
}
.review-qr-unavailable {
  margin: 6px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--tp-border);
  background: var(--tp-field);
  color: var(--tp-ink-2);
  font: 500 13px/1.45 var(--tp-font-ui);
}
.review-qr-dealer {
  margin: 0;
  font: 700 12px/1.2 var(--tp-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-ink-3);
}
.review-qr-footer {
  width: 100%;
  margin: 0;
}
.review-qr-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--tp-border-strong);
  border-radius: 999px;
  background: var(--tp-field);
  color: var(--tp-ink);
  font: 700 14.5px/1 var(--tp-font-ui);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s var(--tp-ease);
}
.review-qr-close:hover {
  background: var(--tp-field-hover);
}
.review-qr-close:active {
  transform: scale(0.985);
}
body:has(#reviewQrDialog[open]) .iovo-sea-dive-btn {
  display: none !important;
}
@media (max-width: 480px) {
  .tp-guide {
    padding-left: 0;
  }
}

/* ============================================================================
   Scrawl #15 (Frames #9–#12) — Universal Bottom Tab Bar Icons + Executive Apple
   Glass Redesign of "Termina la instalación", Playbook Cards, Review QR & Chips
   ============================================================================ */

/* 1. Universal Frosted Apple Glass Bottom Nav Bar (matches Mail / Rep / Office) */
.bottom-nav {
  min-height: calc(62px + var(--tp-safe-b));
  padding: 7px calc(10px + var(--tp-safe-r)) calc(7px + var(--tp-safe-b)) calc(10px + var(--tp-safe-l));
  gap: 6px;
  border-radius: 24px 24px 0 0;
  background: rgba(6, 26, 36, 0.90);
  border-top: 1px solid rgba(119, 236, 223, 0.22);
  border-left: 1px solid rgba(119, 236, 223, 0.14);
  border-right: 1px solid rgba(119, 236, 223, 0.14);
  border-bottom: 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}
:root[data-theme="light"] .bottom-nav {
  background: rgba(244, 250, 253, 0.94);
  border-top-color: rgba(15, 35, 45, 0.12);
  border-left-color: rgba(15, 35, 45, 0.08);
  border-right-color: rgba(15, 35, 45, 0.08);
  box-shadow: 0 -8px 24px rgba(10, 36, 52, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
:root[data-theme="dark"] .bottom-nav {
  background: rgba(12, 8, 5, 0.94);
  border-top-color: rgba(255, 197, 138, 0.18);
  border-left-color: rgba(255, 197, 138, 0.10);
  border-right-color: rgba(255, 197, 138, 0.10);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 216, 174, 0.12);
}
@media (max-width: 480px) {
  .bottom-nav {
    border-left: 0;
    border-right: 0;
  }
}
.bottom-nav button,
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--tp-ink-3);
  text-decoration: none;
  font: 600 10px/1.1 var(--tp-font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 140ms var(--tp-ease);
}
.bottom-nav button:active,
.bottom-nav a:active {
  transform: scale(0.96);
}
.bottom-nav .tp-nav-ico,
.bottom-nav svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}
.bottom-nav .tp-nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.bottom-nav button[aria-pressed="true"],
.bottom-nav a[aria-current="page"],
.bottom-nav button.active,
.bottom-nav a.active {
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--tp-accent) 42%, rgba(255, 255, 255, 0.22));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tp-accent) 22%, rgba(255, 255, 255, 0.08)), color-mix(in srgb, var(--tp-accent) 11%, transparent));
  color: var(--tp-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px color-mix(in srgb, var(--tp-accent) 22%, transparent);
}
.bottom-nav button[aria-pressed="true"] svg,
.bottom-nav a[aria-current="page"] svg,
.bottom-nav button.active svg,
.bottom-nav a.active svg {
  opacity: 1;
}
:root[data-theme="light"] .bottom-nav button[aria-pressed="true"],
:root[data-theme="light"] .bottom-nav a[aria-current="page"],
:root[data-theme="light"] .bottom-nav button.active,
:root[data-theme="light"] .bottom-nav a.active {
  border-color: rgba(8, 127, 140, 0.32);
  background: linear-gradient(180deg, rgba(8, 127, 140, 0.16), rgba(8, 127, 140, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 12px rgba(8, 127, 140, 0.14);
}
:root[data-theme="dark"] .bottom-nav button[aria-pressed="true"],
:root[data-theme="dark"] .bottom-nav a[aria-current="page"],
:root[data-theme="dark"] .bottom-nav button.active,
:root[data-theme="dark"] .bottom-nav a.active {
  border-color: rgba(244, 121, 32, 0.44);
  background: linear-gradient(180deg, rgba(244, 121, 32, 0.24), rgba(244, 121, 32, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 224, 186, 0.24), 0 4px 14px rgba(244, 121, 32, 0.24);
}

/* 2. Executive Apple Glass Closeout Header ("Termina la instalación" — Frame #9) */
#checklistPanel.checklist-panel {
  margin-top: 22px;
  padding: 24px 18px 22px;
  border-radius: 22px;
}
@media (max-width: 480px) {
  #checklistPanel.checklist-panel {
    padding: 24px 14px 20px;
  }
}
@media (min-width: 920px) {
  #checklistPanel.checklist-panel {
    padding: 28px 24px 26px;
  }
}
#checklistPanel .checklist-head.tp-cl-header {
  display: grid;
  gap: 0;
  padding: 0 0 18px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
:root[data-theme="light"] #checklistPanel .checklist-head.tp-cl-header {
  border-bottom-color: rgba(11, 44, 58, 0.09);
}
:root[data-theme="dark"] #checklistPanel .checklist-head.tp-cl-header {
  border-bottom-color: rgba(255, 214, 180, 0.10);
}
#checklistPanel .tp-cl-eyebrow {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 700 11px/1.2 var(--tp-font-ui);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tp-accent) 82%, var(--tp-ink-2));
}
#checklistPanel .tp-cl-eyebrow:empty {
  display: none;
}
#checklistPanel .tp-cl-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}
#checklistPanel #checklistTitle {
  margin: 0;
  font: 700 23px/1.15 var(--tp-font-display);
  letter-spacing: -0.02em;
  color: var(--tp-ink);
  text-wrap: balance;
}
#checklistPanel .tp-cl-progress-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(119, 236, 223, 0.22);
  background: rgba(119, 236, 223, 0.09);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}
#checklistPanel .tp-cl-progress-pill #checklistProgressRatio {
  font: 700 13px/1 var(--tp-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--tp-accent);
}
#checklistPanel .tp-cl-progress-pill .tp-cl-progress-unit {
  font: 600 11.5px/1 var(--tp-font-ui);
  color: var(--tp-ink-2);
}
:root[data-theme="light"] #checklistPanel .tp-cl-progress-pill {
  border-color: rgba(8, 127, 140, 0.22);
  background: rgba(8, 127, 140, 0.09);
}
:root[data-theme="dark"] #checklistPanel .tp-cl-progress-pill {
  border-color: rgba(244, 121, 32, 0.28);
  background: rgba(244, 121, 32, 0.11);
}
:root[data-theme] #checklistPanel .tp-cl-progress-pill[data-complete="true"],
#checklistPanel .tp-cl-progress-pill[data-complete="true"] {
  border-color: rgba(66, 224, 157, 0.36);
  background: var(--tp-success-soft);
}
:root[data-theme="light"] #checklistPanel .tp-cl-progress-pill[data-complete="true"] {
  border-color: rgba(17, 128, 79, 0.34);
  background: var(--tp-success-soft);
}
:root[data-theme] #checklistPanel .tp-cl-progress-pill[data-complete="true"] #checklistProgressRatio,
:root[data-theme] #checklistPanel .tp-cl-progress-pill[data-complete="true"] .tp-cl-progress-unit,
#checklistPanel .tp-cl-progress-pill[data-complete="true"] #checklistProgressRatio,
#checklistPanel .tp-cl-progress-pill[data-complete="true"] .tp-cl-progress-unit {
  color: var(--tp-success);
}
#checklistPanel #checklistProgress.checklist-progress {
  display: block;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#checklistPanel .checklist-progress-track {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}
:root[data-theme="light"] #checklistPanel .checklist-progress-track {
  background: rgba(11, 44, 58, 0.10);
}
:root[data-theme="dark"] #checklistPanel .checklist-progress-track {
  background: rgba(255, 215, 185, 0.12);
}
#checklistPanel .checklist-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tp-accent), color-mix(in srgb, var(--tp-accent) 72%, #ffffff));
  transition: width 320ms var(--tp-ease);
}
#checklistPanel .checklist-progress[data-complete="true"] .checklist-progress-track span {
  background: var(--tp-success);
}
#checklistPanel #checklistHelp {
  margin: 10px 0 0;
  font: 450 13px/1.46 var(--tp-font-ui);
  color: rgba(241, 249, 252, 0.68);
  text-wrap: pretty;
}
:root[data-theme="light"] #checklistPanel #checklistHelp {
  color: var(--tp-ink-2);
}
:root[data-theme="dark"] #checklistPanel #checklistHelp {
  color: rgba(246, 243, 239, 0.68);
}

/* Eliminate stacked box clutter: borderless inline guide disclosure & clean EVIDENCIAS section label */
#checklistPanel .closeout-host:empty {
  display: none;
}
#checklistPanel .closeout-guide {
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#checklistPanel .closeout-guide summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tp-accent);
  font: 600 12.5px/1.2 var(--tp-font-ui);
}
#checklistPanel .closeout-guide summary::after {
  font-size: 16px;
  color: currentColor;
  opacity: 0.76;
}
#checklistPanel .closeout-guide .closeout-cols {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme="light"] #checklistPanel .closeout-guide .closeout-cols {
  border-color: rgba(11, 44, 58, 0.10);
  background: rgba(11, 44, 58, 0.03);
}
#checklistPanel #fullChecklist.tp-cl-section {
  margin-top: 4px;
}
#checklistPanel #fullChecklist > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 6px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tp-ink-3);
  font: 700 11px/1.2 var(--tp-font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
#checklistPanel #fullChecklist > summary::after {
  font-size: 16px;
  opacity: 0.65;
}

/* 3. Executive Apple Craft Playbook Evidence Cards (A-K & all 24 items) */
#checklistPanel .checklist-groups {
  display: grid;
  gap: 20px;
  margin-top: 2px;
}
#checklistPanel .checklist-group {
  display: grid;
  gap: 12px;
}
#checklistPanel .checklist-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px;
  font: 700 10.5px/1.2 var(--tp-font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tp-ink-3);
}
#checklistPanel .checklist-group-title span {
  font-variant-numeric: tabular-nums;
  opacity: 0.78;
}
#checklistPanel .checklist-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 6px 20px rgba(0, 10, 16, 0.14);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
@media (max-width: 480px) {
  #checklistPanel .checklist-item {
    padding: 15px 15px;
  }
}
:root[data-theme="light"] #checklistPanel .checklist-item {
  border-color: rgba(11, 44, 58, 0.09);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 16px rgba(10, 36, 52, 0.06);
}
:root[data-theme="dark"] #checklistPanel .checklist-item {
  border-color: rgba(255, 214, 180, 0.11);
  background: rgba(255, 244, 234, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 224, 198, 0.07), 0 8px 22px rgba(0, 0, 0, 0.30);
}
#checklistPanel .checklist-item.done {
  border-color: rgba(66, 224, 157, 0.30);
  background: linear-gradient(180deg, rgba(66, 224, 157, 0.06), rgba(255, 255, 255, 0.03));
}
:root[data-theme="light"] #checklistPanel .checklist-item.done {
  border-color: rgba(17, 128, 79, 0.28);
  background: linear-gradient(180deg, rgba(17, 128, 79, 0.06), rgba(255, 255, 255, 0.86));
}
:root[data-theme="dark"] #checklistPanel .checklist-item.done {
  border-color: rgba(62, 207, 142, 0.36);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.08), rgba(255, 244, 234, 0.03));
}
:root[data-theme] #checklistPanel .checklist-item.missing,
#checklistPanel .checklist-item.missing {
  border-color: var(--tp-danger);
  box-shadow: 0 0 0 3px var(--tp-danger-soft);
}
#checklistPanel .checklist-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#checklistPanel .tp-guide-letter,
#checklistPanel .checklist-state-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tp-accent) 34%, transparent);
  background: color-mix(in srgb, var(--tp-accent) 13%, transparent);
  color: var(--tp-accent);
  font: 700 12px/1 var(--tp-font-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#checklistPanel .checklist-state-icon .cl-ico {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
#checklistPanel .checklist-item.missing .checklist-state-icon,
#checklistPanel .checklist-item.missing .tp-guide-letter {
  border-color: var(--tp-danger);
  background: var(--tp-danger-soft);
  color: var(--tp-danger);
  box-shadow: none;
}
#checklistPanel .checklist-item.done .checklist-state-icon {
  border-color: var(--tp-success);
  background: var(--tp-success);
  color: #041a13;
  box-shadow: none;
}
:root[data-theme="light"] #checklistPanel .checklist-item.done .checklist-state-icon {
  border-color: var(--tp-success);
  background: var(--tp-success);
  color: #ffffff;
  box-shadow: none;
}
#checklistPanel .checklist-item.done .tp-guide-letter {
  border-color: color-mix(in srgb, var(--tp-success) 36%, transparent);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}
#checklistPanel .checklist-item-title {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  justify-items: start;
  gap: 5px;
}
#checklistPanel .checklist-item-title strong {
  font: 600 15px/1.3 var(--tp-font-ui);
  letter-spacing: -0.01em;
  color: var(--tp-ink);
  text-wrap: pretty;
}
#checklistPanel .checklist-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2.5px 8px;
  border-radius: 999px;
  font: 600 10.5px/1.15 var(--tp-font-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
#checklistPanel .checklist-badge--required {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tp-ink-2);
}
:root[data-theme="light"] #checklistPanel .checklist-badge--required {
  border-color: rgba(11, 44, 58, 0.10);
  background: rgba(11, 44, 58, 0.05);
}
#checklistPanel .checklist-badge--optional {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--tp-ink-3);
}
:root[data-theme="light"] #checklistPanel .checklist-badge--optional {
  border-color: rgba(11, 44, 58, 0.10);
}
#checklistPanel .checklist-badge--done {
  border: 1px solid rgba(66, 224, 157, 0.32);
  background: var(--tp-success-soft);
  color: var(--tp-success);
}

/* Field Guide Copy & Whisper-Quiet Left-Accented Translucent Amber Callouts */
#checklistPanel .tp-guide {
  margin-top: 8px;
  padding-left: 0;
  display: grid;
  gap: 9px;
}
#checklistPanel .tp-guide-tip {
  margin: 0;
  font: 450 13px/1.48 var(--tp-font-ui);
  color: rgba(241, 249, 252, 0.72);
  text-wrap: pretty;
}
:root[data-theme="light"] #checklistPanel .tp-guide-tip {
  color: var(--tp-ink-2);
}
:root[data-theme="dark"] #checklistPanel .tp-guide-tip {
  color: rgba(246, 243, 239, 0.70);
}
#checklistPanel .tp-guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 3px solid #f59e0b;
  color: rgba(253, 224, 158, 0.94);
  font: 500 12.5px/1.44 var(--tp-font-ui);
}
#checklistPanel .tp-guide-warn-ico {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #f59e0b;
}
:root[data-theme="light"] #checklistPanel .tp-guide-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(217, 119, 6, 0.22);
  border-left-color: #d97706;
  color: #78350f;
}
:root[data-theme="light"] #checklistPanel .tp-guide-warn-ico {
  color: #d97706;
}
:root[data-theme="dark"] #checklistPanel .tp-guide-warning {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.20);
  border-left-color: #f59e0b;
  color: #fde68a;
}

/* Sleek Tactile 44px Photo Action Button (Concentric 12px Radius + Camera SVG) */
#checklistPanel .checklist-controls {
  gap: 8px;
  margin-top: 13px;
}
#checklistPanel .checklist-item .capture-button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px !important;
  gap: 8px;
  border: 1px solid rgba(119, 236, 223, 0.26);
  background: rgba(82, 229, 212, 0.10);
  color: var(--tp-ink);
  font: 600 14px/1.15 var(--tp-font-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--tp-ease);
}
#checklistPanel .checklist-item .capture-button .tp-btn-ico {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--tp-accent);
}
#checklistPanel .checklist-item .capture-button:hover {
  background: rgba(82, 229, 212, 0.16);
  border-color: rgba(119, 236, 223, 0.42);
}
#checklistPanel .checklist-item .capture-button:active {
  transform: scale(0.96);
}
:root[data-theme="light"] #checklistPanel .checklist-item .capture-button {
  border-color: rgba(8, 127, 140, 0.24);
  background: rgba(8, 127, 140, 0.08);
  color: #0b1f2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
:root[data-theme="light"] #checklistPanel .checklist-item .capture-button:hover {
  background: rgba(8, 127, 140, 0.14);
  border-color: rgba(8, 127, 140, 0.38);
}
:root[data-theme="dark"] #checklistPanel .checklist-item .capture-button {
  border-color: rgba(244, 121, 32, 0.30);
  background: rgba(244, 121, 32, 0.12);
  color: var(--tp-ink);
  box-shadow: inset 0 1px 0 rgba(255, 224, 198, 0.10);
}
:root[data-theme="dark"] #checklistPanel .checklist-item .capture-button:hover {
  background: rgba(244, 121, 32, 0.18);
  border-color: rgba(244, 121, 32, 0.48);
}
#checklistPanel .checklist-thumbnail {
  border: 0;
  outline: 1px solid rgba(255, 255, 255, 0.10);
  outline-offset: -1px;
  border-radius: 12px;
}
:root[data-theme="light"] #checklistPanel .checklist-thumbnail {
  outline-color: rgba(0, 0, 0, 0.10);
}

/* 4. Luxury Highlighted Google Review QR Card (Frame #11) */
#checklistPanel .checklist-item--review-qr {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.11) 0%, rgba(45, 212, 191, 0.025) 44%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(167, 243, 208, 0.24), 0 10px 28px rgba(0, 14, 20, 0.22);
}
:root[data-theme="light"] #checklistPanel .checklist-item--review-qr {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.09) 0%, rgba(255, 255, 255, 0.90) 48%, rgba(255, 255, 255, 0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 24px rgba(10, 36, 52, 0.08);
}
:root[data-theme="dark"] #checklistPanel .checklist-item--review-qr {
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.10) 0%, rgba(255, 244, 234, 0.035) 46%, rgba(255, 244, 234, 0.025) 100%);
  box-shadow: inset 0 1px 0 rgba(167, 243, 208, 0.18), 0 12px 30px rgba(0, 0, 0, 0.38);
}
#checklistPanel .tp-qr-card-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
#checklistPanel .tp-optional-rec-pill {
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  font: 700 10.5px/1.1 var(--tp-font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:root[data-theme="light"] #checklistPanel .tp-optional-rec-pill {
  border-color: rgba(13, 148, 136, 0.30);
  background: rgba(13, 148, 136, 0.10);
  color: #0f766e;
}
#checklistPanel .checklist-item--review-qr:not(.done) .tp-qr-card-head .checklist-state-icon {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
}
:root[data-theme="light"] #checklistPanel .checklist-item--review-qr:not(.done) .tp-qr-card-head .checklist-state-icon {
  border-color: rgba(13, 148, 136, 0.28);
  background: rgba(13, 148, 136, 0.10);
  color: #0f766e;
}
#checklistPanel .tp-review-qr-actions {
  margin-top: 14px;
}
#checklistPanel .tp-review-qr-btn {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 13px;
  background: linear-gradient(180deg, #5eead4 0%, #2dd4bf 100%);
  color: #042024;
  font: 700 14.5px/1.15 var(--tp-font-ui);
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 8px 22px rgba(45, 212, 191, 0.26);
  transition: transform 140ms var(--tp-ease), filter 160ms ease;
}
:root[data-theme="light"] #checklistPanel .tp-review-qr-btn {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(13, 148, 136, 0.24);
}
#checklistPanel .tp-review-qr-btn:active {
  transform: scale(0.96);
}
#checklistPanel .checklist-item--review-qr .checklist-controls {
  margin-top: 8px;
}
#checklistPanel .checklist-item--review-qr .capture-button {
  min-height: 44px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--tp-ink-2);
  font: 600 13.5px/1.15 var(--tp-font-ui);
  box-shadow: none;
}
#checklistPanel .checklist-item--review-qr .capture-button .tp-btn-ico {
  color: var(--tp-ink-3);
}
#checklistPanel .checklist-item--review-qr .capture-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--tp-ink);
}
:root[data-theme="light"] #checklistPanel .checklist-item--review-qr .capture-button {
  border-color: rgba(11, 44, 58, 0.16);
  background: rgba(255, 255, 255, 0.46);
  color: var(--tp-ink-2);
  box-shadow: none;
}
:root[data-theme="light"] #checklistPanel .checklist-item--review-qr .capture-button:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(11, 44, 58, 0.26);
}
:root[data-theme="dark"] #checklistPanel .checklist-item--review-qr .capture-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--tp-ink-2);
  box-shadow: none;
}
:root[data-theme="dark"] #checklistPanel .checklist-item--review-qr .capture-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--tp-ink);
}

/* Generous breathing room before Customer Complaint / Send to Office */
.complaint-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .complaint-card {
  border-color: rgba(11, 44, 58, 0.10);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}
:root[data-theme="dark"] .complaint-card {
  border-color: rgba(255, 214, 180, 0.12);
  background: rgba(255, 244, 234, 0.035);
}

/* 5. Quick-Add Materials Chips Polish (sleek 999px glass pills with crisp + affordance) */
.install-job-usage .ij-quick {
  margin-top: 4px;
}
.install-job-usage .ij-quick > h4 {
  margin: 2px 0 9px;
  font: 700 11px/1.2 var(--tp-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-ink-3);
}
.install-job-usage .ij-quick-pills {
  gap: 8px;
}
.install-job-usage .ij-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px !important;
  border: 1px solid rgba(119, 236, 223, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: var(--tp-ink);
  font: 600 13px/1.2 var(--tp-font-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--tp-ease);
}
.install-job-usage .ij-quick-pill::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: 700 14px/1 var(--tp-font-mono);
  color: var(--tp-accent);
}
.install-job-usage .ij-quick-pill:hover {
  background: rgba(82, 229, 212, 0.12);
  border-color: rgba(119, 236, 223, 0.42);
}
.install-job-usage .ij-quick-pill:active {
  transform: scale(0.96);
}
:root[data-theme="light"] .install-job-usage .ij-quick-pill {
  border-color: rgba(8, 127, 140, 0.20);
  background: rgba(255, 255, 255, 0.84);
  color: #0b1f2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 2px 8px rgba(10, 36, 52, 0.06);
}
:root[data-theme="light"] .install-job-usage .ij-quick-pill:hover {
  background: rgba(8, 127, 140, 0.10);
  border-color: rgba(8, 127, 140, 0.36);
}
:root[data-theme="dark"] .install-job-usage .ij-quick-pill {
  border-color: rgba(244, 121, 32, 0.26);
  background: rgba(255, 240, 226, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 224, 198, 0.08);
}
:root[data-theme="dark"] .install-job-usage .ij-quick-pill:hover {
  background: rgba(244, 121, 32, 0.14);
  border-color: rgba(244, 121, 32, 0.46);
}
.install-job-usage .ij-quick-note {
  margin-top: 10px !important;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 3px solid #f59e0b;
  color: rgba(253, 224, 158, 0.94);
  opacity: 1 !important;
  font: 500 12.5px/1.42 var(--tp-font-ui) !important;
}
:root[data-theme="light"] .install-job-usage .ij-quick-note {
  border-color: rgba(217, 119, 6, 0.22);
  border-left-color: #d97706;
  color: #78350f;
}
:root[data-theme="dark"] .install-job-usage .ij-quick-note {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.20);
  border-left-color: #f59e0b;
  color: #fde68a;
}

/* ============================================================================
   Scrawl #19 (Frames #10–#12) — Privacy Strictly Inside Perfil (Settings) Tab,
   Liquid Glass Sliding Bottom Nav Geometry & Zero-Waste Closeout Header Card
   ============================================================================ */

/* 1. Hide floating .app-privacy-footer on all non-profile tabs, detail & portal shell;
      Your Privacy Choices lives cleanly inside #techLegalCard in the Perfil tab. */
body:has(#portalApp) .app-privacy-footer,
body:has(#portalApp:not([data-tab="profile"])) .app-privacy-footer,
body:has(#portalApp.detail-open) .app-privacy-footer {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.app-shell:not([data-tab="profile"]) #techLegalCard {
  display: none !important;
}
.app-shell:not(.detail-open) {
  padding-bottom: calc(80px + var(--tp-safe-b));
}

/* Perfil (Settings) Legal & Privacy Inset Card */
.tp-legal-card {
  margin: 0 0 12px;
  padding: 14px 16px 12px;
  border-radius: 20px;
}
.tp-legal-heading {
  margin: 0 0 8px 2px;
  font: 700 11px/1.2 var(--tp-font-mono);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--tp-ink-3);
}
.tp-legal-list {
  display: grid;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
:root[data-theme="light"] .tp-legal-list {
  border-color: rgba(11, 44, 58, 0.10);
  background: rgba(255, 255, 255, 0.72);
}
:root[data-theme="dark"] .tp-legal-list {
  border-color: rgba(255, 214, 180, 0.11);
  background: rgba(255, 244, 234, 0.04);
}
.tp-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--tp-ink);
  text-decoration: none;
  font: 600 14px/1.25 var(--tp-font-ui);
  transition: background-color 160ms ease, color 160ms ease;
}
.tp-legal-row + .tp-legal-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .tp-legal-row + .tp-legal-row {
  border-top-color: rgba(11, 44, 58, 0.09);
}
:root[data-theme="dark"] .tp-legal-row + .tp-legal-row {
  border-top-color: rgba(255, 214, 180, 0.09);
}
.tp-legal-row:hover {
  background: var(--tp-field-hover);
}
.tp-legal-row-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.tp-privacy-ico {
  display: block;
  width: 30px;
  height: 14px;
  flex: 0 0 30px;
}
.tp-legal-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--tp-accent);
}
.tp-legal-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tp-legal-chev {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--tp-ink-3);
}

/* 2. Universal Apple Liquid Glass Sliding Tab Bar geometry */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: min(480px, 100%);
  margin-inline: auto;
  isolation: isolate;
}
.bottom-nav > button,
.bottom-nav > a {
  position: relative;
  z-index: 2;
}

/* 3. Compact Zero-Waste Executive Apple Glass Closeout Header ("Termina la instalación") */
#checklistPanel.checklist-panel {
  margin-top: 14px;
  padding: 16px 16px 18px;
}
@media (max-width: 480px) {
  #checklistPanel.checklist-panel {
    padding: 15px 14px 18px;
  }
}
@media (min-width: 920px) {
  #checklistPanel.checklist-panel {
    padding: 20px 22px 22px;
  }
}
#checklistPanel .checklist-head.tp-cl-header {
  display: grid;
  gap: 0;
  padding: 0 0 11px;
  margin: 0;
}
#checklistPanel .tp-cl-eyebrow-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
#checklistPanel .tp-cl-eyebrow {
  margin: 0;
  padding-top: 2px;
  min-width: 0;
  flex: 1 1 auto;
  font: 700 10px/1.25 var(--tp-font-ui);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
  text-wrap: balance;
}
#checklistPanel .tp-cl-progress-pill {
  padding: 4px 10px;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}
#checklistPanel .tp-cl-progress-pill #checklistProgressRatio {
  font-size: 12.5px;
}
#checklistPanel .tp-cl-progress-pill .tp-cl-progress-unit {
  font-size: 11px;
}
#checklistPanel #checklistTitle {
  margin: 4px 0 8px;
  font: 700 23px/1.12 var(--tp-font-display);
  letter-spacing: -0.02em;
}
#checklistPanel #checklistProgress.checklist-progress {
  margin: 0;
}
#checklistPanel #checklistHelp {
  margin: 8px 0 10px;
  font: 450 12.5px/1.35 var(--tp-font-ui);
}
#checklistPanel #checklistHelp:has(+ .closeout-host:empty) {
  margin-bottom: 0;
}
#checklistPanel .closeout-guide {
  margin: 0;
}
#checklistPanel .closeout-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tp-accent) 10%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tp-accent) 22%, transparent);
  color: var(--tp-accent);
  font: 600 13px/1.2 var(--tp-font-ui);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
#checklistPanel .closeout-guide summary:hover {
  background: color-mix(in srgb, var(--tp-accent) 15%, rgba(255, 255, 255, 0.06));
}
:root[data-theme="light"] #checklistPanel .closeout-guide summary {
  background: rgba(8, 127, 140, 0.08);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 140, 0.20);
}
:root[data-theme="dark"] #checklistPanel .closeout-guide summary {
  background: rgba(244, 121, 32, 0.11);
  box-shadow: inset 0 0 0 1px rgba(244, 121, 32, 0.24);
}
#checklistPanel .closeout-guide .closeout-cols {
  margin-top: 8px;
  gap: 12px;
  padding: 12px 14px;
}
#checklistPanel #fullChecklist.tp-cl-section {
  margin-top: 10px;
}
#checklistPanel #fullChecklist > summary {
  min-height: 44px;
  padding: 0 2px;
  margin: 0;
}
#checklistPanel .checklist-groups {
  gap: 14px;
  margin-top: 2px;
}
