/* ============================================================
   霓虹游戏港 - 后台管理系统 霓虹主题风格
   全部使用站点主题变量（var(--bg)/--panel/--neon-*），
   切换霓虹青 / 赛博紫 / 蔷薇粉主题时后台自动跟随
   仅作用于 .admin-shell 内的后台界面，不影响前台
   ============================================================ */

.admin-shell {
  --adm-bg: var(--bg-2, #1a1a1a);
  --adm-panel: var(--panel, #262626);
  --adm-panel-2: var(--panel-2, #2e2e2e);
  --adm-border: var(--line, #3a3a3a);
  --adm-border-bright: var(--line-bright, #4d4d4d);
  --adm-text: var(--text, #f2f2f2);
  --adm-text-2: var(--text-dim, #b8b8b8);
  --adm-text-3: var(--text-faint, #8a8a8a);
  --adm-primary: var(--neon-cyan, #f6cb23);
  --adm-primary-rgb: var(--neon-cyan-rgb, 246, 203, 35);
  --adm-primary-weak: rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.12);
  --adm-success: var(--neon-green, #8dffed);
  --adm-warning: var(--neon-yellow, #8dffed);
  --adm-danger: var(--neon-red, #ff5c7a);
  --adm-radius: 10px;
  --adm-shadow: 0 0 0 2px var(--bg, #212121), 0 4px 16px rgba(0, 0, 0, 0.45);
  --adm-font: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-family: var(--adm-font);
  color: var(--adm-text);
  background: var(--adm-bg);
  min-height: 100vh;
  display: flex;
  font-size: 14px;
  line-height: 1.6;
}
.admin-shell a {
  color: var(--adm-primary);
}

/* ---------- 左侧导航 ---------- */
.adm-sidebar {
  width: 224px;
  flex: 0 0 224px;
  background: var(--adm-panel);
  border-right: 1px solid var(--adm-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.adm-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--adm-border);
  font-weight: 700;
  font-size: 15px;
  color: var(--adm-text);
  text-shadow: 0 0 12px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-logo small {
  color: var(--adm-text-3);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 500;
}
.adm-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-nav .tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--adm-text-2);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.adm-nav .tab::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
  flex: 0 0 5px;
}
.adm-nav .tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--adm-text);
}
.adm-nav .tab.active {
  background: var(--adm-primary-weak);
  color: var(--adm-primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.35);
}
.adm-nav .tab.active::before {
  background: var(--adm-primary);
  opacity: 1;
}
.adm-side-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--adm-border);
  font-size: 12px;
  color: var(--adm-text-3);
}
.adm-side-foot a {
  text-decoration: none;
  font-weight: 600;
}

/* ---------- 主区域 / 顶栏 ---------- */
.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(var(--panel-rgb, 38, 38, 38), 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--adm-border);
  padding: 16px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.adm-topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--adm-text);
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.3);
}
.adm-topbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--adm-text-3);
}
.adm-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.adm-content {
  padding: 24px 28px 48px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- 面板 / 卡片统一 ---------- */
.admin-shell .panel,
.admin-shell .pixel-card.panel {
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
}
.admin-shell .panel {
  padding: 18px 20px;
}
.admin-shell .pixel-card::before,
.admin-shell .pixel-card::after {
  display: none;
}
.admin-shell .panel h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--adm-text);
  letter-spacing: 1px;
}
.admin-shell .panel h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--adm-text-2);
}
.admin-shell .muted {
  color: var(--adm-text-3);
}

