:root {
  color-scheme: light;
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --ink: #17232c;
  --muted: #65727e;
  --line: #d9e3df;
  --green: #14735c;
  --green-strong: #0f604d;
  --green-soft: #e3f4ed;
  --blue: #315fc4;
  --blue-soft: #e7efff;
  --amber: #a76416;
  --amber-soft: #fff1d7;
  --red: #a34444;
  --red-soft: #ffe9e7;
  --shadow: 0 18px 42px rgba(23, 35, 44, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(20, 115, 92, 0.08), transparent 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  width: min(100%, 440px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  position: relative;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
}

.brand-row,
.screen-title,
.section-heading,
.entry-card,
.upload-panel,
.order-card-header {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 10px;
}

.brand-lockup {
  min-width: 0;
  flex: 1;
}

.brand-name {
  font-weight: 900;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
}

.icon-button {
  width: 40px;
  border-radius: 8px;
}

.icon-button.ghost {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.small-button {
  border-radius: 999px;
  padding: 0 11px;
  font-weight: 800;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px;
}

.language-switcher svg {
  flex: 0 0 auto;
  margin: 0 4px 0 6px;
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.language-switcher button.is-active {
  background: var(--green);
  color: #fff;
}

.screen {
  display: none;
  padding: 18px 14px 22px;
}

.screen.is-active {
  display: block;
}

.hero-block {
  padding: 8px 2px 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-block p:last-child,
.section-heading p,
.flow-card p,
.support-card p,
.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.entry-stack,
.form-stack,
.order-list {
  display: grid;
  gap: 10px;
}

.entry-card {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  text-align: left;
}

.entry-card span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.entry-card strong,
.entry-card small {
  display: block;
}

.entry-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.entry-mark {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.service-provider .entry-mark {
  background: var(--blue-soft);
  color: var(--blue);
}

.account-entry .entry-mark {
  background: #fff4dc;
  color: #9a5d00;
}

.auth-options {
  display: grid;
  gap: 12px;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 115, 92, 0.18);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 12px 14px;
  font-weight: 900;
  white-space: nowrap;
}

.welcome-marquee {
  display: block;
  width: 100%;
  animation: welcome-drift 8s linear infinite;
  will-change: transform;
}

.welcome-marquee-text {
  display: inline-block;
  min-width: max-content;
}

@keyframes welcome-drift {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.inline-field-button {
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(20, 115, 92, 0.28);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-strong);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.home-welcome-card {
  margin: -4px 0 12px;
}

.auth-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  text-align: left;
}

.auth-card strong,
.auth-card small {
  display: block;
}

.auth-card strong {
  font-size: 18px;
  font-weight: 900;
}

.auth-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin: 20px 2px 10px;
}

.section-heading h2,
.flow-card h2,
.support-card h2 {
  font-size: 17px;
}

.service-scroll {
  max-height: min(47dvh, 430px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  text-align: left;
}

.service-card:active,
.entry-card:active,
.primary-button:active,
.small-button:active {
  transform: translateY(1px);
}

.service-mark {
  display: grid;
  place-items: center;
  min-width: 38px;
  width: fit-content;
  max-width: 100%;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 0 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.service-card[data-tone="blue"] .service-mark {
  background: var(--blue-soft);
  color: var(--blue);
}

.service-card[data-tone="amber"] .service-mark {
  background: var(--amber-soft);
  color: var(--amber);
}

.service-card[data-tone="red"] .service-mark {
  background: var(--red-soft);
  color: var(--red);
}

.service-title {
  display: block;
  font-weight: 900;
  line-height: 1.25;
}

.service-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.screen-title {
  gap: 12px;
  margin-bottom: 16px;
}

.screen-title > div {
  flex: 1;
  min-width: 0;
}

.screen-title h1 {
  font-size: 23px;
}

.field {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.date-field-label {
  display: block;
  min-height: 16px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.field textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.45;
}

.field select[multiple] {
  min-height: 132px;
}

.quote-preferences {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  padding: 12px;
}

.quote-preferences-head {
  display: grid;
  gap: 3px;
}

.quote-preferences-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.quote-preferences-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.quote-preference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.choice-section > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.compact-choice-grid {
  grid-template-columns: 1fr;
}

.check-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 11px;
}

.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #b8c7c0;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.check-card input:checked + .check-box {
  border-color: var(--green);
  background: var(--green);
}

.check-card input:checked + .check-box::before {
  content: "✓";
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  line-height: 1.25;
}

.check-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.nested-field {
  border-style: dashed;
  background: #fbfefd;
}

.compact-field {
  margin-top: 12px;
  padding: 10px;
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-picker-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.time-picker-head,
.time-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.time-picker-head strong {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.time-slider {
  width: 100%;
  margin: 16px 0 8px;
  accent-color: var(--green);
}

.time-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--blue-soft), var(--amber-soft));
}

.time-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 4px 12px rgba(23, 35, 44, 0.22);
  -webkit-appearance: none;
}

.time-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--blue-soft), var(--amber-soft));
}

