.dealer-staff {
  --ds-bg: #eef4f2;
  --ds-surface: #fff;
  --ds-ink: #122b2a;
  --ds-muted: #526967;
  --ds-line: #d4e2df;
  --ds-teal: #0d544c;
  --ds-soft: #e3f4ef;
  --ds-gold: #ffd66b;
  --ds-danger: #9d2b21;
  color: var(--ds-ink);
  height: 100dvh !important;
}
.dealer-staff #topbar { min-height: 58px; padding-block: 8px; }
.dealer-staff #tb-title-text { overflow: hidden; text-overflow: ellipsis; }
.dealer-staff #topbar > :first-child { min-width: 0; }
.dealer-staff #topbar .tb-title { min-width: 0; }
.dealer-staff #topbar .tb-user { min-width: 0; flex-shrink: 0; }
.dealer-staff #bottom-nav { display: none; }
.dealer-staff #page-content.ds-shell {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--ds-bg);
  overflow-x: clip;
}
.ds-content { width: min(100%, 680px); margin-inline: auto; padding: 20px 16px 28px; flex: 1; }
.ds-content section + section, .ds-shortcuts + section { margin-block-start: 18px; }
.ds-heading { margin-block-end: 16px; }
.ds-heading p, .ds-muted { color: var(--ds-muted); }
.ds-heading p { margin-block: 0 4px; font-size: .84rem; }
.ds-heading h1 { font-size: clamp(1.65rem, 5vw, 2.25rem); margin: 0; }
.ds-heading h1:focus, .ds-notice:focus { outline: none; }
.ds-content h2 { font-size: 1rem; margin: 0; }
.ds-card, .ds-work, .ds-hero, .ds-list, .ds-empty {
  border: 1px solid var(--ds-line); border-radius: 16px;
  background: var(--ds-surface); overflow-wrap: anywhere;
}
.ds-work, .ds-hero, .ds-card { padding: 16px; }
.ds-card > p { margin-block: 6px 12px; }
.ds-hero { background: #103f3a; border-color: #103f3a; color: #fff; display: grid; gap: 10px; }
.ds-hero > span, .ds-hero > div { display: flex; align-items: center; gap: 8px; }
.ds-hero div { justify-content: space-between; flex-wrap: wrap; }
.ds-hero > strong { font-size: clamp(1.7rem, 6vw, 2.55rem); color: var(--ds-gold); }
.ds-section-title, .ds-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-section-title { margin-block-end: 8px; }
.ds-section-title > span, .ds-summary > span { font-size: .8rem; color: var(--ds-muted); }
.ds-summary { padding-block: 10px 0; border-top: 1px solid var(--ds-line); margin-block-start: 12px; }
.ds-section-title .ds-pill { background: var(--ds-soft); color: var(--ds-teal); border-radius: 999px; padding: 4px 9px; }
.ds-quick-grid, .ds-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ds-shortcuts { margin-block: 12px; }
.ds-shortcuts > .ds-muted { padding-inline: 4px; font-size: .78rem; }
.ds-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 12px 0; }
.ds-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ds-button, .ds-nav button, .ds-row, .ds-upload { font-family: inherit; cursor: pointer; }
.ds-button, .ds-upload {
  min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-surface); color: var(--ds-ink);
  font-weight: 650; text-align: center; overflow-wrap: anywhere;
}
.ds-button.ds-hero-link { color: #fff; background: #205a53; border-color: #39736b; }
.ds-primary { background: var(--ds-gold); border-color: var(--ds-gold); color: #272005; }
.ds-button:disabled { opacity: .55; cursor: wait; }
.ds-quick { flex-direction: column; min-height: 68px; }
.ds-quick .ds-icon { color: var(--ds-teal); }
.ds-back { margin-block-end: 10px; }
.ds-list { list-style: none; margin: 0; padding: 0; }
.ds-list > :not(:first-child) { border-block-start: 1px solid var(--ds-line); }
.ds-entry { display: flex; align-items: center; min-width: 0; gap: 0; }
.ds-row {
  display: flex; align-items: center; width: 100%; flex: 1; min-width: 0; gap: 8px; padding: 11px 10px;
  min-height: 60px; text-align: start; background: transparent; color: inherit; border: 0;
}
.ds-row:focus-visible { outline-offset: -3px; }
.ds-row-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 9px; background: var(--ds-soft); color: var(--ds-teal); }
.ds-row-text { min-width: 0; flex: 1; }
.ds-row-text small, .ds-schedule small { display: block; color: var(--ds-muted); margin-block-start: 3px; }
.ds-money { flex: 0 1 auto; font-size: .8rem; }
.ds-record { padding-inline: 8px; margin-inline: 0 8px; color: var(--ds-teal); background: var(--ds-soft); font-size: .8rem; }
.ds-empty { padding: 16px; color: var(--ds-muted); }
.ds-schedule li, .ds-fields > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px; }
.ds-fields { margin-block-end: 0; }
.ds-fields dt { color: var(--ds-muted); }
.ds-fields dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.ds-fields > div + div { border-top: 1px solid var(--ds-line); }
.ds-form { display: grid; gap: 12px; margin-block-start: 12px; }
.ds-field, .ds-search { display: grid; gap: 5px; font-weight: 600; }
.ds-search { margin-block-end: 12px; }
.ds-field input, .ds-field select, .ds-field textarea, .ds-search input {
  appearance: auto; border: 1px solid var(--ds-line); border-radius: 9px; min-height: 46px; min-width: 0;
  width: 100%; background: var(--ds-surface); color: var(--ds-ink); font: inherit; font-size: 16px; padding: 8px;
}
.ds-field input[readonly] { background: var(--ds-bg); }
.ds-field textarea { min-height: 76px; resize: vertical; }
.ds-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ds-form-error, .ds-warning { color: var(--ds-danger); margin: 0; }
.ds-receipt-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-file-name { margin: 0; }
.ds-upload { position: relative; }
.ds-upload input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.ds-upload:focus-within { outline: 2px solid var(--ds-teal); outline-offset: 2px; }
.ds-receipt a { color: var(--ds-teal); display: inline-block; margin-block-start: 8px; padding: 10px 4px; }
.ds-notice { margin-block-end: 12px; background: var(--ds-soft); color: var(--ds-teal); padding: 10px; border-radius: 8px; }
.ds-nav {
  margin-block-start: auto; position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: center;
  background: #103f3a; padding: 4px 3px max(4px, env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px #102d2726;
}
.ds-nav button {
  flex: 1; max-width: 135px; min-width: min-content; min-height: 51px; padding: 4px 1px; border: 0; border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: transparent; color: #d3e9e4; font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.ds-nav button[aria-current="page"] { background: #27564f; color: var(--ds-gold); }
@media (max-width: 550px) {
  .dealer-staff #topbar { flex-wrap: wrap; gap: 4px; }
  .dealer-staff #topbar .tb-user { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
  .dealer-staff #tb-user-email { display: none; }
}
@media (max-width: 360px) {
  .ds-content { padding-inline: 10px; }
}
html[data-rf-theme="night"] .dealer-staff {
  --ds-bg: #0b1d18;
  --ds-surface: #132a24;
  --ds-ink: #f1fbf6;
  --ds-muted: #acc9bf;
  --ds-line: #36564b;
  --ds-teal: #9be3cf;
  --ds-soft: #203f36;
  --ds-danger: #ffaca3;
  color-scheme: dark;
}
.ds-button.ds-shortcut { justify-content: flex-start; text-align: start; min-height: 58px; }
.ds-shortcut .ds-icon { color: var(--ds-teal); }
.ds-shortcut small { display: block; color: var(--ds-muted); margin-block-start: 3px; }
.ds-optional summary { cursor: pointer; min-height: 44px; padding-block: 11px; color: var(--ds-teal); }
.ds-optional > .ds-field { margin-block-end: 10px; }
