/* ═══════════════════════════════════════════════
   OFENSYWA MIESIECZNA — OFFLINE KNOWLEDGE BASE
   Styl wizualny: Inner War Saga
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Norse';
  src: url('font/Norsebold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Norse';
  src: url('font/Norse.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --bg-4: #242424;
  --bg-hover: #282828;

  --border: #2a2a2a;
  --border-hi: #3c3c3c;

  --text: #e4e2de;
  --text-2: #b0b0b6;
  --text-3: #8a8a92;

  --accent: #EC0C0C;
  --accent-dim: #AD0505;
  --accent-bg: rgba(236,12,12,.10);

  /* Legacy aliases — mapped to accent */
  --gold: var(--accent);
  --gold-dim: var(--accent-dim);
  --gold-bg: var(--accent-bg);

  --green: #4caf7c;
  --red: #cf5c5c;
  --blue: #5c8ccf;

  /* Category colors (pastel) */
  --cat-mindset: #7ecf9a;
  --cat-mindset-bg: rgba(126,207,154,.14);
  --cat-mindset-border: rgba(126,207,154,.30);
  --cat-relacje: #e091b0;
  --cat-relacje-bg: rgba(224,145,176,.14);
  --cat-relacje-border: rgba(224,145,176,.30);
  --cat-cialo: #7eb5e0;
  --cat-cialo-bg: rgba(126,181,224,.14);
  --cat-cialo-border: rgba(126,181,224,.30);
  --cat-finanse: #e0c56e;
  --cat-finanse-bg: rgba(224,197,110,.14);
  --cat-finanse-border: rgba(224,197,110,.30);
  --cat-ogolne: #a6a6b0;
  --cat-ogolne-bg: rgba(166,166,176,.12);
  --cat-ogolne-border: rgba(166,166,176,.25);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 50px;

  --font: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Norse', 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Code', 'Fira Code', Consolas, monospace;

  --sidebar-w: 300px;
  --ease: .22s cubic-bezier(.4,0,.2,1);

  --sidebar-overlay: rgba(10,10,10,.33);
  --home-gradient: linear-gradient(to bottom, rgba(10,10,10,.3) 0%, rgba(10,10,10,.6) 35%, rgba(10,10,10,.85) 100%);
  --flashcard-bg: rgba(0,0,0,.92);
  --shadow-sidebar: 8px 0 40px rgba(0,0,0,.6);
  --video-shadow: 0 4px 32px rgba(0,0,0,.5);
}

/* ═══════ LIGHT THEME ═══════ */

[data-theme="light"] {
  --bg-0: #f5f4f1;
  --bg-1: #eae8e4;
  --bg-2: #ffffff;
  --bg-3: #f0efec;
  --bg-4: #e5e3df;
  --bg-hover: #dddbd6;

  --border: #d4d2cd;
  --border-hi: #bbb9b3;

  --text: #1a1a1c;
  --text-2: #4a4a50;
  --text-3: #7a7a82;

  --accent: #c20a0a;
  --accent-dim: #8a0505;
  --accent-bg: rgba(194,10,10,.08);

  --gold: var(--accent);
  --gold-dim: var(--accent-dim);
  --gold-bg: var(--accent-bg);

  /* Category colors — darker for legibility on light bg */
  --cat-mindset: #2e8b4e;
  --cat-mindset-bg: rgba(46,139,78,.08);
  --cat-mindset-border: rgba(46,139,78,.25);
  --cat-relacje: #b0486e;
  --cat-relacje-bg: rgba(176,72,110,.08);
  --cat-relacje-border: rgba(176,72,110,.25);
  --cat-cialo: #3a7cb8;
  --cat-cialo-bg: rgba(58,124,184,.08);
  --cat-cialo-border: rgba(58,124,184,.25);
  --cat-finanse: #a08820;
  --cat-finanse-bg: rgba(160,136,32,.08);
  --cat-finanse-border: rgba(160,136,32,.25);
  --cat-ogolne: #6e6e78;
  --cat-ogolne-bg: rgba(110,110,120,.08);
  --cat-ogolne-border: rgba(110,110,120,.20);

  --sidebar-overlay: rgba(255,255,255,.55);
  --home-gradient: linear-gradient(to bottom, rgba(245,244,241,.3) 0%, rgba(245,244,241,.75) 35%, rgba(245,244,241,.95) 100%);
  --flashcard-bg: rgba(255,255,255,.96);
  --shadow-sidebar: 8px 0 40px rgba(0,0,0,.12);
  --video-shadow: 0 4px 32px rgba(0,0,0,.12);
}

/* Light theme: sidebar */
[data-theme="light"] .sidebar {
  background-image: url('images/gfx_dark-gray.png');
  background-position: center bottom;
  background-size: cover;
}
[data-theme="light"] .sidebar::before {
  background: rgba(234,232,228,.82);
}

/* Light theme: home background */
[data-theme="light"] .content.home-bg {
  background-image: url('images/gfx_dark-gray.png');
  background-position: center top;
  background-size: cover;
}
[data-theme="light"] .content.home-bg::before {
  display: block;
  background: linear-gradient(to bottom, rgba(245,244,241,.4) 0%, rgba(245,244,241,.8) 30%, rgba(245,244,241,.97) 100%);
}

/* Light theme: invert logo */
[data-theme="light"] .sidebar-logo { content: url('images/gfx_logo_iws_big_black.png'); }
[data-theme="light"] .hero-logo { content: url('images/gfx_logo_iws_big_black.png'); }
[data-theme="light"] .sidebar-logo,
[data-theme="light"] .hero-logo { opacity: 1; }

/* Light theme: scrollbar */
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

/* Light theme: flashcard text */
[data-theme="light"] .flashcard-text { color: var(--accent); }
[data-theme="light"] .flashcard-overlay { background: var(--flashcard-bg); }

/* Light theme: video */
[data-theme="light"] .video-wrapper { box-shadow: var(--video-shadow); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* PWA standalone mode — safe areas for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}
@media all and (display-mode: standalone) {
  .topbar { padding-top: max(12px, env(safe-area-inset-top, 12px)); }
}

/* ═══════ SKIP LINK (WCAG 2.4.1) ═══════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  height: 100vh;
  overflow: hidden;
  font-weight: 400;
}
[data-theme="light"] body { color-scheme: light; }

button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════ FOCUS STYLES (WCAG 2.4.7) ═══════ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.nav-item:focus-visible {
  background: var(--accent-bg);
  color: var(--accent);
}
.foot-btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
.transcript-toggle:focus-visible {
  background: var(--bg-3);
  color: var(--text);
}
video:focus-visible, audio:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ═══════ REDUCED MOTION (WCAG 2.3.3) ═══════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

/* ═══════ LAYOUT ═══════ */

.layout {
  display: flex;
  height: 100vh;
}

/* ═══════ SIDEBAR ═══════ */

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: url('images/bg_hero.jpg') center / cover no-repeat;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--ease);
  position: relative;
  z-index: 50;
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sidebar-overlay);
  pointer-events: none;
  z-index: 0;
}
.sidebar-head, .sidebar-scroll, .sidebar-legend, .sidebar-foot {
  position: relative;
  z-index: 1;
}

