/* Classic stays in panel.css / login.css.
   Minimal is a full second skin: type, spacing, containers, selected states.
   Prefix everything with html[data-theme="minimal"] and beat panel.css with specificity. */

html.theme-animating,
html.theme-animating body,
html.theme-animating .app,
html.theme-animating .sidebar,
html.theme-animating .main,
html.theme-animating .header,
html.theme-animating .header h1,
html.theme-animating .header-welcome,
html.theme-animating .header-profile-trigger,
html.theme-animating .card,
html.theme-animating .admin-block,
html.theme-animating .panel-section,
html.theme-animating .nav-link,
html.theme-animating .btn,
html.theme-animating .btn-primary,
html.theme-animating .range-btn,
html.theme-animating .income-tab,
html.theme-animating .income-section,
html.theme-animating .delivery-panel,
html.theme-animating .delivery-mode-btn,
html.theme-animating .dash-metric,
html.theme-animating .ps-kpi-card,
html.theme-animating .login-bg,
html.theme-animating .login-card,
html.theme-animating .login-submit,
html.theme-animating .field-input-wrap,
html.theme-animating input,
html.theme-animating .theme-switch,
html.theme-animating .card-value,
html.theme-animating .card-title {
  transition:
    background 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.48s ease,
    box-shadow 0.58s ease,
    filter 0.5s ease,
    text-shadow 0.45s ease,
    padding 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.5s ease,
    letter-spacing 0.45s ease,
    font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 90;
}

.login-stage,
.login-editorial,
.login-mark,
.login-meta,
.login-caustic {
  display: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.82);
  box-sizing: border-box;
}
.theme-swatch {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background 0.22s ease, transform 0.18s ease;
}
.theme-swatch:hover { background: rgba(255, 255, 255, 0.06); }
.theme-swatch.is-active { background: rgba(255, 255, 255, 0.12); }
.theme-swatch:active { transform: scale(0.94); }
.theme-swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  display: block;
}
.theme-swatch-dot--classic {
  background: linear-gradient(145deg, #22d3ee, #38bdf8);
}
.theme-swatch-dot--minimal {
  background: linear-gradient(180deg, #f4f4f5 0%, #a1a1a6 70%);
}

html[data-theme="minimal"] {
  --bg: #000;
  --bg-card: rgba(0, 0, 0, 0.48);
  --liq-bg: rgba(0, 0, 0, 0.48);
  --liq-bg-2: rgba(255, 255, 255, 0.045);
  --liq-line: rgba(255, 255, 255, 0.08);
  --liq-inset: inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  --liq-blur: blur(24px) saturate(160%);
  --liq-wash:
    radial-gradient(ellipse 85% 90% at 50% 118%, rgba(90, 64, 110, 0.22), transparent 72%),
    radial-gradient(ellipse 50% 60% at 18% 110%, rgba(196, 181, 212, 0.07), transparent 64%);
  --glass: rgba(0, 0, 0, 0.48);
  --glass-light: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-accent: rgba(255, 255, 255, 0.08);
  --glow-accent-strong: rgba(255, 255, 255, 0.12);
  --glow-sidebar: rgba(255, 255, 255, 0.08);
  --glow-sidebar-blue: rgba(255, 255, 255, 0.06);
  --glow-blue: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --n-50: #0a0a0a;
  --n-100: #171717;
  --n-200: #262626;
  --n-300: #373737;
  --n-400: #525252;
  --n-500: #8a8a8a;
  --n-600: #a3a3a3;
  --n-700: #d4d4d4;
  --n-800: #e5e5e5;
  --n-900: #f5f5f5;
  --n-950: #fafafa;
  --sel-bg: #262626;
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --accent: #e5e5e5;
  --accent-blue: #d4d4d4;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --accent-blue-soft: rgba(255, 255, 255, 0.06);
  --period-accent: #f5f5f5;
  --period-accent-strong: #f5f5f5;
  --period-accent-soft: rgba(255, 255, 255, 0.08);
  --period-accent-border: rgba(255, 255, 255, 0.14);
  --premium-diamond: #ececec;
  --premium-diamond-border: rgba(255, 255, 255, 0.18);
  --premium-diamond-soft: rgba(255, 255, 255, 0.06);
  --premium-diamond-text: #f5f5f7;
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --sidebar-w: 72px;
  --sidebar-item-h: 44px;
  --sidebar-gutter: 14px;
  --sidebar-item-pad-x: 0px;
  --mint: #9db8ab;
  --mint-soft: #b7c9c0;
}

html[data-theme="minimal"],
html[data-theme="minimal"] body {
  background: #000;
  color: #f5f5f7;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  letter-spacing: -0.011em;
}
html[data-theme="minimal"] body::before {
  content: '';
  position: fixed;
  inset: auto 0 0 0;
  height: 64vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 82%, rgba(90, 64, 110, 0.36), transparent 72%),
    radial-gradient(ellipse 48% 48% at 20% 70%, rgba(196, 181, 212, 0.11), transparent 64%),
    radial-gradient(ellipse 42% 44% at 78% 88%, rgba(72, 48, 92, 0.16), transparent 66%);
}
html[data-theme="minimal"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
html[data-theme="minimal"] .app,
html[data-theme="minimal"] .top,
html[data-theme="minimal"] .main {
  position: relative;
  z-index: 1;
  background: transparent;
}

html[data-theme="minimal"] .theme-switch {
  height: 42px;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--n-100);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  align-items: center;
}
html[data-theme="minimal"] .theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transform: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}
html[data-theme="minimal"] .theme-swatch:hover {
  background: var(--n-200);
}
html[data-theme="minimal"] .theme-swatch:active {
  transform: none;
}
html[data-theme="minimal"] .theme-swatch.is-active {
  background: var(--sel-bg);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] .theme-swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  flex-shrink: 0;
  opacity: 0.42;
}
html[data-theme="minimal"] .theme-swatch.is-active .theme-swatch-dot {
  opacity: 1;
}
html[data-theme="minimal"] .theme-swatch-dot--classic {
  background: linear-gradient(145deg, #22d3ee, #38bdf8);
}
html[data-theme="minimal"] .theme-swatch-dot--minimal {
  background: var(--n-500);
}
html[data-theme="minimal"] .theme-swatch.is-active .theme-swatch-dot--minimal {
  background: var(--n-900);
}

/* ——— Canvas / type / chrome ——— */
html[data-theme="minimal"] .header-main { gap: 8px; }
html[data-theme="minimal"] .header h1,
html[data-theme="minimal"] #page-title {
  font-family: 'Fraunces', 'Instrument Sans', serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f5f5f7;
  font-optical-sizing: auto;
}
html[data-theme="minimal"] .header-welcome {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: #8d8496;
}
@media (min-width: 769px) {
  html[data-theme="minimal"] .main {
    padding: clamp(18px, 3.2vw, 32px) clamp(16px, 3vw, 28px) 36px;
  }
  html[data-theme="minimal"] .header {
    margin-bottom: 28px;
    gap: 16px;
    align-items: flex-end;
  }
  html[data-theme="minimal"] .header h1,
  html[data-theme="minimal"] #page-title {
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  }
  html[data-theme="minimal"] .header-welcome {
    font-size: 0.95rem;
  }
  html[data-theme="minimal"] .delivery-panel {
    padding: 24px 22px 20px;
    margin-bottom: 28px;
  }
}
html[data-theme="minimal"] .header-user {
  color: #aeaeb2;
  font-weight: 600;
}

