/* Kasyana Panel — console theme: cosmic backdrop, compact sidebar,
   card grid, model tiles. */

:root {
  --bg: #08090d;
  --bg-panel: rgba(19, 21, 28, 0.72);
  --bg-card: rgba(23, 26, 34, 0.62);
  --bg-card-hi: rgba(31, 35, 46, 0.78);
  --bg-input: rgba(10, 12, 17, 0.75);
  --border: rgba(255, 255, 255, 0.075);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: #eceef6;
  --muted: #8c93a6;
  --muted-2: #646b7d;
  --accent: #8fadff;
  --accent-2: #c0a6ff;
  --accent-grad: linear-gradient(135deg, #7aa2f7 0%, #9d7bf0 58%, #bb9af7 100%);
  --accent-ink: #0a0c12;
  --danger: #f0708a;
  --ok: #9ede8a;
  --warn: #e8c37a;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.panel-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(122, 162, 247, 0.16), transparent 60%),
    radial-gradient(900px 520px at 88% 4%, rgba(187, 154, 247, 0.13), transparent 62%),
    radial-gradient(1200px 900px at 60% 120%, rgba(90, 120, 220, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- login ---------- */
.view { position: relative; z-index: 1; }
#view-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
#view-login .login-card {
  width: min(392px, 92vw);
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.brand { margin: 0 0 4px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 0.78em; letter-spacing: 0; }
.tagline { margin: 0 0 26px; color: var(--muted); font-size: 0.9rem; }

/* ---------- shell ---------- */
#view-app { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  width: 236px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px 10px;
  border-right: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.55);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 2;
}

/* project/workspace switcher chip */
.side-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}
.side-brand .mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--accent-grad);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem;
}

