@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;600;800&display=swap');

:root {
  --blue: #3667f6;
  --blue-dark: #2850d4;
  --blue-soft: rgba(54, 103, 246, 0.18);
  --ink: #fafafa;
  --ink-muted: #a1a1aa;
  --ink-faint: #71717a;
  --line: #27272a;
  --bg: #0a0a0a;
  --surface: #141414;
  --green: #22c55e;
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --switcher-h: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tap: 56px;
  --tap-lg: 66px;
  --tap-xl: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
}

body.no-nav { padding-bottom: calc(var(--safe-bottom) + 16px); }

.hidden { display: none !important; }
.muted { color: var(--ink-muted); font-size: 0.875rem; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Status bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Page shell */
.page-top {
  padding: 8px 20px 16px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-sub {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.page-sub strong {
  color: var(--ink);
  font-weight: 600;
}

/* Day progress */
.day-progress {
  padding: 0 20px 16px;
}

.day-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-progress-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.day-progress-count {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Job timeline cards */
.timeline {
  padding: 0 20px;
}

.job-row {
  display: block;
  position: relative;
  padding: 14px 14px 14px 18px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease;
}

.job-row:active { transform: scale(0.99); }

.job-row.is-done {
  opacity: 0.55;
}

.job-row.is-done .job-row-title,
.job-row.is-done .job-row-time {
  text-decoration: line-through;
}

.job-row.is-next {
  border-color: var(--blue);
  border-left-width: 3px;
  box-shadow: 0 0 0 1px var(--blue-soft);
}

.job-row.is-next .job-row-time {
  color: var(--blue);
  font-weight: 600;
}

.job-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.job-row-time {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.job-row-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.job-row-context {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.job-row-badge {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* Bottom tab nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 500px;
  margin: 0 auto;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 50;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a.active {
  color: var(--ink);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Queue / offline chip */
.chip-banner {
  margin: 0 20px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.chip-red {
  background: var(--red-bg);
  color: var(--red);
}

/* Job detail header */
.job-header {
  padding: 12px 20px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: var(--tap);
  padding: 8px 0;
}

.job-type-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.customer-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1.15;
}

.job-subtitle {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Action row */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 16px 20px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.btn-action:active { transform: scale(0.98); }

.btn-action.primary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-action.ghost {
  background: transparent;
}

/* Cards */
.card {
  margin: 0 20px 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* Equipment */
.equip-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.equip-block:last-child { border-bottom: none; padding-bottom: 0; }

.equip-head {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.equip-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
  margin-left: 6px;
}

.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.equip-field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.equip-field span {
  font-size: 0.8125rem;
  color: var(--ink);
  word-break: break-all;
}

/* Notes thread */
.note-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.note-item:first-child { border-top: none; padding-top: 0; }

.note-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.note-meta strong { color: var(--ink); font-weight: 600; }

.note-body {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
}

.note-system {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 500px;
  margin: 0 auto;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 80%, transparent);
  z-index: 40;
}

body.has-sticky-cta {
  padding-bottom: calc(100px + var(--safe-bottom));
}

.btn-cta {
  width: 100%;
  min-height: var(--tap-xl);
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-cta:active { transform: scale(0.98); background: var(--blue-dark); }

.btn-cta:disabled {
  background: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.cta-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Status stepper */
.stepper {
  display: flex;
  gap: 0;
  padding: 0 20px 16px;
  overflow-x: auto;
}

.step {
  flex: 1;
  min-width: 0;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step:last-child::after { display: none; }

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step.is-done .step-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step.is-active .step-dot {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.12);
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.step.is-active .step-label,
.step.is-done .step-label {
  color: var(--ink);
}

/* Photo checklist */
.photo-checklist { list-style: none; }

.photo-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.photo-check:last-child { border-bottom: none; }

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.photo-check.is-done .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.photo-check.is-required:not(.is-done) .check-label {
  color: var(--ink);
  font-weight: 600;
}

.check-label { font-size: 0.875rem; flex: 1; }

.check-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* Measurements */
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.measure-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
}

.measure-card label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.measure-card input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

/* Findings */
.findings-input {
  width: 100%;
  min-height: 88px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.findings-input::placeholder {
  color: var(--ink-faint);
}

.findings-input:focus { border-color: var(--ink-muted); }

/* Close-out */
.invoice-lines { list-style: none; }

.invoice-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.invoice-line.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1rem;
  padding-top: 12px;
}

.invoice-line .amount {
  font-family: var(--mono);
  font-weight: 600;
}

.tender-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.tender-btn {
  min-height: var(--tap);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tender-btn.active {
  border-color: var(--ink);
  background: rgba(250, 250, 250, 0.08);
  color: var(--ink);
}

.cascade-list {
  list-style: none;
  margin-top: 12px;
}

.cascade-list li {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  padding: 4px 0;
}

.cascade-list li::before {
  content: '→ ';
  color: var(--ink-faint);
}

/* Toolkit */
.tool-block {
  margin-bottom: 16px;
}

.tool-block h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.calc-grid label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.calc-grid input {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--ink);
}

.calc-result {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}

.calc-result .value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
}

.calc-result .verdict {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-result.pass { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.calc-result.marginal { background: var(--amber-bg); color: var(--amber); }
.calc-result.fail { background: var(--red-bg); color: var(--red); }

.ref-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.ref-link:last-child { border-bottom: none; }

/* Map */
.map-job-list .job-row { margin-bottom: 10px; }

.map-open-all {
  display: block;
  margin: 0 20px 16px;
  text-align: center;
  min-height: var(--tap);
  line-height: var(--tap);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

/* More page */
.more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-lg);
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
}

.more-row.danger { color: var(--red); }

/* Login */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-bottom));
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand img { height: 36px; margin-bottom: 16px; }

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-brand p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.login-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 14px 0 6px;
}

.login-form select,
.login-form input[type="password"],
.form-input {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  min-height: var(--tap);
}

.form-input::placeholder,
.login-form input::placeholder {
  color: var(--ink-faint);
}

.login-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* Generic buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-lg);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.loading, .empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-muted);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 6px;
}

.error-banner {
  margin: 0 20px 12px;
  padding: 12px 14px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 10px;
  font-size: 0.875rem;
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}

body.no-nav .toast { bottom: calc(var(--safe-bottom) + 24px); }
body.has-sticky-cta .toast { bottom: calc(100px + var(--safe-bottom)); }

.toast.show { opacity: 1; }
.toast.ok { background: var(--ink); color: #fff; }
.toast.err { background: var(--red); color: #fff; }

input[type="file"] { display: none; }

/* Legacy compat — scan forms on job page */
.form-grid { display: grid; gap: 8px; margin-top: 8px; }
.scan-hint { font-size: 0.8rem; margin: 8px 0; }
.scan-result {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.scan-result.scan-high { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.scan-result.scan-medium { background: var(--amber-bg); color: var(--amber); }
.scan-result.scan-low { background: var(--red-bg); color: var(--red); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  min-height: var(--tap);
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  min-height: var(--tap);
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* Field Ops ↔ Admin CRM module switcher */
.module-switcher {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px);
  z-index: 60;
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

body.no-nav .module-switcher,
body.has-sticky-cta .module-switcher {
  bottom: calc(var(--safe-bottom) + 16px);
}

body.has-sticky-cta:not(.no-nav) .module-switcher {
  bottom: calc(100px + var(--safe-bottom));
}

.module-switcher a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  min-height: 36px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.module-switcher a.active {
  background: rgba(250, 250, 250, 0.12);
  color: var(--ink);
}

.module-switcher a:not(.active):active {
  color: var(--ink);
}

/* Voice findings dictation */
.findings-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.voice-btn:active { transform: scale(0.98); }

.voice-btn.is-recording {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

.voice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.voice-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.3;
}

/* Customer signature pad */
.signature-pad-wrap {
  position: relative;
  margin-top: 8px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  touch-action: none;
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 140px;
  touch-action: none;
}

.signature-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}

.signature-placeholder.hidden { display: none; }

.signature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.signature-status {
  font-size: 0.75rem;
  text-align: right;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ink);
}