.time-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 4px 12px rgba(23, 35, 44, 0.22);
}

.time-scale {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.profile-hint button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  padding: 0;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.vehicle-option-panel {
  display: grid;
  gap: 8px;
}

.vehicle-option-panel[hidden] {
  display: none;
}

.warning-card {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #efd29e;
}

.rule-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.rule-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.profile-card h2 {
  font-size: 17px;
}

.profile-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bind-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 12px;
}

.bind-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.bind-card strong,
.bind-card small {
  display: block;
}

.bind-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.contact-app-icon {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.contact-app-icon.phone {
  background: var(--blue);
}

.contact-app-icon.wechat {
  background: #19b955;
}

.contact-app-icon.whatsapp {
  background: #25d366;
}

.upload-panel {
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed #b9c8c2;
  border-radius: 8px;
  background: #fbfefd;
  padding: 12px;
}

.upload-panel strong {
  display: block;
}

.upload-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.voice-controls {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.voice-controls audio {
  width: 170px;
  height: 34px;
}

.file-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.primary-button:hover {
  background: var(--green-strong);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  padding: 0 13px;
  font-weight: 900;
}

.admin-entry-card {
  display: grid;
  gap: 12px;
}

.admin-entry-card .secondary-button {
  width: 100%;
}

.admin-login-card > div h2 {
  font-size: 18px;
}

.admin-login-card > div p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.provider-task-section {
  margin-top: 16px;
}

.provider-task-card .provider-task-notice {
  margin-top: 10px;
}

.provider-task-action {
  width: 100%;
  margin-top: 10px;
}

.admin-screen {
  padding-bottom: 26px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.admin-module-button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  text-align: left;
}

.admin-module-button strong,
.admin-module-button span {
  display: block;
}

.admin-module-button strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.admin-module-button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-operator-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  padding: 12px;
  margin-bottom: 12px;
}

.admin-operator-card .compact-field {
  margin-top: 0;
  background: #fbfefd;
}

.admin-operator-card .small-button {
  min-height: 38px;
}

.admin-export-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-export-actions .small-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 11px;
}

.commission-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 10px 0 12px;
}

.commission-toolbar .compact-field {
  margin-top: 0;
}

.admin-stat {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.admin-stat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.admin-section {
  margin-top: 18px;
}

.admin-heading {
  margin: 0 2px 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 13px;
}

.info-card .status-pill:empty {
  display: none;
}

.info-lines {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.info-lines p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.analytics-chart-card {
  grid-column: 1 / -1;
}

.analytics-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 150px) minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.analytics-bar-label,
.analytics-bar-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.analytics-bar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar-value {
  color: var(--ink);
  text-align: right;
}

.analytics-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
}

.analytics-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #74b39f);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-card-head > div {
  min-width: 0;
}

.admin-card-head strong,
.admin-card-head small {
  display: block;
}

.admin-card-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.admin-detail {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.admin-meta div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
}

