:root {
  --bg: #05070a;
  --surface: #0d1218;
  --surface-muted: #151d26;
  --text: #f4f8fc;
  --muted: #93a4b8;
  --line: rgba(124, 168, 205, 0.22);
  --blue: #25a8ff;
  --blue-dark: #0b74d1;
  --cyan: #18e5ff;
  --black: #020305;
  --charcoal: #0a0f14;
  --green: #16875a;
  --amber: #b76b00;
  --red: #bd2d2d;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  --glow: 0 0 32px rgba(37, 168, 255, 0.18), 0 0 54px rgba(24, 229, 255, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  background: #111922;
  color: #f7fbff;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-card small {
  color: #aab8c6;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-list a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #c8d4df;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #3be08f;
  box-shadow: 0 0 0 4px rgba(59, 224, 143, 0.16);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1,
.panel h2,
.section-toolbar h2,
.quote-intro h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions,
.section-toolbar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sync-status {
  border: 1px solid rgba(124, 168, 205, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.sync-status.synced {
  border-color: rgba(25, 135, 84, 0.4);
  color: #8de2b0;
}

.sync-status.saving {
  border-color: rgba(37, 168, 255, 0.48);
  color: #9de7ff;
}

.sync-status.error {
  border-color: rgba(220, 53, 69, 0.48);
  color: #ff9da7;
}

.local-warning {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(183, 107, 0, 0.38);
  border-radius: 8px;
  background: rgba(183, 107, 0, 0.12);
  color: #ffd89b;
  font-weight: 800;
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.global-search span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.global-search input {
  min-height: 36px;
  border: 0;
  padding: 0;
  outline: 0;
}

.global-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.quick-actions button,
.segmented button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.danger-soft {
  background: #ffecec;
  color: var(--red);
}

.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  background: var(--surface-muted);
  color: var(--text);
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mobile-menu {
  display: none;
}

.page {
  display: none;
}

.active-page {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.panel,
.table-panel,
.form-panel,
.vehicle-card,
.timeline-card,
.photo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px;
}

button.metric-card {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

button.metric-card:hover {
  border-color: rgba(20, 99, 255, 0.5);
  transform: translateY(-1px);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.65rem;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 12px 0 10px;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.command-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.command-panel {
  align-content: start;
}

.job-list,
.timeline-list,
.spotlight-grid,
.mini-metric-grid {
  display: grid;
  gap: 10px;
}

.dashboard-row,
.timeline-item,
.spotlight-group,
.mini-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.dashboard-row,
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
}

.dashboard-row strong,
.dashboard-row p,
.dashboard-row small,
.timeline-item strong,
.timeline-item span,
.timeline-item small {
  display: block;
}

.dashboard-row p,
.dashboard-row small,
.timeline-item span,
.timeline-item small {
  margin-top: 4px;
  color: var(--muted);
}

.dashboard-row > span {
  display: grid;
  gap: 5px;
  justify-items: end;
  min-width: max-content;
}

.mini-metric-grid,
.spotlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-metric,
.spotlight-group {
  padding: 13px;
}

.mini-metric span,
.spotlight-group .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.3rem;
}

.spotlight-group p {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
}

.spotlight-group span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-list,
.activity-list,
.timeline-cards,
.security-list {
  display: grid;
  gap: 10px;
}

.list-item,
.activity-item,
.security-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.record-trigger {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.list-item strong,
.list-item span,
.activity-item strong,
.activity-item span,
.security-list strong,
.security-list span {
  display: block;
}

.list-item span,
.activity-item span,
.security-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.data-safety-panel {
  margin-bottom: 14px;
}

.data-safety-actions {
  display: grid;
  gap: 10px;
}

.import-backup-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.audit-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.audit-list .mini-item {
  cursor: default;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions button {
  min-height: 54px;
  padding: 0 10px;
  background: #f2f6fb;
  color: var(--text);
}

.section-toolbar {
  margin-bottom: 14px;
}

.compact-toolbar {
  justify-content: flex-start;
  margin-top: -4px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
  min-height: 40px;
}

.filter-bar button.active {
  border-color: rgba(29, 182, 255, 0.45);
  background: rgba(20, 99, 255, 0.12);
  color: var(--blue-dark);
}

.filter-result-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.muted-copy {
  margin: 4px 0 0;
  color: var(--muted);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.table-panel {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f9fbfd;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.clickable-row,
.clickable-card {
  cursor: pointer;
}

.clickable-row:hover,
.clickable-card:hover,
.record-trigger:hover {
  background: #f4f8ff;
}

.selected-row,
.selected-record {
  outline: 2px solid rgba(20, 99, 255, 0.42);
  outline-offset: -2px;
  background: #f0f6ff !important;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.row-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.row-actions button:hover {
  border-color: rgba(20, 99, 255, 0.45);
  color: var(--blue-dark);
}

.row-actions .danger-link,
.danger-link {
  color: var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.blue {
  background: #e9f0ff;
  color: var(--blue-dark);
}

.badge.green {
  background: #e7f7ef;
  color: var(--green);
}

.badge.amber {
  background: #fff3db;
  color: var(--amber);
}

.badge.red {
  background: #ffecec;
  color: var(--red);
}

.payment-unpaid,
.followup-needed {
  background: #fff3db;
  color: var(--amber);
}

.payment-deposit-paid,
.followup-scheduled {
  background: #e9f0ff;
  color: var(--blue-dark);
}

.payment-paid-in-full,
.followup-completed {
  background: #e7f7ef;
  color: var(--green);
}

.payment-refunded,
.followup-ignored {
  background: #ffecec;
  color: var(--red);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-card,
.timeline-card,
.photo-card {
  padding: 16px;
}

.vehicle-card h3,
.timeline-card h3,
.photo-card h3 {
  margin: 0 0 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.detail-grid div {
  padding: 10px;
  border-radius: 8px;
  background: #f6f9fc;
}

.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--blue);
  color: #fff;
}

.hidden {
  display: none !important;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.calendar-day strong {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-job {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  background: #e9f0ff;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.calendar-job.status-green {
  background: #e7f7ef;
  color: var(--green);
}

.calendar-job.status-amber {
  background: #fff3db;
  color: var(--amber);
}

.calendar-job.status-red {
  background: #ffecec;
  color: var(--red);
}

.calendar-empty {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  font-weight: 700;
}

.pipeline-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
}

.pipeline-column {
  min-height: 520px;
  border: 1px solid rgba(124, 168, 205, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 34, 0.96), rgba(8, 13, 18, 0.98));
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.pipeline-column header {
  padding: 14px;
  border-bottom: 1px solid rgba(124, 168, 205, 0.16);
}

.pipeline-column h3 {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
}

.pipeline-column header span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.pipeline-dropzone {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 455px;
  padding: 12px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.pipeline-dropzone.drag-over {
  background: rgba(24, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(24, 229, 255, 0.28);
}

.pipeline-card {
  border: 1px solid rgba(124, 168, 205, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.08), rgba(2, 3, 5, 0.08)),
    rgba(2, 3, 5, 0.36);
  color: var(--text);
  cursor: grab;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pipeline-card:active {
  cursor: grabbing;
}

.pipeline-card.dragging {
  opacity: 0.62;
}

.pipeline-card:hover {
  border-color: rgba(24, 229, 255, 0.55);
  box-shadow: var(--glow), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.pipeline-card strong,
.pipeline-card span {
  display: block;
}

.pipeline-card strong {
  color: #fff;
}

.pipeline-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pipeline-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.pipeline-card-meta small {
  min-height: 28px;
  border-radius: 8px;
  padding: 6px;
  background: rgba(37, 168, 255, 0.08);
  color: #bdeaff;
  font-weight: 800;
  text-align: center;
}

.pipeline-empty {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed rgba(124, 168, 205, 0.25);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.pipeline-card-actions,
.followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pipeline-card-actions button,
.followup-actions button {
  border: 1px solid rgba(124, 168, 205, 0.24);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.pipeline-card-actions button:hover,
.followup-actions button:hover {
  border-color: rgba(24, 229, 255, 0.46);
  color: #fff;
}

.followup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.followup-section {
  min-height: 260px;
}

.followup-list,
.communication-list {
  display: grid;
  gap: 10px;
}

.followup-card,
.communication-item {
  width: 100%;
  border: 1px solid rgba(124, 168, 205, 0.2);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.08), rgba(2, 3, 5, 0.04)),
    rgba(9, 15, 22, 0.8);
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.followup-card {
  display: grid;
  gap: 10px;
}

.followup-main {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.followup-card:hover,
.communication-item:hover {
  border-color: rgba(24, 229, 255, 0.5);
  box-shadow: var(--glow), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.followup-main span,
.followup-main small,
.communication-item span,
.communication-item p {
  display: block;
}

.followup-main span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.followup-main strong,
.communication-item strong {
  display: block;
  margin-top: 4px;
  color: #fff;
}

.followup-main small,
.communication-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.followup-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.followup-detail-grid div {
  border: 1px solid rgba(124, 168, 205, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(2, 3, 5, 0.22);
  color: #fff;
  font-weight: 800;
}

.followup-detail-grid small {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.followup-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.communication-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.communication-item p {
  margin: 10px 0 0;
  color: var(--text);
}

.record-subsection {
  border: 1px solid rgba(124, 168, 205, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 3, 5, 0.24);
}

.record-subsection h3 {
  margin: 0 0 10px;
}

.sms-list {
  display: grid;
  gap: 10px;
}

.sms-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(124, 168, 205, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.07), rgba(2, 3, 5, 0.08)),
    rgba(2, 3, 5, 0.32);
}

.sms-item strong,
.sms-item span {
  display: block;
}

.sms-item strong {
  color: #fff;
}

.sms-item span {
  margin-top: 4px;
  color: var(--muted);
}

.sms-item p {
  margin: 10px 0 0;
  color: #d8e9f6;
  line-height: 1.45;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.quote-intro {
  padding: 28px;
  border-radius: 8px;
  background: #111922;
  color: #fff;
  box-shadow: var(--shadow);
}

.quote-intro h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
}

.quote-intro p:not(.eyebrow) {
  color: #c8d4df;
  font-size: 1.03rem;
}

.site-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.site-buttons a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.site-buttons a:first-child {
  background: var(--blue);
}

.form-panel,
.modal-form {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

legend {
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.checkbox-field div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: #f6f9fc;
  color: var(--text);
  font-weight: 700;
}

.checkbox-field input {
  width: auto;
  min-height: auto;
}

.form-section-field {
  background: rgba(37, 168, 255, 0.05);
}

.nested-grid {
  margin-bottom: 0;
}

.estimate-total-card {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(24, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(24, 229, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--glow);
}

.compact-board {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.confirmation {
  min-height: 22px;
  color: var(--green);
  font-weight: 800;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.detailing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.detailing-summary-card {
  border: 1px solid rgba(124, 168, 205, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.08), rgba(2, 3, 5, 0.1)),
    rgba(2, 3, 5, 0.28);
}

.detailing-summary-card span,
.detailing-summary-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.detailing-summary-card strong {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: 1.7rem;
}

.photo-thumb {
  height: 145px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.88), rgba(17, 25, 34, 0.78)),
    repeating-linear-gradient(45deg, #c9d4df 0 12px, #eff4f8 12px 24px);
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.gallery-stats span {
  border-radius: 8px;
  padding: 8px;
  background: rgba(37, 168, 255, 0.1);
  color: #bdeaff;
  font-weight: 800;
  text-align: center;
}

.photo-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bi-card {
  border: 1px solid rgba(124, 168, 205, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.08), rgba(2, 3, 5, 0.1)),
    rgba(2, 3, 5, 0.28);
}

.bi-card span,
.bi-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.bi-card strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-size: 1.35rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.import-form textarea {
  min-height: 210px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.import-results {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.result-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.legacy-import-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.legacy-import-metrics div,
.legacy-detail-card {
  padding: 12px;
  border: 1px solid rgba(29, 182, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 99, 255, 0.08), rgba(29, 182, 255, 0.04));
}

.legacy-import-metrics strong,
.legacy-import-metrics span,
.legacy-detail-card strong,
.legacy-detail-card span,
.legacy-detail-card small {
  display: block;
}

.legacy-import-metrics strong {
  font-size: 1.25rem;
}

.legacy-import-metrics span,
.legacy-detail-card span,
.legacy-detail-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legacy-detail-card {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cleanup-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cleanup-queue {
  display: grid;
  gap: 14px;
}

.cleanup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cleanup-card header,
.cleanup-badges,
.cleanup-stats,
.cleanup-edit-grid {
  display: grid;
  gap: 10px;
}

.cleanup-card header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cleanup-card h3 {
  margin: 0 0 4px;
}

.cleanup-card p,
.cleanup-missing span {
  margin: 0;
  color: var(--muted);
}

.cleanup-badges {
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
}

.cleanup-missing {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
}

.cleanup-missing strong,
.cleanup-missing span,
.cleanup-stats small,
.cleanup-stats div {
  display: block;
}

.cleanup-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.cleanup-stats div {
  padding: 10px;
  border: 1px solid rgba(29, 182, 255, 0.2);
  border-radius: 8px;
  background: rgba(20, 99, 255, 0.05);
  font-weight: 800;
}

.cleanup-stats small {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.cleanup-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cleanup-edit-grid .span-2 {
  grid-column: span 3;
}

.cleanup-checklist {
  padding: 12px;
  border: 1px solid rgba(29, 182, 255, 0.22);
  border-radius: 8px;
  background: #fbfdff;
}

.cleanup-checklist strong {
  display: block;
  margin-bottom: 8px;
}

.cleanup-checklist ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cleanup-checklist li {
  border-radius: 8px;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.cleanup-checklist .complete {
  background: #e7f7ef;
  color: var(--green);
}

.cleanup-checklist .missing {
  background: #fff3db;
  color: var(--amber);
}

.quo-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quo-contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quo-contact-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quo-contact-card h3,
.quo-contact-card p {
  margin: 0;
}

.quo-contact-card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.record-dialog {
  width: min(980px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(17, 25, 34, 0.55);
}

.modal-form header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-form header h2 {
  margin: 0;
}

.modal-form header button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.record-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.record-context-grid section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.record-context-grid h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

button.mini-item {
  cursor: pointer;
}

button.mini-item:hover {
  border-color: rgba(20, 99, 255, 0.45);
  background: #f4f8ff;
}

.mini-item strong,
.mini-item span {
  display: block;
}

.mini-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.muted-item {
  color: var(--muted);
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #111922;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
  pointer-events: none;
  box-shadow: var(--shadow);
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Perfection Detail brand layer */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 168, 255, 0.14), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(24, 229, 255, 0.1), transparent 28%),
    linear-gradient(135deg, var(--black), var(--bg) 44%, #071019);
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at center, rgba(37, 168, 255, 0.18), transparent 34%),
    #020305;
  color: var(--text);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.app-loader img {
  width: min(210px, 52vw);
  filter: drop-shadow(0 0 22px rgba(37, 168, 255, 0.36));
}

.app-loader strong {
  font-size: 1.35rem;
}

.app-loader span {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.app-ready .app-loader {
  visibility: hidden;
  opacity: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.12), transparent 28%),
    #05080c;
  border-right: 1px solid rgba(24, 229, 255, 0.13);
}

.brand {
  align-items: center;
}

.brand-mark.logo-mark {
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(37, 168, 255, 0.32);
  box-shadow: var(--glow);
}

.brand-mark.logo-mark img {
  width: 76px;
  max-width: none;
}

.brand strong {
  color: #fff;
  font-size: 0.98rem;
}

.brand small {
  color: #8fdfff;
  font-size: 0.68rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a.active {
  background: linear-gradient(90deg, rgba(37, 168, 255, 0.22), rgba(24, 229, 255, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan);
}

.sidebar-card,
.global-search,
.metric-card,
.panel,
.table-panel,
.form-panel,
.vehicle-card,
.timeline-card,
.photo-card,
.filter-result-panel,
dialog {
  border-color: rgba(124, 168, 205, 0.22);
  background: linear-gradient(180deg, rgba(16, 25, 34, 0.96), rgba(8, 13, 18, 0.98));
  box-shadow: var(--shadow);
}

.topbar {
  padding: 14px;
  border: 1px solid rgba(124, 168, 205, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.74);
  box-shadow: var(--shadow);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.topbar-title img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(37, 168, 255, 0.32));
}

.topbar-title h1 {
  color: #fff;
}

.eyebrow {
  color: var(--cyan);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(37, 168, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(37, 168, 255, 0.14), rgba(24, 229, 255, 0.04) 42%, rgba(255, 255, 255, 0.03)),
    #05080c;
  box-shadow: var(--glow), var(--shadow);
}

.hero-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-copy img {
  width: min(180px, 28vw);
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(37, 168, 255, 0.34));
}

.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.hero-clock {
  margin: 8px 0 0;
  color: #f4fbff;
  font-weight: 800;
}

.hero-subtitle {
  margin: 8px 0 0;
  color: #b8c7d7;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats button {
  min-height: 106px;
  border: 1px solid rgba(37, 168, 255, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 3, 5, 0.46);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.weather-card {
  min-height: 106px;
  border: 1px solid rgba(37, 168, 255, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.09), rgba(2, 3, 5, 0.12)),
    rgba(2, 3, 5, 0.46);
}

.weather-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weather-card span {
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 900;
}

.weather-card small,
.weather-card p,
.weather-card em {
  color: #9fb4c7;
}

.weather-card strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 1.35rem;
}

.weather-card p {
  margin: 6px 0;
}

.weather-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 800;
}

.weather-card.weather-live em {
  color: var(--cyan);
}

.hero-stats button:hover,
button.metric-card:hover,
.mini-item:hover,
.row-actions button:hover {
  border-color: rgba(24, 229, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(24, 229, 255, 0.08), var(--glow);
}

.hero-stats span,
.metric-card span {
  color: #9fb4c7;
}

.hero-stats strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 1.8rem;
}

button.metric-card {
  background:
    linear-gradient(180deg, rgba(37, 168, 255, 0.08), rgba(2, 3, 5, 0.16)),
    var(--surface);
}

.metric-card strong,
.panel h2,
.section-toolbar h2,
.quote-intro h2,
.vehicle-card h3,
.timeline-card h3,
.photo-card h3 {
  color: #fff;
}

input,
select,
textarea {
  border-color: rgba(124, 168, 205, 0.25);
  background: rgba(2, 3, 5, 0.36);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #6f8295;
}

th {
  background: rgba(37, 168, 255, 0.08);
}

td,
th {
  border-bottom-color: rgba(124, 168, 205, 0.16);
}

.list-item,
.activity-item,
.dashboard-row,
.timeline-item,
.spotlight-group,
.mini-metric,
.security-list div,
.detail-grid div,
.result-row,
.mini-item,
.record-context-grid section,
.calendar-day,
.quick-actions button,
.checkbox-field label,
.site-buttons a,
.photo-card {
  background: rgba(2, 3, 5, 0.28);
  border-color: rgba(124, 168, 205, 0.18);
}

.quick-actions button:hover,
.clickable-row:hover,
.clickable-card:hover,
.record-trigger:hover {
  background: rgba(37, 168, 255, 0.11);
}

.selected-row,
.selected-record {
  outline-color: rgba(24, 229, 255, 0.5);
  background: rgba(37, 168, 255, 0.14) !important;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #03101a;
}

.primary-button:hover {
  background: linear-gradient(135deg, #48b9ff, #58f0ff);
}

.secondary-button,
.ghost-button,
.icon-button,
.row-actions button {
  border-color: rgba(124, 168, 205, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.global-results {
  background: #05080c;
}

.photo-thumb {
  background:
    linear-gradient(135deg, rgba(37, 168, 255, 0.85), rgba(24, 229, 255, 0.22)),
    repeating-linear-gradient(45deg, #0b151d 0 12px, #101d28 12px 24px);
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .metrics-grid,
  .metrics-grid.compact,
  .content-grid,
  .command-center-grid,
  .card-grid,
  .followup-grid,
  .quote-layout,
  .photo-grid,
  .detailing-summary-grid,
  .record-context-grid,
  .filter-bar,
  .cleanup-summary-grid,
  .cleanup-edit-grid,
  .cleanup-checklist ul,
  .quo-contact-grid,
  .bi-grid,
  .dashboard-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-center-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
  }

  .global-search {
    width: 100%;
  }

  .topbar-title {
    align-items: flex-start;
  }

  .topbar-title img {
    width: 42px;
    height: 42px;
  }

  .topbar-actions a,
  .section-toolbar button,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .metrics-grid,
  .metrics-grid.compact,
  .content-grid,
  .command-center-grid,
  .card-grid,
  .followup-grid,
  .quote-layout,
  .photo-grid,
  .detailing-summary-grid,
  .record-context-grid,
  .filter-bar,
  .cleanup-summary-grid,
  .cleanup-edit-grid,
  .cleanup-checklist ul,
  .quo-contact-grid,
  .bi-grid,
  .dashboard-hero,
  .hero-stats,
  .split-list,
  .spotlight-grid,
  .mini-metric-grid,
  .form-grid,
  .checkbox-field div {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-row,
  .timeline-item {
    display: grid;
  }

  .dashboard-row > span {
    justify-items: start;
  }

  .hero-copy img {
    width: min(190px, 72vw);
  }

  .pipeline-board {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .cleanup-card header,
  .cleanup-stats,
  .legacy-detail-card {
    grid-template-columns: 1fr;
  }

  .cleanup-badges {
    justify-content: start;
  }

  .cleanup-edit-grid .span-2 {
    grid-column: span 1;
  }

  .pipeline-card-meta {
    grid-template-columns: 1fr;
  }

  .followup-detail-grid,
  .dashboard-row,
  .timeline-item,
  .communication-item {
    grid-template-columns: 1fr;
  }

  .sms-item {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .quote-intro {
    padding: 22px;
  }

  .site-buttons,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* UI/UX overhaul: premium daily operations layout */
:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-muted: #f5f8fb;
  --text: #17212d;
  --muted: #647589;
  --line: rgba(22, 43, 62, 0.12);
  --shadow: 0 14px 32px rgba(14, 27, 42, 0.08);
  --glow: 0 0 0 1px rgba(37, 168, 255, 0.12), 0 12px 28px rgba(37, 168, 255, 0.1);
}

body {
  background:
    linear-gradient(180deg, #f5f8fb 0%, #eaf1f7 44%, #eef3f8 100%);
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #090f15, #111923);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.brand-mark.logo-mark {
  width: 46px;
  height: 46px;
  background: transparent;
}

.grouped-nav {
  gap: 15px;
}

.grouped-nav section {
  display: grid;
  gap: 4px;
}

.grouped-nav h2 {
  margin: 10px 8px 3px;
  color: #7f91a5;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list a {
  min-height: 34px;
  padding: 8px 10px;
  color: #c9d6e2;
  font-size: 0.91rem;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(37, 168, 255, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.main {
  padding: 22px 26px 32px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: -22px -26px 18px;
  padding: 14px 26px;
  background: rgba(245, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-title img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.topbar h1 {
  font-size: 1.55rem;
  color: #17212d;
}

.topbar .eyebrow {
  color: var(--cyan);
}

.topbar-title {
  color: #17212d;
}

.global-search,
.metric-card,
.panel,
.table-panel,
.form-panel,
.vehicle-card,
.timeline-card,
.photo-card,
.quo-contact-card {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-hero.command-summary {
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 168, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(8, 15, 22, 0.98), rgba(17, 30, 42, 0.94)),
    #101923;
  box-shadow: 0 18px 42px rgba(7, 12, 18, 0.18);
}

.dashboard-hero .hero-copy {
  gap: 14px;
}

.dashboard-hero .hero-copy img {
  width: 86px;
  max-width: 22vw;
}

.dashboard-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.hero-clock {
  margin: 4px 0 0;
  color: #b9c7d8;
}

.hero-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats button,
.weather-card {
  min-height: 86px;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.hero-stats button:hover {
  background: rgba(37, 168, 255, 0.12);
}

.hero-stats strong {
  font-size: 1.25rem;
}

.weather-card {
  grid-column: span 2;
}

.metrics-grid {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
}

#dashboard .metrics-grid {
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

#dashboard .metric-card {
  min-height: 104px;
  padding: 14px;
  scroll-snap-align: start;
}

.metric-chip-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(22, 43, 62, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #26384b;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
}

.metric-chip span,
.metric-chip small {
  color: #66798d;
}

.metric-chip strong {
  color: #17212d;
  font-size: 0.92rem;
}

.metric-chip small {
  display: none;
}

.metric-chip:hover {
  border-color: rgba(37, 168, 255, 0.38);
  box-shadow: var(--glow);
}

.metric-card strong {
  font-size: 1.35rem;
}

.command-center-grid {
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.production-empty-state .data-safety-actions {
  display: flex;
  flex-wrap: wrap;
}

.production-empty-state .data-safety-actions > * {
  flex: 1 1 190px;
}

.command-panel {
  padding: 16px;
}

.panel-header {
  align-items: flex-start;
}

.empty-state {
  border: 1px dashed rgba(22, 43, 62, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: #f8fbfd;
  color: #718399;
  font-weight: 800;
  text-align: center;
}

.table-panel {
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: #f7fafc;
  color: #536579;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr.clickable-row {
  transition: background 140ms ease, box-shadow 140ms ease;
}

tbody tr.clickable-row:hover {
  background: #f4f9fd;
  box-shadow: inset 3px 0 0 var(--blue);
}

#customersTable td:first-child strong {
  font-size: 1rem;
}

#customersTable small,
td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9fc;
}

.detail-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 8px 11px;
  background: transparent;
  color: #5b6f84;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
}

.detail-tabs button.active {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(14, 27, 42, 0.08);
}

.customer-tab-panel {
  display: none;
}

.customer-tab-panel.active {
  display: grid;
}

.record-context-grid {
  grid-template-columns: 1fr;
}

.record-context-grid section.customer-tab-panel {
  background: #fbfdff;
}

.followup-grid {
  grid-template-columns: 1fr;
}

.followup-section {
  min-height: auto;
}

.followup-card,
.communication-item {
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.followup-card {
  grid-template-columns: minmax(230px, 0.9fr) minmax(280px, 1.2fr);
  align-items: start;
}

.followup-card:hover,
.communication-item:hover {
  border-color: rgba(37, 168, 255, 0.36);
  box-shadow: var(--glow);
}

.followup-main strong,
.communication-item strong {
  color: var(--text);
}

.followup-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.followup-actions {
  grid-column: 1 / -1;
}

.followup-actions button,
.pipeline-card-actions button {
  border-color: rgba(22, 43, 62, 0.12);
  background: #f5f8fb;
  color: #314255;
}

.pipeline-board {
  gap: 12px;
}

.pipeline-column {
  background: #f8fbfd;
  box-shadow: none;
}

.pipeline-column h3 {
  color: var(--text);
}

.pipeline-dropzone {
  min-height: 360px;
}

.pipeline-card {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(14, 27, 42, 0.08);
}

.pipeline-card:hover {
  box-shadow: var(--glow);
}

.pipeline-card strong {
  color: var(--text);
}

.pipeline-card-meta small {
  background: #f1f7fc;
  color: #35556f;
}

.quo-contact-grid,
.sms-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
}

.quo-contact-card,
.sms-item {
  background: #fff;
  box-shadow: none;
}

.quo-contact-card {
  display: grid;
  gap: 10px;
}

.quo-contact-card header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sms-item {
  border-color: var(--line);
}

#squarePaymentMetrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

#squareInvoiceList table {
  min-width: 1040px;
}

.primary-button {
  box-shadow: 0 8px 18px rgba(37, 168, 255, 0.18);
}

.secondary-button,
.ghost-button,
.quick-actions button {
  background: #f5f8fb;
  color: #223144;
}

.quick-actions button {
  min-height: 48px;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-hero.command-summary,
  .command-center-grid,
  .quo-contact-grid,
  .sms-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .metrics-grid,
  #squarePaymentMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .followup-card,
  .followup-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 14px;
  }

  .topbar {
    margin: -14px -14px 14px;
    padding: 12px 14px;
  }

  .dashboard-hero .hero-copy img {
    width: 72px;
  }

  .hero-stats,
  .metrics-grid,
  #squarePaymentMetrics {
    grid-template-columns: 1fr;
  }

  .detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .detail-tabs button {
    white-space: nowrap;
  }
}

/* Visual refinement: brighter premium automotive workspace */
:root {
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-muted: #eef6fb;
  --text: #0c1724;
  --muted: #52677c;
  --line: rgba(9, 31, 50, 0.13);
  --blue: #129dff;
  --blue-dark: #0574cf;
  --cyan: #18dffc;
  --shadow: 0 18px 44px rgba(12, 34, 56, 0.1);
  --glow: 0 0 0 1px rgba(18, 157, 255, 0.16), 0 14px 34px rgba(18, 157, 255, 0.14);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 223, 252, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fcff 0%, #edf5fb 42%, #f4f8fc 100%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(8, 16, 24, 0.98), rgba(11, 20, 30, 0.98)),
    #0b1420;
  box-shadow: 10px 0 30px rgba(10, 25, 40, 0.12);
}

.brand {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grouped-nav h2 {
  color: #8da5ba;
}

.nav-list a.active {
  background: linear-gradient(90deg, rgba(18, 157, 255, 0.24), rgba(24, 223, 252, 0.07));
  box-shadow: inset 3px 0 0 var(--cyan);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 254, 0.92));
  box-shadow: 0 8px 28px rgba(12, 34, 56, 0.08);
}

.topbar .eyebrow,
.eyebrow {
  color: #02c9ee;
}

.global-search {
  background: #fff;
  border-color: rgba(18, 157, 255, 0.18);
  box-shadow: 0 8px 22px rgba(12, 34, 56, 0.06);
}

.global-search input {
  color: #0c1724;
}

.sync-status.synced {
  background: #effcf6;
  border-color: rgba(22, 135, 90, 0.32);
  color: #107849;
}

.local-warning {
  background: linear-gradient(90deg, #fff8e9, #fffdf8);
  color: #9b650b;
}

.dashboard-hero.command-summary {
  min-height: 232px;
  background:
    radial-gradient(circle at 12% 22%, rgba(24, 223, 252, 0.2), transparent 23%),
    linear-gradient(135deg, #07111b 0%, #0c1a27 52%, #0f2735 100%);
  border-color: rgba(24, 223, 252, 0.18);
}

.dashboard-hero .hero-copy img {
  filter: drop-shadow(0 10px 24px rgba(18, 157, 255, 0.28));
}

.dashboard-hero h2 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.hero-stats button,
.weather-card {
  border-color: rgba(154, 190, 220, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.hero-stats button span,
.weather-card small,
.weather-card p {
  color: #a9c4d8;
}

.hero-stats strong,
.weather-card strong {
  color: #ffffff;
}

.weather-card em {
  color: var(--cyan);
}

.production-empty-state {
  padding: 20px;
  border: 1px solid rgba(18, 157, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: var(--shadow);
}

.production-empty-state h2 {
  color: #0b1a2a;
}

#dashboard .metric-card,
.metric-card,
.panel,
.table-panel,
.form-panel,
.vehicle-card,
.timeline-card,
.photo-card,
.quo-contact-card {
  border-color: rgba(9, 31, 50, 0.11);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(12, 34, 56, 0.08);
}

#dashboard .metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 253, 0.96));
}

.metric-card span,
.metric-chip span {
  color: #6e86a0;
}

.metric-card strong,
.metric-chip strong {
  color: #0b1a2a;
}

button.metric-card:hover,
.metric-chip:hover,
.quick-actions button:hover {
  border-color: rgba(18, 157, 255, 0.36);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.metric-chip-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 253, 0.92));
}

.metric-chip {
  background: #ffffff;
  color: #25384d;
}

.primary-button {
  background: linear-gradient(135deg, #139fff, #19d8f7);
  color: #03111d;
  box-shadow: 0 10px 24px rgba(18, 157, 255, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, #058be7, #12c9eb);
}

.secondary-button,
.ghost-button,
.quick-actions button {
  background: #f7fbff;
  border: 1px solid rgba(9, 31, 50, 0.1);
}

.empty-state {
  background:
    linear-gradient(180deg, #ffffff, #f8fbfe);
  color: #657b91;
}

.mini-metric-grid div,
.spotlight-grid div {
  background: linear-gradient(180deg, #eef6fb, #e4eef6);
  border: 1px solid rgba(18, 157, 255, 0.1);
  color: #18304a;
}

.mini-metric-grid strong,
.spotlight-grid strong {
  color: #07111b;
}

.followup-card,
.pipeline-card,
.communication-item,
.sms-item,
.quo-contact-card {
  border-color: rgba(9, 31, 50, 0.12);
}

.pipeline-column {
  background: linear-gradient(180deg, #ffffff, #f2f8fc);
}

.pipeline-column header {
  background: linear-gradient(180deg, #f8fcff, #eef6fb);
}

thead th {
  background: linear-gradient(180deg, #f9fcff, #eef6fb);
}

tbody tr.clickable-row:hover {
  background: #eef8ff;
}

@media (max-width: 720px) {
  .dashboard-hero.command-summary {
    min-height: auto;
  }

  .hero-stats button,
  .weather-card {
    min-height: 74px;
  }
}

/* Final visual polish: reduce gray holdouts and tighten small screens */
.global-results[hidden] {
  display: none;
}

.global-results {
  background: #ffffff;
  border-color: rgba(18, 157, 255, 0.18);
}

.global-results button,
.global-results .list-item {
  background: #f7fbff;
  border-color: rgba(9, 31, 50, 0.1);
}

.mini-metric,
.spotlight-group,
.bi-card {
  background:
    linear-gradient(180deg, #f8fcff 0%, #edf7fd 100%);
  border: 1px solid rgba(18, 157, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mini-metric span,
.spotlight-group .eyebrow,
.bi-card span {
  color: #56708a;
}

.mini-metric strong,
.spotlight-group strong,
.bi-card strong {
  color: #081827;
}

.command-panel,
.content-grid > .panel,
.dashboard-section {
  box-shadow: 0 16px 36px rgba(12, 34, 56, 0.07);
}

.hero-stats button:hover,
.weather-card:hover {
  border-color: rgba(24, 223, 252, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
}

@media (max-width: 720px) {
  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .sync-status {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }

  .topbar-actions a,
  .topbar-actions button {
    min-height: 40px;
    padding-inline: 8px;
  }

  .global-search input::placeholder {
    color: transparent;
  }

  .dashboard-hero.command-summary {
    padding: 18px;
  }

  .dashboard-hero h2 {
    font-size: 1.35rem;
  }
}

/* Sidebar brand cleanup */
.brand {
  min-height: auto;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
}

.brand-mark.logo-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(24, 223, 252, 0.22), 0 10px 22px rgba(18, 157, 255, 0.12);
}

.brand-mark.logo-mark img {
  width: 56px;
}

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

.brand strong {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: #8edfff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar {
  gap: 18px;
}

.topbar-title {
  flex: 0 0 auto;
}

.topbar-title img {
  width: 40px;
  height: 40px;
}

.topbar-title .eyebrow {
  display: none;
}

.global-search input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.global-search input::-webkit-search-cancel-button,
.global-search input::-webkit-search-decoration {
  -webkit-appearance: none;
}

@media (max-width: 720px) {
  .topbar-title {
    flex-basis: auto;
  }
}

/* Public booking portal and admin request queue */
.public-booking-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(24, 223, 252, 0.16), transparent 32%),
    linear-gradient(145deg, #06111d 0%, #0d1a28 38%, #eef6fb 38%, #f7fbff 100%);
}

.public-booking-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.booking-app-shell {
  display: grid;
  gap: 18px;
}

.booking-app-header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(24, 223, 252, 0.22);
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(5, 15, 25, 0.96), rgba(12, 31, 48, 0.94)),
    radial-gradient(circle at top right, rgba(18, 157, 255, 0.18), transparent 36%);
  box-shadow: 0 24px 54px rgba(3, 12, 22, 0.28);
}

.booking-app-header img {
  width: 88px;
  filter: drop-shadow(0 12px 22px rgba(18, 157, 255, 0.32));
}

.booking-app-header h1,
.booking-app-header p {
  margin: 0;
}

.booking-app-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 0.98;
}

.booking-app-header p:last-child {
  max-width: 760px;
  color: #c5d8e8;
}

.booking-progress-card,
.booking-wizard {
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(12, 34, 56, 0.1);
}

.booking-progress-card {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: 0 18px 48px rgba(12, 34, 56, 0.14);
}

.booking-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #dceaf4, #edf6fc);
  box-shadow: inset 0 1px 2px rgba(10, 32, 50, 0.12);
}

.booking-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a8f8, #18dffc);
  transition: width 180ms ease;
  box-shadow: 0 0 18px rgba(24, 223, 252, 0.28);
}

.booking-progress-steps {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}

.booking-progress-steps button {
  display: grid;
  gap: 3px;
  justify-items: center;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5c6f83;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.booking-progress-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #567086;
  background: #edf5fb;
}

.booking-progress-steps button.active {
  color: #062033;
  background: #eef8ff;
  border-color: rgba(18, 157, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 157, 255, 0.12);
}

.booking-progress-steps button.active span,
.booking-progress-steps button.complete span {
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
}

.booking-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-width: 0;
}

.booking-panel {
  display: none;
  padding: clamp(18px, 4vw, 34px);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.booking-panel.active {
  display: grid;
  gap: 20px;
  animation: bookingPanelIn 220ms ease both;
}

@keyframes bookingPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-panel-heading {
  max-width: 760px;
}

.booking-panel-heading h2,
.booking-panel-heading p {
  margin: 0;
}

.booking-panel-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #061421;
}

.booking-panel-heading p {
  color: #4d6175;
}

.booking-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  min-width: 0;
}

.booking-intro-card,
.booking-contact-card,
.booking-roadmap-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
  min-width: 0;
}

.booking-intro-card {
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(5, 15, 25, 0.96), rgba(10, 31, 49, 0.94)),
    radial-gradient(circle at top right, rgba(24, 223, 252, 0.14), transparent 40%);
}

.booking-intro-card img {
  width: 98px;
}

.booking-intro-card h2,
.booking-intro-card p,
.booking-contact-card p,
.booking-roadmap-card p {
  margin: 0;
}

.booking-intro-card h2 {
  max-width: 650px;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.booking-intro-card p {
  color: #c5d8e8;
}

.booking-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-trust-row span,
.booking-trust-row strong {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d9ebf8;
  background: rgba(255, 255, 255, 0.07);
}

.booking-trust-row strong {
  color: #061421;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-service-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: 0 12px 26px rgba(12, 34, 56, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.booking-service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #28a8f8, #18dffc);
  opacity: 0;
  transition: opacity 160ms ease;
}

.booking-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 157, 255, 0.28);
  box-shadow: 0 18px 40px rgba(12, 34, 56, 0.11);
}

.booking-service-card.selected {
  border-color: rgba(18, 157, 255, 0.52);
  box-shadow: 0 0 0 2px rgba(24, 223, 252, 0.16), 0 16px 34px rgba(12, 34, 56, 0.1);
}

.booking-service-card.selected::before {
  opacity: 1;
}

.booking-service-card h3,
.booking-service-card p {
  margin: 0;
}

.booking-service-card h3 {
  font-size: 1.25rem;
  color: #061421;
}

.booking-service-card p:not(.eyebrow) {
  color: #4d6175;
}

.booking-service-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #43566a;
}

.booking-service-meta strong {
  color: #061421;
}

.booking-panel[data-step-panel="vehicle"] .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.booking-panel[data-step-panel="vehicle"] label:nth-child(2),
.booking-panel[data-step-panel="vehicle"] label:nth-child(3) {
  grid-column: span 2;
}

.booking-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.booking-chip-grid label,
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(18, 157, 255, 0.14);
  border-radius: 12px;
  background: #f7fbff;
  color: #0c1724;
  font-weight: 800;
}

.booking-option-field {
  padding: 0;
  border: 0;
}

.booking-option-field legend {
  margin-bottom: 10px;
  color: #43566a;
  font-weight: 900;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.photo-upload-grid label {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(18, 157, 255, 0.28);
  border-radius: 14px;
  background: #f8fcff;
  color: #0c1724;
  font-weight: 900;
}

.booking-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-review-summary article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.booking-review-summary small {
  color: #6a7d90;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-review-summary strong {
  color: #061421;
}

.booking-review-summary span {
  color: #4d6175;
}

.booking-wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(18px, 4vw, 34px);
  border-top: 1px solid rgba(9, 31, 50, 0.1);
  background: #f8fcff;
}

.booking-wizard-actions button {
  min-width: 130px;
}

.booking-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(24, 223, 252, 0.2);
  border-radius: 10px;
  background: rgba(5, 14, 24, 0.86);
  color: #fff;
  box-shadow: 0 18px 44px rgba(4, 12, 20, 0.26);
}

.booking-hero img {
  width: 112px;
  filter: drop-shadow(0 14px 28px rgba(18, 157, 255, 0.34));
}

.booking-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.booking-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: #c5d8e8;
}

.public-booking-form,
.booking-step {
  display: grid;
  gap: 16px;
}

.public-booking-form input,
.public-booking-form select,
.public-booking-form textarea {
  background: #ffffff;
  border: 1px solid rgba(18, 157, 255, 0.16);
  color: #0c1724;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.public-booking-form input::placeholder,
.public-booking-form textarea::placeholder {
  color: #8aa0b5;
}

.public-booking-form .checkbox-field label {
  background: #f7fbff;
  border-color: rgba(18, 157, 255, 0.12);
}

.booking-step {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(12, 34, 56, 0.09);
}

.booking-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

#bookingStatus[data-tone="success"] {
  color: #0d7a4c;
}

#bookingStatus[data-tone="error"] {
  color: #b42318;
}

#bookingStatus[data-tone="warning"] {
  color: #a15c00;
}

.booking-confirmation-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #0c1724;
  background: transparent;
  box-shadow: 0 30px 90px rgba(3, 12, 22, 0.28);
}

.booking-confirmation-dialog::backdrop {
  background: rgba(2, 10, 18, 0.68);
  backdrop-filter: blur(7px);
}

.booking-confirmation-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(24, 223, 252, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 255, 0.96)),
    radial-gradient(circle at top left, rgba(24, 223, 252, 0.18), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-align: left;
}

.booking-confirmation-card img {
  width: 76px;
  height: auto;
}

.booking-success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  box-shadow: 0 14px 28px rgba(18, 157, 255, 0.24);
  font-size: 1.7rem;
  font-weight: 1000;
}

.booking-confirmation-card h2,
.booking-confirmation-card p {
  margin: 0;
}

.booking-confirmation-card h2 {
  font-size: 1.7rem;
  color: #061421;
}

.booking-confirmation-card #bookingConfirmationMessage {
  color: #43566a;
  line-height: 1.55;
}

.booking-request-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-request-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: 0 14px 34px rgba(12, 34, 56, 0.08);
}

.booking-request-card.needs-action {
  border-color: rgba(18, 157, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(24, 223, 252, 0.08), 0 16px 34px rgba(12, 34, 56, 0.1);
}

.booking-request-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.booking-request-card h3,
.booking-request-card p {
  margin: 0;
}

.booking-request-card .detail-grid div {
  background: linear-gradient(180deg, #f8fcff, #eef7fd);
  border: 1px solid rgba(18, 157, 255, 0.12);
  color: #0c1724;
}

.provider-note,
.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(18, 157, 255, 0.18);
  border-radius: 999px;
  background: rgba(236, 249, 255, 0.9);
  color: #32506a;
  font-size: 0.78rem;
  font-weight: 800;
}

.provider-note {
  max-width: 100%;
  border-radius: 8px;
  white-space: normal;
}

/* P1 dashboard operating-system refresh */
.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  gap: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #07111b 0%, #0a1520 56%, #08111a 100%);
  border-right: 1px solid rgba(127, 177, 218, 0.14);
}

.brand {
  min-height: 58px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.brand-mark {
  overflow: hidden;
  background: rgba(18, 157, 255, 0.12);
  border: 1px solid rgba(24, 223, 252, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 3px;
  color: #9eb4c8;
  font-size: 0.72rem;
  font-weight: 800;
}

.sidebar-search {
  display: grid;
  gap: 6px;
  padding: 0 2px;
}

.sidebar-search span {
  color: #7891a8;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(154, 190, 220, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #f5fbff;
}

.grouped-nav {
  gap: 15px;
}

.grouped-nav section {
  display: grid;
  gap: 3px;
}

.grouped-nav h2 {
  margin: 0 0 4px 8px;
  color: #7891a8;
  font-size: 0.64rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
}

.nav-list a {
  min-height: 35px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cfdae5;
  font-size: 0.86rem;
  font-weight: 750;
}

.nav-list a:hover,
.nav-list a.active {
  border-color: rgba(24, 223, 252, 0.16);
  background: linear-gradient(90deg, rgba(18, 157, 255, 0.24), rgba(24, 223, 252, 0.07));
  color: #ffffff;
  box-shadow: inset 3px 0 0 #18dffc;
}

.main {
  padding: 18px 22px 30px;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef5fa 100%);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: -18px -22px 18px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 0;
  background: rgba(251, 253, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-title img {
  width: 42px;
  height: 42px;
}

.topbar h1 {
  font-size: 1.35rem;
}

.global-search {
  max-width: 470px;
  min-height: 40px;
}

.dashboard-command-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(9, 31, 50, 0.11);
  border-radius: 14px;
  background:
    radial-gradient(circle at 4% 0%, rgba(24, 223, 252, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
  box-shadow: 0 18px 44px rgba(12, 34, 56, 0.08);
}

.dashboard-title-block {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.command-brandline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-brandline img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(18, 157, 255, 0.18));
}

.command-brandline span,
.command-brandline small {
  display: block;
}

.command-brandline span {
  color: #08bce2;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-brandline small {
  margin-top: 2px;
  color: #5f7488;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-command-header h2 {
  margin: 0;
  color: #071523;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.dashboard-command-header p {
  max-width: 680px;
  margin: 0;
  color: #566b7d;
  font-size: 1rem;
}

.dashboard-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.command-status-panel {
  display: grid;
  gap: 12px;
}

.command-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.command-quick-stats button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(12, 34, 56, 0.06);
  cursor: pointer;
}

.command-quick-stats span,
.command-quick-stats small {
  color: #64788b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-quick-stats strong {
  color: #071523;
  font-size: 1.28rem;
}

.dashboard-command-header .weather-card {
  min-height: 0;
  border: 1px solid rgba(18, 157, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fcff, #edf6fb);
  color: #0e2336;
}

.dashboard-command-header .weather-card strong {
  color: #071523;
}

.dashboard-command-header .weather-card small,
.dashboard-command-header .weather-card p {
  color: #5c7388;
}

.dashboard-command-header .weather-card em {
  color: #079ebf;
}

.dashboard-tabs {
  position: sticky;
  z-index: 15;
  top: 71px;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(9, 31, 50, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(12, 34, 56, 0.06);
  backdrop-filter: blur(12px);
}

.dashboard-tabs a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 9px 14px;
  color: #52677c;
  font-size: 0.85rem;
  font-weight: 900;
}

.dashboard-tabs a:hover,
.dashboard-tabs a.active {
  background: #071523;
  color: #ffffff;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.ops-overview-card,
.review-management-card {
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 15px 36px rgba(12, 34, 56, 0.08);
}

.ops-overview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ops-overview-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-overview-card h3,
.ops-overview-card p,
.review-management-card h2,
.review-management-card h3,
.review-management-card p {
  margin: 0;
}

.ops-overview-card h3 {
  color: #071523;
  font-size: 1rem;
}

.ops-overview-card p {
  margin-top: 4px;
  color: #62778b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.ops-overview-card header button {
  flex: 0 0 auto;
  border: 1px solid rgba(18, 157, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f3f9fd;
  color: #086dab;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-card-rows {
  display: grid;
  gap: 8px;
}

.dashboard-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(9, 31, 50, 0.08);
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  background: linear-gradient(180deg, #fbfdff, #f4f9fd);
  color: #102234;
}

button.dashboard-card-row {
  cursor: pointer;
}

.dashboard-card-row span {
  color: #587087;
  font-size: 0.8rem;
  font-weight: 900;
}

.dashboard-card-row strong {
  justify-self: end;
  color: #071523;
  font-size: 0.95rem;
}

.dashboard-card-row small {
  grid-column: 1 / -1;
  color: #7a8fa2;
  font-size: 0.72rem;
}

#dashboard .metrics-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

#dashboard .metric-card {
  min-height: 96px;
  border-radius: 12px;
  padding: 13px;
}

#dashboard .metric-chip-bar {
  grid-column: 1 / -1;
  max-height: 112px;
  overflow: auto;
  border-radius: 12px;
}

.dashboard-review-panel {
  margin-bottom: 14px;
}

.review-management-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.8fr) minmax(280px, 0.7fr);
  gap: 16px;
  padding: 18px;
}

.review-management-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.review-management-copy h2 {
  color: #071523;
  font-size: 1.45rem;
}

.review-management-copy p {
  color: #5f7488;
  line-height: 1.45;
}

.review-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-score-grid div {
  display: grid;
  gap: 4px;
  min-height: 94px;
  border: 1px solid rgba(18, 157, 255, 0.12);
  border-radius: 11px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fcff, #eef7fd);
}

.review-score-grid span,
.review-score-grid small {
  color: #61778d;
  font-size: 0.74rem;
  font-weight: 900;
}

.review-score-grid strong {
  color: #071523;
  font-size: 1.15rem;
}

.review-needed-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.review-needed-list h3 {
  color: #071523;
  font-size: 0.95rem;
}

.review-job-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(9, 31, 50, 0.08);
  border-radius: 9px;
  padding: 10px;
  text-align: left;
  background: #ffffff;
  cursor: pointer;
}

.review-job-row strong {
  color: #071523;
}

.review-job-row span,
.review-job-row small {
  color: #64788b;
}

.command-center-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-panel {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .dashboard-command-header,
  .review-management-card {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dashboard .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    top: 0;
    margin: -14px -14px 12px;
    padding: 10px 14px;
  }

  .dashboard-command-header,
  .ops-overview-card,
  .review-management-card {
    border-radius: 12px;
  }

  .command-quick-stats,
  .dashboard-overview-grid,
  #dashboard .metrics-grid,
  .review-score-grid,
  .command-center-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    top: 65px;
  }
}

@media (max-width: 820px) {
  .public-booking-shell {
    width: min(100% - 20px, 760px);
    padding-top: 12px;
  }

  .booking-app-header,
  .booking-hero,
  .booking-summary,
  .booking-request-list,
  .booking-welcome-grid,
  .booking-service-grid,
  .booking-review-summary,
  .photo-upload-grid {
    grid-template-columns: 1fr;
  }

  .booking-app-header img,
  .booking-hero img {
    width: 88px;
  }

  .booking-progress-card {
    position: static;
  }

  .booking-panel {
    padding: 14px;
  }

  .booking-intro-card,
  .booking-contact-card,
  .booking-roadmap-card {
    padding: 18px;
  }

  .booking-progress-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .booking-progress-steps button {
    min-width: 74px;
  }

  .booking-chip-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel[data-step-panel="vehicle"] .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel[data-step-panel="vehicle"] label:nth-child(2),
  .booking-panel[data-step-panel="vehicle"] label:nth-child(3) {
    grid-column: auto;
  }

  .booking-wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
  }
}

/* Customer booking app polish */
.public-booking-page {
  background:
    radial-gradient(circle at 8% 5%, rgba(24, 223, 252, 0.12), transparent 28%),
    linear-gradient(135deg, #05080d 0%, #0a141f 50%, #f2f7fb 50%, #f7fbff 100%);
  color: #0c1724;
}

.booking-app {
  min-height: 100vh;
  padding: 18px;
}

.booking-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto 14px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 223, 252, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(6, 17, 29, 0.92);
  box-shadow: 0 18px 44px rgba(3, 12, 22, 0.24);
  backdrop-filter: blur(14px);
}

.booking-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.booking-topbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.booking-topbar-brand div,
.booking-topbar-step {
  display: grid;
  min-width: 0;
}

.booking-topbar-brand strong,
.booking-topbar-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-topbar-brand span,
.booking-topbar-step span {
  color: #98c3de;
  font-size: 0.76rem;
  font-weight: 800;
}

.booking-topbar-step {
  justify-items: end;
  text-align: right;
}

.booking-app-frame {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.booking-side-rail {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(24, 223, 252, 0.2);
  border-radius: 22px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(4, 14, 24, 0.98), rgba(11, 30, 47, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(18, 157, 255, 0.16), transparent 34%);
  box-shadow: 0 28px 70px rgba(3, 12, 22, 0.28);
}

.booking-side-rail img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(18, 157, 255, 0.24));
}

.booking-side-rail h1,
.booking-side-rail p {
  margin: 0;
}

.booking-side-rail h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.booking-side-rail p {
  color: #c8d9e6;
  line-height: 1.55;
}

.booking-trust-stack,
.booking-mini-summary {
  display: grid;
  gap: 9px;
}

.booking-trust-stack span,
.booking-mini-summary span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #d9ebf8;
  background: rgba(255, 255, 255, 0.06);
}

.booking-mini-summary {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.booking-main-card {
  min-width: 0;
  opacity: 1;
  overflow: hidden;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(12, 34, 56, 0.16);
}

.booking-main-card .booking-progress-card {
  position: static;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.booking-main-card .booking-wizard {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-screen {
  display: grid;
  gap: 18px;
  max-width: 660px;
}

.booking-welcome-screen {
  min-height: 520px;
  align-content: center;
}

.booking-hero-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  box-shadow: 0 16px 34px rgba(18, 157, 255, 0.22);
  font-size: 1.7rem;
  font-weight: 1000;
}

.booking-logo-mark {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(18, 157, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 40%, rgba(24, 223, 252, 0.18), transparent 62%),
    linear-gradient(180deg, #071624, #0c1c2d);
  box-shadow: 0 20px 44px rgba(18, 157, 255, 0.16), 0 18px 40px rgba(3, 12, 22, 0.1);
}

.booking-logo-mark img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(18, 157, 255, 0.2));
}

.booking-logo-mark.small {
  width: 78px;
  height: 78px;
  border-radius: 22px;
}

.booking-logo-mark.small img {
  width: 62px;
  height: 62px;
}

.booking-welcome-screen h2 {
  margin: 0;
  max-width: 680px;
  color: #061421;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.94;
}

.booking-welcome-screen p {
  margin: 0;
  max-width: 620px;
  color: #44596c;
  font-size: 1.05rem;
  line-height: 1.55;
}

.booking-progress-card .booking-progress-steps {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.booking-progress-steps button {
  min-width: 0;
  cursor: pointer;
}

.booking-panel {
  padding: clamp(24px, 5vw, 46px);
}

.booking-panel-heading {
  max-width: 680px;
}

.booking-panel-heading h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.booking-field-card,
.booking-note-card,
.booking-toggle-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 28px rgba(12, 34, 56, 0.07);
}

.booking-field-card label,
.booking-field-card {
  color: #52687b;
}

.booking-consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 190, 238, 0.22);
  border-radius: 14px;
  background: rgba(235, 250, 255, 0.75);
  color: #31475a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.booking-consent-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #16bff3;
}

.booking-consent-line.subtle {
  background: rgba(247, 251, 255, 0.8);
  border-color: rgba(9, 31, 50, 0.1);
}

.legal-page {
  min-height: 100vh;
  padding: 28px 18px;
}

.legal-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 50px rgba(12, 34, 56, 0.1);
}

.legal-shell img {
  width: 88px;
  height: auto;
}

.legal-shell h1,
.legal-shell h2,
.legal-shell p {
  margin: 0;
}

.legal-shell section {
  display: grid;
  gap: 8px;
}

.legal-shell p {
  color: #52687b;
  line-height: 1.65;
}

.booking-vehicle-fields,
.booking-schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.booking-schedule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-option-group {
  display: grid;
  gap: 10px;
}

.booking-option-group > span {
  color: #52687b;
  font-weight: 900;
}

.booking-choice-grid,
.booking-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-choice-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.booking-choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-choice-card,
.booking-addon-card {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 18px;
  color: #0c1724;
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 24px rgba(12, 34, 56, 0.07);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.booking-choice-card:hover,
.booking-addon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 157, 255, 0.32);
  box-shadow: 0 18px 36px rgba(12, 34, 56, 0.1);
}

.booking-choice-card.selected,
.booking-addon-card.selected {
  border-color: rgba(18, 157, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(24, 223, 252, 0.16), 0 16px 34px rgba(12, 34, 56, 0.1);
}

.booking-choice-card.selected::after,
.booking-addon-card.selected::after {
  content: "Selected";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  font-size: 0.7rem;
  font-weight: 1000;
}

.booking-choice-card strong,
.booking-addon-card strong {
  padding-right: 74px;
  color: #061421;
  font-size: 1rem;
}

.booking-choice-card span,
.booking-addon-card small {
  color: #52687b;
  line-height: 1.42;
}

.booking-addon-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.booking-addon-card input {
  width: 20px;
  min-height: 20px;
}

.booking-addon-card span {
  display: grid;
  gap: 4px;
}

.booking-addon-card em {
  color: #16875a;
  font-style: normal;
  font-weight: 900;
}

.photo-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-upload-tile {
  min-height: 190px;
  align-content: center;
  justify-items: start;
  border-style: solid;
}

.photo-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  font-size: 1.6rem;
  font-weight: 900;
}

.photo-upload-tile.has-files {
  border-color: rgba(18, 157, 255, 0.52);
  background: linear-gradient(180deg, #ffffff, #edf9ff);
}

.photo-upload-tile em {
  color: #16875a;
  font-style: normal;
  font-weight: 900;
}

.booking-toggle-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  cursor: pointer;
}

.booking-toggle-card input {
  width: 22px;
  min-height: 22px;
}

.booking-toggle-card span {
  display: grid;
  gap: 3px;
}

.booking-toggle-card strong {
  color: #061421;
}

.booking-toggle-card small,
.booking-note-card span {
  color: #52687b;
}

.booking-review-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-review-summary article {
  border-radius: 18px;
}

.booking-wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  align-items: center;
  border-top: 1px solid rgba(9, 31, 50, 0.1);
  background: rgba(248, 252, 255, 0.94);
  backdrop-filter: blur(12px);
}

.booking-wizard-actions .primary-button,
.booking-wizard-actions .secondary-button {
  min-height: 50px;
  border-radius: 14px;
}

.booking-wizard-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.booking-confirmation-card {
  justify-items: start;
  padding: 30px;
}

.booking-confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.booking-confirmation-actions a,
.booking-confirmation-actions button {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.ghost-button {
  border: 1px solid transparent;
  color: #52687b;
  background: transparent;
}

@media (max-width: 980px) {
  .booking-app {
    padding: 10px;
  }

  .booking-app-frame {
    grid-template-columns: 1fr;
  }

  .booking-side-rail {
    position: static;
    padding: 18px;
  }

  .booking-side-rail img,
  .booking-side-rail .eyebrow,
  .booking-side-rail h1,
  .booking-side-rail p,
  .booking-side-rail .booking-trust-stack {
    display: none;
  }

  .booking-mini-summary {
    margin: 0;
    padding-top: 0;
    border-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-progress-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .booking-progress-steps button {
    min-width: 82px;
  }

  .booking-panel {
    padding: 22px 16px;
  }

  .booking-welcome-screen {
    min-height: 460px;
  }

  .booking-vehicle-fields,
  .booking-schedule-grid,
  .booking-choice-grid,
  .booking-choice-grid.compact,
  .booking-choice-grid.three,
  .booking-choice-grid.two,
  .booking-addon-grid,
  .photo-upload-grid,
  .booking-review-summary,
  .booking-confirmation-actions {
    grid-template-columns: 1fr;
  }

  .booking-choice-card,
  .booking-addon-card {
    min-height: 104px;
  }

  .booking-wizard-actions {
    margin: 0 -1px;
    padding: 12px;
  }

  .booking-wizard-actions button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .booking-topbar {
    border-radius: 16px;
  }

  .booking-topbar-brand strong {
    max-width: 150px;
  }

  .booking-topbar-step strong {
    max-width: 145px;
  }

  .booking-main-card {
    border-radius: 20px;
  }

  .booking-welcome-screen h2 {
    font-size: clamp(2.5rem, 16vw, 4rem);
  }

  .booking-trust-row {
    display: grid;
  }

  .booking-mini-summary {
    grid-template-columns: 1fr;
  }

  .booking-confirmation-dialog {
    width: min(94vw, 520px);
  }

  .booking-confirmation-card {
    gap: 9px;
    padding: 20px;
  }

  .booking-confirmation-card img {
    width: 58px;
  }

  .booking-confirmation-card h2 {
    font-size: 1.42rem;
  }

  .booking-confirmation-card #bookingConfirmationMessage,
  .booking-confirmation-list {
    font-size: 0.94rem;
  }

  .booking-success-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .booking-confirmation-actions {
    grid-template-columns: 1fr;
  }
}

/* Dashboard and booking cleanup pass */
.sync-status.synced {
  border-color: rgba(22, 163, 74, 0.26);
  color: #0f7a45;
  background: #ecfdf3;
  box-shadow: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.sync-status.saving {
  border-color: rgba(37, 168, 255, 0.22);
  color: #075985;
  background: #eff8ff;
}

.local-warning {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: none;
}

.dashboard-command-header {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(12, 34, 56, 0.06);
}

.dashboard-title-block {
  gap: 9px;
}

.command-brandline {
  gap: 10px;
}

.command-brandline img {
  width: 42px;
  height: 42px;
}

.command-brandline span {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.command-brandline small {
  font-size: 0.78rem;
}

.dashboard-command-header h2 {
  max-width: 640px;
  font-size: clamp(1.45rem, 2.3vw, 2.12rem);
  line-height: 1.08;
}

.dashboard-command-header p {
  max-width: 560px;
  font-size: 0.92rem;
}

.dashboard-primary-actions {
  gap: 8px;
}

.dashboard-primary-actions .primary-button,
.dashboard-primary-actions .secondary-button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 9px;
}

.command-status-panel {
  align-content: center;
}

.command-quick-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.command-quick-stats button {
  min-height: 84px;
  padding: 11px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(12, 34, 56, 0.05);
}

.command-quick-stats span,
.command-quick-stats small {
  font-size: 0.67rem;
}

.command-quick-stats strong {
  font-size: 1.3rem;
}

.dashboard-command-header .weather-card[hidden] {
  display: none !important;
}

.dashboard-command-header .weather-card {
  display: flex;
  min-height: auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef8ff;
  box-shadow: none;
}

.dashboard-command-header .weather-card div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-command-header .weather-card strong,
.dashboard-command-header .weather-card p,
.dashboard-command-header .weather-card em {
  margin: 0;
  font-size: 0.78rem;
}

.dashboard-command-header .weather-card em,
.dashboard-command-header .weather-card small:last-of-type {
  display: none;
}

.dashboard-tabs {
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(12, 34, 56, 0.05);
}

.dashboard-tabs a {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.dashboard-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ops-overview-card {
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(12, 34, 56, 0.06);
}

.ops-overview-card header {
  display: grid;
  gap: 8px;
}

.ops-overview-card header button {
  width: fit-content;
  min-height: 32px;
  padding: 7px 9px;
  font-size: 0.72rem;
}

.ops-overview-card h3 {
  font-size: 0.95rem;
}

.ops-overview-card p {
  font-size: 0.78rem;
}

.dashboard-card-rows {
  gap: 7px;
}

.dashboard-card-row {
  min-height: 36px;
  padding: 8px 9px;
  border-radius: 8px;
}

.dashboard-card-row span {
  font-size: 0.75rem;
}

#dashboard .metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

#dashboard .metric-card {
  min-height: 76px;
  padding: 11px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(12, 34, 56, 0.05);
}

#dashboard .metric-card span {
  font-size: 0.72rem;
}

#dashboard .metric-card strong {
  font-size: 1.18rem;
}

#dashboard .metric-card small {
  font-size: 0.7rem;
}

#dashboard .metric-chip-bar {
  max-height: 68px;
  padding: 8px;
  border: 1px solid rgba(9, 31, 50, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

#dashboard .metric-chip {
  min-height: 30px;
  padding: 6px 9px;
  opacity: 0.72;
}

#dashboard .metric-chip:hover,
#dashboard .metric-chip.selected-record {
  opacity: 1;
}

.review-management-card {
  grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 1.1fr);
  padding: 16px;
  border-radius: 12px;
}

.review-needed-list {
  grid-column: 1 / -1;
}

.production-empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(12, 34, 56, 0.05);
}

.production-empty-state h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.production-empty-state p {
  margin: 0;
  color: #587087;
  font-size: 0.86rem;
}

.production-empty-state .eyebrow {
  margin-bottom: 4px;
}

.production-empty-state .data-safety-actions {
  justify-content: flex-end;
}

.production-empty-state .data-safety-actions > * {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 8px 11px;
}

.booking-app-frame {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.booking-side-rail {
  gap: 13px;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(3, 12, 22, 0.24);
}

.booking-side-rail > img {
  width: 76px;
}

.booking-side-rail h1 {
  font-size: clamp(1.95rem, 3vw, 2.65rem);
}

.booking-side-rail p {
  font-size: 0.94rem;
  line-height: 1.55;
}

.booking-trust-stack {
  gap: 7px;
  padding: 3px 0;
}

.booking-trust-stack span {
  position: relative;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  color: #d6e6f2;
  background: transparent;
  font-size: 0.9rem;
}

.booking-trust-stack span::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  box-shadow: 0 0 0 3px rgba(24, 223, 252, 0.1);
}

.booking-mini-summary {
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
}

.booking-mini-summary > strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.booking-summary-lines {
  display: grid;
  gap: 8px;
}

.booking-summary-lines span {
  display: grid;
  grid-template-columns: minmax(88px, 0.58fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #eaf6ff;
  background: transparent;
}

.booking-summary-lines small {
  color: #85a6bd;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-summary-lines b {
  overflow: hidden;
  color: #eef8ff;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
}

.booking-summary-lines span.pending b {
  color: #83a2b8;
  font-weight: 750;
}

.booking-welcome-screen {
  min-height: 470px;
  gap: 15px;
}

.booking-logo-mark {
  width: 104px;
  height: 104px;
  border-radius: 26px;
}

.booking-logo-mark img {
  width: 82px;
  height: 82px;
}

.booking-welcome-screen h2 {
  font-size: clamp(2.35rem, 5.7vw, 4.25rem);
  color: #071523;
}

.booking-welcome-screen p {
  max-width: 600px;
  color: #375066;
  font-size: 1rem;
}

.booking-welcome-screen .eyebrow {
  color: #2a4358;
}

.booking-welcome-screen .booking-choice-card strong {
  color: #071523;
}

.booking-welcome-screen .booking-choice-card span {
  color: #435d72;
}

.booking-panel {
  padding: clamp(22px, 4.2vw, 38px);
}

.booking-progress-steps button {
  padding: 5px 3px;
  font-size: 0.68rem;
}

.booking-progress-steps span {
  width: 22px;
  height: 22px;
}

@media (max-width: 1240px) {
  .dashboard-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-command-header {
    grid-template-columns: 1fr;
  }

  .command-quick-stats {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }
}

@media (max-width: 980px) {
  .booking-app-frame {
    grid-template-columns: 1fr;
  }

  .booking-main-card {
    width: 100%;
  }

  .booking-side-rail {
    padding: 14px 16px;
  }

  .booking-side-rail .booking-mini-summary {
    display: grid;
  }

  .booking-summary-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-summary-lines span {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 10px;
  }

  .topbar-title img {
    width: 34px;
    height: 34px;
  }

  .topbar h1 {
    font-size: 1.18rem;
  }

  .dashboard-command-header {
    gap: 14px;
    padding: 16px;
  }

  .command-brandline img {
    width: 36px;
    height: 36px;
  }

  .dashboard-command-header h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .dashboard-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-quick-stats,
  .dashboard-overview-grid,
  #dashboard .metrics-grid,
  .review-management-card,
  .production-empty-state {
    grid-template-columns: 1fr;
  }

  .command-quick-stats {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .command-quick-stats button {
    flex: 0 0 136px;
    min-height: 80px;
    scroll-snap-align: start;
  }

  .dashboard-overview-grid .ops-overview-card:nth-child(n+4),
  .dashboard-review-panel {
    display: none;
  }

  #dashboard .metric-chip-bar {
    max-height: 96px;
  }

  .production-empty-state .data-safety-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-welcome-screen {
    min-height: 410px;
  }
}

@media (max-width: 560px) {
  .booking-app {
    padding: 8px 8px 0;
  }

  .booking-side-rail {
    gap: 9px;
    padding: 12px;
    border-radius: 16px;
  }

  .booking-summary-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .booking-summary-lines small {
    font-size: 0.62rem;
  }

  .booking-summary-lines b {
    font-size: 0.8rem;
  }

  .booking-welcome-screen h2 {
    font-size: clamp(2.05rem, 14vw, 3.35rem);
  }

  .booking-logo-mark {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .booking-logo-mark img {
    width: 70px;
    height: 70px;
  }
}

/* Dashboard widget-board refinement */
.dashboard-command-header {
  grid-template-columns: minmax(0, 1fr);
  padding: 14px 16px;
  gap: 12px;
}

.dashboard-title-block {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 18px;
}

.command-brandline {
  grid-column: 1 / -1;
}

.dashboard-command-header h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

.dashboard-command-header p {
  font-size: 0.88rem;
}

.dashboard-primary-actions {
  justify-content: flex-end;
  align-self: end;
}

.command-status-panel {
  display: none;
}

#dashboard .metrics-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

#dashboard .metric-card {
  min-height: 84px;
  align-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(12, 34, 56, 0.055);
}

#dashboard .metric-card span {
  color: #5a6f83;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

#dashboard .metric-card strong {
  color: #081927;
  font-size: 1.34rem;
}

#dashboard .metric-card small {
  color: #7a8ea1;
  font-size: 0.68rem;
  line-height: 1.25;
}

#dashboard .metric-chip-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  max-height: 58px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(9, 31, 50, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

#dashboard .metric-chip {
  flex: 0 0 auto;
  min-height: 30px;
  border-radius: 999px;
  background: #ffffff;
}

.dashboard-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ops-overview-card {
  min-height: 238px;
  padding: 15px;
  border-radius: 14px;
}

.ops-overview-card header {
  display: flex;
  min-height: 54px;
}

.dashboard-card-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-card-row {
  min-height: 58px;
  align-content: center;
  border-radius: 10px;
  background: #f8fbfe;
}

.dashboard-card-row span {
  font-size: 0.72rem;
}

.dashboard-card-row strong {
  font-size: 1rem;
}

.dashboard-widget-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-widget-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(9, 31, 50, 0.09);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(12, 34, 56, 0.06);
}

.dashboard-widget-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-widget-section h2,
.dashboard-widget-section p {
  margin: 0;
}

.dashboard-widget-section h2 {
  color: #071523;
  font-size: 1rem;
}

.dashboard-widget-section > header button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(18, 157, 255, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  color: #086dab;
  background: #f3f9fd;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-mini-widget {
  display: grid;
  gap: 4px;
  min-height: 82px;
  width: 100%;
  border: 1px solid rgba(9, 31, 50, 0.08);
  border-radius: 12px;
  padding: 11px;
  text-align: left;
  background: #f8fbfe;
  color: #102234;
}

button.dashboard-mini-widget {
  cursor: pointer;
}

.dashboard-mini-widget span {
  color: #5c7186;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-mini-widget strong {
  overflow-wrap: anywhere;
  color: #071523;
  font-size: 1rem;
  line-height: 1.1;
}

.dashboard-mini-widget small {
  color: #7a8fa2;
  font-size: 0.7rem;
  line-height: 1.25;
}

.dashboard-widget-action {
  justify-self: start;
  min-height: 28px;
  margin-top: 5px;
  border: 1px solid rgba(18, 157, 255, 0.16);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f5f8f;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-mini-widget.status-good {
  border-color: rgba(22, 163, 74, 0.18);
  background: #f2fbf5;
}

.dashboard-mini-widget.status-warn {
  border-color: rgba(217, 119, 6, 0.18);
  background: #fffbeb;
}

.dashboard-mini-widget.status-bad {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff5f5;
}

.dashboard-mini-widget.status-neutral {
  background: #f7fafc;
}

.provider-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.review-management-card {
  display: none;
}

@media (max-width: 1280px) {
  #dashboard .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-mini-grid,
  .provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-title-block {
    grid-template-columns: 1fr;
  }

  .dashboard-primary-actions {
    justify-content: stretch;
  }

  #dashboard .metrics-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  #dashboard .metric-card {
    flex: 0 0 138px;
    scroll-snap-align: start;
  }

  #dashboard .metric-chip-bar {
    flex: 0 0 100%;
    max-height: 74px;
  }

  .dashboard-overview-grid,
  .dashboard-mini-grid,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-card-rows {
    grid-template-columns: 1fr;
  }
}

