/* ============================================================
   Poker Night — Admin
   Same "midnight card room" theme as PokerCalculator.Web, plus a
   dedicated warm gold used only for coin iconography/values (Web's
   "--brass" is actually emerald in the current reskin — coins here
   read better as literal gold than as the button-accent color).
   ============================================================ */

:root, :root[data-theme="dark"] {
  --felt-0: #0b0d11;
  --felt-1: #14171d;
  --felt-2: #1b2027;
  --felt-3: #232a33;
  --line: #262c35;
  --ivory: #eef1f5;
  --ivory-dim: #8c94a3;
  --brass: #34d399;
  --brass-deep: #109c6d;
  --win: #34d399;
  --loss: #f87171;
  --ink: #06231a;
  --header-bg: #12151b;
  --chip-ring: #5a6270;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-display: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Figtree", -apple-system, "Segoe UI", sans-serif;
  /* Coins — warm gold, deliberately distinct from the emerald button accent */
  --gold: #f2c94c;
  --gold-deep: #d4a017;
  --gold-ink: #3a2a05;
  --gold-dim: rgba(242, 201, 76, 0.14);
  /* "Inverted" controls (dock pill) — always contrasts with the page regardless of theme */
  --control-bg: #eef1f5;
  --control-fg: #4a5261;
  --dock-bot: calc(10px + env(safe-area-inset-bottom));
}

:root[data-theme="light"] {
  --felt-0: #f3f5f9;
  --felt-1: #ffffff;
  --felt-2: #eef1f6;
  --felt-3: #e4e9f0;
  --line: #dde2ea;
  --ivory: #1a1f27;
  --ivory-dim: #67707e;
  --brass: #0f9d63;
  --brass-deep: #0b7d4f;
  --win: #0f9d63;
  --loss: #d64545;
  --ink: #ffffff;
  --header-bg: #e9edf3;
  --chip-ring: #9aa3b0;
  --shadow: rgba(60, 70, 90, 0.2);
  --gold: #c8971f;
  --gold-deep: #a67815;
  --gold-ink: #ffffff;
  --gold-dim: rgba(200, 151, 31, 0.12);
  --control-bg: #1b2027;
  --control-fg: #d6dbe3;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
* { scrollbar-width: thin; }

html, body { height: 100%; }
html, body { background: var(--felt-0); color: var(--ivory); font-family: var(--font-ui); }
body { min-height: 100dvh; display: flex; flex-direction: column; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
button { font-family: inherit; }
input, select { font-family: inherit; }
a { color: var(--brass); }
svg { display: block; width: 16px; height: 16px; flex: none; }

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; background: none; border: none; color: var(--ivory);
  cursor: pointer; padding: 4px 2px; border-radius: 8px;
}
.topbar-brand:hover { opacity: 0.85; }
.topbar-brand img { width: 26px; height: 26px; }
.topbar-spacer { flex: 1; }
.topbar-user { font-size: 0.85rem; color: var(--ivory-dim); }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--ivory-dim);
  border-radius: 10px; width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.icon-btn:hover { color: var(--ivory); border-color: var(--chip-ring); }
.icon-btn svg { width: 17px; height: 17px; }

.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: var(--felt-1); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px var(--shadow); padding: 6px; z-index: 40;
  display: flex; flex-direction: column; gap: 2px;
}
.user-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: none;
  color: var(--ivory); font-size: 0.88rem; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; text-align: left;
}
.user-menu-item:hover { background: var(--felt-2); }
.user-menu-item.danger { color: var(--loss); }
.user-menu-item svg { width: 15px; height: 15px; }

/* ---------- Buttons / inputs (shared) ---------- */
.btn {
  border: none; border-radius: 12px; padding: 11px 18px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.05s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-deep); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-gold:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { background: var(--felt-2); color: var(--ivory); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--chip-ring); }
