/* Moodle-style page frame. Scoped to the authenticated application. */
.shell.moodle-layout {
  display: block;
  background: #f6f7f2;
  color: #193d37;
  font-family: "Segoe UI", Arial, sans-serif;
  min-width: 0;
}
.moodle-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #dfe5da;
}
.moodle-brand {
  flex-shrink: 0;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  color: #1b4741;
}
.moodle-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  gap: 2px;
}
.moodle-nav button {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 60px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 10px 11px;
  background: transparent;
  color: #454c49;
  font-size: 15px;
  font-weight: 400;
}
.moodle-nav button:hover {
  background: #f2f4ef;
}
.moodle-nav button[aria-current="page"] {
  border-bottom-color: #1b4741;
  color: #1b4741;
  font-weight: 600;
}
.moodle-nav button:focus-visible {
  outline-offset: -4px;
}
.moodle-user {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.moodle-user button {
  font-size: 15px;
  min-height: 44px;
}
.moodle-user .avatar {
  background: #edf0f2;
  color: #51585c;
}
.moodle-layout .content {
  width: calc(100% - 48px);
  max-width: 1280px;
  min-width: 0;
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 0;
}
.moodle-context {
  color: #2f3a46;
  font-size: 15px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.moodle-layout h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.moodle-layout h2 {
  font-size: 23px;
  letter-spacing: -0.25px;
}
.moodle-layout .heading {
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe5da;
}
.moodle-layout button,
.moodle-layout input,
.moodle-layout select,
.moodle-layout textarea {
  border-radius: 0;
}
.moodle-layout .panel,
.moodle-layout .course-card {
  border-radius: 0;
  box-shadow: none;
}
.moodle-layout .cards {
  grid-template-columns: repeat(auto-fill, minmax(min(265px, 100%), 1fr));
}
.moodle-layout .studio-layout {
  display: block;
}
.moodle-layout .studio-rail {
  position: static;
  margin-bottom: 20px;
}
.moodle-layout .studio-rail .wizard-steps {
  flex-direction: row;
  overflow-x: auto;
  padding-bottom: 8px;
}
.moodle-layout .studio-rail .wizard-steps button {
  flex: 0 0 175px;
  width: 175px;
}
.moodle-layout .studio-preview {
  display: block;
  position: static;
  max-width: 940px;
  margin: 24px auto 0;
}
.moodle-layout .studio-main {
  min-width: 0;
}
.moodle-layout .studio-header {
  gap: 16px;
}
.moodle-layout .studio-mode {
  border-radius: 0;
}
.moodle-layout .factory button {
  background: #1b4741;
  border-color: #1b4741;
  border-radius: 0;
}
.moodle-layout .factory input,
.moodle-layout .factory select,
.moodle-layout .factory textarea,
.moodle-layout .factory fieldset,
.moodle-layout .wizard-ai,
.moodle-layout .wizard-panel details,
.moodle-layout .notice,
.moodle-layout .empty {
  border-radius: 0;
}
.moodle-layout .factory,
.moodle-layout .studio-header {
  font-family: inherit;
}
.moodle-layout .studio-header h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.moodle-layout table {
  border-collapse: collapse;
}
.moodle-layout th {
  background: #f6f7f2;
}
@media (max-width: 1100px) {
  .moodle-header {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 6px;
  }
  .moodle-user {
    margin-left: auto;
  }
  .moodle-nav {
    flex-basis: 100%;
    order: 3;
  }
  .moodle-nav button {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 7px;
  }
}
@media (max-width: 600px) {
  .moodle-header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .moodle-user .avatar {
    display: none;
  }
  .moodle-layout .content {
    width: 100%;
    margin: 12px 0 0;
    padding: 20px 16px;
    border-radius: 0;
  }
  .moodle-layout h1 {
    font-size: 26px;
  }
  .moodle-layout .heading {
    gap: 12px;
  }
}
