/* EduInfó components — facelift phase 2 (2026-11-22).
   Loaded LAST in <head>. Builds on eduinfo-tokens.css and Bootstrap 5.3's own
   component variables, so hover/active/disabled states keep working without
   !important. Plan: docs/changes/2026-11-21-ui-facelift-audit/README.md */

/* ---- Buttons -------------------------------------------------------------
   k-info.css sets `.btn{background:var(--btn-bg)}` and `.btn:hover{background:…}`
   after Bootstrap, which erased every Bootstrap variant colour (danger looked
   neutral). Re-assert Bootstrap's variable-driven rendering here. */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--radius-md);
  --bs-btn-focus-box-shadow: 0 0 0 3px var(--color-focus-ring);
  /* neutral default for bare .btn and custom .btn-* classes */
  --bs-btn-color: var(--color-text);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-border-strong);
  --bs-btn-hover-color: var(--color-text);
  --bs-btn-hover-bg: var(--color-surface-alt);
  --bs-btn-hover-border-color: var(--color-border-strong);
  --bs-btn-active-color: var(--color-text);
  --bs-btn-active-bg: var(--color-surface-alt);
  --bs-btn-active-border-color: var(--color-text-subtle);
  --bs-btn-disabled-color: var(--color-text-subtle);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--color-border);
  background: var(--bs-btn-bg);
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
  font-weight: 600;
  height: auto;
  min-height: 38px;
  box-shadow: none;
}
.btn:hover { background: var(--bs-btn-hover-bg); color: var(--bs-btn-hover-color); border-color: var(--bs-btn-hover-border-color); }
.btn:active, .btn.active, .btn.show, :not(.btn-check) + .btn:active {
  background: var(--bs-btn-active-bg); color: var(--bs-btn-active-color); border-color: var(--bs-btn-active-border-color);
}
.btn:disabled, .btn.disabled, fieldset:disabled .btn {
  background: var(--bs-btn-disabled-bg); color: var(--bs-btn-disabled-color); border-color: var(--bs-btn-disabled-border-color);
}
.btn:active { transform: none; }
.btn-sm { min-height: 31px; border-radius: var(--bs-border-radius-sm); font-size: .8125rem; padding-inline: .65rem; }
.btn-lg { min-height: 46px; border-radius: var(--radius-lg); }

/* Primary: filled brand — use once per view for the main action. */
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--color-brand-fill); --bs-btn-border-color: var(--color-brand-fill);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-brand-fill-hover); --bs-btn-hover-border-color: var(--color-brand-fill-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-brand-fill-hover); --bs-btn-active-border-color: var(--color-brand-fill-hover);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--color-brand-fill); --bs-btn-disabled-border-color: var(--color-brand-fill);
}
/* Secondary family: neutral outline. */
.btn-secondary, .btn-outline-secondary, .btn-light, .btn-outline-light, .btn-dark, .btn-outline-dark {
  --bs-btn-color: var(--color-text); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: var(--color-border-strong);
  --bs-btn-hover-color: var(--color-text); --bs-btn-hover-bg: var(--color-surface-alt); --bs-btn-hover-border-color: var(--color-text-subtle);
  --bs-btn-active-color: var(--color-text); --bs-btn-active-bg: var(--color-surface-alt); --bs-btn-active-border-color: var(--color-text-subtle);
  --bs-btn-disabled-bg: var(--color-surface);
}
/* Tinted outlines: brand / semantic. */
/* Brand secondary = tonal (soft fill, no frame) so it never reads like the
   outlined destructive button below — the maroon brand and the danger red are close in hue. */
