/* Généré par scripts/build_frontend_css.py — ne pas modifier directement. */

/* Source : tokens/tokens-01.css */
:root {
  --cobalt-green: #3d9140;
  --lemon-yellow: #fff44f;
  --burnt-sienna: #e97451;
  --blue: #315ed6;
  --dictionary-blue: #0000ff;
  --ink: #101326;
  --muted: #4f587c;
  --line: #dee3ee;
  --surface: #ffffff;
  --surface-soft: #f8f9fe;
  --danger: #c92929;
  --green-soft: #ecf7ed;
  --yellow-soft: #fffbd1;
  --sienna-soft: #fff0ea;
  --blue-soft: #eef3ff;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(49, 94, 214, 0.12);
  --page-gutter: clamp(10px, 2vw, 32px);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-body: 1rem;
  --line-height-body: 1.5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --layer-decoration: 0;
  --layer-content: 1;
  --layer-sticky: 20;
}

/* Source : layouts/shell-01.css */
/* Component layout rules must never override the native hidden state used by JS. */
[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0, var(--surface-soft) 420px);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "❀  ·  ❀";
  position: fixed;
  z-index: var(--layer-decoration);
  color: rgba(201, 41, 41, 0.16);
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: 0.35em;
  pointer-events: none;
  animation: athena-leaves-drift 18s ease-in-out infinite alternate;
}

body::before {
  top: 96px;
  right: var(--page-gutter);
  transform: rotate(12deg);
}

body::after {
  bottom: 54px;
  left: var(--page-gutter);
  transform: rotate(-10deg);
  animation-delay: -9s;
}

.page-shell,
.legal-footer {
  position: relative;
  z-index: var(--layer-content);
}

.legal-footer {
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 100%;
}

@keyframes athena-leaves-drift {
  from { translate: 0 0; }
  to { translate: 0 8px; }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--layer-sticky);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 540px;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.motion-preference-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.motion-preference-button:hover,
.motion-preference-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.motion-preference-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.motion-preference-button[aria-pressed="true"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.accessibility-preferences {
  position: relative;
}

.accessibility-preferences > summary,
.accessibility-preferences button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.accessibility-preferences-controls {
  display: grid;
  gap: var(--space-2);
  min-width: min(22rem, calc(100vw - 2 * var(--page-gutter)));
  margin-top: var(--space-2);
}

.accessibility-preferences button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.accessibility-preferences :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.accessibility-preferences-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

body[data-readable-font] {
  font-family: Arial, Verdana, sans-serif;
}

body[data-large-text] {
  font-size: max(var(--text-body), 1.15rem);
}

body[data-spaced-text] {
  line-height: 1.75;
  letter-spacing: 0.035em;
  word-spacing: 0.12em;
}

body[data-high-contrast] {
  --ink: #000000;
  --muted: #202020;
  --line: #4a4a4a;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
}

.learning-game[data-readable-font] {
  font-family: Arial, Verdana, sans-serif;
}

.learning-game[data-large-text] {
  font-size: 1.15rem;
}

.learning-game[data-spaced-text] {
  line-height: 1.75;
  letter-spacing: 0.035em;
  word-spacing: 0.12em;
}

.learning-game[data-high-contrast] {
  border-color: #000000;
  background: #ffffff;
  color: #000000;
}

body[data-motion-preference="reduced"] *,
body[data-motion-preference="reduced"]::before,
body[data-motion-preference="reduced"]::after,
body[data-motion-preference="reduced"] *::before,
body[data-motion-preference="reduced"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

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

.brand-zone {
  display: flex;
  align-items: center;
}

.shell-menu-button {
  display: none;
}

.brand,
.profile-button,
.login-button,
.logout-button,
.button,
.notification-button,
.admin-view-button,
.role-link {
  min-height: 40px;
  border-radius: var(--radius);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1.22rem;
  font-weight: 950;
  color: var(--ink);
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(233, 116, 81, 0.16);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.role-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  justify-content: start;
  overflow: visible;
  padding: 2px 0;
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.role-link:hover {
  background: var(--surface-soft);
}

.role-nav.is-locked {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.role-icon,
.dashboard-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
}

.role-link.is-unavailable .role-icon,
.dashboard-card.is-unavailable .dashboard-icon,
.complete-menu-card.is-unavailable .complete-menu-icon {
  position: relative;
  background: #74777d;
  color: white;
}

.role-link.is-unavailable .role-icon::after,
.dashboard-card.is-unavailable .dashboard-icon::after,
.complete-menu-card.is-unavailable .complete-menu-icon::after {
  content: "×";
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  line-height: 1;
}

.role-link.is-unavailable {
  color: var(--muted);
  cursor: not-allowed;
}

.role-link.is-unavailable:hover {
  background: transparent;
}

.role-link.is-partial .role-icon {
  background: #9a6500;
}

.role-link[aria-current="page"] {
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
}

.role-link:focus-visible,
.dashboard-card:focus-visible,
.complete-menu-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Source : layouts/shell-02.css */

.shell-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(100% - 40px, 1180px);
  margin: 12px auto -12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.shell-breadcrumb a {
  color: var(--blue);
}

.role-label {
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 900;
}

.account-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 7px;
  width: 540px;
  max-width: 100%;
}

.profile-button,
.login-button,
.logout-button,
.button,
.notification-button,
.admin-view-button,
.logas-button,
.logas-pill,
.logas-exit-button,
.school-pill,
.time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}

.school-pill {
  min-height: 42px;
  padding: 8px 14px;
  color: #27304d;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(49, 94, 214, 0.07);
}

.school-switcher {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) auto;
  gap: 8px;
  align-items: center;
  flex: 0 1 310px;
  width: 310px;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(49, 94, 214, 0.07);
}

