/* ==========================================================================
   voltandheat. — Unified Minimalist Dark Design System
   Exact Logo Palette: Obsidian #0e1116 · White #f4f5f7 · Slate #9aa4b2 · Dot #ff6a2b
   ========================================================================== */

@font-face {
  font-family: Mulish;
  src: url('/covers/mulish.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e1116;
  --surface: #141922;
  --surface-2: #1b222e;
  --surface-recessed: #10141b;
  --border: #222a37;
  --border-strong: #323d4f;
  --ink: #f4f5f7;
  --slate: #9aa4b2;
  --muted: #6e7889;
  --accent: #ff6a2b;
  --accent-hover: #ff7f47;
  --accent-soft: rgba(255, 106, 43, 0.14);
  --accent-ring: rgba(255, 106, 43, 0.45);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.13);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --side: 248px;
  --head: 68px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Mulish, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 22px;
  color: var(--ink);
}
h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
p { margin: 0 0 12px; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.good { color: #4ade80; }
.wrong { color: var(--red); }
.passed { color: #4ade80; }

/* Buttons — Refined Tactile Obsidian & VoltandHeat Orange */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #2b3546;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b2230 0%, #141a24 100%);
  color: var(--ink);
  font-weight: 650;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.32);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #222b3c 0%, #19202d 100%);
  border-color: #3d4b63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.btn.primary {
  background: linear-gradient(180deg, #ff7a42 0%, #f45c1c 100%);
  border-color: rgba(255, 138, 87, 0.55);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(255, 106, 43, 0.22);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff8854 0%, #ff6524 100%);
  border-color: rgba(255, 165, 125, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.38), 0 8px 24px rgba(255, 106, 43, 0.34);
  transform: translateY(-1px);
}
.btn.primary:active:not(:disabled) {
  transform: translateY(0);
  background: linear-gradient(180deg, #e85719 0%, #d94d12 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.28);
}
.quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.quiet:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Badges & Notices */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 12px;
  font-weight: 650;
}
.badge.archive {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
}
.points-badge {
  background: var(--accent-soft);
  border-color: rgba(255, 106, 43, 0.3);
  color: #ff8e5c;
}
.points-badge.is-earned {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--slate);
}
.notice.error {
  border-color: rgba(248, 113, 113, 0.38);
  background: var(--red-soft);
  color: #fca5a5;
}
.notice.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: var(--green-soft);
  color: #86efac;
}
.message { margin: 0 0 18px; }
.content-missing { max-width: 600px; }

