:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--brand-paper);
  color: var(--brand-ink);
  --navy: var(--brand-navy);
  --navy-2: var(--brand-navy-2);
  --orange: var(--brand-orange);
  --orange-soft: var(--brand-orange-soft);
  --green: var(--brand-green);
  --green-soft: var(--brand-green-soft);
  --blue: var(--brand-blue);
  --blue-soft: var(--brand-blue-soft);
  --amber: var(--brand-amber);
  --amber-soft: var(--brand-amber-soft);
  --red: var(--brand-red);
  --red-soft: var(--brand-red-soft);
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --border: var(--brand-line);
  --surface: var(--brand-surface);
  --paper: var(--brand-paper);
}
* { box-sizing: border-box; }
body { width: min(760px, 100%); min-height: 100vh; margin: 0 auto; background: var(--paper); }
button, input, textarea, select { font: inherit; }
.topbar {
  min-height: 70px; padding: max(16px, env(safe-area-inset-top)) 16px 9px;
  color: #fff; background: var(--navy); border-bottom: 3px solid var(--orange);
  box-shadow: 0 4px 14px rgba(13, 38, 63, .2);
}
.topbar-primary { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .brand-lockup { gap: 9px; }
.topbar .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.topbar .brand-copy > strong { display: block; }
.topbar .brand-wordmark { font-size: 24px; line-height: 1; letter-spacing: -.035em; }
.topbar-business-line {
  margin-top: 7px; overflow: hidden; color: #c5d6e5; font-size: 12px; font-weight: 750;
  line-height: 1.2; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar .language-toggle { flex: none; grid-template-columns: repeat(2, minmax(40px, 1fr)); }
.topbar .language-toggle button { min-height: 30px; }
.topbar .quiet { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .28); }
.topbar .quiet:hover { background: rgba(255, 255, 255, .08); }
main { width: min(760px, 100%); margin: 0 auto; padding: 18px 14px max(60px, env(safe-area-inset-bottom)); }
.panel, .card { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 5px 18px rgba(15, 42, 67, .07); }
.login { width: min(440px, 100%); min-width: 0; margin: 42px auto; padding: 24px; overflow-x: clip; }
#clerk-sign-in { width: 100%; min-width: 0; max-width: 100%; }
#clerk-sign-in .cl-rootBox,
#clerk-sign-in .cl-cardBox,
#clerk-sign-in .cl-card {
  width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin-inline: 0 !important;
}
#clerk-sign-in .cl-cardBox,
#clerk-sign-in .cl-card { box-shadow: none !important; }
.auth-entry-panel { width: min(560px, 100%); margin: clamp(24px, 6vh, 54px) auto 0; }
.auth-entry-card {
  padding: clamp(23px, 6vw, 34px); background: white; border: 1px solid var(--border);
  border-top: 6px solid var(--orange); border-radius: 20px; box-shadow: 0 16px 42px rgba(15, 42, 67, .12);
}
.auth-welcome-card { display: flex; flex-direction: column; overflow: hidden; }
.auth-welcome-greeting { margin: 0 0 4px; }
.auth-welcome-greeting-brand { color: var(--navy); }
.auth-welcome-brand-intro {
  position: relative; display: grid; min-height: 112px; margin: 0 0 8px; align-items: center;
}
.auth-welcome-brand-mark {
  position: absolute; top: 50%; left: 50%; display: block; width: 220px; height: 220px;
  transform: translate(-50%, -50%); opacity: .11; pointer-events: none;
}
.auth-welcome-brand-intro > .eyebrow {
  position: relative; z-index: 1; max-width: 470px; margin: 0; line-height: 1.45;
}
.auth-entry-card h1 { max-width: 430px; margin-bottom: 13px; color: var(--navy); font-size: clamp(35px, 10vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.auth-welcome-card h1 { font-size: clamp(27px, 7.2vw, 38px); line-height: 1.08; letter-spacing: -.01em; }
.auth-welcome-copy { max-width: 460px; margin-bottom: 24px; color: #486581; font-size: 17px; line-height: 1.48; }
.auth-entry-actions { display: grid; gap: 10px; }
.auth-entry-actions button { min-height: 54px; font-size: 16px; }
.auth-text-button {
  min-height: 42px; padding: 8px 0; color: var(--blue); background: transparent; border: 0;
  font-size: 14px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px;
}
.auth-welcome-card > .auth-text-button { display: block; margin: 13px auto 0; }
.auth-benefit-band {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px;
  padding: 17px 0 0; color: var(--navy); border-top: 1px solid #d7e2eb;
}
.auth-benefit-band span {
  display: grid; align-content: start; justify-items: center; gap: 8px; min-width: 0; padding: 0 8px;
  font-size: 11px; font-weight: 850; line-height: 1.3; text-align: center;
}
.auth-benefit-band span + span { border-left: 1px solid #d7e2eb; }
.auth-benefit-band span::before {
  display: grid; width: 22px; height: 22px; place-items: center; color: #b94f0e;
  background: #fff3e9; border: 1px solid #f2c3a2; border-radius: 50%;
  content: "\2713"; font-size: 12px; font-weight: 950;
}
.plan-guide-card h1 { margin-bottom: 9px; font-size: clamp(29px, 8.2vw, 39px); text-wrap: balance; }
.plan-guide-card > h1,
.plan-guide-card > .plan-guide-trial-copy { text-align: center; }
.plan-guide-trial-copy { margin-bottom: 13px; }
.plan-guide-trial {
  display: grid; gap: 7px; margin: 0 0 17px; padding: 13px; background: #eef7f2;
  border: 1px solid #b9d8c8; border-radius: 14px;
}
.plan-guide-trial .primary { width: 100%; min-height: 50px; font-size: 15px; }
.plan-guide-trial p { margin: 0; color: #426451; font-size: 11px; font-weight: 750; line-height: 1.4; text-align: center; }
.plan-guide-paid-intro { margin: 0 0 8px; }
.plan-guide-paid-intro h2 { margin: 0 0 3px; color: var(--navy); font-size: 19px; line-height: 1.2; }
.plan-guide-paid-intro p { margin: 0; color: #486581; font-size: 12px; line-height: 1.45; }
.plan-guide-list { display: grid; gap: 8px; margin: 10px 0 8px; }
.plan-guide-choice {
  width: 100%; min-height: 78px; color: var(--navy); background: #f8fbfd;
  border: 2px solid #cbd7e2; border-radius: 14px; overflow: hidden;
}
.plan-guide-choice:hover { background: var(--orange-soft); border-color: var(--orange); }
.plan-guide-select {
  width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 10px 12px 5px; color: var(--navy); background: transparent;
  border: 0; border-radius: 12px 12px 0 0; text-align: left;
}
.plan-guide-select:hover { background: rgba(255, 255, 255, .42); }
.plan-guide-select strong, .plan-guide-select small { display: block; }
.plan-guide-select strong { margin-bottom: 2px; font-size: 17px; }
.plan-guide-select small { color: #486581; font-size: 11px; font-weight: 700; line-height: 1.35; }
.plan-guide-select .plan-guide-price { color: var(--navy); font-size: 13px; font-weight: 850; }
.plan-guide-select b { color: var(--blue); font-size: 12px; white-space: nowrap; }
.plan-guide-includes {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 12px 4px;
  color: #486581; font-size: 11px; font-weight: 700; line-height: 1.35;
}
.plan-guide-storage { margin: 0; padding: 0 12px 9px; color: var(--navy); font-size: 11px; font-weight: 800; line-height: 1.35; }
.plan-guide-storage-note { margin: 12px 0 8px; color: #486581; font-size: 12px; line-height: 1.5; }
.plan-feature-link {
  min-height: 0; padding: 0; color: var(--blue); background: transparent; border: 0; border-radius: 2px;
  font: inherit; font-weight: 850; text-decoration: underline; text-underline-offset: 2px;
}
.plan-feature-link:hover { color: var(--navy); }
.plan-guide-price-note { margin: 0; color: #627d98; font-size: 11px; font-weight: 750; }
.plan-guide-card > .auth-text-button { margin-top: 4px; }
.plan-features-overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px;
  background: rgba(6, 27, 47, .68); backdrop-filter: blur(3px);
}
.plan-features-dialog {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 36px); padding: 26px;
  overflow: auto; background: white; border: 1px solid var(--border); border-top: 6px solid var(--orange);
  border-radius: 20px; box-shadow: 0 22px 60px rgba(6, 27, 47, .3); text-align: left;
}
.plan-features-close {
  position: absolute; top: 10px; right: 10px; width: 40px; min-height: 40px; padding: 0;
  color: var(--navy); background: #f3f7fa; border: 1px solid #d7e2eb; border-radius: 50%; font-size: 25px;
}
.plan-features-dialog h2 { max-width: 340px; margin: 6px 38px 10px 0; color: var(--navy); font-size: 25px; line-height: 1.12; }
.plan-features-dialog > .muted { margin-bottom: 17px; font-size: 14px; }
.plan-features-list { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-features-list li {
  position: relative; padding-left: 29px; color: #334e68; font-size: 14px; font-weight: 700; line-height: 1.4;
}
.plan-features-list li::before {
  position: absolute; top: 0; left: 0; display: grid; width: 20px; height: 20px; place-items: center;
  color: #147a53; background: #e6f5ed; border-radius: 50%; content: "\2713"; font-size: 12px; font-weight: 950;
}
body.plan-features-open { overflow: hidden; }
.auth-tagline { margin-bottom: 5px; color: var(--navy); font-size: 15px; font-weight: 800; line-height: 1.35; }
.spanish-audience-note {
  display: none; margin: 14px 0 18px; padding: 11px 13px; color: #334e68; background: #fff4ea;
  border-left: 4px solid var(--orange); border-radius: 9px; font-size: 13px; font-weight: 750; line-height: 1.45;
}
html[lang="es"] .spanish-audience-note { display: block; }
.auth-account-help {
  margin: 14px 0 2px; padding: 12px 13px; color: #334e68; background: var(--blue-soft);
  border: 1px solid #bad9ee; border-left: 4px solid var(--blue); border-radius: 10px;
  font-size: 13px; line-height: 1.45;
}
.auth-account-help strong { color: var(--navy); }
.auth-account-help span { display: block; margin-top: 7px; color: #486581; }
.auth-business-setup { display: grid; gap: 18px; margin-top: 8px; }
.auth-business-setup label { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 850; }
.auth-business-setup input { min-height: 52px; font-size: 16px; }
.auth-company-name { font-size: 17px !important; }
.auth-company-name-caption { display: inline; }
.auth-company-name input {
  min-height: 58px; padding: 12px 14px; color: var(--navy); background: #fff;
  border: 2px solid #9fb3c4; border-radius: 12px; font-size: 19px; font-weight: 750;
}
.auth-company-name input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39, 116, 174, .18); }
.auth-logo-step {
  display: grid; gap: 10px; padding: 16px; background: #f8fbfd;
  border: 1px solid #d7e2eb; border-radius: 14px;
}
.auth-logo-heading { margin: 0; color: var(--navy); font-size: 16px; }
.auth-business-note { margin: -3px 0 0; color: #627d98; font-size: 12px; line-height: 1.5; }
.auth-logo-picker {
  position: relative; display: inline-flex !important; align-items: center; justify-content: center;
  width: fit-content; min-height: 46px; margin: 0 !important; padding: 10px 16px; overflow: hidden;
  color: var(--blue) !important; background: #fff; border: 2px solid #bad9ee; border-radius: 11px;
  cursor: pointer;
}
.auth-logo-input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.auth-logo-preview {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center;
  color: #486581; font-size: 12px; font-weight: 750;
}
.auth-logo-preview[hidden] { display: none; }
.auth-logo-preview img { width: 58px; height: 58px; object-fit: contain; background: #fff; border: 1px solid #d7e2eb; border-radius: 10px; }
.auth-logo-preview span { overflow-wrap: anywhere; }
.auth-business-actions { display: grid; gap: 5px; }
.auth-business-actions .primary { width: 100%; }
.auth-business-error { margin: 0; }
.auth-business-list { display: grid; gap: 10px; margin-top: 20px; }
.auth-business-choice {
  display: grid; gap: 4px; width: 100%; min-height: 68px; padding: 13px 15px; color: var(--navy);
  background: #f8fbfd; border: 2px solid #cbd7e2; border-radius: 13px; text-align: left;
}
.auth-business-choice:hover { background: #edf6ff; border-color: var(--blue); }
.auth-business-choice strong { font-size: 16px; }
.auth-business-choice span { color: #627d98; font-size: 12px; }
.auth-business-list + .auth-text-button { display: block; margin: 16px auto 0; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 27px; }
h2 { margin-bottom: 14px; font-size: 18px; }
.eyebrow { margin-bottom: 5px; color: #c75a12; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: #627d98; line-height: 1.45; }
label { display: block; margin: 14px 0; color: #334e68; font-weight: 700; font-size: 14px; }
input, textarea, select {
  width: 100%; margin-top: 7px; padding: 12px; color: #102a43; background: #fff;
  border: 1px solid #bcccdc; border-radius: 10px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #2f80c9; box-shadow: 0 0 0 3px #d9ecff; }
textarea { min-height: 84px; resize: vertical; }
button { min-height: 44px; padding: 9px 14px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
button:disabled { cursor: wait; opacity: .6; }
.work-activity-item { padding: 11px 0; border-top: 1px solid #edf2f6; }
.work-activity-item:first-of-type { border-top: 0; }
.work-activity-item strong, .work-activity-item small { display: block; }
.work-activity-item strong { color: var(--navy); font-size: 14px; }
.work-activity-item p { margin: 4px 0 0; color: #334e68; font-size: 13px; line-height: 1.5; }
.work-activity-item small { margin-top: 5px; color: #627d98; font-size: 11px; }
.primary { width: 100%; color: white; background: var(--navy); }
.primary:hover { background: var(--navy-2); }
.quiet { color: #334e68; background: #f7fafc; border-color: #bcccdc; }
.small { min-height: 44px; padding: 8px 10px; color: #1d5e93; background: #edf6ff; border-color: #c8e1f6; font-size: 13px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 4px 15px; }
.connection-notice {
  width: 100%; min-height: 38px; margin-top: 9px; padding: 8px 11px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px; font-size: 12px; line-height: 1.35; text-align: left; white-space: normal;
}
.connection-notice.offline, .connection-notice.pending {
  color: #5f4300; background: #fff2bd; border-color: #e6bd4d;
}
.connection-notice.error { color: #8f1f1f; background: #fff0f0; border-color: #e9a6a6; }
.connection-notice.synced { color: #145c40; background: #e6f5ed; border-color: #8bc6aa; }
.topbar .topbar-user-line { margin-top: 6px; }
.topbar-user-line { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; color: #fff; font-size: 14px; line-height: 1.2; }
.topbar-user-line strong { font-size: inherit; }
.topbar-user-line span { color: inherit; font-size: inherit; font-weight: 800; }
.topbar-user-line span:not(:empty)::before { content: "\00a0("; }
.topbar-user-line span:not(:empty)::after { content: ")"; }
.status { flex: none; min-height: 34px; padding: 7px 10px; color: #196747; background: #e4f5ed; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.offline { color: #9b2c2c; background: #fff0f0; }
.status.pending { color: #7a4d12; background: #fff6df; border-color: #f1ce7a; }
.offline-read-panel {
  display: grid; gap: 11px; margin: -3px 0 14px; padding: 16px;
  color: #0b3b61; background: #edf6ff; border-color: #bad9ee; border-left: 6px solid #1f6fa8;
}
.offline-read-panel h2 { margin: 0 0 5px; font-size: 18px; }
.offline-read-panel p { margin: 0; font-size: 12px; line-height: 1.5; }
.offline-read-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offline-queue-panel { display: grid; gap: 12px; margin: -3px 0 14px; padding: 16px; border-left: 6px solid #d39b16; }
.offline-queue-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offline-queue-heading h2 { margin: 0 0 5px; }
.offline-queue-heading p:last-child { margin-bottom: 0; font-size: 12px; }
.offline-queue-item { display: grid; gap: 10px; padding: 12px; background: #fffaf0; border: 1px solid #efd797; border-radius: 11px; }
.offline-queue-item.review { background: #fff3f2; border-color: #efb7b2; }
.offline-queue-item strong, .offline-queue-item small { display: block; }
.offline-queue-item small { margin-top: 4px; color: #627d98; font-size: 10px; }
.offline-queue-item p { margin: 7px 0 0; font-size: 12px; line-height: 1.45; }
.offline-review-copy { color: #9b2c2c; font-weight: 800; }
.offline-queue-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.offline-pending { color: #7a4d12; background: #fff2c7; }
.offline-inline-note { flex-basis: 100%; margin: 0; padding: 10px 11px; color: #674509; background: #fff8e7; border: 1px solid #efd797; border-radius: 9px; font-size: 12px; font-weight: 800; line-height: 1.45; }
.mobile-list-badges, .mobile-task-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mobile-task-badges { justify-content: flex-end; }
.tabs { display: grid; grid-template-columns: repeat(var(--mobile-primary-tab-count, 5), minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; padding: 3px 0 14px; border-bottom: 1px solid var(--border); }
.tabs button { min-width: 0; padding-inline: 6px; overflow: hidden; color: #486581; background: white; border-color: var(--border); font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.tabs button.active { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 4px 12px rgba(13, 38, 63, .14); }
.tabs button.access-tab { color: #155b43; border-color: #b7ddce; }
.tabs button.access-tab.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.tabs button.more-tab { color: #334e68; background: #f7fafc; }
.tabs button.calendar-tab { position: relative; overflow: visible; }
.mobile-nav-attention-badge {
  position: absolute; z-index: 2; top: -9px; right: -7px; min-width: 21px; height: 21px;
  display: grid; place-items: center; padding: 0 5px; color: white; background: #c62828;
  border: 2px solid #f5f8fb; border-radius: 999px; font-size: 10px; font-weight: 950; line-height: 1;
}
.mobile-more-tabs {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;
  padding: 10px; background: #e8eff5; border: 1px solid #cbd8e2; border-radius: 12px;
}
.mobile-more-tabs button { min-height: 44px; font-size: 12px; }
.mobile-more-tabs .mobile-context-switch {
  grid-column: 1 / -1; min-height: 38px; margin-top: 3px; padding: 10px 6px 2px;
  color: #486581; background: transparent; border: 0; border-top: 1px solid #cbd8e2;
  border-radius: 0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px;
}
.mobile-more-tabs .mobile-context-switch:hover { color: var(--navy); background: transparent; }
.composer { padding: 17px; }
.composer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.composer-heading h2 { flex: 1; min-width: 0; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-disclosure { margin: 3px 0 14px; border: 1px solid var(--border); border-radius: 11px; background: #f8fbfd; }
.form-disclosure > summary { padding: 12px 13px; color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 900; }
.form-disclosure[open] > summary { border-bottom: 1px solid var(--border); }
.form-disclosure-content { padding: 12px; }
.form-time-group { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.form-time-group legend { margin-bottom: 6px; padding: 0; color: #334e68; font-size: 12px; font-weight: 900; }
.mobile-job-deposit { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.mobile-job-deposit-toggle { margin: 0; color: var(--navy); font-weight: 900; }
.mobile-job-deposit-fields { margin-top: 12px; }
.mobile-job-deposit-fields[hidden] { display: none; }
.field-help { display: block; margin-top: 6px; color: #627d98; font-size: 10px; font-weight: 650; line-height: 1.4; }
.schedule-work-start { width: 100%; margin-top: 12px; }
.form-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-time-fields label { min-width: 0; }
.form-time-fields input { margin-bottom: 0; }
.customer-mirror-field { min-width: 0; }
.customer-mirror-input { display: block; }
.customer-mirror-checkbox {
  display: flex; align-items: center; gap: 7px; margin: -7px 0 14px; color: #486581;
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.customer-mirror-checkbox input {
  width: 18px; min-height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--green);
}
.customer-mirror-input input[readonly] { color: #486581; background: #f4f8fb; }
.access-intro { margin-bottom: 4px; color: #486581; line-height: 1.5; }
.access-link { margin-top: 18px; padding: 14px; background: #f4faf7; border: 1px solid #b7ddce; border-radius: 12px; }
.access-link h3 { margin: 0 0 6px; font-size: 16px; }
.access-link input { margin: 4px 0 0; background: white; }
.access-link-actions, .access-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notice { margin: 14px 0 0; padding: 11px 12px; color: #155b43; background: #e9f7f1; border: 1px solid #b7ddce; border-radius: 10px; font-weight: 700; line-height: 1.4; }
.notice.error-notice { color: #9b2c2c; background: #fff0f0; border-color: #f2b8b5; }
.records-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 4px 10px; }
.records-heading h2 { margin: 0; }
.records-heading span { color: #627d98; font-size: 13px; }
.record-list { display: grid; gap: 11px; }
.mobile-list-pagination {
  display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 9px;
  padding: 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
}
.mobile-list-pagination .small { min-width: 84px; }
.mobile-list-pagination-summary { color: #486581; font-size: 11px; font-weight: 850; text-align: center; }
.dashboard-queue-secondary { justify-self: start; margin-top: 14px; }
.card { padding: 16px; border-left: 5px solid #3b82c4; }
.card h3 { margin: 0 0 7px; font-size: 18px; }
.user-card { border-left-color: var(--green); }
.user-card.owner-user-card { background: var(--blue-soft); border-color: #b7d5ec; border-left-color: var(--blue); }
.user-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-card-heading h3 { margin: 0; }
.access-status-badge { display: inline-flex; padding: 5px 9px; color: #486581; background: #f1f5f8; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: capitalize; }
.access-status-badge.active { color: #155b43; background: #e9f7f1; }
.access-status-badge.pending, .access-status-badge.accepted { color: #8a570b; background: #fff5df; }
.access-status-badge.disabled { color: #7a4d12; background: #fff5df; }
.access-status-badge.revoked, .access-status-badge.expired { color: #9b2c2c; background: #fff0f0; }
.access-status { margin: 8px 0 0; font-size: 13px; font-weight: 800; }
.access-status.active { color: #196747; }
.access-status.pending, .access-status.accepted { color: #9b5a00; }
.access-status.expired, .access-status.revoked { color: #7a4d12; }
.access-status.disabled { color: #7a4d12; }
.protected-account { margin-top: 12px; }
.mobile-user-access-summary { margin: 9px 0 0; color: #486581; font-size: 13px; font-weight: 800; line-height: 1.45; }
.pending-role-note { margin: 0; }
.mobile-user-disclosure { margin-top: 11px; border-top: 1px solid var(--border); }
.mobile-user-disclosure > summary { padding: 12px 2px 2px; color: var(--blue); cursor: pointer; font-weight: 900; }
.mobile-user-disclosure-body { display: grid; gap: 11px; padding: 10px 2px 3px; }
.mobile-user-disclosure-body > button { justify-self: start; }
.mobile-user-setting-section { display: grid; gap: 7px; padding: 11px; background: #f7fafc; border: 1px solid #e0e8ef; border-radius: 10px; }
.mobile-user-setting-section h4 { margin: 0; color: var(--navy); font-size: 14px; }
.mobile-user-setting-label { display: grid; gap: 6px; color: #334e68; font-size: 13px; font-weight: 850; }
.mobile-user-setting-label select { min-height: 43px; margin: 0; padding: 8px 10px; }
.mobile-user-account-access select[data-access-status="active"] { color: #155b43; background: #e9f7f1; border-color: #8bc9ae; }
.mobile-user-account-access select[data-access-status="paused"] { color: #7a4d12; background: #fff5df; border-color: #e5c575; }
.mobile-user-account-access { gap: 10px; margin-top: 2px; }
.mobile-user-access-help { margin: 0; }
.mobile-user-access-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-user-access-actions button { width: 100%; }
.small.danger { color: #9b2c2c; background: #fff0f0; border-color: #f2b8b5; }
.meta { margin: 5px 0; color: #627d98; font-size: 14px; line-height: 1.4; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #8a3b08; background: #fff0e5; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.mobile-task-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mobile-task-filter { min-width: 0; min-height: 44px; padding: 8px 5px; color: #486581; background: white; border: 1px solid #c8d6e0; font-size: 11px; }
.mobile-task-filter.active { color: white; background: var(--navy); border-color: var(--navy); }
.mobile-task-card { border-left-color: #2f80c9; }
.mobile-task-card.overdue { background: #fff9f5; border-left-color: var(--orange); }
.mobile-task-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-task-heading h3 { margin: 0; }
.mobile-task-due, .mobile-task-assignee { margin: 10px 0 0; color: #627d98; font-size: 13px; font-weight: 750; }
.mobile-task-due.overdue, .badge.overdue { color: #b54708; font-weight: 900; }
.badge.complete { color: #176344; background: var(--green-soft); }
.badge.overdue { background: #fff0e5; }
.mobile-task-empty { margin: 0; padding: 28px 16px; color: #627d98; text-align: center; }
.empty { padding: 32px; color: #627d98; text-align: center; }
.error { min-height: 20px; margin: 12px 0 0; color: #b42318; font-weight: 700; }
.hidden { display: none !important; }

.mobile-dashboard { display: grid; gap: 14px; }
.mobile-onboarding-mode .tabs,
.mobile-onboarding-mode .offline-read-panel,
.mobile-onboarding-mode .offline-queue-panel { display: none !important; }
.mobile-onboarding-mode { min-height: calc(100vh - 110px); }
.mobile-setup-wizard { padding: 20px; background: white; border: 1px solid #cbd7e2; border-top: 5px solid var(--orange); border-radius: 16px; box-shadow: 0 8px 24px rgba(16,42,67,.09); }
.mobile-guided-onboarding { width: min(540px, 100%); margin: clamp(18px, 4vh, 32px) auto 0; padding: 22px; overflow: hidden; border-radius: 20px; box-shadow: 0 14px 38px rgba(16, 42, 67, .12); animation: mobile-onboarding-enter .24s ease-out; }
.mobile-onboarding-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; color: #627d98; font-size: 12px; font-weight: 850; }
.mobile-onboarding-dots { display: flex; gap: 7px; }
.mobile-onboarding-dot { width: 9px; height: 9px; background: #d7e1e9; border-radius: 999px; }
.mobile-onboarding-dot.complete { background: #238b62; }
.mobile-onboarding-dot.current { width: 24px; background: var(--orange); }
.mobile-onboarding-title { margin-bottom: 8px; color: var(--navy); font-size: clamp(29px, 8.5vw, 38px); line-height: 1.05; letter-spacing: -.035em; }
.mobile-onboarding-copy { max-width: 430px; margin-bottom: 18px; font-size: 15px; }
.mobile-setup-wizard form { display: grid; gap: 16px; margin-top: 14px; }
.mobile-setup-choice-group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.mobile-setup-choice-group legend { margin-bottom: 3px; color: var(--navy); font-size: 15px; font-weight: 900; }
.mobile-setup-choice { display: flex; gap: 10px; min-height: 66px; margin: 0; padding: 11px 12px; background: #f8fbfd; border: 2px solid #cbd7e2; border-radius: 13px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.mobile-setup-choice:hover { border-color: #96adbf; }
.mobile-setup-choice:has(input:checked) { background: #eef8f4; border-color: #16825d; box-shadow: 0 0 0 2px #d4eee4; transform: translateY(-1px); }
.mobile-setup-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.mobile-setup-choice strong, .mobile-setup-choice small { display: block; }
.mobile-setup-choice small { margin-top: 3px; color: #486581; font-size: 12px; line-height: 1.35; }
.mobile-setup-result { margin: 0; padding: 11px 12px; color: #155b43; background: #e8f6f0; border-radius: 10px; font-weight: 800; }
.mobile-desktop-sync-guide { padding: 13px 14px; color: #173a59; background: #edf6ff; border: 1px solid #bad9ee; border-left: 5px solid #2f80c9; border-radius: 12px; }
.mobile-desktop-sync-guide h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.mobile-desktop-sync-guide p { margin: 0; color: #486581; font-size: 12px; line-height: 1.4; }
.mobile-desktop-sync-guide ol { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 20px; }
.mobile-desktop-sync-guide li { padding-left: 2px; color: #334e68; font-size: 12px; font-weight: 750; line-height: 1.35; }
.mobile-onboarding-actions { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.mobile-onboarding-actions .primary { flex: 1; }
.mobile-onboarding-actions button { min-height: 50px; }
.mobile-onboarding-entry-actions { display: grid; grid-template-columns: 1fr; margin-top: 8px; }
.mobile-onboarding-entry-actions .quiet { width: 100%; }
.mobile-onboarding-ready-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 18px auto; color: white; background: var(--green); border-radius: 50%; box-shadow: 0 10px 25px rgba(35, 139, 98, .22); font-size: 38px; font-weight: 950; }
.mobile-onboarding-ready-list { display: grid; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.mobile-onboarding-ready-list li { position: relative; padding-left: 25px; color: #334e68; font-size: 13px; font-weight: 750; line-height: 1.4; }
.mobile-onboarding-ready-list li::before { content: "✓"; position: absolute; left: 3px; color: var(--green); font-weight: 950; }
.mobile-experience-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(6, 24, 41, .64); }
.mobile-experience-dialog { width: min(420px, 100%); padding: 26px; background: white; border: 1px solid #d6e0e8; border-top: 6px solid var(--green); border-radius: 20px; box-shadow: 0 24px 70px rgba(6, 24, 41, .32); text-align: center; animation: mobile-onboarding-enter .2s ease-out; }
.mobile-experience-dialog h2 { margin: 10px 0 8px; color: var(--navy); font-size: 27px; }
.mobile-experience-dialog p { margin-bottom: 22px; }
.mobile-experience-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto; color: white; background: var(--green); border-radius: 50%; font-size: 32px; font-weight: 950; }
.mobile-get-started { margin: 18px 0; padding: 20px; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--orange); border-radius: 18px; box-shadow: 0 10px 24px rgba(13, 38, 63, .08); }
.mobile-get-started-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.mobile-get-started-header .dashboard-eyebrow { margin: 0 0 4px; }
.mobile-get-started-header h2 { margin: 0; font-size: 25px; line-height: 1.08; }
.mobile-get-started-count { flex: 0 0 auto; padding: 6px 10px; color: #8f4210; background: #fff1e5; border-radius: 999px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.mobile-get-started-intro { margin: 10px 0 14px; color: #526a7f; font-size: 14px; line-height: 1.45; }
.mobile-get-started-progress { height: 7px; overflow: hidden; margin-bottom: 15px; background: #e7edf2; border-radius: 999px; }
.mobile-get-started-progress span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .2s ease; }
.mobile-get-started-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.mobile-get-started-step { min-width: 0; border: 1px solid #cfdae3; border-radius: 14px; background: #f8fafc; }
.mobile-get-started-step.complete { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; color: #1f6e52; background: #eef8f3; border-color: #b8ddcd; }
.mobile-get-started-action { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; color: var(--navy); background: transparent; border: 0; text-align: left; }
.mobile-get-started-action b { color: #2d70b8; font-size: 13px; white-space: nowrap; }
.mobile-get-started-marker { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-size: 15px; font-weight: 900; }
.mobile-get-started-step.complete .mobile-get-started-marker { background: var(--green); }
.mobile-get-started-copy { min-width: 0; display: grid; gap: 3px; }
.mobile-get-started-copy strong { color: var(--navy); font-size: 15px; line-height: 1.2; }
.mobile-get-started-copy small { color: #5f7486; font-size: 12px; line-height: 1.35; }
.mobile-get-started-done { color: var(--green); font-size: 12px; font-weight: 850; }
.mobile-get-started-hide { width: 100%; min-height: 42px; margin-top: 10px; color: #526a7f; background: transparent; border: 0; text-decoration: underline; }
.mobile-get-started-finish { width: 100%; min-height: 49px; margin-top: 13px; }
body.mobile-experience-open { overflow: hidden; }
@keyframes mobile-onboarding-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-guided-onboarding, .mobile-experience-dialog { animation: none; }
  .mobile-setup-choice { transition: none; }
  .mobile-setup-choice:has(input:checked) { transform: none; }
}
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 2px; }
.dashboard-heading h2 { margin: 0; color: #102a43; font-size: clamp(34px, 10vw, 46px); line-height: 1; letter-spacing: -.04em; }
.dashboard-eyebrow { margin: 0 0 6px; color: #c75a12; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-date { min-width: 94px; padding: 10px 14px; text-align: center; background: #fff5ed; border: 1px solid #ffcfaa; border-radius: 14px; box-shadow: 0 4px 12px rgba(244, 123, 32, .08); }
.dashboard-date span, .dashboard-date strong { display: block; }
.dashboard-date span { color: #c75a12; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.dashboard-date strong { margin-top: 2px; color: #102a43; font-size: 17px; }
.weekly-summary-strip {
  display: grid; gap: 8px; padding: 11px; color: var(--navy); background: #eef9f4;
  border: 1px solid #b9dfcf; border-left: 6px solid var(--green); border-radius: 14px;
  box-shadow: 0 5px 16px rgba(15, 42, 67, .06);
}
.weekly-summary-strip h2 { margin: 0 2px; font-size: 14px; }
.weekly-summary-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.weekly-summary-item {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px;
  padding: 8px 7px; color: var(--navy); background: white; border: 1px solid #c8e5d9; border-radius: 10px; text-align: left;
}
.weekly-summary-item strong { display: block; overflow: hidden; font-size: 16px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.weekly-summary-item span { grid-column: 1 / -1; color: #47685b; font-size: 9px; font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.weekly-summary-item b { grid-column: 2; grid-row: 1; color: #238b62; font-size: 16px; }
.weekly-summary-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.weekly-summary-strip.first-week p { margin: 0 2px; color: #47685b; font-size: 11px; font-weight: 750; line-height: 1.35; }
.dashboard-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dashboard-metric { min-height: 132px; padding: 15px; color: #102a43; background: white; border: 1px solid var(--border); border-left: 6px solid var(--green); border-radius: 14px; box-shadow: 0 5px 16px rgba(15, 42, 67, .08); text-align: left; }
.dashboard-metric.blue { border-left-color: #2f80c9; }
.dashboard-metric.attention { position: relative; overflow: visible; }
.dashboard-metric-attention-badge {
  position: absolute; z-index: 2; top: -9px; right: -7px; min-width: 23px; height: 23px;
  display: grid; place-items: center; padding: 0 6px; color: white; background: #c62828;
  border: 2px solid #f5f8fb; border-radius: 999px; font-size: 10px; font-weight: 950; line-height: 1;
}
.dashboard-metric:hover { transform: translateY(-1px); }
.metric-marker { width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 23px; line-height: 1; }
.dashboard-metric.blue .metric-marker { background: #2f80c9; }
.dashboard-metric strong { display: block; margin: 9px 0 1px; font-size: 31px; line-height: 1; }
.metric-label { color: #526a7f; font-size: 13px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.dashboard-metrics.owner-summary { gap: 9px; }
.dashboard-metrics.owner-summary .dashboard-metric {
  min-height: 88px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto;
  align-content: center; column-gap: 11px; padding: 10px 12px;
}
.dashboard-metrics.owner-summary .metric-marker { grid-row: 1 / span 2; width: 36px; height: 36px; font-size: 19px; }
.dashboard-metrics.owner-summary .dashboard-metric strong { margin: 0 0 2px; font-size: 26px; }
.dashboard-metrics.owner-summary .metric-label { font-size: 11px; line-height: 1.12; }
.dashboard-quick-section { display: grid; gap: 9px; }
.dashboard-quick-section h2 { margin: 0 2px; font-size: 18px; }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dashboard-quick {
  min-height: 106px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 13px 12px; color: var(--navy); background: white; border: 1px solid var(--border); border-top: 4px solid var(--orange);
  border-radius: 13px; box-shadow: 0 5px 16px rgba(15, 42, 67, .07); line-height: 1.08; text-align: left;
}
.dashboard-quick.schedule { color: white; background: var(--navy); border-color: var(--navy); border-top-color: var(--orange); }
.dashboard-quick:hover { transform: translateY(-1px); }
.dashboard-quick:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.dashboard-quick-marker {
  width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--orange);
  border-radius: 10px; box-shadow: 0 4px 10px rgba(13, 38, 63, .14); font-size: 21px; font-weight: 950; line-height: 1;
}
.dashboard-quick.estimate { border-color: var(--navy); border-top-color: var(--orange); box-shadow: 0 6px 18px rgba(13, 38, 63, .11); }
.dashboard-quick.estimate .dashboard-quick-marker { color: white; background: var(--orange); }
.dashboard-quick-copy { min-width: 0; }
.dashboard-quick-copy strong { display: block; font-size: 15px; font-weight: 950; letter-spacing: -.01em; }
.dashboard-quick-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.25; }
.dashboard-quick.estimate .dashboard-quick-copy small { color: #425b73; }
.dashboard-quick.schedule .dashboard-quick-copy small { color: #c5d6e5; }
.dashboard-quick.recurring_service { color: #238b62; background: #ecf8f2; border-color: #c8eadb; }
.dashboard-route-callout {
  width: 100%; min-height: 76px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center; gap: 11px; padding: 13px 15px; color: var(--navy); background: #eef9f4;
  border: 1px solid #b9dfcf; border-left: 6px solid var(--green); border-radius: 14px; text-align: left;
  box-shadow: 0 5px 16px rgba(15, 42, 67, .06);
}
.dashboard-route-marker { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 20px; font-weight: 900; }
.dashboard-route-callout > span:nth-child(2) strong, .dashboard-route-callout > span:nth-child(2) small { display: block; }
.dashboard-route-callout > span:nth-child(2) small { margin-top: 4px; color: #527167; font-size: 11px; }
.dashboard-route-callout > b { color: #19714f; font-size: 12px; }
.today-section, .recent-section { padding: 17px; background: white; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 5px 18px rgba(15, 42, 67, .07); }
.today-section { padding: 13px; }
.today-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.today-section-heading h2, .recent-section h2 { margin: 0; font-size: 21px; }
.today-section-heading span { padding: 5px 9px; color: #334e68; background: #f7fafc; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 800; }
.today-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px;
  margin-top: 8px; padding: 11px 12px; border: 1px solid #b9decf; border-left: 5px solid var(--green); border-radius: 13px;
}
.today-card.emergency { background: var(--red-soft); border-color: #efb7b7; border-left: 6px solid var(--red); box-shadow: 0 5px 16px rgba(200, 70, 58, .13); }
.today-card-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-card-flags { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.today-emergency { display: inline-flex; padding: 4px 7px; color: white; background: var(--red); border-radius: 999px; font-size: 10px; font-weight: 950; letter-spacing: .03em; text-transform: uppercase; }
.time-chip { padding: 5px 9px; color: #334e68; background: white; border: 1px solid #d5e0e8; border-radius: 9px; font-size: 12px; font-weight: 900; }
.today-status { color: #238b62; font-size: 11px; font-weight: 900; text-transform: capitalize; }
.today-card h3 { grid-column: 1 / -1; margin: 8px 0 3px; color: #0b83dc; font-size: 18px; }
.today-card.emergency h3 { color: #8f2020; font-weight: 950; }
.today-card p { grid-column: 1 / -1; margin-bottom: 6px; color: #627d98; font-size: 13px; }
.today-card-facts { grid-column: 1; display: grid; align-self: center; gap: 2px; margin: 0; }
.today-card-facts span { color: #334e68; font-size: 12px; line-height: 1.25; }
.today-actions { grid-column: 2; display: flex; align-self: end; flex-wrap: wrap; gap: 7px; }
.dashboard-empty { padding: 28px 10px; color: #627d98; text-align: center; }
.recent-section { display: grid; gap: 5px; }
.recent-section h2 { margin-bottom: 6px; }
.recent-row { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; color: #102a43; background: transparent; border: 0; border-top: 1px solid #edf2f6; border-radius: 0; text-align: left; }
.recent-row span, .recent-row strong, .recent-row small { display: block; }
.recent-row > span:nth-child(2) { min-width: 0; flex: 1; }
.recent-type-icon { width: 30px; height: 30px; display: grid !important; flex: none; place-items: center; color: #fff; background: var(--blue); border-radius: 9px; font-size: 12px; font-weight: 950; }
.recent-type-icon.customer { background: var(--green); }
.recent-type-icon.estimate { background: var(--orange); }
.recent-row small { margin-top: 3px; color: #627d98; text-transform: capitalize; }
.recent-row b { color: #9fb3c8; font-size: 25px; }
.mobile-attention-section {
  display: grid; gap: 8px; padding: 17px; background: white; border: 1px solid var(--border);
  border-left: 6px solid var(--orange); border-radius: 15px; box-shadow: 0 5px 18px rgba(15, 42, 67, .07);
}
.mobile-attention-copy { margin: -3px 0 5px; color: #627d98; font-size: 11px; line-height: 1.45; }
.mobile-attention-section .dashboard-empty { margin: 0; padding: 18px 8px; }
.mobile-attention-row {
  width: 100%; min-height: 68px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 10px 11px; color: var(--navy); background: #fbfdff;
  border: 1px solid #d8e2ec; border-left: 5px solid #2f80c9; border-radius: 11px; text-align: left;
}
.mobile-attention-row.warning { border-left-color: var(--orange); }
.mobile-attention-row.urgent { border-left-color: #a52a2a; }
.mobile-attention-row.success { border-left-color: var(--green); background: #f7fcf9; }
.mobile-attention-marker {
  width: 29px; height: 29px; display: grid; place-items: center; color: white; background: #2f80c9;
  border-radius: 50%; font-size: 14px; font-weight: 950;
}
.mobile-attention-row.warning .mobile-attention-marker { background: var(--orange); }
.mobile-attention-row.urgent .mobile-attention-marker { background: #a52a2a; }
.mobile-attention-row.success .mobile-attention-marker { background: var(--green); }
.mobile-attention-row.urgent small { color: var(--red); }
.mobile-attention-row > span:nth-child(2),
.mobile-attention-row strong,
.mobile-attention-row small { display: block; min-width: 0; }
.mobile-attention-row small { color: #8a3b08; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.mobile-attention-row strong { margin: 3px 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-attention-row > span:nth-child(2) > span { color: #627d98; font-size: 10px; }
.mobile-attention-row b { color: #486581; font-size: 10px; }

.mobile-calendar { display: grid; gap: 14px; }
.calendar-panel {
  padding: 17px; background: white; border: 1px solid var(--border); border-radius: 15px;
  box-shadow: 0 5px 18px rgba(15, 42, 67, .07);
}
.calendar-panel h2 { margin-bottom: 6px; color: var(--navy); font-size: 21px; }
.calendar-panel > .muted { margin-bottom: 13px; }
.calendar-work-views { border-left: 7px solid var(--orange); }
.calendar-view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.calendar-view-heading h2 { margin: 0 0 4px; }
.calendar-view-heading p { margin: 0; }
.calendar-person-filter {
  display: grid; gap: 9px; margin-top: 14px; padding: 12px; background: #f6f9fb;
  border: 1px solid #d8e2ec; border-radius: 11px;
}
.calendar-person-filter-copy strong,
.calendar-person-filter-copy small { display: block; }
.calendar-person-filter-copy strong { color: var(--navy); font-size: 13px; }
.calendar-person-filter-copy small { margin-top: 3px; color: #627d98; font-size: 10px; line-height: 1.4; }
.calendar-person-filter-form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start;
}
.calendar-person-filter-form input {
  width: 100%; min-height: 43px; margin: 0; padding: 9px 10px; border: 1px solid #bcccdc;
  border-radius: 9px;
}
.calendar-person-filter-form button { min-height: 43px; margin: 0; padding: 9px 13px; }
.calendar-person-filter-message {
  grid-column: 1 / -1; min-height: 0; color: var(--red); font-size: 10px; font-weight: 800;
}
.calendar-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.calendar-view-tab {
  min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 7px;
  padding: 8px 10px; color: #334e68; background: #f6f9fb; border: 1px solid #d8e2ec;
  border-radius: 9px; font-size: 11px; font-weight: 900; text-align: left;
}
.calendar-view-tab.active { color: white; background: var(--navy); border-color: var(--navy); }
.calendar-view-tab b {
  min-width: 23px; padding: 3px 6px; color: #334e68; background: white; border-radius: 999px;
  font-size: 10px; text-align: center;
}
.calendar-view-tab b.calendar-view-attention-badge {
  min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px;
  color: white; background: #c62828; border: 2px solid white; font-weight: 950; line-height: 1;
}
.calendar-view-list { margin-top: 11px; }
.calendar-list-note { margin: 3px 0 0; color: #627d98; font-size: 11px; text-align: center; }
.calendar-choices { display: grid; gap: 10px; }
.calendar-choice {
  width: 100%; min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; color: var(--navy); background: white; border: 1px solid #cfdbe5;
  border-left: 7px solid #2f80c9; border-radius: 11px; text-align: left;
}
.calendar-choice.service, .calendar-choice.recurring { border-left-color: var(--green); }
.calendar-choice-copy, .calendar-choice-copy strong, .calendar-choice-copy small { display: block; }
.calendar-choice-copy strong { font-size: 16px; font-weight: 950; letter-spacing: .01em; text-transform: uppercase; }
.calendar-choice-copy small { margin-top: 3px; color: #627d98; font-size: 12px; line-height: 1.35; }
.calendar-choice-plus {
  width: 41px; height: 41px; flex: none; display: grid; place-items: center; color: var(--navy);
  background: #fffdf8; border: 1px solid #d8c79d; border-radius: 50%; font-size: 25px; font-weight: 500;
}
.schedule-work-back { width: 100%; margin-top: 2px; }
.month-card { padding: 0 0 13px; overflow: hidden; border-left: 7px solid var(--navy); }
.month-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 15px 13px;
  border-bottom: 1px solid #e4ebf1;
}
.month-heading h2 { margin: 0 0 4px; font-size: 21px; }
.month-heading p { margin: 0; font-size: 12px; font-weight: 700; }
.month-controls { display: flex; align-items: center; gap: 6px; }
.month-controls button { min-height: 39px; padding: 6px 11px; color: var(--navy); background: white; border-color: var(--border); font-weight: 900; }
.month-controls .month-button { min-width: 39px; padding-inline: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px 10px 0; }
.calendar-weekday { padding: 4px 0; color: #71695d; font-size: 10px; font-weight: 950; text-align: center; text-transform: uppercase; }
.calendar-day {
  position: relative; min-width: 0; min-height: 55px; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-start; padding: 8px; color: var(--navy); background: white; border: 1px solid #d8e2ec;
  border-radius: 10px; text-align: left;
}
.calendar-day.blank { background: transparent; border-color: transparent; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #f2a26a; }
.calendar-day.selected { color: white; background: var(--navy); border-color: var(--navy); }
.calendar-day.has-work:not(.selected)::after {
  content: ""; position: absolute; left: 8px; bottom: 7px; width: 7px; height: 7px;
  background: var(--orange); border-radius: 50%;
}
.calendar-day strong { font-size: 13px; }
.calendar-day-count {
  min-width: 17px; margin-top: auto; padding: 1px 4px; color: #8b3b06; background: #fff0e5;
  border-radius: 999px; font-size: 9px; font-weight: 950; text-align: center;
}
.calendar-day.selected .calendar-day-count { color: var(--navy); background: white; }
.selected-day-card, .ready-panel { padding: 17px; }
.selected-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.selected-day-heading h2 { margin: 0; font-size: 19px; }
.calendar-count {
  min-width: 29px; padding: 4px 8px; color: #334e68; background: #f3f7fa; border: 1px solid var(--border);
  border-radius: 999px; font-size: 11px; font-weight: 900; text-align: center;
}
.calendar-count.green { color: #155b43; background: #e8f6f0; border-color: #b7ddce; }
.calendar-empty { margin: 0; padding: 20px 4px; color: #627d98; text-align: center; }
.calendar-work-list { display: grid; gap: 8px; }
.calendar-work-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px; background: #fbfdff; border: 1px solid #d8e2ec; border-left: 5px solid var(--green); border-radius: 10px;
}
.calendar-work-item.estimate { border-left-color: #2f80c9; }
.calendar-work-item.job { border-left-color: var(--orange); }
.calendar-work-time { color: #334e68; font-size: 11px; font-weight: 900; }
.calendar-work-copy strong, .calendar-work-copy small { display: block; }
.calendar-work-copy strong { font-size: 13px; }
.calendar-work-copy small { margin-top: 3px; color: #627d98; font-size: 10px; text-transform: capitalize; }
.calendar-work-copy small.calendar-work-assignee { margin-top: 6px; color: #173a59; font-weight: 850; text-transform: none; }
.calendar-work-trailing { display: grid; justify-items: end; gap: 5px; }
.calendar-work-open { color: #276749; font-size: 10px; font-weight: 950; white-space: nowrap; }
.mobile-schedule-now-button { min-height: 34px; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
.mobile-direct-schedule {
  padding: 14px; background: #f7fafc; border: 1px solid #bfd8cc; border-left: 6px solid var(--green);
  border-radius: 10px;
}
.mobile-direct-schedule-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-direct-schedule-heading > div { min-width: 0; }
.mobile-direct-schedule-heading h3 { margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.mobile-direct-schedule-heading p:last-child { margin: 0; font-size: 11px; line-height: 1.45; }
.mobile-direct-schedule-form { margin-top: 8px; }
.calendar-status { width: fit-content; padding: 4px 7px; color: #87510a; background: #fff3df; border-radius: 999px; font-size: 9px; font-weight: 950; text-transform: capitalize; }
.calendar-status.complete { color: #176344; background: #e8f6f0; }
.calendar-status.cancelled, .calendar-status.emergency { color: #9b2c2c; background: #fff0f0; }
.ready-panel { border-left: 7px solid var(--green); }
.calendar-overlap-warning {
  display: grid; gap: 3px; margin: 0 0 10px; padding: 10px 11px; color: #8a3b08;
  background: #fff4e8; border: 1px solid #efc295; border-radius: 9px; font-size: 11px;
}
.calendar-overlap-warning strong { font-size: 12px; }
.danger-action { color: #9b2c2c !important; border-color: #efb7b7 !important; }
.calendar-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.calendar-detail-heading > div { flex: 1; min-width: 0; }
.calendar-detail-heading h2 { margin: 0; font-size: 23px; }
.calendar-back { flex: none; min-height: 35px; padding: 5px 9px; color: #334e68; background: #f6f9fb; border-color: var(--border); font-size: 11px; font-weight: 900; }
.calendar-back-outside { display: inline-flex; margin: 0 0 10px; }
.service-call-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 11px; }
.service-call-form .wide { grid-column: 1 / -1; }
.service-call-form label { margin: 9px 0; }
.service-call-form textarea { min-height: 118px; }
.quick-customer-field { display: grid; gap: 8px; margin: -2px 0 8px; }
.quick-customer-trigger {
  width: fit-content; min-height: 38px; padding: 7px 10px; color: #155b43;
  background: #e8f6f0; border: 1px solid #b7ddce; border-radius: 9px;
  font-size: 12px; font-weight: 900;
}
.quick-customer-panel {
  display: grid; gap: 10px; padding: 14px; background: #f8fbfd;
  border: 1px solid #cbd8e3; border-left: 5px solid var(--orange); border-radius: 11px;
}
.quick-customer-panel[hidden] { display: none; }
.quick-customer-panel h3, .quick-customer-panel p { margin: 0; }
.quick-customer-panel h3 { font-size: 17px; }
.quick-customer-panel > p { font-size: 12px; line-height: 1.45; }
.quick-customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.quick-customer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.quick-customer-status { min-height: 18px; margin: 0; color: #176344; font-size: 12px; font-weight: 850; }
.quick-customer-status:empty { min-height: 0; }
.quick-customer-status.error { color: #9b2c2c; }
.availability-button { align-self: end; margin-top: 8px; }
.availability-result { min-height: 20px; margin: 6px 0 0; color: #627d98; font-size: 12px; font-weight: 800; }
.availability-result.available { color: #176344; }
.availability-result.conflict { color: #9b2c2c; }
.mobile-availability-check {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center;
  margin: 8px 0; padding: 12px; background: #f6f9fb; border: 1px solid #d8e2ec; border-radius: 10px;
}
.mobile-availability-check strong, .mobile-availability-check small { display: block; }
.mobile-availability-check small { margin-top: 3px; color: #627d98; font-size: 11px; line-height: 1.4; }
.mobile-availability-check .availability-button { margin: 0; }
.mobile-availability-check .availability-result { grid-column: 1 / -1; margin: 2px 0 0; }
.service-call-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.service-call-notice { margin: 10px 0 0; padding: 10px 11px; color: #9b2c2c; background: #fff0f0; border: 1px solid #f2b8b5; border-radius: 9px; font-size: 12px; font-weight: 800; }
.service-call-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.service-call-facts { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 12px; margin: 0; padding: 13px; background: #f6f9fb; border-radius: 11px; }
.service-call-facts dt { color: #627d98; font-size: 11px; font-weight: 900; }
.service-call-facts dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 750; }
.customer-action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.customer-action {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px;
  color: #155b43; background: #e8f6f0; border: 1px solid #b7ddce; border-radius: 9px;
  font-size: 11px; font-weight: 900; text-decoration: none;
}
.service-call-copy, .service-call-completion { margin-top: 13px; padding-top: 13px; border-top: 1px solid #e4ebf1; }
.service-call-copy h3, .service-call-completion h3 { margin: 0 0 7px; font-size: 15px; }
.service-call-copy p { margin: 0; color: #486581; line-height: 1.5; white-space: pre-wrap; }
.service-call-completion textarea { margin-top: 0; min-height: 120px; }
.service-call-checklist { display: grid; gap: 8px; margin: 13px 0; }
.service-call-check {
  min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px;
  align-items: center; margin: 0 !important; padding: 10px 11px; color: var(--navy);
  background: #fff; border: 1px solid #d8e2ec; border-radius: 10px; font-size: 13px; line-height: 1.35;
}
.service-call-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.service-call-check.completed { color: #557067; background: #edf8f3; border-color: #b7ddce; }
.service-call-report-field { display: block; margin: 12px 0 0; color: #334e68; font-size: 12px; font-weight: 900; }
.service-call-report-field textarea { display: block; width: 100%; margin-top: 6px; }
.service-call-photo-panel, .service-call-history { margin-top: 13px; padding-top: 13px; border-top: 1px solid #e4ebf1; }
.service-call-history h3 { margin: 0; font-size: 15px; }
.service-call-history-item {
  margin: 9px 0 0; padding: 10px 11px; color: #486581; background: #f6f9fb;
  border-radius: 9px; font-size: 12px; line-height: 1.45; white-space: pre-wrap;
}
.ready-callout { margin-top: 15px; padding: 14px; color: #155b43; background: #e8f6f0; border: 1px solid #b7ddce; border-radius: 11px; }
.ready-callout strong { display: block; font-size: 14px; }
.ready-callout p { margin: 5px 0 10px; font-size: 12px; line-height: 1.45; }
.mobile-checkbox {
  min-height: 50px; display: flex; align-items: center; gap: 9px; align-self: end; padding: 9px 11px;
  background: #f8fbfd; border: 1px solid var(--border); border-radius: 10px;
}
.mobile-checkbox input { width: 19px; flex: none; margin: 0; accent-color: var(--orange); }
.customer-profile-mobile {
  display: grid; gap: 12px; padding: 17px; background: #fff; border: 1px solid var(--border);
  border-left: 6px solid var(--green); border-radius: 15px; box-shadow: 0 5px 18px rgba(15, 42, 67, .07);
}
.mobile-customer-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 11px;
  text-align: left;
}
.mobile-customer-heading > div { min-width: 0; grid-column: 1; grid-row: 1; }
.mobile-customer-heading > button { grid-column: 2; grid-row: 1; justify-self: end; }
.mobile-customer-heading .dashboard-eyebrow { margin: 0 0 5px; }
.mobile-customer-heading h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.mobile-customer-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.mobile-customer-edit { width: auto; flex: 0 0 auto; }
.mobile-customer-actions > .mobile-action-disclosure:not([open]) { flex: 0 0 auto; }
.mobile-customer-actions > .mobile-action-disclosure[open] { flex: 1 1 100%; }
.mobile-job-customer-contact {
  margin-top: 13px; padding-top: 12px; border-top: 1px solid #e4ebf1;
}
.mobile-job-customer-contact h4 { margin: 0 0 9px; }
.mobile-customer-card { padding: 14px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 11px; }
.mobile-customer-card h3 { margin: 0 0 11px; font-size: 16px; }
.customer-erasure-panel { scroll-margin-top: 20px; }
.customer-erasure-panel:focus { outline: 3px solid rgba(248, 130, 42, .28); outline-offset: 3px; }
.mobile-customer-erasure-blockers { display: grid; gap: 8px; margin-bottom: 10px; }
.mobile-customer-facts {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 11px; margin: 0;
}
.mobile-customer-facts dt { color: #627d98; font-size: 11px; font-weight: 900; }
.mobile-customer-facts dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.mobile-customer-work {
  width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 3px; color: var(--navy); background: transparent; border: 0;
  border-top: 1px solid #e4ebf1; border-radius: 0; text-align: left;
}
.mobile-customer-work span, .mobile-customer-work strong, .mobile-customer-work small { display: block; }
.mobile-customer-work strong { font-size: 12px; }
.mobile-customer-work small { margin-top: 3px; color: #627d98; font-size: 10px; }
.mobile-customer-work-meta { text-transform: capitalize; }
.mobile-customer-work b { color: #9fb3c8; font-size: 21px; }
.mobile-customer-note { padding: 10px 0; border-top: 1px solid #e4ebf1; }
.mobile-customer-note p { margin: 0; color: #334e68; line-height: 1.5; white-space: pre-wrap; }
.mobile-customer-note small { display: block; margin-top: 6px; color: #627d98; font-size: 10px; }
.mobile-customer-work-activity > summary,
.mobile-customer-fold > summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px;
  cursor: pointer; list-style: none;
}
.mobile-customer-work-activity > summary::-webkit-details-marker,
.mobile-customer-fold > summary::-webkit-details-marker { display: none; }
.mobile-customer-work-activity > summary::before,
.mobile-customer-fold > summary::before {
  content: "›"; color: var(--orange); font-size: 20px; font-weight: 900; transition: transform .15s ease;
}
.mobile-customer-work-activity[open] > summary::before,
.mobile-customer-fold[open] > summary::before { transform: rotate(90deg); }
.mobile-customer-work-summary-copy strong, .mobile-customer-work-summary-copy small { display: block; }
.mobile-customer-work-summary-copy strong { font-size: 16px; }
.mobile-customer-work-summary-copy small { margin-top: 3px; color: #627d98; font-size: 10px; }
.mobile-customer-work-activity-body { display: grid; gap: 10px; margin-top: 13px; }
.mobile-customer-fold { padding-top: 11px; border-top: 1px solid #e4ebf1; }
.mobile-customer-fold > summary strong { font-size: 13px; }
.mobile-customer-fold-body { display: grid; gap: 7px; padding: 9px 0 1px 18px; }
.mobile-customer-add-note { justify-self: start; margin-bottom: 2px; }
.mobile-customer-activity {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center;
  gap: 9px; padding: 9px 3px; color: var(--navy); background: transparent; border: 0;
  border-top: 1px solid #e4ebf1; border-radius: 0; text-align: left;
}
.mobile-customer-activity-marker {
  min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 4px;
  color: #155b43; background: #e9f7f1; border-radius: 7px; font-size: 8px; font-weight: 900;
}
.mobile-customer-activity-copy, .mobile-customer-activity-copy strong, .mobile-customer-activity-copy span, .mobile-customer-activity-copy small { display: block; min-width: 0; }
.mobile-customer-activity-copy strong { font-size: 10px; text-transform: capitalize; }
.mobile-customer-activity-copy span { margin-top: 2px; color: #334e68; font-size: 12px; overflow-wrap: anywhere; }
.mobile-customer-activity-copy small { margin-top: 3px; color: #627d98; font-size: 9px; }
.mobile-customer-activity b { color: #9fb3c8; font-size: 20px; }
.customer-directory-toolbar { padding: 16px; background: white; border: 1px solid var(--border); border-left: 5px solid var(--green); border-radius: 15px; box-shadow: 0 5px 18px rgba(15, 42, 67, .07); }
.customer-directory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-directory-heading h2 { margin-bottom: 5px; }
.customer-directory-heading p { margin-bottom: 0; }
.customer-directory-add { flex: none; color: white; background: var(--orange); border-color: var(--orange); }
.customer-directory-controls { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 11px; margin-top: 14px; }
.customer-directory-controls label { margin: 0; font-size: 12px; }
.customer-directory-results { display: grid; gap: 8px; }
.customer-directory-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
  align-items: center; gap: 12px; padding: 13px 14px; color: var(--navy); background: white;
  border: 1px solid var(--border); border-left: 5px solid var(--green); border-radius: 12px;
  text-align: left; box-shadow: 0 3px 10px rgba(15, 42, 67, .04);
}
.customer-directory-row:hover { background: #f8fcfa; border-color: #b9dfcf; }
.customer-directory-row span, .customer-directory-row strong, .customer-directory-row small { display: block; min-width: 0; }
.customer-directory-row small { margin-top: 3px; color: #627d98; font-size: 10px; overflow-wrap: anywhere; }
.customer-directory-row > b { color: #9fb3c8; font-size: 22px; }
.customer-directory-empty { margin: 0; padding: 30px 14px; color: #627d98; background: white; border: 1px dashed #bcccdc; border-radius: 12px; text-align: center; }
.mobile-estimate-editor { padding: 13px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 11px; }
.mobile-estimate-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-estimate-editor-heading h3 { margin: 0; font-size: 16px; }
.mobile-estimate-editor-heading p { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
.mobile-estimate-lines { display: grid; gap: 9px; margin-top: 12px; }
.mobile-estimate-line { padding: 11px; background: white; border: 1px solid #d8e2ec; border-radius: 10px; }
.mobile-estimate-line > input { margin-top: 0; }
.mobile-estimate-line-values { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.mobile-estimate-line-values label { margin: 0; color: #627d98; font-size: 10px; }
.mobile-estimate-line-values input { margin-top: 4px; }
.mobile-estimate-line-total { min-width: 70px; padding-bottom: 10px; text-align: right; }
.mobile-estimate-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.mobile-estimate-taxable-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--navy); font-size: 12px; font-weight: 850; }
.mobile-estimate-taxable-label input { width: 20px; min-height: 20px; margin: 0; }
.mobile-estimate-line-actions > button { margin: 0; }
.line-taxable-note { display: block; margin-top: 3px; color: #176548; font-size: 10px; font-weight: 850; }
.mobile-estimate-preview { display: block; margin-top: 12px; color: var(--navy); font-size: 17px; text-align: right; }
.mobile-estimate-list-card { border-left-color: #2f80c9; }
.mobile-estimate-profile { display: grid; gap: 12px; }
.mobile-estimate-back-row { display: flex; justify-content: flex-start; }
.mobile-estimate-back-button { min-height: 44px; padding: 3px 2px; color: var(--blue); background: transparent; border: 0; }
.mobile-estimate-heading { display: block; padding: 15px; background: white; border: 1px solid var(--border); border-left: 6px solid #2f80c9; border-radius: 14px; }
.mobile-estimate-heading > div { width: 100%; min-width: 0; }
.mobile-estimate-heading h2 { margin: 0 0 5px; font-size: 23px; overflow-wrap: anywhere; }
.mobile-estimate-heading-customer { margin: 0 0 4px; }
.mobile-estimate-heading-amount { display: block; color: var(--navy); font-size: 20px; }
.mobile-estimate-status { display: grid; gap: 8px; }
.mobile-estimate-status .notice { margin: 0; }
.mobile-estimate-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mobile-estimate-action-primary { color: white; background: var(--navy); border-color: var(--navy); }
.mobile-action-disclosure { flex: 1 1 100%; }
.mobile-action-disclosure > summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: var(--blue);
  background: #eef6fb; border: 1px solid #c9dce9; border-radius: 10px; cursor: pointer;
  font-size: 12px; font-weight: 900; list-style-position: inside;
}
.mobile-action-disclosure[open] > summary { color: var(--navy); background: #e5f0f7; }
.mobile-action-disclosure-content { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding: 10px; background: #f6f9fb; border: 1px solid var(--border); border-radius: 10px; }
.mobile-estimate-approval {
  padding: 15px; background: #fffaf6; border: 1px solid #efc7a9; border-left: 6px solid var(--orange);
  border-radius: 13px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06);
}
.mobile-estimate-approval-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-estimate-approval-heading > div { min-width: 0; }
.mobile-estimate-approval-heading h3 { margin: 0 0 4px; font-size: 18px; }
.mobile-estimate-approval-heading p:last-child { margin: 0; font-size: 12px; line-height: 1.45; }
.mobile-estimate-approval-form { display: grid; gap: 10px; margin-top: 13px; }
.mobile-estimate-approval-form > label:not(.mobile-estimate-approval-confirm) { margin: 0; color: var(--navy); font-size: 12px; font-weight: 900; }
.mobile-estimate-approval-form > label:not(.mobile-estimate-approval-confirm) input,
.mobile-estimate-approval-form > label:not(.mobile-estimate-approval-confirm) select { margin-top: 6px; }
.mobile-estimate-approval-confirm {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start;
  margin: 0; padding: 11px; color: #334e68; background: white; border: 1px solid #d8e2ec;
  border-radius: 9px; font-size: 12px; font-weight: 800; line-height: 1.4;
}
.mobile-estimate-approval-confirm input { width: auto; margin: 2px 0 0; }
.mobile-estimate-approval-form .service-call-notice { margin: 0; }
.mobile-estimate-approval-form .service-call-actions { margin-top: 2px; }
.mobile-estimate-approval-form .primary { width: auto; }
.mobile-estimate-document, .mobile-estimate-card { padding: 15px; background: white; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06); }
.mobile-estimate-document-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-estimate-document-heading h3, .mobile-estimate-card h3 { margin: 0; }
.mobile-estimate-total { color: var(--navy); font-size: 21px; white-space: nowrap; }
.mobile-estimate-copy { margin-top: 14px; padding-top: 13px; border-top: 1px solid #e4ebf1; }
.mobile-estimate-copy h4 { margin: 0 0 6px; font-size: 14px; }
.mobile-estimate-copy p { margin: 0; color: #486581; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.mobile-estimate-document-lines { margin-top: 14px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.mobile-estimate-document-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid #e4ebf1; }
.mobile-estimate-document-line:first-child { border-top: 0; }
.mobile-estimate-document-line div, .mobile-estimate-document-line strong, .mobile-estimate-document-line small { display: block; }
.mobile-estimate-document-line small { margin-top: 3px; color: #627d98; font-size: 10px; }
.mobile-estimate-document-line > strong { white-space: nowrap; }
.mobile-estimate-totals { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 14px 0 0; }
.mobile-estimate-totals dt { color: #627d98; font-size: 11px; font-weight: 800; }
.mobile-estimate-totals dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 900; text-align: right; }
.mobile-estimate-totals dt:last-of-type, .mobile-estimate-totals dd:last-of-type { padding-top: 7px; border-top: 1px solid var(--border); font-size: 14px; }
.mobile-estimate-history { margin: 9px 0 0; padding-top: 9px; color: #486581; border-top: 1px solid #e4ebf1; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.mobile-job-checklist-editor { padding: 13px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 11px; }
.mobile-job-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.mobile-job-editor-heading h3, .mobile-job-editor-heading h4 { margin: 0; }
.mobile-job-editor-heading p { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
.mobile-job-template-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mobile-job-template-controls select { min-height: 38px; padding: 7px 8px; border: 1px solid #bcccdc; border-radius: 8px; }
.mobile-job-checklist-editor-rows, .mobile-job-material-rows { display: grid; gap: 9px; margin-top: 11px; }
.mobile-job-checklist-editor-row, .mobile-job-material-row { padding: 10px; background: white; border: 1px solid #d8e2ec; border-radius: 10px; }
.mobile-job-checklist-editor-row > input { margin-top: 0; }
.mobile-job-required { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 11px; }
.mobile-job-required input { width: auto; }
.mobile-job-list-card { border-left-color: var(--orange); }
.mobile-job-profile { display: grid; gap: 12px; }
.mobile-job-profile-heading { display: flex; align-items: flex-start; gap: 10px; padding: 15px; background: white; border: 1px solid var(--border); border-left: 6px solid var(--green); border-radius: 14px; }
.mobile-job-profile-heading > div { min-width: 0; }
.mobile-job-profile-heading h2 { margin: 0 0 5px; font-size: 23px; overflow-wrap: anywhere; }
.mobile-job-status-row { display: flex; }
.mobile-job-actions { display: grid; gap: 8px; }
.mobile-job-secondary-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mobile-job-finish { padding: 15px; background: #fff8f2; border: 1px solid #f1c49f; border-left: 6px solid var(--orange); border-radius: 13px; box-shadow: 0 6px 18px rgba(151, 73, 19, .09); }
.mobile-job-finish.ready { background: #eef9f4; border-color: #b7ddce; border-left-color: var(--green); }
.mobile-job-finish .mobile-customer-eyebrow { margin: 0 0 3px; }
.mobile-job-finish h3 { margin: 0 0 5px; font-size: 20px; }
.mobile-job-finish > p.muted { margin: 0; font-size: 12px; line-height: 1.45; }
.mobile-job-finish-list { display: grid; gap: 7px; margin: 12px 0; padding: 0; list-style: none; }
.mobile-job-finish-list li { padding: 8px 10px; background: white; border: 1px solid #e1e8ee; border-radius: 9px; font-size: 12px; font-weight: 850; }
.mobile-job-finish-list li.complete { color: #19714f; border-color: #b7ddce; }
.mobile-job-finish-list li.missing { color: #805023; }
.mobile-job-finish .mobile-job-report { margin-top: 12px; box-shadow: none; }
.mobile-job-optional-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.mobile-job-optional-details summary { color: var(--blue); cursor: pointer; font-weight: 800; }
.mobile-job-optional-details[open] summary { margin-bottom: 12px; }
.mobile-job-optional-details > label { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; font-weight: 900; }
.mobile-job-card, .mobile-job-report { padding: 15px; background: white; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06); }
.mobile-job-card h3, .mobile-job-report h3 { margin: 0 0 11px; }
.mobile-job-card h4 { margin: 15px 0 6px; }
.mobile-job-copy { margin: 0; color: #486581; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.mobile-job-check-row { padding: 10px 0; color: #486581; border-top: 1px solid #e4ebf1; font-size: 12px; font-weight: 800; }
.mobile-job-check-row.completed { color: var(--green); }
.mobile-job-material-total { display: block; margin-top: 12px; color: var(--navy); }
.mobile-job-history { margin: 8px 0 0; padding-top: 8px; color: #486581; border-top: 1px solid #e4ebf1; font-size: 11px; line-height: 1.45; }
.mobile-job-ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; color: #155b43; background: #e8f6f0; border: 1px solid #b7ddce; border-radius: 11px; font-size: 12px; font-weight: 900; line-height: 1.45; }
.mobile-job-ready button { flex: none; color: white; background: var(--navy); border-color: var(--navy); }
.mobile-job-report { background: #f7fbf8; border-color: #bcdacb; }
.mobile-job-report-checklist { display: grid; gap: 8px; margin: 13px 0; }
.mobile-job-report-checklist label { display: flex; align-items: center; gap: 8px; padding: 10px; background: white; border: 1px solid var(--border); border-radius: 9px; font-size: 12px; font-weight: 800; }
.mobile-job-report-checklist input { width: auto; }
.mobile-job-report > label { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; font-weight: 900; }
.mobile-job-report > button.primary { width: 100%; min-height: 49px; }
.mobile-job-report textarea { min-height: 115px; }
.mobile-job-closeout-notice { margin: 12px 0; padding: 10px 11px; border: 1px solid #e7b583; border-radius: 9px; color: #7a3d12; background: #fff8f2; font-size: 12px; font-weight: 850; line-height: 1.45; }
.mobile-job-closeout-notice.info { color: #174f78; background: #eef7fd; border-color: #b8d7ec; }
.mobile-job-closeout-notice.saving { color: #155b43; background: #e8f6f0; border-color: #b7ddce; }
.required-marker { color: #9b2f21; font-weight: 900; }
.field-error { display: block; margin-top: 5px; color: #9b2f21; font-size: 12px; font-weight: 800; line-height: 1.35; }
.field-has-error input, .field-has-error select, .field-has-error textarea,
[aria-invalid="true"] { border-color: #b44132 !important; box-shadow: 0 0 0 2px rgba(180, 65, 50, .14); }
.mobile-job-material-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 9px; align-items: end; }
.mobile-job-material-row label { display: grid; gap: 5px; color: #486581; font-size: 11px; font-weight: 900; }
.mobile-job-material-description-field { min-width: 0; }
.mobile-job-material-row input { margin-top: 0; }
.mobile-billing-handoff { position: relative; padding-right: 58px; border-left-color: #7659b7; }
.mobile-billing-handoff h3 { margin: 0 0 5px; }
.mobile-billing-handoff .ready-count { position: absolute; top: 14px; right: 14px; }
.mobile-invoice-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mobile-invoice-hub-button {
  min-width: 0; min-height: 76px; display: grid; align-content: center; gap: 5px; padding: 10px 7px;
  color: var(--navy); background: white; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 42, 67, .05); text-align: center;
}
.mobile-invoice-hub-button strong { font-size: 12px; line-height: 1.25; }
.mobile-invoice-hub-button span { color: #627d98; font-size: 18px; font-weight: 900; }
.mobile-invoice-hub-button.active { color: white; background: var(--navy); border-color: var(--navy); }
.mobile-invoice-hub-button.active span { color: #d9e2ec; }
.mobile-ready-invoice-card { border-left-color: var(--orange); }
.mobile-ready-invoice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-ready-invoice-heading h3 { margin: 3px 0 0; overflow-wrap: anywhere; }
.mobile-ready-invoice-heading small { color: #627d98; font-weight: 900; }
.mobile-invoice-composer { display: grid; gap: 12px; }
.mobile-invoice-composer-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px;
  background: white; border: 1px solid var(--border); border-left: 6px solid var(--orange);
  border-radius: 14px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06);
}
.mobile-invoice-composer-heading > div { min-width: 0; }
.mobile-invoice-composer-heading h2 { margin: 0 0 5px; font-size: 23px; }
.mobile-invoice-composer-heading p:last-child { margin: 0; line-height: 1.45; }
.mobile-invoice-draft-form {
  display: grid; gap: 12px; padding: 16px; background: white; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06);
}
.mobile-invoice-draft-form > label,
.mobile-invoice-draft-dates label,
.mobile-invoice-draft-detail-fields label {
  display: grid; gap: 5px; margin: 0; color: var(--navy); font-size: 12px; font-weight: 900;
}
.mobile-invoice-draft-form input,
.mobile-invoice-draft-form select,
.mobile-invoice-draft-form textarea { width: 100%; margin: 0; }
.mobile-invoice-draft-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-invoice-draft-lines .mobile-estimate-editor { background: #f8fbfd; }
.mobile-invoice-draft-details { padding: 12px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 11px; }
.mobile-invoice-draft-details summary { color: var(--navy); font-size: 12px; font-weight: 900; cursor: pointer; }
.mobile-invoice-draft-detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
.mobile-invoice-draft-detail-fields label:nth-last-child(-n + 2) { grid-column: 1 / -1; }
.mobile-invoice-draft-detail-fields textarea { min-height: 82px; }
.mobile-invoice-draft-safety {
  margin: 0; padding: 11px 12px; color: #155b43; background: #e9f7f1;
  border: 1px solid #b9dfcf; border-radius: 9px; font-size: 11px; font-weight: 800; line-height: 1.45;
}
.mobile-invoice-draft-submit { width: 100%; min-height: 50px; }
.mobile-invoice-list-card { border-left-color: var(--orange); }
.mobile-invoice-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mobile-invoice-list-heading h3 { margin: 3px 0 0; overflow-wrap: anywhere; }
.mobile-invoice-list-heading small { color: #627d98; font-weight: 900; }
.mobile-invoice-profile { display: grid; gap: 12px; }
.mobile-invoice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px; background: white; border: 1px solid var(--border); border-left: 6px solid var(--orange); border-radius: 14px; }
.mobile-invoice-heading > div { min-width: 0; }
.mobile-invoice-heading h2 { margin: 0 0 5px; font-size: 22px; overflow-wrap: anywhere; }
.mobile-invoice-heading p { margin-bottom: 0; }
.mobile-invoice-balance { padding: 17px; color: white; background: var(--navy); border-radius: 13px; }
.mobile-invoice-balance span, .mobile-invoice-balance strong, .mobile-invoice-balance small { display: block; }
.mobile-invoice-balance span { font-size: 11px; font-weight: 850; text-transform: uppercase; }
.mobile-invoice-balance strong { margin: 3px 0; font-size: 28px; }
.mobile-invoice-balance small { color: #d9e2ec; }
.mobile-invoice-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mobile-invoice-back-row { display: flex; justify-content: flex-start; }
.mobile-invoice-back-button { min-height: 44px; padding: 3px 2px; color: var(--blue); background: transparent; border: 0; }
.mobile-invoice-action-primary { color: white; background: var(--navy); border-color: var(--navy); }
.mobile-invoice-delivery-help {
  margin: -2px 0 0; padding: 10px 12px; color: #40566c; background: #eef5fa;
  border: 1px solid #c9dce9; border-radius: 9px; font-size: 12px; font-weight: 700;
  line-height: 1.45;
}
.mobile-invoice-sent-evidence { margin: 0; padding: 10px 12px; color: #155b43; background: #e9f7f1; border: 1px solid #b9dfcf; border-radius: 9px; font-size: 12px; font-weight: 850; }
.mobile-invoice-sent-form { display: grid; gap: 9px; padding: 13px; background: #f6f9fb; border: 1px solid var(--border); border-radius: 11px; }
.mobile-invoice-sent-form p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.mobile-invoice-sent-form label { display: grid; gap: 5px; color: var(--navy); font-size: 11px; font-weight: 900; }
.mobile-invoice-sent-form input { width: 100%; margin: 0; }
.mobile-invoice-sent-form .primary { width: 100%; }
.mobile-invoice-card { padding: 15px; background: white; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06); }
.mobile-invoice-card h3 { margin: 0 0 11px; }
.mobile-invoice-card h4 { margin: 15px 0 6px; }
.mobile-invoice-lines { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.mobile-invoice-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid #e4ebf1; }
.mobile-invoice-line:first-child { border-top: 0; }
.mobile-invoice-line div, .mobile-invoice-line strong, .mobile-invoice-line small { display: block; }
.mobile-invoice-line div { min-width: 0; }
.mobile-invoice-line small { margin-top: 3px; color: #627d98; font-size: 10px; }
.mobile-invoice-line > strong { white-space: nowrap; }
.mobile-invoice-totals { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 14px 0 0; }
.mobile-invoice-totals dt { color: #627d98; font-size: 11px; font-weight: 800; }
.mobile-invoice-totals dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 900; text-align: right; }
.mobile-invoice-totals dt:last-of-type, .mobile-invoice-totals dd:last-of-type { padding-top: 7px; border-top: 1px solid var(--border); font-size: 15px; }
.mobile-invoice-copy { margin: 0; color: #486581; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.mobile-invoice-payment { display: grid; gap: 9px; }
.mobile-invoice-payment label { display: grid; gap: 4px; color: var(--navy); font-size: 11px; font-weight: 900; }
.mobile-invoice-payment input, .mobile-invoice-payment select, .mobile-invoice-payment textarea { width: 100%; margin: 0; }
.mobile-invoice-payment textarea { min-height: 75px; }
.mobile-invoice-confirm { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: start; line-height: 1.4; }
.mobile-invoice-confirm input { width: auto; margin-top: 2px; }
.mobile-invoice-payment-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #e4ebf1; }
.mobile-invoice-payment-row strong, .mobile-invoice-payment-row small { display: block; }
.mobile-invoice-payment-row small { margin-top: 4px; color: #627d98; font-size: 10px; }
.mobile-invoice-history { margin: 8px 0 0; padding-top: 8px; color: #486581; border-top: 1px solid #e4ebf1; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .auth-entry-panel { margin-top: 22px; }
  .auth-entry-card { padding: 22px 20px; border-radius: 17px; }
  .auth-entry-card h1 { font-size: clamp(34px, 10.5vw, 43px); }
  .auth-welcome-card h1 { font-size: clamp(27px, 7.2vw, 36px); }
  .auth-welcome-brand-intro { min-height: 112px; margin-bottom: 7px; }
  .auth-welcome-brand-mark { width: 208px; height: 208px; }
  .auth-welcome-copy { font-size: 15px; }
  .plan-guide-card { padding: 18px 16px; }
  .plan-guide-card h1 { font-size: clamp(28px, 8.3vw, 36px); }
  .plan-guide-select { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .service-call-form { grid-template-columns: 1fr; gap: 0; }
  .service-call-form .wide { grid-column: auto; }
  .quick-customer-grid { grid-template-columns: 1fr; }
  .quick-customer-actions { display: grid; grid-template-columns: 1fr; }
  .quick-customer-actions button { width: 100%; }
  .service-call-form > .availability-button { width: 100%; margin-top: 4px; }
  .service-call-form > .service-call-actions { display: grid; grid-template-columns: 1fr; }
  .service-call-form > .service-call-actions button { width: 100%; }
  .mobile-availability-check { grid-template-columns: 1fr; }
  .mobile-availability-check .availability-button { width: 100%; }
  .mobile-availability-check .availability-result { grid-column: auto; }
  .workspace-heading { align-items: flex-start; }
  .status { margin-top: 8px; }
  .tabs button.access-tab { margin-left: 0; }
  main { padding-inline: 12px; }
  .workspace-heading { padding-inline: 4px; }
  .dashboard-metric { min-height: 123px; }
  .dashboard-metrics.owner-summary .dashboard-metric { min-height: 88px; }
  .dashboard-quick { min-height: 104px; }
  .month-heading { align-items: flex-start; }
  .month-controls { flex-wrap: wrap; justify-content: flex-end; }
  .month-controls .month-today { order: 3; width: 100%; }
  .calendar-grid { gap: 4px; padding-inline: 7px; }
  .calendar-day { min-height: 49px; padding: 6px; }
  .calendar-work-item { grid-template-columns: 68px minmax(0, 1fr); }
  .calendar-work-trailing { grid-column: 2; justify-items: start; }
  .mobile-customer-facts { grid-template-columns: 82px minmax(0, 1fr); }
  .customer-directory-heading { flex-direction: column; }
  .customer-directory-add { width: 100%; }
  .customer-directory-controls { grid-template-columns: 1fr; }
  .customer-directory-row { grid-template-columns: minmax(0, 1fr) auto; }
  .customer-directory-contact { grid-column: 1; }
  .customer-directory-row .badge, .customer-directory-row > b { grid-column: 2; }
  .mobile-estimate-line-values { grid-template-columns: 1fr 1fr; }
  .mobile-estimate-line-total { grid-column: 1 / -1; padding: 0; text-align: left; }
  .mobile-estimate-document-heading { flex-direction: column; }
  .mobile-estimate-approval-heading { flex-direction: column; }
  .mobile-estimate-approval-form .service-call-actions { display: grid; grid-template-columns: 1fr; }
  .mobile-estimate-approval-form .service-call-actions button { width: 100%; }
  .mobile-job-profile-heading { flex-direction: column; }
  .mobile-invoice-heading { flex-direction: column; }
  .mobile-invoice-composer-heading { flex-direction: column; }
  .mobile-invoice-draft-dates, .mobile-invoice-draft-detail-fields { grid-template-columns: 1fr; }
  .mobile-invoice-draft-detail-fields label:nth-last-child(-n + 2) { grid-column: auto; }
}
@media (max-width: 350px) {
  .plan-guide-select { grid-template-columns: 1fr; gap: 4px; }
  .plan-guide-select b { white-space: normal; }
}
@media (max-width: 520px) and (min-height: 760px) {
  .auth-welcome-card { min-height: calc(100svh - 170px); }
  .auth-benefit-band { margin-top: auto; }
}

.mobile-route-intro { border-left-color: var(--green); }
.mobile-route-intro h2 { margin-bottom: 6px; }
.mobile-route-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-left-color: var(--orange); }
.mobile-route-summary span { color: #627d98; font-size: 12px; font-weight: 800; }
.mobile-route-summary a { margin-left: auto; text-decoration: none; }
.mobile-route-list { display: grid; gap: 9px; margin-top: 5px; }
.mobile-route-list > h3 { margin: 12px 3px 0; font-size: 16px; }
.mobile-route-date { margin: 9px 4px -3px; color: #627d98; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.mobile-route-card {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px; color: var(--navy); border-left-color: var(--green); text-align: left;
}
.mobile-route-card > span:nth-child(2) strong, .mobile-route-card > span:nth-child(2) small { display: block; }
.mobile-route-card small { margin-top: 3px; color: #627d98; font-size: 10px; overflow-wrap: anywhere; }
.mobile-route-stop { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 999px; font-weight: 950; }
.mobile-route-stop.large { width: 38px; height: 38px; margin-bottom: 8px; font-size: 17px; }
.mobile-route-profile { display: grid; gap: 11px; }
.mobile-route-heading, .mobile-route-section { padding: 15px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 5px 18px rgba(15, 42, 67, .06); }
.mobile-route-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px; border-left: 6px solid var(--green); }
.mobile-route-heading > div { flex: 1 1 180px; min-width: 0; }
.mobile-route-heading h2 { margin-bottom: 4px; font-size: 22px; overflow-wrap: anywhere; }
.mobile-route-section h3 { margin-bottom: 9px; }
.mobile-route-report { background: #f4faf7; border-color: #b9dfcf; }
.mobile-route-report form > label { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; font-weight: 900; }
.mobile-route-report textarea { min-height: 105px; }
.mobile-route-checklist { display: grid; gap: 8px; margin-bottom: 13px; }
.mobile-route-checklist label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px; background: white; border: 1px solid var(--border); border-radius: 9px; font-size: 12px; }
.mobile-route-checklist input { width: auto; margin: 0; }
.mobile-recurring-composer { border-left-color: var(--green); }
.mobile-recurring-composer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-recurring-composer-heading > div { flex: 1; min-width: 0; }
.mobile-recurring-composer-heading h2 { margin-bottom: 5px; font-size: 21px; }
.mobile-recurring-plan-form { margin-top: 15px; }
.mobile-recurring-plan-form select[multiple] { min-height: 88px; }
.mobile-recurring-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.mobile-recurring-actions .primary { width: auto; }
.mobile-dispatch-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; border-left-color: var(--green); }
.mobile-dispatch-toolbar h2 { margin: 0 0 5px; }
.mobile-dispatch-toolbar label { display: grid; gap: 5px; color: var(--navy); font-size: 11px; font-weight: 900; }
.mobile-dispatch-toolbar input { width: auto; min-height: 44px; margin: 0; }
.mobile-dispatch-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 5px; padding: 16px; background: var(--navy); border-radius: 14px; color: white; }
.mobile-dispatch-plan-heading h2 { margin: 4px 0; color: white; font-size: 21px; }
.mobile-dispatch-plan-heading p { color: #c8d8e5; }
.mobile-dispatch-eyebrow { color: #9ed8bd; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.mobile-dispatch-stop { border-left-color: var(--green); }
.mobile-dispatch-stop-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.mobile-dispatch-stop-heading h3 { margin: 0 0 4px; }
.mobile-dispatch-stop-heading p { margin: 0; font-size: 11px; }
.mobile-dispatch-next { display: block; margin-bottom: 3px; color: #c75a12; font-size: 9px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.mobile-dispatch-customer { display: block; margin-top: 13px; }
.mobile-dispatch-address { margin: 4px 0 0; color: #627d98; font-size: 12px; line-height: 1.45; }
.mobile-dispatch-directions, .mobile-dispatch-desktop-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; color: #176344; background: var(--green-soft); border: 1px solid #b9dfcf; border-radius: 9px; font-size: 12px; font-weight: 900; text-decoration: none; }
.mobile-dispatch-empty { padding-block: 28px; border-left-color: #a9bac8; text-align: center; }
.mobile-dispatch-empty-marker { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 12px; color: white; background: #8da2b2; border-radius: 50%; font-size: 20px; font-weight: 950; }
.mobile-dispatch-empty h3 { margin-bottom: 6px; }
.mobile-dispatch-desktop-link { margin-top: 13px; }
.mobile-dispatch-published-at { margin: -3px 3px 6px; color: #627d98; font-size: 10px; font-weight: 800; text-align: right; }

@media (max-width: 520px) {
  .mobile-route-card { grid-template-columns: 36px minmax(0, 1fr); }
  .mobile-route-card .calendar-status, .mobile-route-card > b { grid-column: 2; }
  .mobile-route-summary a { width: 100%; margin-left: 0; }
  .dashboard-route-callout { grid-template-columns: 38px minmax(0, 1fr); }
  .dashboard-route-callout > b { grid-column: 2; }
  .mobile-recurring-actions { flex-direction: column-reverse; }
  .mobile-recurring-actions button { width: 100%; }
  .mobile-dispatch-toolbar { grid-template-columns: 1fr; }
  .mobile-dispatch-toolbar input { width: 100%; }
  .mobile-dispatch-stop-heading { grid-template-columns: 34px minmax(0, 1fr); }
  .mobile-dispatch-stop-heading .calendar-status { grid-column: 2; justify-self: start; }
}
.attachment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.attachment-heading h3,
.attachment-heading p { margin: 0; }
.attachment-heading p { margin-top: 4px; }
.attachment-count {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.attachment-upload {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.attachment-picker {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--ink);
  cursor: pointer;
}
.attachment-picker strong { font-size: 15px; }
.attachment-picker span { color: var(--muted); font-size: 12px; }
.attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.attachment-ready { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.attachment-ready.error { color: var(--red); }
.attachment-save,
.attachment-open,
.attachment-undo {
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: white;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.attachment-undo { color: var(--navy); background: white; }
.attachment-open {
  min-height: 36px;
  background: white;
  color: var(--navy);
  font-size: 12px;
}
.attachment-save:disabled,
.attachment-open:disabled { cursor: wait; opacity: .65; }
.attachment-list { display: grid; gap: 9px; margin-top: 12px; }
.attachment-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.attachment-preview,
.attachment-file-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.attachment-copy { display: grid; min-width: 0; gap: 3px; }
.attachment-copy strong { overflow-wrap: anywhere; font-size: 13px; }
.attachment-copy small { color: var(--muted); font-size: 11px; }
.mobile-help-intro { display: grid; gap: 8px; }
.mobile-help-intro h2, .mobile-help-intro p { margin: 0; }
.mobile-help-intro .primary-link { margin-top: 6px; text-align: center; }
.mobile-help-item { padding: 0 15px; }
.mobile-help-item summary { padding: 16px 0; color: var(--navy); cursor: pointer; font-weight: 850; }
.mobile-help-item p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.mobile-settings-intro { display: grid; gap: 7px; border-top: 5px solid var(--orange); }
.mobile-settings-intro h2, .mobile-settings-intro p { margin: 0; }
.mobile-settings-card { display: grid; gap: 7px; border-left-color: var(--orange); }
.mobile-settings-card h3, .mobile-settings-card p { margin: 0; }
.mobile-settings-label { color: #9b4f1e; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mobile-account-name-form { display: grid; gap: 8px; margin-top: 7px; padding-top: 11px; border-top: 1px solid var(--border); }
.mobile-account-name-field { display: grid; gap: 6px; color: #334e68; font-size: 13px; font-weight: 850; }
.mobile-account-name-form > .primary { justify-self: stretch; margin-top: 2px; }
.mobile-settings-language { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.mobile-settings-language button { color: #334e68; background: white; border-color: #bcccdc; }
.mobile-settings-language button.active { color: white; background: var(--navy); border-color: var(--navy); }
.mobile-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mobile-business-details { gap: 10px; border-left-color: var(--green); }
.mobile-business-details-form { margin-top: 3px; }
.mobile-business-details-field { min-width: 0; }
.mobile-business-details-form > .primary,
.mobile-business-details-form > .mobile-business-details-notice { grid-column: 1 / -1; }
.mobile-business-details-form > .primary { margin-top: 4px; }
.mobile-payment-settings-card { gap: 10px; border-left-width: 7px; }
.mobile-payment-safety { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mobile-payment-connection-status {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px;
  color: var(--navy); background: #f8fafc; border: 1px solid var(--border); border-radius: 11px;
}
.mobile-payment-connection-status strong,.mobile-payment-connection-status small { display: block; }
.mobile-payment-connection-status small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.mobile-payment-status-dot { width: 12px; height: 12px; flex: none; margin-top: 3px; background:#aab7c4; border-radius:50%; }
.mobile-payment-status-dot.connected { background:#238b62; box-shadow:0 0 0 4px #dff3eb; }
.mobile-payment-status-dot.warning { background:#c76a14; box-shadow:0 0 0 4px #fff0df; }
.mobile-payment-status-dot.checking { animation:pulse 1s ease-in-out infinite alternate; }
.mobile-payment-connection-notice { min-height:18px; color:var(--muted); font-size:12px; }
.mobile-job-alerts { gap: 10px; border-left-color: var(--blue); }
.mobile-job-alert-status {
  justify-self: start; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 900;
}
.mobile-job-alert-status.active { color: #155b43; background: #e8f6f0; }
.mobile-job-alert-status.inactive { color: #6b4d14; background: #fff4d6; }
.mobile-job-alerts-loading { color: var(--muted); font-size: 13px; }
.mobile-job-alert-options { display: grid; gap: 9px; padding-top: 4px; }
.mobile-job-alert-choice { align-self: auto; }
.mobile-job-alert-reminder { display: grid; gap: 6px; color: var(--navy); font-size: 13px; font-weight: 850; }
.mobile-job-alert-reminder select { width: 100%; }
.mobile-job-alert-options > button { justify-self: stretch; }
.mobile-settings-tools-form { display: grid; gap: 9px; margin-top: 8px; }
.mobile-settings-tool-choice { align-items: flex-start; }
.mobile-settings-tool-choice strong, .mobile-settings-tool-choice small { display: block; }
.mobile-settings-tool-choice small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.mobile-settings-tools-form > .primary { justify-self: stretch; margin-top: 3px; }
.mobile-work-types-settings { gap: 10px; border-left-color: var(--green); }
.mobile-work-types-form { display: grid; gap: 9px; margin-top: 3px; }
.mobile-work-types-field {
  display: grid; gap: 6px; color: #334e68; font-size: 13px; font-weight: 850;
}
.mobile-work-types-field textarea { width: 100%; min-height: 120px; }
.mobile-work-types-help { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.4; }
.mobile-work-types-form > .primary { width: 100%; margin-top: 3px; }
.mobile-saved-checklists { gap: 10px; border-left-color: var(--green); }
.mobile-saved-checklists > .primary { width: 100%; }
.mobile-checklist-template-list { display: grid; gap: 9px; }
.mobile-checklist-template-row {
  display: grid; gap: 9px; padding: 12px; background: #f8fafc;
  border: 1px solid var(--border); border-radius: 11px;
}
.mobile-checklist-template-row.archived { opacity: .67; }
.mobile-checklist-template-copy strong,
.mobile-checklist-template-copy small { display: block; }
.mobile-checklist-template-copy small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.mobile-checklist-template-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mobile-checklist-template-actions button { width: 100%; }
.mobile-checklist-editor {
  display: grid; gap: 10px; padding: 13px; background: #f4f9fc;
  border: 2px solid #bdd9ea; border-radius: 11px;
}
.mobile-checklist-editor h4,
.mobile-checklist-editor h5 { margin: 0; color: var(--navy); }
.mobile-checklist-form,
.mobile-checklist-template-steps { display: grid; gap: 9px; }
.mobile-checklist-field { display: grid; gap: 6px; color: #334e68; font-size: 13px; font-weight: 850; }
.mobile-checklist-choice { align-items: flex-start; line-height: 1.4; }
.mobile-checklist-template-step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px;
  padding: 10px; background: white; border: 1px solid var(--border); border-radius: 10px;
}
.mobile-checklist-template-step > input { grid-column: 1 / -1; }
.mobile-checklist-required { display: flex; align-items: center; gap: 7px; color: #334e68; font-size: 12px; font-weight: 850; }
.mobile-checklist-required input { width: 18px; min-height: 18px; accent-color: var(--orange); }
.mobile-checklist-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-checklist-editor-actions .primary { width: 100%; }

.customer-directory-dashboard {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
}

.mobile-schedule-confirmation {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #b8ddcf;
  border-left: 5px solid var(--green);
  border-radius: 13px;
  background: #f2faf6;
}
.mobile-schedule-confirmation h3,
.mobile-schedule-confirmation p { margin: 0; }
.mobile-schedule-confirmation.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 12px;
  padding: 13px 14px;
  background: #fff;
  border-left-width: 3px;
}
.mobile-schedule-confirmation.compact .dashboard-eyebrow { grid-column: 1 / -1; }
.mobile-schedule-confirmation.compact h3,
.mobile-schedule-confirmation.compact > .muted { grid-column: 1; }
.mobile-schedule-confirmation.compact > button {
  grid-column: 2;
  grid-row: 2 / span 2;
  white-space: nowrap;
}
.mobile-schedule-confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.mobile-schedule-confirmation-actions button { width: 100%; }
.mobile-schedule-confirmation-note {
  color: #526a7a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.mobile-confirmation-dialog .mobile-experience-mark { margin-bottom: 14px; }
.mobile-confirmation-dialog > .dashboard-eyebrow { margin-bottom: 7px; }
.delivery-recipient { color: var(--navy); font-weight: 750; overflow-wrap: anywhere; }
.delivery-destination { display: block; margin-top: 5px; color: inherit; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; text-transform: none; }
.delivery-contact-help { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.delivery-contact-help p { margin: 6px 0; }
.delivery-contact-help button { margin-top: 6px; }
.mobile-confirmation-dialog { max-height: calc(100dvh - 36px); overflow-y: auto; }
.mobile-confirmation-prompt-actions { display: grid; gap: 10px; }
.mobile-confirmation-prompt-actions button { width: 100%; min-height: 50px; }

@media (max-width: 420px) {
  .mobile-schedule-confirmation-actions { grid-template-columns: 1fr; }
  .mobile-schedule-confirmation.compact { grid-template-columns: 1fr; }
  .mobile-schedule-confirmation.compact > button {
    grid-column: 1;
    grid-row: auto;
    margin-top: 5px;
  }
}
.mobile-invoice-logo-settings { gap: 10px; border-left-color: var(--blue); }
.mobile-settings-empty { color: var(--muted); }
.mobile-invoice-logo-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  background: var(--paper);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.mobile-invoice-logo-preview img {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
}
.mobile-invoice-logo-preview.preview-unavailable img { display: none; }
.mobile-invoice-logo-preview.preview-unavailable { grid-template-columns: 1fr; }
.mobile-invoice-logo-form { display: grid; gap: 8px; }
.mobile-invoice-logo-form .primary-button { width: 100%; }
.mobile-document-defaults-settings { gap: 10px; border-left-color: var(--blue); }
.mobile-document-defaults-form { margin-top: 3px; }
.mobile-document-defaults-form textarea { min-height: 110px; }
.mobile-document-defaults-form > .settings-safety-note,
.mobile-document-defaults-form > .mobile-document-defaults-notice,
.mobile-document-defaults-form > .primary { grid-column: 1 / -1; }
.mobile-document-defaults-form > .settings-safety-note {
  color: var(--muted); font-size: 12px; line-height: 1.5;
}
.mobile-document-defaults-form > .primary { width: 100%; margin-top: 4px; }
.mobile-settings-signout { border-left-color: var(--brand-red); }
.mobile-settings-signout-button { justify-self: start; margin-top: 6px; color: #9b2c2c; background: #fff0f0; border-color: #f2b8b5; }
.mobile-quickbooks-export { display: grid; gap: 8px; border-left-color: #2f8f69; }
.mobile-quickbooks-export h3, .mobile-quickbooks-export p { margin: 0; }
.mobile-quickbooks-warning { border-left: 4px solid var(--orange); padding: 8px 10px; background: #fff8ed; color: #6f451e; font-size: 11px; line-height: 1.4; }
.mobile-quickbooks-form { display: grid; gap: 9px; margin-top: 6px; }
.mobile-quickbooks-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-quickbooks-range label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 850; }
.mobile-quickbooks-range input { min-height: 42px; width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 8px; background: white; color: var(--navy); font: inherit; }
.mobile-quickbooks-form .primary { width: 100%; }
.mobile-tab-choices { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; border: 0; padding: 0; }
.mobile-tab-choice {
  min-width: 0; min-height: 66px; display: grid; align-content: center; justify-items: start; gap: 6px;
  margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px;
  background: var(--paper); font-size: 13px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere;
}
.mobile-tab-choice input {
  width: 22px; height: 22px; flex: none; margin: 0; padding: 0; accent-color: var(--blue);
}
.supplier-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.supplier-card-heading h3, .supplier-card-heading p { margin: 0; }
.supplier-actions { align-items: stretch; flex-wrap: wrap; }
.action-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; background: white; color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
@media (max-width: 480px) {
  .attachment-row { grid-template-columns: 52px minmax(0, 1fr); }
  .attachment-preview,
  .attachment-file-icon { width: 50px; height: 50px; }
  .attachment-open { grid-column: 1 / -1; width: 100%; }
}
.mobile-share-contact-loading {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .82rem;
}
.mobile-share-contact { flex: 0 0 auto; color: var(--muted); font-size: .86rem; }
.mobile-share-contact[open] { flex: 1 1 100%; }
.mobile-share-contact > summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; color: var(--blue);
  background: #eef6fb; border: 1px solid #c9dce9; border-radius: 10px; cursor: pointer;
  font-size: 12px; font-weight: 900; list-style-position: inside;
}
.mobile-share-contact[open] > summary { color: var(--navy); background: #e5f0f7; }
.mobile-share-contact-content {
  display: grid; gap: 9px; margin-top: 8px; padding: 12px; background: #f6f9fb;
  border: 1px solid var(--border); border-radius: 10px;
}
.mobile-share-contact-name { color: var(--navy); font-size: .95rem; overflow-wrap: anywhere; }
.mobile-share-contact-option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
  padding-top: 9px; border-top: 1px solid #dfe8ef;
}
.mobile-share-contact-option > span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.mobile-share-contact-option > strong { color: var(--navy); font-size: .88rem; overflow-wrap: anywhere; }
.mobile-share-contact-option > button { grid-column: 2; grid-row: 1 / span 2; padding: 6px 10px; font-size: .78rem; }
.mobile-share-contact-warning { color: #8a4c14; font-weight: 800; }
.mobile-share-contact-empty { margin: 0; color: var(--muted); line-height: 1.4; }
.mobile-estimate-actions > .mobile-action-disclosure:not([open]),
.mobile-invoice-actions > .mobile-action-disclosure:not([open]) { flex: 0 0 auto; }
.mobile-estimate-actions > .mobile-action-disclosure[open],
.mobile-invoice-actions > .mobile-action-disclosure[open] { flex: 1 1 100%; }

.attachment-delete { grid-column: 1 / -1; min-height: 44px; padding: 10px 14px; border: 1px solid #b84b43; border-radius: 10px; background: white; color: #9b2820; font: inherit; font-weight: 700; cursor: pointer; }
.attachment-delete:disabled { opacity: .6; cursor: wait; }
.attachment-delete-status { grid-column: 1 / -1; margin: 0; color: #9b2820; }
.attachment-delete-status:empty { display: none; }

.attachment-action-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; margin-right: 8px; }
.attachment-camera-picker { position: relative; border: 2px solid var(--navy); background: #edf5fa; padding: 18px; cursor: pointer; }
.attachment-camera-picker > .attachment-action-icon { width: 44px; height: 44px; padding: 9px; box-sizing: border-box; border-radius: 12px; color: white; background: #ed7c27; margin-bottom: 8px; }
.attachment-camera-picker:focus-within { outline: 3px solid #ed7c27; outline-offset: 3px; }

.record-notes-controls { grid-column: 1 / -1; margin: 10px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.record-notes-controls summary { cursor: pointer; font-weight: 700; min-height: 32px; }

.attachment-replace { grid-column: 1 / -1; }

/* Shared explicit photo confirmation, above app dialogs on mobile and desktop. */
.attachment-review { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 24px; border: 1px solid #d6e0e8; border-top: 5px solid #ef7d28; border-radius: 20px; background: #fff; color: #102d43; }
.attachment-review::backdrop { background: rgba(10, 30, 46, .65); }
.attachment-review h2 { margin: 0 0 12px; font-size: 24px; }
.attachment-review-image { display: block; width: 100%; max-height: 34dvh; object-fit: contain; border-radius: 10px; background: #f2f6f8; }
.attachment-review [hidden] { display: none; }
.attachment-review-name { overflow-wrap: anywhere; font-size: 14px; }
.attachment-review-status { min-height: 24px; }
.attachment-review button { display: block; width: 100%; min-height: 48px; margin-top: 10px; }
.attachment-review .attachment-save { background: #102d43; color: white; font-weight: 700; }