.school-switcher label {
  color: var(--burnt-sienna);
  font-size: 0.8rem;
  font-weight: 900;
}

.school-switcher select,
.school-switcher button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
}

.school-switcher select {
  min-width: 0;
  padding: 6px 10px;
  font-weight: 850;
}

.school-switcher button {
  padding: 6px 12px;
  background: var(--lemon-yellow);
  font-weight: 900;
  cursor: pointer;
}

.school-pill span {
  width: 14px;
  height: 14px;
  border: 5px solid #dce5ff;
  border-radius: 50%;
  background: var(--blue);
}

.profile-button {
  min-height: 42px;
  max-width: 160px;
  padding: 6px 10px;
  color: #445080;
  font-weight: 700;
}

.profile-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  color: var(--blue);
}

@media (min-width: 1201px) {
  .notification-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.mail-icon {
  position: relative;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.mail-icon::before,
.mail-icon::after {
  position: absolute;
  top: 2px;
  width: 13px;
  height: 2px;
  background: currentColor;
  content: "";
}

.mail-icon::before {
  left: 1px;
  transform: rotate(34deg);
  transform-origin: left center;
}

.mail-icon::after {
  right: 1px;
  transform: rotate(-34deg);
  transform-origin: right center;
}

.notification-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.notification-button.has-unread {
  border-color: color-mix(in srgb, var(--burnt-sienna), white 42%);
  background: var(--sienna-soft);
  color: #79331f;
}

.notification-button.has-unread strong {
  background: var(--burnt-sienna);
  color: white;
}

/* Source : layouts/shell-03.css */

.profile-button img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}

.login-button,
.logout-button,
.button {
  padding: 10px 18px;
}

.login-button,
.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.logout-button,
.button.secondary {
  color: var(--blue);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.admin-view-button {
  min-height: 42px;
  padding: 8px 14px;
  border-color: color-mix(in srgb, var(--burnt-sienna), white 45%);
  background: color-mix(in srgb, var(--burnt-sienna), white 86%);
  color: #79331f;
  font-weight: 950;
}

.admin-view-button.is-active {
  border-color: var(--burnt-sienna);
  background: var(--burnt-sienna);
  color: white;
}

.logas-button,
.logas-pill,
.logas-exit-button {
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 950;
}

.logas-button {
  border-color: color-mix(in srgb, var(--cobalt-green), white 50%);
  background: color-mix(in srgb, var(--cobalt-green), white 88%);
  color: #1f6b34;
}

.logas-pill {
  max-width: 280px;
  border-color: color-mix(in srgb, var(--burnt-sienna), white 35%);
  background: color-mix(in srgb, var(--burnt-sienna), white 86%);
  color: #79331f;
}

.logas-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logas-exit-form {
  margin: 0;
}

.logas-exit-button {
  border-color: var(--burnt-sienna);
  background: var(--burnt-sienna);
  color: white;
  cursor: pointer;
}

.logout-button {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.time-pill {
  min-height: 42px;
  padding: 7px 9px;
  color: #59628d;
  font-size: 0.78rem;
  font-weight: 760;
}

.messages {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
}

.message {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt-green);
  border-radius: var(--radius);
  background: var(--surface);
}

.message.error {
  border-left-color: var(--danger);
}

.page-shell {
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.page-shell:has(.trombi-page),
.page-shell:has(.timetable-page) {
  padding-top: 0;
}

.page-shell:has(.adult-subjects-page),
.page-shell:has(.chapter-builder-page),
.page-shell:has(.course-builder-page),
.page-shell:has(.logas-page),
.page-shell:has(.complete-menu-page) {
  padding-top: 8px;
}

.hero-band,
.page-heading,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--cobalt-green);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 38px 40px 32px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--cobalt-green);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 145, 64, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(233, 116, 81, 0.08), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-hero-copy {
  grid-column: 1;
}

.home-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: 2.75rem;
  font-weight: 950;
  line-height: 1.08;
}