html[data-theme="minimal"] .header-profile-trigger {
  height: 42px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: var(--n-100);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  box-shadow: none;
  gap: 8px;
}
html[data-theme="minimal"] .header-profile-trigger:hover,
html[data-theme="minimal"] .header-profile.is-open .header-profile-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="minimal"] .header-profile-avatar {
  width: 30px;
  height: 30px;
  background: #111;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: #f5f5f7;
  font-size: 0.72rem;
}
html[data-theme="minimal"] .header-profile-name {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[data-theme="minimal"] .header-profile-menu {
  background: #161618;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
}

/* ——— Sidebar: centered squares, quiet active glass ——— */
html[data-theme="minimal"] .sidebar {
  --sidebar-w: 72px;
  width: 72px;
  min-width: 72px;
  background: #050506;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  align-items: center;
  gap: 8px;
  padding: 18px 0 16px;
}
html[data-theme="minimal"] .sidebar.expanded {
  width: var(--sidebar-w-expanded);
  min-width: var(--sidebar-w-expanded);
  align-items: stretch;
}
html[data-theme="minimal"] .sidebar-logo {
  width: 44px;
  height: 28px;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0;
  color: transparent;
  position: relative;
}
html[data-theme="minimal"] .sidebar-logo::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--n-900);
  transform: translate(-50%, -50%);
}
html[data-theme="minimal"] .sidebar.expanded .sidebar-logo {
  width: auto;
  font-size: 0.62rem;
  color: #636366;
  letter-spacing: 0.18em;
}
html[data-theme="minimal"] .sidebar.expanded .sidebar-logo::after { display: none; }
html[data-theme="minimal"] .sidebar .nav-link,
html[data-theme="minimal"] .sidebar-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
  color: #8e8e93;
  border: 1px solid transparent;
  box-shadow: none;
}
html[data-theme="minimal"] .sidebar.expanded .nav-link,
html[data-theme="minimal"] .sidebar.expanded .sidebar-toggle {
  width: calc(100% - 24px);
  min-width: 0;
  margin: 0 12px;
  padding: 0 14px;
  justify-content: flex-start;
}
html[data-theme="minimal"] .sidebar:not(.expanded) .nav-link-label {
  display: none;
}
html[data-theme="minimal"] .sidebar .nav-link svg,
html[data-theme="minimal"] .sidebar-toggle svg {
  width: 20px;
  height: 20px;
}
html[data-theme="minimal"] .sidebar .nav-link::before,
html[data-theme="minimal"] .sidebar-toggle::before,
html[data-theme="minimal"] .sidebar .nav-link::after,
html[data-theme="minimal"] .sidebar-toggle::after {
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[data-theme="minimal"] .sidebar .nav-link:hover,
html[data-theme="minimal"] .sidebar-toggle:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme="minimal"] .sidebar .nav-link.active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] .sidebar .nav-link:hover svg,
html[data-theme="minimal"] .sidebar .nav-link.active svg,
html[data-theme="minimal"] .sidebar-toggle:hover svg {
  filter: none;
}
html[data-theme="minimal"] .mobile-nav {
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 10, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  gap: 2px;
  align-items: stretch;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
}
html[data-theme="minimal"] .mobile-nav::before {
  display: none;
}
html[data-theme="minimal"] .mobile-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  margin: 0;
  padding: 7px 2px 6px;
  border-radius: 12px;
  font-size: 0.58rem;
  line-height: 1;
}
html[data-theme="minimal"] .mobile-nav .mobile-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
html[data-theme="minimal"] .mobile-nav .nav-link svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}
html[data-theme="minimal"] .mobile-nav .nav-link.active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ——— Shared cards: liquid glass (whyheavens) ——— */
html[data-theme="minimal"] .card,
html[data-theme="minimal"] .admin-block,
html[data-theme="minimal"] .panel-section:not(.admin-block),
html[data-theme="minimal"] .player-inspector-entry,
html[data-theme="minimal"] .tx-tree-entry,
html[data-theme="minimal"] .portret-moderation-entry,
html[data-theme="minimal"] .delivery-panel,
html[data-theme="minimal"] .chart-wrap,
html[data-theme="minimal"] .income-section,
html[data-theme="minimal"] .income-section.admin-block,
html[data-theme="minimal"] #page-metrics .player-stats-section {
  background: var(--liq-bg) !important;
  border: 0.5px solid var(--liq-line) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), var(--liq-inset) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;
}
html[data-theme="minimal"] .card,
html[data-theme="minimal"] .admin-block {
  border-radius: 22px;
}
html[data-theme="minimal"] .card::before,
html[data-theme="minimal"] .admin-block::before,
html[data-theme="minimal"] .player-inspector-entry::before,
html[data-theme="minimal"] .tx-tree-entry::before,
html[data-theme="minimal"] .portret-moderation-entry::before,
html[data-theme="minimal"] .delivery-panel::before,
html[data-theme="minimal"] .chart-wrap::before,
html[data-theme="minimal"] .income-section::before,
html[data-theme="minimal"] #page-metrics .player-stats-section::before,
html[data-theme="minimal"] #dashboard-cards .dash-metric::before {
  content: '' !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  top: auto !important;
  right: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: 62% !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  background: var(--liq-wash) !important;
  background-size: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
html[data-theme="minimal"] .card::after,
html[data-theme="minimal"] .admin-block::after,
html[data-theme="minimal"] .player-inspector-entry::after,
html[data-theme="minimal"] .tx-tree-entry::after,
html[data-theme="minimal"] .portret-moderation-entry::after,
html[data-theme="minimal"] .delivery-panel::after,
html[data-theme="minimal"] #dashboard-cards .dash-metric::after {
  opacity: 0 !important;
  background: none !important;
}
html[data-theme="minimal"] .card-title,
html[data-theme="minimal"] .dash-metric-top .card-title,
html[data-theme="minimal"] #page-metrics .ps-kpi-top .card-title {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 12px;
}
html[data-theme="minimal"] .dash-metric-top .card-title {
  margin-bottom: 0;
  letter-spacing: 0.1em;
}
html[data-theme="minimal"] .card-value,
html[data-theme="minimal"] .card-value.cpu,
html[data-theme="minimal"] .card-value.ram,
html[data-theme="minimal"] .card-value.green,
html[data-theme="minimal"] .card-value.muted-val {
  font-family: 'Instrument Sans', 'Inter', sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.048em;
  text-shadow: none !important;
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .card-value.muted-val { color: #8e8e93 !important; font-size: 1.55rem; }
html[data-theme="minimal"] .card-footer { color: #6e6e73; font-size: 0.78rem; }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="minimal"] .card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), var(--liq-inset) !important;
  }
}

/* ——— Dashboard KPI row ——— */
html[data-theme="minimal"] #dashboard-cards {
  gap: 12px;
  margin-bottom: 22px;
}
@media (min-width: 769px) {
  html[data-theme="minimal"] #dashboard-cards .dash-metric,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--ram,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--db {
    min-height: 176px;
    padding: 14px 20px 16px;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric .card-value {
    font-size: 2.55rem;
    min-height: 0;
  }
}
html[data-theme="minimal"] #dashboard-cards .dash-metric,
html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu,
html[data-theme="minimal"] #dashboard-cards .dash-metric--ram,
html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime,
html[data-theme="minimal"] #dashboard-cards .dash-metric--db {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  border-radius: 22px;
  background: var(--liq-bg) !important;
  border: 0.5px solid var(--liq-line) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), var(--liq-inset) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;
}
html[data-theme="minimal"] .dash-metric-top {
  flex: 0 0 auto;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
html[data-theme="minimal"] #dashboard-cards .dash-metric .card-value {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0 20px;
  margin: 0;
  min-height: 0;
  line-height: 1;
  color: #f5f5f7 !important;
  text-shadow: none !important;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  text-indent: 0;
  width: auto;
  text-align: left;
  pointer-events: none;
}
html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu .card-value.cpu,
html[data-theme="minimal"] #dashboard-cards .dash-metric--ram .card-value,
html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime .card-value.green,
html[data-theme="minimal"] #dashboard-cards .dash-metric--db .card-value.green {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime .card-value.muted-val,
html[data-theme="minimal"] #dashboard-cards .dash-metric--db .card-value.muted-val {
  color: #8e8e93 !important;
}
html[data-theme="minimal"] .dash-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
  background: var(--liq-bg-2) !important;
  color: #aeaeb2 !important;
}
html[data-theme="minimal"] .dash-metric--cpu .dash-metric-icon,
html[data-theme="minimal"] .dash-metric--ram .dash-metric-icon,
html[data-theme="minimal"] .dash-metric--uptime .dash-metric-icon,
html[data-theme="minimal"] .dash-metric--db .dash-metric-icon {
  color: #aeaeb2 !important;
  background: var(--liq-bg-2) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .dash-metric-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
html[data-theme="minimal"] #dashboard-cards .dash-metric .card-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0;
}
html[data-theme="minimal"] #dash-foot-ram {
  display: none !important;
}
html[data-theme="minimal"] .dash-metric--cpu .dash-metric-bar > span,
html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu .dash-metric-bar > span {
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .dash-metric--ram .dash-metric-bar > span,
html[data-theme="minimal"] #dashboard-cards .dash-metric--ram .dash-metric-bar > span {
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu:hover,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--ram:hover,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime:hover,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--db:hover {
    border-color: var(--liq-line) !important;
    box-shadow: none !important;
  }
}