.btn-outline-primary {
  --bs-btn-color: var(--color-brand-soft-text); --bs-btn-bg: var(--color-brand-soft); --bs-btn-border-color: var(--color-brand-soft);
  --bs-btn-hover-color: var(--color-brand-soft-text); --bs-btn-hover-bg: var(--maroon-100); --bs-btn-hover-border-color: var(--maroon-100);
  --bs-btn-active-color: var(--color-brand-soft-text); --bs-btn-active-bg: var(--maroon-100); --bs-btn-active-border-color: var(--color-brand-line);
  --bs-btn-disabled-color: var(--color-text-subtle); --bs-btn-disabled-bg: var(--color-surface-alt); --bs-btn-disabled-border-color: var(--color-surface-alt);
}
.btn-outline-danger {
  --bs-btn-color: var(--color-danger-text); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: var(--color-danger-line);
  --bs-btn-hover-color: var(--color-danger-text); --bs-btn-hover-bg: var(--color-danger-soft); --bs-btn-hover-border-color: var(--color-danger-text);
  --bs-btn-active-color: var(--color-danger-text); --bs-btn-active-bg: var(--color-danger-soft); --bs-btn-active-border-color: var(--color-danger-text);
}
.btn-outline-success {
  --bs-btn-color: var(--color-success-text); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: var(--color-success-line);
  --bs-btn-hover-color: var(--color-success-text); --bs-btn-hover-bg: var(--color-success-soft); --bs-btn-hover-border-color: var(--color-success-text);
  --bs-btn-active-color: var(--color-success-text); --bs-btn-active-bg: var(--color-success-soft); --bs-btn-active-border-color: var(--color-success-text);
}
.btn-outline-warning, .btn-warning {
  --bs-btn-color: var(--color-warning-text); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: var(--color-warning-line);
  --bs-btn-hover-color: var(--color-warning-text); --bs-btn-hover-bg: var(--color-warning-soft); --bs-btn-hover-border-color: var(--color-warning-text);
  --bs-btn-active-color: var(--color-warning-text); --bs-btn-active-bg: var(--color-warning-soft); --bs-btn-active-border-color: var(--color-warning-text);
}
.btn-warning { --bs-btn-bg: var(--color-warning-soft); }
.btn-outline-info, .btn-info {
  --bs-btn-color: var(--color-info-text); --bs-btn-bg: var(--color-surface); --bs-btn-border-color: var(--color-info-line);
  --bs-btn-hover-color: var(--color-info-text); --bs-btn-hover-bg: var(--color-info-soft); --bs-btn-hover-border-color: var(--color-info-text);
  --bs-btn-active-color: var(--color-info-text); --bs-btn-active-bg: var(--color-info-soft); --bs-btn-active-border-color: var(--color-info-text);
}
.btn-info { --bs-btn-bg: var(--color-info-soft); }
/* Filled semantic: destructive confirm / positive confirm. */
.btn-danger {
  --bs-btn-color: #fff; --bs-btn-bg: var(--color-danger-fill); --bs-btn-border-color: var(--color-danger-fill);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-danger-fill-hover); --bs-btn-hover-border-color: var(--color-danger-fill-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-danger-fill-hover); --bs-btn-active-border-color: var(--color-danger-fill-hover);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--color-danger-fill); --bs-btn-disabled-border-color: var(--color-danger-fill);
}
.btn-success {
  --bs-btn-color: #fff; --bs-btn-bg: var(--color-success-fill); --bs-btn-border-color: var(--color-success-fill);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-success-fill-hover); --bs-btn-hover-border-color: var(--color-success-fill-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-success-fill-hover); --bs-btn-active-border-color: var(--color-success-fill-hover);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--color-success-fill); --bs-btn-disabled-border-color: var(--color-success-fill);
}
/* Link buttons: no frame. */
.btn-link {
  --bs-btn-color: var(--color-brand); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--color-brand-hover); --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--color-brand-hover); --bs-btn-active-bg: transparent; --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-border-color: transparent;
}
.btn-check:checked + .btn {
  background: var(--color-brand-soft); color: var(--color-brand); border-color: var(--color-brand);
}

/* ---- Badges / chips: calm, tinted status chips ------------------------- */
.badge { border-radius: var(--radius-sm); font-weight: 600; }
.badge.bg-secondary, .badge.text-bg-secondary, .badge.bg-light, .badge.text-bg-light, .badge.bg-dark, .badge.text-bg-dark {
  background: var(--color-surface-alt) !important; color: var(--color-text-muted) !important; box-shadow: inset 0 0 0 1px var(--color-border);
}
.badge.bg-primary, .badge.text-bg-primary { background: var(--color-brand-soft) !important; color: var(--color-brand-soft-text) !important; }
.badge.bg-success, .badge.text-bg-success { background: var(--color-success-soft) !important; color: var(--color-success-text) !important; }
.badge.bg-danger, .badge.text-bg-danger { background: var(--color-danger-soft) !important; color: var(--color-danger-text) !important; }
.badge.bg-warning, .badge.text-bg-warning { background: var(--color-warning-soft) !important; color: var(--color-warning-text) !important; }
.badge.bg-info, .badge.text-bg-info { background: var(--color-info-soft) !important; color: var(--color-info-text) !important; }

