/* Product shell, course cards, login and briefing. Player/review styles remain scoped. */
/* Page background (18/11/2026): the orange of the book in the logo, so the
   white menu, panels and cards stand out from it. --nexo-page is the page
   itself; --nexo-paper is now only the light fill inside panels (table
   headers, empty states, progress tracks), in a warm tone that goes with the
   page. High contrast keeps a white page: black text on white. */
:root {
  --nexo-page: #e99b5e;
}
:root:has(body.high-contrast) {
  --nexo-page: #ffffff;
}
/* The end of a page shorter than the window is the page too. */
html:has(.shell.moodle-layout) {
  background: var(--nexo-page);
}
.shell.moodle-layout {
  --nexo-paper: #fcf4ec;
  --nexo-line: #f0e3d8;
  --nexo-muted: #2f3a46;
  background: var(--nexo-page);
}
/* Directly on the page, the orange of labels and of the chosen tab would
   disappear into the background: there they use the dark text color. Inside
   a white panel they keep the orange. */
.moodle-layout :is(.studio-header, .heading) .eyebrow {
  color: var(--ink);
}
/* An error message can appear directly on the page: its red is dark enough to
   be read there too (5.1:1 on the page, 11:1 on white). :where() keeps the
   weight of the rules it replaces (styles.css, factory.css). */
