/* Bot Console. A shared visual layer for the existing, functioning panel. */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
  color-scheme: dark;
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #181c25;
  --surface-3: #202533;
  --elev: #181c25;
  --field: #0d1015;
  --text: #eef1f6;
  --muted: #a3abbb;
  --text-subtle: #8590a5;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .13);
  --fill: rgba(255, 255, 255, .035);
  --primary: #3976e9;
  --primary-fg: #fff;
  --accent: #4c8dff;
  --accent-text: #a9c9ff;
  --accent-soft: rgba(76, 141, 255, .12);
  --accent-line: rgba(76, 141, 255, .28);
  --accent-glow: rgba(76, 141, 255, .085);
  --violet: #8b6cff;
  --violet-text: #bcaaff;
  --violet-soft: rgba(139, 108, 255, .12);
  --violet-glow: rgba(139, 108, 255, .065);
  --ok: #3ccf91;
  --ok-soft: rgba(60, 207, 145, .10);
  --warn: #f5b544;
  --warn-soft: rgba(245, 181, 68, .09);
  --err: #f2686b;
  --err-soft: rgba(242, 104, 107, .10);
  --ring: #4c8dff;
  --focus-ring: rgba(76, 141, 255, .33);
  --sidebar-bg: rgba(10, 12, 16, .88);
  --topbar-bg: rgba(10, 12, 16, .82);
  --glass: rgba(18, 21, 28, .90);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .24);
  --shadow-md: 0 12px 32px -20px rgba(0, 0, 0, .62);
  --shadow-lg: 0 32px 80px -24px rgba(0, 0, 0, .72);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --sidebar-w: 248px;
  --container-max: 1240px;
}

body.ui-enhanced {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1000px 480px at 90% -15%, var(--accent-glow), transparent 65%),
    radial-gradient(800px 440px at -10% 105%, var(--violet-glow), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ui-enhanced *,
body.ui-enhanced *::before,
body.ui-enhanced *::after { box-sizing: border-box; }
body.ui-enhanced ::selection { background: var(--accent-line); }
body.ui-enhanced [hidden] { display: none !important; }
body.ui-enhanced :is(h1, h2, h3, h4) { color: var(--text); line-height: 1.25; }
body.ui-enhanced h2 { font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
body.ui-enhanced h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
body.ui-enhanced p { overflow-wrap: anywhere; }
body.ui-enhanced a { color: var(--accent-text); text-underline-offset: 3px; }
body.ui-enhanced a:hover { text-decoration-color: currentColor; }
body.ui-enhanced button,
body.ui-enhanced input,
body.ui-enhanced textarea,
body.ui-enhanced select { font-family: var(--font); }
body.ui-enhanced .muted { color: var(--muted); }
body.ui-enhanced .mono,
body.ui-enhanced code,
body.ui-enhanced pre { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
body.ui-enhanced pre { white-space: pre-wrap; max-width: 100%; }
body.ui-enhanced code { padding: 2px 5px; border-radius: 5px; background: var(--surface-2); }
body.ui-enhanced .sep { background: var(--line); margin: 18px 0; }

body.ui-enhanced .ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shell and navigation. The 248px rail remains full size until the mobile layout. */
body.ui-enhanced .app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100dvh;
  width: 100%;
}
body.ui-enhanced .sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100dvh;
  min-width: 0;
  padding: 26px 14px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.ui-enhanced .sidebar .txt { display: inline; min-width: 0; }
body.ui-enhanced .brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
body.ui-enhanced .ui-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, #4c8dff, #8b6cff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 8px 20px -9px rgba(100, 117, 255, .65);
}
body.ui-enhanced .ui-brand-mark .ui-icon { width: 21px; height: 21px; }
body.ui-enhanced .sidebar .ui-brand-meta { display: flex; flex-direction: column; gap: 1px; }
body.ui-enhanced .ui-brand-name { font-size: 15px; font-weight: 650; letter-spacing: -.025em; color: var(--text); }
body.ui-enhanced .ui-brand-caption { font-size: 11px; color: var(--text-subtle); line-height: 1.5; }
body.ui-enhanced .nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; min-width: 0; }
body.ui-enhanced .ui-nav-label { margin: 12px 10px 5px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
body.ui-enhanced .nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 41px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
body.ui-enhanced .nav a:hover { background: var(--fill); color: var(--text); }
body.ui-enhanced .nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-line); }
body.ui-enhanced .nav a[aria-current="page"]::before { content: ''; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--accent); }
body.ui-enhanced .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.ui-enhanced .ui-sidebar-footer { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
body.ui-enhanced .ui-sidebar-footer .nav { margin-top: 0; }
body.ui-enhanced .main { display: flex; flex-direction: column; min-width: 0; }
body.ui-enhanced .container { width: 100%; max-width: var(--container-max); min-width: 0; margin: 0 auto; padding: 32px 36px 72px; }
body.ui-enhanced .ui-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 70px;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.ui-enhanced .ui-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; font-size: 12px; }
body.ui-enhanced .ui-breadcrumb-root { color: var(--text-subtle); }
body.ui-enhanced .ui-breadcrumb-separator { color: var(--text-subtle); opacity: .65; }
body.ui-enhanced .ui-breadcrumb-current,
body.ui-enhanced .ui-current-heading { color: var(--text); font-weight: 550; }
body.ui-enhanced .ui-topbar-context { min-width: 0; color: var(--text-subtle); font-size: 11px; letter-spacing: .01em; text-align: right; overflow-wrap: anywhere; }

