.admin-workspace-nav { display: flex; gap: 8px; overflow-x: auto; padding: 8px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: thin; }
.admin-workspace-nav button { min-height: 44px; flex: 0 0 auto; padding: 0 14px; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 800; white-space: nowrap; }
.admin-workspace-nav button.active, .admin-workspace-nav button:hover, .admin-workspace-nav button:focus-visible { background: var(--green); color: #06140f; }
.admin-panel-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.admin-panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 36px rgba(0, 0, 0, .12); }
.admin-panel-wide { min-width: 0; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.admin-metric { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.admin-metric small, .admin-metric span { display: block; color: var(--muted); font-size: 10px; line-height: 1.35; }
.admin-metric strong { display: block; margin: 5px 0; color: var(--ink); font-size: clamp(15px, 3vw, 22px); overflow-wrap: anywhere; }
.admin-quick-actions { display: grid; gap: 9px; }
.admin-quick-actions button { width: 100%; }
.admin-health { display: flex; gap: 10px; align-items: flex-start; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.admin-health > span { color: var(--green); font-size: 16px; }.admin-health > span.warning { color: #f2b56b; }
.admin-health b, .admin-health small { display: block; }.admin-health small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.portfolio-table, .sales-list, .leaderboard-list { margin-top: 16px; }
.portfolio-row, .sales-row, .leaderboard-row { display: grid; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.portfolio-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }.portfolio-row > div:not(.admin-product) small, .portfolio-row > div:not(.admin-product) strong { display: block; }.portfolio-row > div:not(.admin-product) small { color: var(--muted); font-size: 10px; }.portfolio-row > div:not(.admin-product) strong { margin-top: 4px; font-size: 12px; }
.admin-product { display: flex; align-items: center; gap: 10px; min-width: 0; }.admin-product img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border-radius: 10px; background: var(--soft); }.admin-product span { min-width: 0; }.admin-product b, .admin-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-product b { font-size: 12px; }.admin-product small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.sales-row { grid-template-columns: minmax(0, 1fr) auto auto; }.sales-row b, .sales-row small { display: block; }.sales-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }.sales-row strong { white-space: nowrap; font-size: 12px; }
.leaderboard-row { grid-template-columns: 34px minmax(0, 1fr) auto 54px; }.leaderboard-row.is-you { padding-inline: 10px; background: rgba(77, 211, 151, .08); border-radius: 10px; }.leaderboard-rank { color: var(--gold); }.leaderboard-row strong, .leaderboard-row small { display: block; }.leaderboard-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }.leaderboard-row > span { text-align: right; }.leaderboard-score { color: var(--green); text-align: right; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
@media (min-width: 700px) { .admin-panel-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); }.admin-panel-wide { grid-column: 1 / -1; }.admin-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px) { .portfolio-row { grid-template-columns: minmax(0, 1fr) auto; }.portfolio-row > div:nth-child(2), .portfolio-row > div:nth-child(3) { text-align: right; }.portfolio-row .row-actions { grid-column: 1 / -1; justify-content: flex-end; }.sales-row { grid-template-columns: minmax(0, 1fr) auto; }.sales-row strong { grid-column: 2; grid-row: 1; }.leaderboard-row { grid-template-columns: 28px minmax(0, 1fr) 46px; }.leaderboard-row > span { grid-column: 2; grid-row: 2; text-align: left; }.leaderboard-score { grid-column: 3; grid-row: 1 / span 2; } }
@media (prefers-reduced-motion: reduce) { .admin-workspace-nav button { transition: none; } }
@media (max-width: 699px) {
  .admin-panel { padding: 14px; border-radius: 15px; }
  .admin-workspace-nav { margin: 14px 0; padding: 6px; }
  .admin-workspace-nav button { min-height: 42px; padding-inline: 11px; font-size: 10px; }
  .admin-metric-grid { gap: 7px; }
  .admin-metric { padding: 10px; }
  .admin-metric strong { font-size: 16px; }
  .admin-metric small, .admin-metric span { font-size: 9px; }
  .table-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
  .admin-panel-wide > .table-heading { padding-inline: 0; }
  .portfolio-row, .sales-row, .leaderboard-row { gap: 8px; }
  .portfolio-row .row-actions button { min-height: 38px; padding-inline: 10px; }
}
@media (max-width: 359px) {
  .admin-metric-grid { grid-template-columns: 1fr; }
  .admin-heading-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .admin-heading-actions .link-button { min-height: 40px; }
}

/* Master Admin customization workspace. */
.customizer-grid { align-items: start; }
.brand-preview-card { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, var(--soft), transparent); }
.brand-preview-card img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--soft); }.brand-preview-card .brand-mark { flex: 0 0 52px; width: 52px; height: 52px; }.brand-preview-card strong, .brand-preview-card small { display: block; overflow: hidden; text-overflow: ellipsis; }.brand-preview-card strong { color: var(--ink); font-size: 15px; }.brand-preview-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.promo-mini-preview { display: grid; gap: 6px; margin-top: 14px; padding: 14px; border-left: 3px solid var(--gold); border-radius: 9px; background: var(--gold-soft); }.promo-mini-preview b { color: var(--ink); font-size: 12px; }.promo-mini-preview span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-form-section { margin: 12px 0 3px; padding: 15px 0 3px; border-top: 1px solid var(--line); }.admin-form-section h3 { margin: 0 0 5px; color: var(--green); font-size: 14px; }.admin-form-section .check-row { margin: 9px 0; }
.marketing-products { margin-top: 16px; }.marketing-product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, auto); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }.flag-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.flag-toggle { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }.flag-toggle:hover, .flag-toggle.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
@media (max-width: 699px) { .marketing-product-row { grid-template-columns: 1fr; }.flag-actions { justify-content: flex-start; }.flag-toggle { min-height: 38px; }.customizer-grid .table-heading .outline-button { width: 100%; } }

/* Super Admin control center. */
.customizer-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(135deg, var(--surface), var(--soft)); }
.customizer-hero h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 4vw, 34px); letter-spacing: -.04em; }
.super-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.super-admin-actions button { min-height: 42px; }
.template-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.template-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; }
.template-chip.on { border-color: var(--green); background: rgba(77, 211, 151, .1); color: var(--green); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.check-grid .check-row { min-height: 28px; }
.field-readonly { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.field-readonly b { min-height: 40px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--soft); font-size: 12px; }
.admin-editor-modal .admin-form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-editor-modal .admin-form-section h3 { font-size: 15px; }
@media (max-width: 699px) {
  .customizer-hero { align-items: flex-start; flex-direction: column; }
  .super-admin-actions { justify-content: flex-start; width: 100%; }
  .super-admin-actions button { flex: 1 1 45%; }
  .check-grid { grid-template-columns: 1fr; }
}