:where(.moodle-layout) :is(.error, .field-error),
:where(.moodle-layout) .factory :is(.error, [role="alert"]) {
  color: #6f1a0d;
}
.moodle-layout main.content {
  --nexo-tab-mark: var(--nexo-navy);
}
.moodle-layout main.content :is(.panel, dialog) {
  --nexo-tab-mark: var(--nexo-accent);
}
.moodle-layout .moodle-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  min-height: 0;
  padding: 18px max(24px, calc((100vw - 1280px) / 2)) 0;
  border-top: 0;
  border-bottom: 1px solid var(--nexo-line);
}
.moodle-layout .moodle-brand {
  grid-column: 1;
  grid-row: 1;
  width: max-content;
  max-width: 100%;
  padding: 0;
  min-height: 0;
  gap: 3px;
}
.moodle-layout .moodle-brand img {
  width: 124px;
}
.moodle-layout .moodle-brand > span {
  font-size: 12px;
  letter-spacing: 0.035em;
}
.moodle-layout .moodle-nav {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  gap: 4px;
  padding: 0 0 8px;
  overscroll-behavior-inline: contain;
}
.moodle-layout .moodle-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 10px 13px;
  font-size: 15px;
}
.moodle-layout .moodle-nav button:hover {
  background: #f1f4f7;
  color: var(--ink);
}
.moodle-layout .moodle-nav button[aria-current="page"] {
  background: #fff1e6;
  color: #a43b08;
}
.moodle-layout .moodle-user {
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.moodle-layout .moodle-user button {
  padding: 8px 10px;
  border-radius: 0;
  white-space: nowrap;
}
.moodle-layout .moodle-user .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
  background: #ecf1f7;
}
.moodle-layout #toggle-contrast {
  font-size: 19px;
  min-width: 38px;
}
.moodle-layout main.content {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 24px auto 56px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.moodle-layout .moodle-context {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 1.5;
}
.moodle-layout .moodle-context > span:first-child {
  color: var(--nexo-muted);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

/* Photography is editorial context, with discreet source links. */
.moodle-layout .nexo-course-card {
  border: 1px solid var(--nexo-line);
  border-radius: 0;
  min-width: 0;
}
.nexo-course-card .course-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #e9eef2;
}
.nexo-course-card .course-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.nexo-course-card .course-photo-credit {
  position: absolute;
  inset: auto 8px 8px auto;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  border-radius: 0;
  background: #0c305bed;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}
.nexo-course-card .course-photo-credit:hover {
  text-decoration: underline;
}
.moodle-layout .nexo-course-card .card-body {
  padding: 22px;
  min-width: 0;
}
.moodle-layout .nexo-course-card h3 {
  font-size: 19px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.nexo-course-card .card-body > p {
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.nexo-course-card .card-meta {
  font-size: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.nexo-course-card .card-meta > span + span {
  padding-left: 12px;
  border-left: 1px solid #d4dce6;
}
.nexo-course-card .badge {
  background: #edf3f8;
  color: #1c3349;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.nexo-course-card .badge.draft {
  color: #8c450f;
  background: #fff3e6;
}
.nexo-course-card progress {
  accent-color: #0c305b;
}
.moodle-layout .nexo-course-card .secondary {
  min-height: 44px;
  border-radius: 0;
  border-color: #cbd6e2;
}
.moodle-layout .nexo-course-card .secondary:hover {
  background: #f0f4f8;
}

/* The briefing owns its layout instead of inheriting the legacy Moodle stack. */
.moodle-layout .nexo-builder {
  min-width: 0;
}
.moodle-layout .nexo-builder .studio-header {
  margin-bottom: 28px;
  align-items: flex-end;
  gap: 20px;
}
.moodle-layout .nexo-builder .studio-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(27px, 3vw, 36px);
}
.moodle-layout .nexo-builder .studio-header p {
  font-size: 15px;
}
.moodle-layout .nexo-builder .studio-mode {
  background: #eef2f7;
  border: 1px solid #d9e2eb;
  color: #1c3349;
  padding: 8px 12px;
  border-radius: 0;
  white-space: normal;
  line-height: 1.5;
}
.moodle-layout .nexo-builder .studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 24px;
  align-items: start;
}
.moodle-layout .nexo-builder .studio-rail {
  grid-column: 1 / -1;
  position: static;
  margin: 0;
  padding: 18px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--nexo-line);
  border-radius: 0;
}
.nexo-builder .studio-rail-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 15px;
}
.nexo-builder .studio-rail-title span {
  margin: 0;
  font-size: 14px;
}
.nexo-builder #studio-progress {
  width: 100%;
  height: 4px;
  margin: 12px 0;
  accent-color: var(--nexo-navy);
}
.moodle-layout .nexo-builder .studio-rail .wizard-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  flex-direction: initial;
  overflow-x: auto;
  gap: 4px;
  padding: 3px;
  overscroll-behavior-inline: contain;
}
.moodle-layout .nexo-builder .studio-rail .wizard-steps button {
  flex: initial;
  width: auto;
  min-width: 0;
  min-height: 66px;
  padding: 10px 8px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--nexo-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.moodle-layout .nexo-builder .studio-rail .wizard-steps button:hover {
  background: #f4f6f9;
}
.moodle-layout .nexo-builder .studio-rail .wizard-steps button.active {
  border-color: #d8e2ed;
  background: #edf3f8;
  color: var(--ink);
}
.moodle-layout .nexo-builder .wizard-steps .step-dot {
  width: 25px;
  height: 25px;
  background: #fff;
  color: var(--nexo-muted);
  border-color: #c6d1de;
}
.moodle-layout .nexo-builder .wizard-steps button.active .step-dot,
.moodle-layout .nexo-builder .wizard-steps button.complete .step-dot {
  background: var(--nexo-navy);
  border-color: var(--nexo-navy);
  color: #fff;
}
.nexo-builder .wizard-steps small {
  color: var(--nexo-muted);
  margin-top: 3px;
  font-size: 12px;
}
.nexo-builder .studio-main .wizard-progress {
  margin: 0 0 14px;
  min-height: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}
.moodle-layout .nexo-builder .studio-main .wizard-panel {
  padding: 28px;
  margin: 0;
  border: 1px solid var(--nexo-line);
  border-radius: 0;
  box-shadow: none;
}
.moodle-layout .nexo-builder .wizard-panel > .badge {
  color: var(--nexo-muted);
  background: #f0f3f6;
  font-size: 12px;
}
.moodle-layout .nexo-builder .wizard-panel h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 14px;
}
.nexo-builder .studio-main .wizard-panel > .muted {
  margin-bottom: 20px;
}
.nexo-builder .studio-main input,
.nexo-builder .studio-main textarea,
.nexo-builder .studio-main select {
  border-color: #b4c1cf;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  font-size: 15px;
}
.nexo-builder .studio-main :is(input, textarea)::placeholder {
  color: #627182;
  opacity: 1;
}
.nexo-builder .studio-main label {
  font-size: 15px;
  margin-top: 20px;
}
.moodle-layout .nexo-builder .studio-tip {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #eadbcd;
  border-radius: 0;
  background: #fff8f0;
  color: #65533f;
  font-size: 15px;
}
.nexo-builder .studio-tip b {
  color: #624b33;
}
.moodle-layout .nexo-builder .field-note {
  font-size: 14px !important;
  line-height: 1.6;
}
.moodle-layout .nexo-builder .skill-pillars > div,
.moodle-layout .nexo-builder .learning-flow {
  border-color: var(--nexo-line);
  background: #f5f7fa;
}
.nexo-builder .learning-flow > span {
  color: var(--nexo-muted);
}
.nexo-builder .learning-flow > span + span {
  border-color: var(--nexo-line);
}
.nexo-builder .learning-flow b,
.moodle-layout .nexo-builder .studio-main .wizard-footer {
  max-width: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--nexo-line);
  border-radius: 0;
  gap: 12px;
}
.nexo-builder .wizard-footer button {
  min-height: 44px;
  border-radius: 0;
}
.nexo-builder #wizard-next {
  margin-left: auto;
}
.moodle-layout .nexo-builder .studio-preview {
  display: block;
  position: sticky;
  top: 24px;
  max-width: none;
  margin: 34px 0 0;
  padding: 20px;
  border: 1px solid var(--nexo-line);
  border-radius: 0;
}
.nexo-builder .studio-preview .eyebrow {
  font-size: 12px;
  letter-spacing: 0.055em;
}
.nexo-builder .preview-photo {
  margin: 16px 0 18px;
  min-width: 0;
}
.nexo-builder .preview-photo img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 0;
  background: #e9eef2;
}
.nexo-builder .preview-photo figcaption {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nexo-muted);
}
.nexo-builder .preview-photo a {
  color: var(--nexo-muted);
  text-underline-offset: 2px;
}
.moodle-layout .nexo-builder .studio-preview h3 {
  font-size: 20px;
}
.nexo-builder .preview-metrics {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.nexo-builder .preview-metrics b {
  background: #f1f4f8;
  color: #1c3349;
  border: 0;
  border-radius: 0;
}
.nexo-builder .preview-divider {
  margin: 20px 0;
}
.nexo-builder .formative-note {
  background: #eef3f8;
  color: #1c3349;
  border-radius: 0;
  line-height: 1.7;
}
.nexo-builder .formative-note small {
  color: var(--nexo-muted);
}
.moodle-layout .nexo-builder .wizard-ai {
  background: #edf3f8;
  border-color: #d5e0ec;
  color: var(--ink);
}

/* A real photograph welcomes people before sign-in. */
.nexo-login {
  --green: #0c305b;
  --ink: #0c305b;
  --muted: #526173;
}
.nexo-login .login-art {
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 44px;
  background: #e4e9ed;
  isolation: isolate;
}
.nexo-login .login-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 40%;
  z-index: -1;
}
.nexo-login .login-welcome {
  padding: 28px;
  max-width: 440px;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 28px #0c305b15;
}
.nexo-login .login-welcome h2 {
  font-size: 30px;
  font-weight: 650;
}
.nexo-login .login-welcome p {
  font-size: 15px;
  color: var(--nexo-muted);
  margin-bottom: 20px;
}
.nexo-login .login-principles {
  border-top-color: #dfe5ec;
  padding-top: 18px;
  gap: 16px;
  color: var(--ink);
  font-size: 14px;
}
.nexo-login .login-image-credit {
  inset: 18px auto auto 18px;
  background: #0c305bf2;
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 0;
  text-decoration: none;
}
.nexo-login .login-image-credit:hover {
  text-decoration: underline;
}
.nexo-login .login-form {
  max-width: 600px;
  padding: 48px clamp(28px, 4vw, 64px);
}
.nexo-login .privacy-completion-report {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nexo-login .privacy-completion-report:focus {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.nexo-login .login-form h1 {
  color: var(--ink);
  font-weight: 650;
}
.nexo-login .brand.nexo-brand {
  width: 220px;
}
.nexo-login .login-form input {
  background: #fff;
  border-color: #a6b5c6;
  border-radius: 0;
}
.nexo-login .login-form button[type="submit"] {
  background: #0c305b;
  border-radius: 0;
}
.nexo-login .login-form button[type="submit"]:hover {
  background: #164477;
}
.nexo-login .login-link {
  color: #a43b08;
}
.nexo-login .login-form .login-footer {
  margin-top: 24px;
}
.nexo-login #login-forgot-password {
  margin-top: 6px;
}
.nexo-login .login-resources {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d0d7de;
  text-align: center;
}
.nexo-login .login-resources .login-link {
  font-weight: 600;
  color: var(--ink);
}
.nexo-login .login-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  margin-top: 6px;
}
.nexo-login .login-legal-links a {
  color: var(--ink);
  text-decoration: underline;
}
.nexo-login .login-legal-links span {
  color: var(--nexo-muted);
}