/* Progress bars */
progress {
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  border: 0;
  background: #202836;
  accent-color: var(--accent);
}
progress::-webkit-progress-bar { background: #202836; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* ==========================================================================
   Login / Auth Screen — Seamless Obsidian Matching Logo
   ========================================================================== */
.auth {
  max-width: 26rem;
  margin: 10vh auto 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.auth-hero {
  background: var(--bg);
  padding: 36px 28px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.auth-brand {
  display: block;
  width: min(210px, 78%);
  height: auto;
}
.auth-body {
  padding: 26px 28px 30px;
}
.auth h1 {
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Forms & Inputs */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.form input:not([type=checkbox]):not([type=radio]),
.form select,
.form textarea,
.admin-filter,
.text-entry {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s;
}
.form input:not([type=checkbox]):not([type=radio]):focus,
.form select:focus,
.form textarea:focus,
.admin-filter:focus,
.text-entry:focus {
  border-color: var(--accent);
}
.form fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.form legend { padding: 0 6px; color: var(--slate); font-size: 13px; font-weight: 650; }
.form .inline, .inline { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; }
.form .grid label { align-content: start; }
.form .muted { font-size: 12px; font-weight: 400; color: var(--muted); }
.form-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 14px 0;
}
.text-entry { min-height: 130px; resize: vertical; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* ==========================================================================
   Site Header & Dashboard Shell
   ========================================================================== */
.site-header {
  height: var(--head);
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-brand, .site-account { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-account { justify-content: flex-end; gap: 10px; }
.menu-toggle, .brand-link { background: none; border: 0; padding: 0; color: var(--slate); }
.menu-toggle {
  font-size: 19px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.menu-toggle:hover { background: var(--surface); color: var(--ink); }
.brand-link { display: flex; align-items: center; max-width: 190px; }
.brand-link img { height: 29px; width: auto; display: block; }

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s;
}
.site-search:focus-within { border-color: var(--accent); }
.site-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.site-search input::placeholder { color: var(--muted); }
.site-search > span { color: var(--muted); font-size: 18px; line-height: 1; }
.profile-name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.points-pill {
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 106, 43, 0.18) 0%, rgba(255, 106, 43, 0.1) 100%);
  border-color: rgba(255, 106, 43, 0.36);
  color: #ff9466;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 180, 145, 0.14);
}
.points-pill:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 106, 43, 0.28) 0%, rgba(255, 106, 43, 0.18) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 43, 0.22);
}

.shell {
  min-height: calc(100vh - var(--head));
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
}
.dashboard-shell > aside {
  background: var(--surface-recessed);
  border-right: 1px solid var(--border);
}
.sticky {
  position: sticky;
  top: var(--head);
  max-height: calc(100vh - var(--head));
  overflow: auto;
}
.dashboard-shell .sticky { padding: 18px 12px; display: grid; gap: 4px; align-content: start; }
.nav, .unit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--slate);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.dashboard-shell .nav {
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}
.dashboard-shell .nav:hover { background: var(--surface); color: var(--ink); }
.dashboard-shell .nav.selected {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 3px 0 var(--accent);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex: none; opacity: 0.85; }
.dashboard-shell .nav.selected .nav-icon { color: var(--accent); opacity: 1; }
.dashboard-shell.collapsed { grid-template-columns: 62px minmax(0, 1fr); }
.dashboard-shell.collapsed .sticky > .nav { padding: 10px; justify-content: center; }
.dashboard-shell.collapsed .nav span:last-child { display: none; }

.dashboard-shell .content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 56px) 72px;
}

/* ==========================================================================
   Minimalist Guided Learning Path (WP -> PV -> Vertrieb -> CRM)
   ========================================================================== */
.path-hero {
  background:
    radial-gradient(ellipse 460px 220px at 95% 0%, rgba(255, 106, 43, 0.11), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px 22px;
  margin: 0 0 36px;
}
.path-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.hero-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.path-hero .academy-heading { margin: 0 0 8px; font-size: clamp(24px, 2.5vw, 30px); }
.hero-sub {
  margin: 0;
  max-width: 40rem;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }

.path-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 246px;
}
.hero-progress-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  display: grid;
  gap: 7px;
}
.hero-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--slate);
}
.hero-progress-top strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-progress-card progress { width: 100%; height: 6px; }
.hero-start {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
}

.path-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.path-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--slate);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.path-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}
.path-pill .pill-step {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.path-pill.is-done .pill-step { background: var(--green); color: #052e16; }
.path-pill small { color: var(--muted); font-variant-numeric: tabular-nums; }

.duo-path { display: grid; gap: 38px; max-width: 820px; margin: 0 auto; }
.duo-section { scroll-margin-top: 86px; }

.duo-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.duo-section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.duo-banner h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.duo-banner p { margin: 0; font-size: 13px; color: var(--slate); }
.duo-banner-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.duo-banner-prog {
  display: grid;
  gap: 6px;
  min-width: 155px;
  font-size: 12px;
  font-weight: 650;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.duo-banner-prog progress { width: 100%; height: 5px; }
.duo-banner-btn {
  background: linear-gradient(180deg, #ff7a42 0%, #f45c1c 100%);
  border-color: rgba(255, 138, 87, 0.55);
  color: #fff;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(255, 106, 43, 0.24);
}
.duo-banner-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff8854 0%, #ff6524 100%);
  border-color: rgba(255, 165, 125, 0.7);
}
.duo-done-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
}

.duo-track {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px 8px 6px;
}
.duo-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 16px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border);
  z-index: 0;
}
.duo-row { position: relative; z-index: 1; display: flex; justify-content: center; }
.duo-row.wave-1 { transform: translateX(-34px); }
.duo-row.wave-3 { transform: translateX(34px); }