.public-booking-page {
  background:
    radial-gradient(circle at 9% 0%, rgba(24, 223, 252, 0.16), transparent 34%),
    radial-gradient(circle at 94% 8%, rgba(18, 157, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #06111d 0%, #0a1520 100%);
}

.booking-main-card,
.booking-main-card .booking-wizard,
.booking-panel {
  background: #ffffff;
}

.booking-welcome-screen .booking-trust-row span,
.booking-welcome-screen .booking-trust-row strong {
  color: #31475a;
  background: #eef8ff;
  border-color: rgba(18, 157, 255, 0.16);
}

.booking-welcome-screen .booking-trust-row strong {
  width: auto;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
}

.booking-wizard-actions [hidden],
#bookingNextButton[hidden],
#bookingSubmitButton[hidden],
#mobileLocationFields[hidden],
#dropoffNote[hidden],
#thirdRowGroup[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .booking-welcome-screen .booking-trust-row {
    display: flex;
    flex-wrap: wrap;
  }
}

.booking-progress-card .booking-progress-steps {
  grid-template-columns: repeat(11, minmax(0, 1fr));
}

.booking-centered-screen,
.centered-heading {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.row-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
}

.booking-link-button {
  width: fit-content;
  min-height: auto;
  padding: 8px 10px;
  color: #129dff;
  font-weight: 900;
}

