:root {
  color-scheme: dark;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #020617;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-primary) 28%, transparent), transparent 34%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent) 22%, transparent), transparent 28%),
    #020617;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.workspace-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: rgba(2, 6, 23, 0.74);
}

.workspace-side {
  padding: 24px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(18px);
}

.brand-card,
.search-box,
.nav-group,
.workspace-top,
.view-header {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

.brand-card {
  padding: 18px;
}

.brand-card h1,
.workspace-top h2,
.view-header h2 {
  margin: 6px 0;
}

.brand-card p,
.workspace-top p,
.view-header p,
.eyebrow,
.search-box span,
.nav-group header span,
.nav-link small,
.top-meta span {
  color: #94a3b8;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-box {
  display: block;
  margin-top: 16px;
  padding: 14px 16px;
}

.search-box span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

.search-box input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
}

.nav-groups {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-group {
  padding: 12px;
}

.nav-group header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.nav-group header strong {
  font-size: 13px;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: color-mix(in srgb, var(--theme-primary) 18%, rgba(15, 23, 42, 0.4));
  color: #ffffff;
}

.workspace-main {
  padding: 24px;
}

.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-meta button,
.open-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #fff;
  text-decoration: none;
}

.view-page {
  margin-top: 18px;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 20px;
}

.view-header .description {
  margin: 0;
  max-width: 720px;
}

.prototype-frame {
  margin-top: 18px;
}

.device-shell,
.desktop-shell {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  background: #0f172a;
}

.device-shell {
  width: 420px;
  margin: 0 auto;
  border-radius: 44px;
  padding: 16px 12px 14px;
  position: relative;
}

.device-notch {
  width: 140px;
  height: 34px;
  background: #020617;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.desktop-shell {
  border-radius: 24px;
}

.desktop-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.94);
}

.desktop-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.3);
}

.desktop-toolbar strong {
  margin-left: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.prototype-scroller {
  width: 100%;
  background: #fff;
  overflow: auto;
}

.prototype-frame.mobile .prototype-scroller {
  height: 852px;
}

.prototype-frame.desktop .prototype-scroller {
  height: 920px;
}

.prototype-root {
  min-height: 100%;
}

.prototype-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: #334155;
  font-weight: 600;
}

.prototype-state.error {
  color: #b91c1c;
}

@media (max-width: 1180px) {
  .workspace-app {
    grid-template-columns: 1fr;
  }

  .workspace-side {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .workspace-top,
  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.workspace-side-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.role-select {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  padding: 10px 12px;
}

.role-tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.workspace-top-rich {
  align-items: flex-start;
}

.top-meta-rich {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.native-view {
  min-height: 100%;
  padding: 20px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  color: #0f172a;
}

.native-view.mobile-view {
  padding: 18px 16px 32px;
  background: linear-gradient(180deg, #f8fafc, #ecfeff);
}

.native-stack {
  display: grid;
  gap: 16px;
}

.native-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.native-grid.compact,
.native-grid-3.compact {
  gap: 12px;
}

.native-card,
.native-soft-card,
.native-media-card,
.native-hero {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.native-card,
.native-soft-card {
  padding: 18px;
}

.native-soft-card.accent,
.accent-card {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(59, 130, 246, 0.12));
}

.accent-card.deep {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(59, 130, 246, 0.88));
  color: #f8fafc;
}

.native-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 24px;
}

.native-hero-mobile {
  min-height: 220px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.native-hero-desktop {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.88));
  color: #f8fafc;
}

.native-hero-copy h3,
.native-card h3,
.native-media-content h3,
.native-line-item h4,
.native-product-body h4 {
  margin: 4px 0;
}

.native-eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.accent-card .native-eyebrow,
.native-hero-desktop .native-eyebrow,
.native-hero-mobile .native-eyebrow,
.accent-card .native-muted.light {
  color: rgba(255, 255, 255, 0.78);
}

.native-muted {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.native-inline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.native-inline-stats div,
.native-grid.compact > div,
.native-grid-3.compact > div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.native-inline-stats strong,
.native-grid.compact strong,
.native-grid-3.compact strong,
.native-card h3,
.native-soft-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.native-inline-stats span,
.native-grid.compact span,
.native-grid-3.compact span,
.native-soft-card p,
.native-line-item p,
.native-product-body p,
.native-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.accent-card.deep .native-grid.compact span,
.accent-card.deep p {
  color: rgba(255, 255, 255, 0.78);
}

.native-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.native-link {
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 600;
}

.native-list {
  display: grid;
  gap: 12px;
}

.native-line-item,
.native-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.native-product-row {
  align-items: stretch;
  cursor: pointer;
}

.native-product-row img,
.native-order-item img,
.native-banner-image {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.native-banner-image {
  width: 100%;
  height: 220px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.native-product-body,
.native-media-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.native-product-meta,
.native-price-row,
.native-actions,
.native-table-like > div,
.native-section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.native-actions {
  margin-top: 4px;
}

.native-primary-btn,
.native-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font-weight: 700;
}

.native-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
}

.native-secondary-btn {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.9);
}

.sticky-footer {
  position: sticky;
  bottom: 0;
  padding-bottom: 4px;
}

.native-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.native-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-primary);
  background: rgba(20, 184, 166, 0.12);
}