.btn-danger { background: transparent; color: var(--loss); border: 1px solid rgba(248, 113, 113, 0.4); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.08); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 9px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; color: var(--ivory-dim); font-weight: 600; }
.field input, .field select {
  background: var(--felt-2); border: 1px solid var(--line); color: var(--ivory);
  border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; outline: none;
  width: 100%;
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238c94a3' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
.field input:focus, .field select:focus { border-color: var(--brass); }

.error-text { color: var(--loss); font-size: 0.85rem; }
.hint-text { color: var(--ivory-dim); font-size: 0.8rem; }

/* ---------- Login screen ---------- */
#viewLogin {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--felt-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 20px 60px var(--shadow);
}
.login-card .login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.login-card .login-brand img { width: 34px; height: 34px; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 4px; }
.login-card .sub { color: var(--ivory-dim); font-size: 0.9rem; margin-bottom: 22px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card .btn-primary { margin-top: 4px; width: 100%; }

/* ---------- App shell ---------- */
#viewApp { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.app-body { display: flex; flex: 1; min-height: 0; }
.section { display: flex; flex: 1; min-height: 0; width: 100%; }

/* ---------- Bottom tab bar (Groups / Players) — floating "iPhone style" dock,
   same pattern as PokerCalculator.Web's #groupTabbar: a solid full-width bar
   pinned to the true bottom of the screen, containing a rounded "inverted"
   pill (--control-bg swaps light/dark per theme so it always contrasts with
   the page) that holds the actual tab buttons. Fixed, so scrollable content
   underneath needs bottom padding to clear it — see .groups-list/.players-list/
   .detail-inner below (dock height ~64px + safe-area). ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; padding: 10px 14px var(--dock-bot);
  background: var(--felt-0); border-top: 1px solid var(--line);
}
.dock-pill {
  flex: 1; display: flex; gap: 5px; padding: 5px;
  background: var(--control-bg); border: 1px solid var(--line); border-radius: 999px;
}
.bottom-nav-btn {
  flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 7px; background: none; border: 1px solid transparent;
  color: var(--control-fg); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.1px;
  padding: 11px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.bottom-nav-btn svg { width: 18px; height: 18px; }
.bottom-nav-btn.active {
  color: var(--brass-deep); background: rgba(16, 156, 109, 0.14); border-color: rgba(16, 156, 109, 0.35);
}
:root[data-theme="light"] .bottom-nav-btn.active {
  color: #34d399; background: rgba(52, 211, 153, 0.22); border-color: rgba(52, 211, 153, 0.4);
}

.groups-pane {
  width: 100%; max-width: 380px; flex: none; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.players-pane {
  width: 100%; max-width: 900px; margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; min-height: 0;
}
.groups-pane-header { padding: 16px 18px 10px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.groups-pane-title { display: flex; align-items: center; justify-content: space-between; }
.groups-pane-title h2 { font-size: 1.1rem; }
.groups-pane-title .count-badge {
  font-size: 0.75rem; color: var(--ivory-dim); background: var(--felt-2);
  border-radius: 999px; padding: 2px 9px; font-weight: 600;
}
.search-row { display: flex; gap: 8px; }
.search-input {
  flex: 1; width: 100%; background: var(--felt-2); border: 1px solid var(--line); color: var(--ivory);
  border-radius: 10px; padding: 9px 12px; font-size: 0.9rem; outline: none;
}
.search-input:focus { border-color: var(--brass); }
.filter-row { display: flex; align-items: center; gap: 14px; }
.sort-select {
  background: var(--felt-2); border: 1px solid var(--line); color: var(--ivory-dim);
  border-radius: 8px; padding: 5px 8px; font-size: 0.78rem; outline: none; cursor: pointer;
}
.checkbox-row { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ivory-dim); cursor: pointer; user-select: none; }
.checkbox-row input { accent-color: var(--brass); cursor: pointer; }

.groups-list { flex: 1; overflow-y: auto; padding: 6px 10px calc(16px + 66px + var(--dock-bot)); }
.players-list { flex: 1; overflow-y: auto; padding: 6px 10px calc(20px + 66px + var(--dock-bot)); }

/* Card rows, not a table — a table's fixed columns (name/email/groups/login/switch)
   don't fit narrow screens without horizontal scrolling; this wraps naturally instead. */
.player-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
}
.player-row:hover { background: var(--felt-1); }
.player-row.inactive { opacity: 0.55; }
.player-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.player-name-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player-name-cell .name { font-weight: 600; font-size: 0.95rem; }
.player-name-cell .badge-admin {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700;
  color: var(--gold-deep); background: var(--gold-dim); border-radius: 5px; padding: 1px 5px;
}
.player-row-sub { font-size: 0.78rem; color: var(--ivory-dim); overflow-wrap: anywhere; }

