:root {
  color-scheme: light;
  --bg: #f3f5fa;
  --bg-2: #e8ecf4;
  --elev: #ffffff;
  --card: #ffffff;
  --hover: #eef1f7;
  --line: #e3e7ef;
  --text: #111827;
  --muted: #667085;
  --accent: #fe2c55;
  --accent-hover: #e11d48;
  --cyan: #0e8a94;
  --link-hover: #0b6f77;
  --online: #16a34a;
  --warn: #d97706;
  --chrome: rgba(255, 255, 255, 0.86);
  --glow-accent: rgba(254, 44, 85, 0.12);
  --glow-cyan: rgba(14, 138, 148, 0.08);
  --hero-bg: linear-gradient(160deg, rgba(254, 44, 85, 0.14), var(--card) 58%);
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  --radius: 18px;
  --topbar: 56px;
  --tabbar: 64px;
  --sidenav: 248px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0b0b0d;
  --elev: #121214;
  --card: #18181b;
  --hover: #232328;
  --line: #2c2c31;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #fe2c55;
  --accent-hover: #ff4d6d;
  --cyan: #25f4ee;
  --link-hover: #7ff9f5;
  --online: #22c55e;
  --warn: #f59e0b;
  --chrome: rgba(0, 0, 0, 0.78);
  --glow-accent: rgba(254, 44, 85, 0.16);
  --glow-cyan: rgba(37, 244, 238, 0.08);
  --hero-bg: linear-gradient(160deg, rgba(254, 44, 85, 0.28), rgba(18, 18, 20, 0.9) 55%);
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  margin: 0;
}

body { padding-bottom: env(safe-area-inset-bottom); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--text); font-weight: 750; letter-spacing: -0.03em; }
h1, .h1 { font-size: 1.55rem; }
p { color: var(--muted); }

.text-secondary, .form-text { color: var(--muted) !important; }
code { color: var(--cyan); }

/* ---------- shell ---------- */
.app-shell {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--glow-accent), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, var(--glow-cyan), transparent 45%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: var(--chrome);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text) !important;
  letter-spacing: -0.05em;
}
.brand img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text span { color: var(--accent); }
.brand-side { display: none; }
.brand-auth {
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
}
.brand-auth img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
}
.user-chip-name { font-weight: 600; font-size: 0.9rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--hover); }
.theme-icon { width: 18px; height: 18px; fill: currentColor; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.notify-wrap { position: relative; }
.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text);
  cursor: pointer;
}
.notify-bell svg { width: 18px; height: 18px; fill: currentColor; }
.notify-bell:hover,
.notify-bell.is-open { background: var(--hover); }
.notify-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 16px;
}
.notify-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, #000 28%, transparent);
}
.notify-panel {
  position: fixed;
  z-index: 91;
  top: calc(var(--topbar) + env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
  left: 12px;
  width: auto;
  max-width: 400px;
  margin-left: auto;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.notify-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.notify-head strong { font-size: 0.95rem; }
.notify-count {
  margin-left: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.notify-head-actions { display: flex; align-items: center; gap: 4px; }
.notify-text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.notify-text-btn:hover { color: var(--text); background: var(--hover); }
.notify-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.notify-close:hover { background: var(--hover); color: var(--text); }
.notify-list {
  overflow: auto;
  padding: 8px;
  min-height: 120px;
}
.notify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text);
}
.notify-empty small { color: var(--muted); max-width: 240px; }
.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  cursor: pointer;
}
.notify-item:hover { background: var(--hover); }
.notify-item.unread { background: var(--elev); }
.notify-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.notify-title { font-weight: 700; font-size: 0.88rem; }
.notify-body {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.35;
}
.notify-time { color: var(--muted); font-size: 0.75rem; }
.notify-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-footer .notify-wrap { margin-bottom: 4px; }

.sidenav { display: none; }
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--chrome);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.stage {
  padding: 16px 14px 96px;
}
.stage-inner { max-width: 680px; margin: 0 auto; }

.tab-nav {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.side-nav { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted) !important;
  font-size: 0.68rem;
  font-weight: 600;
  height: var(--tabbar);
  text-decoration: none !important;
  border: 0;
  background: transparent;
  width: 100%;
}
.nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.nav-item.active { color: var(--text) !important; }
.nav-item-live.active { color: var(--accent) !important; }