/* Page hierarchy, cards, and genuine aggregate statistics. */
body.ui-enhanced .card {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--fill), transparent 150px), var(--surface);
  box-shadow: var(--shadow-sm);
  animation: ui-appear .24s ease-out;
}
body.ui-enhanced .card > :first-child { margin-top: 0; }
body.ui-enhanced .card > :last-child { margin-bottom: 0; }
body.ui-enhanced .ui-bots-card,
body.ui-enhanced .ui-dashboard-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.ui-enhanced .page-head,
body.ui-enhanced .ui-page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; min-width: 0; }
body.ui-enhanced .ui-page-head { margin: 0 0 28px; }
body.ui-enhanced .ui-page-head > div:first-child { min-width: 0; }
body.ui-enhanced .ui-page-head > .actions { margin: 0; align-self: center; }
body.ui-enhanced .ui-page-head > .btn { align-self: center; }
body.ui-enhanced .ui-page-eyebrow { margin-bottom: 8px; color: var(--accent-text); font-size: 10px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
body.ui-enhanced .ui-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 29px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
body.ui-enhanced .ui-page-description { max-width: 640px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
body.ui-enhanced .chip.ui-heading-count { padding: 3px 9px; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 550; letter-spacing: 0; }
body.ui-enhanced .section { min-width: 0; margin: 24px 0; }
body.ui-enhanced .section h2 { margin-bottom: 15px; font-size: 17px; }
body.ui-enhanced .panel { min-width: 0; max-width: 100%; margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: none; }
body.ui-enhanced .panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 18px; }
body.ui-enhanced .panel-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
body.ui-enhanced .ui-panel-description { margin: 5px 0 0; font-size: 12px; }
body.ui-enhanced .stat-grid,
body.ui-enhanced .ui-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-width: 0; }
body.ui-enhanced .ui-overview-grid { margin: 0 0 26px; }
body.ui-enhanced .stat-card,
body.ui-enhanced .ui-overview-card { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; min-width: 0; min-height: 130px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, var(--fill), transparent 65%), var(--surface); box-shadow: var(--shadow-sm); }
body.ui-enhanced .ui-stat-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; margin-bottom: 13px; }
body.ui-enhanced .stat-card .lbl,
body.ui-enhanced .ui-overview-card .lbl { color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.45; }
body.ui-enhanced .stat-card .val,
body.ui-enhanced .ui-overview-card .val { color: var(--text); font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.ui-enhanced .ui-stat-icon { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); }
body.ui-enhanced .ui-stat-icon .ui-icon { width: 16px; height: 16px; }
body.ui-enhanced .stat-card.t2 .ui-stat-icon { background: var(--ok-soft); color: var(--ok); }
body.ui-enhanced .stat-card.t3 .ui-stat-icon { background: var(--warn-soft); color: var(--warn); }
body.ui-enhanced .stat-card.t4 .ui-stat-icon { background: var(--violet-soft); color: var(--violet-text); }
body.ui-enhanced .ui-stat-foot { margin-top: 9px; color: var(--text-subtle); font-size: 10px; line-height: 1.5; }
body.ui-enhanced .ui-ranking-panel { margin: 0; padding: 0; overflow: hidden; }
body.ui-enhanced .ui-ranking-panel > .panel-head { margin: 0; padding: 22px; }