.duo-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.16s, background 0.16s, transform 0.14s, box-shadow 0.16s;
}
.duo-node:hover:not(:disabled), .duo-node:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.duo-node.is-current {
  border-color: rgba(255, 106, 43, 0.65);
  background: linear-gradient(135deg, #181e29 0%, #141922 100%);
  box-shadow: 0 0 0 1px rgba(255, 106, 43, 0.2), 0 10px 30px rgba(255, 106, 43, 0.08);
}
.duo-node.is-current:hover:not(:disabled) {
  border-color: var(--accent);
}
.duo-node.is-complete {
  border-color: rgba(34, 197, 94, 0.35);
  background: #121a18;
}
.duo-node.is-locked {
  background: var(--surface-recessed);
  border-color: #1b222e;
  opacity: 0.52;
  cursor: not-allowed;
}
.duo-node.is-locked:hover { transform: none; }

.duo-callout {
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Native accessible <progress> circular ring (Modern Web Guidance) */
.progress-ring-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
}
progress.progress-ring {
  --size: 60px;
  --thickness: 5px;
  --track-color: #232b38;
  --fill-color: var(--accent);
  appearance: none;
  -webkit-appearance: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 0;
  background: conic-gradient(var(--fill-color) calc(var(--value, 0) * 1%), var(--track-color) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness) + 1px));
}
progress.progress-ring::-webkit-progress-bar,
progress.progress-ring::-webkit-progress-value,
progress.progress-ring::-moz-progress-bar { display: none; background: none; }
.duo-node.is-complete progress.progress-ring { --fill-color: var(--green); }

.duo-medallion {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 15px;
  background: var(--surface-2);
  color: var(--slate);
}
.duo-node.is-current .duo-medallion {
  background: var(--accent);
  color: #fff;
}
.duo-node.is-complete .duo-medallion {
  background: var(--green);
  color: #052e16;
}
.duo-node.is-locked .duo-medallion {
  background: #161c26;
  color: var(--muted);
  font-size: 13px;
}