/* ---------- 数据看板：核心指标 ---------- */
.adm-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.adm-metric {
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adm-metric:hover {
  border-color: var(--adm-border-bright);
  box-shadow: 0 0 0 2px var(--bg, #212121), 0 0 16px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.12);
}
.adm-metric-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-metric-icon svg {
  width: 20px;
  height: 20px;
}
.adm-metric-icon.game { background: rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.12); color: var(--neon-cyan, #f6cb23); }
.adm-metric-icon.user { background: rgba(var(--neon-green-rgb, 141, 255, 237), 0.12); color: var(--neon-green, #8dffed); }
.adm-metric-icon.comment { background: rgba(var(--neon-purple-rgb, 141, 255, 237), 0.12); color: var(--neon-purple, #8dffed); }
.adm-metric-icon.download { background: rgba(var(--neon-magenta-rgb, 141, 255, 237), 0.12); color: var(--neon-magenta, #8dffed); }
.adm-metric-icon.fav { background: rgba(var(--neon-yellow-rgb, 141, 255, 237), 0.14); color: var(--neon-yellow, #8dffed); }
.adm-metric-icon.view { background: rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.1); color: var(--neon-cyan, #f6cb23); }
.adm-metric-icon.cat { background: rgba(var(--neon-purple-rgb, 141, 255, 237), 0.12); color: var(--neon-purple, #8dffed); }
.adm-metric-icon.today { background: rgba(var(--neon-red-rgb, 255, 92, 122), 0.12); color: var(--neon-red, #ff5c7a); }
.adm-metric-body {
  min-width: 0;
}
.adm-metric-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
}
.adm-metric-label {
  font-size: 12.5px;
  color: var(--adm-text-2);
  margin-top: 2px;
}
.adm-metric-sub {
  font-size: 11.5px;
  color: var(--adm-text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 数据看板：趋势图 ---------- */
.admin-shell .trend-chart {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  min-width: 680px;
  padding-top: 10px;
}
.admin-shell .trend-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.admin-shell .trend-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 160px;
  width: 100%;
  justify-content: center;
}
.admin-shell .trend-bar {
  width: 11px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.admin-shell .trend-bar i {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.25);
}
.admin-shell .trend-bar i.pv { background: var(--neon-cyan, #f6cb23); }
.admin-shell .trend-bar.uv i.uv { background: var(--neon-green, #8dffed); box-shadow: 0 0 8px rgba(var(--neon-green-rgb, 141, 255, 237), 0.25); }
.admin-shell .trend-bar.dl i.dl { background: var(--neon-red, #ff5c7a); box-shadow: 0 0 8px rgba(var(--neon-red-rgb, 255, 92, 122), 0.3); }
.admin-shell .trend-num {
  font-size: 11px;
  color: var(--adm-text-3);
  font-variant-numeric: tabular-nums;
}
.admin-shell .trend-day small {
  font-size: 10.5px;
  color: var(--adm-text-3);
}
.admin-shell .trend-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--adm-text-2);
}
.admin-shell .trend-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}
.admin-shell .trend-legend .lg-pv { background: var(--neon-cyan, #f6cb23); }
.admin-shell .trend-legend .lg-uv { background: var(--neon-green, #8dffed); }
.admin-shell .trend-legend .lg-dl { background: var(--neon-red, #ff5c7a); }

/* ---------- 数据看板：运营信息三列 ---------- */
.adm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.adm-grid > .panel {
  grid-column: span 4;
  min-width: 0;
}
.admin-shell .admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--adm-border);
  font-size: 13px;
  color: var(--adm-text-2);
  min-width: 0;
}
.admin-shell .admin-row:last-child {
  border-bottom: 0;
}
.admin-shell .admin-row .muted {
  margin-left: auto;
  font-size: 12px;
  color: var(--adm-text-3);
  white-space: nowrap;
}
.admin-shell .admin-row img.avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 28px;
}
.admin-shell .admin-row a {
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-shell .rank-no {
  color: var(--adm-text-3);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  width: 22px;
  flex: 0 0 22px;
}
.admin-shell .comment-snip {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-shell .report-mini {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.admin-shell .report-mini div {
  flex: 1;
  text-align: center;
}
.admin-shell .report-mini b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--adm-text);
}
.admin-shell .report-mini span {
  font-size: 12px;
  color: var(--adm-text-3);
}
.admin-shell .cat-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.admin-shell .cat-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.admin-shell .cat-bar i {
  display: block;
  height: 100%;
  background: var(--adm-primary);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.35);
}
.admin-shell .cat-name {
  width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--adm-text-2);
}
.admin-shell .cat-count {
  color: var(--adm-text-3);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  width: 46px;
  text-align: right;
}
.admin-shell .hotsearch-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--adm-text-2);
  border-bottom: 1px solid var(--adm-border);
}
.admin-shell .hotsearch-row:last-child {
  border-bottom: 0;
}
.admin-shell .hotsearch-row b {
  color: var(--adm-text-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 列表页：工具栏 / 表格 ---------- */
.admin-shell .admin-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.admin-shell .table-wrap {
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow-x: auto;
  background: var(--adm-panel);
}
.admin-shell .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 780px;
}
.admin-shell .admin-table th {
  background: var(--adm-bg);
  color: var(--adm-text-3);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}
.admin-shell .admin-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--adm-border);
  color: var(--adm-text-2);
  vertical-align: middle;
}
.admin-shell .admin-table tbody tr:hover {
  background: rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.05);
}
.admin-shell .admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-shell .cell-game {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}
.admin-shell .cell-game img {
  width: 46px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 46px;
  background: var(--adm-bg);
}
.admin-shell .cell-game b {
  display: block;
  font-size: 13px;
  color: var(--adm-text);
  font-weight: 600;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-shell .cell-game small {
  display: block;
  color: var(--adm-text-3);
  font-size: 11.5px;
}
.admin-shell .cell-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- 按钮层级 ---------- */
.admin-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--adm-border-bright);
  background: var(--adm-panel-2);
  color: var(--adm-text-2);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}
.admin-shell .btn:hover {
  border-color: var(--adm-primary);
  color: var(--adm-text);
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.2);
}
.admin-shell .btn-primary {
  background: var(--adm-primary);
  border-color: var(--adm-primary);
  color: var(--bg, #212121);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.3);
}
.admin-shell .btn-primary:hover {
  background: var(--adm-primary);
  border-color: var(--adm-primary);
  color: var(--bg, #212121);
  box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.5);
}
.admin-shell .btn-danger {
  background: transparent;
  border-color: rgba(var(--neon-red-rgb, 255, 92, 122), 0.5);
  color: var(--adm-danger);
}
.admin-shell .btn-danger:hover {
  background: rgba(var(--neon-red-rgb, 255, 92, 122), 0.12);
  border-color: var(--adm-danger);
  color: var(--adm-danger);
  box-shadow: 0 0 10px rgba(var(--neon-red-rgb, 255, 92, 122), 0.25);
}
.admin-shell .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--adm-text-2);
}
.admin-shell .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--adm-text);
}
.admin-shell .btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 6px;
}
.admin-shell .btn-lg {
  padding: 10px 20px;
  font-size: 14px;
}
.admin-shell .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- 表单控件统一 ---------- */
.admin-shell .field {
  margin-bottom: 14px;
}
.admin-shell .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text-2);
  margin-bottom: 6px;
}
.admin-shell .field input[type="text"],
.admin-shell .field input[type="number"],
.admin-shell .field input[type="search"],
.admin-shell .field input[type="password"],
.admin-shell .field input[type="email"],
.admin-shell .field textarea,
.admin-shell .field select,
.admin-shell .admin-search input,
.admin-shell .admin-search select,
.admin-shell .pager-jump {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--adm-text);
  background: var(--adm-bg);
  border: 1px solid var(--adm-border-bright);
  border-radius: 8px;
  padding: 7px 11px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-shell .field textarea {
  resize: vertical;
}
.admin-shell .field input:focus,
.admin-shell .field textarea:focus,
.admin-shell .field select:focus,
.admin-shell .admin-search input:focus,
.admin-shell .admin-search select:focus {
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.15);
}
.admin-shell .admin-search input {
  flex: 1 1 260px;
  width: auto;
}
.admin-shell .admin-search select {
  flex: 0 1 150px;
  width: auto;
}
.admin-shell .admin-search select option {
  background: var(--adm-panel);
  color: var(--adm-text);
}
.admin-shell .hint {
  font-size: 12px;
  color: var(--adm-text-3);
  margin-top: 6px;
}
.admin-shell .cfg-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-shell .cfg-inline input {
  flex: 1 1 160px;
  min-width: 0;
}
.admin-shell .dl-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 设置页：PC 双列 */
@media (min-width: 960px) {
  .admin-shell .settings-panel.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  .admin-shell .settings-panel.active .field {
    grid-column: span 1;
  }
  .admin-shell .settings-panel.active .field:has(.cfg-inline),
  .admin-shell .settings-panel.active .field:has(.dl-editor),
  .admin-shell .settings-panel.active .dl-editor {
    grid-column: span 2;
  }
  .admin-shell .settings-panel.active .admin-subtabs {
    grid-column: span 2;
  }
}

/* ---------- 设置子标签 ---------- */
.admin-shell .admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.admin-shell .admin-subtabs .tab {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--adm-border-bright);
  background: var(--adm-panel-2);
  color: var(--adm-text-2);
  cursor: pointer;
}
.admin-shell .admin-subtabs .tab.active {
  background: var(--adm-primary-weak);
  border-color: var(--adm-primary);
  color: var(--adm-primary);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(var(--neon-cyan-rgb, 246, 203, 35), 0.3);
}

/* ---------- 分页 / 徽章 / 状态 ---------- */
.admin-shell .admin-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.admin-shell .pager-jump {
  width: 70px;
  text-align: center;
}
.admin-shell .admin-pager span {
  font-size: 13px;
  color: var(--adm-text-3);
}
.admin-shell .badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid;
  line-height: 1.5;
  white-space: nowrap;
}
.admin-shell .badge-cyan,
.admin-shell .badge-magenta,
.admin-shell .badge-yellow,
.admin-shell .badge-green {
  color: var(--adm-text-2);
  border-color: var(--adm-border-bright);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- 加载 / 空状态 ---------- */
.admin-shell .loading {
  color: var(--adm-text-3);
  font-size: 13px;
  padding: 28px;
  text-align: center;
}
.admin-shell .empty-state {
  padding: 30px 12px;
  text-align: center;
  color: var(--adm-text-3);
  font-size: 13px;
}
.admin-shell .empty-state .big {
  display: block;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--adm-text-3);
}

/* ---------- 站点级：后台内让主内容占满全宽 ---------- */
body:has(.admin-shell) #app.main-content,
body:has(.admin-shell) .container.main-content {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .adm-grid > .panel {
    grid-column: span 6;
  }
}

@media (max-width: 1024px) {
  .adm-sidebar {
    width: 200px;
    flex-basis: 200px;
  }
  .adm-content,
  .adm-topbar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    flex-direction: column;
  }
  .adm-sidebar {
    width: 100%;
    flex-basis: auto;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--adm-border);
    overflow-x: auto;
  }
  .adm-logo {
    border-bottom: 0;
    padding: 12px 16px;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
  }
  .adm-logo small {
    display: none;
  }
  .adm-nav {
    flex-direction: row;
    padding: 8px 10px;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    flex: 1;
  }
  .adm-nav .tab {
    white-space: nowrap;
    width: auto;
    padding: 8px 12px;
  }
  .adm-side-foot {
    display: none;
  }
  .adm-topbar {
    padding: 12px 16px;
  }
  .adm-content {
    padding: 16px;
  }
  .adm-grid > .panel {
    grid-column: span 12;
  }
  .adm-metrics {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .adm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .adm-metric {
    padding: 12px;
  }
  .adm-metric-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
  }
  .adm-metric-value {
    font-size: 18px;
  }
  .adm-topbar {
    flex-direction: column;
    gap: 8px;
  }
  .adm-top-actions {
    display: none;
  }
  .admin-shell .field input,
  .admin-shell .field select,
  .admin-shell .field textarea,
  .admin-shell .admin-search input,
  .admin-shell .admin-search select {
    font-size: 16px;
  }
  .admin-shell .admin-search select {
    flex: 1 1 100%;
  }
  .admin-shell .btn {
    padding: 7px 12px;
  }
}
