:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #111;
  background: #f7f8f5;
  --green: #75b901;
  --green2: #8bd000;
  --black: #111;
  --soft: #eef6df;
  --line: #dfe5d7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8f5;
  color: #111;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #111;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
button:disabled {
  opacity: 0.55;
}
.secondary {
  background: #fff;
  color: #111;
  border: 1.5px solid #cfd7c7;
  box-shadow: none;
}
.link-btn {
  background: transparent;
  color: #111;
  box-shadow: none;
  padding: 7px;
}
.topbar {
  height: 72px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 4px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 4;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand-lockup div {
  display: grid;
  line-height: 1;
}
.brand-lockup strong {
  font-size: 17px;
}
.brand-lockup strong b {
  color: var(--green);
}
.brand-lockup span {
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-top: 5px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.role {
  background: #111;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
}
.wrap {
  max-width: 1440px;
  margin: auto;
  padding: 28px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero h1 {
  margin: 0;
  font-size: 30px;
}
.hero p {
  margin: 5px 0;
  color: #687063;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 22px 0 14px;
}
.tabs button {
  white-space: nowrap;
  background: #fff;
  color: #111;
  border: 1px solid #dfe4da;
  box-shadow: none;
}
.tabs button.active {
  background: #111;
  color: var(--green);
  border-color: #111;
}
.flow-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 12px 15px;
  border-radius: 13px;
  margin-bottom: 14px;
  font-size: 13px;
}
.flow-key i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.flow-key strong {
  color: var(--green);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
}
.stage {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid #d9dfd2;
  border-radius: 15px;
  padding: 12px;
  min-height: 260px;
}
.stage-approved,
.stage-scheduled {
  border-top-color: #a6cf5e;
}
.stage-production {
  border-top-color: var(--green);
}
.stage-walkthrough {
  border-top-color: #61a000;
}
.stage-invoice {
  border-top-color: #2e6f00;
}
.stage-paid {
  border-top-color: #111;
  background: #f3fae8;
}
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.stage-head h2 {
  font-size: 15px;
  margin: 0;
}
.stage-head span {
  background: var(--soft);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}
.job-card {
  background: #fff;
  border: 1px solid #dce3d5;
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.04);
}
.job-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.job-top em {
  font-style: normal;
  font-size: 11px;
  background: #111;
  color: var(--green);
  padding: 4px 6px;
  border-radius: 6px;
}
.job-card > span,
.job-card > small {
  display: block;
  color: #697166;
  font-size: 12px;
  margin-top: 5px;
}
.job-total {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #edf0e9;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.gauge {
  margin: 11px 0 7px;
}
.gauge-track {
  height: 10px;
  background: #e9eee4;
  border-radius: 999px;
  position: relative;
  overflow: visible;
}
.gauge-track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #cde99b, var(--green));
  border-radius: 999px;
}
.gauge-track b {
  position: absolute;
  top: -4px;
  width: 17px;
  height: 17px;
  border: 3px solid #111;
  background: var(--green);
  border-radius: 50%;
  transform: rotate(45deg);
}
.gauge-track b:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #111;
  left: 5px;
  top: 4px;
  transform: rotate(-55deg);
  transform-origin: left;
}
.gauge small {
  display: block;
  text-align: right;
  margin-top: 5px;
  color: #66705f;
  font-size: 10px;
}
.empty {
  color: #99a093;
  font-size: 13px;
}
.stack {
  display: grid;
  gap: 11px;
}
.row {
  display: flex;
  gap: 10px;
}
.row > * {
  flex: 1;
}
input,
textarea,
select {
  width: 100%;
  border: 1.5px solid #d8dfd2;
  background: #fff;
  border-radius: 11px;
  padding: 12px;
  color: #111;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(117, 185, 1, 0.13);
}
textarea {
  min-height: 95px;
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: #3f463d;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.section-card {
  border: 1px solid #dfe5d8;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.section-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.speed-badge {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111;
  color: var(--green);
  font-weight: 950;
  border: 4px solid var(--green);
}
.upload-zone {
  border: 2px dashed #b8c7aa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  background: #fbfdf8;
}
.upload-zone p {
  font-size: 12px;
  color: #687063;
}
.contact-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 12px 0;
}
.contact-strip a {
  white-space: nowrap;
  text-decoration: none;
  background: #111;
  color: var(--green);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.money-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #edf0e9;
}
.money-row.total {
  font-size: 18px;
  border-bottom: 0;
  color: #111;
}
.money-row.total b {
  color: #5d9800;
}
.file-list {
  display: grid;
  gap: 7px;
}
.file-list a {
  color: #111;
  font-weight: 700;
  text-decoration-color: var(--green);
}
.co-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0e9;
}
.co-row > div {
  display: grid;
  gap: 3px;
}
.co-row span,
.co-row small {
  font-size: 11px;
  color: #6a7266;
}
.status-approved {
  color: #4d8300 !important;
  font-weight: 900;
}
.status-pending {
  color: #9a6b00 !important;
  font-weight: 900;
}
.status-declined {
  color: #a22 !important;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
.readonly-stage {
  background: #111;
  color: var(--green);
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #dfe5d7;
  padding: 13px;
  border-radius: 11px;
}
.member div {
  display: grid;
}
.member span {
  font-size: 12px;
  color: #6e776a;
}
.pill {
  background: #111 !important;
  color: var(--green) !important;
  padding: 5px 7px;
  border-radius: 999px;
  font-weight: 900;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.summary-grid > div {
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 13px;
  display: grid;
  gap: 5px;
}
.summary-grid span {
  font-size: 11px;
}
.summary-grid strong {
  color: var(--green);
  font-size: 22px;
}
.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.fin-card {
  background: #fff;
  border: 1px solid #dfe5d7;
  border-radius: 12px;
  padding: 13px;
}
.fin-card div {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
}
.report {
  display: grid;
  gap: 9px;
}
.report > div {
  background: #fff;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 12px;
}
.report p {
  white-space: pre-wrap;
}
.report small {
  color: #777;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}
.modal {
  width: min(650px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #f8f9f6;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}
.sticky-actions {
  position: sticky;
  bottom: -20px;
  background: #f8f9f6;
  padding: 12px 0 4px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f0f7e5);
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dce4d5;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}
.login-logo {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: cover;
}
.muted {
  color: #70786c;
}
.notice {
  background: #eef8dc;
  border: 1px solid #cfe7a3;
  border-left: 5px solid var(--green);
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
}
.tiny {
  font-size: 11px;
  color: #747d70;
}
.full {
  width: 100%;
}
.topbar code,
.section-card code {
  background: #111;
  color: var(--green);
  padding: 2px 5px;
  border-radius: 5px;
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 13px;
  }
  .brand-lockup img {
    width: 38px;
    height: 38px;
  }
  .brand-lockup strong {
    font-size: 14px;
  }
  .brand-lockup span {
    font-size: 8px;
  }
  .wrap {
    padding: 18px 13px 60px;
  }
  .hero {
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 23px;
  }
  .hero button {
    padding: 10px;
  }
  .pipeline {
    grid-template-columns: repeat(7, 82vw);
  }
  .two-col,
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 16px;
  }
  .flow-key {
    align-items: flex-start;
    flex-direction: column;
  }
  .top-actions .role {
    display: none;
  }
}

.member-button {
  width: 100%;
  text-align: left;
  border: 1px solid #dfe5d7;
  background: #fff;
}
.member-button:hover {
  border-color: #75b901;
}
.pill-revoked {
  background: #f3e4e4 !important;
  color: #8a1f1f !important;
}
.danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.danger {
  background: #9b1c1c !important;
  border-color: #9b1c1c !important;
}
.buttonlike {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.action-grid .buttonlike {
  min-height: 44px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #4c5548;
}
.remember-row input {
  width: auto;
}
.faceid-note {
  margin: 0 0 2px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero-actions .customer-database-home {
  background: #111;
  color: var(--green);
  border: 1px solid #111;
}
.customer-database-search {
  position: sticky;
  top: 70px;
  z-index: 18;
  display: grid;
  gap: 7px;
  padding: 14px;
  margin: 4px 0 14px;
  border: 2px solid var(--green);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.09);
}
.customer-database-search label {
  color: #245719;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.customer-database-search input {
  min-height: 50px;
  font-size: 17px;
  font-weight: 750;
}
.customer-database-search small {
  color: #687063;
  font-weight: 750;
}
.customer-portal-actions,
.import-choice-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.import-choice-tools input { flex: 1 1 220px; }
.import-choice-list {
  display: grid;
  gap: 7px;
  max-height: 46vh;
  overflow: auto;
  margin-top: 10px;
}
.import-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d5ddcf;
  border-radius: 10px;
  background: #fff;
}
.import-choice input { width: 24px; height: 24px; flex: 0 0 24px; }
.import-choice span { display: grid; gap: 2px; }
.import-choice small { color: #687063; }
.import-choice.importing-choice { opacity: .65; background: #eff8df; }
.customer-no-results {
  display: grid;
  gap: 4px;
  text-align: center;
}
.signature-pad {
  width: 100%;
  height: 160px;
  background: #fff;
  border: 2px solid #cfd7c7;
  border-radius: 12px;
  touch-action: none;
}
.signature-pad.locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.quick-estimate-review {
  border-left: 5px solid var(--green);
}
.quick-estimate-review #quick-estimate-preview {
  margin-top: 14px;
}
.customer-loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid #cbd4c4;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: customer-spin 0.8s linear infinite;
}
@keyframes customer-spin { to { transform: rotate(360deg); } }
.quick-assignment-card,
.quick-job-finish-card {
  border-left: 5px solid var(--green);
}
.team-chat-alert {
  border-color: #75b901;
  background: #f4ffe5;
}
.team-chat-alert h2,
.chat-unread {
  color: #3f7000;
}
#send-customer-invoice {
  background: #75b901;
  color: #111;
  border-color: #5c9500;
  font-weight: 900;
}
.quick-assignment-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0 14px;
}
.quick-assignment-modes label { cursor: pointer; }
.quick-assignment-modes input { position: absolute; opacity: 0; }
.quick-assignment-modes span {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 13px;
  border: 2px solid #d8e0d1;
  border-radius: 13px;
  background: #fff;
}
.quick-assignment-modes small { color: #687063; line-height: 1.35; }
.quick-assignment-modes input:checked + span {
  border-color: #75b901;
  background: #effbdc;
  box-shadow: 0 0 0 2px rgba(117, 185, 1, .18);
}
.quick-customer-review-pending { border-left: 5px solid #f3b400; }
.quick-customer-review-pending button { width: 100%; min-height: 56px; }
@media (max-width: 560px) {
  .quick-assignment-modes { grid-template-columns: 1fr; }
  .quick-assignment-modes span { min-height: 75px; }
}
.chat-unread {
  border-color: #75b901 !important;
  box-shadow: 0 0 0 2px rgba(117, 185, 1, 0.2);
}
.quick-job-finish-card > button {
  width: 100%;
  min-height: 58px;
  font-size: 1rem;
}
.customer-payment-handoff {
  border: 3px solid var(--green);
}
.quick-payment-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-payment-choices label {
  display: block;
  cursor: pointer;
}
.quick-payment-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quick-payment-choices span {
  min-height: 105px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 2px solid #d8e0d1;
  border-radius: 14px;
  background: #fff;
  font-size: 1.35rem;
}
.quick-payment-choices b,
.quick-payment-choices small { font-size: 0.82rem; }
.quick-payment-choices input:checked + span {
  border-color: var(--green);
  background: #effbdc;
  box-shadow: 0 0 0 2px rgba(117, 185, 1, 0.18);
}
@media (max-width: 520px) {
  .quick-payment-choices { grid-template-columns: 1fr; }
  .quick-payment-choices span { min-height: 82px; }
}
.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0;
}
.approval-card {
  border-left: 5px solid var(--green);
}
.signature-preview {
  display: block;
  width: min(100%, 360px);
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border: 1px solid #e2e6de;
  border-radius: 8px;
}
.job-top {
  align-items: center;
}
.job-top em + em {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero {
    flex-wrap: wrap;
  }
  .hero-actions button {
    width: 100%;
  }
  .hero-actions .customer-database-home {
    grid-column: 1 / -1;
  }
}

.address-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: #fff;
  border: 1px solid #d8dfd2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  margin-top: 4px;
}
.address-results.open {
  display: block;
}
.address-results .address-result {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid #edf0e9;
  padding: 12px;
}
.address-results .address-result:hover {
  background: #f3fae8;
}
.address-empty {
  padding: 12px;
  color: #687063;
  font-size: 12px;
}
label:has(input[name="addressSearch"]) {
  position: relative;
}
.job-quick-links {
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
}
.job-quick-links > strong {
  display: block;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}