/* ---- Surfaces --------------------------------------------------------- */
.dropdown-menu, .kinfo-dropdown-menu { border-radius: var(--radius-md) !important; }
.modal-content { border-radius: var(--radius-lg) !important; }
.offcanvas { border-radius: 0 !important; }
.popover, .toast { border-radius: var(--radius-md); }
.progress { border-radius: var(--radius-pill); }

/* ======================================================================
   Phase 3 — shell: logo, header, container, footer (2026-11-22)
   ====================================================================== */
:root { --container-max: 1280px; }

/* Logo: outlined SVGs (font-independent), swapped by theme. */
.eduinfo-logo { display: block; height: 48px; width: auto; }
.portal-admin-topbar .eduinfo-logo, .kinfo-mobile-header .eduinfo-logo { height: 40px; }
/* !important: header.blade.php's own `.kinfo-navbar-brand img{display:block}` loads later. */
html:not([data-theme='dark']) img.eduinfo-logo.eduinfo-logo--dark { display: none !important; }
html[data-theme='dark'] img.eduinfo-logo.eduinfo-logo--light { display: none !important; }

/* Header: one row at desktop widths, same max width as the content.
   Selectors are prefixed with .kinfo-navbar-wrapper because header.blade.php's
   <style> block sits in <body>, i.e. after this file. */
/* wrap (not nowrap): if the items ever exceed the width the right side drops to a second
   row instead of sliding under the menu (2026-11-22, Tárgygráf + ZH-naptár added). */
.kinfo-navbar-wrapper .kinfo-navbar-container { max-width: var(--container-max); flex-wrap: wrap; gap: 8px 16px; padding-inline: 24px; }
@media (max-width: 1599.98px) {
  /* Account button shows only the icon; the name is in the menu header and the aria-label. */
  .kinfo-navbar-wrapper .kinfo-profile-btn .eduinfo-profile-name { display: none !important; }
}
.kinfo-navbar-wrapper .kinfo-navbar-nav-group { margin-left: 1rem; flex: 1 1 auto; }
.kinfo-navbar-wrapper .kinfo-navbar-nav { flex-wrap: nowrap; }
.kinfo-navbar-wrapper .kinfo-navbar-nav a.nav-link-item, .kinfo-navbar-wrapper .kinfo-navbar-nav button.nav-link-item { padding: 8px 8px !important; font-size: 14px !important; white-space: nowrap; }
.kinfo-navbar-wrapper .kinfo-navbar-right { flex-wrap: nowrap; gap: 12px; }
@media (max-width: 1199.98px) {
  .kinfo-navbar-wrapper .kinfo-navbar-container { flex-wrap: wrap; }
}

/* Subject search: one field with an icon button (not a second filled button). */
.eduinfo-header-search { position: relative; gap: 0; }
.eduinfo-header-search .kinfo-search-input { width: 180px; padding-right: 38px !important; border-radius: var(--radius-md) !important; height: 38px; }
.eduinfo-header-search__btn {
  position: absolute; right: 3px; top: 3px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--color-text-muted); cursor: pointer;
}
.eduinfo-header-search__btn:hover { background: var(--color-surface-alt); color: var(--color-brand); }
.eduinfo-header-search__btn .material-symbols-outlined { font-size: 20px; }
.eduinfo-login-btn { white-space: nowrap; }

/* Public content width matches the header. */
@media (min-width: 1200px) {
  body > main > .container { max-width: var(--container-max); }
}
/* Tárgygráf's own stylesheet forces every main .container to 100%; the faculty list,
   programme list and exam calendar use the shared width (graph views stay full width). */
body[data-page="targygraf.index"] main > .container,
body[data-page="targygraf.programs"] main > .container,
body[data-page="targygraf.exams"] main > .container {
  max-width: var(--container-max) !important; margin-inline: auto !important; padding-inline: 12px !important;
}

