@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-400-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-500-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-500-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-600-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist-latin-700-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-700-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/geist-latin-800-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-800-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-800-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/geist-latin-900-normal.woff2") format("woff2");
  unicode-range:
    U+20-7E, U+A0-AC, U+AE-FF, U+102, U+131, U+152-153, U+2BC, U+2C6, U+2DA,
    U+2DC, U+300-301, U+303-304, U+308-309, U+323, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+2044, U+20AC,
    U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-900-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+301, U+400-45F, U+490-491, U+4B0-4B1,
    U+2116;
}
@font-face {
  font-family: "Dax Geist";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext-900-normal.woff2") format("woff2");
  unicode-range:
    U+20, U+41, U+A0, U+C1, U+102, U+462-463, U+46A-46B, U+472-475, U+492-493,
    U+496-497, U+49A-49B, U+4A2-4A3, U+4AE-4AF, U+4B2-4B3, U+4B6-4B7, U+4BA-4BB,
    U+4C0, U+4CF, U+4D8-4D9, U+4E2-4E3, U+4E8-4E9, U+4EE-4EF, U+20B4;
}
:root {
  color-scheme: light;
  --ink: #1a2027;
  --sub: #526071;
  --line: #dce1e7;
  --page: #f2f4f6;
  --accent: #c23923;
  --hot: #f35b3e;
  --soft: #fff0ea;
  --green: #1f6f53;
  --panel: #fff;
  --edge: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    "Dax Geist",
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.45;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e96c41;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
strong,
b {
  font-weight: 620;
}
small {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sub);
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.8;
}
.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  background: #171b20;
  color: #e8ebed;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 22px;
  border-right: 1px solid #343a40;
  z-index: 12;
}
.side-brand {
  padding: 5px 12px 33px;
}
.brand-sub {
  font-size: 0.8rem;
  color: #b8bdc4;
  margin-top: 12px;
  letter-spacing: 0.015em;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: #bfc5ce;
  min-height: 48px;
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 520;
}
.side-nav button.active {
  background: #323236;
  color: #fff;
  box-shadow: inset 3px 0 0 #ff674d;
}
.side-nav button.active svg {
  color: #ff765e;
}
.side-nav button:hover {
  background: #2a2e34;
  color: white;
}
.nav-count {
  font-size: 0.75rem;
  font-style: normal;
  background: #ffe6dc;
  color: #a62d1a;
  border-radius: 20px;
  min-width: 21px;
  text-align: center;
  margin-left: auto;
}
.side-base {
  border-top: 1px solid #363b41;
  margin-top: auto;
  padding: 20px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #353a42;
  color: #f0f1f3;
  font-size: 0.78rem;
  font-weight: 700;
}
.side-base strong,
.side-base small {
  display: block;
  font-size: 0.85rem;
}
.side-base small {
  color: #aab1bc;
  font-size: 0.77rem;
}
.main {
  min-width: 0;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(20px, 3vw, 48px);
}
.desktop-title,
.top-controls,
.top-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.desktop-title {
  font-size: 0.94rem;
  font-weight: 630;
  color: #404953;
}
.top-square {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #f0f2f4;
  border-radius: 8px;
}
.test-label,
.badge,
.live-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.25;
}
.test-label {
  background: #f4f1e9;
  color: #69532a;
  padding: 7px 10px;
}
.room-select {
  position: relative;
}
.room-button {
  border: 1px solid var(--line);
  background: white;
  display: flex;
  gap: 9px;
  align-items: center;
  border-radius: 8px;
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.875rem;
}
.room-button > span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  padding: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 35px #1a283329;
  min-width: 245px;
}
.room-menu button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
}
.room-menu button:hover {
  background: var(--page);
}
.room-menu small {
  display: block;
  font-weight: 400;
  margin-top: 2px;
}
.room-menu svg {
  color: var(--accent);
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: white;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px;
  height: 42px;
}
.icon-btn:hover,
.btn.secondary:hover,
.choice:hover {
  background: #f1f3f5;
}
.main main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 34px clamp(20px, 3vw, 48px) 44px;
}
.page-head,
.section-line,
.garage-head,
.stock-head,
.order-title,
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.page-head {
  margin-bottom: 23px;
}
.date-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 570;
  color: var(--sub);
  margin-bottom: 4px;
}
.date-line:first-letter {
  text-transform: uppercase;
}
.date-line i {
  width: 16px;
  height: 3px;
  transform: skew(-20deg);
  background: var(--hot);
}
h1 {
  font-size: clamp(2rem, 3.25vw, 3.05rem);
  font-weight: 730;
  letter-spacing: -0.066em;
  line-height: 1.12;
}
h2 {
  font-size: 1.17rem;
  font-weight: 680;
  letter-spacing: -0.037em;
  line-height: 1.2;
}
h3 {
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: -0.028em;
  font-weight: 650;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 0.93rem;
  font-weight: 620;
  line-height: 1.25;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 3px #78261620;
}
.btn.primary:hover {
  background: #a72f1c;
}
.btn.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid #cfd5db;
}
.btn.full {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  padding: 15px 17px;
}
.metric-icon,
.product-icon,
.alert-symbol,
.history-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  border-radius: 12px;
}
.metric.red .metric-icon,
.product-icon.orange,
.alert-symbol {
  background: #ffebe4;
  color: #af4028;
}
.metric.green .metric-icon {
  background: #e6f4ee;
  color: #2a785c;
}
.metric.blue .metric-icon,
.product-icon.blue,
.history-icon {
  background: #e8eef5;
  color: #526d86;
}
.metric-caption {
  color: var(--sub);
  font-size: 0.86rem;
  font-weight: 540;
}
.metric-value {
  font-size: 1.82rem;
  font-weight: 690;
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.metric-value small {
  color: #66707d;
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-left: 6px;
}
.garage {
  color: #f4f6f8;
  padding: 22px;
  background:
    radial-gradient(ellipse at top right, #35444a35, transparent 65%), #20262c;
  border: 1px solid #252d33;
  border-radius: var(--edge);
  position: relative;
  overflow: hidden;
}
.garage-head {
  margin-bottom: 18px;
}
.garage-head h2 {
  font-size: 1.28rem;
}
.garage-head p {
  font-size: 0.85rem;
  color: #c2cbd3;
  margin-top: 4px;
}
.live-mark {
  padding: 7px 10px;
  border: 1px solid #475f55;
  background: #2d3d37;
  color: #c7e9d7;
  white-space: nowrap;
}
.live-mark i {
  width: 6px;
  height: 6px;
  background: #76d5a1;
  border-radius: 50%;
}
.live-mark.off {
  background: #373b3f;
  border-color: #53595f;
  color: #e1e4e7;
}
.live-mark.off i {
  background: #a9b1b9;
}
.bay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 11px;
}
.bay {
  position: relative;
  border: 1px solid #46515a;
  border-radius: 10px;
  background: #2b333a;
  padding: 13px;
  min-width: 0;
}
.bay.occupied {
  background: #343534;
  border-color: #846552;
}
.bay-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.bay-number {
  color: #d2d9de;
  font-size: 0.92rem;
}
.bay-number b {
  font-variant-numeric: tabular-nums;
  color: white;
  font-weight: 700;
}
.bay-state {
  color: #bcd4c5;
  font-size: 0.79rem;
}
.occupied .bay-state {
  color: #ffbc99;
}
.bay-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  min-height: 56px;
}
.parking-lot {
  width: 48px;
  height: 57px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
  background: repeating-linear-gradient(
    -52deg,
    transparent,
    transparent 7px,
    #ffffff06 7px,
    #ffffff06 8px
  );
  border-radius: 5px;
}
.parking-lines {
  position: absolute;
  inset: 2px 3px;
  border: 1px dashed #71818a;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.occupied .parking-lines {
  border-color: #986c56;
}
.empty-bay {
  width: 26px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #92a3ac;
}
.bay-detail {
  min-width: 0;
}
.bay-detail strong,
.bay-detail small {
  display: block;
  overflow-wrap: anywhere;
}
.bay-detail strong {
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.25;
}
.bay-detail small {
  color: #c2cbd3;
  font-size: 0.8rem;
  margin-top: 4px;
}
.car-model {
  position: relative;
  width: 26px;
  height: 47px;
  filter: drop-shadow(1px 3px 2px #111a);
}
.car-model i {
  position: absolute;
  display: block;
}
.car-body {
  inset: 1px 1px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(
    90deg,
    #b1b0aa,
    #e4dfd3 20%,
    #e8e6dc 48%,
    #a4a6a1 85%,
    #888c88
  );
  border: 1px solid #bcbeb8;
  box-shadow:
    inset 0 2px 1px #f6f5ed,
    inset 0 -3px 2px #7a7f80;
}
.windshield {
  left: 4px;
  right: 4px;
  top: 10px;
  height: 7px;
  background: linear-gradient(155deg, #566c75, #232e37);
  border-radius: 5px 5px 2px 2px;
  transform: perspective(15px) rotateX(-15deg);
}
.roof {
  left: 5px;
  right: 5px;
  top: 19px;
  height: 12px;
  background: linear-gradient(100deg, #a7aaa5, #e0e1d7, #b2b5ae);
  border-radius: 2px;
  border-left: 1px solid #888d8c;
  border-right: 1px solid #888d8c;
}
.rear-glass {
  top: 32px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: linear-gradient(#35414a, #52606a);
  border-radius: 2px 2px 4px 4px;
}
.lamp {
  top: 4px;
  width: 3px;
  height: 3px;
  background: #fcf8d9;
  border-radius: 1px;
}
.left-lamp {
  left: 3px;
}
.right-lamp {
  right: 3px;
}
.bay-actions {
  display: flex;
  gap: 6px;
}
.bay-button,
.bay-edit {
  border: 1px solid #5b6871;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f3f5;
  min-height: 39px;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 550;
}
.bay-button {
  flex: 1;
  background: #343e46;
}
.bay-edit {
  width: 38px;
  background: #3c403f;
}
.bay-button.working {
  background: #49453e;
  border-color: #726759;
  color: #ffe4cd;
}
.bay-button:hover,
.bay-edit:hover {
  filter: brightness(1.15);
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.panel,
.stock-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  padding: 20px;
  min-width: 0;
}
.panel + .panel,
main > .panel + .footnote,
.stock-grid + .panel,
.history-tools + .panel {
  margin-top: 16px;
}
.lower-grid > .panel {
  margin: 0;
}
.section-line {
  margin: 0 0 13px;
}
.section-line h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-line h2 svg {
  color: #5c6b77;
}
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 5px 2px;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: left;
  font-weight: 600;
}
.text-action:hover {
  text-decoration: underline;
}
.text-action.neutral {
  color: var(--sub);
}
.counter,
.badge {
  background: #f0f2f4;
  color: #546171;
  padding: 5px 9px;
  white-space: nowrap;
}
.counter,
.badge.warm {
  color: #8c4922;
  background: #fff0df;
}
.counter {
  font-size: 0.78rem;
  border-radius: 8px;
  font-weight: 650;
}
.badge.green {
  color: #215f46;
  background: #e8f5eb;
}
.badge.muted {
  background: #f0f2f4;
  color: #56616e;
}
.visit-row,
.alert-row,
.movement-row,
.quant-row,
.service-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #e9ecef;
  min-width: 0;
}
.visit-row:first-child,
.alert-row:nth-child(2),
.visit-list > *:first-child {
  border-top: 0;
}
.visit-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f3f5;
  color: #5d6975;
}
.visit-main,
.grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.visit-main strong,
.visit-main small,
.visit-time strong,
.visit-time small,
.alert-row strong,
.alert-row small,
.movement-row strong,
.movement-row small,
.room-menu small,
.history-head strong,
.history-head small,
.quant-row small {
  display: block;
}
.visit-main strong,
.alert-row strong,
.movement-row strong {
  font-size: 0.94rem;
}
.visit-main small,
.visit-time small {
  font-size: 0.78rem;
}
.visit-time {
  text-align: right;
  flex-shrink: 0;
}
.visit-time strong {
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.icon-btn.tiny {
  width: 32px;
  height: 32px;
  border-color: transparent;
}
.alert-row {
  flex-wrap: wrap;
  gap: 9px;
}
.alert-row .grow {
  min-width: 100px;
}
.alert-symbol {
  width: 34px;
  height: 36px;
  border-radius: 9px;
}
.alert-row small {
  margin-top: 3px;
}
.empty,
.footnote,
.body-copy {
  color: var(--sub);
  line-height: 1.55;
  font-size: 0.91rem;
}
.empty {
  padding: 8px 0;
}
.footnote {
  margin-top: 16px;
  font-size: 0.84rem;
}
.footnote.inline {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.end-shift,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.end-shift {
  margin-top: 19px;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.stock-head {
  margin-bottom: 15px;
}
.stock-card h3 {
  font-size: 1.05rem;
}
.stock-number {
  font-size: 2.35rem;
  font-weight: 680;
  letter-spacing: -0.065em;
  margin-top: 9px;
  line-height: 1.15;
}
.stock-number small {
  font-size: 1.1rem;
  font-weight: 500;
}
.stock-type {
  color: var(--sub);
  font-size: 0.81rem;
}
.stock-facts {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e8ebed;
  margin-top: 14px;
  padding: 13px 0 17px;
}
.stock-facts > div,
.service-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}
.stock-facts span {
  color: var(--sub);
}
.stock-facts b {
  text-align: right;
}
.movement-row > small {
  text-align: right;
}
.delta {
  min-width: 80px;
  font-variant-numeric: tabular-nums;
  font-weight: 630;
  font-size: 0.86rem;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--accent);
}
.service-row {
  flex-wrap: wrap;
}
.service-row small {
  color: var(--sub);
}
.order-card {
  border-top: 1px solid var(--line);
  padding: 16px 0 5px;
}
.order-card + .order-card {
  margin-top: 14px;
}
.order-title {
  margin-bottom: 9px;
}
.order-title small {
  display: block;
  margin-top: 3px;
}
.actions {
  margin-top: 12px;
}
.history-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.search,
.select-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.search {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 8px;
  padding: 0 12px;
  flex: 1;
  color: var(--sub);
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  height: 44px;
  min-width: 0;
  outline-offset: 0;
}
.select-wrap > svg {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #566371;
}
.select-wrap select {
  padding-right: 34px;
  appearance: none;
  width: 100%;
}
.history-head {
  width: 100%;
  text-align: left;
  padding: 0;
  background: white;
}
.history-head strong {
  font-size: 0.99rem;
}
.history-head small {
  font-weight: 400;
  margin-top: 3px;
}
.history-head svg.turned {
  transform: rotate(180deg);
}
.shift-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.shift-usage span {
  font-size: 0.79rem;
  color: var(--sub);
  padding: 5px 8px;
  background: #f2f4f6;
  border-radius: 6px;
}
.shift-usage b {
  color: var(--ink);
}
.history-item .visit-list {
  margin-top: 12px;
}
.sheet {
  border: 1px solid #d7dce1;
  border-radius: 17px;
  padding: 0;
  box-shadow: 0 18px 80px #17202c45;
  width: min(510px, calc(100vw - 32px));
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  color: var(--ink);
  background: white;
  margin: auto;
}
.sheet::backdrop {
  background: #18212bb0;
}
.sheet[open] {
  display: flex;
  flex-direction: column;
}
.sheet-head,
.sheet-foot {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  font-size: 1.45rem;
}
.form-context {
  font-size: 0.81rem;
  color: var(--sub);
  margin-bottom: 4px;
}
.sheet form {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sheet-fields {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  display: grid;
  gap: 17px;
}
.sheet-foot {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 13px 20px;
}
.sheet-foot .primary {
  flex: 1;
}
.field,
fieldset {
  min-width: 0;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span:first-child,
legend {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}
.field small {
  font-size: 0.81rem;
}
.field input,
select {
  background: #fff;
  border: 1px solid #bfc7d0;
  border-radius: 8px;
  min-height: 46px;
  padding: 9px 12px;
  font-size: 1rem;
  width: 100%;
  font-weight: 440;
  min-width: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  margin-bottom: 7px;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.choice {
  min-height: 42px;
  border: 1px solid #ccd4d9;
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 520;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.choice.pick {
  color: #9d301f;
  background: #ffede7;
  border-color: #d87d69;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.segmented {
  background: #edf0f3;
  border-radius: 9px;
  padding: 4px;
  display: flex;
}
.segmented button {
  min-height: 37px;
  flex: 1;
  border-radius: 6px;
}
.segmented .sel {
  background: white;
  box-shadow: 0 1px 3px #0002;
}
.form-info {
  display: flex;
  gap: 10px;
  background: #f0f4f7;
  border-radius: 9px;
  padding: 12px;
  color: #445563;
  font-size: 0.88rem;
}
.form-error,
.error-banner {
  color: #983420;
  background: #fff0e9;
  border: 1px solid #e8b8a8;
  border-radius: 9px;
  padding: 11px;
  font-size: 0.9rem;
}
.error-banner {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.error-banner span {
  flex: 1;
}
.error-banner button {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #c5cdd4;
  border-radius: 8px;
  flex-shrink: 0;
}
.stepper button {
  width: 36px;
  min-height: 40px;
}
.stepper input {
  border: 0;
  text-align: center;
  width: 39px;
  font-size: 1rem;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button {
  appearance: none;
}
.quant-row {
  margin: -5px 0;
  justify-content: space-between;
  gap: 8px;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 50;
  background: #20282b;
  color: #fff;
  border-radius: 11px;
  padding: 12px 17px;
  max-width: calc(100vw - 30px);
  box-shadow: 0 5px 26px #1521252b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.toast > span {
  border-radius: 100%;
  background: #397357;
  padding: 2px;
  display: grid;
  place-items: center;
}
.loading {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--sub);
  min-height: 90px;
}
.loading svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1140px) {
  .app-shell {
    grid-template-columns: 186px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .main main {
    padding-left: 23px;
    padding-right: 23px;
  }
  .lower-grid {
    grid-template-columns: 1.15fr 1fr;
  }
  .metric {
    gap: 10px;
  }
  .garage {
    padding: 17px;
  }
  .bay-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }
  .bay {
    padding: 10px;
  }
  .bay-body {
    gap: 6px;
  }
  .parking-lot {
    width: 38px;
  }
  .panel {
    padding: 16px;
  }
  .bay-detail strong {
    font-size: 0.9rem;
  }
}
@media (max-width: 930px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .mobile-brand {
    display: inline-flex;
    color: #1d2328;
  }
  .desktop-title {
    display: none;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 2px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    box-shadow: 0 -2px 12px #1a27310a;
    border-top: 1px solid var(--line);
    padding: 4px 4px max(5px, env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    color: #60707b;
    min-height: 52px;
    position: relative;
    font-size: 0.78rem;
    font-weight: 530;
    border-radius: 7px;
  }
  .bottom-nav .active {
    color: var(--accent);
    background: #fff1eb;
  }
  .bottom-nav button span {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .bottom-nav .nav-count {
    position: absolute;
    top: 1px;
    left: calc(50% + 6px);
    font-size: 0.62rem;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
  }
  .main main {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(75px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 57px;
    padding: 0 14px;
    gap: 5px;
  }
  .top-controls {
    gap: 6px;
  }
  .room-button {
    border-color: transparent;
    gap: 5px;
    padding: 5px 4px;
    min-height: 44px;
  }
  .room-button > span {
    max-width: 135px;
  }
  .top-controls > .test-label {
    padding: 5px 6px;
    border-radius: 6px;
  }
  .test-label > span {
    display: none;
  }
  .settings {
    height: 42px;
    width: 38px;
    border-color: transparent;
  }
  .main main {
    padding: 22px 14px calc(86px + env(safe-area-inset-bottom));
  }
  .page-head {
    margin-bottom: 16px;
    gap: 8px;
  }
  h1 {
    font-size: 2.08rem;
  }
  .page-head .btn {
    font-size: 0.86rem;
    padding: 9px 11px;
    gap: 3px;
  }
  .date-line {
    font-size: 0.78rem;
    margin-bottom: 4px;
    gap: 6px;
  }
  .date-line i {
    width: 12px;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 13px;
  }
  .metric {
    display: block;
    padding: 10px 9px;
    min-height: 86px;
    border-radius: 11px;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    margin-bottom: 5px;
  }
  .metric-icon svg {
    width: 14px;
    height: 14px;
  }
  .metric-caption {
    font-size: 0.75rem;
    display: block;
    line-height: 1.22;
  }
  .metric-value {
    font-size: 1.45rem;
    margin-top: 4px;
  }
  .metric-value small {
    font-size: 0.75rem;
    margin-left: 4px;
  }
  .garage {
    padding: 14px 12px;
    border-radius: 13px;
  }
  .garage-head {
    margin-bottom: 12px;
    gap: 7px;
    align-items: flex-start;
  }
  .garage-head h2 {
    font-size: 1.13rem;
  }
  .garage-head p {
    font-size: 0.77rem;
  }
  .live-mark {
    font-size: 0.7rem;
    padding: 5px 7px;
    gap: 4px;
  }
  .bay-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .bay {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
  }
  .bay-upper {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
  .bay-number {
    font-size: 0.85rem;
  }
  .bay-state {
    font-size: 0.74rem;
  }
  .bay-body {
    min-height: 39px;
    margin: 0;
    gap: 6px;
  }
  .parking-lot {
    width: 28px;
    height: 41px;
    flex-shrink: 0;
  }
  .parking-lines {
    inset: 1px;
  }
  .car-model {
    transform: scale(0.73);
  }
  .empty-bay {
    width: 18px;
  }
  .bay-detail strong {
    font-size: 0.83rem;
  }
  .bay-detail small {
    font-size: 0.73rem;
    margin-top: 1px;
  }
  .bay-button {
    min-height: 43px;
    font-size: 0.78rem;
    padding: 4px 8px;
    gap: 2px;
  }
  .bay-actions {
    gap: 3px;
    align-items: center;
  }
  .bay-edit {
    min-height: 42px;
    width: 28px;
    border-color: transparent;
    background: transparent;
  }
  .bay-edit svg {
    width: 14px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .lower-grid .panel {
    margin: 0;
  }
  .panel,
  .stock-card {
    padding: 15px;
    border-radius: 12px;
  }
  .section-line {
    margin-bottom: 7px;
  }
  .section-line h2 {
    font-size: 1.04rem;
    gap: 6px;
  }
  .text-action {
    min-height: 42px;
  }
  .icon-btn.tiny {
    height: 42px;
    width: 37px;
  }
  .stock-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stock-head {
    margin-bottom: 7px;
  }
  .stock-number {
    font-size: 2rem;
  }
  .stock-facts {
    gap: 6px;
    margin-top: 9px;
    padding: 9px 0 12px;
  }
  .stock-head .product-icon {
    width: 33px;
    height: 33px;
  }
  .end-shift {
    margin-top: 14px;
  }
  .history-tools {
    gap: 6px;
  }
  .history-tools .select-wrap {
    max-width: 125px;
  }
  .history-tools input,
  .history-tools select {
    font-size: 1rem;
  }
  .history-head {
    gap: 8px;
  }
  .history-head .badge {
    display: none;
  }
  .history-icon {
    width: 34px;
    height: 34px;
  }
  .visit-list .badge {
    font-size: 0.7rem;
    padding: 4px 6px;
  }
  .sheet {
    width: 100%;
    margin: auto 0 0;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
    border-radius: 17px 17px 0 0;
  }
  .sheet-foot {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .sheet-head,
  .sheet-fields {
    padding-left: 16px;
    padding-right: 16px;
  }
  .toast {
    left: 14px;
    right: auto;
  }
  .choice {
    min-height: 44px;
  }
  .error-banner {
    flex-wrap: wrap;
  }
  .quant-row strong {
    font-size: 0.9rem;
  }
}
@media (max-width: 390px) {
  .topbar {
    padding: 0 9px;
  }
  .main main {
    padding-left: 10px;
    padding-right: 10px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .bay {
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 4px;
  }
  .bay-body .parking-lot {
    display: none;
  }
  .bay-button {
    padding: 4px 6px;
  }
  .bay-edit {
    width: 25px;
  }
  .room-button > span {
    max-width: 108px;
  }
  .metric {
    padding: 9px 7px;
  }
  .metric-caption {
    font-size: 0.72rem;
  }
  .room-menu {
    right: -28px;
  }
  .top-controls > .test-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.stock-head .product-edit {
  margin-left: auto;
}
.stock-head {
  gap: 7px;
}

@media (max-width: 650px) {
  .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .page-head h1 {
    font-size: clamp(1.45rem, 6.7vw, 2rem);
    letter-spacing: -0.052em;
  }
  .page-head .btn {
    white-space: nowrap;
    min-height: 44px;
  }
  .metric-caption {
    font-size: 0.8125rem;
    min-height: 1.35em;
  }
  .bay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "number actions" "detail actions";
    gap: 3px 8px;
    min-height: 65px;
    padding: 8px 10px;
  }
  .bay-upper {
    grid-area: number;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .bay-number {
    font-size: 0.89rem;
  }
  .bay-state {
    font-size: 0.78rem;
  }
  .bay-body {
    grid-area: detail;
    min-height: 0;
  }
  .bay-body .parking-lot {
    display: none;
  }
  .bay-detail strong {
    font-size: 0.87rem;
  }
  .bay-detail small {
    font-size: 0.78rem;
  }
  .bay-actions {
    grid-area: actions;
  }
  .bay.available {
    grid-template-areas: "number actions";
  }
  .bay.available .bay-body {
    display: none;
  }
  .bay-edit {
    width: 36px;
    min-height: 44px;
  }
  .bay-button {
    min-height: 44px;
    font-size: 0.8125rem;
    white-space: nowrap;
    padding: 6px 8px;
  }
  .live-mark {
    font-size: 0.75rem;
  }
  .bottom-nav button {
    font-size: 0.8125rem;
  }
  .bay-button:only-child {
    margin-right: 0;
  }
}
@media (max-width: 340px) {
  .page-head {
    grid-template-columns: 1fr;
  }
  .page-head .btn {
    justify-self: start;
  }
  .bay-actions {
    gap: 0;
  }
  .bay-edit {
    width: 30px;
  }
}

.estimate-note {
  font-size: 0.82rem;
  color: #795131;
  margin-top: 6px;
}

.mobile-test {
  display: none;
}
@media (max-width: 650px) {
  .top-controls > .test-label {
    display: none;
  }
  .mobile-brand {
    align-items: center;
    gap: 5px;
  }
  .mobile-test {
    display: inline-block;
    font-size: 0.72rem;
    border-radius: 4px;
    background: #f4f1e9;
    color: #69532a;
    padding: 3px 4px;
    font-weight: 600;
  }
}
@media (max-width: 350px) {
  .room-button > span {
    max-width: 105px;
  }
}

[hidden] {
  display: none !important;
}
a.btn,
a.text-action,
.desk-switch a {
  text-decoration: none;
}
.lang-switch,
.desk-switch a,
.crew-link,
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lang-switch {
  min-height: 40px;
  padding: 0 9px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.desk-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  gap: 10px;
  font-size: 0.8rem;
}
.desk-switch > span,
.desk-switch > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desk-switch > span {
  color: var(--sub);
}
.desk-switch a {
  color: #a83825;
  font-weight: 650;
  min-height: 36px;
}
.crew-link {
  color: #d5e1e9;
  padding: 5px 2px;
  min-height: 38px;
  margin: 0 0 3px;
  text-align: left;
  font-size: 0.8rem;
  max-width: 100%;
}
.crew-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-link:hover {
  color: white;
}
.plate-tag {
  display: inline-block;
  color: #25333c;
  background: #eef1f2;
  border: 1px solid #b6bec6;
  border-radius: 4px;
  padding: 0 4px;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  font-weight: 650;
  vertical-align: middle;
}
.fee-box,
.visit-car {
  display: grid;
  gap: 10px;
}
.fee-box {
  border: 1px solid #edcbbd !important;
  border-radius: 12px;
  padding: 12px !important;
  background: #fff9f6;
}
.fee-box legend {
  padding: 0 6px;
}
.quote,
.finance-head,
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quote.final strong {
  font-size: 1.35rem;
}
.check-line {
  font-size: 0.88rem;
  line-height: 1.3;
  min-height: 44px;
  color: var(--sub);
}
.check-line input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--accent);
}
.crew-new {
  margin-top: 9px;
}
.soft-note,
.source-line {
  font-size: 0.85rem;
  color: var(--sub);
}
.receipt-cost {
  display: grid;
  gap: 4px;
  min-width: 0;
  grid-area: cost;
}
.receipt-cost .field,
.receipt-cost input {
  min-width: 0;
  width: 100%;
}
.quant-row:has(.receipt-cost) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 145px) auto;
  grid-template-areas: "product cost quantity";
}
.quant-row:has(.receipt-cost) > :first-child {
  grid-area: product;
  overflow-wrap: anywhere;
}
.quant-row:has(.receipt-cost) .stepper {
  grid-area: quantity;
  justify-self: end;
}
.shift-money {
  width: 100%;
}
.finance-head > div,
.rate-grid > div,
.report-head > div {
  display: grid;
  gap: 3px;
}
.finance-head > div > strong {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pay-detail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pay-detail > div,
.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pay-detail .text-action {
  justify-self: start;
  min-height: 42px;
}
.finance-toolbar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.finance-metrics .metric-value {
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
}
.rate-grid,
.sourcing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rate-grid {
  padding: 8px 0 14px;
}
.rate-grid strong {
  font-size: 1.07rem;
}
.finance-shift {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.finance-shift .finance-head {
  margin-top: 8px;
}
.finance-shift .finance-head strong {
  font-size: 1.2rem;
}
.compact-money {
  padding: 10px 0 16px;
}
.sourcing > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  align-content: start;
}
.sourcing > div + div {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.supplier-mark {
  grid-column: 1;
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #1d2229;
  color: white;
  font-weight: 800;
  border-radius: 9px;
}
.supplier-mark.other {
  color: #43556c;
  background: #e8edf2;
}
.sourcing p,
.sourcing small {
  grid-column: 2;
  font-size: 0.86rem;
  color: var(--sub);
}
.sourcing h3 {
  font-size: 1rem;
}
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.support a {
  color: #156342;
}
.date-range {
  margin-bottom: 12px;
}
.date-range label {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}
.date-range input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  max-width: 100%;
}
.finance-metrics .metric-icon {
  background: #f3e9e2;
  color: #954228;
}
.rate-grid {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 650px) {
  .top-controls {
    gap: 4px;
  }
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .room-button > span {
    max-width: 94px;
  }
  .lang-switch {
    padding: 0 5px;
    gap: 3px;
    font-size: 0.73rem;
  }
  .lang-switch svg {
    width: 14px;
  }
  .mobile-test {
    display: none;
  }
  .desk-switch {
    margin: -4px 0 6px;
  }
  .desk-switch > span,
  .desk-switch a {
    font-size: 0.77rem;
  }
  .bay {
    grid-template-areas: "number actions" "detail actions" "crew crew";
  }
  .bay.available {
    grid-template-areas: "number actions" "crew crew";
  }
  .crew-link {
    grid-area: crew;
    justify-self: start;
    min-height: 38px;
    margin: 0;
    padding: 5px 3px;
  }
  .finance-toolbar {
    gap: 7px;
  }
  .finance-toolbar .choice {
    padding: 7px 10px;
    min-height: 40px;
  }
  .finance-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .finance-metrics .metric:last-child {
    grid-column: 1/-1;
  }
  .finance-metrics .metric-icon {
    display: flex;
  }
  .rate-grid {
    gap: 10px;
  }
  .sourcing {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .sourcing > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
  .quant-row:has(.receipt-cost) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "product quantity" "cost cost";
  }
  .receipt-cost {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .finance-head .btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .bottom-nav button {
    line-height: 1.15;
    min-width: 0;
    padding-inline: 2px;
  }
  .room-select .room-button {
    padding-inline: 4px;
  }
}
@media (max-width: 380px) {
  .lang-switch svg {
    display: none;
  }
  .room-button > span {
    max-width: 80px;
  }
  .finance-toolbar .choice {
    padding-inline: 6px;
  }
  .desk-switch > span {
    gap: 3px;
  }
}
.chat-demo {
  margin-top: 12px;
}
.team-stack,
.access-gate,
.connect-form form {
  display: grid;
  gap: 16px;
}
.team-stack {
  max-width: 820px;
}
.staff-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.staff-list li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.staff-list li :is(strong, small) {
  display: block;
  overflow-wrap: anywhere;
}
.staff-list li .btn {
  flex: none;
}
.team-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.team-add .btn {
  min-height: 46px;
}
.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}
.field-note,
.connection-intro,
.back-link,
.members-panel > p,
.connection-success p,
.terms-meta {
  color: var(--sub);
}
.field-note {
  line-height: 1.5;
  font-size: 0.9rem;
  margin-top: 12px;
}
.access-card,
.room-connect,
.back-link,
.connection-page .btn,
.access-gate a {
  text-decoration: none;
}
.access-card,
.room-connect,
.back-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.access-card {
  color: var(--ink);
}
.access-card svg,
.room-connect,
.access-gate > svg {
  color: var(--accent);
}
.access-card small {
  display: block;
  margin-top: 3px;
}
.room-connect {
  padding: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.access-gate {
  justify-items: start;
  max-width: 660px;
}
.connection-page {
  min-height: 100dvh;
}
.connection-bar {
  background: #181d23;
  color: white;
}
.connection-bar > div {
  max-width: 1130px;
  margin: auto;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.connection-bar .lang-switch {
  background: white;
  color: var(--ink);
}
.connection-main {
  max-width: 1130px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
}
.back-link {
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 600;
}
.connection-title {
  margin: 20px 0 12px;
}
.connection-title h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
}
.connection-intro {
  margin-bottom: 22px;
}
.connection-grid {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
}
.connection-grid .panel + .panel {
  margin: 0;
}
.connection-page h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.35;
}
.terms-document .section-line {
  margin-bottom: 4px;
}
.terms-meta {
  font-size: 0.86rem;
  margin: 5px 0 16px;
}
.terms-document section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.terms-document section:last-child {
  padding-bottom: 0;
}
.terms-document h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.terms-document section p,
.members-panel > p {
  font-size: 0.96rem;
  line-height: 1.55;
}
.connect-form .check-line {
  align-items: flex-start;
  line-height: 1.45;
}
.connection-success,
.connection-success > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.connection-success {
  justify-content: space-between;
  margin: 20px 0;
}
.connection-success > div > svg {
  color: var(--green);
}
.connection-success p {
  font-size: 0.9rem;
  margin-top: 4px;
}
.members-panel > p {
  margin: 12px 0;
}
.members-panel > p.field-note {
  font-size: 0.88rem;
}
.receipt-fields {
  margin: 8px 0 12px;
}
.receipt-fields dt {
  font-size: 0.86rem;
  color: var(--sub);
}
.receipt-fields dd {
  margin: 2px 0 10px;
  overflow-wrap: anywhere;
}
.receipt-id {
  font-variant-numeric: tabular-nums;
  font-size: 0.89rem;
}
.print-btn {
  margin: 8px 0 0;
  display: flex;
}
.accepted-terms {
  margin: 18px 0;
}
.print-only {
  display: none;
}
.mobile-sign-link {
  display: none;
}
@media (max-width: 760px) {
  .mobile-sign-link {
    display: inline-flex;
    color: var(--accent);
    margin: 0 0 18px;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-main {
    padding-bottom: 40px;
  }
  .connected-grid .members-panel {
    order: 1;
  }
}
@media (max-width: 480px) {
  .connection-success {
    align-items: stretch;
    flex-direction: column;
  }
  .team-add {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-add .btn {
    justify-self: start;
  }
}
@media print {
  .connection-bar,
  .connection-main > :not(.connection-grid):not(.accepted-terms),
  .members-panel,
  .connection-main button,
  .connection-main a {
    display: none !important;
  }
  .connection-main,
  .connection-grid,
  .accepted-terms {
    display: block;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .connection-main .panel {
    border: 0;
  }
  .terms-document section {
    break-inside: avoid;
  }
}
@media (max-width: 650px) {
  .topbar {
    gap: 4px;
  }
  .top-controls,
  .room-select {
    min-width: 0;
    flex: 0 1 auto;
  }
  .top-controls .lang-switch,
  .top-controls .settings {
    flex-shrink: 0;
  }
  .room-button {
    min-width: 0;
    max-width: 100%;
  }
  .room-button > span {
    min-width: 0;
  }
  .top-controls > .test-label {
    display: none !important;
  }
}
.wash-brand {
  display: inline-flex;
  vertical-align: middle;
  flex-direction: column;
  box-sizing: content-box;
  width: 146px;
  padding: 7px 10px;
  gap: 3px;
  border-radius: 6px;
  background: #090909;
  color: #fff;
}
.wash-brand img {
  width: 100%;
  height: auto;
  display: block;
}
.brand-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  line-height: 1;
  font:
    600 14px/1 "Dax Geist",
    sans-serif;
  letter-spacing: 0;
}
.side-brand {
  padding: 9px 0;
  margin: 0 2px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-brand .wash-brand {
  width: 94px;
  padding: 5px 7px;
}
.mobile-brand .brand-caption {
  font-size: 10px;
}
.connection-bar {
  background: #faf9f7;
  color: #212121;
  border-bottom: 1px solid var(--line);
}
.connection-bar .wash-brand {
  width: 123px;
}
.connection-bar .brand-caption {
  font-size: 12px;
}
.site-menu {
  position: relative;
}
.site-menu .room-menu {
  min-width: 224px;
  right: 0;
  left: auto;
  z-index: 28;
}
.site-menu .room-menu :is(button, a) {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 14px;
  background: transparent;
  width: 100%;
  border: 0;
  text-align: left;
}
.top-controls .hamburger {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}
.stock-help,
.order-store {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8f9;
}
.stock-help p,
.order-store p {
  margin: 4px 0;
  color: var(--sub);
  font-size: 0.9rem;
}
.order-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  background: white;
}
.order-store h3 {
  margin: 0;
  font-size: 1rem;
}
.order-store .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .order-store {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-test {
    display: none;
  }
  .top-controls {
    gap: 5px;
  }
  .mobile-brand .wash-brand {
    width: 84px;
  }
  .room-button {
    max-width: 36vw;
  }
}
.settings-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.signup-card,
.operator-panel,
.shop-directory {
  padding: clamp(18px, 3vw, 28px);
}
.signup-grid {
  align-items: start;
}
.signup-card h2,
.operator-panel h3,
.shop-directory h2 {
  margin: 0 0 12px;
}
.signup-card h3 {
  margin: 18px 0 12px;
}
.signup-card form,
.operator-panel form,
.members-panel form {
  display: grid;
  gap: 12px;
}
.signup-card form .btn,
.operator-panel form .btn,
.members-panel form .btn {
  justify-self: start;
}
.offer-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.role-options {
  display: grid;
  gap: 8px;
}
.role-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.role-options .picked {
  border-color: #c74730;
  background: #fff5f0;
}
.role-options input {
  accent-color: var(--accent);
  margin-top: 5px;
}
.role-options small,
.tariff-info small,
.receipt-fields dd > span,
.party-block > span {
  display: block;
  color: var(--sub);
  font-size: 0.84rem;
}
.tariff-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 5px 0 12px;
}
.tariff-info strong {
  white-space: nowrap;
  font-size: 1.45rem;
}
.signup-card .check-line,
.operator-panel .check-line {
  margin: 9px 0;
  align-items: flex-start;
}
.signup-card .text-action {
  display: flex;
  margin-top: 10px;
}
.signup-card .field-note {
  margin: 10px 0;
}
.operator-panel,
.shop-directory {
  margin: 18px 0;
}
.operator-panel > summary,
.shop-directory h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
}
.operator-panel[open] > summary {
  margin-bottom: 20px;
}
.bridge-controls,
.handover {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.operator-panel input,
.signup-card input,
.share-link {
  min-width: 0;
}
.operator-panel form {
  max-width: 660px;
}
.share-link {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}
.shop-directory a {
  display: block;
  margin: 8px 0;
  color: var(--accent);
}
.shop-directory a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}
.wash-access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 18px;
}
.wash-entrance > .wash-access-links {
  justify-content: flex-start;
  margin-top: 1rem;
}
.staff-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.staff-controls .text-action {
  font-size: 0.8rem;
}
.saved-offer summary,
.bridge-controls summary {
  cursor: pointer;
  font-weight: 600;
}
.saved-offer .panel {
  box-shadow: none;
  padding: 14px 0;
  border: 0;
}
@media (max-width: 700px) {
  .signup-grid,
  .connected-grid {
    display: flex;
    flex-direction: column;
  }
  .signup-grid > *,
  .connected-grid > * {
    width: 100%;
  }
  .signup-card .pair,
  .operator-panel .pair {
    grid-template-columns: 1fr;
  }
}
@media print {
  .connection-bar,
  .members-panel,
  .shop-directory,
  .operator-panel,
  .connection-success,
  .connection-main > .text-action {
    display: none !important;
  }
  details.saved-offer > *,
  details.saved-offer::details-content {
    display: block !important;
    content-visibility: visible;
  }
  .receipt-panel,
  .receipt-panel .panel {
    box-shadow: none;
  }
}
.intro-tariff .tariff-info {
  margin-bottom: 12px;
}
.tariff-followup {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.tariff-followup b {
  white-space: nowrap;
}
.intro-tariff > small,
.access-period {
  color: var(--sub);
  font-size: 0.85rem;
}
.access-period {
  margin: 6px 0 12px;
}

.billing-section { scroll-margin-top: 1rem; margin-block: 1rem 1.5rem; }
.billing-section > .connection-grid { margin-top: 1rem; }
.billing-card { padding: clamp(1rem, 3vw, 1.75rem); margin-block: 1rem; overflow-wrap: anywhere; }
.billing-card h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; }
.billing-card p { margin: .5rem 0 .85rem; line-height: 1.5; }
.billing-price strong { font-size: 1.4rem; letter-spacing: -.04em; }
.billing-status { border-inline-start: 3px solid currentColor; padding-inline-start: .8rem; margin-block: 1rem; }
.billing-card form { max-width: 32rem; }
.billing-card .saved-offer { margin-block-start: 1rem; }
.shop-directory a > small { margin-inline-start: .7rem; }
@media print {
  .connection-main:has([data-print-receipt]) > :has([data-print-receipt]),
  .connection-main :has([data-print-receipt]) { display: block !important; }
  :is(.connection-main, .connection-main *):has([data-print-receipt]) > :not([data-print-receipt]):not(:has([data-print-receipt])) { display: none !important; }
  [data-print-receipt] .saved-offer { display: block; }
}
.wash-entrance{max-width:840px}.wash-welcome{padding:clamp(18px,5vw,48px) 0}.wash-welcome h1{font-size:clamp(2rem,6vw,3.6rem);line-height:1.04;letter-spacing:-.05em;margin:0 0 1rem}.wash-welcome p{font-size:1.15rem;max-width:40rem;margin-bottom:1.5rem}.wash-welcome .btn{margin:0 .3rem .6rem 0}.wash-entrance>.billing-card{max-width:44rem}.wash-entrance>.text-action{margin-top:1rem}