.job-quick-links > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.job-quick-links button,
.job-quick-links a {
  background: #fff !important;
  color: #111 !important;
  border: 0;
}
.production-notice-card {
  border: 1px solid #dce4d5;
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: #fbfdf8;
}
.notice-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.notice-head small {
  color: #6e776a;
}
.production-notice-card p {
  white-space: pre-wrap;
  font-size: 13px;
}
.ack-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e9eee4;
  font-size: 12px;
}
.ack-ok {
  color: #4d8300;
}
.ack-wait {
  color: #9a6b00;
}
.ack-notice {
  width: 100%;
  margin-top: 10px;
}
.recipient-list {
  display: grid;
  gap: 7px;
}
.recipient-check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e6dc;
  border-radius: 10px;
  padding: 9px;
}
.recipient-check input {
  width: auto;
}
.recipient-check span {
  display: grid;
}
.recipient-check small {
  color: #6e776a;
}
.job-chat {
  display: grid;
  gap: 9px;
  max-height: 42vh;
  overflow: auto;
}
.chat-msg {
  background: #fff;
  border: 1px solid #dfe5d7;
  border-radius: 10px;
  padding: 10px;
}
.chat-msg p {
  white-space: pre-wrap;
  margin: 7px 0;
}
.chat-msg small {
  color: #727a6d;
}
.strong-notice {
  grid-column: 1/-1;
  font-weight: 800;
}
@media (max-width: 760px) {
  .job-quick-links > div {
    grid-template-columns: 1fr;
  }
  .notice-head,
  .ack-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Green Pro accelerator progression */
.accelerator {
  --progress: 14%;
  --depth: 24%;
  padding: 10px 0 2px;
}
.accelerator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.accelerator-top span {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  color: #6e776a;
}
.accelerator-top strong {
  font-size: 11px;
  background: #111;
  color: var(--green);
  padding: 4px 7px;
  border-radius: 999px;
}
.accelerator .gauge-track {
  height: 14px;
  background: #e7ece1;
  border: 1px solid #d5ddcf;
  overflow: visible;
}
.accelerator .gauge-track i {
  width: var(--progress);
  background: linear-gradient(
    90deg,
    #e7f5cc 0%,
    #bfe77a 34%,
    #75b901 68%,
    hsl(92 100% var(--depth)) 100%
  );
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.accelerator .gauge-track b {
  left: clamp(0px, calc(var(--pedal) - 12px), calc(100% - 28px));
  transition:
    left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.45s ease,
    transform 0.35s ease;
  top: -8px;
  width: 28px;
  height: 28px;
  border: 3px solid #111;
  background: hsl(92 100% var(--depth));
  border-radius: 8px 8px 11px 11px;
  transform: rotate(-10deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.accelerator .gauge-track b:before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  height: 3px;
  border-radius: 3px;
  background: #111;
  box-shadow: 0 6px 0 #111;
}
.accelerator .gauge-track b:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 14px;
  left: 8px;
  top: 20px;
  background: #111;
  border-radius: 0 0 4px 4px;
  transform: none;
}
.accelerator .notch {
  position: absolute;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd6c8;
  transform: translateX(-50%);
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px #cfd6c8;
}
.accelerator .notch.on {
  background: var(--green);
  box-shadow: 0 0 0 1px #75b901;
}
.accelerator .notch.current {
  width: 9px;
  height: 9px;
  top: 15px;
  background: #111;
  box-shadow: 0 0 0 2px var(--green);
}
.accelerator-labels {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 18px;
  color: #7b8377;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.03em;
}
.accelerator small {
  text-align: left;
  margin-top: 5px;
}
.faceid-helper {
  display: grid;
  gap: 4px;
  text-align: left;
  background: #f2f8e8;
  border: 1px solid #d7e8b8;
  border-left: 5px solid var(--green);
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 11px;
}
.faceid-helper strong {
  font-size: 10px;
  letter-spacing: 0.06em;
}
.faceid-helper span {
  color: #586054;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .accelerator-labels {
    font-size: 6px;
  }
  .accelerator .gauge-track b {
    width: 25px;
    height: 25px;
  }
  .accelerator-top strong {
    font-size: 10px;
  }
}

/* Admin cleanup shortcuts */
.cleanup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #e6ebe1;
}
.cleanup-row:first-of-type {
  border-top: 0;
}
.cleanup-row > div {
  display: grid;
  gap: 3px;
}
.cleanup-row span {
  font-size: 11px;
  color: #6f786b;
}
.cleanup-row .danger {
  width: auto;
  min-width: 82px;
  padding: 9px 12px;
}