/* Tables keep their own scroll area instead of expanding the page. */
body.ui-enhanced .ui-table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); }
body.ui-enhanced .ui-table-caption { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
body.ui-enhanced .ui-table-caption > .ui-icon { width: 17px; height: 17px; color: var(--muted); }
body.ui-enhanced .ui-table-caption strong { font-weight: 550; }
body.ui-enhanced .ui-table-caption > .muted { padding-left: 1px; font-size: 11px; font-variant-numeric: tabular-nums; }
body.ui-enhanced .ui-search-actions { gap: 7px; margin: 0; min-width: 0; }
body.ui-enhanced label.ui-search-field { position: relative; display: flex; align-items: center; gap: 0; min-width: 0; width: 246px; max-width: 100%; margin: 0; font-weight: 400; }
body.ui-enhanced .ui-search-field > .ui-icon { position: absolute; left: 12px; z-index: 1; width: 16px; height: 16px; color: var(--text-subtle); pointer-events: none; }
body.ui-enhanced .ui-search-field > input[type="text"] { min-height: 36px; padding: 8px 11px 8px 36px; border-radius: 9px; font-size: 12px; }
body.ui-enhanced .ui-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body.ui-enhanced .ui-table-toolbar + .ui-table-wrap { border-radius: 0 0 14px 14px; }
body.ui-enhanced .table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 12px; overflow: hidden; }
body.ui-enhanced .ui-table-wrap > .table { border: 0; border-radius: 0; }
body.ui-enhanced .table :is(th, td) { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.5; }
body.ui-enhanced .table thead th { padding-top: 12px; padding-bottom: 12px; background: var(--elev); color: var(--text-subtle); font-size: 10px; font-weight: 600; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
body.ui-enhanced .table tbody tr:last-child td { border-bottom: 0; }
body.ui-enhanced .table tbody tr:hover td { background: var(--fill); }
body.ui-enhanced .table.compact :is(th, td) { padding: 12px 15px; }
body.ui-enhanced .table td .mono { font-size: 12px; }
body.ui-enhanced .table:has(.ui-empty-state) { min-width: 0; }
body.ui-enhanced #botsTable { min-width: 740px; }
body.ui-enhanced #botsTable:has(.ui-empty-state) { min-width: 0; }
body.ui-enhanced #botsTable th:first-child { width: 38%; }
body.ui-enhanced #botsTable th:nth-child(2) { width: 22%; }
body.ui-enhanced #botsTable th:last-child { min-width: 326px; }
body.ui-enhanced #botsTable:has(.ui-empty-state) th:last-child { min-width: 0; }
body.ui-enhanced .ui-bot-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.ui-enhanced .ui-bot-name > .mono { min-width: 0; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
body.ui-enhanced .ui-bot-avatar { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
body.ui-enhanced .ui-bot-avatar .ui-icon { width: 19px; height: 19px; }
body.ui-enhanced .ui-bot-meta { min-width: 0; color: var(--muted); font-size: 12px; }
body.ui-enhanced .ui-owner-chip { display: inline-block; max-width: 100%; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--fill); color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.ui-enhanced .ui-rank { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--elev); color: var(--text-subtle); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
body.ui-enhanced .ui-table-foot { margin: 13px 2px 0; font-size: 11px; line-height: 1.6; }
body.ui-enhanced .ui-table-foot strong { color: var(--text); font-weight: 550; }
body.ui-enhanced .ui-ranking-panel > .ui-table-wrap { border-right: 0; border-left: 0; border-bottom: 0; border-radius: 0; }
body.ui-enhanced .ui-ranking-panel > .ui-table-foot { margin: 0; padding: 13px 22px; border-top: 1px solid var(--line); }
body.ui-enhanced .ui-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; min-height: 240px; padding: 40px 20px; text-align: center; }
body.ui-enhanced .ui-empty-state > .ui-icon { width: 33px; height: 33px; margin-bottom: 17px; color: var(--text-subtle); stroke-width: 1.4; }
body.ui-enhanced .ui-empty-state > strong { color: var(--text); font-size: 15px; font-weight: 550; }
body.ui-enhanced .ui-empty-state > p { max-width: 350px; margin: 9px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* Controls preserve their original behaviours and hidden conditional states. */
body.ui-enhanced .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin-top: 18px; }
body.ui-enhanced .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: 500 12px/1.3 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
}
body.ui-enhanced .btn .ui-icon { width: 16px; height: 16px; }
body.ui-enhanced .btn:hover { border-color: var(--line-strong); background: var(--surface-3); box-shadow: none; }
body.ui-enhanced .btn:active { transform: translateY(1px); }
body.ui-enhanced .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
body.ui-enhanced .btn.primary { border-color: rgba(76, 141, 255, .45); background: linear-gradient(180deg, #3978ed, #2d63d6); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), 0 7px 18px -12px rgba(76, 141, 255, .8); }
body.ui-enhanced .btn.primary:hover { border-color: #679bff; background: linear-gradient(180deg, #4786f5, #356dde); }
body.ui-enhanced .btn.outline { background: var(--surface); color: var(--muted); border-color: var(--line-strong); }
body.ui-enhanced .btn.outline:hover { background: var(--fill); color: var(--text); }
body.ui-enhanced .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
body.ui-enhanced .btn.ghost:hover { background: var(--fill); color: var(--text); }
body.ui-enhanced .btn.success { border-color: color-mix(in srgb, var(--ok) 30%, transparent); background: var(--ok-soft); color: var(--ok); }
body.ui-enhanced .btn.warning { border-color: color-mix(in srgb, var(--warn) 24%, transparent); background: var(--warn-soft); color: var(--warn); }
body.ui-enhanced .btn.danger { border-color: color-mix(in srgb, var(--err) 25%, transparent); background: var(--err-soft); color: var(--err); }
body.ui-enhanced .btn.danger:hover { border-color: var(--err); background: color-mix(in srgb, var(--err) 17%, var(--surface)); }
body.ui-enhanced .btn.warning:hover { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, var(--surface)); }
body.ui-enhanced .btn.sm { min-height: 36px; padding: 8px 11px; border-radius: 8px; font-size: 11px; }
body.ui-enhanced .btn.lg { min-height: 44px; padding: 12px 18px; border-radius: 10px; font-size: 13px; }
body.ui-enhanced .btn:disabled,
body.ui-enhanced .btn[aria-disabled="true"],
body.ui-enhanced .btn[data-loading="true"] { cursor: wait; opacity: .5; transform: none; }
body.ui-enhanced .bot-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 5px; min-width: 0; }
body.ui-enhanced .bot-actions .btn.sm,
body.ui-enhanced .ui-action-icon,
body.ui-enhanced .btn.ui-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; min-width: 36px; min-height: 36px; height: 36px; padding: 8px; border-radius: 8px; line-height: 1; }
body.ui-enhanced .bot-actions .btn:not(.danger):not(.warning) { color: var(--muted); border-color: var(--line); background: transparent; }
body.ui-enhanced .bot-actions .btn:not(.danger):not(.warning):hover { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
body.ui-enhanced label { margin: 16px 0 7px; color: var(--text); font-size: 12px; font-weight: 550; }
body.ui-enhanced :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], input:not([type]), textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--field);
  color: var(--text);
  font: 400 13px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