.sidebar-head {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-head .icon { font-size: 22px; }
.sidebar-logo { width: 32px; height: auto; opacity: .85; flex-shrink: 0; }
.sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.sidebar-home-link:hover { text-decoration: none; }
.sidebar-home-link:hover .title { color: var(--accent); }
.sidebar-head .title { font-size: 17px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; flex: 1; font-family: var(--font-heading); line-height: 1.2; }
.sidebar-head .subtitle { font-size: 10px; color: var(--text-3); display: block; font-weight: 400; letter-spacing: .3px; margin-top: 1px; }
.btn-close-sb { display: none; font-size: 18px; color: var(--text-3); }
.btn-close-sb:hover { color: var(--text); }

/* Nav sections */
.nav-section { padding: 12px 12px 4px; }
.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  padding: 0 8px 6px;
}
.nav-list { list-style: none; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--ease);
  text-align: left;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
.nav-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dim);
  width: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.nav-item.active .nav-num { color: var(--accent); }

/* Category-colored nav items */
.nav-item.cat-mindset .nav-num { color: var(--cat-mindset); }
.nav-item.cat-relacje .nav-num { color: var(--cat-relacje); }
.nav-item.cat-cialo .nav-num { color: var(--cat-cialo); }
.nav-item.cat-finanse .nav-num { color: var(--cat-finanse); }
.nav-item.cat-ogolne .nav-num { color: var(--cat-ogolne); }

.nav-item.cat-mindset { border-left: 3px solid var(--cat-mindset-border); }
.nav-item.cat-relacje { border-left: 3px solid var(--cat-relacje-border); }
.nav-item.cat-cialo { border-left: 3px solid var(--cat-cialo-border); }
.nav-item.cat-finanse { border-left: 3px solid var(--cat-finanse-border); }
.nav-item.cat-ogolne { border-left: 3px solid var(--cat-ogolne-border); }

.nav-item.cat-mindset:hover, .nav-item.cat-mindset.active { background: var(--cat-mindset-bg); color: var(--cat-mindset); }
.nav-item.cat-relacje:hover, .nav-item.cat-relacje.active { background: var(--cat-relacje-bg); color: var(--cat-relacje); }
.nav-item.cat-cialo:hover, .nav-item.cat-cialo.active { background: var(--cat-cialo-bg); color: var(--cat-cialo); }
.nav-item.cat-finanse:hover, .nav-item.cat-finanse.active { background: var(--cat-finanse-bg); color: var(--cat-finanse); }
.nav-item.cat-ogolne:hover, .nav-item.cat-ogolne.active { background: var(--cat-ogolne-bg); color: var(--cat-ogolne); }

.nav-item.cat-mindset.active .nav-num { color: var(--cat-mindset); }
.nav-item.cat-relacje.active .nav-num { color: var(--cat-relacje); }
.nav-item.cat-cialo.active .nav-num { color: var(--cat-cialo); }
.nav-item.cat-finanse.active .nav-num { color: var(--cat-finanse); }
.nav-item.cat-ogolne.active .nav-num { color: var(--cat-ogolne); }

/* Category badge in day header */
.day-cat-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}
.day-cat-badge.badge-mindset { background: var(--cat-mindset-bg); color: var(--cat-mindset); border: 1px solid var(--cat-mindset-border); }
.day-cat-badge.badge-relacje { background: var(--cat-relacje-bg); color: var(--cat-relacje); border: 1px solid var(--cat-relacje-border); }
.day-cat-badge.badge-cialo { background: var(--cat-cialo-bg); color: var(--cat-cialo); border: 1px solid var(--cat-cialo-border); }
.day-cat-badge.badge-finanse { background: var(--cat-finanse-bg); color: var(--cat-finanse); border: 1px solid var(--cat-finanse-border); }
.day-cat-badge.badge-ogolne { background: var(--cat-ogolne-bg); color: var(--cat-ogolne); border: 1px solid var(--cat-ogolne-border); }

/* Day header colored accent line */
.day-header[data-cat="mindset"] { border-bottom-color: var(--cat-mindset-border); }
.day-header[data-cat="relacje"] { border-bottom-color: var(--cat-relacje-border); }
.day-header[data-cat="cialo"] { border-bottom-color: var(--cat-cialo-border); }
.day-header[data-cat="finanse"] { border-bottom-color: var(--cat-finanse-border); }
.day-header[data-cat="ogolne"] { border-bottom-color: var(--cat-ogolne-border); }

.day-header[data-cat="mindset"] .day-num { color: var(--cat-mindset); }
.day-header[data-cat="relacje"] .day-num { color: var(--cat-relacje); }
.day-header[data-cat="cialo"] .day-num { color: var(--cat-cialo); }
.day-header[data-cat="finanse"] .day-num { color: var(--cat-finanse); }
.day-header[data-cat="ogolne"] .day-num { color: var(--cat-ogolne); }

/* Quick cards colored border-left */
.quick-card[data-cat="mindset"] { border-left: 3px solid var(--cat-mindset-border); }
.quick-card[data-cat="relacje"] { border-left: 3px solid var(--cat-relacje-border); }
.quick-card[data-cat="cialo"] { border-left: 3px solid var(--cat-cialo-border); }
.quick-card[data-cat="finanse"] { border-left: 3px solid var(--cat-finanse-border); }
.quick-card[data-cat="ogolne"] { border-left: 3px solid var(--cat-ogolne-border); }

.quick-card[data-cat="mindset"]:hover { background: var(--cat-mindset-bg); }
.quick-card[data-cat="relacje"]:hover { background: var(--cat-relacje-bg); }
.quick-card[data-cat="cialo"]:hover { background: var(--cat-cialo-bg); }
.quick-card[data-cat="finanse"]:hover { background: var(--cat-finanse-bg); }
.quick-card[data-cat="ogolne"]:hover { background: var(--cat-ogolne-bg); }

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}

/* Category legend */
.sidebar-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-mindset { background: var(--cat-mindset); }
.dot-relacje { background: var(--cat-relacje); }
.dot-cialo   { background: var(--cat-cialo); }
.dot-finanse { background: var(--cat-finanse); }
.dot-ogolne  { background: var(--cat-ogolne); }

/* Quick links at bottom */
.sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}
.foot-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  transition: var(--ease);
  color: var(--text-3);
}
.foot-btn:hover { background: var(--bg-hover); color: var(--text-2); }
.foot-btn.active { background: var(--accent-bg); border-color: var(--accent-dim); color: var(--accent); }

/* ═══════ MAIN CONTENT ═══════ */

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