/* Final closeout + ADHD finish-line helpers */
.finish-line {
  margin: 10px 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f7fbef, #eef8dc);
  border: 1px solid #dbe8c8;
  border-left: 5px solid var(--green);
}
.finish-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.finish-title span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}
.finish-title strong {
  font-size: 11px;
  color: #456b00;
}
.finish-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.finish-steps span {
  padding: 7px 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dfe5d9;
  text-align: center;
  font-size: 9px;
  font-weight: 850;
  color: #81887e;
}
.finish-steps span.done {
  background: #eff8df;
  border-color: #b9d98c;
  color: #3f6500;
}
.finish-steps span.current {
  box-shadow: 0 0 0 2px rgba(117, 185, 1, 0.22);
}
.finish-line small {
  display: block;
  color: #5f675b;
  font-size: 10px;
  line-height: 1.35;
}
.paid-closeout-actions {
  display: grid;
  gap: 8px;
  grid-column: 1/-1;
}
.customer-conversation {
  display: grid;
  gap: 8px;
  max-height: 34vh;
  overflow: auto;
  padding: 4px;
}
.customer-msg {
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7f8f5;
  border: 1px solid #e2e6de;
}
.customer-msg.inbound {
  border-left: 5px solid #111;
}
.customer-msg.outbound {
  border-left: 5px solid var(--green);
}
.customer-msg p,
.history-update p {
  white-space: pre-wrap;
  margin: 5px 0;
}
.customer-msg small,
.history-update small {
  color: #727a6d;
}
.customer-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.customer-history-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.history-job {
  width: 100%;
  text-align: left;
  margin: 4px 0;
}
.history-update {
  padding: 9px 0;
  border-top: 1px solid #e5e9e1;
}
.history-update:first-of-type {
  border-top: 0;
}
@media (max-width: 760px) {
  .finish-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .customer-actions {
    width: 100%;
  }
  .customer-actions button {
    flex: 1;
  }
}