.native-badge.accent,
.native-badge.review,
.native-badge.draft,
.native-badge.pendingPayment,
.native-badge.paid,
.native-badge.shipped,
.native-badge.待出库,
.native-badge.处理中 {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
}

.native-badge.received,
.native-badge.on,
.native-badge.已签收,
.native-badge.已恢复 {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
}

.native-badge.review,
.native-badge.风险待审,
.native-badge.待仲裁 {
  color: #7c2d12;
  background: rgba(249, 115, 22, 0.18);
}

.native-media-card {
  overflow: hidden;
}

.native-media-content {
  padding: 18px;
}

.native-price-row strong {
  font-size: 30px;
}

.native-price-row span {
  color: #94a3b8;
  text-decoration: line-through;
}

.native-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.8;
}

.native-bullet-list li + li {
  margin-top: 8px;
}

.native-task-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.native-task-node {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  text-align: center;
}

.native-task-node.done {
  background: rgba(34, 197, 94, 0.12);
  border-style: solid;
}

.native-task-node.active {
  background: rgba(14, 165, 233, 0.12);
}

.native-task-node span {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.native-order-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.native-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
}

.native-stepper button,
.native-option,
.native-primary-btn,
.native-secondary-btn {
  cursor: pointer;
}

.native-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.1);
}

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

.native-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
}

.native-option span {
  color: #64748b;
  font-size: 12px;
}

.native-option.active {
  border-color: color-mix(in srgb, var(--theme-primary) 70%, white);
  background: color-mix(in srgb, var(--theme-primary) 9%, white);
}

.native-table-like {
  display: grid;
  gap: 14px;
}

.native-table {
  width: 100%;
  border-collapse: collapse;
}

.native-table th,
.native-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  text-align: left;
  font-size: 14px;
}

.native-table th {
  color: #64748b;
  font-weight: 600;
}

.link-card {
  color: inherit;
  text-decoration: none;
}

.profile-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.9));
}

@media (max-width: 1180px) {
  .native-grid-4,
  .native-grid-3,
  .native-grid-2,
  .native-task-track,
  .native-inline-stats {
    grid-template-columns: 1fr;
  }

  .native-hero,
  .native-section-head,
  .native-actions,
  .native-order-item,
  .native-line-item,
  .native-product-row,
  .native-table-like > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .native-table {
    display: block;
    overflow-x: auto;
  }
}

.native-order-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.native-order-side strong {
  font-size: 18px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-primary) 28%, transparent), transparent 32%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 30%),
    #020617;
}

.login-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.42);
}

