:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --line: #e6e8ee;
  --text: #1d2129;
  --muted: #687182;
  --brand: #c59a2d;
  --brand-dark: #8b6715;
  --danger: #d93026;
  --ok: #16834a;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #080808;
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  border: 1px solid rgba(197, 154, 45, 0.28);
  border-radius: 10px;
  background: #111;
  color: #f7efd4;
}

.login-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-sub {
  margin: 0 0 28px;
  color: #a99f83;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

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

.login-card .field span {
  color: #b7ad91;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.login-card input {
  border-color: #38301a;
  background: #181818;
  color: #fff;
}

.primary,
.ghost,
.danger,
.link {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.primary {
  background: var(--brand);
  color: #171102;
  font-weight: 700;
}

.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.danger {
  background: #fff;
  border-color: #ffd8d3;
  color: var(--danger);
}

.link {
  min-height: 30px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--brand-dark);
}

.danger-link {
  color: var(--danger);
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.error {
  margin-top: 14px;
  color: #ffb4a9;
}

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #101010;
  color: #f4ead1;
  padding: 14px 0;
  scrollbar-gutter: stable;
}

.brand {
  margin: 10px 18px 18px;
  font-size: 16px;
  font-weight: 800;
}

.logo-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  overflow: hidden;
  background: transparent;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 0;
  padding: 0 18px 0 28px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #a99f83;
  text-align: left;
  font-weight: 650;
}

.nav button span {
  display: inline-block;
  width: 28px;
}

.nav-group {
  padding: 16px 18px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #737b8b;
  font-size: 12px;
  font-weight: 800;
}

.nav button.active,
.nav button:hover {
  border-left-color: #1c8bff;
  background: rgba(255, 255, 255, 0.08);
  color: #f4d36a;
}

.main {
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-gutter: stable;
}

.topbar,
.section-head,
.toolbar,
.form-grid,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar {
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
}

.user-summary {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.48);
}

.modal-card {
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
}

.image-preview-backdrop {
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.image-preview {
  position: relative;
  max-width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.image-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.product-modal {
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
}

.product-modal .modal-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.product-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 6px;
}

.modal-inline-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ffd8d3;
  border-radius: 6px;
  background: #fff7f6;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.product-modal-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.field-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.geocode-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.operation-log-modal {
  display: flex;
  flex-direction: column;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
}

.operation-log-modal .modal-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.operation-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.operation-log-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.operation-log-summary span {
  color: var(--muted);
  font-size: 12px;
}

.operation-log-summary strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
}