/* Footer: muted text, links follow the text colour, brand on hover. */
.eduinfo-footer { background: transparent; color: var(--color-text-muted); font-size: 13px; }
.eduinfo-footer > .container { max-width: var(--container-max); }
.eduinfo-footer a { color: var(--color-text-muted); text-decoration: none; }
.eduinfo-footer a:hover, .eduinfo-footer a:focus-visible { color: var(--color-brand); text-decoration: underline; }

/* ======================================================================
   Phase 4 — subject detail (public + admin share subjects/partials/detail)
   CSS only: markup, field order and the PDF stay unchanged.
   ====================================================================== */
.subject-page { max-width: var(--container-max); }
.subject-page .subject-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem); line-height: 1.2; }
.subject-page .subject-section h2, .subject-page .subject-section h3,
.subject-page .subject-section h4:not(.subject-subhead), .subject-page .subject-section h5:not(.subject-subhead) {
  font-weight: 600; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; margin-top: 8px;
}
/* Tabs: underline style, no grey block; scroll horizontally instead of stacking. */
.subject-page .subject-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin-bottom: 8px; }
.subject-page .subject-tabs .nav-item { flex: 0 0 auto; }
.subject-page .subject-tabs .nav-link { color: var(--color-text-muted); font-weight: 600; border-radius: 0; }
.subject-page .subject-tabs .nav-link:hover { background: transparent; color: var(--color-text); border-color: transparent; border-bottom-color: var(--color-border-strong); }
.subject-page .subject-tabs .nav-link.active { background: transparent; color: var(--color-brand); border-bottom-color: var(--color-brand); }
/* Data tables: light grid, label column calm. */
.subject-page .table-bordered > :not(caption) > * > * { border-color: var(--color-border); }
.subject-page .subject-table { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.subject-page .subject-table th { font-weight: 600; color: var(--color-text-muted); background: var(--color-surface-alt); }
.subject-page a:not(.btn) { color: var(--color-brand); }

@media (max-width: 767.98px) {
  .subject-page .subject-header-top { align-items: flex-start; }
  .subject-page .subject-actions .ms-2 { margin-left: 0 !important; }
  /* Two-column label/value table becomes stacked label-over-value rows. */
  .subject-page .subject-table, .subject-page .subject-table > tbody, .subject-page .subject-table > tbody > tr,
  .subject-page .subject-table > tbody > tr > th, .subject-page .subject-table > tbody > tr > td { display: block; width: 100% !important; }
  .subject-page .subject-table > tbody > tr { border-bottom: 1px solid var(--color-border); }
  .subject-page .subject-table > tbody > tr > th { border: 0; padding: 10px 12px 2px; font-size: 13px; background: transparent; }
  .subject-page .subject-table > tbody > tr > td { border: 0; padding: 2px 12px 10px; }
  /* Nested tables (hours, assessments) scroll inside their own box. */
  .subject-page .subject-nested-table, .subject-page .subject-section table:not(.subject-table) { display: block; max-width: 100%; overflow-x: auto; }
  .subject-page .row { margin-inline: 0; }
  .subject-page .row > [class*='col-'] { padding-inline: 0; }
}

/* ======================================================================
   Phase 4 — public pages
   ====================================================================== */
/* k-info's BEM primary button (subject filter "Keresés") follows the primary button. */
.btn.btn--primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--color-brand-fill); --bs-btn-border-color: var(--color-brand-fill);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-brand-fill-hover); --bs-btn-hover-border-color: var(--color-brand-fill-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-brand-fill-hover); --bs-btn-active-border-color: var(--color-brand-fill-hover);
}
/* Page titles: near-black; maroon is reserved for actions, links and active states (audit B4). */
main h1:not(.text-white), main .subject-title, .subject-page .subject-title { color: var(--color-text) !important; }