/* Money-ready estimate builder + true 7-notch accelerator */
.accelerator .gauge-track i {
  transition:
    width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.45s ease;
}
.accelerator .notch {
  transition:
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.accelerator .notch.current {
  transform: translateX(-50%) scale(1.12);
}
.accelerator-labels span {
  width: 14.285%;
  text-align: center;
  min-width: 0;
}
.accelerator-labels span:first-child {
  text-align: left;
}
.accelerator-labels span:last-child {
  text-align: right;
}
.accelerator-paid .gauge-track i {
  filter: saturate(1.25);
}
.paid-celebration {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 2px solid #d8b54b;
  border-radius: 14px;
  background: linear-gradient(110deg, #fffdf5, #f4f9e9);
}
.paid-celebration .finish-flags {
  font-size: 28px;
  animation: flag-sweep 0.7s ease-out both;
}
.paid-celebration .finish-star {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  color: #d8b54b;
  font-size: 27px;
  animation: star-pop 0.6s 0.2s ease-out both;
}
.paid-celebration strong {
  display: block;
  font-size: 14px;
}
.paid-celebration span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #60675b;
}
@keyframes flag-sweep {
  from {
    transform: translateX(-12px) rotate(-18deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes star-pop {
  0% {
    transform: scale(0.25) rotate(-35deg);
    opacity: 0;
  }
  75% {
    transform: scale(1.18) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.estimate-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.estimate-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 62px 84px 42px;
  gap: 6px;
  align-items: center;
}
.estimate-line input {
  padding: 9px 8px;
}
.estimate-lines {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}
.estimate-reference-builder {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #dce8cd;
  border-radius: 12px;
  background: #fbfff6;
}
#estimate-reference-links {
  display: grid;
  gap: 8px;
}
.estimate-reference-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(190px, 1.2fr) minmax(150px, 1fr) 120px 42px;
  gap: 6px;
  align-items: center;
}
.estimate-reference-row input,
.estimate-reference-row select {
  min-width: 0;
  padding: 9px 8px;
}
.saved-estimate-lines {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.saved-estimate-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0e9;
}
.saved-estimate-lines span {
  font-size: 12px;
}
.saved-scope {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.5;
  color: #525a4f;
}
.estimate-workspace {
  border-left: 5px solid var(--green);
}
.production-update-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.production-update-list > div {
  padding: 10px;
  border-radius: 10px;
  background: #f7f9f4;
  border-left: 4px solid var(--green);
}
.production-update-list strong {
  font-size: 10px;
  color: #64705d;
}
.production-update-list p {
  white-space: pre-wrap;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .estimate-methods {
    grid-template-columns: 1fr;
  }
  .estimate-line {
    grid-template-columns: 1fr 58px 58px 78px 40px;
  }
  .estimate-line .line-desc {
    grid-column: 1/-1;
  }
  .paid-celebration {
    grid-template-columns: auto auto 1fr;
  }
  .accelerator-labels {
    gap: 0;
  }
  .accelerator-labels span {
    font-size: 5.8px;
    letter-spacing: -0.01em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .accelerator .gauge-track i,
  .accelerator .gauge-track b,
  .accelerator .notch,
  .paid-celebration .finish-flags,
  .paid-celebration .finish-star {
    transition: none !important;
    animation: none !important;
  }
}

/* v8 phone-first responsive format — same dashboard/data, cleaner mobile flow */
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .topbar {
    height: 58px;
    padding: 0 10px;
    gap: 8px;
  }
  .brand-lockup {
    gap: 7px;
    min-width: 0;
  }
  .brand-lockup img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .brand-lockup strong {
    font-size: 13px;
  }
  .brand-lockup span {
    font-size: 7px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .link-btn {
    padding: 8px 6px;
    font-size: 11px;
  }
  .wrap {
    padding: 12px 10px 72px;
  }
  .hero {
    gap: 8px;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 20px;
    margin: 0;
  }
  .hero p {
    font-size: 10px;
    margin: 2px 0 0;
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .hero-actions button {
    min-height: 44px;
    padding: 9px 8px;
    font-size: 12px;
  }
  .tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 11px;
    font-size: 11px;
    white-space: nowrap;
  }
  .flow-key {
    display: none;
  }
  .pipeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
  }
  .stage {
    min-width: 0;
    padding: 9px;
    border-radius: 13px;
  }
  .stage-head {
    margin-bottom: 7px;
  }
  .stage-head h2 {
    font-size: 14px;
  }
  .stage-head span {
    font-size: 10px;
  }
  .job-card {
    padding: 11px;
    border-radius: 12px;
  }
  .job-card > span {
    font-size: 10px;
    line-height: 1.25;
  }
  .job-card > small {
    font-size: 10px;
  }
  .job-total {
    font-size: 11px;
  }
  .accelerator {
    padding: 7px 1px 1px;
  }
  .accelerator-top {
    margin-bottom: 6px;
  }
  .accelerator-top span {
    font-size: 7px;
  }
  .accelerator-top strong {
    font-size: 9px;
    padding: 3px 6px;
  }
  .accelerator .gauge-track {
    height: 11px;
  }
  .accelerator .gauge-track b {
    width: 22px;
    height: 22px;
    top: -7px;
    border-width: 2px;
  }
  .accelerator .gauge-track b:before {
    left: 4px;
    right: 4px;
    top: 4px;
    height: 2px;
    box-shadow: 0 5px 0 #111;
  }
  .accelerator .gauge-track b:after {
    left: 7px;
    top: 17px;
    height: 10px;
    width: 6px;
  }
  .accelerator .notch {
    top: 14px;
  }
  .accelerator .notch.current {
    top: 12px;
  }
  .accelerator-labels {
    margin-top: 15px;
  }
  .accelerator-labels span {
    font-size: 5.2px;
    line-height: 1.05;
  }
  .accelerator small {
    font-size: 8px;
    margin-top: 3px;
  }
  .overlay {
    padding: 0;
    align-items: end;
  }
  .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    padding: 14px 11px 18px;
  }
  .modal-head {
    gap: 8px;
    align-items: flex-start;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .modal-head p {
    font-size: 10px;
    line-height: 1.3;
  }
  .speed-badge {
    font-size: 10px;
    padding: 5px 7px;
  }
  .job-quick-links {
    margin: 9px 0;
    padding: 9px;
    border-radius: 12px;
  }
  .job-quick-links > strong {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .job-quick-links > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .job-quick-links button,
  .job-quick-links a {
    min-height: 46px;
    padding: 7px 4px !important;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    display: grid;
    place-items: center;
  }
  .stack {
    gap: 9px;
  }
  .section-card {
    padding: 11px;
    border-radius: 11px;
  }
  .section-card h3 {
    font-size: 13px;
  }
  .section-card p {
    margin-top: 4px;
  }
  label {
    font-size: 11px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
    padding: 11px;
  }
  textarea {
    min-height: 88px;
  }
  button,
  .buttonlike {
    min-height: 44px;
    font-size: 12px;
    padding: 10px 11px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .action-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .action-grid button,
  .action-grid a {
    font-size: 10px;
    min-height: 46px;
    padding: 8px;
  }
  .sticky-actions {
    bottom: -18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 9px 0 2px;
  }
  .sticky-actions button {
    width: 100%;
  }
  .section-title {
    align-items: flex-start;
  }
  .section-title button {
    width: auto;
    min-height: 40px;
    font-size: 10px;
  }
  .money-row {
    font-size: 12px;
  }
  .money-row.total {
    font-size: 16px;
  }
  .production-update-list > div {
    padding: 9px;
  }
  .production-update-list p {
    font-size: 11px;
  }
  .estimate-methods {
    grid-template-columns: 1fr;
  }
  .estimate-line {
    grid-template-columns: 1fr 56px 56px 72px 38px;
  }
  .estimate-line .line-desc {
    grid-column: 1/-1;
  }
  .paid-celebration {
    padding: 10px;
    gap: 7px;
  }
  .paid-celebration .finish-flags {
    font-size: 22px;
  }
  .paid-celebration .finish-star {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
  .paid-celebration strong {
    font-size: 11px;
  }
  .paid-celebration span {
    font-size: 9px;
  }
  .finish-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .finish-steps span {
    font-size: 7px;
    padding: 6px 2px;
  }
  .customer-conversation,
  .job-chat {
    max-height: 30vh;
  }
  .customer-msg,
  .chat-msg {
    padding: 9px;
  }
  .customer-msg p,
  .chat-msg p {
    font-size: 12px;
  }
  .danger-zone {
    margin-top: 18px;
  }
}
@media (max-width: 380px) {
  .job-quick-links > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }
  .accelerator-labels span {
    font-size: 4.8px;
  }
}

/* v9 voice-first estimate + customer approval */
.estimate-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.estimate-choice-btn {
  min-height: 58px;
  font-size: 14px;
}
.estimate-choice-btn.listening {
  outline: 3px solid rgba(117, 185, 1, 0.25);
}
.estimate-dictation {
  min-height: 120px;
}
.strong-tiny {
  font-weight: 700;
  color: #506044;
}
.estimate-import {
  margin-top: 12px;
  border-top: 1px solid #e3e8df;
  padding-top: 10px;
}
.estimate-import summary {
  font-weight: 850;
  font-size: 11px;
  cursor: pointer;
}
.quick-repair-head {
  align-items: center;
  margin-bottom: 10px;
}
.load-pdf-button {
  width: auto;
  min-height: 42px;
  padding: 9px 13px;
  white-space: nowrap;
  background: var(--green);
  border: 2px solid #315d00;
  border-radius: 12px;
  color: #071b00;
  font-weight: 900;
  box-shadow: 0 2px 0 #315d00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,.08);
}
.load-pdf-button:focus-visible {
  outline: 3px solid rgba(117,185,1,.28);
  outline-offset: 2px;
}
.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.quick-pdf-tools {
  border: 1px solid #cfe2ae;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  background: #f8fdef;
}
.quick-pdf-tools[hidden] { display: none; }
.quick-pdf-tools span { display: block; margin-bottom: 7px; }
.estimate-preview-wrap {
  border: 2px solid #cfe2ae;
}
.customer-estimate-sheet {
  background: #fff;
  color: #111;
}
.estimate-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
}
.estimate-sheet-head strong {
  font-size: 20px;
}
.estimate-sheet-head strong b {
  color: var(--green);
}
.estimate-sheet-head span,
.estimate-sheet-head small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.estimate-sheet-head > div:last-child {
  text-align: right;
  font-weight: 900;
}
.customer-estimate-sheet h2 {
  font-size: 20px;
  margin: 18px 0 2px;
}
.customer-estimate-sheet > p {
  margin: 0 0 12px;
  color: #60685c;
}
.estimate-project {
  font-weight: 850;
  margin-bottom: 12px;
}
.estimate-sheet-lines {
  display: grid;
}
.estimate-sheet-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e9ede5;
}
.estimate-sheet-lines span {
  font-size: 12px;
}
.estimate-sheet-scope {
  margin: 14px 0;
  padding: 12px;
  background: #f7f9f4;
  border-radius: 10px;
}
.estimate-sheet-scope p {
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 12px;
}
.estimate-sheet-references {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dce8cd;
  border-radius: 10px;
  background: #fbfff6;
}
.estimate-sheet-references > div {
  display: grid;
  gap: 8px;
}
.estimate-sheet-references a {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-radius: 9px;
  background: #111;
  color: #fff;
  text-decoration: none;
}
.estimate-sheet-references a span {
  font-size: 11px;
  line-height: 1.4;
  color: #e4e8df;
}
.estimate-sheet-references a small {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}
.estimate-sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 3px solid #111;
}
.estimate-sheet-total b {
  font-size: 22px;
  color: #4f8400;
}
.estimate-approval-state {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 9px;
  background: #fff9df;
  border-left: 4px solid #d8b54b;
}
.estimate-approval-state.approved {
  background: #eff8df;
  border-left-color: var(--green);
}
.estimate-approval-state small {
  font-size: 9px;
  color: #697064;
}
@media (max-width: 600px) {
  .estimate-reference-row {
    grid-template-columns: 1fr 42px;
  }
  .estimate-reference-row input,
  .estimate-reference-row select {
    grid-column: 1;
  }
  .estimate-reference-row .remove-reference {
    grid-column: 2;
    grid-row: 1;
  }
  .estimate-choice {
    grid-template-columns: 1fr 1fr;
  }
  .estimate-choice-btn {
    font-size: 11px;
    padding: 9px 5px;
  }
  .customer-estimate-sheet {
    padding: 2px;
  }
  .estimate-sheet-head strong {
    font-size: 17px;
  }
}
.scope-bullets {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.45;
  font-size: 12px;
}
#estimate-notice {
  display: none !important;
}
.project-photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.project-photo-gallery a {
  color: #111;
  text-decoration: none;
  background: #f7f9f4;
  border: 1px solid #dfe5d9;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
}
.project-photo-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.project-photo-gallery span {
  padding: 8px 9px 2px;
  font-size: 9px;
  font-weight: 900;
}
.project-photo-gallery small {
  padding: 0 9px 9px;
  color: #667064;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .project-photo-gallery {
    grid-template-columns: 1fr;
  }
}
.chat-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0;
}
.chat-attachments a {
  color: #111;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dfe5d9;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
}
.chat-attachments img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.chat-attachments span {
  padding: 6px;
  font-size: 9px;
  overflow-wrap: anywhere;
}