@media (max-width: 1000px) {
  .moodle-layout .nexo-builder .studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .moodle-layout
    .nexo-builder
    :is(.studio-rail, .studio-main, .studio-preview) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .moodle-layout .nexo-builder .studio-preview {
    position: static;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
  }
  .nexo-builder .studio-preview > .eyebrow {
    grid-column: 1 / -1;
  }
  .nexo-builder .studio-preview .preview-photo {
    grid-column: 1;
    grid-row: 2 / 10;
  }
  .nexo-builder .studio-preview .preview-photo img {
    height: 230px;
  }
  .nexo-builder .studio-preview > :not(.eyebrow):not(.preview-photo) {
    grid-column: 2;
  }
  .nexo-builder .studio-preview > h3 {
    margin-top: 16px;
  }
  .moodle-layout .nexo-builder .studio-mode {
    display: none;
  }
}
@media (max-width: 620px) {
  .moodle-layout .moodle-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 0;
    gap: 12px;
  }
  .moodle-layout .moodle-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .moodle-layout .moodle-user {
    grid-column: 1;
    grid-row: 2;
    justify-content: space-between;
    gap: 4px;
  }
  .moodle-layout .moodle-user button {
    font-size: 14px;
    padding: 7px 8px;
    white-space: normal;
  }
  .moodle-layout .moodle-user .avatar {
    display: none;
  }
  .moodle-layout .moodle-nav {
    grid-row: 3;
    gap: 2px;
  }
  .moodle-layout .moodle-nav button {
    padding-inline: 11px;
  }
  .moodle-layout main.content {
    width: calc(100% - 32px);
    margin-top: 20px;
    margin-bottom: 32px;
  }
  .moodle-layout .moodle-context {
    margin-bottom: 18px;
    gap: 6px 16px;
  }
  .moodle-layout .nexo-builder .studio-header {
    margin-bottom: 22px;
  }
  .moodle-layout .nexo-builder .studio-header p {
    font-size: 15px;
  }
  .moodle-layout .nexo-builder .studio-rail {
    padding: 14px 10px;
  }
  .nexo-builder .studio-rail-title {
    padding-inline: 4px;
  }
  .moodle-layout .nexo-builder .studio-layout {
    gap: 20px;
  }
  .moodle-layout .nexo-builder .studio-main .wizard-panel {
    padding: 20px;
  }
  .moodle-layout .nexo-builder .wizard-panel h2 {
    font-size: 23px;
  }
  .nexo-builder .studio-main :is(input, textarea, select) {
    font-size: 16px;
  }
  .moodle-layout .nexo-builder .studio-main .wizard-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nexo-builder .wizard-footer > span:empty {
    display: none;
  }
  .moodle-layout .nexo-builder .studio-preview {
    display: block;
    padding: 20px;
  }
  .nexo-builder .studio-preview .preview-photo img {
    height: 160px;
  }
  .nexo-builder .studio-preview > h3 {
    margin-top: 0;
  }
  .nexo-login .login-form {
    padding: 32px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moodle-layout :is(.moodle-nav, .wizard-steps) {
    scroll-behavior: auto;
  }
}
body.high-contrast .moodle-layout .moodle-context,
body.high-contrast .moodle-layout .moodle-context > span,
body.high-contrast .nexo-builder :is(.field-note, .muted, label, small),
body.high-contrast .nexo-course-card :is(.card-meta, p, small) {
  color: #152b43;
}