.login-card.desktop-card {
  width: min(100%, 520px);
}

.login-card h1 {
  margin: 8px 0 12px;
}

.login-copy {
  margin: 0 0 20px;
  color: #94a3b8;
  line-height: 1.6;
}

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

.login-field span {
  font-size: 13px;
  color: #cbd5e1;
}

.login-field input,
.login-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
}

.login-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #fff;
  font-weight: 700;
}

.stat-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.stat-card.accent {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
}

.stat-card.success {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
}

.stat-card.warning {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.92));
}

.page-section {
  display: grid;
  gap: 16px;
}

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

.page-section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-section-body {
  display: grid;
  gap: 14px;
}

.native-filter-grid,
.native-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.native-field-span-2 {
  grid-column: span 2;
}

.native-field-light {
  display: grid;
  gap: 8px;
}

.native-field-light span {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.native-field-light input,
.native-field-light select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
}

.native-field-light input::placeholder {
  color: #94a3b8;
}

.native-inline-meta,
.native-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.native-inline-meta {
  color: #64748b;
  font-size: 13px;
}

.native-message-banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(240, 253, 244, 0.92);
  color: #166534;
}

.native-message-banner.warning {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(255, 251, 235, 0.96);
  color: #92400e;
}

.native-message-banner.danger {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.native-inline-stack {
  display: grid;
  gap: 4px;
}

.native-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.native-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.native-primary-btn.mini,
.native-secondary-btn.mini {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.native-badge.disabled {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
}

.native-note-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(45, 212, 191, 0.28);
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(239, 246, 255, 0.9));
}

.action-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-toolbar.align-start {
  justify-content: flex-start;
}

.action-toolbar.align-end {
  justify-content: flex-end;
}

.action-toolbar.align-between {
  justify-content: space-between;
}

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

.data-table-empty {
  padding: 24px 12px;
  text-align: center;
  color: #64748b;
}

.data-table .align-center {
  text-align: center;
}

.data-table .align-right {
  text-align: right;
}

.is-disabled,
.native-primary-btn[disabled],
.native-secondary-btn[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 960px) {
  .native-filter-grid,
  .native-form-grid {
    grid-template-columns: 1fr;
  }

  .native-field-span-2 {
    grid-column: span 1;
  }

  .page-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-section-actions,
  .action-toolbar.align-end,
  .action-toolbar.align-between {
    justify-content: flex-start;
  }
}
/* Auto-generated from partner-admin/assets/partner-admin.css. Do not edit manually. */
:root {
  --brand: #0f766e;
  --brand-2: #0e7490;
  --brand-3: #2563eb;
  --bg: #f4f7fb;
  --text: #0f172a;
  --muted: #64748b;
  --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.prototype-root.theme-admin-overview {
  --brand: #0f766e;
  --brand-2: #0ea5e9;
}

.prototype-root.theme-admin-franchise {
  --brand: #065f46;
  --brand-2: #059669;
}

.prototype-root.theme-admin-routing {
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
}

.prototype-root.theme-admin-store {
  --brand: #0f766e;
  --brand-2: #14b8a6;
}

.prototype-root.theme-admin-finance {
  --brand: #92400e;
  --brand-2: #d97706;
}

.prototype-root.theme-admin-risk {
  --brand: #b91c1c;
  --brand-2: #ef4444;
}

.prototype-root.theme-admin-policy {
  --brand: #334155;
  --brand-2: #2563eb;
}

.prototype-root.theme-admin-service {
  --brand: #7c3aed;
  --brand-2: #2563eb;
}

.prototype-root.theme-admin-index {
  background: radial-gradient(circle at 15% -20%, #1e293b 0%, #0f172a 46%, #020617 100%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.prototype-root,
.prototype-root {
  margin: 0;
  padding: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% -20%, #dbeafe 0%, #eef2ff 34%, #f8fafc 75%);
}

.prototype-root.admin-page {
  width: 1366px;
  height: 900px;
  overflow: hidden;
}

.admin-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.admin-side {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #111827 38%, #1e293b 100%);
  color: #cbd5e1;
  padding: 16px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0) 48%);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}

.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
}

