/* Local, dependency-free visual system for the admin console. */
:root {
  color-scheme:dark;
  --bg:#0b0c10;
  --surface:#121318;
  --surface-raised:#191a21;
  --line:#26272f;
  --text:#f1f1f4;
  --muted:#999aa9;
  --red:#ef3d50;
  --red-hover:#fb5062;
  --red-tint:rgba(239,61,80,.11);
  --green:#69d6ad;
  --amber:#eac17a;
  --radius:14px;
  --sidebar:236px
}
* {
  box-sizing:border-box
}
body.admin-body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased
}
a {
  text-decoration:none
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent
}
button,summary {
  cursor:pointer
}
button {
  color:inherit
}
button:disabled {
  opacity:.45;
  cursor:not-allowed
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid #fc7584;
  outline-offset:4px
}
button:focus:not(:focus-visible) {
  outline:none
}
[hidden] {
  display:none!important
}
.ui-icon {
  flex-shrink:0;
  vertical-align:middle
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  background:var(--red);
  padding:10px 16px;
  color:#fff;
  z-index:100
}
.skip-link:focus {
  top:10px
}
h1,h2,h3,p {
  margin:0
}
kbd {
  font:10px "Segoe UI",sans-serif;
  border:1px solid #34353e;
  border-radius:4px;
  padding:2px 5px;
  color:var(--muted);
  white-space:nowrap
}
.admin-sidebar {
  width:var(--sidebar);
  position:fixed;
  inset:0 auto 0 0;
  background:#101115;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:50
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:28px 22px 25px;
  color:var(--text)
}
.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex-shrink:0;
  background:var(--red);
  color:#fff;
  border-radius:10px;
  box-shadow:0 4px 18px #e62d4230
}
.brand-mark .ui-icon {
  width:23px;
  height:23px
}
.brand-copy {
  min-width:0
}
.brand-copy strong {
  font-size:18px;
  font-weight:700;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  letter-spacing:-.5px
}
.brand-copy small {
  font-size:8px;
  letter-spacing:1.9px;
  color:#92939f;
  display:block;
  margin-top:3px
}
.command-trigger {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 17px 14px;
  padding:10px;
  color:#92939f;
  background:#191a1f;
  border:1px solid #2a2b32;
  border-radius:7px;
  font-size:11px
}
.command-trigger .ui-icon {
  width:15px;
  height:15px
}
.command-trigger kbd {
  margin-left:auto;
  font-size:9px
}
.sidebar-nav {
  padding:0 13px 18px;
  overflow-y:auto;
  flex:1
}
.nav-label {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.5px;
  color:#777987;
  margin:23px 12px 10px
}
.nav-link {
  display:flex;
  gap:12px;
  align-items:center;
  padding:11px 13px;
  margin:3px 0;
  border-radius:7px;
  color:#a4a5b3;
  font-size:13px;
  transition:background .18s,color .18s
}
.nav-link .ui-icon {
  width:18px;
  height:18px
}
.nav-link:hover {
  background:#1b1c23;
  color:#fff
}
.nav-link.active {
  background:var(--red-tint);
  color:#fc6a79;
  box-shadow:inset 2px 0 var(--red);
  font-weight:600
}
.nav-active-dot {
  width:5px;
  height:5px;
  background:var(--red);
  border-radius:50%;
  margin-left:auto
}
.sidebar-bottom {
  padding:14px;
  border-top:1px solid var(--line)
}
.sidebar-caption {
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px
}
.sidebar-caption strong {
  display:block;
  font-size:12px
}
.sidebar-caption small {
  display:block;
  color:var(--muted);
  font-size:11px;
  max-width:138px;
  overflow:hidden;
  text-overflow:ellipsis
}
.profile-avatar {
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:#282029;
  color:#f3a6b0;
  border:1px solid #50323c;
  font-size:11px;
  font-weight:700;
  flex-shrink:0
}
.logout-link {
  font-size:12px
}
.admin-workspace {
  margin-left:var(--sidebar);
  min-height:100vh
}
.admin-topbar {
  height:72px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  background:#0f1014
}
.topbar-left,.topbar-right {
  display:flex;
  align-items:center;
  gap:20px
}
.breadcrumb {
  color:#858694;
  font-size:12px
}
.breadcrumb>span {
  margin:0 13px;
  color:#4f505c
}
.breadcrumb strong {
  color:#d1d1da;
  font-weight:500
}
.private-label {
  display:flex;
  align-items:center;
  gap:7px;
  color:#9293a0;
  font-size:11px
}
.private-label .ui-icon {
  width:13px;
  height:13px
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:34px;
  border:1px solid var(--line);
  background:transparent;
  border-radius:7px;
  color:var(--muted)
}
.icon-button:hover {
  color:var(--text);
  background:var(--surface-raised)
}
.icon-button .ui-icon {
  width:16px;
  height:16px
}
.mobile-menu,.mobile-close {
  display:none
}
.admin-content {
  max-width:1600px;
  margin:0 auto;
  padding:31px 32px 24px;
  min-width:0
}
.admin-footer {
  max-width:1600px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:0 32px 23px;
  color:#777987;
  font-size:10px
}
.footer-dot {
  padding:0 7px;
  color:#4a4b58
}
.muted {
  color:var(--muted)
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:27px
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  font-weight:600;
  letter-spacing:1.6px;
  margin-bottom:8px
}
.eyebrow>span {
  height:5px;
  width:5px;
  border-radius:50%;
  background:var(--red)
}
.page-heading h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-1px;
  line-height:1.25
}
.red-period {
  color:var(--red)
}
.page-description {
  font-size:12px;
  color:var(--muted);
  margin-top:9px
}
.heading-actions {
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end
}
.updated-time {
  font-size:10px;
  color:var(--muted);
  width:100%;
  text-align:right
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:9px 13px;
  border-radius:7px;
  font-weight:550;
  font-size:11px;
  white-space:nowrap;
  border:1px solid var(--line);
  background:var(--surface-raised);
  color:var(--text);
  transition:background .18s
}
.btn .ui-icon {
  width:15px;
  height:15px
}
.btn:hover {
  background:#25262e
}
.btn.btn-primary {
  background:var(--red);
  border-color:var(--red);
  color:#fff;
  box-shadow:0 4px 14px #ef3d5015
}
.btn.btn-primary:hover {
  background:var(--red-hover)
}
.btn-secondary {
  background:#16171d
}
.btn-small {
  font-size:10px;
  min-height:30px;
  padding:5px 10px
}
.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px
}
.metric-card {
  display:block;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  padding:19px 20px 15px;
  min-width:0;
  color:var(--text);
  transition:border-color .18s,transform .18s
}
.metric-card:hover {
  border-color:#5b3741;
  transform:translateY(-2px)
}
.metric-red {
  background:radial-gradient(ellipse at top right,#38151f70,transparent 75%),var(--surface);
  border-color:#512530
}
.metric-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#adaeba;
  font-size:11px;
  gap:8px
}
.metric-icon {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  background:#202128;
  border-radius:8px;
  color:#b9b9c6
}
.metric-icon .ui-icon {
  width:16px;
  height:16px
}
.metric-red .metric-icon {
  color:#ff7b89;
  background:#4a202b
}
.metric-amber .metric-icon {
  color:var(--amber);
  background:#352c20
}
.metric-value {
  font-size:29px;
  font-weight:650;
  letter-spacing:-1px;
  margin:11px 0 18px;
  line-height:1.2;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums
}
.metric-value small {
  font-size:10px;
  letter-spacing:0;
  color:var(--muted);
  font-weight:500;
  margin-left:8px
}
.metric-note {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#898b9b;
  font-size:10px;
  border-top:1px solid #25262e;
  padding-top:12px;
  gap:5px
}
.metric-note .ui-icon {
  width:14px;
  height:14px
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-width:0
}
.panel-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:20px 22px
}
.panel-header h2 {
  font-size:15px;
  font-weight:600;
  letter-spacing:-.3px
}
.panel-header .eyebrow {
  font-size:8px;
  margin-bottom:5px
}
.analytics-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 305px;
  gap:20px;
  margin-bottom:20px;
  align-items:start
}
.segmented {
  display:flex;
  gap:3px;
  background:#0d0e12;
  border:1px solid #23242c;
  padding:3px;
  border-radius:7px;
  white-space:nowrap
}
.segmented a {
  font-size:10px;
  color:var(--muted);
  padding:5px 9px;
  border-radius:4px
}
.segmented a.selected {
  background:#2b2027;
  color:#ff8a96;
  box-shadow:0 0 0 1px #4e2933
}
.chart-summary {
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:0 22px;
  flex-wrap:wrap;
  font-size:10px
}
.chart-summary>strong {
  font-size:28px;
  font-weight:650;
  letter-spacing:-.7px
}
.chart-summary strong small {
  font-size:11px;
  color:var(--muted);
  margin-left:8px;
  font-weight:500;
  letter-spacing:0
}
.trend {
  font-size:10px;
  border-radius:5px;
  padding:3px 5px;
  font-weight:600
}
.trend-positive {
  color:var(--green);
  background:#1b302b
}
.trend-negative {
  color:#ff8290;
  background:#3a2029
}
.chart-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 22px 0;
  color:var(--muted);
  font-size:9px
}
.legend-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--red);
  border-radius:50%;
  margin-right:5px
}
.chart-container {
  padding:0 13px
}
.revenue-chart {
  width:100%;
  height:auto;
  display:block;
  overflow:visible
}
.chart-label {
  fill:#868897;
  font-size:10px;
  font-family:inherit
}
.chart-gridline {
  stroke:#2c2c35;
  stroke-dasharray:3 5;
  stroke-width:.7
}
.chart-line {
  fill:none;
  stroke:#f04452;
  stroke-width:2.5;
  stroke-linejoin:round;
  stroke-linecap:round
}
.chart-point {
  fill:#f04452;
  stroke:#121318;
  stroke-width:2;
  opacity:0;
  transition:opacity .15s
}
.chart-point:hover {
  opacity:1;
  r:5
}
.chart-footer {
  border-top:1px solid var(--line);
  padding:12px 22px;
  font-size:9px;
  color:#898b9b;
  display:flex;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap
}
.chart-details {
  width:100%
}
.chart-details summary {
  color:#c1c1cc;
  display:list-item;
  list-style-position:inside
}
.chart-details .table-scroll {
  max-height:260px;
  margin-top:10px
}
.attention-panel .panel-header {
  padding-bottom:9px
}
.attention-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:#3b1d26;
  color:#ff7081
}
.attention-list {
  padding:0 20px
}
.attention-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 0;
  border-bottom:1px solid #23242c;
  color:var(--text)
}
.attention-row:last-child {
  border-bottom:0
}
.attention-row>span:nth-child(2) {
  flex:1
}
.attention-row strong {
  font-size:11px;
  font-weight:550;
  display:block
}
.attention-row small {
  display:block;
  font-size:9px;
  color:#898b9b;
  margin-top:2px
}
.attention-row b {
  font-size:16px;
  font-weight:600
}
.attention-row>.ui-icon {
  width:12px;
  height:12px;
  color:#777
}
.attention-row:hover strong {
  color:#ff8a96
}
.attention-row-icon {
  height:30px;
  width:30px;
  border-radius:8px;
  background:#1e1f27;
  color:#9799ac;
  display:grid;
  place-items:center
}
.attention-row-icon .ui-icon {
  width:15px;
  height:15px
}
.inventory-watch {
  padding:14px 20px;
  border-top:1px solid var(--line);
  background:#ffffff02;
  border-radius:0 0 var(--radius) var(--radius)
}
.inventory-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:9px
}
.inventory-heading h3 {
  font-size:10px;
  font-weight:550
}
.inventory-heading>span {
  font-size:8px;
  color:var(--muted)
}
.stock-alert {
  display:flex;
  align-items:center;
  gap:7px;
  justify-content:space-between;
  padding:5px 0;
  font-size:10px;
  color:#a8a9b6
}
.stock-alert>span {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.stock-alert b {
  font-weight:500;
  font-size:9px;
  color:var(--amber);
  white-space:nowrap
}
.stock-alert b.out-of-stock {
  color:#fb7185
}
.inventory-ok {
  font-size:10px;
  color:var(--green);
  display:flex;
  gap:6px;
  align-items:center
}
.inventory-ok .ui-icon {
  width:14px;
  height:14px
}
.store-strip {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:10px;
  background:#101116;
  margin:0 0 24px
}
.store-strip>a {
  padding:15px 20px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#9a9cad;
  font-size:10px;
  min-width:0
}
.store-strip>a+a {
  border-left:1px solid var(--line)
}
.store-strip>a>span {
  flex:1;
  min-width:0
}
.store-strip strong {
  display:block;
  font-size:16px;
  font-weight:600;
  margin-top:3px;
  color:#e8e8ef;
  font-variant-numeric:tabular-nums
}
.store-strip small {
  font-size:9px;
  font-weight:400;
  color:#999baa;
  margin-left:4px
}
.store-strip>a>.ui-icon:last-child {
  width:12px;
  height:12px
}
.store-strip>a:hover {
  background:#19191f
}
.dashboard-search {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:7px 8px 7px 15px;
  background:var(--surface)
}
.dashboard-search>.ui-icon {
  width:17px;
  height:17px;
  color:#8c8e9e
}
.dashboard-search input[type=search] {
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  padding:6px 0;
  color:var(--text);
  font-size:11px
}
.dashboard-search input::placeholder {
  color:#818391
}
.dashboard-search input:focus {
  outline:none
}
.dashboard-search:focus-within {
  border-color:#a9485a;
  box-shadow:0 0 0 2px #ef3d5015
}
.clear-search {
  font-size:11px;
  color:#f68a98
}
.search-help {
  font-size:9px;
  color:#9395a4;
  margin:8px 1px 21px
}
.search-help strong {
  color:var(--text);
  overflow-wrap:anywhere
}
.transaction-panel {
  margin-bottom:25px;
  overflow:hidden
}
.section-title {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0
}
.section-title p {
  font-size:10px;
  color:#8c8e9e;
  margin-top:3px
}
.section-icon {
  display:grid;
  place-items:center;
  background:#222029;
  border:1px solid #33303a;
  width:34px;
  height:34px;
  border-radius:9px;
  color:#bfadbb;
  flex-shrink:0
}
.section-icon .ui-icon {
  width:17px;
  height:17px
}
.text-link {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:6px;
  color:#d0a4ad;
  white-space:nowrap
}
.text-link .ui-icon {
  width:13px;
  height:13px
}
.text-link:hover {
  color:#ff8a96
}
.table-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:0 22px 14px
}
.filter-tabs {
  display:flex;
  gap:4px;
  flex-wrap:wrap
}
.filter-tabs button {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#9395a5;
  font-size:10px
}
.filter-tabs button[aria-pressed=true] {
  background:#24232b;
  color:#f5f3f5;
  border-color:#35323e
}
.filter-tabs button:hover {
  color:#fff
}
.filter-tabs button span {
  padding:1px 5px;
  font-size:8px;
  border-radius:4px;
  background:#3b303b;
  color:#eea6b2
}
.table-actions {
  display:flex;
  gap:6px;
  align-items:center
}
.table-actions .icon-button {
  min-width:30px;
  min-height:30px
}
.density-toggle[aria-pressed=true] {
  color:#fc8a97;
  border-color:#8e3c4b
}
.table-scroll {
  overflow:auto;
  scrollbar-color:#393944 transparent;
  scrollbar-width:thin
}
.transaction-panel .table-scroll {
  max-height:430px
}
.data-table {
  border-collapse:collapse;
  width:100%;
  font-size:11px;
  white-space:nowrap
}
.data-table th {
  background:#17181e;
  color:#8d8f9f;
  font-weight:500;
  font-size:9px;
  padding:12px 18px;
  text-align:left;
  position:sticky;
  top:0;
  z-index:1;
  border-top:1px solid #282932;
  border-bottom:1px solid #282932
}
.data-table td {
  padding:15px 18px;
  border-bottom:1px solid #22232b;
  color:#c3c4ce
}
.data-table tbody tr:last-child td {
  border-bottom:0
}
.data-table tbody tr:hover {
  background:#1a1b23
}
.data-table .align-right {
  text-align:right;
  font-variant-numeric:tabular-nums
}
.order-code {
  font-family:"Cascadia Code",Consolas,monospace;
  color:#eea0ad;
  font-size:10px
}
.order-code:hover {
  text-decoration:underline
}
.customer-link {
  display:flex;
  align-items:center;
  gap:8px;
  color:#c3c4ce
}
.customer-link>span:last-child {
  max-width:125px;
  overflow:hidden;
  text-overflow:ellipsis
}
.customer-avatar {
  width:25px;
  height:25px;
  border-radius:7px;
  background:#282831;
  color:#b8b7c9;
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:600;
  flex-shrink:0
}
.data-table .product-cell {
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis
}
.data-table .amount-cell {
  font-weight:600;
  color:#e8e8f0
}
.payment-method {
  font-size:9px;
  padding:3px 6px;
  background:#1f2029;
  border:1px solid #2e303b;
  border-radius:4px;
  color:#a7a9ba
}
.status-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border-radius:5px;
  font-size:9px;
  font-weight:500;
  white-space:nowrap;
  color:#a7b7e9;
  background:#202736
}
.status-badge>span {
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor
}
.status-delivered {
  color:#6ed3ac;
  background:#1b2e29
}
.status-pending,.status-awaiting_input {
  color:#e5bd7b;
  background:#322a20
}
.status-cancelled {
  color:#ee8292;
  background:#34202a
}
.status-refunded {
  color:#c0a4ed;
  background:#2d2639
}
.data-table .time-cell {
  color:#9092a2;
  font-size:9px
}
.table-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 22px;
  border-top:1px solid var(--line);
  font-size:9px;
  color:#9092a2
}
.table-compact .data-table td {
  padding-top:8px;
  padding-bottom:8px
}
.empty-state {
  text-align:center;
  padding:30px 20px;
  color:var(--muted);
  white-space:normal
}
.empty-state>.ui-icon {
  display:block;
  margin:0 auto 10px;
  color:#b87386;
  width:25px;
  height:25px
}
.empty-state strong {
  display:block;
  color:#c6c6d1;
  font-size:12px;
  font-weight:500
}
.empty-state p {
  font-size:11px;
  margin-top:5px
}
.rankings-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  margin:28px 0 17px
}
.rankings-heading h2 {
  font-size:18px;
  font-weight:550;
  letter-spacing:-.4px
}
.rankings-heading>.muted {
  font-size:10px
}
.rankings-heading .eyebrow {
  font-size:8px;
  margin-bottom:4px
}
.rankings-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:25px
}
.ranking-panel .panel-header {
  padding:14px 18px;
  border-bottom:1px solid var(--line)
}
.ranking-panel h3 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  font-weight:550
}
.ranking-panel h3 .ui-icon {
  width:15px;
  height:15px;
  color:#c5899a
}
.ranking-panel .icon-button {
  border:0;
  min-width:24px;
  min-height:24px
}
.ranking-list {
  padding:0 18px;
  max-height:310px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#353640 transparent
}
.ranking-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 0;
  border-bottom:1px solid #24252d;
  min-width:0
}
.ranking-row:last-child {
  border-bottom:0
}
.rank-number {
  font-size:10px;
  color:#76788a;
  flex-shrink:0;
  font-variant-numeric:tabular-nums
}
.rank-first {
  color:#ee8294
}
.rank-person {
  flex:1;
  min-width:0
}
.rank-person strong {
  font-size:11px;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:500;
  color:#d6d6e0
}
.rank-person small {
  font-size:9px;
  color:#878999;
  display:block;
  margin-top:2px
}
.ranking-row>b {
  font-size:11px;
  font-weight:600;
  color:#d9d9e3;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.ranking-row>b small {
  font-weight:400;
  font-size:8px;
  color:#868899;
  display:block;
  text-align:right;
  margin-top:2px
}
.ranking-row:hover .rank-person strong {
  color:#fc8a97
}
.command-dialog {
  position:fixed;
  inset:12vh 0 auto;
  margin:0 auto;
  width:min(500px,calc(100% - 32px));
  padding:20px;
  border:1px solid #3b303a;
  border-radius:14px;
  background:#15161d;
  color:var(--text);
  box-shadow:0 30px 100px #0009;
  max-height:76vh;
  overflow:auto
}
.command-dialog::backdrop {
  background:#000b;
  backdrop-filter:blur(5px)
}
.command-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px
}
.command-heading h2 {
  font-size:16px;
  font-weight:600
}
.command-dialog input {
  width:100%;
  background:#0e0f14;
  color:var(--text);
  border:1px solid #373340;
  border-radius:7px;
  padding:11px;
  font-size:12px
}
.command-results {
  margin-top:12px
}
.command-results a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  border-radius:6px;
  color:#c4c5d0;
  font-size:12px
}
.command-results a:hover,.command-results a:focus-visible {
  background:#30202a;
  color:#ff8797
}
.command-results .ui-icon {
  width:14px;
  height:14px
}
.command-hint {
  font-size:10px;
  color:var(--muted);
  margin-top:14px;
  border-top:1px solid #292b36;
  padding-top:12px;
  display:flex;
  gap:18px
}
#command-empty {
  padding:14px;
  color:var(--muted);
  font-size:12px
}
.flash-message {
  padding:12px 16px;
  border:1px solid #335349;
  border-radius:8px;
  margin-bottom:18px;
  font-size:13px
}
.flash-error {
  background:#361c26;
  border-color:#713242;
  color:#ffabb8
}
.flash-success {
  background:#182e28;
  color:#99e4c8
}
.admin-toast {
  position:fixed;
  bottom:24px;
  right:24px;
  max-width:calc(100vw - 40px);
  background:#29222b;
  border:1px solid #69404d;
  border-radius:9px;
  padding:13px 18px;
  color:#f6e8ed;
  font-size:12px;
  box-shadow:0 8px 25px #0006;
  z-index:100
}
/* Harmonize existing Tailwind pages without changing their forms or actions. */
.admin-content .bg-white {
  background-color:var(--surface)
}
.admin-content .bg-gray-50,.admin-content .bg-gray-100 {
  background-color:#191a21
}
.admin-content .text-gray-800,.admin-content .text-gray-900 {
  color:#eeeef4
}
.admin-content .text-gray-700 {
  color:#cbcbd7
}
.admin-content .text-gray-600,.admin-content .text-gray-500 {
  color:#a5a6b5
}
.admin-content .text-gray-400 {
  color:#8f91a2
}
.admin-content .border,.admin-content .border-b,.admin-content .border-t {
  border-color:var(--line)
}
.admin-content .divide-y>:not(:last-child) {
  border-color:var(--line)
}
.admin-content .shadow,.admin-content .shadow-lg {
  box-shadow:0 3px 12px #0002
}
.admin-content .hover\:bg-gray-50:hover {
  background-color:#20212a
}
.admin-content input:not([type=checkbox]):not([type=radio]),.admin-content select,.admin-content textarea {
  background-color:#14151c;
  color:#e0e0eb;
  border-color:#363740
}
.admin-content option {
  background:#191a21;
  color:#eee
}
.admin-content .bg-indigo-600,.admin-content .bg-indigo-700 {
  background-color:#db3047
}
.admin-content .hover\:bg-indigo-700:hover {
  background-color:#ef3d50
}
.admin-content .text-indigo-500,.admin-content .text-indigo-600,.admin-content .text-indigo-700,.admin-content .text-blue-500,.admin-content .text-blue-600 {
  color:#f38a9b
}
.admin-content .bg-indigo-50,.admin-content .bg-indigo-100,.admin-content .bg-blue-50,.admin-content .bg-blue-100 {
  background-color:#2c2334
}
.admin-content .bg-green-50,.admin-content .bg-green-100,.admin-content .bg-teal-50,.admin-content .bg-teal-100 {
  background-color:#1a302a
}
.admin-content .text-green-600,.admin-content .text-green-700,.admin-content .text-teal-600,.admin-content .text-teal-700 {
  color:#79d6b4
}
.admin-content .bg-red-50,.admin-content .bg-red-100,.admin-content .bg-pink-50 {
  background-color:#361f2a
}
.admin-content .text-red-600,.admin-content .text-red-700,.admin-content .text-rose-600 {
  color:#f592a2
}
.admin-content .bg-yellow-50,.admin-content .bg-yellow-100,.admin-content .bg-orange-100 {
  background-color:#332b20
}
.admin-content .text-yellow-700,.admin-content .text-yellow-800,.admin-content .text-orange-700 {
  color:#e8c488
}
.admin-content .bg-purple-100 {
  background-color:#302639
}
.admin-content .text-purple-600,.admin-content .text-purple-700 {
  color:#c5a4e9
}
.admin-content .text-blue-700,.admin-content .text-blue-800 {
  color:#bbaae1
}
.admin-content .text-indigo-800 {
  color:#f4a2b1
}
.admin-content input[type=checkbox],.admin-content input[type=radio] {
  accent-color:var(--red)
}
/* Login uses the same local assets and visual language. */
.login-page {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  background:#0b0c10
}
.login-intro {
  position:relative;
  overflow:hidden;
  border-right:1px solid var(--line);
  padding:50px 60px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:radial-gradient(ellipse at 25% 70%,#62152945,transparent 65%),#101115
}
.login-intro:after {
  content:'';
  position:absolute;
  width:600px;
  height:600px;
  border:1px solid #b6384822;
  border-radius:50%;
  right:-250px;
  bottom:-200px;
  box-shadow:0 0 0 60px #b6384807,0 0 0 120px #b6384805;
  pointer-events:none
}
.login-intro .brand {
  padding:0
}
.login-intro h1 {
  font-size:clamp(32px,4vw,55px);
  letter-spacing:-2px;
  line-height:1.2;
  max-width:500px;
  font-weight:650;
  margin:24px 0
}
.login-intro h1 span {
  color:#ff6578
}
.login-intro p {
  color:#a5a5b4;
  font-size:14px;
  max-width:380px;
  line-height:1.8
}
.login-intro footer {
  font-size:11px;
  color:#777988
}
.login-form-wrap {
  display:grid;
  place-items:center;
  padding:35px
}
.login-card {
  width:100%;
  max-width:350px
}
.login-card .brand-mark {
  margin-bottom:26px
}
.login-card h2 {
  font-size:26px;
  letter-spacing:-.8px;
  font-weight:600
}
.login-card>p {
  color:var(--muted);
  margin:9px 0 30px;
  font-size:13px
}
.login-card label {
  display:block;
  font-size:12px;
  margin-bottom:8px;
  color:#c9c9d6
}
.login-password-wrap {
  display:flex;
  align-items:center;
  border:1px solid #38343f;
  background:#15151d;
  border-radius:8px;
  margin-bottom:20px
}
.login-password-wrap:focus-within {
  border-color:#e45872
}
.login-password-wrap input {
  padding:12px;
  min-width:0;
  flex:1;
  border:0;
  background:none;
  color:#eee;
  outline:none
}
.login-password-wrap button {
  border:0;
  background:none;
  padding:12px;
  font-size:11px;
  color:#c698a8
}
.login-card .btn {
  width:100%;
  font-size:13px;
  padding:12px
}
.login-note {
  display:flex;
  gap:7px;
  justify-content:center;
  align-items:center;
  font-size:11px!important;
  margin-top:22px!important
}
.login-note .ui-icon {
  width:13px;
  height:13px
}
@media(min-width:1500px) {
  .admin-content {
    padding-top:36px
  }
  .analytics-grid {
    grid-template-columns:minmax(0,1fr) 350px
  }
  .metric-value {
    font-size:34px
  }
  .revenue-chart {
    max-height:280px
  }
  .page-heading {
    margin-bottom:30px
  }
}
@media(max-width:1200px) {
  :root {
    --sidebar:210px
  }
  .admin-content {
    padding:25px 24px
  }
  .admin-topbar {
    padding:0 24px
  }
  .analytics-grid {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:16px
  }
  .metric-card {
    padding:15px
  }
  .metric-value {
    font-size:25px
  }
  .metric-top {
    font-size:10px
  }
  .panel-header {
    padding:18px
  }
  .brand {
    padding:24px 17px
  }
  .brand-copy strong {
    font-size:16px
  }
  .brand-copy small {
    font-size:7px
  }
  .chart-summary {
    padding:0 18px
  }
  .chart-summary>strong {
    font-size:25px
  }
  .chart-summary>.muted {
    font-size:8px
  }
  .store-strip>a {
    padding:14px
  }
  .rankings-grid {
    gap:12px
  }
  .ranking-list {
    padding:0 13px
  }
  .ranking-panel .panel-header {
    padding:12px
  }
  .ranking-row {
    gap:8px
  }
  .page-heading h1 {
    font-size:25px
  }
}
@media(max-width:1023px) {
  .admin-sidebar {
    transform:translateX(-100%);
    transition:transform .2s;
    width:250px
  }
  .admin-sidebar.is-open {
    transform:translateX(0)
  }
  .admin-workspace {
    margin-left:0
  }
  .mobile-menu,.mobile-close {
    display:inline-flex
  }
  .mobile-close {
    position:absolute;
    top:30px;
    right:12px;
    background:#14151b
  }
  .admin-sidebar .brand {
    padding-right:47px
  }
  .sidebar-overlay {
    position:fixed;
    inset:0;
    background:#0009;
    backdrop-filter:blur(2px);
    z-index:40
  }
  .admin-topbar {
    height:62px
  }
  .topbar-left {
    gap:13px
  }
  .metrics-grid {
    gap:12px
  }
  .admin-content {
    padding:24px
  }
  .analytics-grid {
    grid-template-columns:minmax(0,1fr) 280px
  }
  .heading-actions {
    max-width:310px
  }
  .page-heading h1 {
    font-size:26px
  }
}
@media(max-width:760px) {
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .analytics-grid {
    grid-template-columns:1fr
  }
  .rankings-grid {
    grid-template-columns:1fr
  }
  .attention-list {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px
  }
  .attention-row {
    flex-wrap:wrap;
    border-bottom:0;
    gap:8px
  }
  .attention-row>span:nth-child(2) {
    flex:auto;
    width:calc(100% - 42px)
  }
  .attention-row>b {
    margin-left:38px
  }
  .attention-row>.ui-icon {
    margin-left:auto
  }
  .inventory-watch {
    padding:15px 20px
  }
  .store-strip>a {
    gap:8px
  }
  .store-strip>a>.ui-icon:last-child {
    display:none
  }
  .store-strip strong {
    font-size:14px
  }
  .store-strip small {
    display:block;
    margin:0
  }
  .store-strip>a>.ui-icon {
    width:18px;
    height:18px
  }
  .page-heading {
    align-items:flex-start
  }
  .heading-actions {
    max-width:175px
  }
  .heading-actions .btn-secondary {
    display:none
  }
  .heading-actions .btn-primary {
    font-size:10px
  }
  .table-toolbar {
    padding:0 16px 12px;
    align-items:flex-end
  }
  .table-actions {
    flex-shrink:0
  }
  .rankings-heading h2 {
    font-size:17px
  }
  .ranking-list {
    max-height:250px
  }
  .ranking-row>b small {
    display:inline;
    margin-left:5px
  }
  .login-page {
    grid-template-columns:1fr
  }
  .login-intro {
    display:none
  }
  .login-form-wrap {
    min-height:100vh
  }
}
@media(max-width:480px) {
  .admin-content {
    padding:22px 15px 18px
  }
  .admin-topbar {
    padding:0 15px
  }
  .breadcrumb {
    font-size:11px
  }
  .breadcrumb>span {
    margin:0 8px
  }
  .breadcrumb {
    font-size:0
  }
  .breadcrumb>span {
    display:none
  }
  .breadcrumb strong {
    font-size:12px
  }
  .private-label {
    display:none
  }
  .topbar-right {
    gap:10px
  }
  .page-heading {
    display:block;
    margin-bottom:22px
  }
  .page-heading h1 {
    font-size:25px
  }
  .page-description {
    font-size:11px
  }
  .heading-actions {
    max-width:none;
    justify-content:flex-start;
    margin-top:15px
  }
  .updated-time {
    order:2;
    width:auto;
    text-align:left;
    font-size:9px;
    margin-left:auto
  }
  .metric-card {
    padding:14px
  }
  .metric-value {
    font-size:25px;
    margin-bottom:14px
  }
  .metric-value small {
    font-size:9px;
    margin-left:5px
  }
  .metric-top {
    font-size:10px
  }
  .metric-icon {
    width:25px;
    height:25px
  }
  .metric-note {
    font-size:8px
  }
  .metric-note .ui-icon {
    display:none
  }
  .panel-header {
    padding:17px 16px;
    gap:9px
  }
  .panel-header h2 {
    font-size:14px
  }
  .segmented a {
    padding:5px 7px;
    font-size:9px
  }
  .chart-summary {
    padding:0 16px
  }
  .chart-summary>strong {
    font-size:25px
  }
  .chart-meta {
    padding:13px 16px 0;
    font-size:8px
  }
  .chart-container {
    padding:5px 6px
  }
  .chart-footer {
    padding:12px 16px
  }
  .attention-list {
    display:block;
    padding:0 16px
  }
  .attention-row {
    flex-wrap:nowrap;
    border-bottom:1px solid var(--line);
    padding:12px 0
  }
  .attention-row>span:nth-child(2) {
    flex:1;
    width:auto
  }
  .attention-row>b {
    margin-left:0
  }
  .store-strip {
    grid-template-columns:1fr
  }
  .store-strip>a {
    padding:12px 16px
  }
  .store-strip>a+a {
    border-left:0;
    border-top:1px solid var(--line)
  }
  .store-strip>a>span {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px
  }
  .store-strip strong {
    margin:0;
    font-size:14px
  }
  .store-strip small {
    display:inline;
    font-size:8px;
    margin-left:3px
  }
  .store-strip>a>.ui-icon {
    width:16px;
    height:16px
  }
  .dashboard-search {
    gap:8px;
    padding-left:10px
  }
  .dashboard-search kbd {
    display:none
  }
  .dashboard-search input[type=search] {
    font-size:10px
  }
  .dashboard-search .btn {
    font-size:10px;
    min-height:32px;
    padding:7px 10px
  }
  .search-help {
    font-size:9px;
    line-height:1.7
  }
  .section-title p {
    font-size:9px;
    max-width:185px
  }
  .section-icon {
    display:none
  }
  .text-link {
    font-size:9px
  }
  .text-link .ui-icon {
    display:none
  }
  .table-toolbar {
    gap:8px;
    flex-wrap:wrap
  }
  .filter-tabs {
    gap:0
  }
  .filter-tabs button {
    padding:5px 7px;
    font-size:9px
  }
  .table-actions {
    margin-left:auto
  }
  .table-footer {
    padding:10px 16px;
    flex-wrap:wrap;
    font-size:8px;
    gap:4px
  }
  .rankings-heading>.muted {
    font-size:8px
  }
  .rankings-heading {
    align-items:center
  }
  .admin-footer {
    padding:0 15px 20px;
    font-size:9px
  }
  .admin-footer>span:last-child {
    display:none
  }
  .command-hint {
    font-size:9px;
    gap:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}
.sidebar-nav {
  scrollbar-width:thin;
  scrollbar-color:#30313b transparent
}
@media(max-width:760px) {
  .heading-actions .btn-secondary {
    display:inline-flex
  }
}
@media(max-width:480px) {
  .heading-actions .updated-time {
    width:100%;
    margin-left:0;
    text-align:left;
    order:3
  }
  .heading-actions {
    gap:8px
  }
  .heading-actions .btn-secondary {
    font-size:10px
  }
  .revenue-chart {
    min-height:145px
  }
}
.admin-content .bg-gray-200 { background-color: #262731; }
.admin-content .hover\:bg-gray-200:hover { background-color: #30313d; }
.admin-content .hover\:bg-purple-200:hover { background-color: #44324f; }
.admin-content .hover\:bg-indigo-100:hover { background-color: #3d2836; }
.admin-content > .flex.items-center.justify-between { flex-wrap: wrap; gap: 12px; }
.admin-content > .flex.items-center.justify-between > .flex { flex-wrap: wrap; }
.btn.btn-primary { background-color: #d82f45; border-color: #d82f45; }
.btn.btn-primary:hover { background-color: #df334a; }
