/* Karate Monkey Admin — Dark Theme + Mobile + Chat */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Inter:wght@400;500&display=swap');

:root {
  --bg:        #0d0d0d;
  --surface:   #111111;
  --surface2:  #161616;
  --surface3:  #1a1a1a;
  --border:    #1f1f1f;
  --border2:   #2a2a2a;
  --red:       #cc0000;
  --red-h:     #e50000;
  --red-dim:   #1a0000;
  --red-mid:   #3a0000;
  --text:      #e8e8e8;
  --muted:     #777777;
  --dim:       #444444;
  --green:     #2d9e5f;
  --green-bg:  #0d2a1a;
  --green-b:   #0d3a1a;
  --amber:     #e5a000;
  --amber-bg:  #2a1e00;
  --blue:      #4499dd;
  --blue-bg:   #0a1a2a;
  --purple:    #9966dd;
  --purple-bg: #1a0a2a;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:    6px;
  --radius-lg: 10px;
  --sidebar-w: 220px;
  --topbar-h:  52px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text);
       font-size: 13px; line-height: 1.5; display: flex; min-height: 100vh; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-h); }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  height: 100vh; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.logo-inner { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-size: 13px; font-weight: 600;
             color: #fff; letter-spacing: 0.04em; line-height: 1.2; }
.logo-sub { font-size: 9px; color: var(--dim); letter-spacing: 0.08em;
            text-transform: uppercase; }

.sidebar-nav { padding: 8px; flex: 1; }
.nav-section { font-size: 9px; color: var(--dim); text-transform: uppercase;
               letter-spacing: 0.1em; padding: 10px 8px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: var(--radius); font-size: 12px; color: var(--muted);
  margin-bottom: 1px; transition: background 0.12s, color 0.12s; cursor: pointer;
}
.nav-item:hover { background: var(--surface3); color: var(--text); }
.nav-item.active { background: var(--red-dim); color: #ff5555; }
.nav-pip { width: 5px; height: 5px; border-radius: 50%; background: currentColor;
           flex-shrink: 0; opacity: 0.5; }
.nav-item.active .nav-pip { opacity: 1; }
.nav-badge { margin-left: auto; background: var(--red-mid); color: #ff6666;
             font-size: 9px; padding: 1px 6px; border-radius: 10px; font-weight: 500; }
.nav-badge-blue { margin-left: auto; background: var(--blue-bg); color: var(--blue);
                  font-size: 9px; padding: 1px 6px; border-radius: 10px; font-weight: 500; }

.sidebar-foot {
  padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.user-row { display: flex; align-items: center; gap: 9px; }
.user-av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 12px; color: var(--text); font-weight: 500; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--dim); }
.logout-link { display: block; font-size: 11px; color: var(--dim); margin-top: 6px; }
.logout-link:hover { color: var(--red); }

/* ── Mobile sidebar overlay ────────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 150; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Mobile topbar hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--muted); flex-shrink: 0;
}
.hamburger:hover { color: var(--text); }
.hamburger svg { display: block; }

/* ── Main area ─────────────────────────────────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex;
        flex-direction: column; min-height: 100vh; min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--topbar-h); border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 100; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-title { font-family: var(--font-head); font-size: 18px; font-weight: 500;
              color: #fff; letter-spacing: 0.03em; white-space: nowrap; }
.page-sub { font-size: 11px; color: var(--dim); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.content { padding: 18px 20px; flex: 1; min-width: 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 12px; border-radius: var(--radius);
  border: 1px solid var(--border2); background: transparent; color: var(--muted);
  cursor: pointer; font-family: var(--font-body); transition: background 0.12s, color 0.12s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface3); color: var(--text); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-h); border-color: var(--red-h); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-danger { border-color: var(--red); color: #ff6666; }
.btn-danger:hover { background: var(--red-dim); }
.btn-icon { padding: 6px 8px; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { opacity: 0.85; color: #fff; }

/* ── Metric cards ──────────────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
           gap: 10px; margin-bottom: 18px; }
.metric {
  background: var(--surface2); border-radius: var(--radius);
  padding: 14px 16px; border: 1px solid var(--border);
}
.metric-label { font-size: 10px; color: var(--dim); text-transform: uppercase;
                letter-spacing: 0.07em; margin-bottom: 5px; }
.metric-val { font-family: var(--font-head); font-size: 26px; font-weight: 500; color: #fff; }
.metric-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.metric-sub.pos { color: var(--green); }
.metric-sub.neg { color: #ff6666; }
.metric-accent { border-left: 2px solid var(--red); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 14px;
}
.card-hd { display: flex; align-items: center; justify-content: space-between;
           margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.card-title { font-family: var(--font-head); font-size: 13px; font-weight: 500;
              color: #ddd; letter-spacing: 0.03em; }
.card-sub { font-size: 11px; color: var(--dim); margin-top: 1px; }

/* ── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 500px; }
.data-table th {
  text-align: left; font-size: 9px; color: var(--dim); text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0 14px 8px 0; border-bottom: 1px solid var(--border);
  font-weight: 500; white-space: nowrap;
}
.data-table td {
  padding: 9px 14px 9px 0; border-bottom: 1px solid #181818;
  color: var(--text); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #131313; }
.data-table .td-mono { font-family: monospace; font-size: 11px; color: var(--muted); }
.data-table .td-dim { color: var(--muted); }
.data-table .td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-red    { background: var(--red-dim);  color: #ff6666; }
.badge-amber  { background: var(--amber-bg); color: var(--amber); }
.badge-blue   { background: var(--blue-bg);  color: var(--blue); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray   { background: var(--surface3); color: var(--muted); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-control {
  width: 100%; padding: 8px 12px; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-size: 13px; font-family: var(--font-body); outline: none;
  transition: border-color 0.12s; -webkit-appearance: none;
}
.form-control:focus { border-color: var(--red); }
.form-control::placeholder { color: var(--dim); }
select.form-control { appearance: none; cursor: pointer; }
.form-hint { font-size: 11px; color: var(--dim); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-section-title {
  font-family: var(--font-head); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 12px;
         margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.alert-error   { background: var(--red-dim); border: 1px solid var(--red-mid); color: #ff8888; }
.alert-success { background: var(--green-bg); border: 1px solid var(--green-b); color: #5dbb8a; }
.alert-warning { background: var(--amber-bg); border: 1px solid #3a2800; color: var(--amber); }

/* ── Avatars ───────────────────────────────────────────────────────────── */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 500; flex-shrink: 0; font-family: var(--font-body);
}
.av-sm { width: 26px; height: 26px; font-size: 9px; }
.av-md { width: 34px; height: 34px; font-size: 12px; }
.av-lg { width: 42px; height: 42px; font-size: 15px; }
.av-red    { background: var(--red-dim); color: #ff6666; }
.av-green  { background: var(--green-bg); color: var(--green); }
.av-blue   { background: var(--blue-bg); color: var(--blue); }
.av-amber  { background: var(--amber-bg); color: var(--amber); }
.av-purple { background: var(--purple-bg); color: var(--purple); }
.av-gray   { background: var(--surface3); color: var(--muted); }

/* ── Status dot ────────────────────────────────────────────────────────── */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
       margin-right: 4px; vertical-align: middle; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-red   { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-gray  { background: var(--dim); }

/* ── Progress bar ──────────────────────────────────────────────────────── */
.progress { background: var(--border); border-radius: 3px; height: 4px; width: 80px; }
.progress-bar { background: var(--red); border-radius: 3px; height: 4px; transition: width 0.3s; }
.progress-bar.green { background: var(--green); }
.progress-bar.amber { background: var(--amber); }

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px 24px; color: var(--dim); }
.empty-title { font-family: var(--font-head); font-size: 15px; color: var(--muted);
               margin-bottom: 6px; }
.empty-sub { font-size: 12px; margin-bottom: 14px; }

/* ── Grid layouts ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }

/* ── Key-value table ───────────────────────────────────────────────────── */
.kv-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.kv-table td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.kv-table tr:last-child td { border-bottom: none; }
.kv-label { color: var(--muted); width: 40%; }
.kv-val { color: var(--text); }

/* ── Login page ────────────────────────────────────────────────────────── */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; width: 100%; padding: 20px;
}
.login-box { width: 100%; max-width: 360px; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo svg { width: 56px; height: 56px; margin: 0 auto 12px; display: block; }
.login-title { font-family: var(--font-head); font-size: 20px; font-weight: 600;
               color: #fff; letter-spacing: 0.04em; }
.login-sub { font-size: 11px; color: var(--dim); text-transform: uppercase;
             letter-spacing: 0.08em; margin-top: 4px; }

/* ── Feature flag toggle ───────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { flex: 1; min-width: 0; padding-right: 16px; }
.toggle-name { font-size: 13px; color: var(--text); font-weight: 500; }
.toggle-desc { font-size: 11px; color: var(--dim); margin-top: 2px; }
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--border2);
  border-radius: 22px; cursor: pointer; transition: background 0.2s;
}
.toggle-slider:before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: var(--muted); transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--red-mid); }
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px); background: var(--red);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* ── CHAT ──────────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════ */

.chat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  height: calc(100vh - var(--topbar-h));
  margin: -18px -20px;
  border-top: 1px solid var(--border);
}

/* Sidebar */
.chat-sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-sidebar-hd {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-rooms { flex: 1; overflow-y: auto; padding: 6px; }
.chat-room-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius); cursor: pointer; transition: background 0.1s;
  margin-bottom: 1px;
}
.chat-room-item:hover { background: var(--surface3); }
.chat-room-item.active { background: var(--red-dim); }
.chat-room-item.active .chat-room-name { color: #ff6666; }
.chat-room-icon {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.chat-room-name { font-size: 12px; color: var(--text); font-weight: 500; }
.chat-room-preview { font-size: 10px; color: var(--dim); margin-top: 1px;
                     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 9px; padding: 1px 6px; border-radius: 10px; font-weight: 600;
  flex-shrink: 0;
}
.chat-divider {
  padding: 8px 10px 3px; font-size: 9px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Main chat area */
.chat-main {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.chat-topbar {
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); flex-shrink: 0;
}
.chat-topbar-info { display: flex; align-items: center; gap: 10px; }
.chat-topbar-name { font-weight: 500; color: var(--text); font-size: 13px; }
.chat-topbar-sub { font-size: 11px; color: var(--dim); }
.chat-topbar-actions { display: flex; gap: 8px; }

/* Messages */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.msg-group { margin-bottom: 12px; }
.msg-group-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.msg-author { font-size: 12px; font-weight: 500; color: var(--text); }
.msg-time { font-size: 10px; color: var(--dim); }
.msg-bubble {
  font-size: 13px; color: var(--text); line-height: 1.5;
  padding: 7px 12px; border-radius: 0 10px 10px 10px;
  background: var(--surface2); border: 1px solid var(--border);
  display: inline-block; max-width: 100%; word-break: break-word;
}
.msg-self .msg-group-hd { flex-direction: row-reverse; }
.msg-self .msg-author { color: var(--red); }
.msg-self .msg-bubble {
  background: var(--red-dim); border-color: var(--red-mid);
  border-radius: 10px 0 10px 10px;
}
.msg-self .msg-content { display: flex; flex-direction: column; align-items: flex-end; }
.msg-date-sep {
  text-align: center; font-size: 10px; color: var(--dim);
  padding: 8px 0; position: relative;
}
.msg-date-sep::before, .msg-date-sep::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 60px);
  height: 1px; background: var(--border);
}
.msg-date-sep::before { left: 0; }
.msg-date-sep::after { right: 0; }

/* Input area */
.chat-input-area {
  padding: 14px 18px; border-top: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.chat-input-wrap {
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 20px; padding: 9px 16px; color: var(--text); font-size: 13px;
  font-family: var(--font-body); outline: none; resize: none; line-height: 1.4;
  max-height: 120px; transition: border-color 0.12s;
}
.chat-input:focus { border-color: var(--red); }
.chat-input::placeholder { color: var(--dim); }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: background 0.12s;
  color: #fff;
}
.chat-send-btn:hover { background: var(--red-h); }
.chat-send-btn:disabled { background: var(--border2); cursor: not-allowed; }
.chat-typing { font-size: 11px; color: var(--dim); padding: 4px 0 0; min-height: 18px; }

/* Online indicator */
.online-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface);
}
.offline-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--dim);
  display: inline-block; flex-shrink: 0;
}

/* Mobile chat */
.chat-sidebar-toggle {
  display: none; background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 4px; font-size: 18px;
}

/* ── Misc utilities ────────────────────────────────────────────────────── */
.text-red    { color: #ff6666; }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--muted); }
.text-dim    { color: var(--dim); }
.text-mono   { font-family: monospace; }
.fw-500      { font-weight: 500; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mb-8        { margin-bottom: 8px; }
.mb-16       { margin-bottom: 16px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-6       { gap: 6px; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.w-full      { width: 100%; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 260px;
    transform: translateX(-260px);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .main { margin-left: 0; }
  .hamburger { display: flex; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-sidebar { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  .content { padding: 14px; }
  .topbar { padding: 0 14px; }

  /* Chat mobile */
  .chat-layout {
    grid-template-columns: 1fr;
    margin: -14px -14px;
  }
  .chat-sidebar {
    position: fixed; left: 0; top: var(--topbar-h); bottom: 0;
    width: 260px; z-index: 90; transform: translateX(-260px);
    transition: transform 0.25s ease;
    box-shadow: none;
  }
  .chat-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .chat-sidebar-toggle { display: block; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .page-title { font-size: 15px; }
  .topbar-right .btn span { display: none; }
}
