@charset "UTF-8";
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #fff;
  --soft: #eef1f4;
  --ink: #242e37;
  --muted: #64717c;
  --line: #dfe5e9;
  --orange: #dc441c;
  --orange-hover: #bd3210;
  --tint: #ffede6;
  --green: #247256;
  --green-bg: #e7f3ed;
  --blue: #355d96;
  --blue-bg: #eaf0fa;
  --shadow: 0 20px 55px #24313c0b;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
p {
  line-height: 1.7;
  margin: 0 0 18px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.9rem);
  font-weight: 750;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}
small,
.fine {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
small {
  display: block;
}
.fine {
  margin: 18px 0 0;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 20px;
}
.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 100px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  transition: background 0.15s;
}
.button:hover {
  text-decoration: none;
}
.primary {
  background: var(--orange);
  color: white;
}
.primary:hover {
  background: var(--orange-hover);
}
.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--soft);
}
.danger {
  background: transparent;
  border-color: var(--line);
  color: var(--orange);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9375rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 45px;
  align-items: center;
  padding-block: 60px 70px;
}
.hero h1 {
  margin-bottom: 25px;
}
.hero-description {
  font-size: 1.125rem;
  max-width: 490px;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero-art {
  position: relative;
}
.hero-art > img {
  border-radius: 24px;
  width: 100%;
}
.hero-ticket {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  position: absolute;
  bottom: 22px;
  left: -20px;
}
.hero-ticket span:not(.ticket-check) {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 5px;
}
.ticket-check {
  display: grid;
  place-items: center;
  background: var(--green-bg);
  color: var(--green);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.product-strip {
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  font-size: 0.9375rem;
}
.product-strip > span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-strip .icon {
  color: var(--orange);
}
.section-intro {
  max-width: 720px;
  margin-bottom: 50px;
}
.section-intro > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.workflow-grid article {
  border-top: 2px solid var(--line);
  padding-top: 24px;
}
.workflow-grid .icon {
  color: var(--orange);
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
}
.workflow-grid h3 {
  margin-bottom: 16px;
}
.workflow-grid p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.customer-feature {
  background: #222d37;
  color: #f5f6f8;
  padding-block: 90px;
}
.customer-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.customer-feature .eyebrow {
  color: #bdc8d0;
}
.customer-feature h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}
.customer-feature p:not(.eyebrow) {
  margin-block: 24px;
  color: #d0d8df;
}
.customer-mockup {
  border-radius: 20px;
  background: #fff;
  color: #242e37;
  padding: 32px;
  transform: rotate(-2deg);
  box-shadow: 0 20px 60px #0003;
}
.mockup-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 40px;
}
.customer-mockup .eyebrow {
  color: #66727b;
}
.customer-mockup h3 {
  font-size: 2.3rem;
}
.mock-status {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: #fff0e7;
  border-radius: 10px;
  margin-top: 25px;
}
.mock-status .icon {
  color: #d54a20;
}
.customer-mockup .mock-status p {
  color: #596772;
  margin: 8px 0 0;
  font-size: 0.875rem;
}
.customer-mockup > p {
  color: #64717c !important;
  font-size: 0.875rem;
}
.mock-progress {
  display: flex;
  gap: 7px;
  margin-top: 22px;
}
.mock-progress span {
  height: 6px;
  background: #e1e7ed;
  flex: 1;
  border-radius: 4px;
}
.mock-progress span:nth-child(-n + 2) {
  background: #e75a30;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.business-grid > a {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 30px;
}
.business-grid > a:hover {
  border-color: var(--orange);
  text-decoration: none;
}
.business-grid .icon {
  color: var(--orange);
  margin-bottom: 24px;
}
.business-grid h3 {
  margin-bottom: 16px;
}
.business-grid p {
  margin: 0;
  color: var(--muted);
}
.faq {
  padding-top: 30px;
  max-width: 900px;
}
.faq h2 {
  margin-bottom: 35px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq summary {
  font-size: 1.0625rem;
  font-weight: 650;
  cursor: pointer;
}
.faq details p {
  margin: 20px 0 0;
  color: var(--muted);
}
.end-cta {
  padding: 45px;
  background: var(--soft);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 26px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--surface);
  border: 2px solid var(--orange);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
/* Workshop workspace */
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 18px;
  overflow-y: auto;
}
.company {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.company strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.company img {
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar .company {
  padding: 0 8px;
}
.sidebar-label {
  font-size: 0.6875rem;
  margin: 40px 10px 18px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}
.sidebar nav a:hover {
  text-decoration: none;
  background: var(--soft);
}
.sidebar nav a[aria-current] {
  background: var(--tint);
  color: var(--orange);
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 14px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.workspace-body {
  min-width: 0;
}
.workspace-header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.workspace-header a {
  font-weight: 600;
  color: var(--ink);
}
.workspace-main {
  padding: 28px 36px 65px;
  max-width: 1600px;
  margin: auto;
}
.demo-notice {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 38px;
}
.demo-notice .icon {
  width: 19px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 0 0 32px;
}
.page-heading h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}
.page-heading p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  margin: 16px 0 0;
}
.page-heading .eyebrow {
  margin-bottom: 14px;
}
.page-heading > .actions {
  flex-shrink: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.metric {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.metric > strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.05em;
}
.metric > span {
  font-size: 0.875rem;
  color: var(--muted);
}
.metric > .icon {
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel > h2,
.section-title h2 {
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-title h2 {
  margin: 0;
}
.section-title > a {
  font-size: 0.875rem;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.order-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.order-row:hover {
  text-decoration: none;
}
.order-row:hover .order-vehicle strong {
  color: var(--orange);
}
.vehicle-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.order-vehicle {
  flex: 1;
  min-width: 100px;
}
.order-vehicle small {
  margin-top: 7px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.order-date {
  font-size: 0.875rem;
  min-width: 100px;
}
.order-date small {
  font-size: 0.75rem;
  margin-top: 7px;
}
.order-amount {
  min-width: 85px;
  text-align: right;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: 1px solid transparent;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  max-width: 100%;
  text-align: center;
}
.badge.received,
.badge.awaiting {
  color: #965522;
  background: #fff0dd;
}
.badge.diagnosis,
.badge.repair {
  color: var(--blue);
  background: var(--blue-bg);
}
.badge.approved,
.badge.ready,
.badge.delivered {
  color: var(--green);
  background: var(--green-bg);
}
.badge.declined,
.badge.cancelled {
  color: #a53634;
  background: #fcebea;
}
.attention h2 {
  font-size: 1.55rem;
  margin-bottom: 25px;
}
.attention-item {
  display: block;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin-top: 20px;
}
.attention-item > strong {
  display: block;
  margin: 13px 0 7px;
}
.attention-item p {
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-path {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.demo-path h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.demo-path p {
  max-width: 600px;
  margin-bottom: 0;
}
.demo-path .eyebrow {
  margin-bottom: 12px;
}
.demo-path > .button {
  flex-shrink: 0;
}
.empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
}
.empty > .icon,
.empty > span {
  display: block;
  margin: 0 auto 15px;
}
.empty p {
  margin: 0;
  max-width: 650px;
  margin-inline: auto;
}
.filters {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.filters label:first-child {
  flex: 1;
  min-width: 170px;
}
.filters label {
  margin: 0;
}
.customer-grid,
.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.customer-grid > .panel,
.parts-grid > .panel {
  margin: 0;
}
.customer-grid h2 {
  font-size: 1.35rem;
  margin-top: 12px;
}
.customer-grid p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9375rem;
}
.customer-job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--orange);
  font-size: 1.5rem;
  border-radius: 50%;
}
.part-card h2 {
  font-size: 1.35rem;
  margin: 20px 0;
}
.part-symbol {
  display: inline-flex;
  color: var(--muted);
}
.stock-number {
  display: block;
  font-size: 3rem;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}
.part-card > p {
  color: var(--muted);
  margin: 18px 0;
}
.back-link {
  display: inline-block;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 0.875rem;
}
.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.diagnosis-copy {
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  background: var(--soft);
}
.diagnosis-copy .eyebrow {
  margin-bottom: 10px;
}
.diagnosis-copy p:last-child {
  margin: 0;
  white-space: pre-wrap;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 0;
}
.info-grid dt {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.info-grid dd {
  font-size: 0.9375rem;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.draft-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.draft-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.draft-line small {
  margin-top: 8px;
}
.quote-lines {
  overflow: auto;
}
.quote-lines table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
.quote-lines caption {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.quote-lines th {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.quote-lines td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.quote-lines th:last-child,
.quote-lines td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 15px;
}
.quote-lines td:nth-child(2) {
  padding-inline: 20px;
}
.quote-lines small {
  font-size: 0.8125rem;
  margin-top: 5px;
}
.quote-totals {
  margin: 25px 0;
}
.quote-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 0.9375rem;
  margin-top: 16px;
}
.quote-totals dd {
  margin: 0;
  white-space: nowrap;
}
.quote-totals .total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 1.35rem;
  font-weight: 750;
}
.quote-history {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  font-size: 0.875rem;
}
.quote-history summary {
  cursor: pointer;
  font-weight: 650;
}
.quote-history p {
  margin: 15px 0 0;
}
.payment-panel h2 {
  font-size: 2.1rem;
}
.payment-panel .button {
  margin-top: 24px;
  width: 100%;
}
.warning {
  border-color: #d7a176;
  background: var(--tint);
}
.warning h3 {
  margin-bottom: 18px;
}
.warning p {
  font-size: 0.9375rem;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: flex;
  gap: 14px;
  position: relative;
  padding: 0 0 25px;
}
.timeline li > span {
  width: 8px;
  height: 8px;
  border: 2px solid var(--orange);
  background: var(--surface);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  bottom: 0;
  border-left: 1px solid var(--line);
}
.timeline strong {
  font-size: 0.875rem;
  line-height: 1.5;
  display: block;
}
.timeline small {
  font-size: 0.75rem;
  margin-top: 5px;
}
.notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.notice-row small {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.notices > .fine {
  margin-bottom: 22px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.photo-grid figure {
  margin: 0;
  min-width: 0;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 10px;
}
.photo-grid figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.form-card {
  max-width: 800px;
}
.company-preview {
  margin-bottom: 25px;
  object-fit: contain;
}
/* Forms, customer portal and dialogs */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.6;
  margin-bottom: 20px;
  min-width: 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  margin-top: 8px;
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23778088' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
input[type="file"] {
  padding: 10px;
  font-size: 0.875rem;
  overflow: hidden;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin: 3px 0;
  accent-color: var(--orange);
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  min-height: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.form-error {
  color: var(--orange);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 30px 100px #0004;
}
dialog::backdrop {
  background: #17222bb8;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.close-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
#modal-body {
  padding: 28px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  padding: 16px 24px;
  border-radius: 12px;
  max-width: calc(100% - 36px);
  width: max-content;
  font-size: 0.9375rem;
  line-height: 1.5;
  z-index: 10;
  box-shadow: var(--shadow);
}
#toast.is-error {
  background: var(--orange);
  color: #fff;
}
.customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.customer-main {
  padding-block: 28px 70px;
}
.customer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 45px 0 35px;
}
.customer-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 20px;
}
.customer-hero p:not(.eyebrow) {
  margin-bottom: 10px;
  color: var(--muted);
}
.progress-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 45px;
}
.progress-steps li {
  border-top: 3px solid var(--line);
  padding-top: 15px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.progress-steps li > span {
  display: block;
  height: 20px;
  color: var(--orange);
}
.progress-steps .reached {
  border-color: var(--orange);
  color: var(--ink);
}
.customer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}
.quote-decision {
  background: var(--green-bg);
  padding: 20px;
  border-radius: 9px;
  color: var(--green);
  margin-top: 25px;
}
.legal {
  max-width: 800px;
  padding-block: 70px;
}
.legal h1 {
  margin-bottom: 35px;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 35px 0 18px;
}
.missing {
  padding-block: 90px;
  max-width: 800px;
}
.missing img {
  margin-bottom: 30px;
}
.missing h1 {
  margin-bottom: 25px;
}
.email-preview h3 {
  font-size: 1.65rem;
  margin-bottom: 24px;
}
#print-area {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141c23;
    --surface: #1c2730;
    --soft: #25323c;
    --ink: #edf2f5;
    --muted: #aab9c4;
    --line: #354450;
    --orange: #ff8a60;
    --orange-hover: #ffa27f;
    --tint: #3c2c28;
    --green: #9adbb9;
    --green-bg: #243c32;
    --blue: #adcbf2;
    --blue-bg: #27384f;
    --shadow: 0 20px 55px #0002;
  }
  .primary {
    color: #261e1a;
  }
  .badge.received,
  .badge.awaiting {
    background: #423627;
    color: #ffd0a2;
  }
  .badge.declined,
  .badge.cancelled {
    background: #442d2d;
    color: #ffb4ae;
  }
  .hero-art > img {
    filter: brightness(0.9);
  }
  .hero-ticket {
    box-shadow: 0 20px 50px #0003;
  }
  .customer-feature .primary {
    color: #261e1a;
  }
  .customer-mockup .secondary {
    background: #fff;
    color: #242e37;
    border-color: #d9e0e5;
  }
  .customer-mockup .badge {
    background: #e7f3ed;
    color: #247256;
  }
  .customer-mockup .eyebrow {
    color: #66727b;
  }
  .customer-mockup .mock-status .icon {
    color: #d54a20;
  }
}
@media (max-width: 1250px) {
  .overview-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .workspace-main {
    padding-inline: 26px;
  }
  .order-row {
    flex-wrap: wrap;
  }
  .order-date {
    margin-left: 57px;
  }
  .order-amount {
    margin-left: auto;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 20px;
  }
  .metric > .icon {
    right: 14px;
    top: 18px;
  }
  .customer-grid,
  .parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar nav a {
    font-size: 0.875rem;
    padding-inline: 12px;
  }
  .overview-grid,
  .detail-grid,
  .customer-content {
    grid-template-columns: 1fr;
  }
  .overview-grid .attention {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .attention > .eyebrow,
  .attention > h2 {
    grid-column: 1/-1;
  }
  .attention-item {
    margin-top: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .hero h1 {
    font-size: 3.6rem;
  }
  .hero-ticket {
    left: 0;
    bottom: -20px;
    padding: 16px;
  }
  .customer-feature-grid {
    gap: 45px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .customer-content > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 85px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav > a:not(.button) {
    display: none;
  }
  .site-header .button {
    padding: 12px 16px;
    font-size: 0.875rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 35px 55px;
    gap: 40px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }
  .hero-art {
    max-width: 620px;
  }
  .hero-art img {
    border-radius: 16px;
  }
  .hero-ticket {
    bottom: 12px;
    left: 12px;
  }
  .product-strip {
    flex-direction: column;
    gap: 20px;
    font-size: 0.9375rem;
  }
  .section {
    padding-block: 65px;
  }
  .workflow-grid {
    gap: 25px;
  }
  .customer-feature {
    padding-block: 60px;
  }
  .customer-feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .customer-mockup {
    transform: none;
    padding: 26px;
  }
  .business-grid {
    grid-template-columns: 1fr;
  }
  .business-grid > a {
    padding: 26px;
  }
  .business-grid .icon {
    margin-bottom: 18px;
  }
  .end-cta {
    padding: 28px;
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 50px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 20px 0 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .sidebar .company {
    padding: 0 18px 18px;
  }
  .sidebar .company img {
    width: 36px;
    height: 36px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 18px 14px;
    scrollbar-width: thin;
  }
  .sidebar nav a {
    flex-shrink: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
    padding: 12px;
  }
  .sidebar nav a .icon {
    width: 20px;
    height: 20px;
  }
  .workspace-header {
    height: 62px;
    padding: 0 18px;
    font-size: 0.8125rem;
  }
  .workspace-main {
    padding: 20px 18px 45px;
  }
  .demo-notice {
    font-size: 0.875rem;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 14px;
  }
  .demo-notice .icon {
    margin-top: 2px;
  }
  .page-heading {
    gap: 22px;
    margin-bottom: 28px;
  }
  .page-heading h1 {
    font-size: 2.1rem;
  }
  .page-heading > .actions {
    width: 100%;
  }
  .page-heading > .actions > .button {
    width: 100%;
  }
  .panel {
    padding: 22px;
    border-radius: 14px;
  }
  .metrics {
    gap: 12px;
    margin-bottom: 25px;
  }
  .metric {
    padding: 18px;
  }
  .metric > .icon {
    display: none;
  }
  .metric > strong {
    font-size: 2rem;
  }
  .metric > span {
    font-size: 0.875rem;
  }
  .overview-grid .attention {
    display: block;
  }
  .demo-path {
    display: block;
  }
  .demo-path .button {
    margin-top: 24px;
    width: 100%;
  }
  .order-row {
    gap: 12px;
    padding: 22px 0;
  }
  .order-vehicle {
    flex-basis: calc(100% - 60px);
  }
  .order-row > .badge {
    margin-left: 54px;
  }
  .order-date {
    margin-left: 54px;
  }
  .order-date small {
    font-size: 0.8125rem;
  }
  .order-amount {
    font-size: 1rem;
  }
  .filters {
    align-items: stretch;
    gap: 18px;
  }
  .filters label,
  .filters label:first-child {
    width: 100%;
    flex: auto;
  }
  .filters > .button {
    flex: 1;
  }
  .customer-grid,
  .parts-grid {
    grid-template-columns: 1fr;
  }
  .customer-grid > .panel,
  .parts-grid > .panel {
    margin-bottom: 0;
  }
  .order-actions > .button {
    flex: 1 1 42%;
    font-size: 0.875rem;
  }
  .detail-grid {
    gap: 0;
  }
  .info-grid {
    gap: 20px;
  }
  .info-grid dt {
    font-size: 0.875rem;
  }
  .quote-lines table {
    font-size: 0.875rem;
  }
  .quote-lines td:nth-child(2) {
    padding-inline: 12px;
  }
  .quote-lines th {
    font-size: 0.8125rem;
  }
  .quote-totals .total {
    font-size: 1.2rem;
  }
  .notice-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .notice-row .button {
    width: 100%;
  }
  .customer-header {
    padding-block: 20px;
    gap: 16px;
    align-items: flex-start;
  }
  .customer-header > .company {
    flex: 1;
  }
  .customer-header > a:last-child {
    max-width: 110px;
    line-height: 1.6;
    font-size: 0.8125rem;
    text-align: right;
  }
  .customer-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
  }
  .customer-hero h1 {
    font-size: 2.8rem;
  }
  .progress-steps {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }
  .progress-steps li {
    min-width: 100px;
    font-size: 0.875rem;
  }
  .customer-content > aside {
    display: block;
  }
  .customer-main .panel {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 13px;
  }
  .modal-header {
    padding: 18px;
  }
  .modal-header h2 {
    font-size: 1.125rem;
  }
  #modal-body {
    padding: 22px 18px;
  }
  .close-button {
    width: 42px;
    height: 42px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .draft-line .button {
    padding: 12px;
  }
  .draft-line span {
    font-size: 0.9375rem;
  }
  .footer {
    padding: 23px 18px;
    gap: 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .footer-brand {
    font-size: 1rem;
    gap: 6px;
  }
  .footer-brand img {
    width: 21px;
    height: 21px;
  }
  .legal {
    padding-block: 40px;
  }
  .legal h1 {
    font-size: 2.7rem;
  }
}
@media (max-width: 360px) {
  .footer {
    padding-inline: 12px;
    gap: 9px;
    font-size: 0.75rem;
  }
  .footer-brand {
    font-size: 0.9375rem;
  }
  .footer-brand img {
    width: 19px;
    height: 19px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .hero .actions {
    flex-direction: column;
  }
  .hero-ticket {
    padding: 14px;
  }
  .hero-ticket span:not(.ticket-check) {
    font-size: 0.8125rem;
  }
  .hero-ticket strong {
    font-size: 0.9375rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .order-row > .badge {
    margin-left: 0;
  }
  .order-date {
    margin-left: 0;
  }
  .panel {
    padding: 20px;
  }
  .quote-lines td:nth-child(2) {
    padding-inline: 8px;
  }
  .quote-lines th:last-child,
  .quote-lines td:last-child {
    padding-left: 8px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .quote-totals .total {
    gap: 16px;
  }
  .customer-mockup {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  #app,
  dialog,
  #toast,
  .skip-link {
    display: none !important;
  }
  #print-area {
    display: block !important;
    color: #111;
    font-size: 11pt;
  }
  #print-area h1 {
    font-size: 24pt;
  }
  #print-area h2 {
    font-size: 16pt;
    margin: 22px 0;
  }
  #print-area h3 {
    font-size: 13pt;
    margin: 18px 0;
  }
  #print-area p {
    font-size: 10pt;
    color: #333;
  }
  #print-area .print-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #bbb;
    padding-bottom: 20px;
  }
  #print-area .print-header img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
  }
  #print-area .quote-totals {
    break-inside: avoid;
  }
  #print-area td,
  #print-area th {
    border-color: #ddd;
    color: #111;
  }
  #print-area caption,
  #print-area small {
    color: #444;
  }
  #print-area footer {
    margin-top: 30px;
    font-size: 10pt;
    border-top: 1px solid #ddd;
    padding-top: 15px;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}
.quote-decision.declined,
.quote-decision.withdrawn {
  background: var(--soft);
  color: var(--ink);
}