/* Course cover chosen by the administrator. */
.cover-preview {
  max-width: 360px;
  margin: 12px 0;
}
.cover-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 1px solid var(--nexo-line);
  border-radius: 0;
  color: #0a1726;
}
.cover-dialog::backdrop {
  background: #0a172699;
}

/* Course builder: the sources gathered so far and the files just read. */
.sources-meter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--nexo-line);
  background: #fff;
}
.sources-meter progress {
  flex: 0 0 160px;
  height: 10px;
}
.sources-meter span {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.5;
  color: #0a1726;
}
.sources-meter.short {
  border-color: var(--nexo-orange);
  background: var(--nexo-soft);
}
.needs-attention > summary {
  color: var(--nexo-orange-hover);
  font-weight: 700;
}
.import-results {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}
.import-results:empty {
  display: none;
}
.import-results li {
  position: relative;
  padding: 4px 0 4px 24px;
  overflow-wrap: anywhere;
}
.import-results li::before {
  position: absolute;
  left: 0;
}
.import-results li.ok::before {
  content: "✓";
  color: #137333;
}
.import-results li.failed {
  color: #8a2b14;
}
.import-results li.failed::before {
  content: "✕";
}
.import-results li.reading::before {
  content: "…";
}

/* Course builder: choosing the cover. */
.cover-picker {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 8px 24px;
  align-items: start;
}
.cover-picker .cover-preview {
  max-width: none;
  margin: 0;
}
.cover-kinds {
  margin: 0 0 8px;
  padding: 0;
}
.cover-kinds legend {
  font-weight: 650;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .cover-picker {
    grid-template-columns: 1fr;
  }
}