/* Header bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  min-height: 52px;
}
.btn-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.btn-hamburger span { display: block; width: 18px; height: 2px; background: var(--text-2); border-radius: 1px; }

/* Topbar history nav (back/forward) */
.topbar-nav {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.topbar-nav-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  border: 1px solid transparent;
  transition: var(--ease);
  background: transparent;
}
.topbar-nav-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border);
}
.topbar-nav-btn:active:not(:disabled) {
  background: var(--accent-bg);
  color: var(--accent);
  transform: scale(.96);
}
.topbar-nav-btn:disabled {
  opacity: .28;
  cursor: not-allowed;
}
.topbar-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar-title { font-size: 14px; font-weight: 700; flex: 1; font-family: var(--font-heading); letter-spacing: .3px; text-transform: uppercase; }
.topbar-day {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 1px solid;
}
.topbar-day--mindset  { color: var(--cat-mindset);  border-color: var(--cat-mindset-border);  background: var(--cat-mindset-bg); }
.topbar-day--relacje  { color: var(--cat-relacje);  border-color: var(--cat-relacje-border);  background: var(--cat-relacje-bg); }
.topbar-day--cialo    { color: var(--cat-cialo);    border-color: var(--cat-cialo-border);    background: var(--cat-cialo-bg); }
.topbar-day--finanse  { color: var(--cat-finanse);  border-color: var(--cat-finanse-border);  background: var(--cat-finanse-bg); }
.topbar-day--ogolne   { color: var(--cat-ogolne);   border-color: var(--cat-ogolne-border);   background: var(--cat-ogolne-bg); }

/* Content scroll area */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 60px;
}
.content.home-active {
  overflow: hidden;
  padding: 16px 24px 0;
}
.content-inner {
  max-width: 760px;
  margin: 0 auto;
}
.content.home-active .content-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* When a wide panel (Q&A) is active, relax the content constraint */
.content-inner:has(.panel-wide.active) {
  max-width: 1200px;
}

/* ═══════ PANELS (special pages) ═══════ */

/* Welcome / home */
.panel { display: none; animation: fadeUp .2s ease; }
.panel.active { display: block; }

/* Home panel fills viewport */
#panel-home.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home hero */
/* Home background — applied to .content so it spans full width */
.content.home-bg {
  background: url('images/hero-main-2.webp') center top / cover no-repeat;
  background-attachment: scroll;
  position: relative;
}
.content.home-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--home-gradient);
  pointer-events: none;
  z-index: 0;
}
.content.home-bg > .content-inner { position: relative; z-index: 1; }

.hero {
  text-align: center;
  padding: 48px 0 40px;
}
.hero-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.hero-logo { width: 120px; height: auto; opacity: .85; }
.hero h1 { font-size: 56px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font-heading); }
.hero p { color: var(--text-2); font-size: 14px; max-width: 420px; margin: 0 auto; }

/* (home-mantra and stats-row removed — replaced by mantra bar + dashboard tabs) */

/* Quick start grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.quick-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-align: left;
  transition: var(--ease);
}
.quick-card:hover { border-color: var(--border-hi); background: var(--bg-3); }
.quick-card .qc-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.quick-card .day-cat-badge { font-size: 12px; padding: 3px 10px; }
.quick-card .qc-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ═══════ BÓJ CARDS (Day 1) ═══════ */

.boj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.boj-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--ease);
}
.boj-card:hover { border-color: var(--border-hi); background: var(--bg-3); }
.boj-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  opacity: .9;
}
.boj-label {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}
.boj-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .boj-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .boj-icon { width: 36px; height: 36px; }
}

/* ═══════ DAY CONTENT ═══════ */

.day-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.day-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.day-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  line-height: 1.1;
}
.day-subtitle {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Audio player */
.audio-player {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.audio-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.audio-label .ico { color: var(--accent); }
.audio-player audio {
  flex: 1;
  height: 36px;
  min-width: 0;
}
.audio-player audio::-webkit-media-controls-panel {
  background: var(--bg-3);
  border-radius: var(--r-sm);
}

/* ═══════ FIXED VIDEO SIDEBAR ═══════ */

.video-sidebar {
  position: fixed;
  right: 24px;
  top: 52px; /* below topbar */
  bottom: 0;
  /* width driven by video-wrapper */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  z-index: 40;
  pointer-events: none;
}
.video-sidebar.visible {
  display: flex;
}
.video-sidebar-inner {
  pointer-events: auto;
}
.video-player-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.video-player-label .ico { color: var(--accent); }
.video-wrapper {
  /* Height = viewport minus topbar minus padding, width follows 9:16 */
  height: calc(100vh - 52px - 80px);
  max-height: 800px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--video-shadow);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Push main content when video sidebar is visible */
.main.has-video-sidebar {
  /* padding = video width + gap; video width ≈ (100vh - 132px) * 9/16 */
  padding-right: calc((100vh - 132px) * 9 / 16 + 56px);
}
.main.has-video-sidebar .content-inner {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .video-sidebar {
    display: none !important;
  }
  .main.has-video-sidebar {
    padding-right: 0;
  }
  /* Fallback: show inline video on mobile */
  .day-video-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
  }
  .day-video-inline .video-wrapper {
    max-width: 260px;
  }
}
@media (min-width: 901px) {
  .day-video-inline { display: none; }
}

/* Section blocks */
.section {
  margin-bottom: 32px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section p, .section li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.section ul, .section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.section li { margin-bottom: 6px; }
.section strong { color: var(--text); font-weight: 600; }

/* Highlight box */
.highlight {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight p {
  color: var(--text) !important;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 0;
}
.highlight .hl-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
  font-style: normal;
}

/* Info box */
.info-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 16px 0;
}
.info-box p { color: var(--text-2); margin-bottom: 0; }

/* Steps (numbered) */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-hi);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 13px;
}
.tbl th, .tbl td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tbl th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  background: var(--bg-2);
}
.tbl td { color: var(--text-2); }
.tbl tr:hover td { background: var(--bg-2); }

/* Task card */
.task-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.task-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.task-card p { margin-bottom: 0; font-size: 13px; }

/* ═══════ MANTRAS PAGE ═══════ */

.mantras-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mantra-card-big {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.mantra-card-big {
  border-left: 4px solid var(--accent);
}
.mantra-card-big .mc-quote-ico {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: .12;
  pointer-events: none;
}
.mantra-card-big .mc-text {
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  position: relative;
}
.mantra-card-big .mc-source {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 10px;
  font-style: normal;
  position: relative;
}

/* ═══════ TOOLS PAGE ═══════ */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--ease);
  cursor: default;
}
.tool-row:hover { border-color: var(--border-hi); }
.tool-row .tr-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  text-align: center;
}
.tool-row .tr-text { font-size: 13px; color: var(--text-2); flex: 1; }
.tool-row--linked:hover { border-color: var(--accent-dim); background: var(--accent-bg); }
.tr-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════ WEEK PAGE ═══════ */

.week-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.week-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--ease);
}
.week-row.today {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.week-row .wr-day { font-size: 14px; font-weight: 600; width: 120px; flex-shrink: 0; }
.week-row .wr-topic { font-size: 13px; color: var(--text-2); }
.week-row.today .wr-day { color: var(--accent); }
.week-row.today .wr-topic { color: var(--accent); opacity: .8; }

/* ═══════ TRANSCRIPT ═══════ */

.transcript-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--ease);
  margin-bottom: 4px;
}
.transcript-toggle:hover { background: var(--bg-3); color: var(--text); }
.transcript-toggle .arrow {
  display: inline-block;
  transition: transform .25s ease;
  font-size: 11px;
  margin-left: auto;
  color: var(--text-3);
}
.transcript-toggle.open .arrow { transform: rotate(90deg); }

.transcript-body {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 24px 22px;
  margin-top: -4px;
  margin-bottom: 32px;
}
.transcript-body.open { display: block; animation: fadeUp .3s ease; }