body.ui-enhanced input::placeholder,
body.ui-enhanced textarea::placeholder { color: var(--text-subtle); opacity: 1; }
body.ui-enhanced :is(input, select, textarea):focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
body.ui-enhanced :is(input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
body.ui-enhanced input:is([type="checkbox"], [type="radio"]) { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; accent-color: var(--accent); }
body.ui-enhanced textarea { min-height: 144px; line-height: 1.65; resize: vertical; }
body.ui-enhanced input[type="file"] { max-width: 100%; min-width: 0; color: var(--muted); font-size: 12px; }
body.ui-enhanced input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 500 12px var(--font); cursor: pointer; }
body.ui-enhanced input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--field) inset; }
body.ui-enhanced input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--field) inset, 0 0 0 3px var(--focus-ring); }
body.ui-enhanced .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; min-width: 0; }
body.ui-enhanced .form-row > * { min-width: 0; }
body.ui-enhanced fieldset { min-width: 0; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
body.ui-enhanced legend { padding: 0 7px; color: var(--muted); font-size: 12px; font-weight: 550; }
body.ui-enhanced details { min-width: 0; max-width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); }
body.ui-enhanced summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 550; }
body.ui-enhanced details[open] > summary { margin-bottom: 14px; }
body.ui-enhanced .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.ui-enhanced .help-item { border-color: var(--line-strong); border-radius: 10px; background: var(--fill); font-size: 12px; line-height: 1.65; }
body.ui-enhanced .pill { padding: 3px 8px; border-color: var(--line); background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 550; }
body.ui-enhanced .note { min-width: 0; padding: 13px 15px; border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
body.ui-enhanced .note b { color: var(--text); }
body.ui-enhanced .note.warn { border-color: color-mix(in srgb, var(--warn) 23%, transparent); border-left-color: var(--warn); background: var(--warn-soft); }
body.ui-enhanced .card.error { border-color: color-mix(in srgb, var(--err) 30%, transparent); }
body.ui-enhanced .error-message { color: var(--err); font-size: 12px; }
body.ui-enhanced .chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--fill); color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 450; }
body.ui-enhanced .chip b { color: var(--text); font-weight: 600; }
body.ui-enhanced .dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--text-subtle); }
body.ui-enhanced .dot.ok { background: var(--ok); }
body.ui-enhanced .dot.fail { background: var(--warn); }
body.ui-enhanced .drop { min-width: 0; margin: 12px 0; padding: 24px 18px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--fill); color: var(--muted); font-size: 12px; text-align: center; }
body.ui-enhanced .drop:hover,
body.ui-enhanced .drop.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
body.ui-enhanced .drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.ui-enhanced .hint { padding-top: 7px; font-size: 11px; }
body.ui-enhanced .toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: calc(100vw - 40px); padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--glass); color: var(--text); box-shadow: var(--shadow-lg); font-size: 12px; backdrop-filter: blur(14px); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; }
body.ui-enhanced .toast.show { visibility: visible; opacity: 1; transform: translateY(0); }