/* Subject list card — one layout for every width. */
.eduinfo-subject-card {
  position: relative; display: flex; gap: 12px 24px; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px; background: var(--color-surface); border: 1px solid var(--color-border) !important;
  border-left: 1px solid var(--color-border) !important; border-radius: var(--radius-md) !important;
  transition: border-color .15s, box-shadow .15s;
}
.eduinfo-subject-card:hover { border-color: var(--color-border-strong) !important; box-shadow: var(--shadow-md); transform: none; }
.eduinfo-subject-card__main { min-width: 0; flex: 1 1 auto; }
.eduinfo-subject-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.eduinfo-code {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--color-brand-soft-text);
  background: var(--color-brand-soft); border: 1px solid var(--maroon-100); border-radius: var(--radius-sm); padding: 1px 6px;
}
.eduinfo-subject-card__credit { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.eduinfo-subject-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.eduinfo-subject-card__title a { color: var(--color-text); text-decoration: none; }
.eduinfo-subject-card:hover .eduinfo-subject-card__title a, .eduinfo-subject-card__title a:focus-visible { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.eduinfo-subject-card__alt { margin: 2px 0 0; font-size: 13px; color: var(--color-text-muted); }
.eduinfo-subject-card__org { margin: 6px 0 0; font-size: 13px; color: var(--color-text-subtle); display: flex; flex-wrap: wrap; gap: 0 6px; }
.eduinfo-subject-card__desc {
  margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eduinfo-subject-card__chips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; max-width: 40%; }
.eduinfo-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--color-text-muted);
  background: var(--color-surface-alt); border: 1px solid var(--color-border); white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.eduinfo-chip .material-symbols-outlined { font-size: 15px; }
.eduinfo-chip--brand { color: var(--color-brand-soft-text); background: var(--color-brand-soft); border-color: transparent; }
.eduinfo-chip--success { color: var(--color-success-text); background: var(--color-success-soft); border-color: transparent; }
.eduinfo-chip--warning { color: var(--color-warning-text); background: var(--color-warning-soft); border-color: transparent; }
@media (max-width: 767.98px) {
  .eduinfo-subject-card { flex-direction: column; }
  .eduinfo-subject-card__chips { flex-direction: row; flex-wrap: wrap; align-items: flex-start; max-width: 100%; }
}

/* Subject filter: sticky action bar fully covers the scrolled fields. */
@media (min-width: 992px) {
  .filters > div:last-child { bottom: 0 !important; padding-bottom: 12px !important; box-shadow: 0 -10px 12px -10px rgba(0,0,0,.12); }
}

/* Programme cards: Bootstrap's p-5 (3rem) no longer inflates the padding. */
.eduinfo-program-card { padding: 20px !important; }

/* Accessible, localisable file picker (verify page). */
.eduinfo-file { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 6px; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface-alt); }
.eduinfo-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.eduinfo-file__input:focus-visible + .eduinfo-file__btn { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.eduinfo-file__btn { margin: 0; }
.eduinfo-file__name { font-size: 14px; color: var(--color-text-muted); overflow-wrap: anywhere; }

/* ======================================================================
   Phase 5 — admin
   ====================================================================== */
/* Field labels are never monospace (subject editor used .font-mono labels). */
label.font-mono, .form-label.font-mono, label .font-mono, span.text-body-sm.font-mono {
  font-family: var(--font-sans) !important; font-weight: 600; letter-spacing: 0; text-transform: none;
}

/* ======================================================================
   Phase 6 — icons: Material Symbols as the single set (inline sizing helper)
   ====================================================================== */
.material-symbols-outlined.eduinfo-icon { font-size: 1.2em; line-height: 1; vertical-align: -0.22em; }
.material-symbols-outlined.eduinfo-icon.fs-1 { font-size: calc(1.375rem + 1.5vw) !important; }
.eduinfo-program-card { margin-bottom: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.material-symbols-outlined.eduinfo-icon--fill { font-variation-settings: 'FILL' 1; }
/* Bootstrap Icons sizing classes kept on converted icons */
.material-symbols-outlined.eduinfo-icon.fs-2 { font-size: calc(1.325rem + .9vw) !important; }
.material-symbols-outlined.eduinfo-icon.fs-3 { font-size: calc(1.3rem + .6vw) !important; }
.material-symbols-outlined.eduinfo-icon.fs-4 { font-size: calc(1.275rem + .3vw) !important; }

/* ======================================================================
   Collapsible desktop admin sidebar (2026-11-22)
   ====================================================================== */
.eduinfo-sidebar-toggle {
  align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--color-text-muted); cursor: pointer;
}
.eduinfo-sidebar-toggle:hover { background: var(--color-surface-alt); color: var(--color-text); border-color: var(--color-border); }
.eduinfo-sidebar-toggle .material-symbols-outlined { font-size: 22px; }
@media (min-width: 992px) {
  /* Collapsed = icon rail (2026-11-22 feedback): icons stay on the edge, labels become
     visually hidden (still the accessible name), tooltips come from admin-nav-v6.js. */
  html.admin-sidebar-collapsed #admin-sidebar { width: 68px; flex: 0 0 68px; padding: 0; }
  html.admin-sidebar-collapsed #admin-sidebar .admin-v6-scroll { padding: 8px 8px 12px; scrollbar-width: none; }
  html.admin-sidebar-collapsed #admin-sidebar .admin-v6-section-title { height: 1px; padding: 0; margin: 10px 6px; overflow: hidden; color: transparent; background: var(--an-border); }
  html.admin-sidebar-collapsed #admin-sidebar .admin-v6-nav > .admin-v6-section-title:first-child { display: none; }
  html.admin-sidebar-collapsed #admin-sidebar :is(.admin-v6-link, .admin-v6-group-toggle) { justify-content: center; gap: 0; padding: 10px 0; }
  html.admin-sidebar-collapsed #admin-sidebar :is(.admin-v6-link, .admin-v6-group-toggle) .material-symbols-outlined { font-size: 21px; }
  html.admin-sidebar-collapsed #admin-sidebar :is(.admin-v6-link > span:not(.material-symbols-outlined), .admin-v6-group-label) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  html.admin-sidebar-collapsed #admin-sidebar :is(.admin-v6-chevron, .admin-v6-group-items, .admin-v6-footer) { display: none; }
  html.admin-sidebar-collapsed #admin-sidebar .admin-v6-group-toggle.is-current { background: var(--an-active); }
}

/* Account menu (admin topbar): one size for every item, icons included. */
.portal-account-menu .dropdown-item { font-size: 13px; }
.portal-account-menu .dropdown-item > .material-symbols-outlined { font-size: 18px; }

/* ======================================================================
   Admin overview /admin (redesigned 2026-11-22)
   ====================================================================== */
.eduinfo-dash { max-width: 1280px; }
.eduinfo-dash__head { margin-bottom: 1.5rem; }
.eduinfo-dash__eyebrow { color: var(--color-text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.eduinfo-dash__meta { display: block; font-size: .875rem; margin-top: .15rem; }
.eduinfo-dash__section-title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: .75rem; }
.eduinfo-dash__group-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; color: var(--color-text); }
.eduinfo-dash__group-title .material-symbols-outlined { font-size: 20px; color: var(--color-brand); }
.eduinfo-dash__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.eduinfo-dash-tile {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.eduinfo-dash-tile:hover, .eduinfo-dash-tile:focus-visible { border-color: var(--color-brand-line); box-shadow: var(--shadow-sm); color: var(--color-text); }
.eduinfo-dash-tile__icon { grid-row: span 3; align-self: start; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-surface-alt); color: var(--color-text-muted); font-size: 22px; }
.eduinfo-dash-tile__n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eduinfo-dash-tile__label { font-weight: 600; font-size: .9rem; }
.eduinfo-dash-tile__hint { font-size: .78rem; color: var(--color-text-muted); }
.eduinfo-dash-tile.is-urgent { border-color: var(--color-brand-line); }
.eduinfo-dash-tile.is-urgent .eduinfo-dash-tile__icon { background: var(--color-brand-soft); color: var(--color-brand); }
.eduinfo-dash-tile.is-urgent .eduinfo-dash-tile__n { color: var(--color-brand); }
.eduinfo-dash-panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; }
.eduinfo-dash-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--color-border); background: var(--color-surface-alt); }
.eduinfo-dash-panel__head a { color: var(--color-brand); text-decoration: none; white-space: nowrap; }
.eduinfo-dash-list { list-style: none; margin: 0; padding: 0; }
.eduinfo-dash-list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--color-border); }
.eduinfo-dash-list li:last-child { border-bottom: 0; }
.eduinfo-dash-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); }
.eduinfo-dash-list__main:hover .eduinfo-dash-list__name { color: var(--color-brand); }
.eduinfo-dash-list__code { font-family: var(--font-mono, 'Fira Mono', monospace); font-size: .75rem; color: var(--color-text-muted); }
.eduinfo-dash-list__name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eduinfo-dash-list__date { font-size: .75rem; color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eduinfo-dash-news { padding: 10px 16px; border-bottom: 1px solid var(--color-border); }
.eduinfo-dash-news:last-child { border-bottom: 0; }
.eduinfo-dash-links { list-style: none; margin: 0; padding: 6px; }
.eduinfo-dash-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; font-size: .875rem; }
.eduinfo-dash-links a:hover, .eduinfo-dash-links a:focus-visible { background: var(--color-brand-soft); color: var(--color-brand); }
.eduinfo-dash-links .material-symbols-outlined { font-size: 19px; color: var(--color-text-muted); }
.eduinfo-dash-links a:hover .material-symbols-outlined { color: var(--color-brand); }
.eduinfo-dash__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 575.98px) {
  .eduinfo-dash-list li { flex-wrap: wrap; }
  .eduinfo-dash-list__main { flex-basis: 100%; }
}