.transcript-body h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
}
.transcript-body h3:first-child { margin-top: 0; }
.transcript-cat-icon { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 4px; }

.transcript-body p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.transcript-body p:last-child { margin-bottom: 0; }

.transcript-body .t-highlight {
  background: var(--bg-3);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin: 14px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.transcript-body .t-highlight p {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0;
}

/* ═══════ DAY TABS ═══════ */

.day-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.day-tab {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--ease);
}
.day-tab:hover {
  color: var(--text-2);
}
.day-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Intro tabs — prominent variant */
.intro-tabs {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 4px 4px 0;
  gap: 6px;
  margin-top: 8px;
}
.intro-tabs .day-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  letter-spacing: 1.2px;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.intro-tabs .day-tab svg {
  flex-shrink: 0;
  opacity: .6;
}
.intro-tabs .day-tab.active svg {
  opacity: 1;
  stroke: var(--accent);
}
.intro-tabs .day-tab:not(.active):hover {
  background: var(--bg-3);
}

.day-tab-body {
  display: none;
  animation: fadeUp .3s ease;
}
.day-tab-body.active {
  display: block;
}

/* ═══════ WIZARD STEPPER ═══════ */

.wiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 6px;
}
.wiz-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
  flex-shrink: 0;
}
.wiz-dot-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.wiz-dot.active {
  border-color: var(--accent);
  background: var(--accent);
}
.wiz-dot.active .wiz-dot-num { color: #fff; }
.wiz-dot.done {
  border-color: var(--accent-dim);
  background: var(--accent-bg);
}
.wiz-dot.done .wiz-dot-num { color: var(--accent); }
.wiz-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 48px;
}
.wiz-bar {
  height: 3px;
  background: var(--bg-4);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.wiz-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .35s ease;
}

/* Step panels */
.wiz-step { display: none; animation: fadeUp .3s ease; }
.wiz-step.active { display: block; }
.wiz-step-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Step navigation */
.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.wiz-step-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ═══════ DAY 2 — BÓJ SELECTOR & TIMER ═══════ */

.d2-boj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.d2-boj-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--ease);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.d2-boj-card:hover { border-color: var(--border-hi); background: var(--bg-3); }
.d2-boj-card.active {
  border-color: var(--accent-dim);
  background: var(--accent-bg);
  color: var(--accent);
}
.d2-boj-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Timer */
.d2-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}
.d2-timer-ring {
  position: relative;
  width: 160px;
  height: 160px;
}
.d2-timer-ring svg {
  width: 100%;
  height: 100%;
}
.d2-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .d2-boj-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════ DAY 5 — CHECKLIST & SCHEDULE ═══════ */

.d5-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.d5-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--ease);
}
.d5-check:hover { border-color: var(--border-hi); }
.d5-check:has(input:checked) {
  border-color: var(--accent-dim);
  background: var(--accent-bg);
  color: var(--text);
}
.d5-check input[type=checkbox] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.d5-schedule {
  margin: 16px 0 20px;
}
.d5-schedule-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cat-cialo);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
}
.d5-sched-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.d5-sched-row + .d5-sched-row { border-top: 1px solid var(--border); }
.d5-sched-label {
  font-size: 13px;
  color: var(--text-2);
}
.d5-sched-time {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cat-cialo);
}

/* ═══════ DAY 6 — FILAR CARDS ═══════ */

.d6-filar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.d6-filar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.d6-filar-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cat-finanse);
  min-width: 32px;
}

/* ═══════ DAY 7 — PROGRESSION AREAS ═══════ */

.d7-area {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.d7-area-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.d7-result-area {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.d7-result-area-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ═══════ DAY 8 — COMPLAINTS & ADAPTATIONS ═══════ */

.d8-complaint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 6px;
}
.d8-complaint-text { flex: 1; font-size: 13px; color: var(--text-2); }
.d8-complaint-remove {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1;
  padding: 0 4px;
}
.d8-complaint-remove:hover { color: var(--accent); }
.d8-adapt-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.d8-adapt-complaint {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.d8-result-pair {
  background: var(--bg-3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
}

/* ═══════ FORM FIELDS ═══════ */

.form-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-group-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.form-group-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.form-field {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* Range slider */
.form-range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.form-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-4);
  outline: none;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 2px var(--accent-dim);
  transition: transform .15s ease;
}
.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.form-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--accent);
}
.form-range-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  min-width: 32px;
  text-align: center;
}

/* Yes/No toggle */
.form-yesno {
  display: flex;
  gap: 8px;
}
.yesno-btn {
  padding: 8px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--ease);
}
.yesno-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
}
.yesno-btn.active {
  background: var(--accent-bg);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* Text input, textarea, select */
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  transition: border-color var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  outline: none;
}
.form-textarea {
  resize: vertical;
  min-height: 48px;
}
.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a92' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
::placeholder { color: var(--text-3); }

/* Actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-btn-primary, .form-btn-secondary, .form-btn-danger {
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-family: var(--font-heading);
  transition: var(--ease);
}
.form-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.form-btn-primary:hover { background: var(--accent-dim); }
.d2-viz-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 28px;
  font-size: 15px;
}
.form-btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.form-btn-secondary:hover { border-color: var(--border-hi); color: var(--text); }
.form-btn-danger {
  background: transparent;
  color: var(--text-3);
  border: 1px solid transparent;
}
.form-btn-danger:hover { color: var(--accent); }

/* ═══════ FORM RESULT ═══════ */

.form-result {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.result-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.result-date {
  font-size: 12px;
  color: var(--text-3);
}
.result-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.result-avg-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
}
.result-avg-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 6px;
}
.result-avg-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.result-avg-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.result-section {
  margin-bottom: 16px;
}
.result-section-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 4px;
}
.result-row span {
  color: var(--text-2);
}
.result-row strong {
  color: var(--text);
  font-weight: 600;
}
.result-row.full {
  flex-direction: column;
  align-items: flex-start;
}
.result-row.full p {
  color: var(--text);
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.6;
}
.result-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  margin-top: 2px;
}
.result-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease;
}

@media (max-width: 768px) {
  .result-overview { grid-template-columns: repeat(2, 1fr); }
  .form-actions { flex-direction: column; }
  .form-btn-primary, .form-btn-secondary, .form-btn-danger { width: 100%; text-align: center; }
  .wiz-dot { width: 28px; height: 28px; }
  .wiz-dot-num { font-size: 11px; }
  .wiz-line { max-width: 24px; }
  .form-group-title { font-size: 20px; }
}

/* ═══════ DZIENNIK TRENINGOWY ═══════ */

.j-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.j-new-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.j-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.j-form-row .form-field { min-width: 140px; }
.j-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.j-month-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.j-month-label:first-child { margin-top: 0; }
.j-timeline {
  margin-bottom: 24px;
}
.j-entry {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.j-entry-date {
  width: 48px;
  flex-shrink: 0;
  text-align: center;
  padding-top: 14px;
}
.j-entry-day-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.j-entry-weekday {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}
.j-entry-body {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 0;
}
.j-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.j-entry-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.j-entry-mood {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}
.j-entry-field {
  margin-bottom: 8px;
}
.j-entry-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 2px;
}
.j-entry-field p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.j-entry-source {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 8px;
  font-style: italic;
}
.j-entry-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .j-form-row { flex-direction: column; }
  .j-entry-date { width: 36px; }
  .j-entry-day-num { font-size: 18px; }
}