/* ——— Delivery: 4-up on desktop, inverted selected ——— */
html[data-theme="minimal"] .delivery-panel {
  background: var(--liq-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: none;
}
html[data-theme="minimal"] .delivery-panel h3,
html[data-theme="minimal"] #page-metrics .ps-head h3,
html[data-theme="minimal"] .income-section h3,
html[data-theme="minimal"] .admin-block h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
html[data-theme="minimal"] .delivery-status-line {
  font-size: 0.8rem;
  color: #8e8e93;
}
html[data-theme="minimal"] .delivery-mode-grid {
  gap: 10px;
}
@media (min-width: 1080px) {
  html[data-theme="minimal"] .delivery-mode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  html[data-theme="minimal"] .delivery-mode-btn {
    min-height: 132px;
    padding: 18px 16px 16px;
  }
}
html[data-theme="minimal"] .delivery-mode-btn {
  min-height: 0;
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: var(--liq-bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  gap: 10px;
}
html[data-theme="minimal"] .delivery-mode-btn::before { opacity: 0 !important; }
html[data-theme="minimal"] .delivery-mode-btn::after { opacity: 0 !important; transform: none !important; }
html[data-theme="minimal"] .delivery-mode-btn:hover:not(:disabled) {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="callback"].active,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="polling"].active,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="auto"].active,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="dual"].active {
  background: var(--liq-bg-2) !important;
  color: #f5f5f7 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  filter: none !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-title,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-title {
  color: #f5f5f7;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-sub,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-sub {
  color: #8e8e93 !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-sub::after {
  color: #6e6e73 !important;
}
html[data-theme="minimal"] .delivery-mode-title,
html[data-theme="minimal"] .delivery-mode-btn .delivery-mode-title {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #aeaeb2 !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-title {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .delivery-mode-sub,
html[data-theme="minimal"] .delivery-mode-btn .delivery-mode-sub,
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-sub {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8e8e93 !important;
}
html[data-theme="minimal"] .delivery-mode-icon,
html[data-theme="minimal"] .delivery-mode-icon.callback,
html[data-theme="minimal"] .delivery-mode-icon.polling,
html[data-theme="minimal"] .delivery-mode-icon.auto,
html[data-theme="minimal"] .delivery-mode-icon.dual {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #aeaeb2;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="minimal"] .delivery-mode-icon svg {
  display: block;
  margin: 0;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-icon,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-icon {
  background: var(--sel-bg) !important;
  color: var(--n-900);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="minimal"] .delivery-mode-check {
  width: 20px;
  height: 20px;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="callback"].active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="polling"].active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="auto"].active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode="dual"].active .delivery-mode-check {
  opacity: 1;
  color: var(--n-900) !important;
  background: var(--sel-bg) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px;
}
html[data-theme="minimal"] .delivery-badge,
html[data-theme="minimal"] .delivery-badge.mode-callback,
html[data-theme="minimal"] .delivery-badge.mode-polling,
html[data-theme="minimal"] .delivery-badge.mode-auto,
html[data-theme="minimal"] .delivery-badge.mode-dual {
  background: var(--n-200);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--n-900);
  box-shadow: none;
  font-weight: 650;
}
html[data-theme="minimal"] .delivery-badge.mode-offline {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.22);
  color: #fda4af;
}
html[data-theme="minimal"] .delivery-meta {
  border-top-color: rgba(255, 255, 255, 0.06);
  margin-top: 18px;
  padding-top: 16px;
}
html[data-theme="minimal"] .delivery-meta-chip {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
html[data-theme="minimal"] .delivery-meta-v {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  color: #f5f5f7;
}
html[data-theme="minimal"] .delivery-stats {
  background: var(--liq-bg-2) !important;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}
html[data-theme="minimal"] .delivery-stats.is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode].is-open::before {
  background: rgba(255, 255, 255, 0.22);
}

/* ——— Metrics ——— */
html[data-theme="minimal"] #page-metrics .player-stats-section {
  padding: 24px 22px 20px;
  border-radius: 24px;
  background: var(--liq-bg) !important;
  border-color: rgba(255, 255, 255, 0.07);
}
html[data-theme="minimal"] #page-metrics .ps-head { margin-bottom: 18px; }
html[data-theme="minimal"] #page-metrics .ps-head h3,
html[data-theme="minimal"] #page-metrics .ps-head-title h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
html[data-theme="minimal"] #page-metrics .ps-head-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #6ee7b7;
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
html[data-theme="minimal"] #page-metrics .player-stats-meta {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.06);
  color: #8e8e93;
  font-size: 0.7rem;
}
html[data-theme="minimal"] #page-metrics #player-stats-cards.ps-kpi,
html[data-theme="minimal"] #page-metrics .ps-kpi {
  gap: 12px;
  margin-bottom: 18px;
}
html[data-theme="minimal"] #page-metrics .ps-kpi-card,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--active,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--new,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--peak,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--avg {
  min-height: 128px;
  padding: 18px 18px 14px;
  border-radius: 20px;
  background: var(--liq-bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] #page-metrics .ps-kpi-card::before { display: none !important; }
html[data-theme="minimal"] #page-metrics .ps-kpi-card .card-value,
html[data-theme="minimal"] #page-metrics .ps-kpi-card .card-value.ram,
html[data-theme="minimal"] #page-metrics .ps-kpi-card .card-value.cpu,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--avg .card-value {
  font-size: 2.35rem;
  color: #f5f5f7 !important;
  text-shadow: none !important;
  min-height: 2.2rem;
}
html[data-theme="minimal"] #page-metrics .ps-kpi-icon,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--active .ps-kpi-icon,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--new .ps-kpi-icon,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--peak .ps-kpi-icon,
html[data-theme="minimal"] #page-metrics .ps-kpi-card--avg .ps-kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #aeaeb2 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] #ps-foot-trend.is-up { color: #6ee7b7; }
html[data-theme="minimal"] #ps-foot-trend.is-down { color: #fda4af; }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="minimal"] #page-metrics .ps-kpi-card--active:hover,
  html[data-theme="minimal"] #page-metrics .ps-kpi-card--new:hover,
  html[data-theme="minimal"] #page-metrics .ps-kpi-card--peak:hover,
  html[data-theme="minimal"] #page-metrics .ps-kpi-card--avg:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
}

