/* Panel prywatny — styl w kolorystyce Nexmind: granat + akcent zależny od trybu */

:root {
  --bg: #0A1628;
  --bg-bar: #0D1A30;
  --surface: #111F36;
  --surface-2: #162741;
  --border: #1E3050;
  --text: #E6EDF5;
  --text-soft: #C9D4E3;
  --muted: #8FA0B8;
  --danger: #F87171;
  --accent: #22D3EE;
  --tint: rgba(34, 211, 238, 0.14);
  --radius: 14px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
}

.mode-nauczyciel { --accent: #22D3EE; --tint: rgba(34, 211, 238, 0.14); }
.mode-silownia   { --accent: #F59E0B; --tint: rgba(245, 158, 11, 0.16); }
.mode-dieta      { --accent: #4ADE80; --tint: rgba(74, 222, 128, 0.14); }

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

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #FFFFFF; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; max-width: 70ch; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Przyciski i pola ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 14px/1 var(--font-body); cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #0A1628; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  width: 100%; min-height: 44px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font: 400 15px var(--font-body);
}
input:focus { border-color: var(--accent); outline: none; }
input:disabled { opacity: 0.6; }

label { font-size: 14px; font-weight: 500; color: var(--text-soft); }

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { margin-top: 12px; }

.alert {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.12); color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.35); font-size: 14px;
}

/* ---------- Ekrany logowania ---------- */

.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.auth-card h1 { font-size: 24px; }
.steps { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 14px; display: grid; gap: 4px; }
.qr { display: flex; justify-content: center; padding: 12px; background: #FFFFFF; border-radius: 12px; width: fit-content; margin: 4px auto; }
.qr img { display: block; }
.secret { font-size: 13px; color: var(--text); word-break: break-all; }
.code-input { letter-spacing: 0.3em; font-size: 20px; text-align: center; }

/* ---------- Marka ---------- */

.brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text); }
.brand-dot { color: var(--accent); }

/* ---------- Pasek górny z przełącznikiem trybów ---------- */

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 12px 24px; background: var(--bg-bar); border-bottom: 1px solid var(--border);
}
.modes {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.mode-tab {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.mode-tab:hover { color: var(--text); }
.mode-tab.is-active { background: var(--tint); color: var(--accent); }
.logout { margin: 0; }

/* ---------- Układ: menu | treść | asystent ---------- */

.shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: calc(100vh - 66px); }

.sidenav {
  flex: 1 1 200px; max-width: 240px; padding: 24px 14px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.sidenav-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 0 12px 8px;
}
.sidenav-link { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-soft); }
.sidenav-link:hover { background: var(--surface); }
.sidenav-link.is-active { background: var(--tint); color: var(--accent); font-weight: 600; }