/* ═══════ SVG ICONS ═══════ */

.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico svg { display: block; }
.ico-sm svg { width: 16px; height: 16px; }
.ico-md svg { width: 20px; height: 20px; }
.ico-lg svg { width: 28px; height: 28px; }
.ico-xl svg { width: 42px; height: 42px; }
.ico-hero svg { width: 56px; height: 56px; }

/* ═══════ THEME TOGGLE ═══════ */

.sidebar-theme {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  transition: var(--ease);
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text-2); }
.theme-ico { display: flex; align-items: center; }
.theme-ico svg { stroke: currentColor; fill: none; }
.theme-ico--light { display: none; }
[data-theme="light"] .theme-ico--dark { display: none; }
[data-theme="light"] .theme-ico--light { display: flex; }

/* Topbar theme button */
.topbar-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  background: var(--bg-3);
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  margin-left: 4px;
}
.topbar-theme-btn:hover {
  color: var(--text);
  background: var(--bg-4);
  border-color: var(--accent-dim);
}
.topbar-theme-ico { display: flex; align-items: center; }
.topbar-theme-ico--light { display: none; }
[data-theme="light"] .topbar-theme-ico--dark { display: none; }
[data-theme="light"] .topbar-theme-ico--light { display: flex; }

/* ═══════ NAV CATEGORY ICONS ═══════ */

.nav-cat-ico {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-cat-ico svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .5;
}
.nav-item.active .nav-cat-ico svg,
.nav-item:hover .nav-cat-ico svg { opacity: 1; }

/* ═══════ PROGRESS BAR ═══════ */

.progress-bar-container {
  padding: 10px 20px 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.progress-label {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.progress-label span { color: var(--accent); font-weight: 700; }
.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .5s ease;
}

/* ═══════ EXPANDABLE TOOL CARDS ═══════ */

.tool-card-exp {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--ease);
  margin-bottom: 4px;
}
.tool-cat-mindset  { border-left-color: var(--cat-mindset);  background: var(--cat-mindset-bg); }
.tool-cat-relacje  { border-left-color: var(--cat-relacje);  background: var(--cat-relacje-bg); }
.tool-cat-cialo    { border-left-color: var(--cat-cialo);    background: var(--cat-cialo-bg); }
.tool-cat-finanse  { border-left-color: var(--cat-finanse);  background: var(--cat-finanse-bg); }
.tool-cat-ogolne   { border-left-color: var(--cat-ogolne);   background: var(--cat-ogolne-bg); }
.tool-card-exp:hover { border-top-color: var(--border-hi); border-right-color: var(--border-hi); border-bottom-color: var(--border-hi); }
.tool-card-exp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
}
.tool-exp-chevron {
  color: var(--text-3);
  transition: transform .2s ease;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.tool-card-exp.open .tool-exp-chevron { transform: rotate(90deg); }
.tool-card-exp-body {
  display: none;
  padding: 0 18px 16px 56px;
}
.tool-card-exp.open .tool-card-exp-body {
  display: block;
  animation: fadeUp .2s ease;
}
.tool-card-exp-body p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 10px;
}
.tool-goto, .algo-goto {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  cursor: pointer;
  transition: var(--ease);
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.tool-goto:hover, .algo-goto:hover { filter: brightness(1.3); }

/* ═══════ EXPANDABLE ALGORITHM CARDS ═══════ */

.algo-card-exp {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--ease);
  margin-bottom: 8px;
}
.algo-card-exp:hover { border-color: var(--border-hi); }
.algo-card-exp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
}
.algo-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-bg);
  color: var(--accent);
  flex-shrink: 0;
}
.algo-card-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.algo-card-info { flex: 1; min-width: 0; }
.algo-card-title { display: block; font-size: 14px; font-weight: 600; }
.algo-card-action { display: block; font-size: 12px; color: var(--accent); margin-top: 2px; font-weight: 600; }
.algo-exp-chevron {
  color: var(--text-3);
  transition: transform .2s ease;
  display: flex;
  align-items: center;
}
.algo-card-exp.open .algo-exp-chevron { transform: rotate(90deg); }
.algo-card-exp-body {
  display: none;
  padding: 0 20px 18px 70px;
}
.algo-card-exp.open .algo-card-exp-body {
  display: block;
  animation: fadeUp .2s ease;
}
.algo-card-exp-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ═══════ FLASHCARD MODE ═══════ */

.btn-flashcard {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 14px;
  border: 1px dashed var(--accent-dim);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--ease);
  text-align: left;
}
.btn-flashcard:hover {
  background: var(--accent-bg);
  border-style: solid;
}
.btn-flashcard .ico svg { stroke: var(--accent); fill: none; }

.flashcard-overlay {
  position: fixed;
  inset: 0;
  background: var(--flashcard-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeUp .2s ease;
}
.flashcard-overlay.hidden { display: none; }
.flashcard-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 640px;
  width: 100%;
  padding: 48px;
}
.flashcard-close {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--text-3);
  transition: var(--ease);
}
.flashcard-close:hover { color: var(--text); }
.flashcard-close svg { stroke: currentColor; fill: none; }
.flashcard { text-align: center; animation: fadeUp .2s ease; }
.flashcard-text {
  font-size: 26px;
  font-style: italic;
  color: var(--accent);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 16px;
}
.flashcard-label { font-size: 13px; color: var(--text-3); }
.flashcard-nav { display: flex; align-items: center; gap: 24px; }
.flashcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--ease);
}
.flashcard-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.flashcard-btn svg { stroke: currentColor; fill: none; }
.flashcard-counter { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ═══════ TODAY CARD ═══════ */

.today-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 28px;
  margin: 24px auto;
  max-width: 520px;
  animation: fadeUp .4s ease .15s both;
}
.today-card:empty { display: none; }
.today-card-icon { display: flex; align-items: center; }
.today-card-icon svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.today-card-info { text-align: left; }
.today-card-day {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.today-card-topic { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }

.today-card--mindset { border-color: var(--cat-mindset-border); background: var(--cat-mindset-bg); }
.today-card--mindset .today-card-icon { color: var(--cat-mindset); }
.today-card--mindset .today-card-day { color: var(--cat-mindset); }
.today-card--relacje { border-color: var(--cat-relacje-border); background: var(--cat-relacje-bg); }
.today-card--relacje .today-card-icon { color: var(--cat-relacje); }
.today-card--relacje .today-card-day { color: var(--cat-relacje); }
.today-card--cialo { border-color: var(--cat-cialo-border); background: var(--cat-cialo-bg); }
.today-card--cialo .today-card-icon { color: var(--cat-cialo); }
.today-card--cialo .today-card-day { color: var(--cat-cialo); }
.today-card--finanse { border-color: var(--cat-finanse-border); background: var(--cat-finanse-bg); }
.today-card--finanse .today-card-icon { color: var(--cat-finanse); }
.today-card--finanse .today-card-day { color: var(--cat-finanse); }
.today-card--ogolne { border-color: var(--cat-ogolne-border); background: var(--cat-ogolne-bg); }
.today-card--ogolne .today-card-icon { color: var(--cat-ogolne); }
.today-card--ogolne .today-card-day { color: var(--cat-ogolne); }

/* ═══════ SEARCH ═══════ */

.search-wrap {
  position: relative;
  padding: 8px 16px 4px;
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--ease);
}
.search-input:focus {
  border-color: var(--accent);
}
.search-input::placeholder {
  color: var(--text-3);
}
.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.search-results.visible { display: block; }
.search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-hover); }
.search-item-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  font-weight: 600;
}
.search-item-title {
  font-weight: 500;
}
.search-item-snippet {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ═══════ DASHBOARD ═══════ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.dash-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.dash-card:hover {
  border-color: var(--border-hi);
  background: var(--bg-3);
}
.dash-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.dash-of {
  font-size: 16px;
  color: var(--text-3);
  font-weight: 400;
}
.dash-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.dash-bar {
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .5s ease;
}
.dash-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  transition: border-color var(--ease);
}
.dash-radar-wrap:hover { border-color: var(--accent); }
.dash-radar-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ═══════ MANTRA BAR (compact) ═══════ */