html[data-theme="minimal"] .chart-legend-chip {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  border-radius: 999px;
}
html[data-theme="minimal"] .chart-legend-chip:not(.off) {
  background: var(--sel-bg);
  color: var(--n-900);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="minimal"] .chart-legend-chip.off {
  background: var(--liq-bg-2);
  color: var(--n-500);
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme="minimal"] .chart-legend-chip:not(.off):hover {
    background: var(--n-300);
    color: var(--n-900);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

html[data-theme="minimal"] .player-stats-new-players,
html[data-theme="minimal"] .player-stats-new-row {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
html[data-theme="minimal"] .player-stats-new-title {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: #6e6e73;
}

/* ——— Selected pills (tabs / ranges) ——— */
html[data-theme="minimal"] .range-btn,
html[data-theme="minimal"] .chart-toolbar .range-btn,
html[data-theme="minimal"] #page-metrics .player-stats-toolbar .range-btn,
html[data-theme="minimal"] .income-tab,
html[data-theme="minimal"] .inspector-tab,
html[data-theme="minimal"] .items-catalog-filter-chip,
html[data-theme="minimal"] .items-toggle-btn,
html[data-theme="minimal"] .ram-inspect-tab {
  border-radius: 999px;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  background: var(--liq-bg-2);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  opacity: 1;
}
html[data-theme="minimal"] .range-btn.active,
html[data-theme="minimal"] .chart-toolbar .range-btn.active,
html[data-theme="minimal"] #page-metrics .player-stats-toolbar .range-btn.active,
html[data-theme="minimal"] .tx-tree-presets .range-btn.active,
html[data-theme="minimal"] .income-tab.is-active,
html[data-theme="minimal"] .inspector-tab.is-active,
html[data-theme="minimal"] .items-catalog-filter-chip.is-active,
html[data-theme="minimal"] .items-toggle-btn.is-active,
html[data-theme="minimal"] .ram-inspect-tab.is-active {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

html[data-theme="minimal"] .btn {
  border-radius: 999px;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  letter-spacing: -0.015em;
}
html[data-theme="minimal"] .btn-primary,
html[data-theme="minimal"] #page-admin .btn-primary,
html[data-theme="minimal"] .portret-modal .btn-primary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}
html[data-theme="minimal"] .btn-primary::before,
html[data-theme="minimal"] #page-admin .btn-primary::before,
html[data-theme="minimal"] .btn::before {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}
html[data-theme="minimal"] .btn-primary:hover,
html[data-theme="minimal"] #page-admin .btn-primary:hover {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.16), 0 12px 32px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="minimal"] .btn-secondary,
html[data-theme="minimal"] #income-refresh {
  background: var(--liq-bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  border-radius: 999px;
  box-shadow: none !important;
}

/* ——— Income ——— */
html[data-theme="minimal"] .income-section,
html[data-theme="minimal"] .income-section.admin-block {
  background: var(--liq-bg) !important;
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: none !important;
}
html[data-theme="minimal"] .income-section h3,
html[data-theme="minimal"] .income-section.admin-block h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
html[data-theme="minimal"] .income-slip,
html[data-theme="minimal"] .income-period {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}
html[data-theme="minimal"] .income-slip-hero-label,
html[data-theme="minimal"] .income-slip-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #6e6e73;
}
html[data-theme="minimal"] .income-slip-hero-value {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.05em;
  background: none;
  -webkit-text-fill-color: #f5f5f7;
  color: #f5f5f7;
}
html[data-theme="minimal"] .income-delta.is-up { color: #6ee7b7; }
html[data-theme="minimal"] .income-delta.is-down { color: #fda4af; }
html[data-theme="minimal"] .income-tabs {
  width: min(420px, 100%);
  padding: 4px;
  border-radius: 999px;
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
html[data-theme="minimal"] .income-tab {
  background: transparent;
  color: #aeaeb2;
  border-radius: 999px;
}
html[data-theme="minimal"] #income-refresh {
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border-radius: 999px;
}

html[data-theme="minimal"] .chart-wrap {
  background: var(--liq-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: none;
}
html[data-theme="minimal"] .chart-wrap h3 {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
html[data-theme="minimal"] #page-metrics .ps-paste-btn {
  border-radius: 12px;
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8e8e93;
}
html[data-theme="minimal"] #page-metrics .ps-paste-btn:hover {
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.18);
}
html[data-theme="minimal"] #page-metrics .ps-inline-row input {
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f5f5f7;
}

/* ——— Admin blocks / inspector flatten ——— */
html[data-theme="minimal"] #page-admin .panel-section.admin-block {
  padding: 22px;
}
html[data-theme="minimal"] .admin-block h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
html[data-theme="minimal"] .admin-block .block-icon,
html[data-theme="minimal"] .admin-block .block-icon.purple,
html[data-theme="minimal"] .admin-block .block-icon.green,
html[data-theme="minimal"] .admin-block .block-icon.blue,
html[data-theme="minimal"] .admin-block .block-icon.amber,
html[data-theme="minimal"] .admin-block .block-icon.violet {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: none;
  background: var(--liq-bg-2);
  color: #aeaeb2;
}
html[data-theme="minimal"] .admin-block .block-icon svg { filter: none; }

html[data-theme="minimal"] .inspector-modal-dialog,
html[data-theme="minimal"] .portret-modal-dialog,
html[data-theme="minimal"] .profile-modal-dialog {
  background: var(--liq-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
html[data-theme="minimal"] .portret-modal-pace.is-flood {
  color: #d4a574;
}
html[data-theme="minimal"] .inspector-profile-head {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] input,
html[data-theme="minimal"] select,
html[data-theme="minimal"] textarea {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
}

html[data-theme="minimal"] .badge {
  background: rgba(62, 207, 142, 0.12);
  color: #6ee7b7;
  border-color: rgba(62, 207, 142, 0.2);
}

/* ——— Login: original mesh aurora (not the video copy) ——— */
.login-stage,
.login-editorial,
.login-mark,
.login-meta,
.login-caustic { display: none; }

html[data-theme="minimal"] body:has(.login-wrap) {
  background: #000;
}
html[data-theme="minimal"] body:has(.login-wrap)::before,
html[data-theme="minimal"] body:has(.login-wrap)::after {
  display: none;
}
html[data-theme="minimal"] .login-bg {
  display: none;
}
html[data-theme="minimal"] .login-stage {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #000;
}
html[data-theme="minimal"] .login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
  mix-blend-mode: screen;
}
html[data-theme="minimal"] .login-blob--a {
  width: 72vw;
  height: 48vh;
  left: -12%;
  top: auto;
  bottom: -18%;
  background: radial-gradient(circle, rgba(186, 168, 210, 0.55) 0%, rgba(90, 70, 120, 0.18) 42%, transparent 70%);
  animation: loginMeshA 22s ease-in-out infinite;
}
html[data-theme="minimal"] .login-blob--b {
  width: 58vw;
  height: 42vh;
  right: -16%;
  top: auto;
  bottom: -12%;
  background: radial-gradient(circle, rgba(72, 48, 92, 0.7) 0%, rgba(40, 24, 56, 0.25) 50%, transparent 72%);
  animation: loginMeshB 26s ease-in-out infinite;
}
html[data-theme="minimal"] .login-blob--c {
  width: 40vw;
  height: 36vh;
  left: 28%;
  top: auto;
  bottom: -8%;
  background: radial-gradient(circle, rgba(214, 204, 224, 0.28) 0%, rgba(120, 96, 148, 0.12) 45%, transparent 70%);
  animation: loginMeshC 18s ease-in-out infinite;
}
html[data-theme="minimal"] .login-blob--d {
  width: 34vw;
  height: 28vh;
  left: 8%;
  top: auto;
  bottom: 6%;
  background: radial-gradient(circle, rgba(48, 32, 64, 0.45) 0%, transparent 70%);
  animation: loginMeshD 30s ease-in-out infinite;
}
html[data-theme="minimal"] .login-grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@keyframes loginMeshA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, -10%, 0) scale(1.12); }
}
@keyframes loginMeshB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-10%, 8%, 0) scale(0.92); }
}
@keyframes loginMeshC {
  0%, 100% { transform: translate3d(0, 4%, 0) scale(1); }
  50% { transform: translate3d(-6%, -8%, 0) scale(1.18); }
}
@keyframes loginMeshD {
  0%, 100% { transform: translate3d(4%, 0, 0); }
  50% { transform: translate3d(-8%, 6%, 0); }
}
html[data-theme="minimal"] .login-editorial,
html[data-theme="minimal"] .login-mark {
  display: none !important;
}
html[data-theme="minimal"] .login-meta {
  display: block;
  position: fixed;
  right: 40px;
  bottom: 36px;
  z-index: 2;
  margin: 0;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(245, 245, 247, 0.55);
  pointer-events: none;
}
html[data-theme="minimal"] .login-wrap {
  position: relative;
  z-index: 2;
}
html[data-theme="minimal"] .login-card {
  width: min(420px, 100%);
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
html[data-theme="minimal"] .login-card::before,
html[data-theme="minimal"] .login-card::after { opacity: 0 !important; background: none !important; }
html[data-theme="minimal"] .login-body { padding-top: 4px; }
html[data-theme="minimal"] .login-brand { margin-bottom: 26px; }
html[data-theme="minimal"] .login-brand h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.05rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}
html[data-theme="minimal"] .field { margin-bottom: 18px; }
html[data-theme="minimal"] .field label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #8d8496;
  margin-bottom: 10px;
}
html[data-theme="minimal"] .field input,
html[data-theme="minimal"] .field-input-wrap input {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #f5f5f7;
  min-height: 48px;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
}
html[data-theme="minimal"] .field input:hover { border-color: rgba(255, 255, 255, 0.14); }
html[data-theme="minimal"] .field input:focus {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme="minimal"] .field-input-wrap:focus-within svg.field-icon,
html[data-theme="minimal"] .field input:focus ~ svg.field-icon {
  stroke: #f5f5f7;
}
html[data-theme="minimal"] .login-submit {
  margin-top: 8px;
  min-height: 52px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12) !important;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}