/* ---------- atoms ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.95rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; }
.avatar-photo {
  background: var(--elev);
  overflow: hidden;
  padding: 0;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-edit {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.avatar-edit input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.avatar-edit-badge {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.avatar-a { background: linear-gradient(135deg, #fe2c55, #ff7a59); }
.avatar-b { background: linear-gradient(135deg, #25f4ee, #3b82f6); }
.avatar-c { background: linear-gradient(135deg, #a855f7, #fe2c55); }
.avatar-d { background: linear-gradient(135deg, #22c55e, #25f4ee); }
.avatar-e { background: linear-gradient(135deg, #f59e0b, #fe2c55); }

.btn-accent, .btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #e11d48;
  --bs-btn-active-border-color: #e11d48;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 0.55rem 1.15rem;
}
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger {
  border-radius: 999px !important;
  font-weight: 600;
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost {
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-sm-pad { padding: 0.4rem 0.95rem; font-size: 0.9rem; }

.form-control, .form-select {
  background: var(--elev) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  min-height: 46px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.2) !important;
}
.form-label { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

.card, .list-group-item {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}
.card { border-radius: var(--radius) !important; box-shadow: var(--shadow); }
.card-title { color: var(--text); }

.table { color: var(--text); --bs-table-bg: transparent; }
.table > :not(caption) > * > * { background: transparent; color: var(--text); border-color: var(--line); }

.alert {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--elev);
  color: var(--text);
}
.alert-info, .alert-success, .alert-warning, .alert-danger { background: var(--elev); }

.nav-tabs {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.nav-tabs .nav-link {
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}
.nav-tabs .nav-link.active {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.page-head { margin-bottom: 1.1rem; }
.page-head p { margin-bottom: 0; }
.kicker {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--elev);
  border: 1px solid var(--line);
}
.chip-online { color: var(--online); }
.chip-live { color: var(--accent); }

/* ---------- feed (facebook-like) ---------- */
.composer, .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.composer-top, .post-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.post-author { display: block; flex-shrink: 0; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: var(--accent); }
.post-owner {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.post-meta { display: flex; flex-direction: column; }
.post-meta strong { color: var(--text); }
.post-meta time, .post-meta span { color: var(--muted); font-size: 0.8rem; }
.post-body { white-space: pre-wrap; color: var(--text); margin: 10px 0 8px; line-height: 1.5; }
.post-actions {
  display: flex;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 6px;
}
.post-actions button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 650;
  padding: 8px;
  border-radius: 10px;
}
.post-actions button:hover { background: var(--hover); color: var(--text); }
.post-actions button.liked { color: var(--accent); }
.comment-row { display: flex; gap: 8px; padding: 8px 0 0; }
.comment-row p { margin: 0; color: var(--text); }
.composer-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.composer-bar input, .composer-bar .form-control { flex: 1; min-height: 42px; }

.composer { padding: 16px; }
.composer-main { flex: 1; min-width: 0; }
.composer-input.form-control,
textarea.composer-input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 4px 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.composer-input::placeholder { color: #71717a; }
.composer-preview {
  position: relative;
  margin: 4px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.composer-preview img,
.composer-preview video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.composer-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.composer-preview-file { padding: 14px; background: var(--elev); }
.composer-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.composer-file-card span { display: block; color: var(--muted); font-size: 0.8rem; }
.composer-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(254, 44, 85, 0.18);
  color: var(--accent);
  font-size: 0.85rem;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.composer-media-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
}
.composer-media-btn:hover { background: var(--hover); }
.composer-media-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--cyan);
}
.composer-media-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.composer-hint, .composer-count {
  color: var(--muted);
  font-size: 0.75rem;
}
.composer-hint { flex: 1; min-width: 140px; }
.composer-submit { margin-left: auto; }
.post-media {
  margin: 10px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.post-media img,
.post-media video {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #000;
}

/* ---------- discover ---------- */
.hero {
  background: var(--hero-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hero-logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 0 10px;
  border-radius: 18px;
}
.hero h1 { margin: 0 0 6px; font-size: 1.8rem; }
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tile strong { font-size: 1.05rem; }
.tile span { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.tile-1 { background: linear-gradient(180deg, rgba(254, 44, 85, 0.25), var(--card) 70%); }
.tile-2 { background: linear-gradient(180deg, rgba(37, 244, 238, 0.18), var(--card) 70%); }
.tile-3 { background: linear-gradient(180deg, rgba(168, 85, 247, 0.22), var(--card) 70%); }
.tile-4 { background: linear-gradient(180deg, rgba(245, 158, 11, 0.2), var(--card) 70%); }

/* ---------- people / hire ---------- */
.person-card, .hire-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.person-card { flex-wrap: wrap; }
.person-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hire-card { flex-wrap: wrap; }
.person-card h3, .hire-card h3 { margin: 0; font-size: 1rem; }
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.auth-wrap {
  min-height: calc(100dvh - 180px);
  display: grid;
  place-items: center;
  padding: 8px 0 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.auth-card h1 { text-align: center; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.video-tile {
  position: relative;
  background: #050505;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-label {
  position: absolute;
  left: 0.7rem;
  bottom: 0.55rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
}

.call-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.video-moderation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.call-chat {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.call-chat-log {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.call-chat-line {
  font-size: 0.9rem;
}

.call-chat-line strong {
  margin-right: 6px;
}

.call-chat-line.is-me span {
  color: var(--accent);
}

.call-chat-compose {
  display: flex;
  gap: 8px;
}

.report-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.profile-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .user-chip-name { display: inline; }
}

@media (min-width: 992px) {
  .topbar { display: none; }
  .tabbar { display: none; }
  .sidenav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidenav);
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    background: var(--chrome);
  }
  .side-nav { display: flex; flex-direction: column; gap: 4px; height: 100%; }
  .tab-nav { display: none; }
  .brand-side { display: inline-flex; margin: 4px 10px 22px; font-size: 1.45rem; }
  .side-nav .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 1rem;
    width: auto;
  }
  .side-nav .nav-item.active { background: var(--hover); }
  .nav-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 8px 0;
  }
  .nav-logout { cursor: pointer; color: var(--muted); }
  .notify-panel {
    top: auto;
    right: auto;
    left: calc(var(--sidenav) + 12px);
    bottom: 20px;
    width: 380px;
    max-width: min(380px, calc(100vw - var(--sidenav) - 24px));
    margin-left: 0;
  }
  .stage { margin-left: var(--sidenav); padding: 28px 32px 40px; }
  .stage-inner { max-width: 720px; }
}

@media (max-width: 767px) {
  .user-chip-name { display: none; }
}
