:root {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #222622;
  background: #f7f7f3;
  --ink: #202723;
  --paper: #f7f7f3;
  --surface: #fff;
  --rule: #dedfd8;
  --muted: #626860;
  --accent: #263e34;
  --focus: #286b9f;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
label.check,
input[type="checkbox"] {
  cursor: pointer;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.065em;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.045em;
  font-weight: 620;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.024em;
}
small {
  font-size: 12px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button,
a.btn,
.inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.app-header {
  height: 66px;
  padding: 0 clamp(18px, 3.4vw, 66px);
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--ink);
  color: #fff;
}
.wordmark {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.brand {
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.brand img {
  max-height: 38px;
  max-width: 180px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 5px;
}
.nav button {
  color: #c0c6c1;
  position: relative;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
.nav button[aria-current="page"] {
  color: white;
}
.nav button[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
}
.nav button:hover,
.profile:hover {
  color: white;
  background: #ffffff12;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.environment {
  font: 600 10px var(--mono);
  padding: 5px 7px;
  border: 1px solid #778074;
  border-radius: 4px;
  letter-spacing: 0.045em;
  white-space: nowrap;
  color: #e5eadf;
}
.profile {
  color: #fff;
  min-height: 34px;
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbe2d9;
  color: #2d3c31;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.main {
  max-width: 2600px;
  margin: 0 auto;
  padding: 33px clamp(18px, 3.4vw, 66px) 40px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 25px;
}
.kicker,
.eyebrow,
.field-caption,
.column-count,
.mono,
.badge {
  font-family: var(--mono);
}
.kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.subtle,
.help,
.muted {
  color: var(--muted);
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 11px;
  line-height: 1.42;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.btn,
.icon-btn,
.chip,
.switch button,
.tabs button,
.wide-btn {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
  line-height: 1.2;
  font-weight: 560;
  font-size: 13px;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}
.btn:hover,
.icon-btn:hover,
.wide-btn:hover,
.chip:hover {
  border-color: #a5aba2;
  background: #f5f6f2;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover {
  filter: brightness(0.9);
}
.btn.sm,
.icon-btn.sm {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: #973b30;
  border-color: #e5bbb4;
}
.icon-btn {
  padding: 8px;
  min-width: 36px;
}
.actions,
.flex,
.switch,
.chips,
.page-tools,
.section-top,
.photo-strip,
.filters-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.metric {
  text-align: left;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px 20px 15px;
  border-right: 1px solid var(--rule);
  background: white;
  border-radius: 0;
}
.metric:last-child {
  border-right: 0;
}
.metric:hover {
  background: #f7f8f4;
}
.metric[aria-pressed="true"] {
  box-shadow: inset 0 -3px var(--accent);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.metric-icon {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #ecefe9;
  color: #495d4f;
}
.metric:nth-child(2) .metric-icon {
  background: #f7edd9;
  color: #896224;
}
.metric:nth-child(3) .metric-icon {
  background: #e9edf5;
  color: #526788;
}
.metric:nth-child(4) .metric-icon {
  background: #e4f0e9;
  color: #466d55;
}
.metric strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 29px 0 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.board-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-title h2 {
  font-size: 19px;
  white-space: nowrap;
}
.total {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 3px 8px;
  font: 500 11px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.page-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  background: white;
  border-radius: 6px;
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
}
.search input {
  border: 0;
  min-width: 0;
  width: 175px;
  background: none;
  color: var(--ink);
  height: 35px;
  font-size: 13px;
  outline-offset: 0;
}
.search:focus-within {
  border-color: var(--focus);
}
.switch {
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ebece7;
  padding: 2px;
}
.switch button {
  border: 0;
  min-height: 29px;
  padding: 5px 9px;
  background: none;
  color: #686f68;
  box-shadow: none;
}
.switch button[aria-pressed="true"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px #20272325;
}
.filters {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 0 0 15px;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 7px;
  padding: 13px;
}
.filters label {
  min-width: 140px;
}
.column-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mobile-status {
  display: none;
}
.board-wrap {
  position: relative;
}
.board {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 17px;
  scrollbar-color: #a3aa9e #e7e9e1;
  scrollbar-width: thin;
  min-height: 440px;
}
.column {
  flex: 0 0 clamp(272px, 26.9vw, 455px);
  min-width: 0;
  scroll-snap-align: start;
  background: #eeefe9;
  border: 1px solid #dedfd7;
  border-radius: 9px;
  min-height: 440px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.column.dragover {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: #e2e8e0;
}
.column-head {
  padding: 14px 13px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 49px;
}
.status-dot {
  width: 9px;
  height: 9px;
  background: var(--dot, #749385);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #0001;
  flex-shrink: 0;
}
.column-head h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}
.column-count {
  border-radius: 4px;
  background: #e0e3da;
  min-width: 22px;
  padding: 2px 5px;
  text-align: center;
  color: #576052;
  font-size: 11px;
}
.column-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 9px 9px;
}
.card {
  background: white;
  box-shadow: 0 1px 2px #2027230c;
  border: 1px solid #d8dcd3;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.card:hover {
  border-color: #a1aaa0;
  box-shadow: 0 4px 14px #27302315;
}
.card.dragging {
  opacity: 0.5;
}
.card-media {
  height: clamp(100px, 9.5vw, 150px);
  position: relative;
  background: #e5e6de;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-media .repair-no {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fffffff0;
  border: 1px solid #0002;
  border-radius: 4px;
  padding: 4px 6px;
  font: 600 10px var(--mono);
  color: #293428;
  letter-spacing: 0.035em;
}
.card-media .grip {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #323a30;
  background: #ffffffe0;
  border-radius: 3px;
  padding: 2px;
}
.card-body {
  padding: 12px 13px 10px;
}
.card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.customer-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555d54;
  margin: 6px 0;
}
.issue {
  font-size: 13px;
  line-height: 1.4;
  color: #444b42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.chips {
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 6px;
  border: 1px solid #dce0d8;
  background: #f3f4ef;
  color: #535c51;
  letter-spacing: 0;
}
.badge.good {
  background: #edf5ed;
  color: #376247;
  border-color: #d4e6d7;
}
.badge.wait {
  background: #faf1dc;
  color: #805c22;
  border-color: #efdeba;
}
.badge.bad {
  background: #faeae8;
  color: #894038;
  border-color: #edcec8;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid #e6e8e0;
  margin-top: 11px;
  padding-top: 9px;
  font-size: 11px;
  color: #5b6359;
}
.tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mini-avatar {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e2e7df;
  color: #415041;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}
.age {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
}
.drop-empty {
  margin: 0 9px 10px;
  border: 1px dashed #cbd0c4;
  border-radius: 6px;
  color: #737969;
  padding: 20px 9px;
  text-align: center;
  font-size: 12px;
}
.fail-banner,
.notice,
.error {
  border: 1px solid #d5dfd4;
  background: #f0f4ed;
  color: #42553e;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
}
.fail-banner,
.warning {
  background: #fff6de;
  border-color: #e7d6a4;
  color: #73591e;
}
.fail-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.error {
  color: #893a30;
  background: #fff0ed;
  border-color: #e2bcb6;
}
.help {
  font-size: 12px;
  line-height: 1.5;
}
#dialog {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0;
  width: min(650px, calc(100% - 24px));
  color: var(--ink);
  background: var(--surface);
  max-height: calc(100dvh - 38px);
  box-shadow: 0 20px 90px #101a1740;
  overflow: auto;
}
#dialog::backdrop {
  background: #151d1a65;
  backdrop-filter: blur(2px);
}
#dialog.drawer {
  margin: 0 0 0 auto;
  width: min(680px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border-width: 0 0 0 1px;
}
#dialog.compact {
  width: min(440px, calc(100% - 24px));
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 19px 24px;
}
.dialog-head .eyebrow {
  margin-bottom: 5px;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-body {
  padding: 20px 24px 24px;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--rule);
  padding: 14px 24px;
  background: #fafbf8;
  position: sticky;
  bottom: 0;
  z-index: 1;
  flex-wrap: wrap;
}
.close-btn {
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.close-btn:hover {
  background: #eef0e8;
}
.stack {
  display: grid;
  gap: 15px;
}
.small-gap {
  gap: 8px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.span2 {
  grid-column: 1/-1;
}
label.field {
  display: grid;
  gap: 5px;
  align-content: start;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  min-width: 0;
}
.field input,
.field select,
.field textarea,
.mobile-status select,
.row-select {
  border: 1px solid #cdd2c9;
  border-radius: 5px;
  padding: 9px;
  min-height: 38px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 420;
  line-height: 1.4;
}
.field textarea {
  resize: vertical;
}
.field input[type="color"] {
  padding: 3px;
  max-width: 75px;
}
.field input[type="file"] {
  font-size: 12px;
  background: #fafbf8;
  border-style: dashed;
  padding: 12px;
}
.field .help {
  font-weight: 400;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
}
.check input {
  accent-color: var(--accent);
  margin: 2px 0 0;
  flex-shrink: 0;
}
.terms {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 4px;
}
.doc {
  display: grid;
  gap: 8px;
}
.tabs,
.steps {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 17px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.tabs button {
  border: 0;
  background: transparent;
  min-height: 34px;
  color: var(--muted);
}
.tabs button.active {
  background: #e9ede5;
  color: var(--ink);
}
.steps {
  gap: 0;
}
.step {
  flex: 1;
  font-size: 12px;
  padding: 9px 4px;
  border-bottom: 2px solid #e5e8df;
  color: var(--muted);
}
.step.active {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}
.section {
  border: 1px solid var(--rule);
  background: white;
  border-radius: 7px;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.section-top {
  justify-content: space-between;
}
.section h3 {
  font-size: 16px;
}
.section h4 {
  margin: 0;
  font-size: 14px;
}
.photo-strip {
  overflow: auto;
  align-items: stretch;
  flex-wrap: wrap;
}
.thumb {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.thumb img {
  width: 90px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  background: #edefe9;
  border: 1px solid var(--rule);
}
.thumb button {
  padding: 1px 4px;
  font-size: 11px;
  text-decoration: underline;
}
.kv {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.row-actions .left {
  margin-right: auto;
}
.line {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 4px 0;
}
.note-item {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note-item small {
  margin-top: 3px;
  display: block;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f2f3ed;
  color: var(--muted);
  font: 600 10px var(--mono);
  padding: 12px 15px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
td {
  border-top: 1px solid var(--rule);
  padding: 13px 15px;
  min-width: 105px;
  line-height: 1.4;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.text-btn {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  padding: 0;
  color: var(--accent);
}
.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 800px);
  gap: 20px;
  align-items: start;
}
.settings-nav {
  display: grid;
  gap: 3px;
}
.settings-nav button {
  padding: 10px 12px;
  border-radius: 5px;
  justify-content: flex-start;
  font-size: 13px;
}
.settings-nav button.active {
  font-weight: 650;
  background: #e5e9df;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.status-row .push,
.push {
  margin-left: auto;
}
.login,
.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 20px;
}
.login-card {
  width: min(380px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 25px;
}
.login .wordmark {
  margin-bottom: 25px;
}
.login h1 {
  font-size: 31px;
}
.login form {
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px #0002;
  border-radius: 6px;
  padding: 11px 17px;
  font-size: 13px;
  z-index: 8;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
#toast.negative {
  background: #863b32;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1650px) {
  .column {
    flex-basis: calc((100% - 52px) / 5);
  }
}
@media (max-width: 1000px) {
  .app-header {
    gap: 14px;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 0 9px;
  }
  .nav button:after {
    left: 7px !important;
    right: 7px !important;
  }
  .app-header {
    padding: 0 20px;
  }
  .main {
    padding: 25px 20px;
  }
  .board-title .total {
    display: none;
  }
  .card-media {
    height: 115px;
  }
  .column {
    flex-basis: 292px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: auto;
    min-height: 57px;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 16px;
  }
  .brand {
    height: 53px;
  }
  .account {
    order: 1;
  }
  .nav {
    order: 2;
    width: 100%;
    height: 41px;
    overflow: auto;
  }
  .nav button {
    flex: 1;
    padding: 9px 7px;
    gap: 5px;
    font-size: 12px;
  }
  .nav button svg {
    width: 14px;
  }
  .main {
    padding: 18px 14px;
  }
  .heading {
    margin: 5px 0 18px;
    align-items: flex-end;
  }
  .heading .kicker {
    margin-bottom: 8px;
  }
  .heading .subtitle {
    font-size: 12px;
    max-width: 34ch;
  }
  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric {
    gap: 9px;
    padding: 12px 9px;
    justify-content: flex-start;
  }
  .metric-top {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.3;
    min-height: 24px;
  }
  .metric-icon {
    display: none;
  }
  .metric strong {
    font-size: 24px;
  }
  .board-heading {
    margin-top: 21px;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }
  .board-title {
    min-height: 30px;
  }
  .page-tools {
    justify-content: flex-start;
    gap: 6px;
    flex: 1;
  }
  .search {
    flex: 1;
    min-width: 125px;
  }
  .search input {
    width: 100%;
    min-width: 0;
  }
  .search input,
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .column-tools {
    display: none;
  }
  .switch button {
    padding: 5px 6px;
  }
  .board {
    gap: 10px;
    min-height: 350px;
  }
  .column {
    flex-basis: min(340px, 87vw);
    min-height: 350px;
  }
  .card-media {
    height: 132px;
  }
  .mobile-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
  }
  .mobile-status select {
    width: auto;
    min-height: 30px;
    padding: 4px;
    max-width: 210px;
    font-size: 12px;
  }
  .settings-layout {
    display: block;
  }
  .settings-nav {
    display: flex;
    overflow: auto;
    white-space: nowrap;
    margin: 0 0 14px;
  }
  .settings-nav button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .dialog-head,
  .dialog-foot {
    padding: 14px 16px;
  }
  .dialog-body {
    padding: 15px 16px;
  }
  .dialog-head h2 {
    font-size: 21px;
  }
  .filters {
    gap: 9px;
  }
  .filters label {
    min-width: 110px;
    flex: 1;
  }
  .board-title {
    width: 100%;
  }
  .section {
    padding: 13px;
  }
  .grid2 {
    gap: 10px;
  }
}
@media (max-width: 455px) {
  h1 {
    font-size: 37px;
  }
  .heading .btn {
    font-size: 12px;
    padding: 8px;
  }
  .step {
    font-size: 10px;
  }
  .dialogs,
  .check {
    font-size: 12px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: 1;
  }
  .step-label {
    display: none;
  }
  .nav button {
    font-size: 11px;
  }
  .filters .btn {
    width: 100%;
  }
  .board-heading .page-tools {
    width: 100%;
  }
  .section .row-actions {
    justify-content: flex-start;
  }
  .profile {
    padding: 0;
  }
  .mobile-hide {
    display: none;
  }
  .heading .kicker {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Liminal Repair's published type and palette. Status colors carry workflow meaning. */
:root {
  font-family: Barlow, Arial, sans-serif;
  --paper: #0a0a0a;
  --surface: #131313;
  --ink: #f2f2f0;
  --muted: #ababaa;
  --rule: #303030;
  --accent: #f2f2f0;
  --focus: #9fc6ee;
  color: var(--ink);
  background: var(--paper);
  color-scheme: dark;
}
body {
  background: var(--paper);
}
h1,
h2,
h3,
h4,
.wordmark,
.metric strong {
  font-family: Jost, Arial, sans-serif;
}
h1 {
  font-weight: 300;
  letter-spacing: -0.055em;
}
h2 {
  font-weight: 400;
}
h3 {
  font-weight: 500;
}
.app-header {
  background: #0d0d0d;
  border-bottom: 1px solid var(--rule);
}
.brand img {
  height: 40px;
  width: auto;
}
.environment {
  border-color: #3d3d3d;
  color: #ccc;
}
.avatar,
.mini-avatar {
  background: #323331;
  color: #e2e1da;
  border: 1px solid #494a45;
}
.main {
  padding-top: 32px;
}
.btn,
.icon-btn,
.chip,
.wide-btn,
.search,
.filters,
.section,
.table-wrap,
.login-card,
.metrics,
.metric,
.dialog-head {
  background: var(--surface);
  color: var(--ink);
}
.btn:hover,
.icon-btn:hover,
.wide-btn:hover,
.chip:hover,
.close-btn:hover,
.metric:hover {
  background: #202020;
  border-color: #666;
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent, #0a0a0a);
}
button:disabled {
  cursor: not-allowed;
}
.metric {
  border-color: var(--rule);
}
.metric-icon,
.metric:nth-child(n) .metric-icon {
  background: transparent;
  color: #b8bbb2;
  border: 1px solid #383a34;
}
.metric strong {
  font-weight: 400;
}
.metrics,
.section,
.column,
.card,
.btn,
.icon-btn,
.search,
.switch,
.table-wrap {
  border-radius: 5px;
}
.column {
  background: #141414;
  border-color: #292929;
}
.column-head {
  border-bottom: 1px solid #282828;
  margin-bottom: 9px;
}
.column-count {
  background: #272727;
  color: #b7b7b3;
}
.column-head h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.board {
  scrollbar-color: #565656 #1b1b1b;
}
.card {
  background: #202020;
  border-color: #343434;
  box-shadow: 0 2px 5px #0002;
}
.card:hover {
  background: #232323;
  border-color: #626262;
}
.column.dragover {
  background: #232322;
}
.card h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: 19px;
}
.card-media,
.thumb img {
  background: #171717;
}
.card-media .repair-no,
.card-media .grip {
  background: #171717d9;
  color: #e7e7e4;
  border-color: #ffffff35;
}
.customer-line,
.issue,
.card-foot,
.drop-empty {
  color: #c0c0be;
}
.card-foot {
  border-color: #373737;
}
.badge {
  color: #c5c8c3;
  background: #292a28;
  border-color: #41433d;
}
.badge.good {
  background: #29372e;
  color: #bdd7b9;
  border-color: #405344;
}
.badge.wait {
  background: #393326;
  color: #e2c997;
  border-color: #544a34;
}
.badge.bad {
  background: #3b2b29;
  color: #dcb6af;
  border-color: #59413e;
}
.drop-empty {
  border-color: #373737;
}
.switch {
  background: #101010;
}
.switch button {
  color: #a6a6a4;
}
.switch button[aria-pressed="true"] {
  background: #303030;
  color: #eee;
}
.dialog-body,
.dialog-head,
#dialog,
.dialog-foot {
  background: #151515;
}
.dialog-head .eyebrow {
  color: var(--muted);
}
.dialog-foot,
th,
.terms {
  background: #1c1c1c;
}
.field input,
.field select,
.field textarea,
.field input[type="file"],
.mobile-status select,
.row-select {
  color: var(--ink);
  background: #101010;
  border-color: #434343;
}
.tabs button.active,
.settings-nav button.active {
  background: #2a2a2a;
}
.step {
  border-color: #353535;
}
.step.active {
  border-color: var(--accent);
}
.notice {
  background: #1c2420;
  color: #cad8ce;
  border-color: #35453b;
}
.warning,
.fail-banner {
  background: #302b20;
  color: #e3cfaa;
  border-color: #514733;
}
.error {
  background: #342422;
  color: #f2c6bc;
  border-color: #5f423a;
}
.text-btn {
  color: var(--ink);
}
.btn.danger {
  color: #e5b3a8;
  border-color: #744f46;
}
.status-row .help {
  margin-top: 2px;
}
.settings-nav button {
  color: var(--ink);
}
.skip {
  background: #fff;
  color: #161616;
}
#toast {
  color: #111;
  background: #eeeee9;
}
#toast.negative {
  color: white;
  background: #863b32;
}
.boot {
  background: var(--paper);
}
.login-card .wordmark img {
  max-width: 200px;
}
@media (max-width: 760px) {
  .main {
    padding-top: 18px;
  }
  .brand img {
    height: 34px;
  }
}

.grip {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.grip:active {
  cursor: grabbing;
}
.grip svg,
.card-media img {
  pointer-events: none;
}

.ack-receipt .terms {
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
}
@media print {
  body:has(.receipt-dialog[open]) > :not(dialog) {
    display: none !important;
  }
  dialog.receipt-dialog[open] {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    border: 0;
    color: #111;
    background: white;
  }
  dialog.receipt-dialog .dialog-body {
    overflow: visible;
    max-height: none;
  }
  dialog.receipt-dialog .dialog-foot,
  dialog.receipt-dialog .close-btn,
  dialog.receipt-dialog::backdrop {
    display: none;
  }
}
.customer-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.customer-entry span {
  color: var(--muted);
}
.handoff-slip {
  display: grid;
  gap: 11px;
}
.handoff-slip input[name="portalCode"] {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.1em;
}
@media print {
  body:has(.handoff-dialog[open]) #app,
  body:has(.handoff-dialog[open]) #toast,
  .handoff-dialog .dialog-head,
  .handoff-dialog .dialog-foot,
  .handoff-dialog .dialog-body > .stack > :not(.handoff-slip),
  .handoff-dialog #dialog-feedback {
    display: none !important;
  }
  dialog.handoff-dialog[open] {
    position: static !important;
    display: block;
    color: black;
    background: white;
    max-height: none;
    width: 100%;
    border: none;
    box-shadow: none;
  }
  .handoff-dialog .dialog-body {
    padding: 0;
    background: white;
    color: black;
  }
  .handoff-slip input {
    width: 100%;
    border: 0;
    background: white !important;
    color: black !important;
  }
  .handoff-slip:before {
    content: "Liminal Repair · Private drop-off slip";
    font-weight: bold;
  }
}
@media print {
  .handoff-dialog::backdrop,
  .handoff-screen {
    display: none !important;
  }
  .handoff-slip .help,
  .handoff-slip .field {
    color: #111 !important;
  }
  .handoff-slip .field {
    font-size: 14pt;
  }
}