.duo-card { display: grid; gap: 4px; min-width: 0; flex: 1; }
.duo-card-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.duo-step-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.duo-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.chip-test { background: var(--accent-soft); color: #ff8e5c; }
.chip-quiz { background: var(--surface-2); color: var(--slate); border: 1px solid var(--border); }
.duo-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.duo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.duo-pts {
  font-weight: 700;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.duo-node.is-current .duo-pts {
  color: #ff8e5c;
  border-color: rgba(255, 106, 43, 0.35);
  background: var(--accent-soft);
}
.duo-node.is-complete .duo-pts {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
  background: var(--green-soft);
}

/* ==========================================================================
   Catalog & Course Cards
   ========================================================================== */
.catalog-toolbar, .sort-tools { display: flex; align-items: center; gap: 8px; }
.catalog-toolbar { justify-content: space-between; margin: 0 0 24px; }
.sort-tools button, .sort-tools select, .view-picker {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  min-height: 36px;
  padding: 5px 11px;
  font-size: 13px;
}
.view-picker { display: flex; align-items: center; gap: 8px; }
.view-picker select { border: 0; background: transparent; color: var(--ink); }
.catalog-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
.catalog-filters h2 { font-size: 14px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 12px; }
.catalog-filter { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--slate); cursor: pointer; }
.catalog-filter:hover { color: var(--ink); }

.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.academy-grid .card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.14s;
}
.academy-grid .card:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.academy-grid .card.is-locked { opacity: 0.5; cursor: not-allowed; }
.course-cover {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  display: block;
  background: var(--bg);
  overflow: hidden;
}
.course-cover img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.card-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(14, 17, 22, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.card-overlay span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 18px;
}
.card:hover:not(:disabled) .card-overlay { display: flex; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.card-kind { font-size: 12px; color: var(--muted); }
.card-title { font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  margin-top: auto;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--slate);
}
.card-status progress { width: 100%; }
.card-status i {
  font-style: normal;
  background: var(--green);
  color: #052e16;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  font-weight: 800;
}
.academy-grid.academy-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.academy-list .card { flex-direction: row; align-items: center; }
.academy-list .course-cover { width: 120px; flex: none; }
.academy-list .card-body { display: grid; align-items: center; grid-template-columns: 95px minmax(0, 1fr) 120px; gap: 12px; }
.academy-list .card-status { margin: 0; }
.path-heading { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.path-heading img { width: min(170px, 30vw); aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.path-heading div { display: grid; gap: 6px; }
.path-heading h1 { margin: 0; }

/* ==========================================================================
   Lesson View — Video, PDF, Quiz, Assignment & Top-Right Timer
   ========================================================================== */
.lesson-shell { --side: min(350px, 30vw); min-height: 100vh; }
.lesson-shell > aside { background: var(--surface-recessed); border-right: 1px solid var(--border); }
.lesson-shell .sticky { top: 0; max-height: 100vh; }
.lesson-shell.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.lesson-shell.collapsed aside { display: none; }

.course-menu {
  height: 62px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.course-menu .menu-toggle { background: var(--surface); color: var(--ink); }
.course-menu .menu-toggle:hover { background: var(--surface-2); }

.courseAside { padding: 14px 16px 16px; border-bottom: 1px solid var(--border); }
.courseAside h2 { margin: 10px 0 10px; font-size: 16px; line-height: 1.35; }
.study-state {
  display: inline-block;
  padding: 3px 9px;
  margin: 0 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--slate);
}
.lesson-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.lesson-progress progress { width: 100%; height: 5px; }

.lesson-shell .unit, .lesson-shell .nav {
  min-height: 58px;
  padding: 11px 15px;
  font-size: 13.5px;
  color: var(--slate);
  border-bottom: 1px solid rgba(34, 42, 55, 0.55);
}
.lesson-shell .unit:hover:not(:disabled), .lesson-shell .nav:hover {
  background: var(--surface);
  color: var(--ink);
}
.lesson-shell .unit.selected {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 3px 0 var(--accent);
}
.lesson-shell .unit.is-locked { opacity: 0.45; cursor: not-allowed; }
.lesson-shell .tick {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.lesson-shell .tick.is-complete {
  background: var(--green);
  border-color: var(--green);
  color: #052e16;
  font-weight: 800;
}
.unit-label { display: grid; gap: 2px; min-width: 0; flex: 1; }
.unit-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.unit-sub { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.top {
  min-height: 62px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.top .actions { margin: 0; }
.lesson-top > span { display: flex; align-items: center; gap: 8px; }
.lesson-top-right { display: flex; align-items: center; gap: 10px; }

.timeout {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 8px;
}
.video-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 750;
  padding: 7px 13px;
  border-radius: 9px;
}
.video-timer.is-playing {
  background: var(--accent-soft);
  border-color: rgba(255, 106, 43, 0.5);
  color: #ff9466;
}
.video-timer.is-paused {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--slate);
}
.video-timer.is-done {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.lesson-shell .content { max-width: 980px; margin: 0 auto; padding: 32px 28px 68px; }
.unit-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.player {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.player-frame-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.player-frame { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.player-frame-wrap iframe, .player-frame-wrap #yt-player-host { width: 100%; height: 100%; border: 0; }
.video-study-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
.lesson-done-banner {
  font-weight: 700;
  font-size: 14px;
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 10px 15px;
  border-radius: 10px;
  width: fit-content;
}

/* PDF & Text Content */
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.doc-frame {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1a202c;
}
.lesson-text {
  max-width: 48rem;
  font-size: 15.5px;
  line-height: 1.7;
  color: #dce1ea;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.lesson-text p:last-child { margin-bottom: 0; }

/* Quiz & Survey */
.quiz-intro { margin: 0 0 14px; }
.question {
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.question legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.choice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #dce1ea;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.choice:hover { background: var(--surface-2); border-color: var(--border); }
.choice.good { background: var(--green-soft); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.choice.wrong { background: var(--red-soft); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.result {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  margin: 14px 0 22px;
}
.score { font-weight: 800; font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Statistics & Administration
   ========================================================================== */
.admin-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
}
.admin-tabs .btn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 7px 14px;
  border-radius: 8px;
}
.admin-tabs .btn:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}
.admin-tabs .btn.primary {
  background: linear-gradient(180deg, #ff7a42 0%, #f45c1c 100%);
  border-color: rgba(255, 138, 87, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 8px rgba(255, 106, 43, 0.25);
}
.admin-list { display: grid; gap: 8px; margin: 14px 0; }
.admin-list article, .admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.admin-row select {
  max-width: 15rem;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.admin-section {
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 16px;
  background: var(--surface);
}
.admin-section summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.admin-unit { margin: 10px 0; }
.admin-unit form { margin-top: 10px; display: grid; gap: 8px; }
.medialine { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin: 12px 0 22px;
}
.stat-metric, .stat-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
}
.stat-metric { display: flex; flex-direction: column; gap: 8px; }
.stat-metric span { font-size: 12.5px; color: var(--slate); }
.stat-metric strong {
  font-size: clamp(21px, 3vw, 27px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.stat-panel { margin: 12px 0; }
.stat-panel summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.stat-list { list-style: none; padding: 0; margin: 10px 0 0; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--slate);
}
.stat-list li:last-child { border-bottom: 0; }
.stat-list li strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.course-progress li { display: grid; gap: 6px; }
.course-progress li div { display: flex; justify-content: space-between; gap: 12px; }
.course-progress progress { width: 100%; }

.stats-scroll { overflow: auto; }
.stats-table { border-collapse: collapse; width: 100%; margin: 12px 0 0; font-size: 13.5px; }
.stats-table th, .stats-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.stats-table th {
  background: var(--bg);
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ==========================================================================
   Accessibility & Responsive
   ========================================================================== */
@media (forced-colors: active) {
  progress.progress-ring { forced-color-adjust: none; --fill-color: Highlight; --track-color: CanvasText; }
}
@media (max-width: 1120px) {
  .academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --side: 196px; }
  .profile-name { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
  .catalog-filters h2 { flex-basis: 100%; }
  .lesson-shell { --side: min(275px, 38vw); }
}
@media (max-width: 680px) {
  :root { --head: 58px; --side: 58px; }
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 12px; gap: 10px; }
  .brand-link img { height: 22px; }
  .dashboard-shell .sticky { padding: 10px 6px; }
  .dashboard-shell .nav { padding: 10px; justify-content: center; }
  .dashboard-shell .nav span:last-child { display: none; }
  .dashboard-shell .content { padding: 20px 14px 48px; }
  .path-hero { padding: 20px 16px; }
  .duo-row.wave-1, .duo-row.wave-3 { transform: none; }
  .duo-track::before { left: 42px; }
  .duo-node { padding: 12px 14px; }
  .academy-grid { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 8px 12px; flex-wrap: wrap; }
  .lesson-shell .content { padding: 20px 14px 48px; }
  .auth { margin: 24px 14px; }
}

/* ==========================================================================
   Welcome Polish, Header Icon Buttons, Leiter-Chat & Settings
   ========================================================================== */
.vh-dot { color: var(--accent); }
.hero-points-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-points-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--slate);
}
.hero-points-strip strong { color: var(--ink); font-weight: 750; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #283142;
  background: linear-gradient(180deg, #19202c 0%, #131822 100%);
  color: var(--slate);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.12s;
}
.icon-btn:hover {
  background: linear-gradient(180deg, #212a3a 0%, #181f2c 100%);
  color: var(--ink);
  border-color: #3a475e;
  transform: translateY(-1px);
}
.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}
.icon-btn .unread-badge { margin-left: 2px; }

.course-menu .brand-link img { height: 24px; }

/* Leiter-Chat */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 420px;
}
.chat-box-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 4px 2px;
}
.chat-empty { padding: 32px 12px; text-align: center; }
.chat-msg {
  max-width: min(560px, 88%);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.chat-msg.is-mine {
  align-self: flex-end;
  background: #1a2230;
  border-color: rgba(255, 106, 43, 0.35);
}
.chat-msg.is-other { align-self: flex-start; }
.chat-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.chat-msg-head strong { color: var(--ink); font-weight: 700; }
.chat-context {
  font-size: 12px;
  color: #ff9466;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  display: inline-block;
}
.chat-msg p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }

.chat-composer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.chat-ctx-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 43, 0.3);
  font-size: 12.5px;
  color: #ff9466;
}
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 46px;
}
.chat-input-row textarea:focus { border-color: var(--accent); outline: none; }

.admin-chat-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.admin-chat-list { display: grid; gap: 6px; }
.chat-thread-item {
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  gap: 4px;
}
.chat-thread-item:hover { background: var(--surface-2); border-color: var(--border-strong); }
.chat-thread-item.selected { border-color: var(--accent); background: var(--surface-2); }
.chat-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.level-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.stat-panel progress { width: 100%; }

@media (max-width: 760px) {
  .admin-chat-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Decluttered Path Hero, Avatars & Teams Management
   ========================================================================== */
.path-hero-clean {
  padding: 20px 24px 16px;
  margin: 0 0 28px;
}
.path-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.path-hero-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.path-hero-clean .academy-heading {
  margin: 0 0 5px;
  font-size: clamp(21px, 2.2vw, 26px);
}
.hero-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.path-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-mini-prog {
  width: 120px;
  height: 6px;
}
.path-hero-clean .path-jump {
  margin-top: 16px;
  padding-top: 14px;
}

/* Avatars */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}
.avatar-init {
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(135deg, #1d2533, #141922);
  border-color: rgba(255, 106, 43, 0.35);
}
.avatar-xs { width: 26px; height: 26px; font-size: 11px; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-md { width: 46px; height: 46px; font-size: 16px; }
.avatar-lg { width: 76px; height: 76px; font-size: 24px; }

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--ink);
}
.profile-chip:hover { background: var(--surface); }

.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.avatar-upload-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.avatar-upload-controls label.btn { cursor: pointer; margin: 0; }

/* Teams Management */
.teams-list { display: grid; gap: 16px; margin-top: 12px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.team-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.team-card-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.team-members { display: grid; gap: 8px; margin-top: 14px; }
.team-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.member-id, .member-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.team-assign-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
}
.team-assign-form label { font-size: 12.5px; color: var(--slate); font-weight: 600; }
.team-assign-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  min-width: 240px;
}
.danger-btn {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.12) 0%, rgba(248, 113, 113, 0.06) 100%);
}
.danger-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.22) 0%, rgba(248, 113, 113, 0.14) 100%);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff;
}