/* v10 progress rewards: quick positive feedback + true red/white finish */
.paid-celebration.paid-reached {
  grid-template-columns: auto 1fr;
  border-color: #b8d98a;
  background: #f4fae9;
}
.finished-celebration {
  border-color: #c71f2d;
  background: linear-gradient(110deg, #fff, #fff6f6);
}
.finished-celebration strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}
.rw-checker {
  width: 54px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 5px;
  border: 2px solid #111;
  transform: skewY(-6deg);
  box-shadow: 2px 2px 0 #111;
}
.rw-checker i {
  display: block;
  background: #fff;
}
.rw-checker i:nth-child(odd) {
  background: #d62828;
}
.rw-checker i:nth-child(8n + 5),
.rw-checker i:nth-child(8n + 7),
.rw-checker i:nth-child(8n + 2),
.rw-checker i:nth-child(8n + 4) {
  background: #fff;
}
.rw-checker i:nth-child(8n + 6),
.rw-checker i:nth-child(8n + 8),
.rw-checker i:nth-child(8n + 1),
.rw-checker i:nth-child(8n + 3) {
  background: #d62828;
}
@media (max-width: 600px) {
  .rw-checker {
    width: 46px;
    height: 36px;
  }
  .finished-celebration strong {
    font-size: 17px;
  }
}

/* v13 real-money financials: Square cash + Green Pro job costs */
.finance-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.finance-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.finance-strip span {
  padding: 8px 10px;
  border: 1px solid #e1e6dc;
  border-radius: 999px;
  background: #f8faf6;
  font-size: 10px;
}
.finance-strip b {
  margin-left: 4px;
}
.fin-card.finance-job {
  width: 100%;
  text-align: left;
  background: #fff;
  color: inherit;
  border: 1px solid #dfe5da;
  box-shadow: none;
}
.fin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.fin-card.finance-job > div:not(.fin-card-head) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}
.fin-card.finance-job small {
  display: block;
  margin-top: 7px;
  color: #697163;
  font-size: 9px;
}
.fin-profit {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 2px solid #111;
}
.fin-profit b {
  color: #4f8400;
}
.fin-profit.negative b {
  color: #b3222d;
}
.finance-result {
  padding: 14px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: grid;
  gap: 3px;
}
.finance-result span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.finance-result strong {
  font-size: 26px;
}
.finance-result small {
  color: #cfd5ca;
}
@media (max-width: 760px) {
  .finance-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-summary > div {
    padding: 10px;
  }
  .finance-strip {
    gap: 5px;
  }
  .finance-strip span {
    font-size: 9px;
    padding: 6px 8px;
  }
  .fin-grid {
    grid-template-columns: 1fr;
  }
  .fin-card.finance-job {
    min-height: 0;
    padding: 11px;
  }
  .finance-result strong {
    font-size: 22px;
  }
}

/* v14 Banking & Accounts */
.permission-card {
  border-left: 4px solid var(--green, #75b901);
}
.permission-card .check {
  margin: 0.55rem 0;
}
.bank-account-list {
  display: grid;
  gap: 12px;
}
.bank-account-card {
  border: 1px solid #dfe5da;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.bank-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bank-account-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.bank-account-head small {
  color: #667064;
  line-height: 1.25;
}
.pill-connected {
  background: #eaf7dc;
  color: #315d00;
}
.bank-account-card button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  width: 100%;
}
@media (max-width: 640px) {
  .bank-account-head {
    align-items: flex-start;
  }
  .bank-account-head .pill {
    font-size: 10px;
  }
  .bank-account-card {
    padding: 12px;
  }
  .bank-account-card .two-col {
    grid-template-columns: 1fr;
  }
}

/* v15 — quiet production check-in watchdog */
.attention-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #eadfba;
  border-radius: 16px;
  background: #fffdf5;
}
.attention-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 900;
}
.attention-job {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  margin-top: 9px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid #eadfba;
  background: #fff;
  color: #111;
}
.attention-job div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.attention-job span {
  font-size: 0.84rem;
  color: #67604d;
}
.attention-job b {
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.attention-job.attention-overdue {
  border-color: #d8b2b2;
  background: #fff8f8;
}
.production-watch-banner {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eadfba;
  background: #fffdf5;
}
.production-watch-banner strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.production-watch-banner span {
  font-size: 0.9rem;
}
.production-watch-banner.watch-overdue {
  border-color: #d8b2b2;
  background: #fff8f8;
}
@media (max-width: 640px) {
  .attention-panel {
    padding: 13px;
  }
  .attention-job {
    align-items: flex-start;
  }
  .attention-job b {
    font-size: 0.68rem;
  }
}

/* v16 — repeat-customer fast path */
.existing-customer-picker {
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #dfe5da;
  border-radius: 14px;
  background: #f8faf6;
}
.existing-customer-picker > input {
  width: 100%;
  margin-bottom: 8px;
}
.existing-customer-results {
  display: grid;
  gap: 7px;
  max-height: 330px;
  overflow: auto;
}
.existing-customer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 11px 12px;
  border: 1px solid #dfe5da;
  border-radius: 11px;
  background: #fff;
  color: #111;
}
.existing-customer-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.existing-customer-row span,
.existing-customer-row small {
  display: block;
  color: #697163;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.existing-customer-row b {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #4f8400;
}
@media (max-width: 640px) {
  #existing-customer-btn {
    width: 100%;
    margin-top: 8px;
  }
  .existing-customer-picker {
    padding: 8px;
  }
  .existing-customer-results {
    max-height: 280px;
  }
}

.field-help {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #6f7869;
  font-weight: 600;
}
input[readonly] {
  background: #f4f7ef;
  color: #111;
  font-weight: 800;
  border-style: dashed;
}
/* v18 — customer fast start */
.customer-start-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}
.customer-start-actions button {
  min-height: 50px;
}
.build-tag {
  border: 1px solid #dfe5da;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f7f9f4;
}
@media (max-width: 640px) {
  .customer-start-actions {
    grid-template-columns: 1fr;
  }
  .customer-start-actions button {
    width: 100%;
  }
}