.admin-meta dt,
.admin-meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.admin-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.admin-meta dd {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.provider-admin-meta div {
  grid-template-columns: 92px minmax(0, 1fr);
}

.quote-assistant {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  padding: 12px;
}

.quote-assistant-head {
  display: grid;
  gap: 3px;
}

.quote-assistant-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.quote-assistant-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.quote-assistant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quote-assistant-result {
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  padding: 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.quote-apply-button {
  width: 100%;
}

.admin-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.admin-finance-grid .compact-field {
  margin-top: 0;
}

.admin-finance-grid input,
.admin-finance-grid select,
.admin-finance-grid textarea {
  font-size: 13px;
}

.admin-finance-grid .wide-field {
  grid-column: 1 / -1;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-actions .small-button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-save-button {
  background: var(--green-soft);
  color: var(--green);
}

.compact-empty {
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.flow-card,
.support-card,
.empty-state,
.order-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.flow-card ol {
  margin: 12px 0 0;
  padding-left: 21px;
  color: var(--muted);
  font-size: 14px;
}

.flow-card li + li {
  margin-top: 7px;
}

.privacy-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-card li + li {
  margin-top: 6px;
}

.account-profile-card[hidden] {
  display: none;
}

.account-profile-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.account-profile-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
}

.account-profile-meta dt,
.account-profile-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.account-profile-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.account-profile-meta dd {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.order-card {
  margin-top: 0;
}

.order-card-header {
  justify-content: space-between;
  gap: 10px;
}

.order-card h2 {
  font-size: 17px;
}

.status-pill {
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.order-meta,
.order-detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.order-customer-name {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.print-name {
  display: none;
}

.order-route-note {
  margin-top: 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.is-active {
  color: var(--green);
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 86px;
  left: 16px;
  z-index: 30;
  width: min(calc(100% - 32px), 408px);
  margin: 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 48px);
    border-radius: 26px;
    overflow: hidden;
  }

  .bottom-nav {
    position: sticky;
  }
}

@media (min-width: 980px) {
  body[data-screen="admin"] {
    padding: 18px;
  }

  body[data-screen="admin"] .app-shell {
    width: min(100%, 1280px);
    min-height: calc(100dvh - 36px);
    border-radius: 18px;
    padding-bottom: 0;
  }

  body[data-screen="admin"] .app-header {
    padding: 12px 18px;
  }

  body[data-screen="admin"] .admin-screen {
    padding: 22px;
  }

  body[data-screen="admin"] .bottom-nav {
    display: none;
  }

  body[data-screen="admin"] .screen-title h1 {
    font-size: 32px;
  }

  body[data-screen="admin"] .admin-stats,
  body[data-screen="admin"] .admin-module-grid,
  body[data-screen="admin"] .admin-export-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-screen="admin"] .admin-stat {
    min-height: 96px;
    padding: 16px;
  }

  body[data-screen="admin"] .admin-stat strong {
    font-size: 34px;
  }

  body[data-screen="admin"] .admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  body[data-screen="admin"] [data-admin-request-list] {
    grid-template-columns: 1fr;
  }

  body[data-screen="admin"] .admin-card {
    padding: 16px;
  }

  body[data-screen="admin"] .admin-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-screen="admin"] .admin-meta div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body[data-screen="admin"] .quote-assistant-grid,
  body[data-screen="admin"] .admin-finance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-screen="admin"] .admin-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 25px;
  }

  .service-grid,
  .field-group,
  .bind-grid,
  .contact-actions,
  .choice-grid,
  .admin-stats,
  .admin-export-actions,
  .commission-toolbar,
  .admin-finance-grid {
    grid-template-columns: 1fr;
  }

  .service-scroll {
    max-height: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell {
    width: 100%;
    min-height: auto;
    box-shadow: none;
    padding: 0;
  }

  .app-header,
  .bottom-nav,
  .screen:not([data-screen="orders"]) {
    display: none !important;
  }

  .screen[data-screen="orders"] {
    display: block !important;
  }

  .small-button {
    display: none;
  }

  .order-card,
  .empty-state {
    break-inside: avoid;
  }

  .screen-name {
    display: none;
  }

  .print-name {
    display: inline;
  }
}