.booking-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-category-grid .booking-choice-card {
  min-height: 150px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.booking-choice-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 2px;
  border-radius: 999px;
  color: #31475a;
  background: #f0f6fb;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.booking-choice-card.selected .booking-choice-icon,
.booking-condition-card:has(.booking-binary-row .selected[data-condition-answer="Yes"]) .booking-choice-icon {
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
}

.booking-condition-list {
  display: grid;
  gap: 14px;
}

.booking-condition-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(9, 31, 50, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: 0 12px 28px rgba(12, 34, 56, 0.07);
}

.booking-condition-card > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.booking-condition-card h3,
.booking-condition-card p {
  margin: 0;
}

.booking-condition-card h3 {
  color: #061421;
  font-size: 1.05rem;
}

.booking-condition-card p {
  color: #52687b;
}

.booking-fee-note {
  padding: 11px 12px;
  border: 1px solid rgba(250, 176, 5, 0.28);
  border-radius: 12px;
  color: #8a4700;
  background: #fff9e8;
  font-weight: 900;
}

.booking-binary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-binary-row button {
  min-height: 46px;
  border: 1px solid rgba(9, 31, 50, 0.14);
  border-radius: 12px;
  color: #061421;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(12, 34, 56, 0.08);
  cursor: pointer;
}

.booking-binary-row button.selected {
  border-color: rgba(18, 157, 255, 0.72);
  background: #eff9ff;
  box-shadow: 0 0 0 2px rgba(24, 223, 252, 0.14), 0 10px 24px rgba(12, 34, 56, 0.08);
}

.booking-hero-mark.small {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 1.1rem;
}

.contact-card {
  width: min(640px, 100%);
}

.soft-note {
  width: min(640px, 100%);
}

.booking-field-card label small {
  color: #7b8fa2;
  font-weight: 800;
}

@media (max-width: 980px) {
  .booking-progress-card .booking-progress-steps {
    display: flex;
    grid-template-columns: none;
  }

  .row-heading {
    display: grid;
  }
}

@media (max-width: 720px) {
  .booking-category-grid,
  .booking-binary-row {
    grid-template-columns: 1fr;
  }
}

/* Public booking app-like polish */
.booking-inline-icon,
.booking-card-icon,
.booking-step-icon {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-step-icon {
  width: 18px;
  height: 18px;
}

.booking-card-icon {
  width: 26px;
  height: 26px;
}

.booking-progress-steps button.active .booking-step-icon,
.booking-progress-steps button.complete .booking-step-icon {
  color: #031321;
}

.booking-pricing-size-field {
  display: none;
}

.booking-option-group > span {
  display: block;
  margin-bottom: 10px;
  color: #31475a;
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.condition-grid,
.time-window-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.condition-grid .booking-choice-card,
.time-window-grid .booking-choice-card {
  min-height: 116px;
}

.booking-category-grid .booking-choice-card strong,
.condition-grid .booking-choice-card strong,
.time-window-grid .booking-choice-card strong {
  padding-right: 0;
}

.booking-choice-card {
  isolation: isolate;
}

.booking-choice-card::before,
.booking-service-card::after,
.photo-upload-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 8%, rgba(24, 223, 252, 0.12), transparent 36%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.booking-choice-card:hover::before,
.booking-choice-card.selected::before,
.booking-service-card:hover::after,
.booking-service-card.selected::after,
.photo-upload-tile:hover::before,
.photo-upload-tile.has-files::before {
  opacity: 1;
}

.booking-choice-card.selected::after {
  content: "";
  width: 12px;
  height: 12px;
  padding: 0;
  border: 3px solid #031321;
  border-left: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0;
  transform: rotate(45deg);
}

.booking-choice-icon,
.booking-service-icon,
.booking-addon-icon,
.photo-upload-icon,
.booking-review-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #167bc4;
  background: linear-gradient(180deg, #eef9ff, #e7f3fb);
  box-shadow: inset 0 0 0 1px rgba(18, 157, 255, 0.12);
}

.booking-choice-icon {
  width: 58px;
  height: 58px;
}

.booking-service-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.booking-service-icon {
  width: 58px;
  height: 58px;
}

.booking-service-card {
  border-radius: 20px;
}

.booking-service-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.booking-service-meta {
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(18, 157, 255, 0.14);
  border-radius: 14px;
  background: #f2faff;
}

.booking-service-meta strong {
  font-size: 1.05rem;
}

.booking-service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-service-highlights span {
  padding: 7px 10px;
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 999px;
  color: #31475a;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.booking-addon-icon,
.photo-upload-icon,
.booking-review-icon {
  width: 46px;
  height: 46px;
  font-style: normal;
}

.booking-addon-card {
  min-height: 124px;
}

.booking-addon-card input {
  accent-color: #18dffc;
}

.booking-addon-card > em:last-child {
  color: #129dff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 1000;
}

.photo-upload-tile {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
}

.photo-upload-tile.has-files {
  border-color: rgba(18, 157, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(24, 223, 252, 0.14), 0 16px 34px rgba(12, 34, 56, 0.09);
}

.photo-upload-tile input {
  cursor: pointer;
}

.booking-review-summary {
  align-items: stretch;
}

.booking-review-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  min-height: 124px;
}

.booking-review-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.booking-review-card strong,
.booking-review-card span {
  overflow-wrap: anywhere;
}

.booking-pricing-disclaimer-card {
  border-color: rgba(24, 223, 252, 0.22) !important;
  background: linear-gradient(135deg, #f6fcff, #ffffff) !important;
}

.booking-confirmation-card {
  justify-items: center;
  text-align: center;
}

.booking-success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  color: #031321;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  box-shadow: 0 18px 38px rgba(18, 157, 255, 0.26);
}

.booking-success-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-confirmation-list {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 4px 0 10px;
  padding: 14px;
  border: 1px solid rgba(9, 31, 50, 0.1);
  border-radius: 16px;
  color: #31475a;
  text-align: left;
  background: #f5fbff;
  list-style-position: inside;
}

.booking-confirmation-actions .primary-button,
.booking-confirmation-actions .secondary-button,
.booking-confirmation-actions .ghost-button {
  min-height: 48px;
}

@media (max-width: 860px) {
  .condition-grid,
  .time-window-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-service-topline,
  .booking-review-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .public-booking-page {
    background: linear-gradient(180deg, #06111d 0, #0b1722 120px, #f7fbff 120px);
  }

  .booking-app {
    padding: 8px 10px 0;
  }

  .booking-topbar {
    gap: 10px;
    padding: 9px;
  }

  .booking-topbar-brand img {
    width: 38px;
    height: 38px;
  }

  .booking-topbar-brand span,
  .booking-topbar-step span {
    display: none;
  }

  .booking-progress-card .booking-progress-steps {
    padding-bottom: 4px;
  }

  .booking-choice-card,
  .booking-addon-card {
    border-radius: 16px;
  }

  .condition-grid,
  .time-window-grid {
    grid-template-columns: 1fr;
  }

  .booking-service-topline,
  .booking-addon-card,
  .booking-review-card {
    grid-template-columns: 1fr;
  }

  .booking-service-icon,
  .booking-review-icon {
    width: 52px;
    height: 52px;
  }

  .booking-wizard-actions {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .booking-confirmation-card {
    gap: 9px;
    padding: 20px;
  }

  .booking-confirmation-card img {
    width: 58px;
  }

  .booking-confirmation-card h2 {
    font-size: 1.42rem;
  }

  .booking-confirmation-card #bookingConfirmationMessage,
  .booking-confirmation-list {
    font-size: 0.94rem;
  }

  .booking-success-mark {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .booking-confirmation-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #dashboard .dashboard-review-panel {
    display: block;
  }
}

/* P2 Conversations, timeline, and template workbench */
.provider-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.provider-status-card {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(10, 34, 52, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(12, 34, 56, 0.06);
}

.provider-status-card strong,
.message-status-pill {
  color: #071625;
  font-size: 0.82rem;
}

.provider-status-card span {
  color: #5a6d7e;
  font-size: 0.78rem;
  line-height: 1.35;
}

.provider-status-card.status-good,
.message-status-pill.status-good {
  border-color: rgba(42, 190, 119, 0.26);
  background: #f2fff8;
}

.provider-status-card.status-warn,
.message-status-pill.status-warn {
  border-color: rgba(255, 184, 76, 0.3);
  background: #fffaf0;
}

.provider-status-card.status-bad,
.message-status-pill.status-bad {
  border-color: rgba(224, 72, 72, 0.28);
  background: #fff5f5;
}

.conversation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.conversation-inbox,
.template-workbench {
  display: grid;
  gap: 10px;
}

.conversation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(10, 34, 52, 0.1);
  border-radius: 12px;
  background: #f8fbfe;
  cursor: pointer;
}

.conversation-row:hover {
  border-color: rgba(24, 180, 245, 0.38);
  box-shadow: 0 10px 24px rgba(20, 160, 230, 0.1);
}

.conversation-row strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #071625;
}

.conversation-row span,
.conversation-row p,
.template-consent-note {
  color: #53687a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.conversation-row p {
  margin: 5px 0 0;
}

.message-status-pill {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(10, 34, 52, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}

.template-workbench label {
  display: grid;
  gap: 6px;
  color: #475c70;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.template-workbench select {
  min-height: 42px;
  border: 1px solid rgba(10, 34, 52, 0.14);
  border-radius: 10px;
  padding: 0 10px;
  background: #ffffff;
  color: #071625;
  font: inherit;
  text-transform: none;
}

.template-preview-box {
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(24, 180, 245, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbff, #ffffff);
  color: #102338;
  line-height: 1.48;
  white-space: pre-wrap;
}

.compact-actions {
  justify-content: start;
}

.p3-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.p3-control-grid > section {
  min-width: 0;
}

.p3-control-grid h3 {
  margin: 0 0 10px;
  color: #071625;
  font-size: 0.95rem;
}

.p3-admin-list {
  display: grid;
  gap: 10px;
}

.p3-admin-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(10, 34, 52, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(7, 22, 37, 0.05);
}

.p3-admin-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.p3-admin-card h3 {
  margin: 0;
}

.p3-admin-card p,
.p3-admin-card span {
  margin: 0;
  color: #5f7386;
  font-size: 0.82rem;
  line-height: 1.4;
}

.archive-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ai-copilot-dialog .modal-form {
  max-width: min(760px, calc(100vw - 24px));
}

.ai-copilot-output {
  display: grid;
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(24, 180, 245, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, #f6fbff, #ffffff);
}

.ai-output-section {
  padding: 12px;
  border: 1px solid rgba(10, 34, 52, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.ai-output-section strong {
  display: block;
  margin-bottom: 6px;
  color: #071625;
}

.ai-output-section p,
.ai-output-section pre {
  margin: 0;
  color: #2b4256;
  font: inherit;
  line-height: 1.48;
  white-space: pre-wrap;
}

.timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 34, 52, 0.08);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a8f8, #18dffc);
  box-shadow: 0 0 0 4px rgba(24, 223, 252, 0.12);
}

.timeline-row strong {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #071625;
}

.timeline-row span {
  display: block;
  margin-top: 2px;
  color: #6a7d8d;
  font-size: 0.78rem;
}

.timeline-row p {
  margin: 5px 0 0;
  color: #32485c;
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .provider-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversation-workspace {
    grid-template-columns: 1fr;
  }

  .p3-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .provider-status-strip {
    grid-template-columns: 1fr;
  }

  .conversation-row {
    grid-template-columns: 1fr;
  }

  .archive-card,
  .p3-admin-card header {
    grid-template-columns: 1fr;
    display: grid;
  }
}