.home-hero p {
  max-width: 980px;
  margin: 18px 0 0;
  color: #202642;
  font-size: 1.12rem;
  font-weight: 540;
  line-height: 1.55;
}

/* Source : layouts/shell-04.css */

.home-hero mark {
  padding: 0 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 244, 79, 0.86) 0);
  color: var(--ink);
  font-weight: 950;
}

.audience-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.audience-card,
.pedagogy-principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(16, 19, 38, 0.07);
}

.audience-card {
  min-height: 310px;
  padding: 22px;
  border-top: 5px solid var(--blue);
}

.audience-card h2,
.pedagogy-principle h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.audience-card h2 span,
.pedagogy-principle h2 span {
  width: 18px;
  height: 18px;
  border: 6px solid var(--blue-soft);
  border-radius: 50%;
  background: var(--blue);
}

.audience-card.is-student {
  border-top-color: var(--blue);
}

.audience-card.is-teacher {
  border-top-color: var(--cobalt-green);
}

.audience-card.is-teacher h2 span {
  border-color: var(--green-soft);
  background: var(--cobalt-green);
}

.audience-card.is-school {
  border-top-color: var(--burnt-sienna);
}

.audience-card.is-school h2 span {
  border-color: var(--sienna-soft);
  background: var(--burnt-sienna);
}

.audience-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 22px;
  color: #252b49;
  font-size: 1rem;
  line-height: 1.55;
}

.audience-card strong {
  color: var(--ink);
  font-weight: 950;
}

.pedagogy-principle {
  grid-column: 1;
  padding: 20px 22px;
  border-left: 5px solid var(--lemon-yellow);
}

.pedagogy-principle h2 span {
  border-color: #fff9b8;
  background: var(--lemon-yellow);
}

.home-dashboard-heading,
.home-public-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--cobalt-green);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 145, 64, 0.07), transparent 36%),
    linear-gradient(315deg, rgba(255, 244, 79, 0.18), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-dashboard-heading h1,
.home-public-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.12;
}

.home-dashboard-heading p,
.home-public-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.home-workbench {
  display: grid;
  grid-template-columns: minmax(440px, 1.35fr) minmax(300px, 0.86fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.home-widget-stack {
  display: grid;
  gap: 18px;
}

.home-widget {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.home-widget-timetable {
  grid-row: span 3;
  border-top-color: var(--cobalt-green);
}

.home-widget-wide {
  grid-column: span 1;
  border-top-color: var(--lemon-yellow);
}

.home-widget-note {
  border-top-color: var(--lemon-yellow);
}

.home-search-widget {
  border-top-color: var(--burnt-sienna);
}

.home-widget-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.home-widget-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.home-widget-head p,
.home-widget > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-widget-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 900;
}

/* Source : layouts/shell-05.css */

.home-mini-timetable {
  display: grid;
  grid-template-columns: 58px repeat(5, minmax(84px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6fb;
}

.home-mini-cell {
  min-width: 0;
  min-height: 72px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--burnt-sienna);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 145, 64, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(255, 244, 79, 0.24), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.error-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.error-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  font-weight: 950;
  line-height: 0.98;
}

.error-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.52;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.not-found-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(44, 101, 216, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(233, 116, 81, 0.12), transparent 42%),
    #fffef2;
  color: var(--ink);
}

.not-found-card strong {
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 950;
  line-height: 0.9;
}

.not-found-card span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.absence-slip {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(49, 94, 214, 0.08);
}

.absence-slip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.absence-slip-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.absence-slip-head strong {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--burnt-sienna), white 58%);
  border-radius: 999px;
  background: var(--sienna-soft);
  color: #79331f;
  font-size: 0.86rem;
  font-weight: 950;
}