/* ======================================================================
   Admin list filter panel (admin/partials/list-filters, 2026-11-22)
   ====================================================================== */
.eduinfo-list-filter { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.eduinfo-list-filter__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; padding: 16px; align-items: end; }
.eduinfo-list-filter__field.is-wide { grid-column: span 2; }
.eduinfo-list-filter .form-label { font-size: .8rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 4px; }
.eduinfo-list-filter .form-control, .eduinfo-list-filter .form-select { background-color: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.eduinfo-list-filter__actions { display: flex; flex-wrap: nowrap; gap: 8px; grid-column: span 2; }
.eduinfo-list-filter__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--color-border); background: var(--color-surface-alt); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.eduinfo-list-filter__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .875rem; color: var(--color-text-muted); }
.eduinfo-list-filter__summary strong { color: var(--color-text); }
.eduinfo-list-filter__chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px 2px 10px; border-radius: 999px; background: var(--color-brand-soft); color: var(--color-brand); font-size: .78rem; font-weight: 600; text-decoration: none; }
.eduinfo-list-filter__chip:hover, .eduinfo-list-filter__chip:focus-visible { background: var(--color-brand); color: var(--color-on-brand); }
.eduinfo-list-filter__chip .material-symbols-outlined { font-size: 15px; }
.eduinfo-list-filter__sort { display: flex; align-items: center; gap: 8px; }
.eduinfo-list-filter__sort .form-label { white-space: nowrap; }
.eduinfo-list-filter__sort .form-select { width: auto; min-width: 170px; }
@media (max-width: 575.98px) {
  .eduinfo-list-filter__field.is-wide, .eduinfo-list-filter__actions { grid-column: auto; }
  .eduinfo-list-filter__actions { flex-wrap: wrap; }
  .eduinfo-list-filter__grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   Review workflow tracker (admin subject detail, redesigned 2026-11-22)
   States: is-done (green), is-current (brand + ring), is-rejected (red), is-todo (blue tint).
   ====================================================================== */
.eduinfo-wf__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.eduinfo-wf__summary { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.eduinfo-wf__summary.is-done { background: var(--color-success-soft); color: var(--color-success-text); }
.eduinfo-wf__summary.is-current { background: var(--color-brand-soft); color: var(--color-brand); }
.eduinfo-wf__summary.is-rejected { background: var(--color-danger-soft); color: var(--color-danger-text); }
.eduinfo-wf__summary.is-todo { background: var(--color-info-soft); color: var(--color-info-text); }
.eduinfo-wf__scroll { overflow-x: auto; padding: 10px 0 4px; }
.eduinfo-wf__steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); max-width: 1000px; }
.eduinfo-wf__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; min-width: 0;
  --wf-color: var(--color-info-text); --wf-bg: var(--color-info-soft); --wf-line: var(--color-border-strong); }