html[data-theme="minimal"] .login-submit::before {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}
html[data-theme="minimal"] .login-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.16) !important;
}
html[data-theme="minimal"] .login-audit,
html[data-theme="minimal"] .login-audit-icon,
html[data-theme="minimal"] .login-audit-text {
  display: none !important;
}
html[data-theme="minimal"] .login-foot {
  color: #6e6e73;
  font-size: 0.75rem;
}

/* ——— Items catalog ——— */
html[data-theme="minimal"] .items-catalog-search {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--liq-bg-2) !important;
  box-shadow: none !important;
  min-height: 44px;
  padding: 0 16px;
}
html[data-theme="minimal"] .items-catalog-search:focus {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] .items-catalog-filter-chip {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: #aeaeb2;
  border-radius: 999px;
}
html[data-theme="minimal"] .items-catalog-filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
  background: var(--liq-bg-2);
}
html[data-theme="minimal"] .items-catalog-filter-chip.is-active {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .items-catalog-card {
  background: var(--liq-bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px;
  box-shadow: none !important;
}
html[data-theme="minimal"] .items-catalog-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .items-catalog-card.is-active {
  background: #242426 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .items-catalog-card-icon {
  background: var(--liq-bg);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] .items-catalog-card-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[data-theme="minimal"] .items-catalog-placeholder {
  background: var(--liq-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 24px;
  min-height: 420px;
  gap: 14px;
}
html[data-theme="minimal"] .items-catalog-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: #aeaeb2;
}
html[data-theme="minimal"] .items-catalog-placeholder-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
html[data-theme="minimal"] .items-catalog-placeholder-text {
  color: #8e8e93;
}

/* ——— Admin page leftover chrome ——— */
html[data-theme="minimal"] .admin-block:hover,
html[data-theme="minimal"] .player-inspector-entry:hover,
html[data-theme="minimal"] .tx-tree-entry:hover,
html[data-theme="minimal"] .portret-moderation-entry:hover {
  transform: none !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .player-inspector-entry,
html[data-theme="minimal"] .tx-tree-entry,
html[data-theme="minimal"] .portret-moderation-entry {
  border-radius: 20px;
  padding: 18px 20px;
}
html[data-theme="minimal"] #page-admin .admin-block-body input,
html[data-theme="minimal"] #page-admin .admin-block-body select,
html[data-theme="minimal"] .admin-select-trigger,
html[data-theme="minimal"] #page-admin .form-row input,
html[data-theme="minimal"] #page-admin .form-row select {
  font-family: 'Instrument Sans', 'Inter', sans-serif !important;
  background: var(--liq-bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] #page-admin .admin-block-body input:focus,
html[data-theme="minimal"] #page-admin .form-row input:focus,
html[data-theme="minimal"] .admin-select-wrap.open .admin-select-trigger {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] #page-admin .mob-sched-hm {
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: none;
}
html[data-theme="minimal"] #page-admin .mob-sched-hm:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--liq-bg-2);
}
html[data-theme="minimal"] #page-admin .mob-sched-hm:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: var(--liq-bg-2);
}
html[data-theme="minimal"] #page-admin .mob-sched-hm-cap,
html[data-theme="minimal"] #page-admin .mob-sched-hm-unit {
  color: #8d8496;
}
html[data-theme="minimal"] #page-admin .admin-block-body .mob-sched-hm input,
html[data-theme="minimal"] #page-admin .admin-block-body .mob-sched-hm input:hover,
html[data-theme="minimal"] #page-admin .admin-block-body .mob-sched-hm input:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .admin-select-wrap.open .admin-select-trigger svg {
  stroke: #f5f5f7;
}
html[data-theme="minimal"] #admin-select-portal {
  background: #161618 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="minimal"] .admin-select-option:hover,
html[data-theme="minimal"] .admin-select-option.active {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
}
html[data-theme="minimal"] .admin-block--resets .admin-reset-btn {
  border-radius: 999px;
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] .admin-new-players,
html[data-theme="minimal"] .admin-new-players-row {
  background: var(--liq-bg-2);
  border-color: rgba(255, 255, 255, 0.07);
}
html[data-theme="minimal"] #page-chats .chatter-sidebar,
html[data-theme="minimal"] #page-chats .chatter-main,
html[data-theme="minimal"] #page-chats .chatter-chat-item {
  background: var(--liq-bg);
  border-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="minimal"] #page-db .dbx-sidebar,
html[data-theme="minimal"] #page-db .dbx-main {
  background: var(--liq-bg);
  border: 0.5px solid var(--liq-line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), var(--liq-inset);
  backdrop-filter: var(--liq-blur);
  -webkit-backdrop-filter: var(--liq-blur);
}
html[data-theme="minimal"] #page-db .dbx-schema-copy strong,
html[data-theme="minimal"] #page-db .dbx-crumb h2 {
  font-family: 'Fraunces', 'Instrument Sans', serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f5f5f7;
}
html[data-theme="minimal"] #page-db .dbx-folder-name {
  color: #8d8496;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  letter-spacing: 0.08em;
}
html[data-theme="minimal"] #page-db .dbx-schema-mark {
  background: #f5f5f7;
  box-shadow: none;
  width: 7px;
  height: 7px;
  opacity: 0.45;
}
html[data-theme="minimal"] #page-db .dbx-schema-btn.is-active,
html[data-theme="minimal"] #page-db .dbx-table.is-active {
  background: var(--sel-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme="minimal"] #page-db .dbx-schema-btn:hover,
  html[data-theme="minimal"] #page-db .dbx-table:hover,
  html[data-theme="minimal"] #page-db .dbx-folder-btn:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}
html[data-theme="minimal"] #page-db .dbx-search,
html[data-theme="minimal"] #page-db #dbx-player-search,
html[data-theme="minimal"] #page-db #dbx-quick-search,
html[data-theme="minimal"] #page-db .dbx-sql,
html[data-theme="minimal"] #page-db .dbx-field input,
html[data-theme="minimal"] #page-db .dbx-field select,
html[data-theme="minimal"] #page-db .dbx-field textarea,
html[data-theme="minimal"] #page-db .dbx-cell-input,
html[data-theme="minimal"] #page-db .dbx-modal-expect input,
html[data-theme="minimal"] #page-db .dbx-modal-expect select,
html[data-theme="minimal"] #page-db .dbx-op input:not([type="checkbox"]):not([type="file"]),
html[data-theme="minimal"] #page-db .dbx-op select {
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  box-shadow: none;
}
html[data-theme="minimal"] #page-db .dbx-search:focus,
html[data-theme="minimal"] #page-db .dbx-sql:focus,
html[data-theme="minimal"] #page-db .dbx-field input:focus,
html[data-theme="minimal"] #page-db .dbx-field select:focus,
html[data-theme="minimal"] #page-db .dbx-field textarea:focus,
html[data-theme="minimal"] #page-db .dbx-cell-input:focus {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] #page-db .dbx-chip,
html[data-theme="minimal"] #page-db .dbx-tab,
html[data-theme="minimal"] #page-db .dbx-icon-btn,
html[data-theme="minimal"] #page-db .dbx-back-btn,
html[data-theme="minimal"] #page-db .dbx-pager button,
html[data-theme="minimal"] #page-db .dbx-recent button {
  background: var(--liq-bg-2);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  box-shadow: none;
}
html[data-theme="minimal"] #page-db .dbx-tab.is-active,
html[data-theme="minimal"] #page-db .dbx-chip:hover {
  background: var(--sel-bg);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] #page-db .dbx-kpi,
html[data-theme="minimal"] #page-db .dbx-panel,
html[data-theme="minimal"] #page-db .dbx-folder-card,
html[data-theme="minimal"] #page-db .dbx-op,
html[data-theme="minimal"] #page-db .dbx-grid-wrap {
  background: var(--liq-bg-2);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