.absence-slip dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.absence-slip dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.absence-slip dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.absence-slip dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.error-mini-board {
  display: grid;
  grid-template-columns: 62px repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf1f7;
}

.error-mini-board span,
.error-mini-board strong {
  display: grid;
  min-height: 48px;
  align-content: center;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.error-mini-board span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.error-mini-board strong {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-weight: 950;
}

.error-mini-board .is-missing {
  background: var(--sienna-soft);
  color: var(--danger);
}

.home-mini-day,
.home-mini-hour {
  display: grid;
  align-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

/* Source : layouts/shell-06.css */

.home-mini-day {
  min-height: 52px;
  text-align: center;
}

.home-mini-day strong,
.home-mini-hour strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.home-mini-day span,
.home-mini-hour span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.home-mini-slot {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 6px;
  background: rgba(238, 243, 255, 0.35);
}

.home-mini-slot.has-course {
  background: rgba(255, 255, 255, 0.72);
}

.home-mini-course {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.home-mini-course.tone-yellow {
  border-left-color: var(--lemon-yellow);
  background: var(--yellow-soft);
}

.home-mini-course.tone-green {
  border-left-color: var(--cobalt-green);
  background: var(--green-soft);
}

.home-mini-course.tone-sienna {
  border-left-color: var(--burnt-sienna);
  background: var(--sienna-soft);
}

.home-mini-course strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.15;
}

.home-mini-course span,
.home-mini-more {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.home-mini-more {
  display: inline-flex;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.home-empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: center;
}

.home-empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.home-empty-state span {
  max-width: 360px;
  color: var(--muted);
  font-weight: 650;
}

.home-sticky-note {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 16px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 244, 79, 0.52), rgba(255, 244, 79, 0.3)),
    #fff6a6;
}

.home-sticky-note a,
.home-task-list a,
.home-pill-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-sticky-note strong,
.home-task-list strong,
.home-pill-list strong {
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.home-sticky-note span,
.home-task-list span,
.home-pill-list span,
.home-sticky-note > span,
.home-task-list p,
.home-pill-list > span {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.4;
}

.home-task-list {
  display: grid;
  gap: 10px;
}

.home-task-list a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.home-task-list a:last-child {
  border-bottom: 0;
}

.home-task-list.is-compact a {
  padding: 8px 0;
}

.home-search-control {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.home-search-control input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.home-search-control > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-search-control button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

/* Source : layouts/shell-07.css */
.home-search-control button:hover,
.home-search-control button:focus-visible {
  background: var(--cobalt-green);
  border-color: var(--cobalt-green);
}

.home-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-pill-list a,
.home-pill-list > span {
  min-width: 210px;
  flex: 1 1 210px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.home-quick-pages {
  margin-top: 22px;
}

.dashboard-grid.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.legal-footer {
  display: flex;
  justify-content: center;
  padding: 0 20px 28px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.legal-footer a {
  padding: 8px 12px;
  border-radius: var(--radius);
}

@media (max-width: 1200px) {
  .evaluation-cms-grid {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  }

  .evaluation-cms-grid .evaluation-preview {
    grid-column: 1 / -1;
    position: static;
  }

  .topbar {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  }

  .account-zone {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    justify-content: start;
  }

  .role-nav {
    justify-content: end;
  }

  .home-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  }

  .home-widget-timetable {
    grid-row: span 2;
  }
}

.legal-grid,
.teacher-strip,
.student-trombi-grid,
.schedule-grid,
.workspace-grid {
  display: grid;
  gap: 14px;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card,
.trombi-heading,
.class-pill,
.trombi-summary article,
.teacher-card,
.student-card,
.schedule-slot,
.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  align-items: start;
}

.tool-panel {
  padding: 18px;
}

.tool-panel h2 {
  color: var(--ink);
  font-weight: 950;
}

.data-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.data-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.data-table tbody th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.table-group-row th {
  background: color-mix(in srgb, var(--cobalt-green), white 82%);
  color: #1f5522;
}

.bulletin-table td:nth-child(2),
.comment-table td:nth-child(4),
.comment-table td:nth-child(5),
.comment-table td:nth-child(6) {
  text-align: center;
}

.bulletin-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: end;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--cobalt-green);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 145, 64, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(255, 244, 79, 0.18), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.bulletin-heading h1 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
}

.bulletin-heading-actions,
.bulletin-filter-panel,
.bulletin-board-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* Source : components/shared-01.css */
.school-year-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.chapter-heading,
.student-chapter-heading,
.crossword-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--cobalt-green);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(61, 145, 64, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(255, 244, 79, 0.19), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.crossword-heading {
  border-top-color: var(--burnt-sienna);
}

.chapter-wallpaper-surface {
  --chapter-wallpaper-a: var(--cobalt-green);
  --chapter-wallpaper-b: var(--lemon-yellow);
  --chapter-wallpaper-c: var(--burnt-sienna);
  --chapter-wallpaper-d: var(--blue);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--chapter-wallpaper-a) 18%, transparent),
      transparent 52%,
      color-mix(in srgb, var(--chapter-wallpaper-c) 12%, transparent)
    ),
    var(
      --chapter-wallpaper-image,
      linear-gradient(
        135deg,
        var(--chapter-wallpaper-a),
        var(--chapter-wallpaper-b) 45%,
        var(--chapter-wallpaper-c) 78%,
        var(--chapter-wallpaper-d)
      )
    );
  background-position: center;
  background-size: cover;
}