/* connector from the previous step's centre to this one */
.eduinfo-wf__step + .eduinfo-wf__step::before { content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 4px; border-radius: 2px; background: var(--wf-line); z-index: 0; }
.eduinfo-wf__step.is-done { --wf-color: white; --wf-bg: var(--color-success-fill); --wf-line: var(--color-success-fill); }
.eduinfo-wf__step.is-current { --wf-color: white; --wf-bg: var(--color-brand-fill); --wf-line: var(--color-success-fill); }
.eduinfo-wf__step.is-rejected { --wf-color: white; --wf-bg: var(--color-danger-fill); --wf-line: var(--color-danger-fill); }
.eduinfo-wf__step.is-todo + .eduinfo-wf__step.is-todo::before,
.eduinfo-wf__step.is-rejected + .eduinfo-wf__step.is-todo::before { background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 8px, transparent 8px 13px); }
.eduinfo-wf__dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wf-bg); color: var(--wf-color); border: 2px solid var(--color-surface); box-shadow: 0 0 0 2px var(--wf-bg);
  font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1; }
.eduinfo-wf__step.is-todo .eduinfo-wf__dot { box-shadow: 0 0 0 2px var(--color-info-line, var(--color-border-strong)); }
.eduinfo-wf__step.is-current .eduinfo-wf__dot { box-shadow: 0 0 0 2px var(--wf-bg), 0 0 0 7px var(--color-brand-soft); }
.eduinfo-wf__dot .material-symbols-outlined { font-size: 21px; }
.eduinfo-wf__step.is-edge .eduinfo-wf__dot { width: 34px; height: 34px; margin-top: 3px; }
.eduinfo-wf__step.is-edge.is-todo .eduinfo-wf__dot { --wf-bg: var(--color-surface-alt); --wf-color: var(--color-text-muted); box-shadow: 0 0 0 2px var(--color-border-strong); }
.eduinfo-wf__name { margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--color-text); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.eduinfo-wf__step.is-current .eduinfo-wf__name { color: var(--color-brand); }
.eduinfo-wf__step.is-rejected .eduinfo-wf__name { color: var(--color-danger-text); }
.eduinfo-wf__role { margin-top: 2px; font-size: .72rem; color: var(--color-text-muted); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eduinfo-wf__meta { margin-top: 4px; font-size: .7rem; font-weight: 600; color: var(--color-text-subtle); }
.eduinfo-wf__step.is-done .eduinfo-wf__meta { color: var(--color-success-text); }
.eduinfo-wf__step.is-current .eduinfo-wf__meta { color: var(--color-brand); }
.eduinfo-wf__step.is-rejected .eduinfo-wf__meta { color: var(--color-danger-text); }
@media (prefers-reduced-motion: no-preference) {
  .eduinfo-wf__step.is-current .eduinfo-wf__dot { animation: eduinfo-wf-pulse 2.4s ease-in-out infinite; }
  @keyframes eduinfo-wf-pulse { 50% { box-shadow: 0 0 0 2px var(--wf-bg), 0 0 0 10px transparent; } }
}
@media (max-width: 575.98px) {
  /* Phones: vertical timeline instead of a horizontally scrolling row. */
  .eduinfo-wf__steps { grid-auto-flow: row; grid-auto-columns: auto; }
  .eduinfo-wf__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; text-align: left; padding: 0 0 18px; }
  .eduinfo-wf__step > :not(.eduinfo-wf__dot) { grid-column: 2; }
  .eduinfo-wf__dot { grid-row: 1 / span 4; justify-self: center; }
  .eduinfo-wf__name { margin-top: 2px; }
  .eduinfo-wf__step + .eduinfo-wf__step::before { content: none; }
  .eduinfo-wf__step:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 20px; bottom: -20px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--color-border-strong); z-index: 0; }
  .eduinfo-wf__step:has(+ .is-done)::after, .eduinfo-wf__step:has(+ .is-current)::after { background: var(--color-success-fill); }
  .eduinfo-wf__step:has(+ .is-rejected)::after { background: var(--color-danger-fill); }
  .eduinfo-wf__step.is-todo:has(+ .is-todo)::after, .eduinfo-wf__step.is-rejected:has(+ .is-todo)::after { background: repeating-linear-gradient(180deg, var(--color-border-strong) 0 8px, transparent 8px 13px); }
}
