:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --admin-bg: #0f172a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-blue: 0 20px 35px rgba(37, 99, 235, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: 220ms ease;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.site,
.site-hero {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  margin: 0 0 32px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.admin-brand {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  gap: 2px;
  min-width: 0;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-kicker,
.admin-brand span {
  grid-column: 2;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-kicker {
  display: none;
}

.brand strong,
.admin-brand strong,
h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
}

.brand-title,
.brand strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-wordmark {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.site-wordmark-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  -webkit-text-fill-color: currentColor;
  background: none !important;
  background-image: none !important;
}

.site-name-compact {
  display: none !important;
}

.site-name-full,
.site-name-compact {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

@media (min-width: 768px) {
  .site-name-full {
    display: inline-block !important;
  }

  .site-name-compact {
    display: none !important;
  }
}

.site-header-actions {
  flex: 0 0 auto;
}

.topbar-auth-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.nav,
.topbar-actions,
.hero-actions,
.upload-actions,
.inline-actions,
.tabs,
.table-actions,
.check-grid,
.detail-grid,
.quote-grid,
.inventory-grid,
.metric-grid,
.orders-grid,
.detail-columns,
.address-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav {
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.nav a.is-active,
.mobile-nav-links a.is-active {
  color: var(--primary);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

.nav-desktop {
  display: flex;
}

.mobile-nav-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mobile-nav-panel {
  display: none;
  grid-column: 1 / -1;
  padding: 0 0 6px;
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.mobile-nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.mobile-nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.geo-content-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.welcome,
.muted,
small,
p {
  color: var(--muted);
  line-height: 1.65;
}

p {
  margin: 0;
}

small {
  display: block;
  font-size: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.tab,
.table-actions button {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease), color var(--ease);
}

.primary-button {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

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

.secondary-button {
  background: var(--primary-soft);
  border-color: #bfdbfe;
  color: var(--primary);
}

.secondary-button:hover {
  background: #dbeafe;
}

.ghost-button,
.tab,
.icon-button,
.table-actions button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.ghost-button:hover,
.icon-button:hover,
.tab:hover,
.table-actions button:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: var(--primary-soft);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.tab:hover,
.inventory-card:hover,
.feature-card:hover,
.metric-card:hover,
.premium-panel:hover,
.order-card:hover,
.admin-card:hover,
.detail-card:hover,
.vehicle-card:hover,
.address-card:hover,
.dropzone:hover {
  transform: translateY(-2px);
}

.hero-shell,
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 32px;
  align-items: start;
}

.hero-copy,
.showcase-card,
.wide-card,
.sticky-brief,
.orders-shell,
.detail-shell,
.auth-card,
.overlay-card,
.modal,
.admin-card,
.vehicle-card {
  padding: 32px;
}

.premium-panel,
.feature-card,
.inventory-card,
.order-card,
.admin-card,
.admin-table,
.metric-card,
.sticky-brief,
.dropzone,
.address-card,
.vehicle-card,
.detail-card,
.auth-card,
.modal,
.orders-shell,
.detail-shell {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.premium-panel:hover,
.feature-card:hover,
.inventory-card:hover,
.order-card:hover,
.admin-card:hover,
.metric-card:hover,
.vehicle-card:hover,
.address-card:hover {
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 56px 48px;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.hero-copy:hover {
  transform: none;
  box-shadow: none;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 18px 0 18px;
}

.hero-copy p {
  max-width: 54ch;
  font-size: 19px;
}

.home-hero-carousel {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 56%, #dbeafe 100%);
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

.home-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.home-hero-dots button.active {
  width: 28px;
  background: #2563eb;
}

.flow-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.flow-line span,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  border: 8px solid #fff;
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.13);
}

.showcase-card::before,
.showcase-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}

.showcase-card::before {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  background: rgba(79, 70, 229, 0.13);
}

.showcase-card::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -90px;
  background: rgba(37, 99, 235, 0.11);
}

.showcase-grid,
.feature-card,
.media-list,
.fee-sections,
.inventory-panel,
.stop-section,
.form-stack {
  display: grid;
  gap: 16px;
}

.showcase-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  min-height: 168px;
  padding: 24px;
  border-radius: 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.feature-icon::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 14px;
  border-radius: 8px;
  background: currentColor;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 24px;
}

.step {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted-light);
}

.step span {
  font-size: 12px;
  font-weight: 900;
}

.step.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.wide-card {
  display: grid;
  gap: 18px;
}

.dropzone,
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dropzone strong {
  color: var(--text);
}

input[type="file"]:not([style*="display:none"]) {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease), color var(--ease);
}

input[type="file"]:not([style*="display:none"]):hover,
input[type="file"]:not([style*="display:none"]):focus {
  border-color: #bfdbfe;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

input[type="file"]:not([style*="display:none"])::file-selector-button {
  margin-right: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}

input[type="file"]:not([style*="display:none"])::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

input[type="file"]:not([style*="display:none"])::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 12px 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.media-item,
.item-row,
.fee-row,
.admin-row,
.stop-card,
.summary-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.media-item {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface-soft);
}

.media-meta,
.counter,
.counter.large {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #4f46e5);
}

.sticky-brief {
  position: sticky;
  top: 92px;
  align-self: start;
}

.sticky-brief ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.items-table,
.fee-card,
.summary-card,
.detail-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.item-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.item-row:last-child,
.fee-row:last-child,
.admin-row:last-child {
  border-bottom: 0;
}

.counter button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.counter button:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: var(--primary-soft);
}

.price,
.fee-row span,
.order-meta span:first-child {
  color: var(--text);
  font-weight: 900;
}

.inventory-head,
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.inventory-card,
.metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: left;
}