.subject-card-icon {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  object-fit: contain;
  border-radius: 1rem;
}

.student-chapter-heading.chapter-wallpaper-surface {
  min-height: 230px;
  border-top-color: var(--chapter-wallpaper-a);
}

.chapter-card-wallpaper,
.subject-chapter-wallpaper,
.chapter-wallpaper-preview,
.chapter-preview-wallpaper {
  position: relative;
  overflow: hidden;
}

.chapter-card-wallpaper,
.subject-chapter-wallpaper {
  display: flex;
  min-height: 96px;
  align-items: flex-end;
  padding: 12px;
}

.chapter-card-wallpaper {
  margin: -16px -16px 14px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 14px 14px;
}

.subject-chapter-wallpaper {
  margin: -15px -15px 0;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 14px 14px;
}

.chapter-wallpaper-preview,
.chapter-preview-wallpaper {
  display: flex;
  min-height: 130px;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.chapter-wallpaper-preview {
  grid-row: span 2;
}

.chapter-preview-wallpaper {
  margin-bottom: 12px;
}

.chapter-card-wallpaper span,
.subject-chapter-wallpaper span,
.chapter-wallpaper-preview span,
.chapter-preview-wallpaper span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.chapter-heading h1,
.student-chapter-heading h1,
.crossword-heading h1 {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
}

.chapter-heading-actions,
.student-chapter-actions,
.crossword-heading-actions,
.chapter-toolbar,
.chapter-year-rail,
.chapter-subject-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chapter-heading-actions,
.student-chapter-actions,
.crossword-heading-actions {
  justify-content: flex-end;
}

.chapter-toolbar {
  justify-content: space-between;
  margin: 18px 0;
}

.chapter-year-rail,
.chapter-subject-rail {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chapter-year-rail a,
.chapter-subject-rail a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.chapter-year-rail a.is-selected,
.chapter-subject-rail a.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.technology-board {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.technology-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.technology-theme {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--cobalt-green);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Source : pages/domain-19.css */

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: 2.15rem;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.lede {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--burnt-sienna), white 55%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--burnt-sienna), white 88%);
  color: #79331f;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.role-switcher {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.role-switcher.compact {
  grid-template-columns: auto minmax(150px, 190px) auto;
  align-items: center;
  min-width: 0;
}

.role-switcher label,
.auth-form label,
.auth-form legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.role-switcher select,
.role-switcher button,
.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.role-switcher select,
.auth-form input,
.auth-form select {
  padding: 8px 10px;
}