.home-mantra-bar {
  flex-shrink: 0;
}
.mantra-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 20px;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.mantra-bar-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mantra-bar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.mantra-bar-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  min-width: 0;
}
.mantra-bar-source {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.mantra-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--ease);
}
.mantra-bar-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════ DASHBOARD TABS ═══════ */

.dashboard-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dashboard-tabs-nav {
  display: flex;
  gap: 4px;
  padding: 12px 0 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.dash-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
}
.dash-tab:hover {
  color: var(--text-2);
}
.dash-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.dashboard-tabs-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.dash-tab-content {
  display: none;
  padding: 16px 0 24px;
  overflow-y: auto;
  height: 100%;
}
.dash-tab-content.active {
  display: block;
}

/* Dashboard empty state */
.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}
.dash-empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  margin: 16px 0 4px;
}
.dash-empty-state span {
  font-size: 12px;
  line-height: 1.5;
}

/* Dashboard categories in quick access */
.dash-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.dash-categories .day-cat-badge {
  font-size: 11px;
  padding: 5px 14px;
}

/* ═══════ RADAR CHART ═══════ */

.radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radar-svg {
  width: 100%;
}
.radar-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: .5;
}
.radar-axis {
  stroke: var(--border);
  stroke-width: .3;
}
.radar-poly {
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-poly-start {
  fill: rgba(126,207,154,.15);
  stroke: var(--cat-mindset);
}
.radar-poly-end {
  fill: rgba(236,12,12,.12);
  stroke: var(--accent);
}
.radar-label {
  font-size: 16px;
  fill: var(--text-2);
  font-family: var(--font);
  font-weight: 500;
}
.radar-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.radar-dot-start { background: var(--cat-mindset); }
.radar-dot-end { background: var(--accent); }

/* ═══════ MEASUREMENTS COMPARISON ═══════ */

.measure-compare-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.measure-compare-row:last-child { border-bottom: none; }
.measure-cat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.measure-compare-info { flex: 1; }
.measure-compare-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.measure-compare-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.measure-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.measure-bar-label {
  font-size: 10px;
  color: var(--text-3);
  width: 40px;
  text-align: right;
}
.measure-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-4);
  border-radius: 4px;
  overflow: hidden;
}
.measure-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.measure-bar-start { background: var(--cat-mindset); }
.measure-bar-end { background: var(--accent); }
.measure-bar-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  width: 28px;
}
.measure-diff {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}
.measure-diff.positive { color: var(--cat-mindset); }
.measure-diff.negative { color: var(--accent); }

/* ═══════ CRISIS MODE ═══════ */

.crisis-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.crisis-overlay.hidden { display: none; }
.crisis-container {
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.crisis-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
}
.crisis-close:hover { color: var(--text); }
.crisis-title {
  font-family: var(--font-heading);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}
.crisis-subtitle {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 20px;
}
.crisis-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crisis-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: all var(--ease);
}
.crisis-option:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}
.crisis-option-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.crisis-option-label { flex: 1; }
.crisis-option-arrow {
  color: var(--text-3);
  font-size: 16px;
}
.crisis-result { animation: fadeUp .2s ease; }
.crisis-result-action,
.crisis-result-detail,
.crisis-result-day {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.crisis-result-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.crisis-result-value {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text);
}
.crisis-result-detail p,
.crisis-result-day p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.crisis-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.nav-item-crisis {
  color: var(--accent) !important;
}

/* ═══════ TIMER ═══════ */

.timer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.timer-overlay.hidden { display: none; }
.timer-container {
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  max-width: 400px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.timer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
}
.timer-close:hover { color: var(--text); }
.timer-title {
  font-family: var(--font-heading);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 8px;
}
.timer-desc {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.timer-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}
.timer-ring-svg {
  width: 100%;
  height: 100%;
}
.timer-ring-bg {
  fill: none;
  stroke: var(--bg-4);
  stroke-width: 6;
}
.timer-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset .3s ease;
}
.timer-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--text);
  letter-spacing: 2px;
}
.timer-time-done { color: var(--accent); }
.timer-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-3);
}
.timer-vol-slider {
  width: 120px;
  accent-color: var(--accent);
  cursor: pointer;
}
.timer-vol-label {
  font-size: 12px;
  min-width: 36px;
  text-align: right;
  color: var(--text-2);
}
.timer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
}
.timer-btn-start {
  background: var(--accent);
  color: #fff;
}
.timer-btn-start:hover { background: var(--accent-dim); }
.timer-btn-pause {
  background: var(--bg-4);
  color: var(--text);
}
.timer-btn-pause:hover { background: var(--bg-hover); }
.timer-btn-reset {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
}
.timer-btn-reset:hover { border-color: var(--text-3); color: var(--text); }
.timer-done {
  margin-top: 24px;
  animation: fadeUp .3s ease;
}
.timer-done.hidden { display: none; }
.timer-done-text {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--cat-mindset);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timer-done p {
  color: var(--text-3);
  font-size: 13px;
}

/* ═══════ DAY NOTES ═══════ */

.day-notes-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.day-notes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
}
.day-notes-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--ease);
}
.day-notes-textarea:focus {
  border-color: var(--accent);
}
.day-notes-textarea::placeholder {
  color: var(--text-3);
}
.day-notes-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.day-notes-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background var(--ease);
}
.day-notes-save:hover {
  background: var(--accent-dim);
}
.day-notes-status {
  font-size: 12px;
  color: var(--cat-mindset);
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s ease;
}
.day-notes-status.visible {
  opacity: 1;
}

/* ═══════ Q&A SESSIONS ═══════ */

.cat-qa,
.nav-item.cat-qa {
  --cat-color: #a88bfa;
}
.nav-item.cat-qa .nav-num {
  background: rgba(168,139,250,.12);
  color: #a88bfa;
}
.badge-qa {
  background: rgba(168,139,250,.12);
  color: #a88bfa;
}
[data-cat="qa"] {
  border-image: linear-gradient(90deg, #a88bfa, #7c5ce0) 1;
}

/* Q&A two-column layout */
.qa-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.qa-col-content {
  flex: 1;
  min-width: 0;
}
.qa-col-video {
  flex: 0 0 420px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.qa-video .video-player-label {
  margin-bottom: 8px;
}
.qa-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--video-shadow);
}
.qa-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Widen content area for Q&A panels */
#panel-qa1 .qa-layout,
[id^="panel-qa"] .qa-layout {
  max-width: none;
}

