/* =========================================================
   7 Figure Blueprint — Modern Pro LMS
   Inspired by Linear / Vercel dashboards
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --surface: #131317;
  --surface-2: #1a1a1f;
  --surface-3: #222228;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --border-3: rgba(255, 255, 255, 0.2);
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-faint: #6b6b74;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.15);
  --warn: #eab308;
  --warn-soft: rgba(234, 179, 8, 0.15);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.15);
  --sidebar-w: 232px;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-xs: 6px;
  --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   LIGHT THEME — applied via <html data-theme="light">
   ============================================================ */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #f4f4f5;
  --surface-2: #e7e7ea;
  --surface-3: #d4d4d8;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.14);
  --border-3: rgba(0, 0, 0, 0.22);
  --text: #18181b;
  --text-dim: #52525b;
  --text-faint: #71717a;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.10);
  --warn: #ca8a04;
  --warn-soft: rgba(202, 138, 4, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }

/* Smooth theme transition (only after first paint, set by JS) */
html.theme-ready,
html.theme-ready body,
html.theme-ready * {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* =========================================================
   Auth pages
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-text {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1;
}
.brand-text small {
  display: block; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--text-faint); margin-top: 3px;
}

.brand-logo {
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 0;
}
.brand-logo img { max-width: 100%; height: auto; display: inline-block; }
.auth-card .brand-logo img { max-height: 110px; }

.auth-title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.auth-sub { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.9rem; }

.field { display: block; margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
  outline: none;
  font-size: 0.92rem;
}
/* Mobile: bump input font to 16px so iOS doesn't auto-zoom */
@media (max-width: 640px) {
  .field input, .field select, .field textarea,
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="search"], input[type="url"],
  input[type="tel"], select, textarea {
    font-size: 16px !important;
  }
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.field input:disabled { opacity: 0.6; cursor: not-allowed; }
.field textarea { min-height: 80px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); color: white; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #ff5869; color: white; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #2ee06e; color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.38rem 0.75rem; font-size: 0.82rem; border-radius: var(--radius-xs); }

.auth-foot { text-align: center; font-size: 0.88rem; color: var(--text-dim); margin-top: 1rem; }

.error-banner {
  background: var(--danger-soft);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #ffc5cd;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.error-banner:empty { display: none; }

.success-banner {
  background: var(--success-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #b9f3cd;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* =========================================================
   App shell
   ========================================================= */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0; /* handled per-element */
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand-logo {
  padding: 0.25rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  margin: 0 0 0.75rem;
  text-align: left;
}
.sidebar .brand-logo img {
  max-height: 100px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-faint);
  font-size: 0.82rem;
  cursor: pointer;
  margin-bottom: 0.85rem;
}
.sidebar-search:hover { border-color: var(--border-2); color: var(--text-dim); }
.sidebar-search kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 2px 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
}

.nav-section-title {
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.85rem 0.5rem 0.35rem;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-link:hover::before { transform: scaleY(0.6); }
.nav-link.active {
  background: var(--surface);
  color: var(--text);
}
.nav-link.active::before { transform: scaleY(1); }
.nav-link svg {
  width: 15px; height: 15px;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.nav-link:hover svg { transform: translateX(2px); opacity: 1; }
.nav-link.active svg { color: var(--accent); opacity: 1; }
.nav-link .badge-nav {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--accent);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-sub {
  margin: 0.1rem 0 0.1rem 1.3rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-sub .nav-link {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
}

.sidebar-foot {
  margin-top: auto;
  padding: 0.65rem 0.5rem 0.55rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease;
}
.sidebar-foot:hover { background: var(--surface); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e40af);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.76rem;
  margin-top: 1px;
}
.sidebar-foot .who { flex: 1; min-width: 0; line-height: 1.25; display: flex; flex-direction: column; gap: 3px; }
.sidebar-foot .who b {
  font-weight: 600; font-size: 0.84rem;
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-foot .who small { color: var(--text-faint); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================
   Tag pills — 5-color preset palette
   ========================================================== */
.tag-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.005em;
  line-height: 1.4;
  align-self: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  border: 1px solid transparent;
}
.tag-pill.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2);
  border-color: rgba(59, 130, 246, 0.22);
}
.tag-pill.tag-green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.22);
}
.tag-pill.tag-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.22);
}
.tag-pill.tag-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.22);
}
.tag-pill.tag-gray {
  background: var(--surface-2);
  color: var(--text-dim);
  border-color: var(--border-2);
}
.tag-pill.tag-red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
}