.inventory-card {
  border-radius: 24px;
}

.metric-card {
  min-height: 116px;
  border-radius: 28px;
}

.metric-card span {
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.metric-card strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.metric-card.accent {
  background: var(--primary-soft);
  border-color: #dbeafe;
}

.metric-card.accent strong,
.metric-card.accent span {
  color: var(--primary);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.toggle,
.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.toolbar input,
.inventory-head input,
.stop-card input,
.stop-card select {
  min-height: 48px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.toolbar input:focus,
.inventory-head input:focus,
.stop-card input:focus,
.stop-card select:focus {
  border-color: var(--primary);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.stop-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.fee-sections {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.fee-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.summary-card {
  align-self: start;
  background: #fff;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
}

.order-status {
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-draft .order-status {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-ordered .order-status {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-completed .order-status {
  background: var(--success-soft);
  color: var(--success);
}

.empty-state,
.overlay,
.standalone-shell {
  display: grid;
  place-items: center;
}

.empty-state {
  min-height: 140px;
  color: var(--muted);
}

.standalone-shell {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 32px;
}

.standalone-copy h1 {
  margin: 14px 0;
}

.auth-card {
  width: 100%;
  display: grid;
  gap: 16px;
}

.back-link {
  color: var(--muted);
  font-weight: 800;
}

.overlay {
  position: fixed;
  inset: 0;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  z-index: 50;
}

.modal,
.overlay-card {
  width: min(100%, 560px);
}

.loader {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid rgba(37, 99, 235, 0.16);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin: 0 auto 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-width: 220px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 32px 24px;
  background: var(--admin-bg);
  color: #fff;
  overflow-y: auto;
  box-shadow: 20px 0 50px rgba(15, 23, 42, 0.16);
}

.admin-brand {
  position: relative;
  min-height: 40px;
  margin-bottom: 56px;
}

.admin-brand img,
.admin-brand > div,
.brand img,
.brand > div {
  grid-row: 1 / span 2;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.admin-brand span {
  color: #93c5fd;
}

.admin-brand strong {
  grid-column: 2;
  color: #fff;
}

.admin-sidebar nav {
  display: grid;
  gap: 12px;
}

.admin-sidebar nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 18px;
  color: #94a3b8;
  font-weight: 800;
}

.admin-sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  padding: 40px;
}

.admin-page {
  display: grid;
  gap: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.admin-card,
.admin-table {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.admin-card {
  padding: 28px;
}

.admin-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}

.admin-row-head {
  color: var(--muted-light);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tabs {
  gap: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.text-button.danger {
  color: var(--danger);
}

.admin-status-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-status-button.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
}

.two-column-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.address-select-shell,
.address-building-field {
  min-height: 58px;
  border-radius: 1rem;
  background: #f8fafc;
  border: 2px solid transparent;
  box-shadow: none;
  color: #020617;
  font-size: 17px;
  font-weight: 800;
}

.address-select-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.address-select-shell::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 3px solid #94a3b8;
  border-bottom: 3px solid #94a3b8;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.address-select-shell:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: none;
}

.address-pill-select {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 0 34px 0 16px;
  appearance: none;
  background: transparent;
  outline: none;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.address-building-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 18px;
  padding-right: 18px;
  background: #f8fafc;
}

.address-building-field span {
  flex: none;
}

.address-building-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  outline: none;
  color: #64748b;
  font-weight: 800;
}

.address-building-field input::placeholder {
  color: #c7cbd1;
}

.admin-location-input-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-location-input-row .icon-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.route-map-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 24% 28%, rgba(96, 165, 250, 0.2), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(34, 197, 94, 0.18), transparent 24%),
    #eef3f8;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.route-point {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.route-point-start {
  left: 10%;
  top: 74%;
}

.route-point-end {
  right: 9%;
  top: 17%;
  background: #10b981;
}

.route-point-stop-1 {
  left: 36%;
  top: 57%;
}

.route-point-stop-2 {
  left: 51%;
  top: 38%;
}

.route-point-stop-3 {
  left: 68%;
  top: 28%;
}

.location-modal {
  width: min(760px, calc(100vw - 32px));
}

.location-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.location-current-button {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-search-row input {
  min-height: 52px;
  border-radius: 18px;
  border: 2px solid transparent;
  background: var(--surface-soft);
  padding: 0 16px;
  outline: none;
}

.location-map-panel {
  position: relative;
  min-height: 180px;
  border-radius: 24px;
  overflow: hidden;
}

.location-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
}

.location-results {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.location-result {
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.location-result strong,
.location-result span {
  display: block;
}

.location-result span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.location-result.active {
  border-color: var(--primary);
  background: #eff6ff;
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .overlay {
    align-items: flex-start;
    padding: 14px 10px;
    overflow-y: auto;
  }

  .modal,
  .location-modal {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 28px;
  }

  .location-modal .section-head {
    align-items: flex-start;
    gap: 12px;
  }

  .location-modal .section-head h3 {
    font-size: 22px;
  }

  .location-modal .section-head p {
    font-size: 15px;
    line-height: 1.6;
  }

  .location-modal .icon-button {
    flex: 0 0 auto;
  }

  .location-search-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .location-search-row input {
    min-width: 0;
    font-size: 16px;
    padding: 0 12px;
  }

  .location-search-row .primary-button {
    min-width: 0;
    padding: 0 12px;
    white-space: normal;
  }

  .location-current-button {
    width: 100%;
    min-height: 50px;
  }

  .location-map-panel {
    min-height: 220px;
  }

  .location-results {
    max-height: 180px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 18px;
    max-width: none;
    transform: none;
  }
}

.service-check {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-content: center;
}

.service-check::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  background: var(--primary);
  transition: transform var(--ease);
}

.service-check:checked {
  border-color: var(--primary);
}

.service-check:checked::after {
  transform: scale(1);
}

.schedule-modal {
  width: min(520px, calc(100vw - 32px));
}

.schedule-native-input {
  width: 100%;
  min-height: 58px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: var(--surface-soft);
  padding: 0 18px;
  font-weight: 900;
  outline: none;
}

.schedule-native-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.schedule-option-grid {
  display: grid;
  gap: 12px;
}

.schedule-option {
  min-height: 56px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 900;
}

.schedule-option.active {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
}

.labor-stepper {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.labor-stepper-btn {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
  transition: var(--ease);
}

.labor-stepper-btn:hover {
  color: var(--primary);
  opacity: 0.72;
}

.labor-stepper-value {
  min-height: 58px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.labor-stepper-value strong {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.tab.active {
  background: #fff;
  border-color: #bfdbfe;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.ai-progress-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ai-recognition-progress {
  width: 12%;
  animation: ai-progress-hold 28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-discovery-card {
  animation: ai-discovery-pop 3s ease-in-out infinite;
}

.ai-discovery-card::before {
  content: "发现：大号皮沙发 x1";
}

.ai-discovery-card {
  font-size: 0;
}

.ai-discovery-card::before {
  font-size: 1.5rem;
}

.ai-discovery-card-delay {
  animation-delay: 1.5s;
}

.ai-discovery-card-delay::before {
  content: "发现：实木餐桌 x1";
}

@keyframes ai-progress-hold {
  0% {
    width: 8%;
  }
  8% {
    width: 42%;
  }
  22% {
    width: 58%;
  }
  45% {
    width: 72%;
  }
  70% {
    width: 84%;
  }
  100% {
    width: 92%;
  }
}

@keyframes ai-discovery-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  12%,
  48% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  62%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.ai-discovery-card:nth-child(1)::before {
  animation: ai-discovery-text-a 12s steps(1, end) infinite;
}

.ai-discovery-card:nth-child(2)::before {
  animation: ai-discovery-text-b 12s steps(1, end) infinite;
}

@keyframes ai-discovery-text-a {
  0%,
  12.49% {
    content: "发现：大号皮沙发 x1";
  }
  12.5%,
  24.99% {
    content: "发现：双开门冰箱 x1";
  }
  25%,
  37.49% {
    content: "发现：办公椅 x2";
  }
  37.5%,
  49.99% {
    content: "发现：衣柜 x1";
  }
  50%,
  62.49% {
    content: "发现：床垫 x1";
  }
  62.5%,
  74.99% {
    content: "发现：立式空调 x1";
  }
  75%,
  87.49% {
    content: "发现：书桌 x1";
  }
  87.5%,
  100% {
    content: "发现：电视机 x1";
  }
}

@keyframes ai-discovery-text-b {
  0%,
  12.49% {
    content: "发现：实木餐桌 x1";
  }
  12.5%,
  24.99% {
    content: "发现：三人沙发 x1";
  }
  25%,
  37.49% {
    content: "发现：滚筒洗衣机 x1";
  }
  37.5%,
  49.99% {
    content: "发现：餐椅 x4";
  }
  50%,
  62.49% {
    content: "发现：双人床 x1";
  }
  62.5%,
  74.99% {
    content: "发现：茶几 x1";
  }
  75%,
  87.49% {
    content: "发现：收纳柜 x1";
  }
  87.5%,
  100% {
    content: "发现：小件箱 x6";
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1023px) {
  .hero-shell,
  .page-grid,
  .standalone-shell,
  .fee-sections,
  .address-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 0 0 28px 28px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site,
  .site-hero {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 0;
  }

  .address-building-field {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .address-building-field span {
    font-size: 12px;
    line-height: 1.2;
    color: #94a3b8;
  }

  .address-building-field input {
    width: 100%;
    min-height: 28px;
    font-size: 16px;
    color: #0f172a;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 0;
  }

  .brand-kicker {
    display: none;
  }

  .brand-title,
  .site-wordmark-text {
    line-height: 1.2;
  }

  .site-name-full {
    display: none;
  }

  .site-name-compact {
    display: inline-block;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
  }

  .brand-title {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
  }

  .site-wordmark-text {
    color: var(--primary) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    background-image: none !important;
  }

  .site-header-inner {
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .nav-desktop,
  .welcome {
    display: none;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .topbar-auth-control,
  .topbar-actions .primary-button,
  .topbar-actions .ghost-button {
    min-height: 44px;
    padding: 0 18px !important;
    font-size: 15px;
    white-space: nowrap;
  }

  .mobile-nav-button {
    display: inline-flex;
  }

  .mobile-nav-panel.open {
    display: block;
    grid-column: 1 / -1;
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy,
  .showcase-card,
  .wide-card,
  .sticky-brief,
  .orders-shell,
  .detail-shell,
  .auth-card,
  .overlay-card,
  .modal,
  .admin-card,
  .vehicle-card {
    padding: 22px;
  }

  .hero-copy {
    padding: 34px 8px 8px;
  }

  .showcase-grid,
  .item-row,
  .stop-card,
  .admin-row,
  .detail-grid,
  .detail-columns,
  .inline-fields,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .progress-track {
    width: 120px;
  }

  .admin-main {
    padding: 20px 12px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