@media (max-width: 1000px) {
  .qa-layout {
    flex-direction: column-reverse;
  }
  .qa-col-video {
    flex: none;
    width: 100%;
    position: relative;
    top: auto;
  }
}

.qa-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  background: rgba(168,139,250,.06);
  border: 1px dashed rgba(168,139,250,.25);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 18px;
}
.qa-hint svg {
  color: #a88bfa;
  flex-shrink: 0;
}

.qa-category {
  margin-bottom: 24px;
}
.qa-category-label {
  margin-bottom: 10px;
}
.qa-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  overflow: hidden;
}
.qa-card:hover {
  border-color: var(--border-hi);
}
.qa-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.qa-timestamp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #a88bfa;
  background: rgba(168,139,250,.1);
  border: 1px solid transparent;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  min-width: 42px;
  text-align: center;
  cursor: pointer;
  transition: all var(--ease);
}
.qa-timestamp:hover {
  background: rgba(168,139,250,.2);
  border-color: #a88bfa;
}
.qa-timestamp-audio {
  background: rgba(236,12,12,.08);
  border-color: rgba(236,12,12,.25);
  color: var(--accent);
}
.qa-timestamp-audio:hover {
  background: rgba(236,12,12,.18);
  border-color: var(--accent);
}
.qa-question {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.qa-chevron {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.qa-card.open .qa-chevron {
  transform: rotate(90deg);
}
.qa-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 16px;
}
.qa-card.open .qa-card-body {
  max-height: 500px;
  padding: 0 16px 16px;
}
.qa-card-body > p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Original question bubble */
.qa-original {
  background: var(--bg-3);
  border-left: 3px solid var(--border-hi);
  border-radius: 2px var(--r-md) var(--r-md) 2px;
  padding: 10px 14px;
  margin-bottom: 12px;
  position: relative;
}
.qa-original-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 5px;
}
.qa-original p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* Answer section */
.qa-answer {
  margin-bottom: 10px;
}
.qa-answer-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #a88bfa;
  font-weight: 600;
  margin-bottom: 5px;
}
.qa-answer p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}
.qa-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.qa-related-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.qa-related-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--ease);
}
.qa-related-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.qa-transcript h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.qa-transcript h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}
.qa-transcript p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 10px;
}
.qa-transcript em {
  color: var(--accent);
  font-style: italic;
}

/* ═══════ MUSIC PLAYER ═══════ */

/* Topbar buttons — play + menu chevron */
.music-player {
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 0;
}
.music-btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 0 0 50%;
  border: 1.5px solid var(--border-hi);
  border-right: none;
  background: var(--bg-3);
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s;
}
.music-btn-play:hover {
  color: var(--text);
  background: var(--bg-4);
}
.music-btn-play.playing {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-bg);
  animation: music-pulse 2s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236,12,12,.2); }
  50%      { box-shadow: 0 0 0 5px rgba(236,12,12,0); }
}
.music-btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 34px;
  border-radius: 0 50% 50% 0;
  border: 1.5px solid var(--border-hi);
  border-left: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s;
}
.music-btn-menu:hover {
  color: var(--text);
  background: var(--bg-4);
}
.music-btn-play.playing + .music-btn-menu {
  border-color: var(--accent-dim);
  border-left-color: var(--accent-dim);
}

/* Dropdown panel */
.music-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  overflow: hidden;
}
.music-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header */
.music-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
}
.music-dropdown-header svg { opacity: .6; }

/* Volume */
.music-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  color: var(--text-3);
}
.music-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-4);
  outline: none;
  cursor: pointer;
}
.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
  border: 2px solid var(--bg-2);
  cursor: pointer;
  transition: background .15s;
}
.music-volume-slider::-webkit-slider-thumb:hover {
  background: var(--text);
}
.music-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
  border: 2px solid var(--bg-2);
  cursor: pointer;
}

/* Playlist */
.music-playlist {
  border-top: 1px solid var(--border);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}
.music-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .12s;
  text-align: left;
}
.music-track:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.music-track.active {
  color: var(--accent);
  background: var(--accent-bg);
}
.music-track-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 11px;
  opacity: .7;
}
.music-track.active .music-track-icon {
  opacity: 1;
}
.music-track-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════ CODZIENNE PRAKTYKI ═══════ */

.practices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.practice-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--ease);
}
.practice-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.practice-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.practice-body {
  flex: 1;
  min-width: 0;
}
.practice-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.practice-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.practice-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 6px;
}
.practice-desc:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .practice-card { padding: 14px; gap: 12px; }
  .practice-num { width: 30px; height: 30px; font-size: 13px; }
}

/* ═══════ MÓJ DZIEŃ ═══════ */

/* Sub-tabs */
.myday-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-3);
  border-radius: var(--r-lg);
  padding: 3px;
  margin-bottom: 20px;
}
.myday-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: all var(--ease);
  white-space: nowrap;
}
.myday-tab:hover {
  color: var(--text);
  background: var(--bg-2);
}
.myday-tab.active {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  font-weight: 600;
}

.myday-body {}
.myday-content { display: none; }
.myday-content.active { display: block; }

.myday-section-header { margin-bottom: 16px; }
.myday-section-desc {
  font-size: 13px;
  color: var(--text-3);
  margin: 4px 0 0;
  line-height: 1.5;
}

.myday-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-3);
  font-size: 14px;
}

/* ── Plan dnia ── */

.myday-plan-header {
  margin-bottom: 16px;
}
.myday-plan-date-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.myday-date-btns {
  display: flex;
  gap: 6px;
}
.myday-date-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--ease);
}
.myday-date-btn:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}
.myday-date-btn.active {
  background: var(--accent-bg);
  border-color: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

/* Tasks */
.myday-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.myday-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--ease);
}
.myday-task:hover {
  border-color: var(--border-hi);
}
.myday-task-done {
  opacity: 0.55;
}
.myday-task-done .myday-task-text {
  text-decoration: line-through;
}

.myday-check {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.myday-task-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.myday-prio-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.3px;
  flex-shrink: 0;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}
.myday-prio-badge:hover {
  filter: brightness(1.2);
  border-color: var(--border-hi);
}
.myday-prio-high .myday-prio-badge,
.myday-prio-badge.myday-prio-high {
  background: rgba(224,100,100,.15);
  color: var(--accent);
}
.myday-prio-normal .myday-prio-badge,
.myday-prio-badge.myday-prio-normal {
  background: var(--bg-3);
  color: var(--text-3);
}
.myday-prio-high {
  border-left: 3px solid var(--accent);
}

.myday-task-del {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 4px;
  border-radius: var(--r-sm);
  opacity: 0.4;
  transition: opacity var(--ease), color var(--ease);
  flex-shrink: 0;
}
.myday-task-del:hover {
  opacity: 1;
  color: var(--accent);
}

