:root {
  --ink: #161616;
  --muted: #5c6564;
  --line: #e3e6e4;
  --paper: #101616;
  --card: #ffffff;
  --green: #0b4442;
  --green-2: #083533;
  --danger: #8c2f24;
  --ok: #0b4442;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(8, 14, 14, 0.42) 0%, rgba(8, 14, 14, 0.62) 240px, rgba(8, 14, 14, 0.84) 100%),
    url("hero.jpg");
  background-size: cover;
  background-position: center 18%;
  background-attachment: fixed;
  font: 16px/1.45 Inter, "Segoe UI", sans-serif;
}
a { color: var(--green); }
button, input, select { font: inherit; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px auto 0;
  width: min(1080px, calc(100% - 28px));
  padding: 10px 14px 10px 16px;
  background: rgba(16, 18, 18, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
.top-nav { display: flex; gap: 16px; align-items: center; }
.top-nav a, .text-btn { color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; }
main { width: min(1080px, calc(100% - 28px)); margin: 22px auto 48px; }
body:has(main .narrow) .top,
main:has(.narrow) { width: min(520px, calc(100% - 28px)); }
.panel, .id-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.narrow { width: 100%; margin: 0 auto; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; }
h2 { margin: 0 0 14px; font-size: 24px; }
.lead { color: var(--muted); margin-top: 0; }
.stack, .car-form { display: grid; gap: 14px; }
label, .field { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
input, select {
  width: 100%;
  border: 1px solid #d5dbd9;
  background: #fff;
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--ink);
}
input::placeholder { color: #8d9694; opacity: 1; }
input:focus, select:focus { outline: 2px solid #c5ddd8; border-color: var(--green); }
input:user-invalid, select:user-invalid { border-color: var(--danger); outline-color: #f0c9c4; }
input[type="file"].file {
  padding: 8px;
  background: #f4f7f6;
  cursor: pointer;
}
input[type="file"].file::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
.hint { color: var(--muted); font-weight: 450; font-size: 13px; }
.phone-row, .split { display: grid; grid-template-columns: 180px 1fr; gap: 8px; }
.split { grid-template-columns: 1fr 1fr; }
.primary, .ghost {
  border: 0;
  border-radius: 5px;
  padding: 13px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
}
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-2); }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.switch { color: var(--muted); }
.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; }
.flash-error { background: #fdecea; color: var(--danger); }
.flash-ok { background: #e7f3ec; color: var(--ok); }
.letter { margin-top: 18px; display: grid; gap: 10px; background: #f7f3ec; border-radius: 16px; padding: 16px; min-width: 0; }
.letter pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-family: inherit; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions .primary,
.actions .ghost { width: 100%; }
.desk-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; color: #fff; }
.desk-head h1, .desk-head .eyebrow { color: #fff; }
.desk-head .eyebrow { opacity: 0.78; }
.tabs { display: flex; gap: 8px; }
.tab {
  text-decoration: none;
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
}
.tab.is-on { background: #fff; color: #121212; }
.layout { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.pid { font-size: 28px; font-weight: 750; margin: 0 0 12px; letter-spacing: 0.04em; }
.qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}
.qr-wrap svg { width: 100%; height: 100%; display: block; }
.id-card dl { margin: 16px 0 0; display: grid; gap: 10px; }
.id-card dt { color: var(--muted); font-size: 12px; }
.id-card dd { margin: 0; word-break: break-word; }
.car-photo { width: min(100%, 360px); border-radius: 16px; }
.empty { min-height: 240px; }
.order-list { display: grid; gap: 12px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.order-top h2 { margin: 0; font-size: 22px; }
.status {
  flex: none;
  background: #e7f1ef;
  color: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 650;
}
.order-items {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--ink);
}
.service-pick { position: relative; }
.service-pick.is-ready select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}
.service-face {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d5dbd9;
  background: #fff;
  border-radius: 5px;
  padding: 8px 12px;
  min-height: 52px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.service-face:focus { outline: 2px solid #c5ddd8; border-color: var(--green); }
.service-pick:has(select:user-invalid) .service-face { border-color: var(--danger); outline-color: #f0c9c4; }
.service-current { display: flex; align-items: center; gap: 10px; min-width: 0; }
.service-name { font-weight: 550; }
.service-name.is-placeholder { color: #8d9694; font-weight: 450; }
.service-chevron { width: 12px; height: 8px; flex: none; color: #5d6866; }
.service-pick.is-open .service-chevron { transform: rotate(180deg); }
.service-mark {
  width: 92px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
}
.service-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.service-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #d5dbd9;
  border-radius: 5px;
  box-shadow: 0 14px 36px rgba(12, 16, 16, 0.22);
}
.service-menu [role="option"] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 550;
}
.service-menu [role="option"].is-active { background: var(--green); color: #fff; }
@media (max-width: 800px) {
  .layout, .split, .phone-row, .desk-head { grid-template-columns: 1fr; display: grid; }
  .desk-head { align-items: start; }
  h1 { font-size: 28px; }
}