html[data-theme="minimal"] #page-db .dbx-form-actions {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 6, 0.96) 38%);
}
html[data-theme="minimal"] #page-db .dbx-tree,
html[data-theme="minimal"] #page-db .dbx-grid-wrap {
  scrollbar-color: rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.06);
}
html[data-theme="minimal"] #page-db .dbx-tree::-webkit-scrollbar-track,
html[data-theme="minimal"] #page-db .dbx-grid-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="minimal"] #page-db .dbx-tree::-webkit-scrollbar-thumb,
html[data-theme="minimal"] #page-db .dbx-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}
html[data-theme="minimal"] #page-db .dbx-tree::-webkit-scrollbar-thumb:hover,
html[data-theme="minimal"] #page-db .dbx-grid-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}
html[data-theme="minimal"] #page-db .dbx-kpi span,
html[data-theme="minimal"] #page-db .dbx-folder-card small {
  color: #8d8496;
}
html[data-theme="minimal"] #page-db .dbx-kpi strong {
  color: #f5f5f7;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
}
html[data-theme="minimal"] #page-db .dbx-grid th {
  background: #0a0a0a;
  color: #8d8496;
}
html[data-theme="minimal"] #page-db .dbx-grid th.is-sorted,
html[data-theme="minimal"] #page-db .dbx-badge {
  color: #f5f5f7;
  background: var(--sel-bg);
}
html[data-theme="minimal"] #page-db .dbx-grid tr.is-selected td {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="minimal"] #page-db .dbx-user-avatar.is-fallback {
  color: #f5f5f7;
  background: var(--sel-bg);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] #page-db .dbx-row-check input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--liq-bg-2);
}
html[data-theme="minimal"] #page-db .dbx-row-check input[type="checkbox"]::after {
  background: #f5f5f7;
}
html[data-theme="minimal"] #page-db .dbx-row-check input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
html[data-theme="minimal"] #page-db .dbx-toolbar .admin-select-trigger {
  background: var(--liq-bg-2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] #page-db .dbx-player-search .player-picker-input,
html[data-theme="minimal"] #page-db #dbx-player-search,
html[data-theme="minimal"] #page-db #dbx-quick-search,
html[data-theme="minimal"] #page-db .dbx-player-search .player-picker-chosen {
  background: var(--liq-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  caret-color: #f5f5f7;
}
html[data-theme="minimal"] #page-db .dbx-player-search .player-picker-input::placeholder,
html[data-theme="minimal"] #page-db #dbx-player-search::placeholder,
html[data-theme="minimal"] #page-db #dbx-quick-search::placeholder {
  color: #8d8496;
  -webkit-text-fill-color: #8d8496;
}
html[data-theme="minimal"] #page-db .dbx-player-search .player-picker-input:-webkit-autofill,
html[data-theme="minimal"] #page-db #dbx-player-search:-webkit-autofill,
html[data-theme="minimal"] #page-db #dbx-quick-search:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f7;
  caret-color: #f5f5f7;
  box-shadow: 0 0 0 1000px #121214 inset;
}
html[data-theme="minimal"] #page-db .dbx-table-name.is-alias {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
}
html[data-theme="minimal"] #page-db .dbx-table-ident,
html[data-theme="minimal"] #page-db .dbx-ident-inline {
  color: #8d8496;
}
html[data-theme="minimal"] #page-db .dbx-star.is-on { color: #d4d4d4; }
html[data-theme="minimal"] #page-db .dbx-modal-dialog,
html[data-theme="minimal"] #page-db .dbx-copy-dialog,
html[data-theme="minimal"] #page-db .dbx-menu {
  background: #161618;
  border: 0.5px solid var(--liq-line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
html[data-theme="minimal"] #page-db .dbx-copy-dialog {
  background: linear-gradient(180deg, #161618 0%, #101012 100%);
}
html[data-theme="minimal"] #page-db .dbx-copy-kicker,
html[data-theme="minimal"] #page-db .dbx-copy-chip {
  color: #d4d4d4;
  background: var(--sel-bg);
}
html[data-theme="minimal"] #page-db .dbx-copy-kicker { background: transparent; }
html[data-theme="minimal"] #page-db .dbx-copy-chip-btn.is-active,
html[data-theme="minimal"] #page-db .dbx-copy-close:hover,
html[data-theme="minimal"] #page-db .dbx-copy-nav:hover {
  background: var(--sel-bg);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}
html[data-theme="minimal"] #page-db .dbx-copy-foot {
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.2), rgba(10, 10, 12, 0.96));
  border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] #page-db .dbx-copy-close,
html[data-theme="minimal"] #page-db .dbx-copy-nav,
html[data-theme="minimal"] #page-db .dbx-copy-chip-btn {
  background: var(--liq-bg-2);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="minimal"] #page-db .dbx-menu-item:hover,
html[data-theme="minimal"] #page-db .dbx-menu-item:focus-visible,
html[data-theme="minimal"] #page-db .dbx-more:hover {
  background: var(--sel-bg);
  color: #f5f5f7;
}
html[data-theme="minimal"] #page-db .dbx-menu-item.is-danger { color: #d4d4d4; }
html[data-theme="minimal"] #page-db .dbx-menu-sep { background: rgba(255, 255, 255, 0.08); }
html[data-theme="minimal"] #page-db .dbx-op.is-danger {
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="minimal"] #page-db .btn-primary::before { display: none; }
html[data-theme="minimal"] .import-btn,
html[data-theme="minimal"] .ps-paste-btn {
  border-radius: 12px;
}

@media (max-width: 720px) {
  html[data-theme="minimal"] .login-editorial {
    top: 20px;
    left: 20px;
    font-size: 1.35rem;
  }
  html[data-theme="minimal"] .login-mark { left: 22px; bottom: 20px; }
  html[data-theme="minimal"] .login-meta { right: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="minimal"] .login-blob {
    animation: none !important;
  }
}

/* Mobile layout lives at EOF (after cyan-kill). */

@media (prefers-reduced-motion: reduce) {
  html.theme-animating,
  html.theme-animating * {
    transition: none !important;
  }
}

/* ——— Liquid glass + leftover cyan kill (must stay last) ——— */
html[data-theme="minimal"] .card,
html[data-theme="minimal"] .admin-block,
html[data-theme="minimal"] .panel-section,
html[data-theme="minimal"] .player-inspector-entry,
html[data-theme="minimal"] .tx-tree-entry,
html[data-theme="minimal"] .portret-moderation-entry,
html[data-theme="minimal"] .delivery-panel,
html[data-theme="minimal"] .chart-wrap,
html[data-theme="minimal"] .income-section,
html[data-theme="minimal"] .income-section.admin-block,
html[data-theme="minimal"] #page-metrics .player-stats-section,
html[data-theme="minimal"] #dashboard-cards .dash-metric,
html[data-theme="minimal"] .inspector-modal-dialog,
html[data-theme="minimal"] .portret-modal-dialog,
html[data-theme="minimal"] .profile-modal-dialog,
html[data-theme="minimal"] .header-profile-menu,
html[data-theme="minimal"] .items-catalog-placeholder,
html[data-theme="minimal"] #page-chats .chatter-sidebar,
html[data-theme="minimal"] #page-chats .chatter-main,
html[data-theme="minimal"] #page-db .dbx-sidebar,
html[data-theme="minimal"] #page-db .dbx-main,
html[data-theme="minimal"] #page-db .dbx-menu,
html[data-theme="minimal"] #page-db .dbx-copy-dialog {
  background: var(--liq-bg) !important;
  border: 0.5px solid var(--liq-line) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), var(--liq-inset) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;
}

html[data-theme="minimal"] .delivery-mode-btn,
html[data-theme="minimal"] .delivery-stats,
html[data-theme="minimal"] .delivery-badge,
html[data-theme="minimal"] .delivery-meta-chip,
html[data-theme="minimal"] .income-slip,
html[data-theme="minimal"] .income-period,
html[data-theme="minimal"] #page-metrics .ps-kpi-card,
html[data-theme="minimal"] .items-catalog-card,
html[data-theme="minimal"] .inspector-profile-head,
html[data-theme="minimal"] .admin-new-players,
html[data-theme="minimal"] .admin-new-players-row,
html[data-theme="minimal"] .player-stats-new-players,
html[data-theme="minimal"] .player-stats-new-row,
html[data-theme="minimal"] #page-chats .chatter-chat-item,
html[data-theme="minimal"] #page-db .dbx-kpi,
html[data-theme="minimal"] #page-db .dbx-panel,
html[data-theme="minimal"] #page-db .dbx-table.is-active,
html[data-theme="minimal"] #page-db .dbx-tab.is-active,
html[data-theme="minimal"] #page-db .dbx-menu-item:hover {
  background: var(--liq-bg-2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}