/* Statistics components retain the exact real data and bar widths. */
body.ui-enhanced .days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; min-width: 0; }
body.ui-enhanced .day-pill { min-width: 0; padding: 16px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); text-align: center; }
body.ui-enhanced .day-pill .n { color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
body.ui-enhanced .day-pill .d { margin-top: 6px; color: var(--text-subtle); font-size: 10px; }
body.ui-enhanced .bar-list { gap: 11px; }
body.ui-enhanced .bar-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 12px; min-width: 0; font-size: 11px; }
body.ui-enhanced .bar-row .cnt { font-weight: 550; }
body.ui-enhanced .bar-track { height: 9px; min-width: 0; border-radius: 5px; background: var(--surface-2); }
body.ui-enhanced .bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--violet)); }

/* Authentication is an editorial two-column introduction beside the real form. */
body.ui-enhanced.ui-auth .app { display: block; }
body.ui-enhanced.ui-auth .sidebar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 22px;
  width: 100%;
  max-width: 1240px;
  height: auto;
  margin: 0 auto;
  padding: 26px 36px;
  border: 0;
  background: transparent;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.ui-enhanced.ui-auth .sidebar > .nav { flex-direction: row; flex-wrap: wrap; margin: 0 0 0 auto; gap: 3px; }
body.ui-enhanced.ui-auth .sidebar .ui-nav-label { display: none; }
body.ui-enhanced.ui-auth .sidebar .nav a { min-height: 36px; padding: 8px 10px; font-size: 11px; }
body.ui-enhanced.ui-auth .sidebar .nav a .ui-icon { width: 16px; height: 16px; }
body.ui-enhanced.ui-auth .ui-sidebar-footer { margin: 0 !important; padding: 0 !important; border: 0; }
body.ui-enhanced.ui-auth .ui-sidebar-footer .nav { flex-direction: row; gap: 3px; }
body.ui-enhanced.ui-auth .ui-topbar { display: none; }
body.ui-enhanced.ui-auth .main > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 52px 76px;
  min-height: calc(100dvh - 104px);
  padding-top: 32px;
  padding-bottom: 84px;
}
body.ui-enhanced.ui-auth .ui-auth-intro { grid-column: 1; grid-row: 1; min-width: 0; padding: 12px 0 30px; }
body.ui-enhanced .ui-auth-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--accent-text); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
body.ui-enhanced .ui-auth-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
body.ui-enhanced .ui-auth-title { margin: 0; font-size: clamp(36px, 4.2vw, 54px); font-weight: 650; letter-spacing: -.045em; line-height: 1.13; }
body.ui-enhanced .ui-auth-accent { color: var(--accent-text); }
body.ui-enhanced .ui-auth-description,
body.ui-enhanced .ui-auth-note { max-width: 410px; margin: 23px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
body.ui-enhanced .ui-auth-features { display: flex; flex-direction: column; gap: 21px; max-width: 410px; margin-top: 35px; }
body.ui-enhanced .ui-auth-feature { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
body.ui-enhanced .ui-auth-feature > .ui-icon { width: 19px; height: 19px; margin-top: 2px; color: var(--accent-text); }
body.ui-enhanced .ui-feature-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.ui-enhanced .ui-feature-copy strong { color: var(--text); font-size: 12px; font-weight: 550; }
body.ui-enhanced .ui-feature-copy small { color: var(--text-subtle); font-size: 11px; line-height: 1.65; }
body.ui-enhanced.ui-auth .main > .container > .card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 448px !important;
  margin: 0 !important;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.ui-enhanced.ui-auth .main > .container > .card::before { content: ''; position: absolute; z-index: -1; inset: -55px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent-glow), transparent 68%); pointer-events: none; }