.content { flex: 999 1 520px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.content .date { font-size: 14px; margin-bottom: -16px; text-transform: none; }
.content .date::first-letter { text-transform: uppercase; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.card.empty { display: flex; flex-direction: column; gap: 8px; border-style: dashed; }
.card.empty h2 { font-size: 18px; }

.assistant {
  flex: 1 1 300px; max-width: 380px;
  border-left: 1px solid var(--border); background: var(--bg-bar);
  display: flex; flex-direction: column;
}
.assistant-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
}
.assistant-head h2 { font-size: 16px; }
.pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent); white-space: nowrap;
}
.assistant-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  align-self: flex-start; max-width: 92%; padding: 10px 14px;
  border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 14px;
}
.assistant-input { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); margin: 0; }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn-accent { background: var(--accent); border-color: var(--accent); color: #0A1628; }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Pasek górny: prawa strona ---------- */

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-link { font-size: 14px; color: var(--muted); padding: 8px 4px; }
.topbar-link:hover, .topbar-link.is-active { color: var(--text); }

.sidenav-link.is-soon { color: var(--muted); cursor: default; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidenav-link.is-soon:hover { background: transparent; }
.soon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #6F819B; }

/* ---------- Komunikaty ---------- */

.flash { padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash-ok { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.35); color: #A7F3C4; }
.flash-warn { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.35); color: #FCD38D; }
.flash-error { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: #FCA5A5; }

/* ---------- Elementy treści ---------- */

.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fit { width: fit-content; }
.right { text-align: right; }
.pad { padding: 18px 22px 6px; }

.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-danger { background: transparent; color: #FCA5A5; border-color: rgba(248, 113, 113, 0.5); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); }

textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font-body); resize: vertical;
}
textarea:focus { border-color: var(--accent); outline: none; }
input[type="file"] { color: var(--muted); font-size: 14px; }
input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 13px var(--font-body); cursor: pointer;
}

.card h2 { font-size: 18px; margin-bottom: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card.note { border-color: var(--border); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.class-card { display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s; }
.class-card:hover { border-color: var(--accent); color: var(--text); }
.class-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.class-card-head h2 { font-size: 22px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* Tabele */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
tbody th { font-family: var(--font-head); font-size: 16px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.row-warn td { color: #FCD38D; }

/* Formularze w szczegółach klasy */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: 12px; }
.inline-form .grow { flex: 1 1 240px; }
.inline-form .narrow { flex: 0 0 110px; }

.assign-list { list-style: none; margin: 0; padding: 0; }
.assign-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.assign-list form { margin: 0; }

.preview { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.preview-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

.danger-zone { border-color: rgba(248, 113, 113, 0.3); }

.codes { margin: 0; padding: 14px 14px 14px 40px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; }
.codes code { font-size: 15px; letter-spacing: 0.05em; color: var(--text); }

/* ---------- Etap 2: pola wyboru, plan, tematy, notatki, pulpit ---------- */

select {
  width: 100%; min-height: 44px; padding: 0 36px 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background-color: var(--bg); color: var(--text);
  font: 400 15px var(--font-body); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat;
}
select:focus { border-color: var(--accent); outline: none; }
input[type="date"], input[type="search"] {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 400 15px var(--font-body); color-scheme: dark; width: 100%;
}
.field-end { justify-content: flex-end; }
.form-actions { display: flex; gap: 12px; }
.danger-inline { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.section-title { font-size: 18px; margin-top: 8px; }
.card h3 { font-size: 16px; margin: 0; }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }

/* Plan lekcji */
.timetable { table-layout: fixed; min-width: 760px; }
.timetable th:first-child { width: 96px; }
.timetable td { vertical-align: top; padding: 8px; }
.timetable tbody th { font-family: var(--font-body); font-size: 14px; }
.lesson-no {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 6px;
  border-radius: 8px; background: var(--surface-2); font: 600 13px var(--font-body); color: var(--text-soft);
}
.timetable tbody th .muted { display: block; margin-top: 2px; }
.slot {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 6px;
  padding: 8px 10px; border-radius: 10px; background: var(--tint); border: 1px solid transparent; margin-bottom: 6px; font-size: 13px;
}
.slot strong { color: var(--accent); }
.slot form { margin: 0; }
.slot-del {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
}
.slot-del:hover { color: #FCA5A5; border-color: rgba(248, 113, 113, 0.5); }
.bells { display: grid; gap: 8px; }
.bell-row { display: grid; grid-template-columns: 32px 1fr 12px 1fr; gap: 8px; align-items: center; }
.bells .btn { margin-top: 8px; }

/* Statusy realizacji */
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.status-zaplanowany { background: transparent; border-color: var(--border); color: var(--muted); }
.status-przygotowany { background: rgba(245, 158, 11, 0.14); color: #F5B544; }
.status-zrealizowany { background: rgba(74, 222, 128, 0.14); color: #4ADE80; }
.status-do_powtorki { background: rgba(34, 211, 238, 0.14); color: #22D3EE; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* Biblioteka tematów */
.subject-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.subject-tab {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; list-style: none;
}
.subject-tab::-webkit-details-marker { display: none; }
.subject-tab:hover { border-color: var(--muted); }
.subject-tab.is-active { background: var(--tint); color: var(--accent); border-color: transparent; }
.subject-add[open] { flex-basis: 100%; }
.subject-add form { margin-top: 8px; }

.progress-card { display: flex; flex-direction: column; gap: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.topic-section { padding-bottom: 8px; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.topic-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topic-title { font-weight: 600; }
.topic-title:hover { color: var(--accent); }
.topic-move { display: flex; gap: 4px; }
.topic-move form { margin: 0; }
.icon-btn-sm { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
.unit-tools summary { list-style: none; }
.unit-tools summary::-webkit-details-marker { display: none; }
.unit-tools-body { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 10px; }
.unit-tools-body form { margin: 0; }

/* Realizacja w grupach */
.real-row {
  display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(130px, 1fr)); gap: 10px 14px; align-items: end;
  padding: 16px 22px; border-top: 1px solid var(--border);
}
.real-group { display: flex; flex-direction: column; gap: 6px; align-self: center; }
.real-group .status { width: fit-content; }

/* Notatki */
.note { padding: 10px 0; border-bottom: 1px solid var(--border); }
.note-body { white-space: pre-wrap; font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.note-card { display: flex; flex-direction: column; gap: 6px; }
.note-card:hover { border-color: var(--accent); color: var(--text); }
.note-card h2 { font-size: 16px; margin: 0; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; }

/* Pulpit „Dziś” */
.list-card { padding: 0; }
.list-card-title { padding: 18px 22px 8px; margin: 0; }
.list-empty { padding: 0 22px 18px; }
.lesson { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 22px; border-top: 1px solid var(--border); }
.lesson-time { display: flex; flex-direction: column; gap: 4px; }
.lesson-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lesson-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.lesson-topic { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.lesson-actions summary { list-style: none; width: fit-content; }
.lesson-actions summary::-webkit-details-marker { display: none; }
.lesson-actions form { margin-top: 10px; max-width: 420px; }

/* ---------- Etap 3: podstawa programowa ---------- */

.link-plain:hover { color: var(--accent); }
.req-code { font: 600 12px var(--font-body); color: var(--accent); background: var(--tint); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.req-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.req-picker > summary, .criteria > summary, .unit-block > summary { list-style: none; cursor: pointer; }
.req-picker > summary::-webkit-details-marker, .criteria > summary::-webkit-details-marker, .unit-block > summary::-webkit-details-marker { display: none; }
.req-picker form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.req-filter { max-width: 420px; }
#req-items { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.req-cur { margin: 6px 0; text-transform: uppercase; letter-spacing: 0.06em; }
.req-unit { border-bottom: 1px solid var(--border); padding: 6px 0; }
.req-unit > summary { cursor: pointer; padding: 6px 0; font-size: 14px; }
.req-item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 6px 4px 6px 12px; font-size: 14px; color: var(--text); font-weight: 400; cursor: pointer; border-radius: 8px; }
.req-item:hover { background: var(--surface-2); }
.req-item input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }

.cov { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.cov-zrealizowany { background: rgba(74, 222, 128, 0.14); color: #4ADE80; }
.cov-zaplanowany { background: rgba(245, 158, 11, 0.14); color: #F5B544; }
.cov-brak { border-color: var(--border); color: var(--muted); }

.bar-stack { position: relative; }
.bar-stack .bar-plan { position: absolute; inset: 0 auto 0 0; height: 100%; background: rgba(245, 158, 11, 0.45); border-radius: 999px; display: block; }
.bar-stack .bar-over { position: absolute; inset: 0 auto 0 0; }
.cov-grid { margin: 8px 0 12px; }
.cov-row { display: grid; grid-template-columns: 76px 1fr 40px; gap: 10px; align-items: center; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.search-bar-3 { grid-template-columns: minmax(0, 1fr) 200px auto auto; align-items: center; }

.unit-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 22px; align-items: center; }
.unit-summary:hover { background: var(--surface-2); }
.unit-dots { display: flex; gap: 12px; flex-wrap: wrap; }
.req-rows { list-style: none; margin: 0; padding: 0; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 22px; border-top: 1px solid var(--border); font-size: 14px; }
.req-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.req-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; }
.criteria ol { margin: 6px 0 0; padding-left: 22px; color: var(--text-soft); font-size: 13px; display: grid; gap: 2px; }

/* ---------- Postęp uczniów (Dziennik Progresu) ---------- */
.mini-bar { display: grid; grid-template-columns: 90px auto; gap: 8px; align-items: center; }
.pct-good { color: #4ADE80; font-weight: 600; }
.pct-low { color: var(--muted); }

/* ---------- Telefon ---------- */

@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .modes { order: 3; width: 100%; justify-content: space-between; }
  .mode-tab { flex: 1; justify-content: center; padding: 0 8px; }
  .sidenav {
    max-width: none; flex-basis: 100%; flex-direction: row; overflow-x: auto;
    padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .sidenav-label { display: none; }
  .sidenav-link { white-space: nowrap; }
  .content { padding: 20px 16px; }
  .assistant { max-width: none; border-left: 0; border-top: 1px solid var(--border); }
  .topbar-right { gap: 8px; }
  .real-row { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .real-group { grid-column: 1 / -1; }
  .lesson { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .lesson-time { flex-direction: row; align-items: center; }
  .topic-row { grid-template-columns: minmax(0, 1fr) auto; }
  .topic-row .chips { grid-column: 1 / -1; grid-row: 2; }
  .search-bar, .search-bar-3 { grid-template-columns: 1fr; }
  .req-row { grid-template-columns: 1fr; padding: 12px 16px; }
  .req-status { justify-content: flex-start; }
  .unit-summary { padding: 14px 16px; }
}

/* Paski postępu: szerokość przez klasy, bo CSP blokuje style inline */
.w-0{width:0%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