html[data-theme="minimal"] input:focus,
html[data-theme="minimal"] select:focus,
html[data-theme="minimal"] textarea:focus,
html[data-theme="minimal"] .player-picker-input:focus,
html[data-theme="minimal"] .inspector-search-wrap .player-picker-input:focus,
html[data-theme="minimal"] .inspector-inv-search:focus,
html[data-theme="minimal"] #page-metrics .stats-field-row input:focus,
html[data-theme="minimal"] #page-admin .admin-block-body input:focus,
html[data-theme="minimal"] #page-admin .admin-block-body select:focus,
html[data-theme="minimal"] #page-admin .form-row input:focus,
html[data-theme="minimal"] #page-admin .form-row select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] #page-admin .admin-block-body .mob-sched-hm input:focus {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

html[data-theme="minimal"] .inspector-modal-dialog {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), var(--liq-inset) !important;
}
html[data-theme="minimal"] .inspector-modal-refresh:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="minimal"] .inspector-empty-hint strong,
html[data-theme="minimal"] .inspector-meta h3,
html[data-theme="minimal"] .inspector-tag,
html[data-theme="minimal"] .inspector-tag-icon,
html[data-theme="minimal"] .inspector-tag-text,
html[data-theme="minimal"] .player-picker-name,
html[data-theme="minimal"] .player-picker-chosen-name {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .inspector-tag {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .inspector-tag--online {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="minimal"] .inspector-tag--online .inspector-tag-text,
html[data-theme="minimal"] .inspector-tag--online .inspector-tag-icon {
  color: #d1d1d6 !important;
}
html[data-theme="minimal"] .player-picker-avatar-fallback,
html[data-theme="minimal"] .player-picker-chosen-fallback,
html[data-theme="minimal"] .inspector-avatar-slot .player-picker-avatar-fallback {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="minimal"] .player-picker-item:hover,
html[data-theme="minimal"] .player-picker-item.active {
  background: rgba(255, 255, 255, 0.07) !important;
}
html[data-theme="minimal"] .player-picker-input.has-player,
html[data-theme="minimal"] .player-picker-chosen {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] #inspector-picker-portal,
html[data-theme="minimal"] #player-picker-portal,
html[data-theme="minimal"] .player-picker-dropdown,
html[data-theme="minimal"] #admin-select-portal {
  background: rgba(12, 12, 14, 0.72) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), var(--liq-inset) !important;
  backdrop-filter: var(--liq-blur) !important;
  -webkit-backdrop-filter: var(--liq-blur) !important;
}