.operation-log-json {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.operation-log-json section {
  min-width: 0;
}

.operation-log-json h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.operation-log-json pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-body {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #ffd8d3;
  border-radius: 8px;
  background: #fff7f6;
}

.confirm-body span,
.confirm-body strong {
  display: block;
}

.confirm-body span {
  color: var(--muted);
  font-size: 13px;
}

.confirm-body strong {
  margin-top: 6px;
  color: var(--danger);
  font-size: 18px;
}

.confirm-body small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.modal-head,
.modal-actions,
.summary-strip {
  display: flex;
  align-items: center;
}

.modal-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.summary-strip {
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
}

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

.reward-formula,
.reward-preview {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #ead8a1;
  border-radius: 8px;
  background: #fffaf0;
}

.reward-formula span,
.reward-preview span,
.reward-preview small {
  color: var(--muted);
  font-size: 13px;
}

.reward-formula strong,
.reward-preview strong {
  color: #7a570f;
  font-size: 20px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
}

.account-settings {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: start center;
  padding-top: 42px;
}

.password-card {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.password-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.password-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.password-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.password-submit {
  width: 100%;
  margin-top: 4px;
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.role-guide-panel {
  padding: 20px;
}

.role-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 14px;
  margin-bottom: 14px;
}

.role-guide-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.role-guide-primary {
  border-color: rgba(196, 158, 62, 0.4);
  background: linear-gradient(135deg, rgba(196, 158, 62, 0.14), rgba(255, 255, 255, 0.96));
}

.role-guide-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(196, 158, 62, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.role-guide-card h3 {
  margin: 12px 0 10px;
  font-size: 16px;
}

.role-guide-card p {
  margin: 8px 0;
  color: #475569;
  line-height: 1.55;
}

.role-guide-card code,
.role-permission-item code {
  padding: 2px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.role-guide-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-guide-list li {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: 10px;
  align-items: center;
  color: #475569;
}

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

.role-permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.role-permission-item span {
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

.dashboard-section {
  margin-bottom: 20px;
}

.dashboard-section > .section-head {
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.monthly-head {
  gap: 18px;
}

.monthly-title {
  min-width: 280px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
  max-width: 220px;
}

.member-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.member-search-grid .field {
  margin: 0;
}

.member-search-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

.member-detail-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.member-info-grid,
.member-asset-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.member-info-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.member-info-grid div,
.member-asset-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.member-info-grid span,
.member-asset-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.member-info-grid strong,
.member-asset-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-asset-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-asset-card strong {
  font-size: 20px;
}

.member-detail-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-detail-section .section-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.member-detail-section h3 {
  margin: 0;
  font-size: 18px;
}

.member-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 2px;
  color: #374151;
  font-size: 13px;
  line-height: 1;
}

.pagination-summary,
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-summary {
  flex-wrap: wrap;
}

.pagination-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pagination-size {
  width: 58px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.pagination-btn,
.pagination-page {
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
}

.pagination-page {
  min-width: 30px;
  padding: 0 8px;
}

.pagination-page.active {
  border-color: #1e8bff;
  background: #1e8bff;
  color: #fff;
}

.pagination-btn:disabled,
.pagination-page:disabled {
  cursor: not-allowed;
  background: #f8fafc;
  color: #b8c0cc;
}

.pagination-jump-label {
  color: #4b5563;
}

.pagination-jump-input {
  width: 56px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #111827;
  text-align: center;
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-button {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.metric-button:hover,
.metric-button.active {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(202, 158, 42, 0.16);
  transform: translateY(-1px);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.asset-snapshot-metrics {
  margin-top: 14px;
}

.asset-snapshot-metrics .metric {
  min-width: 0;
}

.asset-snapshot-metrics .metric strong {
  overflow-wrap: anywhere;
}

.dashboard-hint {
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px dashed #d6dbe6;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.store-breakdown {
  margin-top: 12px;
}

.metric-highlight {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7d6;
  color: var(--brand-dark);
}

.month-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.month-picker select {
  min-height: 36px;
  width: 132px;
  max-width: 132px;
  padding: 0 30px 0 10px;
}

.month-picker button {
  min-height: 36px;
  min-width: 80px;
  padding: 0 14px;
}

.monthly-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
}

.metric-bars {
  display: grid;
  gap: 12px;
}

.metric-bars.compact {
  gap: 8px;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 1fr) 110px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric-bars.compact .metric-bar-row {
  grid-template-columns: 64px minmax(100px, 1fr) 96px;
}

.metric-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.metric-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #caa02a, #1f7a4d);
}

.metric-bar-row strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.store-month-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.store-month-row:last-child {
  border-bottom: none;
}

.store-month-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.store-month-title span {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.status-on {
  color: var(--ok);
}

.status-off {
  color: var(--danger);
}

.pay-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pay-type-badge.balance {
  background: #fff4cb;
  color: #8a650d;
}

.pay-type-badge.wechat {
  background: #e8f6ee;
  color: #137342;
}

.pay-type-badge.unpaid {
  background: #ffe7e7;
  color: #b42318;
}

.operation-log-panel td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.operation-log-panel .table-wrap {
  overflow-x: auto;
}

.operation-log-table {
  min-width: 920px;
  table-layout: fixed;
}

.operation-log-table th,
.operation-log-table td {
  height: 52px;
  padding: 10px 12px;
  vertical-align: middle;
}

.operation-log-table th {
  background: #fbfcfe;
  white-space: nowrap;
}

.operation-log-table tbody tr:hover {
  background: #faf8f1;
}

.operation-log-table td:nth-child(7),
.operation-log-table th:nth-child(7) {
  text-align: center;
}

.operation-log-time {
  width: 150px;
}

.operation-log-user {
  width: 120px;
}

.operation-log-action {
  width: 170px;
}

.operation-log-target {
  width: auto;
}

.operation-log-ip {
  width: 132px;
}

.operation-log-location {
  width: 116px;
}

.operation-log-detail {
  width: 72px;
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.target-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
}

.link-btn:hover {
  text-decoration: underline;
}

.form-grid {
  align-items: flex-start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: span 3;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.thumb {
  width: 58px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
}

.thumb-clickable {
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.thumb-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.thumb-fallback {
  display: inline-grid;
  width: 58px;
  height: 42px;
  place-items: center;
  border: 1px dashed #d6dbe6;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.description-cell {
  display: -webkit-box;
  max-width: 220px;
  overflow: hidden;
  color: #374151;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-image-field {
  grid-row: span 2;
}

.image-uploader {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #aab4c4;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.image-uploader:hover {
  border-color: var(--brand);
  background: #fffdf5;
}

.image-uploader img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  width: 100%;
  min-height: 132px;
  place-items: center;
  color: var(--muted);
}

.hidden {
  display: none;
}

.image-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

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

.verify-card div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid #efe4c4;
  border-radius: 8px;
  background: #fffaf0;
}

.verify-card span,
.verify-card strong {
  display: block;
}

.verify-card span {
  color: var(--muted);
  font-size: 13px;
}

.verify-card strong {
  margin-top: 8px;
  font-size: 18px;
}

@media (max-width: 900px) {
  html,
  body,
  #app {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    overflow-y: visible;
  }

  .main {
    height: auto;
    overflow-y: visible;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav button {
    white-space: nowrap;
  }

  .metrics,
  .monthly-grid,
  .form-grid,
  .role-guide-layout,
  .role-permission-grid,
  .verify-card {
    grid-template-columns: 1fr;
  }

  .role-guide-list li,
  .role-permission-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .role-permission-item span {
    text-align: left;
  }

  .dashboard-section > .section-head,
  .store-month-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-picker {
    justify-content: flex-start;
    max-width: none;
  }

  .form-grid .wide {
    grid-column: auto;
  }
}
