:root {
  font-family: Inter, Arial, sans-serif;
  color: #1f303b;
  background: #f4f5f4;
  font-synthesis: none;
  --nav: #142f34;
  --green: #176551;
  --muted: #6b767b;
  --line: #dce2df;
  --orange: #b65e2b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #cbd5d0;
  border-radius: 7px;
  background: white;
  color: #24483d;
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: #e9f0ec;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd7d1;
  border-radius: 6px;
  padding: 10px;
  color: inherit;
  background: white;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 5px;
}
label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
label.check input {
  width: auto;
  margin-top: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: #f3f7ef;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -1px;
  padding: 4px 13px;
}
.brand small {
  display: block;
  color: #94b8ae;
  font:
    11px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 8px;
}
.nav {
  display: grid;
  gap: 6px;
  margin-top: 48px;
}
.nav button {
  background: transparent;
  border: 0;
  color: #b6cdc5;
  text-align: left;
  font-size: 14px;
  padding: 13px 15px;
  font-weight: 400;
}
.nav button.active {
  background: #294d4b;
  color: #fff;
  font-weight: 700;
}
.nav span {
  display: inline-block;
  width: 27px;
  color: #7fae9d;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  color: #aec5be;
  font-size: 12px;
}
.sidebar-bottom a {
  color: #d1e7dc;
}
.topbar {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.location {
  font-size: 13px;
  font-weight: 600;
}
.test-pill,
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #e9f2ed;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #27634f;
}
.test-pill {
  background: #fff3d9;
  color: #876326;
}
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e7efea;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.main {
  padding: 36px 40px;
  max-width: 1640px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 12px 0 8px;
}
.metric small {
  font-size: 11px;
}
.metric.warn .metric-value {
  color: var(--orange);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-title h2 {
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 340px;
  background: #f8faf8;
}
.toolbar select {
  max-width: 180px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #7b8587;
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #edf0ed;
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
td strong {
  display: block;
  margin-bottom: 5px;
}
td small {
  font-size: 11px;
  display: block;
  line-height: 1.5;
}
.row-link {
  padding: 0;
  background: none;
  border: 0;
  color: #21624d;
  font-size: 13px;
}
.badge.orange {
  background: #fff0e4;
  color: #a65a24;
}
.badge.blue {
  background: #e9f0f8;
  color: #44658c;
}
.badge.red {
  background: #fbeae5;
  color: #a44731;
}
.two-col {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
}
.list-item {
  padding: 15px 0;
  border-bottom: 1px solid #edf0ed;
  font-size: 13px;
}
.list-item:last-child {
  border: 0;
}
.list-item p {
  font-size: 12px;
  margin: 4px 0;
  color: var(--muted);
}
.list-item .badge {
  float: right;
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8faf8;
  border-radius: 6px;
}
.progress {
  display: flex;
  gap: 5px;
  margin: 22px 0;
}
.step {
  flex: 1;
  font-size: 10px;
  color: #84948c;
  border-top: 3px solid #e3e9e4;
  padding-top: 8px;
}
.step.done {
  border-color: #578e73;
  color: #245e45;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.tabs button.active {
  background: #e4eee7;
  color: #205f46;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.notice {
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #edf3ef;
  color: #426552;
  margin-bottom: 20px;
  line-height: 1.6;
}
.notice.warn {
  background: #fff6e5;
  color: #89632c;
}
.notice.error {
  background: #fbece6;
  color: #9d4932;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #102c3b66;
}
dialog h2 {
  margin-bottom: 10px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.media-grid img,
.media-grid video {
  width: 160px;
  height: 105px;
  object-fit: contain;
  background: #edf1ed;
  border-radius: 6px;
}
.media-grid a {
  font-size: 12px;
}
.estimate-line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.estimate-line h3 {
  margin-bottom: 8px;
}
.estimate-line select {
  max-width: 180px;
}
.summary {
  background: #edf3ef;
  border-radius: 8px;
  padding: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  font-size: 13px;
}
.summary-row.total {
  font-size: 22px;
  font-weight: 700;
  border-top: 1px solid #cbd9ce;
  margin-top: 10px;
  padding-top: 18px;
}
.customer {
  max-width: 860px;
  margin: 30px auto;
  padding: 24px;
}
.customer-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #1f5846;
  padding-bottom: 24px;
  margin-bottom: 30px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(420px, 0.93fr);
  background: #f8f7f3;
}
.login-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 92% 15%, #254659 0, transparent 37%),
    linear-gradient(145deg, #192d3c, #10212d 75%);
  color: #fff;
  padding: clamp(32px, 5.2vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 56vw;
  aspect-ratio: 1;
  right: -34vw;
  bottom: -29vw;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  box-shadow: 0 0 0 80px #ffffff05, 0 0 0 160px #ffffff06, 0 0 0 240px #ffffff04;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.login-brand small {
  display: block;
  margin-top: 4px;
  font: 700 10px/1.3 Arial, sans-serif;
  letter-spacing: 2.8px;
  color: #c7d7d9;
}
.login-mark {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border: 1px solid #d1aa6c;
  border-radius: 15px;
  color: #f3d4a2;
  font: 700 26px Georgia, serif;
  transform: rotate(-8deg);
}
.login-mark::first-letter {
  transform: rotate(8deg);
}
.login-story {
  max-width: 660px;
  padding: 54px 0;
}
.login-story .eyebrow {
  color: #e0b575;
  margin-bottom: 22px;
}
.login-story h1 {
  font: 700 clamp(48px, 5.4vw, 88px)/0.99 Georgia, serif;
  letter-spacing: -3.8px;
  margin: 0 0 30px;
}
.login-story p {
  max-width: 470px;
  color: #c5d3d7;
  font-size: 17px;
  line-height: 1.65;
}
.login-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 480px;
  border-top: 1px solid #ffffff35;
  margin-top: 56px;
  padding-top: 22px;
  color: #d6b986;
  font-size: 11px;
  letter-spacing: 1px;
}
.login-flow span {
  white-space: nowrap;
}
.login-flow b {
  display: block;
  color: #f5f7f6;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 6px;
}
.login-flow i {
  height: 1px;
  flex: 1;
  background: #ffffff35;
}
.login-art-footer {
  color: #a9bcc2;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.login-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfb879;
  margin-right: 7px;
}
.login-art-divider {
  color: #6b8c98;
  margin: 0 8px;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 76px);
}
.login-form {
  max-width: 455px;
  width: 100%;
  margin: auto;
}
.login-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e3e5e1;
  color: #67747b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.login-secure {
  color: #287563;
  white-space: nowrap;
  font-size: 9px;
}
.login-form-body {
  padding-top: clamp(40px, 8vh, 90px);
}
.login-form-body .eyebrow {
  color: #a66e32;
  margin-bottom: 13px;
}
.login-form h2 {
  color: #1b303d;
  font: 700 clamp(31px, 3vw, 43px)/1.15 Georgia, serif;
  letter-spacing: -1.4px;
  margin-bottom: 12px;
}
.login-form .muted {
  color: #6f7c82;
  margin-bottom: 32px;
  font-size: 14px;
}
.login-form form label {
  color: #314650;
  font-size: 12px;
  margin: 20px 0 8px;
}
.login-form form input,
.login-form form select {
  min-height: 52px;
  border-color: #d9e0df;
  border-radius: 9px;
  padding: 13px 16px;
  background: #fff;
}
.login-form form input:focus-visible,
.login-form form select:focus-visible {
  outline: 3px solid #c6ded2;
  border-color: #287563;
}
.login-password-label {
  position: relative;
}
.login-password-label input {
  padding-right: 70px !important;
}
.login-password-toggle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  border: 0;
  background: transparent;
  color: #286d5d;
  padding: 9px;
  font-size: 12px;
}
.login-password-toggle:hover {
  background: #f2f6f3;
}
.login-form .login-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 9px;
  min-height: 53px;
  margin-top: 28px;
  padding: 12px 19px;
  background: #1c614f;
  border-color: #1c614f;
  font-size: 14px;
}
.login-submit span {
  font-size: 21px;
  line-height: 1;
}
.login-form .notice.error {
  margin: 18px 0 0;
}
.login-help {
  text-align: center;
  color: #6b777d;
  font-size: 12px;
  margin-top: 24px;
}
.login-panel-footer {
  max-width: 455px;
  width: 100%;
  margin: 40px auto 0;
  border-top: 1px solid #e3e5e1;
  padding-top: 18px;
  color: #859096;
  font-size: 11px;
  line-height: 1.6;
}
.loading {
  padding: 50px;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1b473a;
  color: white;
  border-radius: 8px;
  padding: 14px 20px;
  display: none;
  max-width: 450px;
  box-shadow: 0 5px 25px #0002;
  z-index: 10;
}
.status-dot {
  display: inline-block;
  background: #659379;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.print-only {
  display: none;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .main {
    padding: 28px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 16px;
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    display: inline;
    margin-left: 10px;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  .nav span,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 60px;
    padding: 12px 18px;
    flex-wrap: wrap;
  }
  .main {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 16px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .full {
    grid-column: auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 40px 30px;
  }
  .login-art h1 {
    font-size: 34px;
  }
  .login-form {
    padding: 30px;
  }
  .customer {
    padding: 16px;
    margin: 8px auto;
  }
  .customer-head {
    gap: 16px;
  }
  .test-pill {
    font-size: 10px;
  }
  .progress .step {
    font-size: 8px;
  }
  .profile .avatar {
    display: none;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  button,
  .tabs,
  .no-print,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main,
  .customer {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .panel {
    border: 0;
    padding: 10px 0;
  }
  .print-only {
    display: block;
  }
}

/* Service-floor workspace: a full-width dispatch board. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #233243;
  background: #f4f5f7;
  --green: #245c87;
  --line: #dce1e7;
  --muted: #6c7786;
}
:focus-visible {
  outline: 3px solid #c88126;
  outline-offset: 3px;
}
.shop-shell {
  min-width: 0;
  min-height: 100vh;
}
.shop-header {
  min-height: 78px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  background: #172633;
  border-bottom: 3px solid #ce8a35;
}
.shop-brand {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.shop-brand b {
  display: block;
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 800;
}
.shop-brand b span {
  color: #dfa449;
  font-size: 17px;
  margin-left: 4px;
}
.shop-brand small {
  color: #9db0be;
  display: block;
  font-size: 9px;
  letter-spacing: 2.3px;
  margin-top: 4px;
}
.shop-location {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #d9e1e7;
  padding-left: 26px;
  border-left: 1px solid #40515e;
}
.shop-location label { margin: 0; color: #d9e1e7; }
.shop-location select {
  width: auto;
  max-width: 210px;
  padding: 6px 28px 6px 9px;
  background: #273d47;
  border-color: #647782;
  color: #fff;
  font-size: 12px;
}
.shop-location-dot {
  background: #80ac98;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.shop-environment {
  color: #e1b972;
  background: #3c3529;
  border: 1px solid #645335;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 5px 7px;
  border-radius: 3px;
  margin-left: 9px;
}
.shop-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.shop-person {
  font-size: 11px;
  color: #eef2f4;
  text-align: right;
  margin-right: 10px;
}
.shop-person small {
  display: block;
  color: #9db0be;
  text-transform: capitalize;
  font-size: 10px;
  margin-top: 4px;
}
.shop-account button {
  border: 1px solid #52616d;
  color: #dfe7eb;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 4px;
}
.shop-account button:hover {
  background: #304453;
}
.shop-navigation {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 0 28px;
  border-bottom: 1px solid #d7dfe5;
  background: #fff;
}
.shop-navigation nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 22px;
}
.shop-navigation nav button {
  flex-shrink: 0;
  padding: 17px 0 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  border-radius: 0;
  color: #697484;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.shop-navigation nav button.active {
  color: #1f425b;
  border-bottom-color: #bd7c2a;
  font-weight: 750;
}
.shop-navigation nav button:hover {
  color: #172633;
}
.shop-tv-link {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  color: #6e7c87;
  text-decoration: none;
}
.main {
  max-width: 1800px;
  padding: 30px 28px;
}
.board-main {
  max-width: none;
  padding: 27px 28px 20px;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.shop-kicker {
  color: #8a6735;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.9px;
  margin-bottom: 8px;
}
.board-heading h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-bottom: 7px;
  line-height: 1.3;
}
.board-heading p {
  font-size: 12px;
  color: #6a7581;
  margin: 0;
}
.board-heading .actions button {
  font-size: 11px;
  border-radius: 4px;
  padding: 10px 13px;
}
.board-heading .actions .primary {
  background: #254f6b;
  border-color: #254f6b;
}
.board-live {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-left: 14px;
  vertical-align: middle;
  font-size: 9px;
  letter-spacing: 0.1px;
  font-weight: 500;
  color: #56856d;
}
.board-live i {
  width: 5px;
  height: 5px;
  background: #6a9a7a;
  border-radius: 50%;
}
.board-pulse {
  display: flex;
  border: 1px solid #d9e0e6;
  background: #fff;
  border-radius: 5px;
  margin-bottom: 22px;
}
.board-pulse > button {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  background: transparent;
  border: 0;
  border-right: 1px solid #e1e6ea;
  border-radius: 0;
  text-align: left;
  color: #294354;
}
.board-pulse > button:hover,
.board-pulse > button[aria-pressed="true"] {
  background: #f0f4f7;
}
.board-pulse b {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.board-pulse span {
  font-size: 11px;
  font-weight: 500;
}
.board-pulse .pulse-attention {
  color: #a56326;
}
.board-sync {
  padding: 14px 18px;
  align-self: center;
  text-align: right;
  flex-shrink: 0;
}
.board-sync span,
.board-sync small {
  display: block;
  color: #798691;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.7;
}
.board-sync small {
  color: #506779;
}
.board-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.board-search {
  flex: 1;
  max-width: 410px;
  position: relative;
}
.board-search > span {
  position: absolute;
  left: 12px;
  top: 6px;
  font-size: 21px;
  color: #708291;
}
.board-search input {
  padding: 10px 12px 10px 36px;
  font-size: 11px;
  height: 37px;
  border-radius: 4px;
  border-color: #d5dce2;
}
.board-tools > select {
  font-size: 11px;
  height: 37px;
  padding: 8px;
  max-width: 180px;
  border-radius: 4px;
  border-color: #d5dce2;
}
label.board-mine {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #596b79;
  white-space: nowrap;
}
.board-mine input {
  width: auto;
  accent-color: #315d7a;
}
.board-mode {
  display: flex;
  margin-left: auto;
  border: 1px solid #d5dce2;
  border-radius: 4px;
  background: #e9edf1;
  padding: 2px;
  flex-shrink: 0;
}
.board-mode button {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 10px;
  color: #6a7783;
  font-weight: 500;
}
.board-mode button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 3px #15263b15;
  color: #23475f;
  font-weight: 700;
}
.board-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.board-subline > p {
  margin: 0;
  font-size: 10px;
  color: #7b8791;
}
.board-focus {
  display: flex;
  gap: 6px;
}
.board-focus button {
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 500;
  background: transparent;
  font-size: 9px;
  padding: 6px 9px;
  color: #78848f;
}
.board-focus button[aria-pressed="true"] {
  background: #e8edf2;
  border-color: #d9e0e7;
  color: #314e65;
}
.board-viewport {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #aebcc6 #e8edf1;
  border-radius: 5px;
}
.work-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 1224px;
  gap: 10px;
  align-items: start;
}
.work-board.technician-board {
  grid-template-columns: repeat(auto-fit, minmax(270px, 350px));
  min-width: 0;
}
.work-lane {
  background: #eceff3;
  border: 1px solid #e0e5eb;
  border-radius: 5px;
  min-height: 460px;
  --lane: #7c8998;
}
.lane-violet {
  --lane: #8a7caa;
}
.lane-amber {
  --lane: #c28b3d;
}
.lane-cyan {
  --lane: #4a939c;
}
.lane-blue {
  --lane: #597da6;
}
.lane-green {
  --lane: #5b9175;
}
.work-lane > header {
  border-top: 3px solid var(--lane);
  border-radius: 5px 5px 0 0;
  padding: 12px 10px 11px;
  min-height: 78px;
}
.work-lane > header > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.work-lane h2 {
  font-size: 11px;
  letter-spacing: -0.1px;
  margin: 0;
  color: #344a5a;
  font-weight: 750;
}
.lane-number {
  color: #9aa5b1;
  font-size: 9px;
  font-weight: 700;
}
.lane-count {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #546778;
  background: #e0e6ed;
  min-width: 20px;
  height: 19px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}
.work-lane > header p {
  color: #7e8b97;
  font-size: 8px;
  margin: 6px 0 0;
  line-height: 1.4;
}
.lane-cards {
  display: grid;
  gap: 10px;
  padding: 0 7px 9px;
}
.work-card {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 5px;
  box-shadow: 0 1px 1px #293d5210;
  padding: 12px 10px 0;
  min-width: 0;
  overflow: hidden;
}
.work-card.is-overdue {
  border-color: #dcc1a3;
}
.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.work-ro {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #3e5c73;
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}
.work-age {
  color: #778592;
  font-size: 9px;
  white-space: nowrap;
}
.work-card h3 {
  font-size: 12px;
  font-weight: 750;
  color: #233b4d;
  line-height: 1.5;
  margin: 0 0 8px;
}
.work-stock {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 5px;
  color: #88939b;
  font-size: 8px;
  letter-spacing: 0.1px;
}
.work-stock b {
  color: #596d7c;
  font-size: 9px;
}
.work-stock > span {
  margin-left: auto;
  font-size: 8px;
}
.work-customer {
  color: #697988;
  font-size: 10px;
  margin: 8px 0 9px;
}
.work-concern {
  color: #778390;
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 11px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.work-status {
  background: #eff3f6;
  color: #536b7c;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 650;
  width: fit-content;
  margin-bottom: 9px;
}
.work-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.work-flags span {
  font-size: 8px;
  padding: 4px 5px;
  border-radius: 3px;
  line-height: 1.3;
}
.flag-overdue {
  color: #a65b2f;
  background: #fff0e6;
}
.flag-contact {
  color: #97712c;
  background: #fff6df;
}
.flag-backorder {
  color: #a34e4c;
  background: #fcebea;
}
.work-parts {
  font-size: 8px;
  color: #8b6d37;
  background: #faf5eb;
  padding: 6px;
  line-height: 1.6;
  border-radius: 3px;
  margin-bottom: 9px;
}
.work-parts > span {
  margin-right: 5px;
}
.work-parts small {
  display: block;
  font-size: 8px;
  color: #947b56;
}
.work-next {
  border-top: 1px solid #e9edf1;
  padding-top: 10px;
}
.work-next > span {
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #98a3ad;
  margin-bottom: 5px;
}
.work-next > p {
  font-size: 10px;
  color: #364f62;
  margin-bottom: 8px;
  line-height: 1.6;
}
.work-next > div > b {
  font-size: 9px;
  font-weight: 700;
  color: #546e82;
  display: block;
}
.work-next small {
  display: block;
  font-size: 8px;
  color: #8794a1;
  margin-top: 4px;
}
.work-technician {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  color: #a0aab3;
  padding: 9px 0 10px;
  margin-top: 5px;
}
.work-technician b {
  color: #758898;
  font-size: 8px;
  font-weight: 500;
  text-align: right;
}
.work-card footer {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid #e7ecf0;
  margin: 0 -10px;
  background: #fafbfd;
}
.work-card footer button {
  color: #476880;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 9px;
  padding: 10px;
}
.work-card footer button:hover {
  background: #eaf1f6;
}
.work-open {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex: 1;
}
.work-card footer .work-assign {
  color: #7f8d97;
  border-left: 1px solid #e7ecf0;
  padding: 10px 8px;
  font-size: 8px;
  font-weight: 500;
}
.lane-empty {
  font-size: 9px;
  color: #9ca8b2;
  text-align: center;
  padding: 55px 8px;
  border: 1px dashed #d7dfe7;
  border-radius: 4px;
  margin-top: 2px;
}
.lane-empty span {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  color: #c1cbd4;
}
.board-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 18px 0 10px;
}
.board-bottom section {
  border-top: 1px solid #d9e1e7;
  padding-top: 15px;
}
.board-bottom h2 {
  margin: 0 0 12px;
  font-size: 12px;
  color: #40586a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-bottom h2 button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 9px;
  color: #6f8393;
  font-weight: 500;
}
.technician-lineup > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.technician-lineup button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-color: #dde4e9;
  padding: 10px;
  border-radius: 4px;
  background: #fff;
  min-width: 240px;
}
.technician-lineup b {
  display: block;
  font-size: 10px;
  color: #4b6374;
}
.technician-lineup small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  color: #8b99a4;
  font-weight: 400;
}
.tech-initial {
  display: grid;
  place-items: center;
  background: #e9eef3;
  color: #7a8d9d;
  width: 30px;
  height: 30px;
  font-size: 10px;
  border-radius: 4px;
}
.tech-chevron {
  margin-left: auto;
  color: #9cacb8;
}
.board-handoffs > div {
  display: flex;
  gap: 8px;
  margin-bottom: 7px;
}
.board-handoffs > div i {
  height: 5px;
  width: 5px;
  background: #acbdca;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.board-handoffs p,
.board-bottom .muted {
  font-size: 10px;
  color: #748594;
  margin: 0;
}
.board-handoffs small {
  display: block;
  color: #9aa6b0;
  font-size: 8px;
  margin-top: 3px;
}
.board-note {
  color: #9aa5ae;
  font-size: 9px;
  margin: 18px 0 0;
}
@media (min-width: 1750px) {
  .work-card h3 {
    font-size: 14px;
  }
  .work-concern,
  .work-next > p {
    font-size: 12px;
  }
  .work-lane h2 {
    font-size: 13px;
  }
  .work-card {
    padding: 16px 14px 0;
  }
  .work-card footer {
    margin: 0 -14px;
  }
}
@media (max-width: 1100px) {
  .shop-header {
    gap: 20px;
    padding: 14px 20px;
  }
  .shop-location {
    padding-left: 18px;
  }
  .shop-navigation {
    padding: 0 20px;
  }
  .shop-navigation nav {
    gap: 18px;
  }
  .shop-tv-link {
    display: none;
  }
  .board-main {
    padding: 23px 20px;
  }
  .board-sync {
    display: none;
  }
  .board-pulse > button {
    padding: 15px;
  }
  .board-heading h1 {
    font-size: 26px;
  }
  .board-live {
    display: none;
  }
}
@media (max-width: 750px) {
  .shop-header {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .shop-brand b {
    font-size: 22px;
  }
  .shop-brand small {
    font-size: 8px;
  }
  .shop-location {
    border: 0;
    padding-left: 0;
    font-size: 10px;
    margin-left: auto;
  }
  .shop-environment {
    font-size: 8px;
    margin-left: 1px;
  }
  .shop-account {
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid #344653;
  }
  .shop-person {
    text-align: left;
    flex: 1;
  }
  .shop-person small {
    display: inline;
    margin-left: 7px;
  }
  .shop-account button {
    font-size: 10px;
    padding: 6px 10px;
  }
  .shop-navigation {
    padding: 0 14px;
  }
  .shop-navigation nav {
    gap: 20px;
  }
  .shop-navigation nav button {
    padding-top: 13px;
    padding-bottom: 12px;
    font-size: 11px;
  }
  .board-main {
    padding: 22px 14px;
  }
  .board-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }
  .board-heading h1 {
    font-size: 26px;
  }
  .board-heading .actions {
    width: 100%;
  }
  .board-heading .actions button {
    flex: 1;
  }
  .board-pulse {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .board-pulse > button {
    padding: 12px;
    gap: 9px;
    border-right: 0;
    border-bottom: 1px solid #e8edf1;
  }
  .board-pulse > button:nth-child(odd) {
    border-right: 1px solid #e8edf1;
  }
  .board-pulse b {
    font-size: 23px;
  }
  .board-pulse span {
    font-size: 10px;
  }
  .board-tools {
    flex-wrap: wrap;
    gap: 9px;
  }
  .board-search {
    flex-basis: 100%;
    max-width: none;
  }
  .board-tools > select {
    flex: 1;
    max-width: 180px;
  }
  .board-mode {
    margin-left: 0;
  }
  .board-mode button {
    font-size: 9px;
    padding: 8px;
  }
  .board-subline {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .board-focus button {
    padding: 6px 8px;
  }
  .board-viewport {
    margin-right: -14px;
    padding-right: 14px;
  }
  .work-board {
    display: flex;
    min-width: 0;
    gap: 12px;
    align-items: stretch;
  }
  .work-lane {
    width: min(83vw, 330px);
    flex: 0 0 min(83vw, 330px);
  }
  .work-board.technician-board {
    display: flex;
  }
  .work-lane h2 {
    font-size: 13px;
  }
  .work-lane > header p {
    font-size: 10px;
  }
  .work-card {
    padding: 14px 13px 0;
  }
  .work-ro {
    font-size: 12px;
  }
  .work-age {
    font-size: 11px;
  }
  .work-card h3 {
    font-size: 15px;
  }
  .work-stock,
  .work-stock b,
  .work-stock > span,
  .work-customer,
  .work-concern,
  .work-status,
  .work-next > p {
    font-size: 12px;
  }
  .work-next > div > b {
    font-size: 12px;
  }
  .work-flags span,
  .work-next small,
  .work-parts,
  .work-parts small {
    font-size: 11px;
  }
  .work-next > span {
    font-size: 9px;
  }
  .work-technician,
  .work-technician b {
    font-size: 11px;
  }
  .work-card footer {
    margin: 0 -13px;
  }
  .work-card footer button,
  .work-card footer .work-assign {
    font-size: 12px;
    padding: 13px;
  }
  .work-next {
    margin-top: 13px;
    padding-top: 12px;
  }
  .work-stock {
    margin-top: 11px;
  }
  .board-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .board-note {
    font-size: 10px;
  }
  .work-lane {
    min-height: 500px;
  }
  .board-viewport {
    scroll-snap-type: x proximity;
  }
  .work-lane {
    scroll-snap-align: start;
  }
}
@media print {
  .shop-header,
  .shop-navigation,
  .board-tools,
  .board-subline,
  .board-heading .actions {
    display: none !important;
  }
  .work-board {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .work-lane,
  .work-card {
    break-inside: avoid;
  }
  .board-viewport {
    overflow: visible;
  }
}
@media (max-width: 900px) {
  .login {
    display: block;
  }
  .login-art {
    min-height: auto;
    padding: 30px 28px 34px;
  }
  .login-story {
    padding: 52px 0 36px;
  }
  .login-story h1 {
    font-size: clamp(44px, 8vw, 67px);
    letter-spacing: -2px;
  }
  .login-flow {
    margin-top: 34px;
  }
  .login-panel {
    padding: 32px 28px 44px;
  }
  .login-form-body {
    padding-top: 42px;
  }
}
@media (max-width: 520px) {
  .login-art {
    padding: 28px 22px;
  }
  .login-story {
    padding: 45px 0 28px;
  }
  .login-story h1 {
    font-size: 47px;
  }
  .login-story p {
    font-size: 14px;
  }
  .login-flow {
    gap: 8px;
    margin-top: 24px;
  }
  .login-flow b {
    font-size: 11px;
  }
  .login-art-footer {
    font-size: 10px;
  }
  .login-panel {
    padding: 26px 22px 40px;
  }
  .login-panel-top {
    padding-bottom: 23px;
  }
}
/* Keep the compact work cards readable on a six-column desktop board. */
@media (min-width: 751px) and (max-width: 1749px) {
  .work-card h3 {
    font-size: 13px;
  }
  .work-concern,
  .work-next > p {
    font-size: 11px;
  }
  .work-ro,
  .work-next > div > b {
    font-size: 10px;
  }
  .work-stock,
  .work-stock > span,
  .work-age,
  .work-next small,
  .work-technician,
  .work-technician b {
    font-size: 9px;
  }
  .work-flags span,
  .work-parts,
  .work-parts small {
    font-size: 9px;
  }
  .work-card footer button {
    font-size: 10px;
  }
}

.lot-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #143e35;
  color: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  margin: 16px 0 22px;
}
.lot-hero span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
.lot-hero strong {
  display: block;
  font-size: 84px;
  line-height: 1.05;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}
.lot-hero p {
  margin: 6px 0;
  color: #d9ebe4;
}
.lot-hero aside {
  text-align: right;
}
.handoff-timer {
  display: block;
  margin-top: 8px;
  color: #66766d;
  font-variant-numeric: tabular-nums;
}
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.role-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.role-row strong { text-transform: capitalize; }
.role-row span { color: var(--muted); text-align: right; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; }
fieldset .check { margin: 6px 0; }
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } .shop-location { padding-left: 8px; } }
@media (max-width: 650px) {
  .lot-hero {
    padding: 22px;
    align-items: flex-start;
    flex-direction: column;
  }
  .lot-hero aside {
    text-align: left;
  }
  .lot-hero strong {
    font-size: 72px;
  }
}

/* Username registration and the administrator approval queue. */
.request-access-button { margin-top: 18px; width: 100%; }
.access-request { padding: 20px 0; border-bottom: 1px solid #dce3e8; }
.access-request small { display: block; margin-top: 5px; color: #526371; }
.request-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.login-form fieldset { margin: 18px 0; border: 1px solid #dce3e8; border-radius: 8px; padding: 14px; }
.login-form > #back-to-login { margin-top: 16px; }