/* Light theme adjustments — pills need stronger text contrast */
html[data-theme="light"] .tag-pill.tag-blue { color: #1d4ed8; }
html[data-theme="light"] .tag-pill.tag-green { color: #15803d; }
html[data-theme="light"] .tag-pill.tag-purple { color: #7e22ce; }
html[data-theme="light"] .tag-pill.tag-orange { color: #c2410c; }
html[data-theme="light"] .tag-pill.tag-gray { color: var(--text); }
html[data-theme="light"] .tag-pill.tag-red { color: #b91c1c; }

/* Tag dot (for inline uses in lists) */
.tag-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.tag-dot.tag-blue { background: var(--accent); }
.tag-dot.tag-green { background: var(--success); }
.tag-dot.tag-purple { background: #a855f7; }
.tag-dot.tag-orange { background: #f97316; }
.tag-dot.tag-gray { background: var(--text-faint); }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 52px;
}

.crumb {
  font-size: 0.86rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crumb b { color: var(--text); font-weight: 600; }
.crumb .sep { color: var(--text-faint); }

.top-actions { display: flex; align-items: center; gap: 0.25rem; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dim);
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn.bordered {
  border: 1px solid var(--border-2);
  background: var(--surface);
  width: 34px; height: 34px;
}
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
}

.content {
  padding: 1.5rem 1.75rem 3rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-head h1 { margin-bottom: 0.2rem; }
.page-head p { color: var(--text-dim); margin: 0; font-size: 0.88rem; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
}
.card-head h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
}
.stat .label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stat .label svg { width: 13px; height: 13px; opacity: 0.7; }
.stat .value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat .value.green { color: var(--success); }
.stat .delta { font-size: 0.76rem; color: var(--text-faint); }
.stat .delta.good { color: var(--success); }
.stat-icon { display: none; } /* legacy - we use compact layout now */

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.stack { display: flex; flex-direction: column; gap: 1rem; }

/* =========================================================
   Resume / featured video card
   ========================================================= */
.video-card { padding: 0; overflow: hidden; }
.video-head {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.video-head h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.video-head small { color: var(--text-faint); font-size: 0.82rem; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe,
.video-frame video { width: 100%; height: 100%; border: 0; display: block; }

.video-foot {
  padding: 0.75rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.video-foot .text-dim { color: var(--text-dim); }

/* Resume (Option E style) */
.resume-card {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  min-height: 140px;
}
.resume-thumb {
  height: 100%;
  min-height: 140px;
  background:
    linear-gradient(135deg, rgba(9, 9, 11, 0.2), rgba(9, 9, 11, 0.75)),
    radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.55), transparent 65%),
    linear-gradient(135deg, #1e3a8a, #0c1a42);
  position: relative;
}
.resume-thumb::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  background-image:
    linear-gradient(135deg, transparent 46%, rgba(9, 9, 11, 0.9) 46% 54%, transparent 54%),
    radial-gradient(circle at center, rgba(9, 9, 11, 0.9) 18%, transparent 18%);
}
.resume-thumb.with-iframe { padding: 0; background: #000; }
.resume-thumb.with-iframe::after { display: none; }
.resume-thumb.with-iframe iframe { width: 100%; height: 100%; border: 0; }

.resume-info { padding: 1.1rem 0; }
.resume-info .k {
  font-size: 0.72rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.resume-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; letter-spacing: -0.015em; }
.resume-info p { color: var(--text-dim); font-size: 0.88rem; max-width: 58ch; margin: 0 0 0.75rem; line-height: 1.55; }
.resume-info .meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-faint); flex-wrap: wrap; }
.resume-info .meta b { color: var(--text-dim); }
.resume-cta { padding-right: 1.2rem; }

@media (max-width: 760px) {
  .resume-card { grid-template-columns: 1fr; }
  .resume-thumb { height: 160px; }
  .resume-info { padding: 1rem 1.2rem 0; }
  .resume-cta { padding: 0 1.2rem 1.1rem; }
}

/* =========================================================
   Task list (user and dashboard)
   ========================================================= */
.task-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }

.task-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.task-item:last-child { border-bottom: none; }
.task-item .title { flex: 1; min-width: 0; }
.task-item .title b { font-weight: 500; }
.task-item .title small { display: block; color: var(--text-faint); font-size: 0.76rem; font-weight: 400; margin-top: 2px; }
.task-item .chev { color: var(--text-faint); flex-shrink: 0; width: 14px; height: 14px; }
.task-item .chev svg { width: 14px; height: 14px; }
.task-item .due { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); white-space: nowrap; }
.task-item .due.overdue { color: var(--danger); font-weight: 600; }
.task-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.task-item.done .title b { text-decoration: line-through; color: var(--text-faint); }

/* Progress */
.progress {
  flex: 0 0 100px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s;
}
.progress.green > span { background: var(--success); }

/* =========================================================
   Tables
   ========================================================= */
.table-wrap { overflow-x: auto; margin: 0 -1.2rem; padding-bottom: 2px; }
.table-wrap table { margin: 0 1.2rem; width: calc(100% - 2.4rem); min-width: 560px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: auto;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data th:first-child, table.data td:first-child { padding-left: 0.2rem; }
table.data th:last-child, table.data td:last-child { padding-right: 0.2rem; }
table.data th {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  white-space: nowrap;
}
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.data td .actions { display: flex; gap: 0.3rem; justify-content: flex-end; flex-wrap: wrap; }
table.data td b { font-weight: 600; }
table.data td {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.data td .text-faint,
table.data td .text-dim {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
/* Hide less-critical columns on narrower screens */
@media (max-width: 1100px) {
  table.data th.hide-md, table.data td.hide-md { display: none; }
}
@media (max-width: 820px) {
  table.data th.hide-sm, table.data td.hide-sm { display: none; }
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.badge.green { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--accent-soft); color: var(--accent-2); }

/* =========================================================
   Training library
   ========================================================= */
.lesson-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  border-radius: var(--radius-xs);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--surface-2); }
.lesson-item .title { flex: 1; font-weight: 500; font-size: 0.9rem; }
.lesson-item .duration { font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); }
.lesson-item .chev { color: var(--text-faint); }
.lesson-item .chev svg { width: 14px; height: 14px; }

/* =========================================================
   Forms (inline)
   ========================================================= */
.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  align-items: end;
}
.form-inline .field { margin-bottom: 0; }

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-foot { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* =========================================================
   Notifications
   ========================================================= */
.notif-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: flex-start;
}
.notif-item.unread { border-left: 2px solid var(--accent); background: var(--accent-soft); }
.notif-item .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-top: 0.55rem; flex-shrink: 0;
}
.notif-item:not(.unread) .dot { background: var(--text-faint); }
.notif-item .body { flex: 1; min-width: 0; }
.notif-item .body b { font-weight: 600; display: block; margin-bottom: 0.15rem; font-size: 0.9rem; word-wrap: break-word; }
.notif-item .body p { margin: 0; color: var(--text-dim); font-size: 0.85rem; word-wrap: break-word; }
.notif-item .body time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: block;
  margin-top: 0.25rem;
}

/* =========================================================
   Utilities
   ========================================================= */
.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.gap-sm { gap: 0.5rem; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.25rem; }
.hidden { display: none !important; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.text-right { text-align: right; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Mobile */
.burger { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 50;
    width: 260px;
    transition: transform 0.2s;
  }
  .sidebar.open { transform: translateX(0); }
  .burger { display: grid; }
  .content { padding: 1rem; }
  .topbar { padding: 0.5rem 0.85rem; min-height: 48px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .stat { padding: 0.75rem 0.9rem; }
  .stat .value { font-size: 1.4rem; }
  .modal { padding: 1rem; max-height: 94vh; }
  .modal-head h3 { font-size: 0.98rem; }
  .page-head { gap: 0.5rem; }
  .page-head h1 { font-size: 1.3rem; }
  .resume-card { min-height: unset; }
  .resume-thumb { min-height: 140px; }
  .card { padding: 0.85rem 1rem; }
  .card-head h3 { font-size: 0.92rem; }
  .grid-2 { gap: 0.75rem; }
  .form-inline { grid-template-columns: 1fr; }
  .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  /* Touch-friendly minimums */
  .btn { min-height: 40px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .nav-link { min-height: 42px; }
  /* Tables — wrap containing element for scroll (only if needed) */
  .card > table.data,
  .table-scroll > table.data {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  /* Sticky mobile backdrop for open sidebar */
  .sidebar.open::after {
    content: '';
    position: fixed;
    inset: 0;
    left: 260px;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
  /* Modal fills more of the screen */
  .modal-backdrop { padding: 0.5rem; }
  .modal { border-radius: 10px 10px 0 0; width: 100%; max-width: 100%; }
  /* Buttons in a row wrap nicely */
  .btn-row, .actions { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .content { padding: 0.75rem; }
  .topbar { padding: 0.45rem 0.75rem; }
  .crumb { font-size: 0.82rem; }
  .auth-card { padding: 1.5rem; }
  /* Ultra-narrow: tighten headings + card padding further */
  .page-head h1 { font-size: 1.15rem; }
  .page-head p { font-size: 0.82rem; }
  .card { padding: 0.75rem 0.85rem; }
}

/* ===== Sidebar: theme-aware logo, live call card, Discord button ===== */
.brand-logo .logo-on-light { display: none; }
[data-theme="light"] .brand-logo .logo-on-dark { display: none; }
[data-theme="light"] .brand-logo .logo-on-light { display: block; }
.sidebar-extras { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 2px 12px; }
.sidebar-extras:not(.has-items) { padding: 0; }
.sidebar-extras + .sidebar-foot { margin-top: 0; }
.sb-call { border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.sb-call-k { display: flex; align-items: center; gap: 7px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #f87171; margin-bottom: 4px; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.sb-call b { font-size: 0.84rem; font-weight: 600; }
.sb-call small { font-size: 0.74rem; color: var(--text-dim); }
.sb-call-btns { display: flex; gap: 6px; margin-top: 8px; }
.sb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.75rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.sb-btn:hover { border-color: var(--border-3); color: var(--text); }
.sb-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sb-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.sb-discord { display: flex; align-items: center; gap: 9px; padding: 0 12px; min-height: 42px; border-radius: 10px; background: rgba(88, 101, 242, 0.14); border: 1px solid rgba(88, 101, 242, 0.35); color: #a5acff; text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.sb-discord:hover { color: #c7cbff; border-color: rgba(88, 101, 242, 0.6); }
[data-theme="light"] .sb-discord { color: #4752c4; }

/* Sidebar fits any screen height: the menu scrolls, the live call card and profile stay pinned at the bottom */
.sidebar { overflow: hidden; }
.sidebar > nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -0.4rem; padding-right: 0.4rem; }
.sidebar > nav::-webkit-scrollbar { width: 6px; }
.sidebar > nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
.sidebar .brand-logo, .sidebar-extras, .sidebar-foot { flex-shrink: 0; }
.sidebar-extras { margin-top: 0; }
@media (max-height: 760px) { .sidebar-extras .sb-call small { display: none; } .sidebar-extras { padding-top: 10px; padding-bottom: 8px; } }
@supports (height: 100dvh) { .sidebar { height: 100dvh; } }
.sidebar > nav > * { flex-shrink: 0; }
@media (max-height: 760px) { .sidebar .brand-logo img { max-height: 64px; width: auto; } }

/* Clean top bar: no page title, no divider line; soft blur when content scrolls under it */
.topbar { border-bottom: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.topbar .crumb { display: none; }

/* Phone bottom menu bar */
.mbar, .mbar-scrim { display: none; }
@media (max-width: 860px) {
  .burger { display: none !important; }
  .content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    background: color-mix(in srgb, var(--bg-2) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border-2); border-radius: 18px; padding: 6px; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
  .mbar a, .mbar button { position: relative; appearance: none; background: none; border: 0; font: inherit; color: var(--text-faint); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; cursor: pointer;
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em; transition: color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
  .mbar svg { width: 20px; height: 20px; }
  .mbar a.on { color: var(--text); background: var(--surface); }
  .mbar a.on svg { color: var(--accent-2); }
  .mbar a:active, .mbar button:active { background: var(--surface); }
  .mbar em { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff;
    font-style: normal; font-size: 0.6rem; font-weight: 700; line-height: 16px; text-align: center; }
  .mbar-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .mbar-scrim.on { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .sidebar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Top bar icons: one size for all */
.top-actions { gap: 4px; }
.top-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; color: var(--text-dim); }
.top-actions .icon-btn svg { width: 18px; height: 18px; display: block; flex: none; }
.top-actions .icon-btn .dot { top: 7px; right: 7px; box-shadow: 0 0 0 2px var(--bg); }
.top-actions .icon-btn:hover { color: var(--text); background: var(--surface); }

/* Loading placeholder */
@keyframes skelShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.skel { display: flex; flex-direction: column; }
.skel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.skel-b { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 30%, var(--surface-2, var(--border)) 50%, var(--surface) 70%); background-size: 300% 100%; animation: skelShine 1.4s ease-in-out infinite; }
@media (max-width: 860px) { .skel-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .skel-b { animation: none; } }

/* Quick search */
.qs-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px; margin-right: 6px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--text-faint); font: inherit; font-size: 0.82rem; cursor: pointer; transition: border-color .2s, color .2s; }
.qs-trigger:hover { border-color: var(--text-faint); color: var(--text); }
.qs-trigger svg { width: 15px; height: 15px; }
.qs-trigger span { min-width: 120px; text-align: left; }
.qs-trigger kbd, .qs-in kbd { font-family: var(--mono); font-size: 0.66rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-faint); }
@media (max-width: 860px) { .qs-trigger { width: 36px; padding: 0; justify-content: center; border-color: transparent; background: none; margin: 0; } .qs-trigger span, .qs-trigger kbd { display: none; } .qs-trigger svg { width: 18px; height: 18px; } }
.qs-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.qs-back.open { display: flex; animation: qsIn .16s ease-out; }
@keyframes qsIn { from { opacity: 0; } to { opacity: 1; } }
.qs { width: 100%; max-width: 620px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.qs-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.qs-in svg { width: 18px; height: 18px; flex: none; }
.qs-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1rem; }
.qs-in input::-webkit-search-cancel-button { display: none; }
.qs-res { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.qs-g { font-size: 0.68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 10px 10px 4px; }
.qs-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--text); }
.qs-i b { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-i small { font-size: 0.75rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.qs-i.on { background: var(--accent-soft); color: var(--text); }
.qs-empty { padding: 28px 16px; text-align: center; color: var(--text-faint); font-size: 0.88rem; }

/* Welcome tour */
.tour-ring { position: fixed; z-index: 300; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.6), 0 0 0 2px var(--accent); pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.2,1); }
.tour-tip { position: fixed; z-index: 301; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.45); transition: left .3s, top .3s; }
.tour-n { font-size: 0.68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.tour-tip b { display: block; font-size: 1rem; margin: 4px 0 6px; }
.tour-tip p { margin: 0; font-size: 0.86rem; color: var(--text-dim); line-height: 1.55; }
.tour-f { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.tour-skip { appearance: none; background: none; border: 0; color: var(--text-faint); font: inherit; font-size: 0.82rem; cursor: pointer; padding: 6px 0; }
.tour-skip:hover { color: var(--text); }

@media (max-width: 860px) { .tour-tip { left: 12px !important; right: 12px; width: auto !important; top: auto !important; bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ===== Sidebar v2 (Oct 2026): icons, active bar, search, progress ring ===== */
:root { --sidebar-w: 248px; }
.sidebar { padding: 14px 12px; gap: 12px; }
.sidebar .brand-logo { padding: 4px 6px 2px; margin: 0; border: 0; }
.sb-search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-faint);
  font: inherit; font-size: 0.82rem; cursor: pointer; flex-shrink: 0; transition: border-color .15s, color .15s; }
.sb-search:hover { border-color: var(--border-2); color: var(--text); }
.sb-search svg { width: 15px; height: 15px; }
.sb-search span { flex: 1; text-align: left; }
.sb-search kbd { font-family: var(--mono); font-size: 0.62rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-2); background: transparent; color: var(--text-faint); }
@media (min-width: 861px) { .qs-trigger { display: none; } }
.sidebar > nav { gap: 2px !important; }
.nav-section-title { font-size: 0.68rem; padding: 14px 10px 6px; color: var(--text-faint); }
.nav-link { height: 38px; padding: 0 10px; gap: 11px; border-radius: 10px; font-size: 0.875rem; overflow: visible; }
.nav-link::before { left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; }
.nav-link:hover::before { transform: scaleY(0); }
.nav-link.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav-link svg { width: 17px; height: 17px; opacity: 1; color: var(--text-faint); }
.nav-link:hover svg { transform: none; color: var(--text-dim); }
.nav-link.active svg { color: var(--accent-2); }
.nav-link .badge-nav { min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 6px; border-radius: 999px; background: #ef4444; font-size: 0.68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-extras { display: none !important; }
.sidebar-foot { align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: var(--text); }
.sidebar-foot:hover { color: var(--text); }
.avatar-ring { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); }
.avatar-ring.on { background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); }
.avatar-ring .avatar { width: 31px; height: 31px; margin: 0; font-size: 0.72rem; background: var(--bg-2); color: var(--text); border: 0; }
[data-theme="light"] .nav-link.active { background: var(--surface-2); }

/* ===== Top right account menu ===== */
.um { position: relative; margin-left: 4px; }
.um-btn { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px 0 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-dim); cursor: pointer; }
.um-btn:hover, .um.open .um-btn { border-color: var(--border-2); color: var(--text); }
.um-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 0.7rem; font-weight: 700; flex: none; }
.um-av.lg { width: 38px; height: 38px; font-size: 0.82rem; }
.um-chev { display: grid; } .um-chev svg { width: 14px; height: 14px; transition: transform .15s; }
.um.open .um-chev svg { transform: rotate(180deg); }
.um-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border-2); box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 200; }
.um-pop[hidden] { display: none; }
.um-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.um-head > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.um-head b { font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-head small { font-size: 0.72rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-pop a, .um-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.84rem; text-decoration: none; cursor: pointer; text-align: left; }
.um-pop a:hover, .um-pop button:hover, .um-pop a.on { background: var(--surface); color: var(--text); }
.um-pop svg { width: 16px; height: 16px; color: var(--text-dim); flex: none; }
.um-pop em { margin-left: auto; font-style: normal; font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; display: grid; place-items: center; }
.um-pop .um-out { border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 11px; }
.um-pop .um-out:hover { color: var(--danger); } .um-pop .um-out:hover svg { color: var(--danger); }
.um-admin { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(239,68,68,.3); background: rgba(239,68,68,.08); color: #fca5a5; font-size: 0.78rem; font-weight: 600; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.um-admin:hover, .um-admin.on { background: rgba(239,68,68,.16); color: #fecaca; }
.um-admin svg { width: 15px; height: 15px; }
[data-theme="light"] .um-admin { color: #b91c1c; }
@media (max-width: 640px) { .um-admin span { display: none; } .um-admin { padding: 0 10px; } }