.nav-group { margin-top: 14px; padding: 0 10px 6px; color: var(--muted-2); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.side-nav, .side-bottom { display: flex; flex-direction: column; gap: 1px; }
.side-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.nav-item svg { flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-item.active { background: rgba(143, 173, 255, 0.13); color: var(--text); }
.nav-item.active svg { color: var(--accent); opacity: 1; }
.nav-badge {
  margin-left: auto;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(143, 173, 255, 0.16);
  color: var(--accent);
  border: 1px solid rgba(143, 173, 255, 0.25);
  letter-spacing: 0.03em;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.avatar {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.account-meta { min-width: 0; flex: 1; }
.user-email { display: block; font-size: 0.78rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { display: block; font-size: 0.68rem; color: var(--muted-2); }

.content { flex: 1; min-width: 0; padding: 22px 30px 70px; position: relative; z-index: 1; }
.content-inner { max-width: 1180px; margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.greeting { margin: 0; font-size: 1.42rem; font-weight: 600; letter-spacing: -0.02em; }
.greeting-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  min-width: 240px;
  transition: border-color 0.15s, background 0.15s;
}
.search-wrap:focus-within { border-color: var(--border-hi); background: var(--bg-card-hi); }
.search-icon { color: var(--muted-2); display: flex; }
#search-input { flex: 1; border: none; background: transparent; color: var(--text); font: inherit; font-size: 0.86rem; outline: none; min-width: 0; }
.search-kbd {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.66rem;
  color: var(--muted-2);
  font-family: inherit;
  white-space: nowrap;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #14161d;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 40; overflow: hidden; max-height: 320px; overflow-y: auto;
}
.search-hit { display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.search-hit:hover { background: rgba(143, 173, 255, 0.10); }
.search-hit.muted { color: var(--muted); cursor: default; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card-hi);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.btn:hover:not(:disabled) { border-color: var(--border-hi); background: rgba(40, 45, 58, 0.9); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent-grad); border: none; color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(240, 112, 138, 0.4); color: var(--danger); }
.btn.small { padding: 4px 9px; font-size: 0.76rem; border-radius: var(--radius-xs); }
.btn.block { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- cards ---------- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 5px; font-size: 1rem; font-weight: 600; }
.card h3 { margin: 16px 0 8px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.hint { margin: 0 0 14px; color: var(--muted); font-size: 0.84rem; }
.hint code, .card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; color: var(--accent-2); }
.empty { color: var(--muted-2); font-size: 0.86rem; }
.oauth-note { color: var(--muted-2); font-size: 0.82rem; }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px; }
.stat-tile {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 116px;
}
.stat-head { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; }
.stat-head .info { margin-left: auto; color: var(--muted-2); cursor: help; }
.stat-value { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.stat-value.sm { font-size: 1.02rem; font-family: ui-monospace, monospace; font-weight: 500; }
.stat-sub { color: var(--muted-2); font-size: 0.74rem; }
.spark { width: 100%; height: 40px; margin-top: auto; }
.stat-tile.tinted { background: linear-gradient(180deg, rgba(143, 173, 255, 0.13), rgba(23, 26, 34, 0.62)); border-color: rgba(143, 173, 255, 0.22); }
.stat-tile.tinted .btn { align-self: flex-start; margin-top: 8px; }

/* ring gauge */
.ring { width: 44px; height: 44px; margin-left: auto; flex-shrink: 0; }

/* ---------- model tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.model-tile {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 0 0 12px;
  transition: transform 0.15s, border-color 0.15s;
}
.model-tile:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.model-art {
  height: 76px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.model-art::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  opacity: 0.7;
}
.model-art svg { position: relative; z-index: 1; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)); }
.model-tile .body { padding: 0 13px; }
.model-name { display: block; font-weight: 600; font-size: 0.88rem; }
.model-meta { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 3px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.mini-chip {
  font-size: 0.68rem;
  padding: 1.5px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.mini-chip.ok { color: var(--ok); border-color: rgba(158, 222, 138, 0.28); background: rgba(158, 222, 138, 0.08); }
.mini-chip.accent { color: var(--accent); border-color: rgba(143, 173, 255, 0.3); background: rgba(143, 173, 255, 0.1); }

/* generic icon tile (resources / tools) */
.icon-tile {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(143, 173, 255, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}
.tile-grid .icon-tile { margin-bottom: 8px; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.res-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  text-decoration: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.res-card:hover { border-color: var(--border-hi); background: var(--bg-card-hi); }
.res-head { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.88rem; }
.res-head .beta { font-size: 0.66rem; color: var(--accent); border: 1px solid rgba(143, 173, 255, 0.3); border-radius: 999px; padding: 0 6px; }
.res-body { color: var(--muted); font-size: 0.8rem; }
.res-actions { margin-top: auto; padding-top: 8px; }

/* updates / activity feed */
.feed { display: flex; flex-direction: column; gap: 15px; }
.feed-item { display: flex; gap: 11px; }
.feed-dot {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(143, 173, 255, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
}
.feed-when, .feed-title, .feed-body { display: block; }
.feed-when { color: var(--muted-2); font-size: 0.7rem; line-height: 1.35; }
.feed-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; }
.feed-body { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.feed-body code { color: var(--accent-2); font-family: ui-monospace, monospace; font-size: 0.92em; }

/* ---------- get started checklist ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 11px;
  text-align: left; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { border-color: var(--border-hi); background: rgba(255, 255, 255, 0.04); }
.check-box {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--muted);
}
.check-item.done .check-box { background: var(--accent-grad); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.check-item.done .check-title { color: var(--muted); text-decoration: line-through; }
.check-main { min-width: 0; display: block; }
.check-title { display: block; font-size: 0.86rem; font-weight: 600; }
.check-sub { display: block; color: var(--muted); font-size: 0.78rem; }

/* ---------- playground ---------- */
.play-card .inline-form { margin-bottom: 4px; }
.play-out { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.play-text { margin: 0; font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }
.play-meta { margin-top: 8px; color: var(--muted-2); font-size: 0.76rem; display: flex; gap: 12px; flex-wrap: wrap; }

.snippet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.snippet-head .btn { margin-left: auto; }
.snippet {
  margin: 0;
  background: rgba(8, 10, 14, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #cfe0ff;
}
.snippet .c-dim { color: var(--muted-2); }
.snippet .c-key { color: var(--accent-2); }

/* ---------- layout ---------- */
.section-title { margin: 24px 0 10px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.section-title .link { float: right; color: var(--accent); font-size: 0.8rem; font-weight: 500; text-decoration: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 26px; align-items: start; }

/* ---------- forms / tables ---------- */
.preset-row { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.preset-label { color: var(--muted-2); font-size: 0.76rem; margin-right: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font: inherit;
  font-size: 0.79rem;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip.active { background: rgba(143, 173, 255, 0.14); color: var(--accent); border-color: rgba(143, 173, 255, 0.32); }

.inline-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); }
.field.grow { flex: 1; min-width: 150px; }
.field.checkbox { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 0.82rem; }
.field input, .field select {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  border-radius: var(--radius-xs);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.85rem;
  min-width: 0;
}
.field input:focus, .field select:focus { border-color: rgba(143, 173, 255, 0.5); outline: none; }
.field input::placeholder { color: var(--muted-2); }

.error { color: var(--danger); font-size: 0.82rem; margin: 8px 0 0; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  vertical-align: middle;
}
.data-table th { color: var(--muted-2); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.79rem; }
.data-table .cell-name { font-weight: 600; }
.cell-action { white-space: nowrap; }
.cell-action .btn { margin: 0 2px 4px 0; }
.key-list .data-table { margin-top: 6px; }

.badge {
  display: inline-block;
  padding: 1.5px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-right: 5px;
  white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: rgba(158, 222, 138, 0.3); background: rgba(158, 222, 138, 0.08); }
.badge.oauth { color: var(--accent); border-color: rgba(143, 173, 255, 0.32); background: rgba(143, 173, 255, 0.1); }
.badge.key { color: var(--accent-2); border-color: rgba(192, 166, 255, 0.3); background: rgba(192, 166, 255, 0.08); }
.badge.revoked { color: var(--danger); border-color: rgba(240, 112, 138, 0.3); background: rgba(240, 112, 138, 0.08); }
.badge.default { color: var(--warn); border-color: rgba(232, 195, 122, 0.3); background: rgba(232, 195, 122, 0.08); }

.clash-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.clash-label { color: var(--muted); font-size: 0.8rem; min-width: 62px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; }
.clash-row .mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  word-break: break-all;
}
.mono.wrap { white-space: normal; }
.clash-actions { margin-top: 10px; }

/* ---------- dialog ---------- */
.key-dialog {
  border: 1px solid var(--border-hi);
  background: #14161d;
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px 24px;
  width: min(560px, 92vw);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.key-dialog::backdrop { background: rgba(4, 5, 9, 0.72); backdrop-filter: blur(3px); }
.key-dialog h2 { margin: 0 0 8px; font-size: 1rem; }
.dialog-note { color: var(--muted); font-size: 0.83rem; margin: 0 0 12px; }
.key-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.key-box code { font-family: ui-monospace, monospace; font-size: 0.86rem; color: var(--accent); word-break: break-all; }
.oauth-code { font-size: 1.25rem !important; letter-spacing: 0.12em; }
.dialog-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 12px; }
.import-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 10px 12px;
  resize: vertical;
}
.import-textarea:focus { border-color: rgba(143, 173, 255, 0.5); outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .checklist { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  #view-app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .side-brand { border-bottom: none; padding-bottom: 6px; }
  .nav-group { display: none; }
  .side-nav, .side-bottom { flex-direction: row; flex-wrap: wrap; }
  .side-bottom { border-top: none; margin-top: 0; padding-top: 0; }
  .account-chip { border-top: none; margin-left: auto; padding: 0; }
  .content { padding: 18px 16px 50px; }
  .home-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