/* V21 — clean Green Pro Production workspace */
.production-workspace {
  border-top: 5px solid var(--green, #75b901);
}
.production-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.production-command-grid button {
  min-height: 52px;
  font-weight: 800;
}
.production-workspace details {
  border-top: 1px solid #e6e6e6;
  padding: 12px 0;
}
.production-workspace summary {
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.production-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.production-summary-grid span {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 0.78rem;
}
.production-summary-grid b {
  display: block;
  font-size: 1.25rem;
  color: #111;
}
.assignment-workspace {
  border-top: 5px solid #111;
  background: #fbfcf8;
}
.assignment-row {
  border: 1px solid #dfe5d7;
  border-left: 5px solid #9a9a9a;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  background: #fff;
}
.assignment-row.assignment-accepted {
  border-left-color: var(--green, #75b901);
}
.assignment-row.assignment-declined {
  border-left-color: #a91f1f;
  background: #fffafa;
}
.assignment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.assignment-head div {
  display: grid;
  gap: 3px;
}
.assignment-head small {
  color: #6b7168;
}
.assignment-pill {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  white-space: nowrap;
}
.assignment-accepted .assignment-pill {
  background: var(--green, #75b901);
  color: #111;
}
.assignment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.assignment-facts span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: #f1f3ee;
  font-size: 0.86rem;
}
.assignment-facts b {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #596054;
}
.assignment-facts small {
  display: block;
}
.assignment-note {
  padding: 10px;
  border-radius: 10px;
  background: #f7f7f7;
}
.assignment-response {
  border: 2px solid var(--green, #75b901);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: #f8fdec;
}
.assignment-response textarea {
  margin-top: 10px;
}
.assignment-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.assignment-admin-actions .cancel-assignment {
  grid-column: 1/-1;
}
.directory-group {
  display: grid;
  gap: 8px;
  margin: 8px 0 18px;
}
.directory-group > h3 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 10px 2px;
  border-bottom: 2px solid #111;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}
.directory-group > h3 span {
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 2px 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  background: #ecf8d8;
  border: 1px solid #b7dc72;
  border-radius: 999px;
  color: #234800;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

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

.member-profile-facts span {
  background: #f3f5f0;
  border-radius: 10px;
  padding: 11px;
  overflow-wrap: anywhere;
}

.member-profile-facts b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .member-profile-facts {
    grid-template-columns: 1fr;
  }
}
.project-timeline {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #dce4d5;
  border-radius: 14px;
  background: #fff;
}
.project-timeline > div:first-child {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.project-timeline > div:first-child strong {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.project-timeline > div:first-child span {
  font-size: 0.78rem;
  color: #727a6e;
}
.timeline-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
}
.timeline-stage {
  min-width: 102px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid #d8dfd2;
  border-radius: 11px;
  background: #f5f6f3;
  color: #111;
  text-align: left;
}
.timeline-stage b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfe4da;
  font-size: 0.75rem;
}
.timeline-stage span {
  font-size: 0.73rem;
  font-weight: 850;
}
.timeline-stage.complete b,
.timeline-stage.current b {
  background: #75b901;
}
.timeline-stage.current {
  border: 2px solid #75b901;
  background: #f3fbe8;
}
.admin-stage-banner {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 5px solid #75b901;
  border-radius: 10px;
  background: #101510;
  color: #fff;
}
.admin-stage-banner b {
  color: #8ee32d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.admin-stage-banner span {
  font-size: 0.76rem;
}
.stage-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.stage-side {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce4d5;
  border-radius: 13px;
  background: #fff;
}
.stage-side h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  text-transform: uppercase;
}
.customer-side h3 {
  color: #4d8e18;
}
.internal-side {
  background: #f4f6f1;
}
.stage-side-fact {
  line-height: 1.42;
  font-size: 0.82rem;
}
.stage-side-list {
  display: grid;
  gap: 8px;
}
.stage-side-list > div {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #e1e6dd;
}
.stage-side-list b,
.stage-side-list span,
.stage-side-list small {
  overflow-wrap: anywhere;
}
.stage-side-list b {
  font-size: 0.76rem;
}
.stage-side-list span {
  font-size: 0.79rem;
  white-space: pre-wrap;
}
.stage-side-list small {
  color: #6c7468;
  font-size: 0.68rem;
}
@media (max-width: 700px) {
  .stage-side-grid {
    grid-template-columns: 1fr;
  }
}
.stage-record-events {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.stage-record-events > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-left: 4px solid #75b901;
  background: #f5f7f2;
  border-radius: 8px;
}
.stage-record-events span {
  font-size: 0.8rem;
  color: #697065;
}
.revision-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e6ebe1;
}
.revision-row > div {
  display: grid;
  gap: 3px;
}
.revision-row span,
.revision-row small {
  color: #687064;
  font-size: 0.78rem;
}
.schedule-workspace {
  border-top: 5px solid #75b901;
  background: #fbfdf8;
}
.schedule-confirmed {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 2px solid #75b901;
  border-radius: 13px;
  background: #f2fae7;
}
.schedule-confirmed strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.schedule-confirmed span {
  font-size: 1.12rem;
  font-weight: 900;
}
.schedule-confirmed small {
  color: #697065;
}
.schedule-option {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 11px;
  border: 1px solid #dce4d5;
  border-radius: 10px;
}
.schedule-option.selected {
  border: 2px solid #75b901;
  background: #f2fae7;
}
.schedule-option span {
  font-size: 0.8rem;
  color: #687064;
}
.schedule-board {
  display: grid;
  gap: 9px;
  max-height: 55vh;
  overflow: auto;
  margin: 12px 0;
}
.schedule-booking {
  display: grid;
  gap: 4px;
  text-align: left;
  background: #fff;
  color: #111;
  border: 1px solid #dce4d5;
  border-left: 5px solid #75b901;
  border-radius: 11px;
  padding: 12px;
}
.schedule-booking span,
.schedule-booking small {
  display: block;
  color: #687064;
}
.schedule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.schedule-actions button:last-child:nth-child(3) {
  grid-column: 1/-1;
}
.schedule-appointments {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce4d5;
  border-radius: 10px;
  background: #fff;
}
.schedule-appointments > b {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.schedule-appointments > span {
  font-size: 0.8rem;
  color: #535b50;
}
@media (max-width: 600px) {
  .schedule-actions {
    grid-template-columns: 1fr;
  }
  .schedule-actions button:last-child:nth-child(3) {
    grid-column: auto;
  }
}
.attention-pill,
.clear-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.attention-pill {
  background: #111;
  color: #fff;
  border: 2px solid #75b901;
}
.clear-pill {
  background: #75b901;
  color: #fff;
}
@media (max-width: 650px) {
  .production-command-grid {
    grid-template-columns: 1fr;
  }
  .production-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assignment-facts {
    grid-template-columns: 1fr;
  }
  .assignment-head {
    display: grid;
  }
  .assignment-pill {
    justify-self: start;
  }
  .assignment-admin-actions {
    grid-template-columns: 1fr;
  }
  .assignment-admin-actions .cancel-assignment {
    grid-column: auto;
  }
}
.walkthrough-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.walkthrough-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f4f4f4;
  border-radius: 14px;
  padding: 13px;
}
.walkthrough-row small {
  display: block;
  color: #666;
  margin-top: 5px;
}
.walkthrough-row > div:last-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.walkthrough-status {
  padding: 7px 9px;
  min-height: auto;
  font-size: 0.72rem;
}
.walkthrough-status.active {
  border-color: #75b901;
  box-shadow: 0 0 0 2px rgba(117, 185, 1, 0.18);
}
@media (max-width: 650px) {
  .walkthrough-row {
    grid-template-columns: 1fr;
  }
  .walkthrough-row > div:last-child {
    justify-content: flex-start;
  }
}

/* v22 customer intake return visibility */
.intake-ready-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  border-left: 7px solid var(--green);
  padding: 14px 16px;
  border-radius: 14px;
  margin: 12px 0;
}
.intake-ready-summary > div {
  display: grid;
  gap: 2px;
}
.intake-ready-summary strong {
  color: var(--green);
  font-size: 14px;
}
.intake-ready-summary span {
  font-size: 11px;
}
.intake-ready-summary > b {
  background: var(--green);
  color: #111;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}
.customer-intake-ready {
  border: 2px solid var(--green) !important;
  box-shadow: 0 0 0 3px rgba(117, 185, 1, 0.1);
}
.intake-status-line {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.intake-new-badge,
.intake-ready-badge,
.intake-inline-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  font-style: normal;
}
.intake-new-badge,
.intake-inline-badge {
  background: #111;
  color: #fff;
}
.intake-ready-badge {
  background: var(--green);
  color: #111;
}
.best-contact {
  color: #354426 !important;
  margin-top: 3px;
}
.customer-estimate-ready {
  background: var(--green) !important;
  color: #111 !important;
}
.intake-ready-row {
  border: 2px solid var(--green) !important;
  background: #f7fce9 !important;
}
.intake-ready-banner {
  display: grid;
  gap: 3px;
  background: #111;
  color: #fff;
  border-left: 6px solid var(--green);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 8px 0 12px;
}
.intake-ready-banner strong {
  color: var(--green);
  font-size: 12px;
}
.intake-ready-banner span {
  font-size: 10px;
}
.customer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.customer-info-grid > div {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: #f7f9f4;
  border-radius: 9px;
}
.customer-info-grid span {
  font-size: 9px;
  color: #70786c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.customer-info-grid strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .intake-ready-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-info-grid {
    grid-template-columns: 1fr;
  }
  .intake-ready-summary > b {
    white-space: normal;
  }
}

/* Green Pro seven-stage car-dashboard accelerator; original colors retained */
.speed-accelerator {
  margin: 16px 0 22px;
  background: #fff;
  border: 1px solid #dce5d7;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(29, 59, 20, 0.08);
  overflow: hidden;
}
.speed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.speed-head span {
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #111;
}
.speed-head strong {
  font-size: 0.84rem;
  color: #4d8e18;
  white-space: nowrap;
}
.speed-arc {
  position: relative;
  height: 225px;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}
.speed-seg {
  position: absolute;
  top: 4px;
  height: 152px;
  border: 3px solid #fff;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 5px 14px rgba(36, 78, 22, 0.08);
  text-align: center;
  padding-top: 11px;
  transform-origin: 50% 100%;
  overflow: hidden;
}
.speed-seg[type="button"] {
  appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.speed-seg[type="button"]:focus-visible {
  outline: 4px solid #111;
  outline-offset: -5px;
  z-index: 10;
}
.speed-seg[type="button"]:active {
  filter: brightness(0.94);
}
.seg-1 {
  left: 0;
  width: 16%;
  top: 18px;
  transform: rotate(-4deg);
  background: #eff8df;
}
.seg-2 {
  left: 14%;
  width: 16%;
  top: 10px;
  transform: rotate(-2.5deg);
  background: #e2f4bd;
}
.seg-3 {
  left: 28%;
  width: 16%;
  top: 4px;
  transform: rotate(-1deg);
  background: #e2f4bd;
}
.seg-4 {
  left: 42%;
  width: 16%;
  top: 1px;
  background: #cfee98;
}
.seg-5 {
  left: 56%;
  width: 16%;
  top: 4px;
  transform: rotate(1deg);
  background: #aee84f;
}
.seg-6 {
  left: 70%;
  width: 16%;
  top: 10px;
  transform: rotate(2.5deg);
  background: #83df26;
}
.seg-7 {
  left: 84%;
  width: 16%;
  top: 18px;
  transform: rotate(4deg);
  background: #f3fbe8;
}
.speed-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}
.speed-label {
  font-size: 0.73rem;
  font-weight: 950;
  color: #111;
  margin-top: 8px;
}
.speed-icon {
  font-size: 2rem;
  line-height: 1;
  margin-top: 9px;
  color: #1d6f12;
  font-weight: 900;
}
.speed-seg.current {
  outline: 4px solid rgba(95, 190, 34, 0.16);
  z-index: 2;
}
.money-field {
  font-weight: 950;
  color: #42a817;
  line-height: 1.2;
  font-size: 1.12rem;
  margin-top: 5px;
}
.bw-flag {
  position: relative;
  width: 50px;
  height: 36px;
  margin: 4px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  transform: skewY(-6deg);
  box-shadow: 0 0 0 2px #111;
}
.bw-flag:before {
  content: "";
  position: absolute;
  width: 4px;
  height: 53px;
  background: #111;
  left: -8px;
  top: -2px;
  transform: skewY(6deg);
}
.bw-flag i:nth-child(odd) {
  background: #111;
}
.bw-flag i:nth-child(even) {
  background: #fff;
}
.bw-flag i:nth-child(5),
.bw-flag i:nth-child(7),
.bw-flag i:nth-child(10),
.bw-flag i:nth-child(12) {
  background: #fff;
}
.bw-flag i:nth-child(6),
.bw-flag i:nth-child(8),
.bw-flag i:nth-child(9),
.bw-flag i:nth-child(11) {
  background: #111;
}
.speed-needle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  overflow: visible;
}
.speed-needle-svg .speed-needle-body {
  stroke: #760000;
  stroke-width: 1.35;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.42));
}
.speed-hub {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111;
  border: 9px solid #333;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);
  z-index: 6;
}
.speed-arc:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 30px;
  height: 90px;
  border-top: 3px solid #d9dfd5;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.speed-status {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 9px;
  margin-top: -6px;
}
.speed-status strong {
  font-size: 1.25rem;
  color: #277d13;
}
.speed-status span {
  color: #666;
}
.speed-review-hint {
  margin-top: 7px;
  text-align: center;
  color: #4f7041;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.055em;
}
@media (max-width: 700px) {
  .speed-accelerator {
    padding: 10px 7px;
    border-radius: 18px;
  }
  .speed-head {
    display: block;
    text-align: center;
  }
  .speed-head span {
    display: block;
    font-size: 0.82rem;
  }
  .speed-head strong {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
  }
  .speed-arc {
    height: 165px;
  }
  .speed-seg {
    height: 108px;
    padding-top: 7px;
    border-width: 2px;
  }
  .speed-num {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .speed-label {
    font-size: 0.48rem;
    margin-top: 5px;
    letter-spacing: -0.02em;
  }
  .speed-icon {
    font-size: 1.25rem;
    margin-top: 5px;
  }
  .money-field {
    font-size: 0.72rem;
  }
  .bw-flag {
    width: 34px;
    height: 24px;
    margin-top: 2px;
  }
  .bw-flag:before {
    height: 37px;
    width: 3px;
    left: -6px;
  }
  .speed-needle {
    bottom: 25px;
  }
  .speed-needle b {
    width: 128px;
    height: 9px;
  }
  .speed-hub {
    bottom: 13px;
    width: 34px;
    height: 34px;
    border-width: 7px;
  }
  .speed-arc:after {
    bottom: 22px;
    height: 62px;
  }
  .speed-status {
    margin-top: -2px;
  }
  .speed-status strong {
    font-size: 1rem;
  }
  .speed-status span {
    font-size: 0.82rem;
  }
}

.customer-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.customer-link-actions .full {
  grid-column: 1/-1;
}
@media (max-width: 560px) {
  .customer-link-actions {
    grid-template-columns: 1fr;
  }
}
.job-tools > strong{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:14px 16px;border-radius:12px;background:#111;color:#fff;cursor:pointer;font-size:15px}.job-tools > strong::after{content:"OPEN ＋";color:#75b901;font-size:12px}.job-tools > strong[aria-expanded="true"]::after{content:"CLOSE −"}.job-tools > div[hidden]{display:none!important}.cost-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.cost-summary>div{background:#f1f6e8;border:1px solid #d9e7c4;border-radius:10px;padding:12px;display:grid;gap:4px}.cost-summary span{font-size:12px;color:#526047}.cost-summary b{font-size:18px}.catalog-list{display:grid;gap:9px}.catalog-item{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left}.catalog-item span{display:grid;gap:3px}.catalog-item small{font-weight:500;color:#66705f}@media(max-width:600px){.cost-summary{grid-template-columns:1fr}.job-tools>div{grid-template-columns:1fr 1fr}}
.import-cost-row{border:2px solid #dce8cd;border-radius:12px;padding:13px;margin-top:12px;background:#fbfff6}.import-cost-row>.check{margin-bottom:10px}.import-cost-row input{background:#fff}
.assignment-row.assignment-compact {
  padding: 12px 14px;
}
.assignment-row.assignment-compact .view-assignment {
  width: 100%;
  margin-top: 10px;
}

/* v110 customer management + dual-contact communication */
.contact-preference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.contact-preference-grid .check{margin:0}.customer-archive-toggle{margin-top:12px;max-width:420px}.customer-history-head{gap:10px;flex-wrap:wrap}.customer-history-head .buttonlike,.customer-history-head button{flex:0 1 auto}.danger-zone .danger{margin-top:10px}@media(max-width:700px){.contact-preference-grid{grid-template-columns:1fr}.customer-history-head>*{width:100%}}

/* v113 — team availability + live customer-job presence */
.live-production-badge,.live-member-status{background:#b42318;color:#fff;border-radius:10px;padding:9px 12px;font-weight:900;letter-spacing:.03em;margin:8px 0;box-shadow:0 0 0 2px rgba(180,35,24,.08)}
.live-member-status.big{font-size:1.05rem;padding:12px 14px}
.availability-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;margin:7px 0;font-size:.78rem;font-weight:900;letter-spacing:.04em;background:#eef3ea;color:#21411e;border:1px solid #cbd8c6}
.availability-out-today,.availability-vacation,.availability-do-not-schedule{background:#fff1f0;color:#8f1d16;border-color:#efb7b2}
.availability-limited{background:#fff8e8;color:#775400;border-color:#ecd38a}
.production-checkin{background:#b42318!important;color:#fff!important;border-color:#b42318!important;font-weight:900!important}
.production-checkout{background:#1f7a1f!important;color:#fff!important;border-color:#1f7a1f!important;font-weight:900!important}
.team-availability-card{border-left:5px solid #4d8b00}
/* v118 — Live Production command center */
.live-production-home{background:#b42318!important;color:#fff!important;border-color:#b42318!important;font-weight:900!important}
.live-production-page{display:grid;gap:16px}
.live-production-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;background:#111;color:#fff;border-radius:18px;padding:20px}
.live-production-header h2{margin:0;color:#fff;font-size:28px}.live-production-header p{margin:6px 0 0;color:#d7d7d7;max-width:680px}.live-production-header button{white-space:nowrap}
.live-production-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.live-production-summary span{background:#fff;border:1px solid #dfe4d9;border-radius:14px;padding:14px;text-align:center;font-weight:800}.live-production-summary b{display:block;font-size:26px;color:#111}
.live-production-list{display:grid;gap:12px}.live-production-card{background:#fff;border:1px solid #dfe4d9;border-left:8px solid #75B901;border-radius:16px;padding:16px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.live-production-card.live-status-with-customer{border-left-color:#b42318}.live-production-card.live-status-en-route{border-left-color:#d69000}.live-production-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.live-production-card h3{font-size:22px;margin:8px 0 2px}.live-production-card p{margin:0;color:#687067}.live-state-pill{display:inline-block;border-radius:999px;padding:7px 10px;background:#eef8df;color:#2c5400;font-size:12px;font-weight:900;letter-spacing:.05em}.live-status-with-customer .live-state-pill{background:#b42318;color:#fff}.live-status-en-route .live-state-pill{background:#fff2cc;color:#754d00}
.live-order-controls{display:flex;gap:6px}.live-order-controls button{min-width:44px;padding:8px}.live-crew,.live-address,.live-latest{margin-top:10px;padding-top:10px;border-top:1px solid #edf0e8}.live-latest small{display:block;color:#7c8378;margin-top:4px}.live-production-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.live-production-actions>*{flex:1;min-width:145px;text-align:center}
.production-enroute{background:#d69000!important;color:#fff!important;border-color:#d69000!important;font-weight:900!important}.production-route-active{background:#fff2cc;color:#754d00;border:1px solid #e4bb54;border-radius:10px;padding:12px;font-weight:900;text-align:center}
@media(max-width:720px){.live-production-header{display:grid}.live-production-header button{width:100%}.live-production-summary{grid-template-columns:1fr}.live-production-card-head{align-items:center}.live-production-card h3{font-size:19px}}

/* v119 — dedicated estimate editing + discount / credit lines */
.estimate-line { grid-template-columns: minmax(120px,.75fr) minmax(220px,2fr) minmax(70px,.55fr) minmax(80px,.6fr) minmax(100px,.75fr) auto; }
.estimate-line .line-kind { font-weight: 800; }
.contract-action-buttons { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.contract-action-buttons button { min-width: 150px; }
@media (max-width: 680px){
  .estimate-line { grid-template-columns: 1fr 1fr; }
  .estimate-line .line-kind, .estimate-line .line-desc { grid-column: 1 / -1; }
  .estimate-line .remove-line { width:100%; }
  .contract-action-buttons { width:100%; }
  .contract-action-buttons button { flex:1 1 150px; }
}

/* V123 — fast live customer production updates */
.production-live-customer {
  width: 100%;
  min-height: 78px;
  margin: 14px 0 8px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
}
.production-live-customer span { font-size: 1.05rem; }
.production-live-customer small { font-size: .75rem; font-weight: 700; opacity: .86; }
.production-customer-feed { display: grid; gap: 10px; margin-top: 12px; }
.production-customer-feed-item { border: 1px solid #e2e7dc; border-radius: 14px; padding: 12px; background: #fafcf7; }
.production-customer-feed-item > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.production-customer-feed-item small { color: #667064; font-size: .72rem; }
.production-customer-feed-item p { white-space: pre-wrap; margin: 8px 0; line-height: 1.4; }
.production-mini-photos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.production-mini-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; }
.production-internal-list { display: grid; gap: 8px; margin-top: 10px; }
.production-internal-list > div { background: #f5f5f5; border-radius: 12px; padding: 10px; }
.production-internal-list p { margin: 5px 0 0; white-space: pre-wrap; }
@media(max-width:640px){.production-mini-photos{grid-template-columns:repeat(3,minmax(0,1fr));}.production-live-customer{min-height:84px;}}

/* V127 — estimate reminders + high-visibility live update */
.production-live-customer {
  background: #ffd92f !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  box-shadow: 0 5px 0 rgba(0,0,0,.16);
}
.production-live-customer:hover,
.production-live-customer:focus {
  background: #ffe35c !important;
  color: #111 !important;
}
.estimate-reminder-btn {
  width: 100%;
  margin-top: 10px;
  background: #ffd92f !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  font-weight: 900;
}
.reminder-help {
  margin-top: 5px;
  color: #5f675b;
}

/* V137 — hail lead capture + locked claims workflow */
.hail-claim-home,.hail-text-button,.hail-submit{background:#c52626!important;color:#fff!important;border:2px solid #781414!important;font-weight:950!important;box-shadow:0 5px 0 rgba(80,0,0,.2)}
.hail-alert{display:inline-flex;background:#111;color:#fff;border-radius:999px;padding:7px 11px;font-size:.72rem;font-weight:950;letter-spacing:.08em}
.hail-public{background:linear-gradient(150deg,#121212,#2c2c2c)}
.hail-public .auth-card{border-top:8px solid #c52626}
.hail-leak-check,.claim-leak{border-color:#c52626!important;background:#fff1f1!important;color:#6f1111!important}
.claims-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:16px 0}.claims-head h2{margin:8px 0 0}
.claims-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.claim-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;min-height:170px;background:#fff;color:#111;border:2px solid #dfe5da}.claim-card span{font-size:.7rem;font-weight:950;color:#c52626;letter-spacing:.06em}.claim-card small{color:#667064}.claim-card b{margin-top:auto}.claim-card.claim-urgent{border:3px solid #c52626;background:#fff5f5}
.claim-current{border:3px solid #111}.claim-current>small{font-weight:950;color:#c52626}.claim-current h3{font-size:1.35rem}.claim-current button{width:100%}
.claim-history{display:grid;gap:8px}.claim-row{display:grid;grid-template-columns:30px 1fr;gap:8px;padding:10px;border-radius:10px}.claim-row small{display:block}.claim-row.complete{background:#eef8e8}.claim-row.current{background:#fff3d5;border:1px solid #e7bd52}.claim-row.locked{opacity:.52;background:#f3f3f3}
@media(max-width:640px){.claims-head{align-items:flex-start;flex-direction:column}.claims-head button{width:100%}.hail-claim-home{width:100%}}
