.topbar h1 {
  margin: 4px 0 14px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 720;
}

.tutorial-overview-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tutorial-overview-form label, .tutorial-step-fields label { display: grid; gap: 7px; color: #526176; font-size: 13px; font-weight: 650; }
.tutorial-overview-form textarea, .tutorial-step-fields textarea { min-height: 82px; resize: vertical; }
.tutorial-safety-field { grid-column: 1 / -1; }
.tutorial-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5ebf2; }
.tutorial-list-head > div { display: flex; align-items: baseline; gap: 10px; }
.tutorial-step-list { display: grid; gap: 14px; margin-top: 14px; }
.tutorial-step-item { display: grid; grid-template-columns: 52px 170px minmax(0, 1fr) 44px; gap: 14px; padding: 16px; border: 1px solid #dfe7f0; border-radius: 7px; background: #f8fafc; }
.tutorial-step-order { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #65748a; }
.tutorial-step-order strong { color: #17243a; font-size: 26px; }
.tutorial-step-order span { font-size: 11px; }
.tutorial-step-image { display: grid; align-content: start; gap: 9px; }
.tutorial-step-image img, .tutorial-step-image > span { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; }
.tutorial-step-image > span { display: grid; place-items: center; border: 1px dashed #b9c5d4; color: #7b899b; background: #fff; font-size: 12px; }
.tutorial-step-fields { display: grid; gap: 11px; min-width: 0; }
.tutorial-step-field-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; }
.tutorial-step-fields textarea { min-height: 68px; }
.tutorial-step-actions { display: grid; align-content: start; gap: 8px; }
.tutorial-step-actions button { width: 44px; min-width: 44px; padding: 0; }

@media (max-width: 760px) {
  .tutorial-overview-form, .tutorial-step-field-row { grid-template-columns: 1fr; }
  .tutorial-safety-field { grid-column: auto; }
  .tutorial-step-item { grid-template-columns: 42px minmax(0, 1fr); }
  .tutorial-step-image, .tutorial-step-fields { grid-column: 2; }
  .tutorial-step-actions { grid-column: 2; display: flex; }
}

.topbar .muted {
  color: var(--ui-muted);
}

.admin-role-badge {
  border-color: #cfe3fb;
  border-radius: 6px;
  color: var(--ui-blue-dark);
  background: #edf5ff;
}

.topbar-store {
  color: var(--ui-muted);
}

.topbar-store select {
  border-color: var(--ui-border);
  color: var(--ui-text);
  background: var(--ui-surface);
}

.topbar .link-button.secondary,
.topbar button.secondary {
  color: var(--ui-text);
  background: var(--ui-surface);
}

.store-management-shortcut {
  color: #ffffff;
  background: var(--ui-blue);
}

.admin-module-nav {
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-color: var(--ui-glass-border);
  border-radius: 8px;
  background: rgba(232, 232, 237, 0.76);
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.05);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.admin-module-nav button {
  border: 0;
  border-radius: 6px;
  color: var(--ui-muted);
  background: transparent;
}

.admin-module-nav button:hover {
  color: var(--ui-text);
  background: rgba(255, 255, 255, 0.54);
}

.admin-module-nav button.active {
  color: var(--ui-text);
  background: var(--ui-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.login-card,
.panel,
.stats article,
.metric-card {
  border-color: var(--ui-glass-border);
  border-radius: 8px;
  background: var(--ui-glass-strong);
  box-shadow: 0 8px 28px rgba(29, 29, 31, 0.055), 0 0 0 1px rgba(210, 210, 215, 0.48);
}

.login-card {
  border-top: 5px solid var(--ui-blue);
  background: var(--ui-glass);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

.login-card h1 {
  color: var(--ui-text);
  font-size: 28px;
  line-height: 1.25;
}

.eyebrow {
  color: var(--ui-blue);
}

.stats {
  gap: 12px;
  margin-top: 14px;
}

.stats article,
.metric-card {
  min-height: 104px;
  border-top: 4px solid var(--ui-blue);
}

.stats span,
.metric-card span,
.metric-card small {
  color: var(--ui-muted);
}

.stats strong,
.metric-card strong {
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.panel {
  margin-top: 14px;
  padding: 20px;
}

.panel h2 {
  color: var(--ui-text);
  font-weight: 700;
}

.panel-head {
  align-items: flex-start;
}

.badge {
  border-radius: 6px;
  color: var(--ui-text);
  background: var(--ui-fill);
}

.badge.success {
  color: #147a3f;
  background: #eaf7ef;
}

.badge.warning {
  color: var(--ui-amber);
  background: #fff3e6;
}

.segmented {
  border-radius: 8px;
  background: #e8e8ed;
}

.segmented button {
  color: var(--ui-muted);
  background: transparent;
}

.segmented button.active {
  color: var(--ui-text);
  background: var(--ui-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.store-manage-item,
.device-integration-panel,
.operation-box,
.group-buy-plan-item,
.integration-status,
.device-control-info,
.equipment-row,
.recharge-mode-setting,
.duration-recharge-plan-row,
.package-item,
.device-item,
.ad-item,
.manager-item,
.user-detail {
  border-color: var(--ui-border);
  border-radius: 8px;
  background: var(--ui-surface-subtle);
  box-shadow: none;
}

.store-manage-photo img,
.device-photo img,
.ad-preview img,
.device-photo {
  border-radius: 6px;
}

.location-status.ready,
.equipment-running {
  color: var(--ui-green);
}

.location-status.missing,
.error-text {
  color: var(--ui-red);
}

.toggle-control input[type="checkbox"],
.recharge-mode-setting input[type="checkbox"] {
  accent-color: var(--ui-blue);
}

.data-table-wrap {
  border-color: var(--ui-border);
}

.data-table th,
.data-table td,
.table-list > *,
.row {
  border-color: var(--ui-border);
}

.data-table th {
  color: var(--ui-muted);
  background: var(--ui-surface-subtle);
}

.data-table tbody th {
  color: inherit;
  background: transparent;
}

.data-table tbody tr:hover {
  background: #f5f9ff;
}

.trend-bars .income::-webkit-progress-value,
.trend-bars .income::-moz-progress-bar {
  background: var(--ui-blue);
}

.trend-bars .wash::-webkit-progress-value,
.trend-bars .wash::-moz-progress-bar {
  background: var(--ui-green);
}

.site-footer,
.site-footer a {
  color: var(--ui-muted);
}

.login:not(.hidden) .login-card,
.dashboard:not(.hidden) .topbar,
.dashboard:not(.hidden) .admin-module-nav,
#dashboardView > section:not(.admin-view-hidden) {
  animation: precision-view-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes precision-view-enter {
  from {
    opacity: 0.84;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 961px) {
  .topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
  }
}

@media (max-width: 960px) {
  .topbar {
    display: block;
    min-height: 0;
  }

  .topbar-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .link-button,
  .login:not(.hidden) .login-card,
  .dashboard:not(.hidden) .topbar,
  .dashboard:not(.hidden) .admin-module-nav,
  #dashboardView > section:not(.admin-view-hidden) {
    transition: none;
    animation: none;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding: 10px 12px 20px;
  }

  .topbar {
    min-height: 0;
    padding: 18px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .topbar-store {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    height: auto;
  }

  .topbar-store select {
    width: 100%;
  }

  .admin-module-nav {
    position: sticky;
    top: 0;
    z-index: 19;
  }

  .panel {
    margin-top: 10px;
    padding: 16px;
  }

  .stats,
  .metric-grid {
    gap: 8px;
  }

  .stats article,
  .metric-card {
    min-height: 94px;
    padding: 14px;
  }

  .panel-head {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .dashboard {
    padding-right: 9px;
    padding-left: 9px;
  }

  .topbar,
  .panel {
    border-radius: 7px;
  }

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

  .topbar-actions .link-button,
  .topbar-actions button {
    min-height: 40px;
  }

  .admin-module-nav button {
    min-width: 96px;
  }

  .device-integration-grid,
  .camera-text-grid,
  .camera-tts-form,
  .pricing-form,
  .account-form,
  .recharge-limit-form {
    grid-template-columns: 1fr;
  }
}

/* Responsive operations layout: dense on desktop, touch-first on phones. */
@media (min-width: 1100px) {
  .dashboard:not(.hidden) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .dashboard > .topbar,
  .dashboard > .admin-module-nav,
  .dashboard > .stats,
  .dashboard > .panel {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .dashboard > .desktop-half:not(.admin-view-hidden) {
    grid-column: span 6;
    height: 100%;
  }

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

  .dashboard > .desktop-half .pricing-form,
  .dashboard > .desktop-half .account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard > .desktop-half .pricing-preview,
  .dashboard > .desktop-half .account-form label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1099px) {
  .dashboard:not(.hidden) {
    display: block;
  }

  .dashboard > .panel,
  .dashboard > .stats {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .dashboard {
    padding: 10px 10px 20px;
  }

  .topbar {
    padding: 16px;
  }

  .topbar h1 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-store {
    grid-column: 1 / -1;
  }

  .topbar-actions .link-button,
  .topbar-actions button {
    width: 100%;
    min-width: 0;
  }

  .admin-module-nav {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .admin-module-nav::-webkit-scrollbar {
    display: none;
  }

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

  .stats article {
    min-width: 0;
    min-height: 88px;
    margin-top: 0;
    padding: 12px;
  }

  .stats strong {
    margin-top: 8px;
    font-size: 24px;
  }

  .panel {
    padding: 15px;
  }

  .panel-head {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head > button,
  .panel-head > .badge,
  .panel-head > .panel-badges,
  .panel-head > .segmented {
    align-self: stretch;
  }

  .panel-head > .badge {
    display: flex;
    justify-content: center;
  }

  .panel-badges {
    justify-content: flex-start;
  }

  .metric-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 92px;
    margin-top: 0;
  }

  .trend-row {
    grid-template-columns: 42px minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ui-border);
  }

  .trend-row strong {
    text-align: right;
  }

  .trend-row em {
    grid-column: 2 / 4;
    text-align: right;
  }

  .settlement-list-main {
    align-items: stretch;
    flex-direction: column;
  }

  .settlement-list-main .badge {
    width: max-content;
  }

  .data-table-wrap {
    overflow: visible;
    border-top: 0;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tbody {
    display: grid;
    gap: 10px;
  }

  .data-table tr {
    padding: 12px 14px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface-subtle);
  }

  .data-table td,
  .data-table td:first-child {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }

  .data-table td::before {
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  .data-table td:nth-child(1)::before { content: "用户"; }
  .data-table td:nth-child(2)::before { content: "手机号"; }
  .data-table td:nth-child(3)::before { content: "余额"; }
  .data-table td:nth-child(4)::before { content: "累计消费"; }
  .data-table td:nth-child(5)::before { content: "洗车次数"; }
  .data-table td:nth-child(6)::before { content: "注册时间"; }
  .data-table td:nth-child(7)::before { content: "最近活跃"; }

  .data-table td strong,
  .data-table td small {
    text-align: right;
  }

  .table-toolbar,
  .inline-field {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-field select {
    width: 100%;
  }

  .integration-status,
  .equipment-row {
    align-items: stretch;
    flex-direction: column;
  }

  .equipment-control {
    width: 100%;
    align-items: stretch;
  }

  .equipment-control button {
    width: 100%;
  }

  .site-footer {
    padding-right: 14px;
    padding-left: 14px;
    text-align: center;
  }
}

@media (max-width: 340px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .topbar-store {
    grid-column: auto;
  }
}

.cost-panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 10px;
}

.cost-panel-actions label {
  min-width: 150px;
  margin: 0;
  font-size: 13px;
}

.cost-panel-actions select {
  margin-top: 6px;
}

.cost-panel-actions button {
  min-width: 138px;
  height: 44px;
  padding: 0 14px;
}

.cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cost-summary-item {
  min-width: 0;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--ui-border);
  border-top: 4px solid var(--ui-blue);
  border-radius: 8px;
  background: var(--ui-surface-subtle);
}

.cost-summary-item:nth-child(2) {
  border-top-color: #74777d;
}

.cost-summary-item:nth-child(3),
.cost-summary-item:nth-child(4) {
  border-top-color: var(--ui-green);
}

.cost-summary-item span,
.cost-summary-item small,
.cost-summary-item strong {
  display: block;
}

.cost-summary-item span,
.cost-summary-item small {
  color: var(--ui-muted);
}

.cost-summary-item span {
  font-size: 13px;
  font-weight: 700;
}

.cost-summary-item strong {
  margin-top: 9px;
  color: var(--ui-text);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.cost-summary-item strong.negative {
  color: var(--ui-red);
}

.cost-summary-item small {
  margin-top: 7px;
  line-height: 1.4;
}

.cost-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cost-form label {
  margin: 0;
}

.cost-form input {
  margin-top: 7px;
}

.cost-updated-at {
  margin: 12px 0 0;
}

@media (max-width: 760px) {
  .cost-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cost-panel-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .cost-panel-actions label,
  .cost-panel-actions button {
    width: 100%;
  }

  .cost-panel-actions button {
    margin-top: 0;
  }

  .cost-summary-item {
    min-height: 102px;
    padding: 12px;
  }

  .cost-summary-item strong {
    font-size: 23px;
  }
}

/* Store-scoped bay records */
.store-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.store-device-summary {
  min-width: 0;
}

.device-record-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ui-border, #dbe3ea);
}

.device-record-details summary {
  min-height: 42px;
  padding: 11px 2px 0;
  color: var(--ui-blue, #1677ff);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.device-record-form,
.device-create-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--ui-border, #dbe3ea);
  border-radius: 8px;
  background: var(--ui-surface, #ffffff);
}

.device-create-form[hidden] {
  display: none;
}

.device-create-head,
.device-record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-create-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.device-create-head span {
  color: var(--ui-muted, #6b7280);
  font-size: 12px;
}

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

.device-record-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--ui-muted, #52525b);
  font-size: 13px;
  font-weight: 700;
}

.device-record-grid input,
.device-record-grid textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.device-record-grid input:disabled {
  color: #6b7280;
  background: #f2f2f4;
}

.device-record-wide {
  grid-column: 1 / -1;
}

.device-record-actions {
  justify-content: flex-end;
}

.icon-button {
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--ui-border, #dbe3ea);
  border-radius: 6px;
  color: var(--ui-text, #111827);
  background: var(--ui-surface, #ffffff);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 520px) {
  .device-record-grid {
    grid-template-columns: 1fr;
  }

  .device-record-wide {
    grid-column: auto;
  }

  .device-record-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .device-record-actions button {
    width: 100%;
  }
}

.desktop-sidebar,
.desktop-workspace-title {
  display: none;
}

@media (min-width: 1100px) {
  html {
    scroll-behavior: smooth;
    scrollbar-color: #aebaca #e9eef4;
    scrollbar-width: thin;
  }

  body {
    background: #edf2f7;
  }

  body::selection {
    color: #ffffff;
    background: #1769e0;
  }

  .dashboard:not(.hidden) {
    width: calc(100% - 224px);
    max-width: none;
    margin: 0 0 0 224px;
    padding: 0 24px 32px;
    gap: 16px;
  }

  .desktop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: 224px;
    min-height: 100vh;
    overflow-y: auto;
    flex-direction: column;
    padding: 18px 14px;
    color: #d9e4f2;
    background: #111a2d;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
  }

  .desktop-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .desktop-brand-mark {
    display: inline-flex;
    width: 38px;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #ffffff;
    background: #1769e0;
    font-size: 14px;
    font-weight: 800;
  }

  .desktop-brand > div {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .desktop-brand strong {
    color: #ffffff;
    font-size: 16px;
  }

  .desktop-brand span:last-child {
    color: #91a3bb;
    font-size: 11px;
  }

  .desktop-nav {
    display: grid;
    gap: 4px;
    margin-top: 14px;
  }

  .desktop-nav p {
    margin: 18px 10px 7px;
    color: #71839c;
    font-size: 11px;
    font-weight: 700;
  }

  .desktop-nav button {
    position: relative;
    width: 100%;
    min-height: 42px;
    padding: 0 12px 0 15px;
    border: 0;
    border-radius: 6px;
    color: #b9c7d9;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
  }

  .desktop-nav button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
  }

  .desktop-nav button.active {
    color: #ffffff;
    background: #1769e0;
  }

  .desktop-nav button.active::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #8fc2ff;
    content: "";
    transform: translateY(-50%);
  }

  .desktop-nav button:focus-visible {
    outline-color: rgba(143, 194, 255, 0.7);
  }

  .desktop-system-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 18px 10px 4px;
    color: #91a3bb;
    font-size: 12px;
  }

  .desktop-system-state i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #2fbf71;
    box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.14);
  }

  .desktop-system-state.is-checking i {
    background: #7b8da6;
    box-shadow: 0 0 0 3px rgba(123, 141, 166, 0.14);
  }

  .desktop-system-state.is-offline,
  .desktop-system-state.is-degraded,
  .desktop-system-state.is-expired {
    color: #ffc875;
  }

  .desktop-system-state.is-offline i,
  .desktop-system-state.is-degraded i,
  .desktop-system-state.is-expired i {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  }

  .dashboard > .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    min-height: 82px;
    margin: 0 -24px;
    padding: 13px 24px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #d9e2ec;
    border-radius: 0;
    color: #162033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
  }

  .topbar > div:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .desktop-workspace-title {
    display: inline-flex;
    grid-row: 1 / span 2;
    align-items: center;
    align-self: stretch;
    padding-right: 13px;
    border-right: 1px solid #e2e8f0;
    color: #1769e0;
    font-size: 13px;
    font-weight: 750;
  }

  .topbar h1 {
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar #storeAddress {
    margin: 3px 0 0;
    overflow: hidden;
    color: #728096;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .admin-role-badge {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
    margin: 3px 0 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #728096;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    display: flex;
    max-width: 720px;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }

  .topbar-store {
    height: 36px;
    color: #66758b;
    font-size: 12px;
  }

  .topbar-store select {
    width: 156px;
    height: 36px;
    padding-right: 28px;
  }

  .topbar .link-button,
  .topbar button {
    min-width: 58px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .admin-module-nav {
    display: none !important;
  }

  .desktop-section-hidden {
    display: none !important;
  }

  .dashboard > .stats {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
  }

  .stats article {
    grid-column: span 2;
    min-height: 86px;
    padding: 15px 16px;
    border: 1px solid #dfe7f0;
    border-top: 1px solid #dfe7f0;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
  }

  .stats article:nth-child(n + 7) {
    grid-column: span 4;
  }

  .stats span {
    color: #68778c;
    font-size: 12px;
    font-weight: 600;
  }

  .stats strong {
    margin-top: 9px;
    color: #162033;
    font-size: 24px;
    line-height: 1;
  }

  .dashboard > .panel {
    min-width: 0;
    margin-top: 0;
    padding: 18px;
    border: 1px solid #dfe7f0;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  }

  .panel h2 {
    color: #1b2638;
    font-size: 17px;
    font-weight: 720;
  }

  .panel-head .muted {
    max-width: 78ch;
    margin: 5px 0 0;
    color: #758399;
    font-size: 12px;
    line-height: 1.55;
  }

  .panel-head {
    min-height: 42px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
  }

  .panel-head + .metric-grid,
  .panel-head + .trend-list,
  .panel-head + .table-list,
  .panel-head + .device-control-info,
  .panel-head + .equipment-list,
  .panel-head + .pricing-form,
  .panel-head + .account-form,
  .panel-head + .search-row,
  .panel-head + .recharge-mode-settings {
    margin-top: 14px;
  }

  #performancePanel {
    grid-column: span 5;
  }

  #trendPanel {
    grid-column: span 7;
  }

  #settlementPanel {
    grid-column: span 12;
  }

  #todayOrdersPanel,
  #recentOrdersPanel,
  #auxiliaryEquipmentPanel,
  #paymentPanel,
  #pricingPanel,
  #serviceMessagesPanel {
    grid-column: span 6;
  }

  #adminAccountPanel,
  #adManagementPanel,
  #groupBuyPanel,
  #userSearchPanel,
  #userAnalyticsPanel,
  #detailCenterPanel,
  #deviceControlPanel,
  #cameraDisplayPanel,
  #activeWashesPanel,
  #deviceStatusPanel,
  #rechargeSettingsPanel,
  #rechargePackagesPanel,
  #costAnalysisPanel {
    grid-column: span 12;
  }

  #performancePanel,
  #trendPanel {
    min-height: 360px;
  }

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

  #trendPanel .trend-list {
    max-height: 290px;
    overflow-y: auto;
    padding-right: 5px;
  }

  .metric-card {
    min-height: 92px;
    border: 1px solid #e5ebf2;
    border-top: 1px solid #e5ebf2;
    background: #f8fafc;
    box-shadow: none;
  }

  .data-table th {
    color: #536176;
    background: #f3f6fa;
  }

  .table-list > *,
  .row {
    background: #ffffff;
  }

  body.dashboard-active .site-footer {
    margin-left: 224px;
    border-top: 1px solid #dbe3ec;
    background: #edf2f7;
  }
}