/* Destructive action and its confirmation. */
button.danger {
  background: #a02a0e;
  color: #fff;
}
button.danger:hover {
  background: #7d1f08;
}
.delete-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--nexo-line);
  border-radius: 0;
  color: #0a1726;
}
.delete-dialog::backdrop {
  background: #0a172699;
}
.delete-dialog ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}
/* Persistent action feedback and keyboard navigation. */
.form-feedback:not([hidden]) {
  padding: 14px 16px;
  margin-top: 16px;
  border-left: 4px solid #a52a22;
  background: #fff2ef;
  color: #7e201b;
  overflow-wrap: anywhere;
}
.navigation-status {
  padding: 10px 16px;
  margin: 0 0 16px;
  background: #edf3f8;
  color: #0c305b;
}
#toast {
  bottom: 100px;
  max-width: min(430px, calc(100vw - 32px));
  overflow-wrap: anywhere;
}
.moodle-layout .maintenance-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 16px 0;
  background: #fff;
  border-top: 1px solid #e0e5ec;
}
.leave-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #d4dce6;
  color: #0a1726;
}
.leave-dialog h2 {
  margin-top: 0;
}
.leave-dialog::backdrop {
  background: #0a172699;
}
.startup-error {
  max-width: 560px;
  margin: 12vh auto;
  padding: 28px;
}
.startup-error p {
  overflow-wrap: anywhere;
}
.moodle-layout .moodle-menu-toggle {
  display: none;
}
.moodle-layout :is(input, select, textarea) {
  max-width: 100%;
}
.moodle-layout main :is(h1, h2)[tabindex="-1"]:focus {
  outline: none;
}

@media (max-width: 760px) {
  .moodle-layout .moodle-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 16px;
  }
  .moodle-layout .moodle-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .moodle-layout .moodle-menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .moodle-layout .moodle-user {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
  }
  .moodle-layout .moodle-user .avatar {
    display: none;
  }
  .moodle-layout .moodle-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    padding-block: 4px 12px;
  }
  .moodle-layout .moodle-menu-toggle[aria-expanded="true"] + .moodle-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .moodle-layout .moodle-nav button {
    width: 100%;
    white-space: normal;
    text-align: left;
  }
  .moodle-layout :is(input, select, textarea) {
    font-size: 16px;
  }
  .leave-dialog .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