.role-switcher button {
  background: var(--lemon-yellow);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.dashboard-grid,
.entry-grid,
.metric-grid {
  display: grid;
  gap: 14px;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dashboard-card,
.entry-card,
.metric-card,
.profile-panel,
.auth-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
}

.dashboard-card > * {
  min-width: 0;
}

.dashboard-title,
.navigation-card-title {
  font-weight: 800;
}

.dashboard-status,
.dashboard-card .navigation-card-status {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-card.is-unavailable,
.complete-menu-card.is-unavailable {
  cursor: not-allowed;
  border-color: #c8cbd1;
  background: #f5f5f6;
  color: var(--muted);
}

.complete-menu-card.is-unavailable:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(49, 94, 214, 0.06);
}

.dashboard-card.is-partial,
.complete-menu-card.is-partial {
  border-left-color: #9a6500;
}

.navigation-card-explanation {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-card .navigation-card-explanation {
  grid-column: 1 / -1;
}

.section-block {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  min-width: 0;
}

.section-heading > * {
  min-width: 0;
}

.complete-menu-page {
  display: grid;
  gap: 16px;
}

.complete-menu-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(49, 94, 214, 0.08);
}

.complete-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.complete-menu-grid--dense {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.complete-menu-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(49, 94, 214, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Source : pages/domain-34.css */

.evaluation-image-resource figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.evaluation-answer-field textarea,
.evaluation-answer-upload input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
}

.evaluation-answer-field textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.evaluation-answer-upload input[type="file"] {
  padding: 10px;
}

.evaluation-answer-choices {
  display: grid;
  gap: 8px;
}

.evaluation-answer-choices label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 750;
}

.evaluation-readonly-answer {
  padding: 12px;
  border-left: 4px solid var(--lemon-yellow);
  background: var(--surface-soft);
}

.document-analysis-report {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--burnt-sienna);
  border-radius: 8px;
  background: white;
}

.document-analysis-report > header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.document-analysis-report > header span,
.document-analysis-files article > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-analysis-report h2,
.document-analysis-report h3 {
  margin: 3px 0 0;
}

.document-analysis-report .is-consistent {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--cobalt-green);
  font-size: 0.8rem;
}

.document-analysis-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.document-analysis-files article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: var(--surface-soft);
}

.document-analysis-files article strong {
  display: block;
  overflow-wrap: anywhere;
}

.document-analysis-files article p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.document-analysis-warning {
  margin: 0;
  padding: 9px 11px;
  border-left: 4px solid var(--burnt-sienna);
  background: var(--sienna-soft);
  color: #742f1d;
  font-weight: 750;
}