body.ui-enhanced.ui-auth .card h2 { margin-bottom: 8px; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
body.ui-enhanced.ui-auth .card h3 { font-size: 20px; }
body.ui-enhanced.ui-auth .card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
body.ui-enhanced.ui-auth .card form { min-width: 0; margin-top: 25px; }
body.ui-enhanced.ui-auth .card .form-row { display: block; margin: 0 0 16px; }
body.ui-enhanced.ui-auth .card .form-row > label { margin: 0 0 8px; }
body.ui-enhanced.ui-auth .card form > label:first-of-type { margin-top: 0; }
body.ui-enhanced.ui-auth .card :is(input[type="text"], input[type="password"], input[type="email"], input[type="tel"]) { min-height: 45px; }
body.ui-enhanced.ui-auth .card button[type="submit"] { width: 100%; min-height: 44px; margin-top: 7px; }
body.ui-enhanced.ui-auth .card .actions { align-items: stretch; gap: 10px; }
body.ui-enhanced.ui-auth .card .actions > .btn.primary { flex: 1 1 100%; }
body.ui-enhanced.ui-auth .card .note { margin-top: 18px; }

@keyframes ui-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 1200px) {
  body.ui-enhanced .container { padding-right: 28px; padding-left: 28px; }
  body.ui-enhanced .ui-topbar { padding-right: 28px; padding-left: 28px; }
  body.ui-enhanced .ui-search-actions { flex-wrap: wrap; }
  body.ui-enhanced .ui-table-toolbar { align-items: flex-start; }
  body.ui-enhanced.ui-auth .main > .container { column-gap: 44px; }
  body.ui-enhanced.ui-auth .sidebar > .nav { margin-left: 0; }
}

@media (max-width: 1100px) {
  body.ui-enhanced .stat-grid,
  body.ui-enhanced .ui-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ui-enhanced .days-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.ui-enhanced .ui-topbar-context { max-width: 180px; }
  body.ui-enhanced.ui-auth .sidebar { gap: 14px 20px; }
  body.ui-enhanced.ui-auth .ui-sidebar-footer { margin-left: auto; }
  body.ui-enhanced.ui-auth .ui-brand-caption { display: none; }
}