.brand .title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.brand .sub {
  font-size: 10px;
  color: #94a3b8;
}

.menu-group {
  margin-bottom: 10px;
}

.menu-title {
  font-size: 10px;
  color: #64748b;
  margin: 8px 8px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  font-weight: 600;
}

.menu-item:hover {
  background: rgba(148, 163, 184, 0.12);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.24), rgba(14, 165, 233, 0.15));
  color: #99f6e4;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.35);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.prototype-root[class*="theme-admin-"] .admin-main {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.admin-top {
  height: 62px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.prototype-root[class*="theme-admin-"] .admin-top {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.top-left h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.top-left p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn,
.primary-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.ghost-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.28);
}

.primary-btn:hover {
  filter: saturate(1.08);
}

.admin-content {
  padding: 14px;
  overflow: auto;
}

.admin-content::-webkit-scrollbar {
  width: 7px;
}

.admin-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

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

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

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

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--card-shadow);
}

.card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.card .desc {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.kpi {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 0;
}

.kpi-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
}

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

.table th,
.table td {
  border-bottom: 1px solid #edf2f7;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.table tr:hover td {
  background: #f8fafc;
}

.table th {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.badge.ok {
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, #dcfce7, #ecfdf5);
}

.badge.pending {
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
}

.badge.risk {
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
}

.badge.info {
  color: #155e75;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: linear-gradient(135deg, #cffafe, #ecfeff);
}

.progress {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #14b8a6, var(--brand-3));
}

.timeline {
  position: relative;
  padding-left: 16px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: linear-gradient(180deg, #5eead4, #93c5fd 72%, #dbeafe);
}

.timeline-item {
  position: relative;
  margin-bottom: 9px;
  font-size: 12px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -14px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.timeline-item p {
  margin: 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.select,
.input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  font-size: 12px;
  color: #334155;
}

.select:focus,
.input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.input {
  flex: 1;
}

.shell {
  width: 1240px;
  height: 900px;
  border-radius: 20px;
  border: 1px solid rgba(100, 116, 139, 0.55);
  overflow: hidden;
  background: linear-gradient(145deg, #020617, #0f172a);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
}

.prototype-root.theme-admin-index .shell {
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
}

/* ---- Page-level polish ---- */

.prototype-root.theme-admin-overview .card:first-child,
.prototype-root.theme-admin-finance .card:first-child,
.prototype-root.theme-admin-risk .card:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
}

.prototype-root.theme-admin-franchise .card:first-child,
.prototype-root.theme-admin-store .card:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.prototype-root.theme-admin-routing .card:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.prototype-root.theme-admin-policy .card:first-child,
.prototype-root.theme-admin-service .card:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.prototype-root[class*="theme-admin-"] .admin-top h1 {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prototype-root.theme-admin-overview .menu-item.active,
.prototype-root.theme-admin-franchise .menu-item.active,
.prototype-root.theme-admin-routing .menu-item.active,
.prototype-root.theme-admin-store .menu-item.active,
.prototype-root.theme-admin-finance .menu-item.active,
.prototype-root.theme-admin-risk .menu-item.active,
.prototype-root.theme-admin-policy .menu-item.active,
.prototype-root.theme-admin-service .menu-item.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 16px rgba(15, 23, 42, 0.22);
}

.prototype-root[class*="theme-admin-"] .primary-btn {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}

.prototype-root[class*="theme-admin-"] .table th {
  background: #f8fafc;
}

.shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.prototype-root.theme-admin-index .rounded-3xl {
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35);
}

.prototype-root.theme-admin-index h2 {
  letter-spacing: 0.01em;
}

.prototype-root.theme-admin-index .rounded-2xl {
  backdrop-filter: blur(8px);
}

.prototype-root[class*="theme-admin-"] .card h3 {
  letter-spacing: 0.01em;
}

.prototype-root.theme-admin-risk .badge.risk,
.prototype-root.theme-admin-service .badge.risk {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.prototype-root.theme-admin-finance .kpi,
.prototype-root.theme-admin-overview .kpi {
  font-variant-numeric: tabular-nums;
}

/* ---- v5 premium sweep ---- */

.prototype-root[class*="theme-admin-"] .admin-main {
  background:
    radial-gradient(circle at 110% -20%, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 50%),
    radial-gradient(circle at -10% 120%, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0) 48%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.prototype-root[class*="theme-admin-"] .admin-top {
  border-bottom-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(16px);
}

.prototype-root[class*="theme-admin-"] .admin-side {
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0) 44%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 38%, #172033 100%);
}

.prototype-root[class*="theme-admin-"] .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  border-color: rgba(203, 213, 225, 0.88);
}

.prototype-root[class*="theme-admin-"] .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.prototype-root[class*="theme-admin-"] .card {
  position: relative;
  overflow: hidden;
}

.prototype-root[class*="theme-admin-"] .table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: sticky;
  top: 0;
  z-index: 2;
}

.prototype-root[class*="theme-admin-"] .table td {
  font-variant-numeric: tabular-nums;
}

.prototype-root[class*="theme-admin-"] .menu-item {
  transition: all 0.22s ease;
}

.prototype-root[class*="theme-admin-"] .menu-item:hover {
  transform: translateX(2px);
}

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

.focus-item {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.focus-item p {
  margin: 0;
}

.focus-item .label {
  font-size: 11px;
  color: #64748b;
}

.focus-item .value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.focus-item .delta {
  margin-top: 4px;
  font-size: 11px;
  color: #0f766e;
  font-weight: 700;
}

.data-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  background: linear-gradient(135deg, #ecfeff, #f0f9ff);
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
}

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

.risk-box {
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, #fff1f2 0%, #fff7f7 100%);
  padding: 10px;
}

.risk-box p {
  margin: 0;
}

.risk-box .title {
  font-size: 12px;
  font-weight: 700;
  color: #7f1d1d;
}

.risk-box .meta {
  margin-top: 4px;
  font-size: 11px;
  color: #991b1b;
}

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

.finance-split .slot {
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
  padding: 10px;
}

.finance-split .slot p {
  margin: 0;
}

.finance-split .slot .name {
  font-size: 11px;
  color: #92400e;
}

.finance-split .slot .amt {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
  color: #7c2d12;
}

.prototype-root.theme-admin-index .rounded-3xl {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.78));
  border-color: rgba(148, 163, 184, 0.24);
}