.evaluation-student-footer {
  box-sizing: border-box;
  position: sticky;
  z-index: 8;
  bottom: 10px;
  display: flex;
  min-width: 0;
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

@media print {
  .topbar,
  .messages,
  .no-print {
    display: none;
  }

  body,
  .page-shell {
    background: white;
  }

  .credential-ticket {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-badge {
    width: 42px;
    height: 42px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .shell-menu-button {
    position: relative;
    display: inline-grid;
    grid-template-columns: 24px auto;
    gap: 7px;
    align-items: center;
    min-width: 46px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }

  .shell-menu-icon {
    display: grid;
    gap: 4px;
  }

  .shell-menu-icon span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .shell-menu-button > strong {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.7rem;
  }

  .shell-menu-button.has-unread > strong {
    background: var(--burnt-sienna);
    color: white;
  }

  .topbar.is-menu-open .shell-menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.is-menu-open .shell-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-menu-open .shell-menu-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .topbar:not(.is-menu-open) [data-shell-menu-panel] {
    display: none;
  }

  .role-nav,
  .account-zone {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-zone {
    justify-content: start;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .school-pill,
  .school-switcher,
  .admin-view-button {
    grid-column: auto;
    justify-self: stretch;
  }

  .school-switcher {
    grid-template-columns: 1fr;
  }

  .role-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    padding-top: 6px;
  }

  .role-link {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
  }

  .home-dashboard-heading,
  .home-public-panel,
  .home-workbench {
    grid-template-columns: 1fr;
  }

  .home-dashboard-heading .role-switcher {
    width: 100%;
  }

  .home-widget-timetable {
    grid-row: auto;
  }

  .home-mini-timetable {
    grid-template-columns: 56px repeat(5, minmax(110px, 1fr));
  }

  .hero-band,
  .page-heading,
  .auth-layout,
  .bulletin-heading,
  .chapter-heading,
  .crossword-heading,
  .competency-heading,
  .course-heading,
  .evaluation-heading,
  .student-chapter-heading,
  .trombi-heading,
  .notification-card,
  .textbook-heading,
  .timetable-heading,
  .timetable-toolbar,
  .settings-heading,
  .settings-layout,
  .council-toolbar,
  .council-hero,
  .council-grid,
  .error-page {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .council-hero-facts,
  .council-decision-card header {
    grid-template-columns: 1fr;
  }

  .council-toolbar .button {
    width: 100%;
  }

  .council-term-rail {
    justify-content: flex-start;
  }

  .role-switcher {
    min-width: 0;
  }

  .grades-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grades-filters button {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding: 28px;
  }

  .home-hero h1 {
    font-size: 2.35rem;
  }

  .audience-grid,
  .legal-grid,
  .bulletin-metrics,
  .chapter-layout,
  .crossword-layout,
  .competency-layout,
  .referential-program-shell,
  .course-layout,
  .evaluation-layout,
  .student-chapter-layout,
  .trombi-summary,
  .workspace-grid,
  .attendance-layout,
  .textbook-layout,
  .class-comment-panel,
  .profile-hero,
  .profile-activity-layout,
  .profile-followup-grid,
  .profile-followup-shell,
  .filer-browser,
  .class-reset-form {
    grid-template-columns: 1fr;
  }

  .filer-sidebar {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    grid-template-columns: none;
    min-height: auto;
    overflow-x: auto;
  }

  .student-trombi-grid,
  .schedule-grid,
  .profile-facts,
  .profile-score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .role-switcher.compact {
    grid-template-columns: 1fr;
  }

  .month-board {
    grid-template-columns: 1fr 1fr;
  }

  .course-guide {
    position: static;
  }

  .chapter-preview,
  .student-chapter-side,
  .crossword-clue-panel {
    position: static;
  }

  .evaluation-preview {
    position: static;
  }

  .competency-side {
    position: static;
  }

  .referential-index {
    position: static;
  }

  .referential-level-list {
    max-height: none;
  }

  .evaluation-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evaluation-option-row,
  .evaluation-date-row,
  .evaluation-block-editor,
  .evaluation-schedule-editor,
  .evaluation-worker-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-game-editor,
  .chapter-wallpaper-editor,
  .chapter-term-editor,
  .chapter-link-editor,
  .chapter-publication-editor,
  .chapter-date-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technology-theme-grid {
    grid-template-columns: 1fr;
  }

  .competency-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competency-map-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learning-game-page *,
  .crossword-page * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.learning-circuit-editor,
.learning-circuit-palette,
.learning-circuit-editor ol,
.learning-circuit-editor ul,
.learning-circuit-editor fieldset {
  display: grid;
  gap: .65rem;
}

.learning-circuit-palette {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.learning-circuit-editor li {
  align-items: center;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #c7d0da);
  border-radius: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  padding: .65rem;
}

.learning-circuit-editor fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

@media (max-width: 36rem) {
  .learning-circuit-editor fieldset {
    grid-template-columns: 1fr;
  }
}

/* Source : pages/domain-35.css */

@media (max-width: 560px) {
  .page-shell,
  .messages {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar {
    padding: 14px;
  }

  .profile-button span {
    display: none;
  }

  .notification-button span {
    display: none;
  }

  .notification-button .mail-icon,
  .notification-button strong {
    display: grid;
  }

  .logas-search div {
    grid-template-columns: 1fr;
  }

  .logas-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .logas-card form {
    grid-column: 1 / -1;
  }

  .logas-card button {
    width: 100%;
  }

  .logas-card img {
    width: 44px;
    height: 44px;
  }

  .role-nav {
    grid-template-columns: 1fr 1fr;
  }

  .role-link {
    font-size: 0.92rem;
  }

  .grades-filters {
    grid-template-columns: 1fr;
  }

  .grades-filters button {
    grid-column: auto;
  }

  .grades-board-heading > span {
    width: 100%;
    justify-content: center;
  }

  .home-hero h1,
  .home-dashboard-heading h1,
  .home-public-panel h1,
  .bulletin-heading h1,
  .chapter-heading h1,
  .crossword-heading h1,
  .competency-heading h1,
  .course-heading h1,
  .evaluation-heading h1,
  .student-chapter-heading h1,
  .trombi-heading h1,
  .timetable-heading h1,
  .page-heading h1,
  .auth-copy h1 {
    font-size: 1.72rem;
  }

  .home-hero {
    padding: 18px;
    border-radius: 18px;
  }

  .error-page {
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .error-copy h1 {
    font-size: 2.25rem;
  }

  .error-actions,
  .absence-slip-head {
    align-items: stretch;
  }

  .error-actions .button {
    width: 100%;
  }

  .referential-competency-title {
    display: grid;
  }

  .referential-level-badges {
    justify-content: flex-start;
  }

  .absence-slip {
    padding: 16px;
  }

  .absence-slip dl div {
    grid-template-columns: 1fr;
  }

  .home-dashboard-heading,
  .home-public-panel,
  .home-widget {
    padding: 16px;
  }

  .home-widget-head {
    display: grid;
  }

  .home-mini-timetable {
    grid-template-columns: 54px repeat(5, minmax(122px, 1fr));
  }

  .audience-card {
    min-height: auto;
    padding: 18px;
  }

  .trombi-heading,
  .evaluation-student-heading,
  .bulletin-heading,
  .chapter-heading,
  .chapter-toolbar,
  .competency-heading,
  .competency-toolbar,
  .referential-program-head,
  .course-heading,
  .bulletin-filter-panel,
  .bulletin-board-heading,
  .notification-card,
  .textbook-heading,
  .timetable-heading,
  .timetable-toolbar,
  .crossword-heading,
  .evaluation-heading,
  .evaluation-toolbar,
  .student-chapter-heading,
  .student-trombi-grid,
  .schedule-grid,
  .teacher-strip,
  .month-board {
    grid-template-columns: 1fr;
  }

  .evaluation-student-status {
    min-width: 0;
  }

  .evaluation-published-result,
  .evaluation-published-result dl {
    align-items: flex-start;
    flex-direction: column;
  }

  .evaluation-start-panel,
  .evaluation-student-block header,
  .document-analysis-report > header {
    align-items: stretch;
    flex-direction: column;
  }

  .competency-form {
    grid-template-columns: 1fr;
  }

  .evaluation-form,
  .evaluation-option-row,
  .evaluation-date-row,
  .evaluation-block-editor,
  .evaluation-link-editor,
  .evaluation-schedule-editor,
  .evaluation-worker-editor,
  .evaluation-card dl {
    grid-template-columns: 1fr;
  }

  .chapter-form,
  .chapter-game-editor,
  .chapter-wallpaper-editor,
  .chapter-term-editor,
  .chapter-link-editor,
  .chapter-publication-editor,
  .chapter-date-row,
  .chapter-card dl,
  .crossword-scorebar,
  .crossword-answer-panel {
    grid-template-columns: 1fr;
  }

  .evaluation-heading-actions,
  .evaluation-submit {
    width: 100%;
  }

  .chapter-heading-actions,
  .student-chapter-actions,
  .crossword-heading-actions,
  .chapter-submit {
    width: 100%;
  }

  .evaluation-link-grid,
  .evaluation-class-grid {
    grid-template-columns: 1fr;
  }

  .chapter-link-grid,
  .chapter-class-grid,
  .chapter-card-grid,
  .technology-theme-grid,
  .student-competency-grid {
    grid-template-columns: 1fr;
  }

  .competency-link-grid,
  .competency-card-grid {
    grid-template-columns: 1fr;
  }

  .timetable-matrix {
    grid-template-columns: 70px repeat(5, minmax(150px, 1fr));
  }

  .entry-head {
    display: grid;
  }

  .entry-head span {
    max-width: 100%;
    text-align: left;
  }

  .notification-actions,
  .notification-heading form,
  .notification-filters form {
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-self: stretch;
  }

  .notification-actions a,
  .notification-actions form,
  .notification-actions button,
  .notification-heading button {
    width: 100%;
  }

  .textbook-heading-actions,
  .bulletin-heading-actions,
  .course-heading-actions,
  .bulletin-board-heading .button,
  .textbook-submit,
  .replicate-form,
  .replicate-form button {
    width: 100%;
  }

  .textbook-form,
  .course-form,
  .course-resource-editor,
  .course-publication-editor,
  .course-date-row,
  .chapter-form,
  .chapter-game-editor,
  .chapter-wallpaper-editor,
  .chapter-term-editor,
  .chapter-link-editor,
  .chapter-publication-editor,
  .chapter-date-row,
  .homework-editor,
  .template-editor,
  .textbook-entry header {
    grid-template-columns: 1fr;
  }

  .fact-list div,
  .profile-panel,
  .profile-identity,
  .feature-row,
  .timeline-list article {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-facts,
  .profile-score-grid,
  .profile-chart {
    grid-template-columns: 1fr;
  }

  .filer-sidebar,
  .filer-grid,
  .filer-explorer-grid,
  .filer-file-list,
  .profile-followup-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .profile-term-selector {
    width: 100%;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .year-picker,
  .calendar-fields,
  .calendar-fields label:nth-child(4),
  .calendar-fields label:nth-child(5) {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .calendar-term-grid {
    grid-template-columns: 1fr;
  }

  .schedule-toggle {
    width: 100%;
  }

  .schedule-toggle a {
    flex: 0 0 auto;
  }

  .profile-chart-column {
    min-height: 150px;
  }

  .data-table {
    min-width: 720px;
    font-size: 0.84rem;
  }
}