@media (max-width: 860px) {
  body.ui-enhanced .app { display: block; }
  body.ui-enhanced .sidebar {
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    height: auto;
    padding: 14px 20px 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  body.ui-enhanced .sidebar > .brand { margin-right: auto; padding: 0 0 5px !important; }
  body.ui-enhanced .ui-brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  body.ui-enhanced .ui-brand-mark .ui-icon { width: 19px; height: 19px; }
  body.ui-enhanced .ui-brand-caption { display: none; }
  body.ui-enhanced .ui-nav-label { display: none; }
  body.ui-enhanced .sidebar > .nav {
    order: 3;
    flex: 1 0 calc(100% + 40px);
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3px;
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 0 14px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  body.ui-enhanced .sidebar > .nav > a { flex: 1 0 auto; justify-content: center; min-height: 45px; padding: 11px 12px; border-radius: 0; border: 0; background: transparent; font-size: 12px; white-space: nowrap; }
  body.ui-enhanced .sidebar > .nav > a[aria-current="page"] { background: transparent; color: var(--accent-text); }
  body.ui-enhanced .sidebar > .nav > a[aria-current="page"]::before { top: auto; right: 12px; bottom: -1px; left: 12px; width: auto; height: 2px; border-radius: 3px 3px 0 0; }
  body.ui-enhanced .sidebar .txt { display: inline; }
  body.ui-enhanced .ui-sidebar-footer { margin: 0 !important; padding: 0 0 5px !important; border: 0; }
  body.ui-enhanced .ui-sidebar-footer .nav { flex-direction: row; align-items: center; gap: 4px; }
  body.ui-enhanced .ui-sidebar-footer .nav a { min-height: 40px; padding: 9px; font-size: 11px; gap: 6px; }
  body.ui-enhanced .ui-sidebar-footer .nav a .ui-icon { width: 16px; height: 16px; }
  body.ui-enhanced .ui-topbar { position: relative; min-height: 56px; padding: 15px 24px; }
  body.ui-enhanced .container { padding: 26px 24px 56px; }
  body.ui-enhanced .ui-page-title { font-size: 27px; }
  body.ui-enhanced .form-row { grid-template-columns: 1fr; }
  body.ui-enhanced .btn,
  body.ui-enhanced .btn.sm { min-height: 42px; }
  body.ui-enhanced .bot-actions .btn.sm,
  body.ui-enhanced .ui-action-icon,
  body.ui-enhanced .btn.ui-icon-button { flex-basis: 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  body.ui-enhanced .bot-actions { flex-wrap: wrap; gap: 6px; }
  body.ui-enhanced #botsTable th:last-child { min-width: 365px; }
  body.ui-enhanced #botsTable:has(.ui-empty-state) th:last-child { min-width: 0; }
  body.ui-enhanced.ui-auth .sidebar { position: relative; padding: 20px 24px 0; gap: 12px; }
  body.ui-enhanced.ui-auth .sidebar > .brand { padding: 0 !important; }
  body.ui-enhanced.ui-auth .sidebar > .nav { order: 3; flex-wrap: nowrap; flex-basis: calc(100% + 48px); width: calc(100% + 48px); margin: 0 -24px; padding: 0 18px; }
  body.ui-enhanced.ui-auth .sidebar .nav a { min-height: 44px; }
  body.ui-enhanced.ui-auth .ui-sidebar-footer { margin-left: auto !important; padding-bottom: 0 !important; }
  body.ui-enhanced.ui-auth .main > .container { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; max-width: 580px; padding-top: 35px; padding-bottom: 60px; }
  body.ui-enhanced.ui-auth .ui-auth-intro { grid-column: 1; grid-row: auto; padding: 0; }
  body.ui-enhanced.ui-auth .main > .container > .card { grid-column: 1; grid-row: auto; max-width: none !important; }
  body.ui-enhanced .ui-auth-title { font-size: 36px; }
  body.ui-enhanced .ui-auth-eyebrow { margin-bottom: 15px; }
  body.ui-enhanced .ui-auth-description { margin-top: 16px; font-size: 13px; }
  body.ui-enhanced .ui-auth-features { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; max-width: none; margin-top: 22px; }
  body.ui-enhanced .ui-auth-feature { flex: 1 1 200px; }
}

@media (max-width: 600px) {
  body.ui-enhanced .container { padding: 23px 16px 44px; }
  body.ui-enhanced .ui-topbar { padding: 13px 16px; min-height: 50px; }
  body.ui-enhanced .ui-topbar-context { max-width: 110px; font-size: 10px; }
  body.ui-enhanced .ui-breadcrumb { gap: 7px; font-size: 11px; }
  body.ui-enhanced .sidebar { padding-right: 16px; padding-left: 16px; gap: 8px 10px; }
  body.ui-enhanced .sidebar > .nav { flex-basis: calc(100% + 32px); width: calc(100% + 32px); margin-right: -16px; margin-left: -16px; padding-right: 10px; padding-left: 10px; }
  body.ui-enhanced .ui-brand-name { font-size: 14px; }
  body.ui-enhanced .ui-sidebar-footer .nav a { min-height: 44px; padding: 9px 7px; font-size: 10px; gap: 5px; }
  body.ui-enhanced .sidebar > .nav > a { gap: 7px; padding-right: 10px; padding-left: 10px; }
  body.ui-enhanced .ui-page-head { gap: 17px; margin-bottom: 24px; }
  body.ui-enhanced .ui-page-title { font-size: 25px; }
  body.ui-enhanced .ui-page-description { margin-top: 8px; font-size: 12px; }
  body.ui-enhanced .ui-page-head > .actions { width: 100%; }
  body.ui-enhanced .ui-page-head > .actions > .btn { flex: 1 1 140px; min-height: 44px; }
  body.ui-enhanced .card { padding: 20px 17px; border-radius: 13px; }
  body.ui-enhanced .ui-bots-card,
  body.ui-enhanced .ui-dashboard-card { padding: 0; border-radius: 0; }
  body.ui-enhanced .page-head { align-items: flex-start; gap: 14px; }
  body.ui-enhanced .page-head h2 { font-size: 20px; }
  body.ui-enhanced .panel { padding: 17px 14px; }
  body.ui-enhanced .ui-ranking-panel { padding: 0; }
  body.ui-enhanced .ui-ranking-panel > .panel-head { padding: 18px 16px; }
  body.ui-enhanced .ui-ranking-panel > .ui-table-foot { padding: 12px 16px; }
  body.ui-enhanced .ui-ranking-panel .table { min-width: 520px; }
  body.ui-enhanced .ui-ranking-panel .table:has(.ui-empty-state) { min-width: 0; }
  body.ui-enhanced .stat-grid,
  body.ui-enhanced .ui-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.ui-enhanced .stat-card,
  body.ui-enhanced .ui-overview-card { min-height: 128px; padding: 15px 14px; border-radius: 12px; }
  body.ui-enhanced .stat-card .val { font-size: 27px; }
  body.ui-enhanced .stat-card .lbl { font-size: 11px; }
  body.ui-enhanced .ui-stat-label { align-items: flex-start; gap: 6px; margin-bottom: 12px; }
  body.ui-enhanced .ui-stat-icon { width: 25px; height: 25px; border-radius: 7px; }
  body.ui-enhanced .ui-stat-icon .ui-icon { width: 14px; height: 14px; }
  body.ui-enhanced .ui-stat-foot { margin-top: 8px; font-size: 9px; }
  body.ui-enhanced .ui-table-toolbar { gap: 14px; padding: 17px 15px; }
  body.ui-enhanced .ui-table-caption { font-size: 12px; }
  body.ui-enhanced .ui-search-actions { width: 100%; gap: 7px; }
  body.ui-enhanced label.ui-search-field { width: 100%; flex: 1 1 100%; }
  body.ui-enhanced .ui-search-field > input[type="text"] { min-height: 44px; font-size: 13px; }
  body.ui-enhanced .ui-search-actions > .btn { flex: 1 1 auto; min-height: 44px; }
  body.ui-enhanced .table :is(th, td) { padding-right: 15px; padding-left: 15px; }
  body.ui-enhanced .ui-empty-state { min-height: 220px; padding: 28px 6px; }
  body.ui-enhanced .ui-empty-state > strong { font-size: 14px; }
  body.ui-enhanced .ui-empty-state > p { max-width: 280px; font-size: 12px; }
  body.ui-enhanced .ui-table-foot { font-size: 10px; }
  body.ui-enhanced :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], input:not([type]), textarea, select) { min-height: 44px; font-size: 16px; }
  body.ui-enhanced .btn,
  body.ui-enhanced .btn.sm { min-height: 44px; }
  body.ui-enhanced .help-grid { grid-template-columns: 1fr; }
  body.ui-enhanced .days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.ui-enhanced .day-pill { padding: 13px 8px; }
  body.ui-enhanced .bar-row { grid-template-columns: 35px minmax(0, 1fr) 35px; gap: 8px; }
  body.ui-enhanced .note { padding: 11px 12px; font-size: 11px; }
  body.ui-enhanced .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  body.ui-enhanced.ui-auth .sidebar { padding: 18px 16px 0; }
  body.ui-enhanced.ui-auth .sidebar > .nav { flex-basis: calc(100% + 32px); width: calc(100% + 32px); margin-right: -16px; margin-left: -16px; padding-right: 10px; padding-left: 10px; }
  body.ui-enhanced.ui-auth .main > .container { gap: 26px; padding: 30px 20px 45px; }
  body.ui-enhanced .ui-auth-title { font-size: 29px; }
  body.ui-enhanced .ui-auth-description { margin-top: 15px; font-size: 12px; line-height: 1.75; }
  body.ui-enhanced.ui-auth .ui-auth-features { display: none; }
  body.ui-enhanced .ui-auth-feature { flex-basis: 100%; gap: 11px; }
  body.ui-enhanced .ui-feature-copy strong { font-size: 12px; }
  body.ui-enhanced .ui-feature-copy small { font-size: 11px; }
  body.ui-enhanced.ui-auth .main > .container > .card { padding: 25px 22px; border-radius: 17px; }
  body.ui-enhanced.ui-auth .main > .container > .card::before { inset: 0; border-radius: inherit; }
  body.ui-enhanced.ui-auth .card h2 { font-size: 22px; }
  body.ui-enhanced.ui-auth .card :is(input[type="text"], input[type="password"], input[type="email"], input[type="tel"]) { font-size: 16px; }
}

@media (max-width: 380px) {
  body.ui-enhanced .sidebar > .brand { gap: 7px; }
  body.ui-enhanced .ui-brand-name { font-size: 12px; }
  body.ui-enhanced .ui-brand-mark { width: 29px; height: 29px; flex-basis: 29px; }
  body.ui-enhanced .ui-sidebar-footer .nav a { padding: 8px 5px; font-size: 9px; gap: 4px; }
  body.ui-enhanced .ui-sidebar-footer .nav a .ui-icon { width: 14px; height: 14px; }
  body.ui-enhanced .ui-stat-icon { width: 22px; height: 22px; }
  body.ui-enhanced .stat-card { padding: 13px 12px; }
  body.ui-enhanced .stat-card .lbl { font-size: 10px; }
  body.ui-enhanced .ui-auth-title { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  body.ui-enhanced *,
  body.ui-enhanced *::before,
  body.ui-enhanced *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