.prototype-root.theme-admin-index .shell {
  position: relative;
}

.prototype-root.theme-admin-index .shell::before {
  content: "";
  position: absolute;
  top: 88px;
  left: -3px;
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.prototype-root.theme-admin-index .shell::after {
  content: "";
  position: absolute;
  top: 140px;
  right: -3px;
  width: 3px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

/* ---- v5.1 page refinement sweep ---- */

.prototype-root.page-franchise-review .table tbody tr td:first-child,
.prototype-root.page-store-assignment .table tbody tr td:first-child,
.prototype-root.page-partner-ops .table tbody tr td:first-child,
.prototype-root.page-policy-center .table tbody tr td:first-child,
.prototype-root.page-service-dispute .table tbody tr td:first-child {
  font-weight: 700;
  color: #0f172a;
}

.prototype-root.page-franchise-review .grid-2 .card:first-child,
.prototype-root.page-store-assignment .grid-2 .card:first-child,
.prototype-root.page-partner-ops .grid-2 .card:first-child,
.prototype-root.page-policy-center .grid-2 .card:first-child,
.prototype-root.page-service-dispute .grid-2 .card:first-child {
  border-color: rgba(56, 189, 248, 0.28);
}

.prototype-root.page-franchise-review .filter-row,
.prototype-root.page-store-assignment .filter-row,
.prototype-root.page-partner-ops .filter-row,
.prototype-root.page-policy-center .filter-row,
.prototype-root.page-service-dispute .filter-row {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.prototype-root.page-franchise-review .table tbody tr:hover td,
.prototype-root.page-store-assignment .table tbody tr:hover td,
.prototype-root.page-partner-ops .table tbody tr:hover td,
.prototype-root.page-policy-center .table tbody tr:hover td,
.prototype-root.page-service-dispute .table tbody tr:hover td {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.prototype-root.page-franchise-review .badge.pending {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.prototype-root.page-store-assignment .badge.ok,
.prototype-root.page-partner-ops .badge.ok {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.prototype-root.page-policy-center .grid-3 .card {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.prototype-root.page-policy-center .grid-3 .kpi,
.prototype-root.page-service-dispute .grid-4 .kpi {
  font-size: 22px;
}

.prototype-root.page-service-dispute .badge.risk {
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.16);
}

.prototype-root.page-service-dispute .timeline-item strong {
  color: #7c3aed;
}

@media (prefers-reduced-motion: reduce) {
  .prototype-root.admin-page * {
    animation: none !important;
    transition: none !important;
  }
}


.prototype-root.partner-admin-index {
  background:
    radial-gradient(circle at 12% -15%, #0f766e 0%, rgba(15, 118, 110, 0) 34%),
    radial-gradient(circle at 90% 0%, #1d4ed8 0%, rgba(29, 78, 216, 0) 32%),
    radial-gradient(circle at 50% 100%, #064e3b 0%, rgba(6, 78, 59, 0) 35%),
    #020617;
}

.prototype-root.partner-admin-index .rounded-3xl {
  border-color: rgba(45, 212, 191, 0.24);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.4), rgba(2, 6, 23, 0.7));
}

.prototype-root.partner-admin-index .shell {
  border-color: rgba(45, 212, 191, 0.4);
}

.prototype-root.page-partner-dashboard .focus-item .delta {
  color: #065f46;
}

.prototype-root.page-partner-task .finance-split .slot {
  border-color: rgba(14, 116, 144, 0.26);
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 100%);
}

.prototype-root.page-partner-settlement .kpi {
  color: #7c2d12;
}

.prototype-root.page-partner-learning .timeline-item strong {
  color: #1d4ed8;
}


.dashboard-link-card[data-v-cf9f8992] {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dashboard-link-card[data-v-cf9f8992]:hover,
.dashboard-route-line[data-v-cf9f8992]:hover,
.dashboard-progress-item[data-v-cf9f8992]:hover {
  transform: translateY(-1px);
}
.dashboard-link-card h4[data-v-cf9f8992],
.dashboard-progress-head h4[data-v-cf9f8992] {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}
.dashboard-metric[data-v-cf9f8992] {
  font-size: 22px;
  line-height: 1.2;
  color: var(--theme-primary);
}
.dashboard-inline-action[data-v-cf9f8992] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 600;
}
.dashboard-stack[data-v-cf9f8992],
.dashboard-progress-list[data-v-cf9f8992],
.dashboard-status-column[data-v-cf9f8992] {
  display: grid;
  gap: 12px;
}
.dashboard-route-line[data-v-cf9f8992] {
  color: inherit;
  text-decoration: none;
}
.dashboard-progress-item[data-v-cf9f8992] {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: inherit;
  text-decoration: none;
}
.dashboard-progress-item[data-v-cf9f8992]:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.dashboard-progress-head[data-v-cf9f8992] {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.dashboard-progress-head p[data-v-cf9f8992] {
  margin: 6px 0 0;
  color: #64748b;
}
.dashboard-progress-head strong[data-v-cf9f8992] {
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
}
.dashboard-status-column[data-v-cf9f8992] {
  justify-items: end;
}