.group-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
}
.group-row:hover { background: var(--felt-1); }
.group-row.active { background: var(--felt-1); border-color: var(--line); }
.group-row.deleted { opacity: 0.5; }
.group-row-main { flex: 1; min-width: 0; }
.group-row-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-row-sub { font-size: 0.78rem; color: var(--ivory-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-row-badge {
  display: inline-block; margin-top: 4px; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--loss); font-weight: 700; border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 5px; padding: 1px 5px;
}

.coin-pill {
  flex: none; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; font-family: var(--font-display); background: var(--gold-dim);
  border: 1px solid transparent; color: var(--gold-deep);
}
.coin-pill svg { width: 13px; height: 13px; color: var(--gold); flex: none; }
.coin-pill.negative { color: var(--loss); background: rgba(248, 113, 113, 0.12); }
.coin-pill.negative svg { color: var(--loss); }

.detail-pane { flex: 1; overflow-y: auto; min-width: 0; }
.detail-empty {
  min-height: 100%; display: flex; align-items: flex-start; justify-content: center;
  color: var(--ivory-dim); font-size: 0.95rem; padding: 40px 24px calc(40px + 66px + var(--dock-bot));
}

/* ---------- Dashboard (no group selected) ---------- */
.dashboard { width: 100%; max-width: 640px; }
.dashboard h2 { font-size: 1.2rem; margin-bottom: 4px; color: var(--ivory); }
.dashboard .sub { font-size: 0.88rem; margin-bottom: 22px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.dash-card {
  background: var(--felt-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: left;
}
.dash-card .stat-value { font-size: 1.5rem; }
.dash-card .stat-label { margin-top: 4px; }
.dash-card.warn .stat-value { color: var(--loss); }
.dash-card.gold .stat-value { color: var(--gold); }

/* ---------- Detail content ---------- */
.detail-inner { max-width: 760px; margin: 0 auto; padding: 22px 24px calc(60px + 66px + var(--dock-bot)); }
.detail-back {
  display: none; align-items: center; gap: 6px; background: none; border: none;
  color: var(--ivory-dim); font-size: 0.85rem; cursor: pointer; margin-bottom: 14px; padding: 4px 0;
}
.detail-back:hover { color: var(--ivory); }
.detail-back svg { width: 15px; height: 15px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.detail-title { font-size: 1.4rem; }
.detail-code-row { display: flex; align-items: center; gap: 8px; color: var(--ivory-dim); font-size: 0.85rem; margin-bottom: 18px; }
.code-copy {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--felt-2); border: 1px solid var(--line); color: var(--ivory-dim);
  border-radius: 7px; padding: 2px 8px; font-size: 0.78rem; cursor: pointer; font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.code-copy:hover { color: var(--ivory); border-color: var(--chip-ring); }
.code-copy svg { width: 12px; height: 12px; }

.deleted-banner {
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--loss); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem;
  margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* Tab navigation within a group's detail view */
.detail-tabs {
  display: flex; gap: 4px; background: var(--felt-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.detail-tab {
  flex: 1; background: none; border: none; color: var(--ivory-dim); font-size: 0.85rem;
  font-weight: 600; padding: 9px 6px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.detail-tab:hover { color: var(--ivory); }
.detail-tab svg { width: 15px; height: 15px; }
.detail-tab.active { background: var(--felt-1); color: var(--ivory); box-shadow: 0 1px 3px var(--shadow); }
.detail-tab .tab-count {
  font-size: 0.7rem; color: var(--ivory-dim); background: var(--felt-3); border-radius: 999px;
  padding: 0 6px; min-width: 16px; text-align: center;
}
.detail-tab.active .tab-count { color: var(--ivory); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.card {
  background: var(--felt-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.card h3 { font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card h3 .title-left { display: flex; align-items: center; gap: 8px; }
.card h3 svg { color: var(--ivory-dim); width: 16px; height: 16px; }
.card h3.gold-title svg { color: var(--gold); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.settings-grid .field.full { grid-column: 1 / -1; }
.settings-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 4px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.stat-value svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.stat-label { font-size: 0.72rem; color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value.balance-negative { color: var(--loss); }
.stat-value.balance-negative svg { color: var(--loss); }
.stat-value.balance-positive { color: var(--gold-deep); }

.cost-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cost-chip { font-size: 0.78rem; color: var(--ivory-dim); }
.cost-chip b { color: var(--ivory); font-weight: 700; }

.coins-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.coins-form .field { flex: 1; min-width: 120px; }
.coins-form .field.note { flex: 2; min-width: 160px; }

.ledger-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ledger-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-icon {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--gold-dim);
}
.ledger-icon svg { width: 16px; height: 16px; color: var(--gold); }
.ledger-icon.negative { background: rgba(248, 113, 113, 0.12); }
.ledger-icon.negative svg { color: var(--loss); }
.ledger-main { flex: 1; min-width: 0; }
.ledger-type { font-weight: 600; }
.ledger-meta { color: var(--ivory-dim); font-size: 0.76rem; margin-top: 1px; }
.ledger-amount { font-weight: 700; font-family: var(--font-display); flex: none; }
.ledger-amount.positive { color: var(--gold-deep); }
.ledger-amount.negative { color: var(--loss); }
.ledger-more { text-align: center; padding-top: 10px; }

.list-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.list-table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ivory-dim); padding: 6px 8px; border-bottom: 1px solid var(--line);
}
.list-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.list-table tr:last-child td { border-bottom: none; }
.role-chip {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--felt-2); color: var(--ivory-dim);
  margin-right: 4px;
}
.role-chip.admin { background: rgba(52, 211, 153, 0.15); color: var(--brass); }
.status-chip { font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: var(--felt-2); color: var(--ivory-dim); }
.status-chip.locked { color: var(--ivory-dim); }
.status-chip.active { color: var(--brass); background: rgba(52, 211, 153, 0.12); }

.switch-row { display: flex; align-items: center; gap: 8px; }
.switch-label { font-size: 0.78rem; color: var(--ivory-dim); min-width: 52px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider {
  position: absolute; inset: 0; background: var(--felt-3); border-radius: 999px;
  cursor: pointer; transition: background 0.15s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.switch input:checked + .slider { background: var(--brass); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.switch input:disabled + .slider { opacity: 0.5; cursor: default; }

.empty-note { color: var(--ivory-dim); font-size: 0.85rem; padding: 6px 4px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--felt-2); border: 1px solid var(--line); color: var(--ivory);
  padding: 11px 18px; border-radius: 12px; font-size: 0.88rem; box-shadow: 0 10px 30px var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { border-color: rgba(248, 113, 113, 0.4); color: var(--loss); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--ink); animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; background: var(--loss); color: #fff;
  text-align: center; font-size: 0.85rem; padding: 8px; z-index: 60;
}

/* ---------- Responsive: stack panes on narrow screens ---------- */
@media (max-width: 780px) {
  .topbar { padding: 12px 16px; }
  #viewApp.detail-active .groups-pane { display: none; }
  #viewApp:not(.detail-active) .detail-pane { display: none; }
  .groups-pane { max-width: none; border-right: none; }
  .detail-back { display: inline-flex; }
  .detail-inner { padding: 16px 16px calc(50px + 66px + var(--dock-bot)); }
  .settings-grid { grid-template-columns: 1fr; }
  .list-table { display: block; overflow-x: auto; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .detail-tab span.label { display: none; }
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