html[data-theme="minimal"] .delivery-stats-title,
html[data-theme="minimal"] .delivery-stats[data-mode="callback"] .delivery-stats-title,
html[data-theme="minimal"] .delivery-stats[data-mode="polling"] .delivery-stats-title,
html[data-theme="minimal"] .delivery-stats[data-mode="auto"] .delivery-stats-title,
html[data-theme="minimal"] .delivery-stats[data-mode="dual"] .delivery-stats-title {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .delivery-stats.is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode].is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode="polling"].is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode="callback"].is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode="auto"].is-open::before,
html[data-theme="minimal"] .delivery-stats[data-mode="dual"].is-open::before {
  background: rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="minimal"] .delivery-stats-col-alive.on {
  color: #d1d1d6 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] .delivery-stats-metric-v,
html[data-theme="minimal"] .delivery-stats-metric-v.is-warn,
html[data-theme="minimal"] .delivery-stats-metric-v.is-ok,
html[data-theme="minimal"] .delivery-stats-metric-v.is-bad,
html[data-theme="minimal"] .delivery-stats-metric.is-errors .delivery-stats-metric-v {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .delivery-badge.mode-callback,
html[data-theme="minimal"] .delivery-badge.mode-polling,
html[data-theme="minimal"] .delivery-badge.mode-auto,
html[data-theme="minimal"] .delivery-badge.mode-dual,
html[data-theme="minimal"] .delivery-badge.mode-offline {
  color: var(--n-900) !important;
  background: var(--n-200) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .delivery-badge.mode-offline {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(244, 63, 94, 0.22) !important;
  color: #fda4af !important;
}
html[data-theme="minimal"] .delivery-pulse.online,
html[data-theme="minimal"] .delivery-pulse.offline {
  box-shadow: none !important;
}
html[data-theme="minimal"] .delivery-pulse.online { background: #aeaeb2 !important; }
html[data-theme="minimal"] .delivery-pulse.offline { background: #8e8e93 !important; }

html[data-theme="minimal"] .badge {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d1d1d6 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="minimal"] .btn-primary,
html[data-theme="minimal"] #page-admin .btn-primary,
html[data-theme="minimal"] .portret-modal .btn-primary,
html[data-theme="minimal"] .login-submit {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}
html[data-theme="minimal"] .btn-primary::before,
html[data-theme="minimal"] #page-admin .btn-primary::before,
html[data-theme="minimal"] .login-submit::before,
html[data-theme="minimal"] .btn::before {
  display: none !important;
}

html[data-theme="minimal"] .login-editorial,
html[data-theme="minimal"] .login-mark,
html[data-theme="minimal"] .login-audit {
  display: none !important;
}

html[data-theme="minimal"] body:has(.login-wrap) .login-card {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

html[data-theme="minimal"] .header-profile-avatar {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
  color: #f5f5f7 !important;
  background: #111 !important;
}
html[data-theme="minimal"] .profile-modal-avatar {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .workers-row {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="minimal"] .workers-flood {
  color: #d4a574 !important;
  border-color: rgba(212, 165, 116, 0.28) !important;
  background: rgba(80, 50, 20, 0.35) !important;
}
html[data-theme="minimal"] .workers-row-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="minimal"] .workers-row:not(.is-off) .workers-row-btn {
  color: #f5c6c6 !important;
}
html[data-theme="minimal"] .workers-row.is-off .workers-row-btn {
  color: #cfcfd2 !important;
}
html[data-theme="minimal"] .workers-row-title {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .workers-row-status {
  color: #8d8496 !important;
}
html[data-theme="minimal"] .workers-flood-check {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .workers-flood-check.is-active {
  color: #d4a574 !important;
  border-color: rgba(212, 165, 116, 0.28) !important;
  background: rgba(80, 50, 20, 0.35) !important;
}
html[data-theme="minimal"] .workers-flood-check.is-clear {
  color: #f5f5f7 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="minimal"] .workers-silence {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f5c6c6 !important;
}
html[data-theme="minimal"] .admin-new-players-count,
html[data-theme="minimal"] .admin-new-players-online,
html[data-theme="minimal"] .admin-new-players-chip.is-accent,
html[data-theme="minimal"] .player-stats-new-count {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .admin-new-players-avatar-fallback,
html[data-theme="minimal"] .player-stats-new-avatar-fallback {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="minimal"] .player-stats-new-row:hover,
html[data-theme="minimal"] .admin-new-players-row:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}
html[data-theme="minimal"] .chatter-back-btn,
html[data-theme="minimal"] .chatter-search-toggle,
html[data-theme="minimal"] .chatter-filter-chip,
html[data-theme="minimal"] .chatter-msg-author {
  color: #f5f5f7 !important;
}
html[data-theme="minimal"] .chatter-filter-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="minimal"] .chatter-search-wrap .chatter-search-input:focus,
html[data-theme="minimal"] .chatter-back-btn:hover,
html[data-theme="minimal"] .chatter-search-toggle:hover,
html[data-theme="minimal"] .chatter-filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="minimal"] .chart-legend-dot.cpu {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="minimal"] .theme-swatch.is-active {
  background: var(--sel-bg) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="minimal"] .theme-swatch.is-active .theme-swatch-dot--minimal {
  background: var(--n-900) !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-icon,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-icon {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-check,
html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-check {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="minimal"] .range-btn.active,
html[data-theme="minimal"] .chart-toolbar .range-btn.active,
html[data-theme="minimal"] #page-metrics .player-stats-toolbar .range-btn.active,
html[data-theme="minimal"] .tx-tree-presets .range-btn.active,
html[data-theme="minimal"] .income-tab.is-active,
html[data-theme="minimal"] .inspector-tab.is-active,
html[data-theme="minimal"] .items-catalog-filter-chip.is-active,
html[data-theme="minimal"] .items-toggle-btn.is-active,
html[data-theme="minimal"] .ram-inspect-tab.is-active,
html[data-theme="minimal"] .chart-legend-chip:not(.off) {
  background: var(--sel-bg) !important;
  color: var(--n-900) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

/* Mobile — last, so it beats cyan-kill + desktop glass sizes. */
@media (max-width: 768px) {
  html[data-theme="minimal"] body::before {
    height: 90vh;
    background:
      radial-gradient(ellipse 120% 72% at 50% 38%, rgba(90, 64, 110, 0.4), transparent 70%),
      radial-gradient(ellipse 62% 52% at 16% 22%, rgba(196, 181, 212, 0.12), transparent 64%),
      radial-gradient(ellipse 54% 48% at 86% 54%, rgba(72, 48, 92, 0.2), transparent 66%);
  }

  html[data-theme="minimal"] .main {
    padding: 8px 12px 16px !important;
  }
  html[data-theme="minimal"] .main.main-with-mobile {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-theme="minimal"] .header {
    margin-bottom: 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  html[data-theme="minimal"] .header-main {
    min-width: 0;
    flex: 1 1 auto;
    gap: 2px;
  }
  html[data-theme="minimal"] .header h1,
  html[data-theme="minimal"] #page-title {
    font-size: 1.32rem !important;
    line-height: 1.12 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html[data-theme="minimal"] .header-welcome {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  html[data-theme="minimal"] .header-tools {
    flex: 0 0 auto;
    gap: 6px !important;
  }
  html[data-theme="minimal"] .theme-switch {
    height: 42px;
    padding: 4px;
  }
  html[data-theme="minimal"] .theme-swatch {
    width: 34px;
    height: 34px;
  }
  html[data-theme="minimal"] .header-profile-name,
  html[data-theme="minimal"] .header-profile-chevron {
    display: none !important;
  }
  html[data-theme="minimal"] .header-profile-trigger {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  html[data-theme="minimal"] .header-profile-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  html[data-theme="minimal"] .card,
  html[data-theme="minimal"] .admin-block,
  html[data-theme="minimal"] .panel-section:not(.admin-block),
  html[data-theme="minimal"] .player-inspector-entry,
  html[data-theme="minimal"] .tx-tree-entry,
  html[data-theme="minimal"] .portret-moderation-entry,
  html[data-theme="minimal"] .delivery-panel,
  html[data-theme="minimal"] .chart-wrap,
  html[data-theme="minimal"] .income-section,
  html[data-theme="minimal"] .income-section.admin-block,
  html[data-theme="minimal"] #page-metrics .player-stats-section,
  html[data-theme="minimal"] #dashboard-cards .dash-metric {
    box-shadow: var(--liq-inset) !important;
    border-radius: 18px !important;
  }

  html[data-theme="minimal"] #dashboard-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none;
    grid-auto-rows: minmax(0, auto);
    gap: 8px !important;
    margin-bottom: 12px !important;
    align-items: stretch;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--ram,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--db {
    min-height: 96px !important;
    height: auto !important;
    padding: 8px 10px 10px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  html[data-theme="minimal"] #dash-foot-ram {
    display: none !important;
  }
  html[data-theme="minimal"] .dash-metric-top {
    flex: 0 0 auto;
    margin-bottom: 4px !important;
    justify-content: space-between;
    align-items: center;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric .card-title,
  html[data-theme="minimal"] #dashboard-cards .dash-metric .dash-metric-top .card-title {
    text-align: left !important;
    letter-spacing: 0.08em !important;
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    padding: 0;
    margin: 0 !important;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric--uptime .card-title {
    letter-spacing: 0.04em !important;
    font-size: 0.52rem !important;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric .card-value {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 1.18rem !important;
    min-height: 0 !important;
    line-height: 1 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 10px !important;
    letter-spacing: -0.03em !important;
  }
  html[data-theme="minimal"] #dashboard-cards .dash-metric .card-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: auto !important;
    padding-top: 0 !important;
    min-height: 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
  html[data-theme="minimal"] .dash-metric-bar,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--cpu .dash-metric-bar,
  html[data-theme="minimal"] #dashboard-cards .dash-metric--ram .dash-metric-bar {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    height: 3px !important;
    width: 100%;
  }
  html[data-theme="minimal"] .dash-metric-icon {
    position: static;
    transform: none;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    border-radius: 7px !important;
    align-self: center;
  }
  html[data-theme="minimal"] .dash-metric-icon svg {
    width: 12px !important;
    height: 12px !important;
    display: block;
    margin: 0;
  }

  html[data-theme="minimal"] .delivery-panel {
    padding: 14px 12px 12px !important;
    margin-bottom: 14px !important;
  }
  html[data-theme="minimal"] .delivery-mode-grid {
    align-items: start !important;
    grid-auto-rows: min-content !important;
    gap: 8px !important;
  }
  html[data-theme="minimal"] .delivery-mode-btn,
  html[data-theme="minimal"] .delivery-mode-btn[data-mode],
  html[data-theme="minimal"] .delivery-mode-btn[data-mode="callback"],
  html[data-theme="minimal"] .delivery-mode-btn[data-mode="polling"],
  html[data-theme="minimal"] .delivery-mode-btn[data-mode="auto"],
  html[data-theme="minimal"] .delivery-mode-btn[data-mode="dual"] {
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 6px 9px !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 14px !important;
  }
  html[data-theme="minimal"] .delivery-mode-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding-right: 0 !important;
    width: 100% !important;
    min-width: 0;
  }
  html[data-theme="minimal"] .delivery-mode-check,
  html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-check,
  html[data-theme="minimal"] .delivery-mode-btn[data-mode].active .delivery-mode-check {
    display: none !important;
  }
  html[data-theme="minimal"] .delivery-mode-icon,
  html[data-theme="minimal"] .delivery-mode-icon.callback,
  html[data-theme="minimal"] .delivery-mode-icon.polling,
  html[data-theme="minimal"] .delivery-mode-icon.auto,
  html[data-theme="minimal"] .delivery-mode-icon.dual,
  html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-icon {
    width: 26px !important;
    height: 26px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    flex-shrink: 0;
  }
  html[data-theme="minimal"] .delivery-mode-icon svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    margin: 0 !important;
  }
  html[data-theme="minimal"] .delivery-mode-title,
  html[data-theme="minimal"] .delivery-mode-btn .delivery-mode-title,
  html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-title {
    width: auto !important;
    max-width: 100%;
    margin: 0 auto;
    text-align: center !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }
  html[data-theme="minimal"] .delivery-mode-sub,
  html[data-theme="minimal"] .delivery-mode-btn .delivery-mode-sub,
  html[data-theme="minimal"] .delivery-mode-btn.active .delivery-mode-sub {
    display: none !important;
  }

  html[data-theme="minimal"] .mobile-nav {
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html[data-theme="minimal"] .mobile-nav .nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 44px;
    padding: 6px 2px 5px !important;
  }
  html[data-theme="minimal"] .mobile-nav .mobile-nav-icon,
  html[data-theme="minimal"] .mobile-nav .nav-link svg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto;
  }
  html[data-theme="minimal"] .mobile-nav .nav-link svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  html[data-theme="minimal"] #page-db .dbx-sidebar,
  html[data-theme="minimal"] #page-db .dbx-main {
    border-radius: 14px !important;
    box-shadow: none !important;
  }
  html[data-theme="minimal"] #page-db .dbx-kpis {
    grid-template-columns: 1fr 1fr;
  }
  html[data-theme="minimal"] #page-db .dbx-crumb h2 {
    font-size: 1.05rem;
  }
}