/* Add task form */
.myday-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.myday-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.myday-prio-select {
  width: auto;
  min-width: 120px;
  padding: 7px 10px;
  font-size: 12px;
}

.myday-day-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── Niezrealizowane ── */

.myday-unf-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color var(--ease);
}
.myday-unf-card:hover {
  border-color: var(--border-hi);
}
.myday-unf-niezrealizowane {
  border-left: 3px solid var(--accent);
}
.myday-unf-w_trakcie {
  border-left: 3px solid var(--cat-finanse);
}
.myday-unf-dzo {
  border-left: 3px solid var(--cat-mindset);
  opacity: 0.7;
}

.myday-unf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.myday-unf-text {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}
.myday-unf-date {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}
.myday-unf-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.myday-unf-select {
  width: auto;
  min-width: 160px;
  padding: 5px 8px;
  font-size: 12px;
}
.myday-unf-lever-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px !important;
  font-size: 12px !important;
}

/* Lever form */
.myday-lever-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Nastrój ── */

.myday-mood-today {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.myday-mood-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.myday-mood-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.myday-mood-low, .myday-mood-high {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}
.myday-mood-val {
  min-width: 28px;
  text-align: center;
}
.myday-mood-saved {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--cat-mindset);
  font-weight: 500;
}
.myday-mood-save-row {
  margin-bottom: 24px;
}

/* Chart */
.myday-chart-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.myday-chart-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.myday-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.myday-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.myday-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.myday-chart-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-3);
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}

/* Mood table */
.myday-mood-table-wrap {
  overflow-x: auto;
}
.myday-mood-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.myday-mood-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.myday-mood-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.myday-mood-table tr:hover td {
  background: var(--bg-3);
}

/* ── Doceń się ── */

.myday-praise-add {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.myday-praise-add .form-input {
  flex: 1;
}

.myday-praise-group {
  margin-bottom: 16px;
}
.myday-praise-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.myday-praise-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 4px;
  transition: border-color var(--ease);
}
.myday-praise-item:hover {
  border-color: var(--cat-finanse-border, var(--border-hi));
}
.myday-praise-star {
  color: var(--cat-finanse);
  font-size: 16px;
  flex-shrink: 0;
}
.myday-praise-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .myday-tabs {
    flex-wrap: wrap;
  }
  .myday-tab {
    font-size: 12px;
    padding: 8px 8px;
  }
  .myday-mood-today {
    grid-template-columns: 1fr;
  }
  .myday-unf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .myday-add-row {
    flex-direction: column;
    align-items: stretch;
  }
  .myday-praise-add {
    flex-direction: column;
  }
}

/* ═══════ ŚCIEŻKA DNIA ═══════ */

.day-path {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.day-path-bar {
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.day-path-fill {
  height: 100%;
  background: var(--cat-mindset);
  border-radius: 2px;
  transition: width .5s ease;
}
.day-path-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.day-path-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: all var(--ease);
}
.day-path-step.done {
  background: rgba(126,207,154,.1);
  border-color: rgba(126,207,154,.3);
  color: var(--cat-mindset);
}
.day-path-step.skip {
  opacity: .4;
  border-style: dashed;
}
.day-path-step.skip em {
  font-size: 10px;
}
.day-path-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-4);
  color: var(--text-3);
}
.day-path-step.done .day-path-dot {
  background: var(--cat-mindset);
  color: #fff;
}
.day-path-summary {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 10px;
  font-weight: 500;
}

/* ═══════ SMART CTA ═══════ */

.daypath-cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all var(--ease);
}
.daypath-cta-card:hover {
  background: var(--bg-3);
  border-color: var(--accent-dim);
}
.daypath-cta-done {
  border-color: var(--cat-mindset);
  border-left-color: var(--cat-mindset);
  color: var(--cat-mindset);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.daypath-cta-done:hover {
  background: var(--bg-2);
}
.daypath-cta-left {
  flex: 1;
  min-width: 0;
}
.daypath-cta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent);
  margin-bottom: 4px;
}
.daypath-cta-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.daypath-cta-progress {
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.daypath-cta-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .5s ease;
}
.daypath-cta-meta {
  font-size: 11px;
  color: var(--text-3);
}
.daypath-cta-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════ STREAK HERO ═══════ */

.streak-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.streak-fire {
  line-height: 1;
  flex-shrink: 0;
}
.streak-fire svg {
  width: 28px;
  height: 28px;
}
.streak-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.streak-info {
  flex: 1;
}
.streak-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.streak-msg {
  font-size: 11px;
  color: var(--cat-mindset);
  font-weight: 600;
  margin-top: 1px;
}
.streak-hero.streak-zero .streak-num { color: var(--text-3); }
.streak-hero.streak-zero .streak-msg { color: var(--text-3); }

/* ═══════ ACTIVITY CALENDAR ═══════ */

.act-cal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px 10px;
  margin-bottom: 12px;
}
.act-cal-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.act-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Day-of-week headers */
.act-cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--text-3);
  padding-bottom: 2px;
}
.act-cal-header-we {
  color: var(--accent-dim);
}

/* Calendar cells */
.act-cal-cell {
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-3);
  padding: 4px 0;
  cursor: default;
}
.act-cal-empty {
  background: none;
}
.act-cal-l0 { background: var(--bg-4); }
.act-cal-l1 { background: rgba(126,207,154,.25); color: var(--cat-mindset); }
.act-cal-l2 { background: rgba(126,207,154,.5); color: #fff; }
.act-cal-l3 { background: var(--cat-mindset); color: #fff; }
.act-cal-lwe {
  background: var(--bg-3);
  color: var(--text-3);
  opacity: .45;
}

/* Today highlight */
.act-cal-today {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* Month separator */
.act-cal-month-start {
  border-left: 2px solid var(--accent-dim);
}

/* Legend + hint in one row */
.act-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.act-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--text-3);
}
.act-cal-leg-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.act-cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.act-cal-dot.act-cal-lwe {
  opacity: .45;
}
.act-cal-hint {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 600px) {
  .day-path-steps {
    gap: 4px;
  }
  .day-path-step {
    font-size: 11px;
    padding: 3px 8px;
  }
  .streak-hero {
    padding: 14px 16px;
  }
  .streak-num {
    font-size: 36px;
  }
  .act-cal-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .daypath-cta-title {
    font-size: 15px;
  }
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-sidebar);
  }
  .btn-close-sb { display: block; }
  .btn-hamburger { display: flex; }

  .content { padding: 24px 16px 48px; }
  .content.home-active { padding: 12px 16px 0; }
  .day-title { font-size: 32px; }
  .section-title { font-size: 18px; }
  .transcript-body h3 { font-size: 20px; }
  .quick-grid { grid-template-columns: 1fr; }

  /* Mantra bar responsive */
  .mantra-bar-inner { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .mantra-bar-text { white-space: normal; font-size: 12px; }
  .mantra-bar-source { display: none; }
  .week-row .wr-day { width: 90px; }

  /* Music player responsive */
  .music-dropdown { width: 260px; right: -8px; }
  .topbar-title { margin-right: 0; }

  /* Topbar nav — mniejsze na mobile */
  .topbar-nav-btn { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
  /* Hide forward button on very narrow screens — back button is the primary affordance */
  #topbar-forward { display: none; }
}