/* ==========================================================================
   Unified Crisp SVG Icon System & Refined Sidebar / Header Navigation Buttons
   ========================================================================== */
.ic {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 15px; height: 15px; stroke-width: 2; }
.ic-fill { fill: currentColor; stroke: none; }
.inline-meta { display: inline-flex; align-items: center; gap: 5px; }
.duo-done-pill { display: inline-flex; align-items: center; gap: 6px; }
.back-link { padding-left: 4px; }

/* Header Controls */
.site-brand .menu-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
}
.site-search > span { display: inline-flex; align-items: center; color: var(--muted); }
.icon-btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 106, 43, 0.45);
  color: #ff9466;
}
.logout-btn {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}
.profile-chip {
  height: 36px;
  padding: 0 11px 0 5px;
  border: 1px solid #262f3f;
  background: linear-gradient(180deg, #181f2b 0%, #131822 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.14s, border-color 0.14s, transform 0.12s;
}
.profile-chip:hover, .profile-chip.is-active {
  background: linear-gradient(180deg, #202938 0%, #171e2b 100%);
  border-color: #3a475e;
}

/* Left Sidebar Navigation Buttons */
.dashboard-shell .sticky { padding: 18px 14px; gap: 6px; }
.dashboard-shell .nav {
  position: relative;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 650;
  color: #a6b0bf;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.dashboard-shell .nav:hover {
  background: linear-gradient(180deg, #1a212e 0%, #151b26 100%);
  border-color: #263042;
  color: var(--ink);
}
.dashboard-shell .nav.selected {
  background: linear-gradient(180deg, #1e2636 0%, #171e2b 100%);
  border-color: rgba(255, 106, 43, 0.35);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.28);
}
.dashboard-shell .nav.selected::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.dashboard-shell .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #8f9bad;
  transition: background 0.15s, color 0.15s;
}
.dashboard-shell .nav:hover .nav-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.dashboard-shell .nav.selected .nav-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.dashboard-shell.collapsed .nav { padding: 8px; justify-content: center; }
.dashboard-shell.collapsed .nav .nav-label,
.dashboard-shell.collapsed .nav .unread-badge { display: none; }

@media (max-width: 860px) {
  .logout-btn span { display: none; }
  .logout-btn { padding: 0 9px; }
}
