/* B scheme completion: shared study, assessment and management surfaces.
   Layout never disables feature controls or substitutes sample business data. */
.b-authoring-guide li {
  margin-bottom: 26px;
  padding-left: 8px;
}

.b-authoring-guide h2 {
  font-size: 18px;
  margin-bottom: 9px;
}
.b-authoring-guide p {
  line-height: 1.95;
  color: #527087;
}
.rail-toggle {
  display: none;
}
@media (min-width: 761px) {
  .d-app-frame .rail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    font-size: 11px;
    border: 1px solid #e1ebf2;
    margin-bottom: 16px;
  }
  .d-app-frame.rail-compact,
  .d-app-frame.learning-frame.rail-compact {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .d-app-frame.rail-expanded {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .d-app-frame.rail-compact > .legacy-sidebar {
    width: 80px;
    min-width: 0;
    padding: 14px 7px 0;
  }
  .rail-compact .rail-title,
  .rail-compact .rail-toggle > span,
  .rail-compact .sidebar-account-sub,
  .rail-compact .sidebar-accent-bar {
    display: none;
  }
  .d-app-frame.rail-compact .legacy-sidebar nav a {
    font-size: 0;
    padding: 14px 8px;
    justify-content: center;
    min-height: 48px;
    gap: 0;
  }
  .d-app-frame.rail-compact .legacy-sidebar nav a .icon {
    width: 21px;
    height: 21px;
    margin: 0;
    flex-shrink: 0;
  }
  .d-app-frame.rail-compact .sidebar-bottom {
    padding: 12px 0;
  }
  .d-app-frame.rail-compact .sidebar-user-info {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .d-app-frame.rail-compact .sidebar-user-name {
    display: block;
    max-width: 58px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
  }
  .d-app-frame.rail-compact .sidebar-user-role {
    display: none;
  }
  .d-app-frame.rail-compact .sidebar-user-actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
  }
  .rail-compact .sidebar-user-actions a span {
    display: none;
  }
  .rail-compact .sidebar-user-actions a {
    padding: 7px;
  }
  .rail-compact .sidebar-user-actions button[data-action='identity'] {
    display: none;
  }
  .rail-compact .sidebar-user-actions .icon-button {
    padding: 6px;
  }
  .d-app-frame.rail-compact .sidebar-account {
    margin-left: -7px;
    margin-right: -7px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .rail-compact .rail-home {
    display: flex;
    font-size: 0;
    justify-content: center;
  }
  .rail-compact .sidebar-account-btn {
    font-size: 0;
    justify-content: center;
  }
  .rail-compact .sidebar-account-btn .icon {
    width: 22px;
    height: 22px;
  }
}
.b-program-card .b-goal-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  color: #486079;
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-program-card .b-goal-row {
  align-items: start;
}
.b-program-card .b-goal-label {
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1.85;
}
.d-overview-panel .d-authored-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.95;
}
.d-overview-panel .d-authored-section h3 {
  font-weight: 600;
  margin-bottom: 10px;
}
.d-intro-video {
  margin: 24px 0;
}
.d-intro-video video {
  width: 100%;
  max-height: 520px;
  background: #163950;
  border-radius: 12px;
}
.d-intro-video figcaption,
.d-intro-gallery figcaption {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 9px;
  color: #658098;
  white-space: pre-wrap;
}
.d-intro-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.d-intro-gallery figure {
  margin: 0;
  min-width: 0;
}
.d-intro-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #e0ebf3;
  border-radius: 10px;
  background: #f6fbff;
}
.b-author-navigation {
  margin: 18px 0 24px;
}
.b-author-tools {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 9px;
  background: #f7fbff;
}
.b-author-outline > details > summary {
  font-size: 13px;
  font-weight: 600;
  color: #286079;
  padding: 12px 2px;
  cursor: pointer;
}
.b-author-outline .lesson-link.active {
  border-inline-start: 3px solid #1596a9;
}
.b-editor-position {
  margin: 0 0 6px;
}
.b-author-module > .secondary {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .course-studio .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-author-outline {
    position: static;
    max-height: none;
  }
  .b-author-outline details[open] {
    max-height: 55vh;
    overflow: auto;
  }
  .course-studio .editor-actions {
    flex-wrap: wrap;
  }
}
.b-author-navigation h2 {
  font-size: 19px;
  margin: 4px 0 10px;
  font-weight: 600;
}
.b-author-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.b-module-picker label {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
}
.b-course-settings .form-grid {
  align-items: start;
}
.b-module-picker select {
  margin-top: 6px;
}
.b-author-module-details > summary {
  cursor: pointer;
  color: #3e6a80;
  font-size: 12px;
  margin-top: 15px;
}
.b-author-module {
  flex-wrap: wrap;
}
@media (max-width: 1050px) {
  .b-author-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}
.b-author-module {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid #d9e6f0;
  border-radius: 9px;
  background: #fff;
}
.b-author-module.current {
  background: #ebf8fc;
  border-color: #55b4c5;
}
.b-author-module > span:first-child {
  color: #13899c;
  font-size: 21px;
}
.b-author-module > div {
  flex: 1;
  min-width: 0;
}
.b-author-module strong {
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.b-author-module small {
  display: block;
  color: #668096;
  margin-top: 5px;
}
.b-media-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.b-media-slot,
.b-gallery-editor > section {
  min-width: 0;
  border: 1px solid #dce9f2;
  border-radius: 9px;
  padding: 16px;
  background: #fafdff;
}
.b-media-slot h4 {
  margin: 0 0 9px;
}
.b-author-image {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: contain;
  background: #eef6fb;
  border-radius: 8px;
  margin: 12px 0;
}
.b-gallery-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 15px;
}
.b-public-presentation {
  margin: 22px 0;
}
@media (max-width: 1050px) {
  .b-media-slots {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .b-author-module {
    flex-wrap: wrap;
  }
  .b-author-module > div {
    flex-basis: calc(100% - 50px);
  }
  .b-author-module > a {
    margin-left: 34px;
  }
  .b-gallery-editor,
  .d-intro-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-program-card .b-goal-text {
    font-size: 13px;
  }
}
#app[data-view='learn'] .b-experience-hero.compact {
  padding: 17px 22px;
  margin: 12px 0 16px;
}
#app[data-view='learn'] .b-experience-hero h1 {
  font-size: 25px;
  margin: 5px 0 7px;
}
#app[data-view='learn'] .lesson-context.panel {
  padding: 12px 19px;
  margin-bottom: 16px;
}
#app[data-view='learn'] .lesson-completion {
  margin: 8px 0;
}
#app[data-view='learn'] .completion-requirements > summary {
  padding: 4px 0;
}
.b-media-toolbar {
  margin-top: 12px;
  align-items: end;
}
.b-media-toolbar label {
  font-size: 12px;
  min-width: 150px;
}
.b-media-toolbar select {
  margin-top: 5px;
}
@media (min-width: 761px) {
  #app[data-view='learn'] .b-experience-hero > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
  }
  #app[data-view='learn'] .b-experience-hero > div > p,
  #app[data-view='learn'] .b-experience-hero h1 {
    grid-column: 1;
  }
  #app[data-view='learn'] .b-experience-actions {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin-top: 0;
  }
}
.workspace-header.staff {
  background: #fff;
  border-color: var(--b-border);
  color: var(--b-dark);
}
.workspace-header.staff .brand,
.workspace-header.staff .quiet,
.workspace-header.staff .account-role,
.workspace-header.staff .account-name {
  color: var(--b-dark);
}
.workspace-header.staff .icon-button {
  background: transparent;
  border-color: var(--b-border);
  color: var(--b-dark);
}
.workspace-header.staff .icon-button .icon,
.workspace-header.staff .account-name > .icon {
  filter: none;
}
.workspace-sections {
  gap: 5px;
  font-size: 12px;
  background: #fafdff;
  padding: 10px 28px;
}
.workspace-sections a {
  font-size: 12px;
  padding: 8px 11px;
}
.b-experience-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  margin: 18px 0 22px;
  border: 1px solid #d8eaf5;
  border-radius: 14px;
  background: linear-gradient(115deg, #edf8ff, #f8fcff);
  overflow: hidden;
}
.b-experience-hero > div {
  min-width: 0;
  flex: 1;
}
.b-experience-hero h1 {
  font-size: 29px;
  line-height: 1.45;
  margin: 8px 0 12px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.b-experience-hero p {
  font-size: 13px;
  line-height: 1.9;
  color: #617c96;
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.b-experience-hero .b-experience-kicker {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #218199;
}
.b-experience-hero > img {
  width: 210px;
  height: 128px;
  object-fit: cover;
  border-radius: 11px;
  flex-shrink: 0;
}
.b-experience-hero.compact {
  padding: 23px 28px;
}
.b-experience-hero.compact > img {
  width: 160px;
  height: 110px;
}
.b-experience-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.b-experience-actions a,
.b-experience-actions button {
  font-size: 12px;
}
.b-experience-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.b-experience-stats > div {
  border: 1px solid var(--b-border);
  border-radius: 11px;
  padding: 21px;
  background: white;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
}
.b-experience-stats .icon {
  width: 20px;
  height: 20px;
}
.b-experience-stats span {
  color: var(--b-text-muted);
  font-size: 12px;
}
.b-experience-stats strong {
  grid-column: 2;
  color: var(--b-primary);
  font-size: 22px;
}
.b-experience-footnote {
  font-size: 12px;
  color: var(--b-text-muted);
  line-height: 1.9;
  margin-top: 24px;
}
.b-my-learning .b-study-filter {
  padding: 20px 22px;
  border-color: var(--b-border);
  margin-bottom: 12px;
}
.b-study-filter .b-search-box {
  gap: 10px;
  max-width: 620px;
}
.b-study-filter-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.b-study-filter-bottom > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--b-text-muted);
  font-size: 12px;
}
.b-study-filter-bottom select {
  height: 36px;
  border: 1px solid var(--b-border);
  border-radius: 7px;
  padding: 0 10px;
  background: white;
  color: var(--b-dark);
}
.b-study-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--b-text-muted);
  font-size: 12px;
  margin: 8px 2px 16px;
}
.b-study-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 27px;
  padding: 22px;
  border: 1px solid #dceaf4;
  border-radius: 13px;
  background: #fff;
  margin-bottom: 21px;
  box-shadow: 0 3px 13px #254e7205;
}
.b-study-cover {
  min-width: 0;
  align-self: start;
  position: relative;
}
.b-study-cover img,
.b-study-card > img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  border-radius: 10px;
}
.b-study-cover > span {
  position: absolute;
  top: 11px;
  left: 11px;
  background: #f2fbffed;
  border: 1px solid #cde4ee;
  color: #147b93;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
}
.b-study-body {
  min-width: 0;
}
.b-course-label {
  font-size: 11px;
  color: #32839a;
  letter-spacing: 0.04em;
}
.b-study-card h2 {
  font-size: 21px;
  line-height: 1.65;
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
}
.b-study-card p {
  font-size: 12px;
  color: var(--b-text-muted);
  line-height: 1.8;
}
.b-study-progress {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.b-study-progress > strong {
  color: #008b9d;
}
.b-study-body > progress {
  display: block;
  height: 8px;
  width: 100%;
  accent-color: var(--b-primary);
  margin: 11px 0;
}
.b-study-body .reading-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: none;
  font-size: 10px;
  margin: 9px 0;
  color: var(--b-text-muted);
}
.b-study-body .reading-progress progress {
  width: 100px;
  height: 4px;
  accent-color: #80b1c8;
}
.b-study-card .b-study-next {
  margin: 15px 0;
}
.b-study-next .icon {
  width: 15px;
  height: 15px;
  margin-right: 7px;
}
.b-study-card .row > a {
  font-size: 12px;
}
.b-study-feedback {
  border: 1px solid #dcecf5;
  background: #f4faff;
  border-radius: 8px;
  padding: 15px 17px;
  margin-top: 20px;
  font-size: 12px;
}
.b-study-feedback > strong {
  font-size: 12px;
  margin-right: 17px;
}
.b-study-feedback > span {
  color: var(--b-text-muted);
  font-size: 11px;
}
.b-study-feedback p {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
}
.b-study-feedback .badge {
  font-size: 10px;
  padding: 3px 7px;
  flex-shrink: 0;
}
.b-study-feedback .quiet {
  padding: 4px 0;
}
/* The global account rail remains visible during study. The local lesson list is
   a genuine collapsible outline, leaving room for free-form content blocks. */
@media (min-width: 761px) {
  .d-app-frame.learning-frame {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .d-app-frame.learning-frame:not(.nav-open) > .legacy-sidebar {
    display: flex;
  }
  .d-app-frame.learning-frame .workspace-main {
    max-width: 1440px;
    padding: 24px 30px 45px;
  }
}
[data-view='learn'] .learner-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
[data-view='learn'] .learner-layout:has(.lesson-outline:not([open])) {
  grid-template-columns: minmax(0, 1fr);
}
[data-view='learn'] .lesson-outline:not([open]) {
  position: static;
  top: auto;
  grid-column: 1 / -1;
  padding: 0;
  width: fit-content;
  background: white;
  border: 1px solid #cce1ef;
  border-radius: 8px;
}
[data-view='learn'] .lesson-outline > summary {
  font-size: 12px;
  font-weight: 600;
  padding: 12px 17px;
  color: #187c96;
  cursor: pointer;
}
[data-view='learn'] .lesson-outline[open] {
  background: white;
  border: 1px solid #dceaf4;
  border-radius: 10px;
  padding: 0;
  position: sticky;
  top: 93px;
  max-height: calc(100dvh - 110px);
  overflow: auto;
}
[data-view='learn'] .lesson-outline nav {
  padding: 0 12px 10px;
}
[data-view='learn'] .lesson-outline .chapter {
  padding: 8px 0;
}
[data-view='learn'] .lesson-outline .chapter h3 {
  font-size: 12px;
  padding: 0 10px;
  line-height: 1.9;
}
[data-view='learn'] .lesson-outline .lesson-link {
  font-size: 11px;
  line-height: 1.85;
  padding: 10px;
  border-radius: 7px;
}
[data-view='learn'] .lesson-outline .help {
  padding: 0 15px 10px;
}
[data-view='learn'] .lesson-detail {
  min-width: 0;
}
[data-view='learn'] .lesson-tabs {
  padding: 0;
  border-bottom: 1px solid #cfe1ee;
  gap: 10px;
  margin: 0 0 18px;
  background: none;
}
[data-view='learn'] .lesson-tabs button {
  padding: 13px 25px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  font-weight: 600;
}
[data-view='learn'] .lesson-tabs button.active {
  border-color: #008caa;
  color: #007f99;
  background: white;
}
[data-view='learn'] .lesson-context {
  border-color: #d9eaf5;
  border-radius: 11px;
  padding: 17px 22px;
}
[data-view='learn'] .lesson-context p {
  font-size: 12px;
  line-height: 1.8;
}
[data-view='learn'] .lesson-completion {
  align-items: center;
  gap: 12px;
}
[data-view='learn'] .completion-requirements summary {
  color: #668299;
  font-size: 11px;
}
[data-view='learn'] #lesson-stage > .panel {
  padding: 27px;
  border-color: #dfecf6;
  border-radius: 12px;
  margin-bottom: 20px;
}
[data-view='learn'] #lesson-stage h2 {
  font-size: 20px;
  line-height: 1.7;
}
[data-view='learn'] #lesson-stage h3 {
  font-size: 15px;
  line-height: 1.8;
}
[data-view='learn'] .lesson-reading {
  font-size: 15px;
  line-height: 2.05;
  color: #35536c;
  overflow-wrap: anywhere;
}
[data-view='learn'] #lesson-stage video {
  width: 100%;
  max-height: 72vh;
  background: #122f47;
  border-radius: 9px;
}
[data-view='learn'] #lesson-stage audio {
  width: 100%;
}
[data-view='learn'] .quiz-item {
  border: 1px solid #d9e9f3;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
}
[data-view='learn'] .quiz-item legend {
  font-size: 14px;
  line-height: 1.9;
  padding: 0 8px;
}
[data-view='learn'] .quiz-item .checkbox {
  background: #f9fcff;
  border: 1px solid #e0edf5;
  border-radius: 7px;
  padding: 12px 14px;
  margin: 9px 0;
  align-items: start;
  line-height: 1.9;
}
[data-view='learn'] .quiz-item .checkbox:has(input:checked) {
  background: #e7f7fb;
  border-color: #73c5d5;
}
[data-view='learn'] .study-notes {
  background: #f6fbff;
  padding: 16px;
  border: 1px solid #dcebf4;
  border-radius: 8px;
  margin-bottom: 18px;
}
[data-view='learn'] .study-notes summary {
  color: #416f89;
  cursor: pointer;
  font-size: 13px;
}
[data-view='learn'] .study-notes .field {
  margin-top: 17px;
}
[data-view='learn'] .lesson-pagination {
  padding: 18px 0;
  color: var(--b-text-muted);
  font-size: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
[data-view='learn'] .submission-review {
  border: 1px solid #d6e9f5;
  border-radius: 11px;
  padding: 22px;
  background: #fbfdff;
}
[data-view='learn'] .program-navigation {
  background: #eef8fe;
  border: 1px solid #daeaf5;
  border-radius: 10px;
}
.b-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 22px;
}
.b-guide-layout > *,
.b-admission-state > div,
.b-result-status > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.b-guide-layout .panel {
  border-color: var(--b-border);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.b-guide-layout h2 {
  font-size: 19px;
  margin-bottom: 18px;
}
.b-guide-layout p,
.b-guide-layout li {
  font-size: 13px;
  line-height: 1.95;
  color: #58748c;
}
.b-guide-layout li {
  margin-bottom: 12px;
}
.b-guide-start {
  position: sticky;
  top: 95px;
}
.b-guide-start .checkbox {
  line-height: 1.9;
  margin: 19px 0;
  font-size: 12px;
  align-items: flex-start;
}
.b-admission-state,
.b-result-status {
  display: flex;
  gap: 16px;
  align-items: start;
  background: #edf8fc;
  border: 1px solid #d0e9f4;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
}
.b-admission-state > .icon,
.b-result-status > .icon {
  width: 27px;
  height: 27px;
  margin-top: 2px;
}
.b-admission-state p,
.b-result-status p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.9;
}
.b-admission-state.blocked {
  background: #fff8ec;
  border-color: #f0ddbc;
}
.b-guide-checks {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}
.b-guide-checks > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-top: 1px solid #edf3f8;
  gap: 15px;
  padding: 13px 0;
  font-size: 12px;
}
.b-guide-checks dt {
  color: #6a8399;
}
.b-guide-checks dd {
  margin: 0;
  line-height: 1.9;
}
.b-guide-layout .table-wrap {
  margin-top: 18px;
}
.b-exam-shell.panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.b-exam-shell > p {
  font-size: 12px;
  line-height: 1.9;
}
.b-exam-shell > .callout {
  background: white;
  border: 1px solid #d8eaf5;
  border-left: 4px solid #0395ad;
  border-radius: 9px;
  padding: 19px 22px;
  margin: 18px 0;
  font-size: 13px;
}
.b-exam-shell [data-clock] {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  color: #0b7191;
  padding: 0 6px;
}
.b-exam-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.b-answer-card {
  background: white;
  border: 1px solid #dceaf4;
  border-radius: 11px;
  padding: 22px 17px;
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 112px);
  overflow: auto;
}
.b-answer-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.b-answer-card .help {
  font-size: 11px;
  line-height: 1.9;
}
.b-answer-card .exam-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 16px 0;
  position: static;
  background: transparent;
}
.b-answer-card [data-answer-count] {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--b-text-muted);
  margin-bottom: 8px;
}
.b-answer-card [data-question-jump] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 0;
  border: 1px solid #dceaf5;
  background: #f5faff;
  border-radius: 7px;
  font-size: 13px;
  color: #4a718d;
}
.b-answer-card [data-question-jump].answered {
  background: #e5f7fb;
  border-color: #94cddc;
  color: #027e98;
}
.b-answer-card [data-question-jump].current {
  background: #008eaa;
  color: white;
  border-color: #008eaa;
  box-shadow: 0 2px 7px #098caa1c;
}
.b-answer-legend {
  display: grid;
  gap: 9px;
  color: #558297;
  font-size: 11px;
  border-top: 1px solid #e5f0f6;
  padding-top: 17px;
}
.b-exam-paper {
  min-width: 0;
  background: white;
  border: 1px solid #dceaf5;
  border-radius: 12px;
  padding: 27px;
}
.b-exam-paper .exam-question {
  border: 0;
  border-radius: 0;
  padding: 0 0 22px;
  margin: 0 0 22px;
  scroll-margin-top: 100px;
}
.b-exam-paper .exam-question h2 {
  font-size: 19px;
  line-height: 1.9;
  margin: 0 0 24px;
  color: #163751;
}
.b-exam-paper .exam-question small {
  font-size: 11px;
  color: #67849a;
  font-weight: 500;
}
.b-exam-paper .check {
  display: flex;
  gap: 12px;
  align-items: start;
  border: 1px solid #d5e7f4;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fcfeff;
  margin: 12px 0;
  line-height: 1.85;
}
.b-exam-paper .check:has(input:checked) {
  background: #e6f7fc;
  border-color: #62bed3;
}
.b-exam-paper .check input {
  margin-top: 4px;
  accent-color: #008fab;
  width: 17px;
  height: 17px;
}
.b-exam-paper textarea {
  min-height: 180px;
}
.b-exam-paper [data-save-status] {
  padding: 10px 0;
  font-size: 12px;
  color: #268399;
}
.b-question-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 21px 0;
  border-top: 1px solid #e2edf5;
  margin-top: 14px;
}
.b-question-controls > button {
  font-size: 12px;
}
.b-question-controls > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--b-text-muted);
}
.b-exam-results {
  padding: 27px;
  border: 1px solid #d7eaf4;
  border-radius: 13px;
  margin-bottom: 23px;
}
.b-result-status > div > strong {
  font-size: 18px;
}
.b-result-status.failed,
.b-result-status.pending {
  background: #fff8ee;
  border-color: #efdfc5;
}
.b-result-scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}
.b-result-scores > div {
  display: grid;
  gap: 13px;
  border: 1px solid #e0edf6;
  border-radius: 9px;
  padding: 18px;
}
.b-result-scores span {
  color: var(--b-text-muted);
  font-size: 11px;
}
.b-result-scores strong {
  font-size: 25px;
  color: #007f99;
}
.b-proof-columns {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.b-proof-list {
  min-width: 0;
}
.b-proof-record {
  border: 1px solid #dcebf4;
  background: #fff;
  border-radius: 10px;
  padding: 19px;
  margin-bottom: 13px;
  flex-direction: column;
  align-items: stretch;
}
.b-proof-record.selected {
  border-color: #78c2d4;
  background: #edf9ff;
}
.b-proof-record h3 {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 8px;
}
.b-proof-record p,
.b-proof-record small {
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.b-proof-record .row {
  margin-top: 13px;
  gap: 7px;
}
.b-proof-preview {
  min-width: 0;
  padding: 21px;
  border: 1px solid #dae9f3;
  border-radius: 11px;
  background: #fbfdff;
}
.b-proof-preview > h2 {
  font-size: 17px;
  margin: 0 0 17px;
}
.certificate-sheet.b-issued-sheet {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 530px;
  border: 7px double #b4daed;
  border-radius: 2px;
  padding: 32px 25px;
  background: linear-gradient(150deg, #fff 65%, #edf9ff);
  color: #163c66;
}
.b-issued-sheet.classic {
  background: #fffefa;
  border-color: #c7b985;
  color: #304b56;
}
.b-issued-sheet .b-certificate-issuers {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
}
.b-issued-sheet h2 {
  font-size: 27px;
  line-height: 1.8;
  margin: 8px 0 17px;
}
.b-issued-sheet h3 {
  font-size: 23px;
  margin: 10px 0 18px;
}
.b-issued-sheet p {
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.b-issued-sheet .b-certificate-intro {
  color: #6c8da4;
  font-size: 11px;
}
.b-issued-sheet .b-certificate-description {
  margin: 17px 0;
}
.b-issued-sheet .certificate-number {
  font-size: 10px;
  color: #52768c;
  margin-top: 23px;
}
.b-issued-sheet img {
  width: 88px;
  height: 88px;
  margin: 17px auto 9px;
}
.b-issued-sheet > a {
  font-size: 11px;
}
.b-certificate-actions {
  margin: 20px 0;
  gap: 9px;
}
.b-certificate-actions a,
.b-certificate-actions button {
  font-size: 11px;
  padding: 9px 12px;
}
.b-certificate-detail-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.b-certificate-detail-layout > aside {
  padding: 23px;
}
.b-certificate-detail-layout > div {
  min-width: 0;
}
.b-certificate-detail-layout .b-issued-sheet {
  max-width: 850px;
  min-height: 620px;
  margin: 0 auto;
}
.b-related-proof {
  display: grid;
  gap: 7px;
  background: #f8fcff;
  border: 1px solid #e0edf6;
  border-radius: 8px;
  padding: 15px;
  margin: 12px 0;
}
.b-related-proof.selected {
  background: #eaf8fe;
  border-color: #78bed1;
}
.b-related-proof strong {
  font-size: 13px;
  line-height: 1.8;
}
.b-related-proof span,
.b-related-proof small {
  font-size: 11px;
  color: #65829a;
  overflow-wrap: anywhere;
}
.b-verify-entry {
  max-width: 880px;
  margin: 25px auto;
  padding: 29px;
  border-color: #d8eaf4;
}
.b-verify-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.b-verify-intro > .icon {
  width: 35px;
  height: 35px;
}
.b-verify-intro h2 {
  font-size: 19px;
  margin: 0 0 6px;
}
.b-verify-intro p {
  margin: 0;
  color: var(--b-text-muted);
  font-size: 12px;
  line-height: 1.9;
}
.b-verify-form .field {
  max-width: 600px;
}
.b-verify-form .field input {
  min-height: 47px;
}
.b-verify-form .row {
  margin-top: 20px;
}
.b-verification-help {
  max-width: 880px;
  margin: 25px auto;
  padding: 6px 0;
}
.b-verification-help h2 {
  font-size: 17px;
}
.b-verification-help p {
  font-size: 12px;
  line-height: 1.95;
  color: var(--b-text-muted);
}
.b-verification-result,
.b-verification-empty {
  max-width: 880px;
  margin: 20px auto;
  padding: 25px 29px;
  border-color: #cfe7f1;
}
.b-verification-result .b-result-status {
  background: #eaf8f5;
  border-color: #d0e9df;
}
.b-verification-result.invalid .b-result-status {
  background: #fff7ed;
  border-color: #edddc4;
}
.b-verification-result h2 {
  margin: 0;
  font-size: 21px;
}
.b-verification-result h3 {
  font-size: 18px;
}
.b-verification-result dl {
  display: grid;
  gap: 0;
}
.b-verification-result dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid #e8f1f6;
  padding: 13px 0;
  font-size: 13px;
}
.b-verification-result dt {
  color: var(--b-text-muted);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.b-verification-result dd {
  margin: 0;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.b-scan-file {
  position: relative;
  cursor: pointer;
}
.b-scan-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.b-scan-file:focus-within {
  outline: 3px solid #a6dce9;
}
[data-scan-video] {
  width: 100%;
  max-height: 360px;
  background: #17364c;
  border-radius: 9px;
  margin-top: 20px;
}
/* Existing administrative functions keep their handlers, semantic labels and
   export range checks. Tables scroll within their own panel at narrow widths. */
.b-exam-attachments {
  border: 1px solid #daeaf4;
  background: #f7fcff;
  border-radius: 9px;
  padding: 18px;
  margin-top: 22px;
}
.b-exam-attachments h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.b-exam-file {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e2edf5;
}
.b-exam-file > span {
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.b-exam-file > span > .icon {
  width: 15px;
  height: 15px;
  margin-right: 7px;
}
.b-exam-file .row {
  gap: 6px;
  flex-shrink: 0;
}
.b-exam-file .row a,
.b-exam-file .row button {
  font-size: 10px;
}
.b-exam-upload {
  position: relative;
  cursor: pointer;
  margin-top: 13px;
}
.b-exam-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.b-exam-upload:focus-within {
  outline: 3px solid #a7dce9;
}
[data-proofs] .b-proof-record {
  padding: 19px;
  align-items: stretch;
}
.b-related-records > summary {
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  margin: 0 0 15px;
}
.b-related-records + .quiet {
  font-size: 11px;
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .b-certificate-detail-layout > aside {
    display: block;
  }
}
@media (max-width: 760px) {
  .b-exam-file {
    flex-wrap: wrap;
    gap: 7px;
  }
  .b-exam-file .row {
    flex-shrink: 1;
    flex-wrap: wrap;
  }
  .b-exam-attachments {
    padding: 16px;
  }
}
.workspace-main > .page-head {
  border: 1px solid #d8eaf5;
  border-radius: 13px;
  padding: 28px;
  background: linear-gradient(115deg, #edf8ff, #f8fcff);
  margin: 0 0 24px;
  align-items: center;
}
.workspace-main > .page-head h1 {
  font-size: 27px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.workspace-main > .page-head .muted {
  font-size: 12px;
  max-width: 65em;
  line-height: 1.9;
}
.workspace-main > .page-head .head-actions {
  gap: 9px;
}
.workspace-main > .page-head .head-actions button,
.workspace-main > .page-head .head-actions a {
  font-size: 12px;
}
.workspace-main > .panel,
.workspace-main > details.panel {
  border-color: #dceaf4;
  border-radius: 12px;
  padding: 24px;
}
.workspace-main > .panel h2,
.workspace-main > details.panel > summary h2 {
  font-size: 19px;
  line-height: 1.7;
}
.workspace-main .management-filter,
.workspace-main .filter-bar {
  border: 1px solid #dfeaf3;
  border-radius: 9px;
  padding: 17px;
  background: #f8fcff;
  margin-bottom: 20px;
  gap: 14px;
}
.workspace-main .management-filter label {
  font-size: 11px;
  color: #59778e;
  gap: 7px;
}
.workspace-main .management-filter input,
.workspace-main .management-filter select,
.workspace-main .filter-bar input,
.workspace-main .filter-bar select {
  min-height: 38px;
  border-color: #cfe1ee;
  background: #fff;
  border-radius: 7px;
  font-size: 12px;
}
.workspace-main .management-filter button {
  font-size: 12px;
}
.workspace-main .table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dceaf4;
  border-radius: 9px;
  background: white;
}
.workspace-main .table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.workspace-main .table-wrap th {
  background: #eff7fc;
  color: #3a637d;
  font-size: 11px;
  font-weight: 600;
  padding: 15px;
  text-align: left;
  white-space: nowrap;
}
.workspace-main .table-wrap td {
  padding: 15px;
  border-bottom: 1px solid #e7eff5;
  font-size: 12px;
  line-height: 1.85;
}
.workspace-main .table-wrap tr:hover td {
  background: #f7fcff;
}
.workspace-main .table-wrap td button,
.workspace-main .table-wrap td a {
  font-size: 11px;
}
.workspace-main .pagination {
  font-size: 11px;
  gap: 10px;
  margin: 18px 0 5px;
  flex-wrap: wrap;
}
.workspace-main .pagination button {
  min-height: 34px;
  font-size: 11px;
  border-radius: 7px;
}
.workspace-main .context-ribbon {
  background: #edf8fe;
  border: 1px solid #d5e9f4;
  border-radius: 9px;
  padding: 17px 20px;
}
.workspace-main .assessment-record {
  border-bottom-color: #e2edf5;
  padding: 19px 2px;
}
.workspace-main .assessment-record h3 {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 7px;
}
.workspace-main .assessment-record p {
  font-size: 12px;
  line-height: 1.9;
  margin: 5px 0;
}
.workspace-main .assessment-record small {
  font-size: 11px;
  line-height: 1.85;
  color: var(--b-text-muted);
}
.workspace-main .assessment-record .row {
  gap: 8px;
}
.workspace-main .assessment-record .row button,
.workspace-main .assessment-record .row a {
  font-size: 11px;
}
.workspace-main .view-tabs {
  background: #f8fcff;
  border-bottom: 1px solid #dceaf3;
  border-radius: 9px;
  padding: 7px;
}
.workspace-main .view-tabs a {
  font-size: 12px;
  border-radius: 7px;
}
.workspace-main .stat-grid .stat {
  border-color: #dceaf5;
  box-shadow: 0 2px 8px #284e6b04;
}
.workspace-main .stat-grid .stat strong {
  color: #0e8199;
}
.workspace-main .editor-layout {
  gap: 22px;
}
.workspace-main .editor-layout .outline {
  background: #fff;
  border: 1px solid #deebf5;
  border-radius: 10px;
}
.workspace-main .editor-layout .outline button,
.workspace-main .editor-layout .outline a {
  font-size: 12px;
}
dialog {
  border: 1px solid #cfdfed;
  border-radius: 14px;
  box-shadow: 0 18px 70px #17395730;
}
dialog::backdrop {
  background: #12345255;
  backdrop-filter: blur(2px);
}
dialog .modal-head {
  background: #f7fbfe;
  border-bottom: 1px solid #e1edf5;
}
dialog .modal-head h2 {
  font-size: 19px;
}
dialog .modal-body {
  font-size: 13px;
  line-height: 1.85;
}
dialog .field {
  gap: 8px;
  margin-bottom: 17px;
}
dialog input,
dialog textarea,
dialog select {
  border-color: #cedfeb;
  border-radius: 7px;
}
dialog .review-metadata {
  border-radius: 9px;
  border: 1px solid #d8eaf5;
  background: #f2f9fd;
}
@media (min-width: 1400px) {
  .d-app-frame.learning-frame {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .b-proof-columns {
    grid-template-columns: 1fr;
  }
  .b-certificate-detail-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .b-guide-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .b-study-card {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 22px;
  }
  .b-study-cover img {
    height: 165px;
  }
  .b-study-filter-bottom {
    flex-wrap: wrap;
  }
  .b-experience-stats > div {
    padding: 17px;
  }
  .b-result-scores {
    gap: 10px;
  }
  .b-result-scores > div {
    padding: 14px;
  }
  .b-result-scores strong {
    font-size: 22px;
  }
}
@media (max-width: 1000px) {
  .d-app-frame.learning-frame {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .b-guide-layout {
    grid-template-columns: 1fr;
  }
  .b-guide-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .b-guide-start {
    position: static;
  }
  .b-exam-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px;
  }
  .b-answer-card {
    padding: 18px 13px;
  }
  .b-exam-paper {
    padding: 23px;
  }
  .b-answer-card .exam-navigation {
    gap: 6px;
  }
  .b-certificate-detail-layout {
    grid-template-columns: 1fr;
  }
  .b-certificate-detail-layout > aside {
    display: block;
  }
  .b-experience-hero > img {
    width: 160px;
    height: 120px;
  }
  .b-study-card {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 19px;
  }
  .b-study-card h2 {
    font-size: 19px;
  }
  .b-experience-hero h1 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .d-app-frame.learning-frame {
    display: block;
  }
  .d-app-frame.learning-frame:not(.nav-open) > .legacy-sidebar {
    display: none;
  }
  .d-app-frame.learning-frame .workspace-main {
    padding: 18px 15px 36px;
  }
  .b-experience-hero,
  .b-experience-hero.compact {
    padding: 22px 19px;
    gap: 16px;
    margin-top: 14px;
  }
  .b-experience-hero h1 {
    font-size: 24px;
  }
  .b-experience-hero > img,
  .b-experience-hero.compact > img {
    display: none;
  }
  .b-experience-hero p {
    font-size: 12px;
  }
  .b-experience-actions {
    gap: 8px;
  }
  .b-experience-actions a,
  .b-experience-actions button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .b-experience-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .b-experience-stats > div {
    padding: 17px;
  }
  .b-experience-stats strong {
    font-size: 20px;
  }
  .b-study-filter-bottom {
    gap: 14px;
  }
  .b-study-filter-bottom > label {
    margin-left: auto;
  }
  .b-my-learning .b-study-filter {
    padding: 17px;
  }
  .b-study-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
  .b-study-cover img {
    height: 180px;
  }
  .b-study-card h2 {
    font-size: 20px;
  }
  .b-study-cover > span {
    font-size: 11px;
  }
  .b-study-card .row > a {
    font-size: 11px;
  }
  .b-study-feedback {
    padding: 14px;
  }
  .b-study-feedback > span {
    display: block;
    margin-top: 8px;
  }
  [data-view='learn'] .learner-layout,
  [data-view='learn'] .learner-layout:has(.lesson-outline:not([open])) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  [data-view='learn'] .lesson-outline[open] {
    position: static;
    max-height: 360px;
  }
  [data-view='learn'] #lesson-stage > .panel {
    padding: 21px 18px;
  }
  [data-view='learn'] .lesson-tabs {
    gap: 4px;
  }
  [data-view='learn'] .lesson-tabs button {
    padding: 12px 15px;
    font-size: 12px;
  }
  [data-view='learn'] .lesson-reading {
    font-size: 14px;
    line-height: 2;
  }
  [data-view='learn'] .lesson-context {
    padding: 16px 18px;
  }
  [data-view='learn'] .lesson-completion {
    flex-wrap: wrap;
  }
  [data-view='learn'] .quiz-item {
    padding: 16px;
  }
  [data-view='learn'] .lesson-pagination .row {
    gap: 7px;
  }
  [data-view='learn'] .lesson-pagination a {
    font-size: 11px;
  }
  .b-guide-layout > aside {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .b-guide-layout .panel {
    padding: 21px 18px;
  }
  .b-guide-checks > div {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
  }
  .b-admission-state {
    padding: 17px;
    gap: 11px;
  }
  .b-exam-layout {
    grid-template-columns: 1fr;
  }
  .b-answer-card {
    position: static;
    max-height: none;
    padding: 18px;
  }
  .b-answer-card .exam-navigation {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
  }
  .b-answer-card [data-question-jump] {
    height: 33px;
    font-size: 12px;
  }
  .b-answer-card .help,
  .b-answer-legend {
    font-size: 10px;
  }
  .b-answer-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .b-answer-card > p:last-child {
    margin: 14px 0 0;
  }
  .b-exam-paper {
    padding: 22px 18px;
  }
  .b-exam-paper .exam-question h2 {
    font-size: 17px;
  }
  .b-exam-paper .check {
    padding: 13px 14px;
    font-size: 13px;
  }
  .b-exam-shell [data-clock] {
    font-size: 20px;
  }
  .b-question-controls {
    gap: 8px;
  }
  .b-question-controls > button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .b-question-controls > span {
    flex-basis: 100%;
  }
  .b-result-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b-exam-results {
    padding: 20px 18px;
  }
  .b-proof-columns {
    grid-template-columns: 1fr;
  }
  .b-proof-preview {
    padding: 17px;
  }
  .certificate-sheet.b-issued-sheet {
    padding: 26px 18px;
    min-height: 500px;
  }
  .b-issued-sheet h2 {
    font-size: 24px;
  }
  .b-issued-sheet h3 {
    font-size: 21px;
  }
  .b-issued-sheet p {
    font-size: 11px;
  }
  .b-certificate-detail-layout .b-issued-sheet {
    min-height: 520px;
  }
  .b-certificate-actions a,
  .b-certificate-actions button {
    font-size: 10px;
  }
  .b-verify-entry {
    padding: 22px 19px;
  }
  .b-verify-intro {
    gap: 12px;
  }
  .b-verify-intro h2 {
    font-size: 18px;
  }
  .b-verification-result,
  .b-verification-empty {
    padding: 21px 19px;
  }
  .b-verification-result dl > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 12px;
    font-size: 12px;
  }
  .b-verification-result dl > .b-verification-number {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .workspace-main > .page-head {
    padding: 22px 19px;
    gap: 15px;
    align-items: flex-start;
  }
  .workspace-main > .page-head h1 {
    font-size: 24px;
  }
  .workspace-main > .page-head .head-actions {
    justify-content: flex-start;
    gap: 8px;
  }
  .workspace-main > .page-head .head-actions button,
  .workspace-main > .page-head .head-actions a {
    font-size: 11px;
    padding: 9px 12px;
  }
  .workspace-main > .panel,
  .workspace-main > details.panel {
    padding: 21px 18px;
  }
  .workspace-main .management-filter {
    padding: 15px;
    gap: 13px;
  }
  .workspace-main .management-filter > label {
    flex: 1 1 100%;
    min-width: 0;
  }
  .workspace-main .management-filter label input,
  .workspace-main .management-filter label select {
    width: 100%;
    min-width: 0;
  }
  .workspace-main .assessment-record {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .workspace-main .assessment-record .row {
    flex-wrap: wrap;
  }
  .workspace-sections {
    padding: 9px 15px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .workspace-sections > span {
    display: none;
  }
  .workspace-sections a {
    flex-shrink: 0;
    font-size: 11px;
  }
  .workspace-main .table-wrap {
    border-radius: 7px;
  }
  dialog .modal-body {
    padding: 20px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .b-answer-card .exam-navigation {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .b-study-card {
    padding: 16px;
  }
  .b-study-cover img {
    height: 165px;
  }
  .b-study-progress {
    font-size: 11px;
  }
  .b-result-scores strong {
    font-size: 21px;
  }
  .b-certificate-actions {
    gap: 7px;
  }
}
@media print {
  .b-experience-hero,
  .b-breadcrumb,
  .b-certificate-actions,
  .b-certificate-detail-layout > aside,
  .b-proof-list,
  .b-answer-card,
  .b-question-controls,
  .b-exam-results {
    display: none !important;
  }
  .b-certificate-detail-layout,
  .b-proof-columns {
    display: block !important;
  }
  .certificate-sheet.b-issued-sheet {
    width: 100%;
    min-height: 0;
    height: 180mm;
    page: certificate;
    padding: 9mm;
  }
  .b-exam-paper .exam-question[hidden] {
    display: block !important;
  }
  .b-exam-paper {
    border: 0;
    padding: 0;
  }
  .b-exam-layout {
    display: block;
  }
}

.b-answer-toggle > summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.85;
}
.b-answer-toggle > summary small {
  display: block;
  font-size: 10px;
  color: var(--b-text-muted);
  font-weight: 400;
  margin-top: 5px;
}
[data-proofs] .b-proof-record {
  padding: 19px;
  align-items: stretch;
}

.b-action-context {
  border: 1px solid #d7e9f3;
  border-radius: 9px;
  background: #f3faff;
  padding: 17px 19px;
  margin: 0 0 20px;
}
.b-action-context h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.b-action-context dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.b-action-context dl > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  font-size: 12px;
}
.b-action-context dt {
  color: #638198;
}
.b-action-context dd {
  margin: 0;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .d-app-frame.learning-frame > .workspace {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .d-app-frame.learning-frame > .legacy-sidebar {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Learning context remains structural; progress is secondary disclosure. */
.b-learning-hierarchy {
  margin: 8px 0;
  padding: 10px 4px;
  border-bottom: 1px solid #dbe9f1;
}
.b-learning-parent {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.b-learning-parent small {
  display: block;
  color: #71869a;
  margin-bottom: 5px;
}
.b-learning-parent > div {
  min-width: 0;
}
.b-learning-parent > div > a {
  font-size: 15px;
  font-weight: 550;
}
.b-hierarchy-picker {
  min-width: 220px;
  max-width: 520px;
}
.b-hierarchy-picker summary {
  cursor: pointer;
  color: #087f99;
}
.b-hierarchy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
}
.b-hierarchy-controls label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.b-hierarchy-controls select {
  grid-row: 2;
  min-width: 0;
  width: 100%;
}
.b-hierarchy-controls button {
  grid-column: 2;
  grid-row: 2;
}
.b-series-progress {
  margin-top: 12px;
  border-top: 1px solid #edf2f6;
  padding-top: 12px;
  font-size: 13px;
  color: #5e7c93;
}
.b-series-progress summary {
  cursor: pointer;
}
.b-chapter-introduction {
  padding: 22px 26px;
  margin-bottom: 24px;
  background: #f4fafc;
  border-left: 3px solid #1a93a8;
  border-radius: 0 12px 12px 0;
}
.b-chapter-introduction .b-chapter-kicker {
  color: #668298;
  font-size: 12px;
  margin: 0 0 8px;
}
.b-chapter-introduction h2 {
  font-size: 20px;
  font-weight: 550;
  margin: 0 0 12px;
}
.b-chapter-introduction h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 16px 0 6px;
}
.b-chapter-introduction p {
  white-space: pre-line;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.field-with-help {
  position: relative;
  min-width: 0;
}
.field-with-help > .field {
  width: 100%;
}
.field-with-help > .field > span:first-child {
  padding-right: 28px;
}
.field-help {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid #cbd3da;
  border-radius: 50%;
  background: #f2f4f6;
  color: #697d8c;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  cursor: help;
}
.field-help:focus-visible {
  outline: 2px solid #148da4;
  outline-offset: 3px;
}
#context-help-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  color: #25465f;
}
#leave-page-confirmation {
  max-width: min(480px, calc(100vw - 30px));
  border: 1px solid #d5e5ef;
  border-radius: 14px;
  padding: 26px;
  color: #25465f;
}
#leave-page-confirmation p {
  line-height: 1.9;
  margin: 16px 0 22px;
}
#context-help-dialog p {
  line-height: 1.9;
}
.b-authoring-guide {
  max-width: 1000px;
  margin: auto;
}
.b-authoring-guide article {
  padding: 24px;
  margin: 16px 0;
  border: 1px solid #dce9f1;
  border-radius: 14px;
  background: #fff;
}
.b-designer-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
}
.b-certificate-designer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
}
.b-certificate-designer > div,
.b-certificate-designer aside {
  min-width: 0;
}
.b-certificate-designer aside {
  align-self: start;
  position: sticky;
  top: 0;
  padding: 18px;
  background: #f3f8fb;
  border-radius: 12px;
}
.b-certificate-designer canvas,
.b-template-canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 18px #193c531a;
  background: #fff;
}
.b-certificate-designer canvas {
  width: auto;
  max-width: 100%;
  max-height: 48vh;
  margin: auto;
}
.b-designer-appearance {
  padding-top: 16px;
  border-top: 1px solid #dfe9ef;
}
.b-image-crop {
  max-width: min(800px, calc(100vw - 24px));
  width: 800px;
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  padding: 24px;
}
.b-image-crop canvas {
  display: block;
  max-width: 100%;
  max-height: 48vh;
  width: auto;
  height: auto;
  margin: 16px auto;
  background: repeating-conic-gradient(#f2f4f5 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  touch-action: none;
  cursor: move;
}
.b-image-crop label {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
}
.certificate-sheet.b-issued-sheet {
  position: relative;
  color: var(--certificate-text, #173b54);
  border-color: var(--certificate-accent, #168fa2);
}
.b-issued-sheet > .b-certificate-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  opacity: 1;
  margin: 0;
}
.b-certificate-content {
  position: relative;
  z-index: 1;
}
.b-designer-dialog input[type='color'] {
  height: 42px;
  padding: 4px;
}
.b-issued-sheet .b-certificate-logo {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.b-issued-sheet .b-certificate-microtext {
  display: block;
  font-size: 5px;
  color: #849ba7;
  margin-top: 16px;
}
.b-issued-sheet[data-orientation='landscape'] {
  aspect-ratio: 3508 / 2480;
  min-height: 0;
}
.b-issued-sheet[data-certificate-preset='minimal'] {
  border-width: 1px;
  background: #fff;
}
.b-issued-sheet[data-certificate-preset='navy'] {
  border-width: 12px;
}
.b-issued-sheet:has(.b-certificate-background) {
  background: #fff;
}
@media (max-width: 900px) {
  .b-learning-parent {
    flex-direction: column;
    gap: 12px;
  }
  .b-hierarchy-picker {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .b-certificate-designer {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-certificate-designer aside {
    position: static;
  }
  .b-certificate-designer canvas {
    max-width: 480px;
    margin: auto;
  }
}
@media (min-width: 761px) {
  .b-learning-parent {
    align-items: center;
  }
  .b-learning-parent > div {
    display: flex;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .b-learning-parent small {
    margin: 0;
  }
  .b-learning-parent > div > a {
    overflow-wrap: anywhere;
  }
  .b-hierarchy-picker {
    flex: 1;
  }
  .b-hierarchy-picker > summary {
    text-align: right;
  }
  #app[data-view='learn'] .lesson-context.panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 4px 18px;
    padding: 10px 18px;
  }
  #app[data-view='learn'] .lesson-context .completion-requirements {
    grid-column: 1 / -1;
  }
  #app[data-view='learn'] .lesson-context p,
  #app[data-view='learn'] .lesson-completion {
    margin: 0;
  }
}
@media (max-width: 480px) {
  .b-hierarchy-controls label {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-hierarchy-controls button {
    grid-column: 1;
    grid-row: 3;
  }
  .b-chapter-introduction {
    padding: 18px;
  }
  .b-learning-hierarchy {
    padding: 16px;
  }
}
@media print {
  .b-issued-sheet[data-orientation='landscape'] {
    page: certificate-landscape;
  }
  .b-issued-sheet[data-orientation='portrait'] {
    page: certificate-portrait;
  }
  .b-issued-sheet .b-certificate-background {
    display: block !important;
  }
}
@page certificate-landscape {
  size: A4 landscape;
  margin: 10mm;
}
@page certificate-portrait {
  size: A4 portrait;
  margin: 10mm;
}
.certificate-sheet.b-issued-sheet.b-certificate-canonical {
  padding: 0;
  border: 0;
  min-height: 0;
  aspect-ratio: auto;
  background: transparent;
}
.b-certificate-canonical > .b-certificate-background {
  display: none;
}
.b-certificate-view {
  display: block;
  width: 100%;
  height: auto;
}
.b-create-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px 12px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #d7e6ef;
  border-radius: 12px;
  background: #f8fbfd;
  cursor: pointer;
}
.b-create-choice:has(input:checked) {
  border-color: #078b9d;
  background: #eaf7f9;
}
.b-create-choice input {
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 5px;
  width: 18px;
  height: 18px;
}
.b-create-choice strong {
  font-size: 17px;
  font-weight: 650;
}
.b-create-choice span {
  color: #526879;
  line-height: 1.7;
}
.b-author-wizard {
  border-top: 3px solid #0793a3;
}
.workspace-main.b-guided-author > .page-head {
  padding: 14px 20px;
  margin-bottom: 12px;
}
.workspace-main.b-guided-author > .page-head h1 {
  font-size: 23px;
  font-weight: 650;
  margin-bottom: 0;
}
.b-guided-author > .page-head .muted:empty {
  display: none;
}
.b-author-page-actions > summary {
  cursor: pointer;
  color: #12687b;
  font-size: 13px;
  padding: 8px 0;
}
.b-author-page-actions[open] > .head-actions {
  padding-top: 8px;
}
.workspace-main.b-guided-author > .b-author-wizard {
  padding: 16px 20px;
  margin-block: 12px;
  border: 1px solid #dceaf4;
  border-radius: 16px;
  box-shadow: 0 5px 20px #173f5d04;
  background: #fff;
}
.b-author-wizard > .help {
  margin: 0 0 8px;
}
.b-author-wizard h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 12px 0 6px;
}
.b-author-wizard > p:not(.help) {
  max-width: 54em;
  color: #466174;
  line-height: 1.6;
  margin: 6px 0;
}
.b-author-wizard > .quiet {
  padding: 6px 0;
}
.b-wizard-step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.b-wizard-step-list button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 10px 8px;
  color: #506b7e;
  background: #f5f8fb;
  border: 1px solid #e0e9ef;
  border-radius: 11px;
  font-size: 13px;
}
.b-wizard-step-list button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  font-weight: 600;
}
.b-wizard-step-list button[aria-current='step'] {
  color: #006f82;
  background: #e6f6f8;
  border-color: #078da0;
}
.b-wizard-footer {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  margin-top: 24px;
  background: #fff;
  box-shadow: 0 -6px 20px #153e5910;
}
.b-wizard-footer p {
  margin-bottom: 0;
}
.workspace-main.b-guided-author > .b-wizard-footer {
  padding: 12px 20px;
}
.b-guided-author[data-guide-step='2'] .editor-layout {
  grid-template-columns: 1fr;
}
.b-guided-author[data-guide-step='2'] .b-author-outline {
  position: static;
  width: 100%;
}
.b-import-chapter {
  padding: 16px;
  margin: 14px 0;
  border: 1px solid #dfebf1;
  border-radius: 10px;
}
.b-import-chapter ul {
  list-style: none;
  padding-left: 14px;
}
.b-editor-parent {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.b-module-picker label {
  display: grid;
  flex: 1 1 260px;
  gap: 8px;
}
.b-module-picker select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cadde9;
  border-radius: 8px;
  background: #fff;
  color: #173f5d;
  font: inherit;
}
@media (max-width: 700px) {
  .workspace-main.b-guided-author > .page-head {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }
  .workspace-main.b-guided-author > .page-head h1 {
    font-size: 20px;
  }
  .b-author-page-actions > summary {
    font-size: 12px;
  }
  .b-wizard-step-list {
    display: flex;
    overflow-x: auto;
    padding: 0 0 8px;
  }
  .b-wizard-step-list button {
    flex: 0 0 auto;
  }
  .b-wizard-footer {
    bottom: 4px;
    padding: 16px;
  }
  .b-wizard-footer .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .b-wizard-footer .row button {
    padding: 8px 6px;
    font-size: 12px;
    min-height: 44px;
  }
  .b-create-choice {
    padding: 14px;
  }
}
.b-author-guide h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.b-author-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.b-author-steps button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  background: #f5fafc;
  border: 1px solid #d8e8ef;
  color: #163e59;
  text-align: left;
  border-radius: 10px;
}
.b-author-steps button:hover,
.b-author-steps button:focus-visible {
  border-color: #008b9e;
  background: #eaf7f9;
}
.b-author-steps span {
  color: #526b7b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.b-author-guide .authoring-readiness {
  margin: 16px 0;
}
.b-author-guide .authoring-readiness button {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .b-author-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .b-author-steps button {
    padding: 12px 14px;
  }
}
.b-certificate-fallback {
  aspect-ratio: auto !important;
  height: auto;
}
.b-certificate-text {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
}
.b-certificate-text summary {
  cursor: pointer;
  color: #186f88;
}
.b-certificate-text p {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.b-certificate-text img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
}
@media print {
  #app[data-view='certificate'] :is(.chrome-rail, [data-proof-export-status]) {
    display: none !important;
  }
  body:has(#app[data-view='certificate']) {
    background: #fff;
  }
  .certificate-sheet.b-issued-sheet.b-certificate-canonical {
    margin: 0 auto;
    padding: 0;
    border: 0;
    height: auto;
    min-height: 0;
  }
  .b-certificate-canonical[data-orientation='landscape'] {
    width: 268mm;
    max-width: 100%;
  }
  .b-certificate-canonical[data-orientation='portrait'] {
    width: 190mm;
    max-width: 100%;
  }
}

/* Approved interface hierarchy and responsive controls, 2026-10-22. */
body {
  background: var(--bg);
}
:is(#app, #modal) .workspace-main .management-course h2 {
  font-size: 20px;
}
:is(#app, #modal) .workspace-main .outline h3 {
  font-size: 14px;
  font-weight: 550;
}
:is(#app, #modal) .workspace-main.course-studio > .page-head h1 {
  font-size: 26px;
}
:is(#app, #modal) .workspace-main .b-author-wizard {
  padding-block: 14px;
}
:is(#app, #modal) .workspace-main .b-author-wizard h2 {
  margin-block: 10px 5px;
}
:is(#app, #modal) .workspace-main .b-author-wizard > p:not(.help) {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}
:is(#app, #modal) .workspace-main .page-head .muted,
:is(#app, #modal) .workspace-main .b-experience-hero > div > p,
:is(#app, #modal) .d-workbench-hero .page-head p {
  font-size: 13px;
  line-height: 1.85;
}
:is(#app, #modal) .b-experience-kicker,
:is(#app, #modal) .d-scope-label,
:is(#app, #modal) .b-course-label {
  color: #4b6588;
}
:is(#app, #modal) .workspace-main .stat-grid .stat strong {
  color: #23468b;
  font-weight: 600;
}
:is(#app, #modal) .d-workbench > .panel + .panel {
  margin-top: 20px;
}
:is(#app, #modal) .workspace-main > .panel + .panel {
  margin-top: 20px;
}
:is(#app, #modal) .d-app-frame .legacy-sidebar.light nav a {
  color: #3d526d;
  font-weight: 450;
  border-radius: 10px;
  box-shadow: none;
}
:is(#app, #modal) .d-app-frame .legacy-sidebar.light nav a:hover {
  color: #294d83;
  background: #f3f6fb;
  box-shadow: none;
}
:is(#app, #modal) .d-app-frame .legacy-sidebar.light nav a.active {
  color: #23468b;
  background: #edf2fc;
  font-weight: 550;
  box-shadow: inset 2px 0 #4669a5;
}
:is(#app, #modal) .d-app-frame .legacy-sidebar nav a .icon {
  width: 19px;
  height: 19px;
  opacity: 0.84;
}
:is(#app, #modal) .d-app-frame .rail-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #60738d;
}
:is(#app, #modal) .workspace-sections a,
:is(#app, #modal) .view-tabs a {
  font-weight: 450;
  color: #4b607c;
}
:is(#app, #modal) .workspace-sections a:hover,
:is(#app, #modal) .view-tabs a:hover {
  background: #f2f5fb;
}
:is(#app, #modal) .workspace-sections a[aria-current],
:is(#app, #modal) .view-tabs a[aria-current] {
  color: #23468b;
  font-weight: 550;
  background: #eaf0fc;
  box-shadow: inset 0 -1px #5577ae;
}
:is(#app, #modal) .workspace-sections a {
  padding: 9px 12px;
  border-radius: 9px;
}
:is(#app, #modal) .rail-toggle {
  color: #4b607c;
  font-weight: 450;
  border-color: #d3ddec;
  background: #fff;
  box-shadow: none;
}
:is(#app, #modal) .workspace-header .account-name {
  font-size: 13px;
  font-weight: 500;
  color: #29435e;
}
:is(#app, #modal) .workspace-header .account-role,
:is(#app, #modal) .workspace-header .account-context {
  font-size: 12px;
  font-weight: 400;
  color: #5b6e87;
}
:is(#app, #modal) .workspace-header .top-actions > .quiet {
  font-size: 13px;
  font-weight: 450;
  padding: 8px;
  color: #3d587e;
}
:is(#app, #modal) .sidebar-user-name {
  color: #1b365d;
  font-weight: 600;
}
:is(#app, #modal) .sidebar-user-role {
  color: #506782;
  font-weight: 400;
}
:is(#app, #modal) .sidebar-user-actions :is(a, button) {
  color: #3d587e;
  font-weight: 450;
}
:is(#app, #modal) .sidebar-user-actions > a {
  font-size: 12px;
}
:is(#app, #modal) :is(.panel, .card, .b-course-card, .b-program-card, dialog) {
  border-color: #c5d2e6;
}
:is(#app, #modal) :is(.panel, .card) {
  box-shadow: 0 3px 14px #23468b05;
}
:is(#app, #modal) .context-ribbon {
  border-left-color: #6488be;
  background: #edf3fc;
}
:is(#app, #modal) .lesson-link.active {
  background: #edf2fc;
  border-left-color: #5679ad;
  color: #23468b;
}
:is(#app, #modal) .b-breadcrumb {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  line-height: 1.65;
}
:is(#app, #modal) .b-breadcrumb > :is(a, span) {
  flex: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:is(#app, #modal)[data-view='learn'] .lesson-tabs button {
  font-weight: 450;
  color: #4b607c;
}
:is(#app, #modal)[data-view='learn'] .lesson-tabs button.active {
  color: #23468b;
  font-weight: 550;
  border-bottom-color: #23468b;
}
:is(#app, #modal) .b-wizard-step-list button {
  font-weight: 450;
}
:is(#app, #modal) .b-wizard-step-list button[aria-current='step'] {
  color: #23468b;
  background: #edf2fc;
  border-color: #91aad1;
  font-weight: 550;
}
@media (max-width: 760px) {
  :is(#app, #modal) .workspace-main.course-studio > .page-head h1 {
    font-size: 24px;
  }
}
:is(#app, #modal) .b-my-learning .b-experience-hero {
  padding: 20px 24px;
  margin-block: 8px 18px;
  gap: 20px;
}
:is(#app, #modal) .b-my-learning .b-experience-hero > img {
  width: 150px;
  height: 90px;
}
:is(#app, #modal) .b-my-learning .b-experience-hero h1 {
  margin-block: 0 6px;
}
:is(#app, #modal) .b-my-learning .b-experience-actions {
  margin-top: 12px;
}
:is(#app, #modal) .b-my-learning .b-study-filter {
  padding: 16px 20px;
}
:is(#app, #modal) .b-study-actions {
  margin: 0 0 16px;
  gap: 9px;
}
:is(#app, #modal) .b-study-card {
  gap: 22px;
  padding: 20px;
}
:is(#app, #modal) .b-study-card h2 {
  margin-block: 7px 14px;
}
:is(#app, #modal) .b-study-card .b-study-next {
  margin-block: 10px;
}
#app[data-view='learn'] .b-experience-hero {
  padding: 18px 22px;
  margin-block: 10px 14px;
}
#app[data-view='learn'] .b-experience-hero h1 {
  margin-block: 0 7px;
}
#app[data-view='learn'] .b-learning-hierarchy {
  padding: 7px 4px;
  margin-block: 4px 10px;
}
#app[data-view='learn'] .b-learning-parent > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
#app[data-view='learn'] .b-learning-parent small {
  margin: 0;
}
#app[data-view='learn'] .b-hierarchy-picker > summary,
#app[data-view='learn'] .lesson-outline > summary {
  color: #23468b;
}
#app[data-view='learn'] .lesson-context.panel {
  padding: 12px 16px;
  margin-bottom: 16px;
}
#app[data-view='learn'] .lesson-tabs {
  margin-bottom: 14px;
}
#app[data-view='learn'] .b-chapter-introduction {
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left-color: #6488be;
}
#app[data-view='learn'] .b-chapter-introduction.is-heading-only {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 11px 16px;
}
#app[data-view='learn'] .b-chapter-introduction.is-heading-only .b-chapter-kicker {
  margin: 0;
}
#app[data-view='learn'] .b-chapter-introduction.is-heading-only h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
#modal .review-context {
  padding: 12px 16px;
  margin-bottom: 16px;
}
#modal .review-context dl {
  gap: 12px 18px;
}
#modal .review-context dd {
  overflow-wrap: anywhere;
}
@media (min-width: 1000px) {
  #modal .review-context dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :is(#app, #modal) .b-my-learning .b-experience-hero {
    padding: 18px;
  }
  :is(#app, #modal) .b-my-learning .b-study-filter {
    padding: 14px 16px;
  }
  :is(#app, #modal) .b-study-actions {
    gap: 8px;
  }
  #app[data-view='learn'] .b-experience-hero {
    padding: 14px 18px;
    margin-block: 8px 10px;
  }
  #app[data-view='learn'] .b-experience-hero .b-experience-actions {
    margin-top: 10px;
  }
  #app[data-view='learn'] .b-learning-hierarchy {
    margin-block: 0 8px;
    padding-block: 3px;
  }
  #app[data-view='learn'] .b-learning-parent {
    gap: 4px;
  }
  #app[data-view='learn'] .b-learning-parent > div {
    gap: 4px 8px;
  }
  #app[data-view='learn'] .lesson-context.panel {
    padding: 10px 14px;
    margin-bottom: 10px;
  }
  #app[data-view='learn'] .lesson-context-header {
    margin-bottom: 5px;
  }
  #app[data-view='learn'] .lesson-completion {
    margin-top: 5px;
  }
  #app[data-view='learn'] .completion-requirements {
    margin-top: 5px;
  }
  #app[data-view='learn'] .b-hierarchy-picker {
    min-width: 0;
  }
  #app[data-view='learn'] .lesson-outline[open] nav {
    max-height: 220px;
    overflow-y: auto;
  }
}
@media (max-width: 460px) {
  #app .b-wizard-footer > .row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
  }
  #app .b-wizard-footer > .row > button {
    white-space: nowrap;
  }
  #app .b-wizard-footer [data-action='wizard-exit'] {
    grid-column: 1 / -1;
    min-height: 32px;
    padding-block: 5px;
  }
  #app .b-wizard-footer .help {
    margin-block: 6px 0;
  }
}

/* Give tablet catalog descriptions readable width without hiding any fields. */
@media (min-width: 769px) and (max-width: 1100px) {
  .b-program-list .b-program-card {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 18px 20px;
  }
  .b-program-card .b-card-visual {
    width: 132px;
    height: 112px;
    align-self: start;
  }
  .b-program-card .b-card-body {
    min-width: 0;
  }
  .b-program-card .b-card-title {
    font-size: 20px;
    line-height: 1.45;
  }
  .b-program-card .b-meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .b-program-card .b-meta-col {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  .b-program-card .b-meta-head {
    font-size: 13px;
    line-height: 1.65;
    white-space: nowrap;
  }
  .b-program-card .b-meta-val {
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .b-program-card .b-goal-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    white-space: normal;
  }
  .b-program-card .b-card-action {
    grid-column: 2;
    justify-content: flex-start;
  }
  .b-program-card .b-primary-btn {
    min-height: 44px;
    width: auto;
    min-width: 140px;
  }
}
@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {
  .d-app-frame.rail-motion {
    transition: grid-template-columns 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .d-app-frame > .legacy-sidebar {
    width: 218px;
    min-width: 0;
    overflow-x: clip;
  }
  .d-app-frame.rail-motion > .legacy-sidebar {
    transition:
      width 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 320ms ease;
  }
  .d-app-frame .legacy-sidebar nav a {
    white-space: nowrap;
  }
  .d-app-frame .rail-toggle {
    min-height: 44px;
    font-size: 13px;
  }
  .d-app-frame.rail-compact .rail-toggle {
    width: 48px;
    margin-inline: auto;
  }
  .d-app-frame.rail-compact .rail-toggle .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d-app-frame.rail-motion,
  .d-app-frame.rail-motion > .legacy-sidebar {
    transition: none;
  }
}

/* Account identity and exam environment use the workbench tokens and layout. */
#app .identity-rehearsal {
  border-inline-start: 4px solid #23468b;
  overflow-wrap: anywhere;
}

#app .identity-rehearsal[data-answer-blocked] {
  position: fixed;
  z-index: 40;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 6vw, 4rem);
  overflow: auto;
  display: grid;
  align-content: safe center;
  justify-items: center;
  border: 0;
  border-radius: 0;
  background: rgb(16 38 56 / 50%);
  backdrop-filter: blur(8px);
}

#app [data-exam-room]:has([data-answer-blocked]) #exam-form {
  filter: blur(9px);
}

#app .identity-rehearsal[data-answer-blocked] > .exam-guard-card {
  width: min(100%, 34rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #d3e1ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 64px rgb(22 47 73 / 25%);
}

#app .identity-rehearsal[data-answer-blocked] .rehearsal-heading h2 {
  font-size: 1.5rem;
}

#app .identity-rehearsal[data-answer-blocked]:has(dialog[open]) > .exam-guard-card {
  visibility: hidden;
}

#app .rehearsal-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

#app .rehearsal-heading h2 {
  margin-block: 0.2rem 0.6rem;
}

#app .rehearsal-guide,
#app .rehearsal-companion,
#app .rehearsal-check {
  margin-block: 1rem;
  padding: 1rem;
  background: #f2f7fa;
  border: 1px solid #d3e1ea;
  border-radius: 10px;
  color: #172e43;
}

#app .rehearsal-guide .rehearsal-companion {
  padding: 0.75rem 0 0;
  border: 0;
  border-block-start: 1px solid #cfdee7;
  border-radius: 0;
}

#app .rehearsal-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: #23468b;
  font-weight: 700;
}

#app .identity-rehearsal :is(button, a.secondary, a.primary) {
  min-height: 44px;
}

#app .identity-rehearsal [hidden] {
  display: none;
}

#app .exam-entry-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(86dvh, 45rem);
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #b9cde1;
  border-radius: 14px;
  background: #fff;
  color: #172e43;
  box-shadow: 0 18px 64px rgb(22 47 73 / 18%);
}

#app .exam-entry-dialog::backdrop {
  background: rgb(19 40 62 / 52%);
}

#app .exam-entry-dialog h2 {
  margin-block: 0 0.75rem;
  font-size: 1.45rem;
}

#app .exam-entry-dialog[data-exam-entry][open] {
  display: flex;
  flex-direction: column;
}

#app .exam-entry-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

#app .exam-entry-body [data-companion-code-value] {
  overflow-wrap: anywhere;
}

#app .exam-entry-actions {
  flex-shrink: 0;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid #d3e1ea;
}

#app .exam-progress-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #23468b;
}

#app .exam-progress-line > p {
  margin-block: 0.6rem;
}

#app .exam-progress-line > p:empty {
  margin: 0;
}

#app [data-exam-upload-status] {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

#app .local-face-preview:not([hidden]) {
  display: block;
  width: min(100%, 24rem);
  margin-block: 0.75rem;
  border-radius: 10px;
  background: #142d44;
}

#app .exam-progress-dot:not([hidden]) {
  flex: 0 0 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid #c0d5e5;
  border-block-start-color: #23468b;
  animation: exam-preparing 950ms linear infinite;
}

@keyframes exam-preparing {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .exam-progress-dot:not([hidden]) {
    animation: none;
  }
}

html[data-theme='bridge'] #app:has([data-exam-room]) > .app-header,
html[data-theme='bridge']
  #app
  .chrome-frame:has([data-exam-room])
  > :is(.chrome-rail, .d-rail-backdrop),
#app [data-exam-room] + footer {
  display: none;
}

html[data-theme='bridge'] #app .chrome-frame:has([data-exam-room]) {
  display: block;
}

#app [data-exam-room] {
  max-width: 86rem;
  margin-inline: auto;
}

#app .exam-room-heading {
  padding: clamp(1.1rem, 3vw, 2rem);
  border-block-end: 1px solid #b9cde1;
  color: #172e43;
  background: #f2f7fa;
}

#app .exam-room-heading p {
  margin-block: 0;
}

#app .exam-room-heading h1 {
  margin-block: 0.4rem;
}

#app .operations-organization {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-direction: column;
  white-space: nowrap;
}

#app .operations-directory {
  align-items: start;
}

#app .operations-directory ul {
  list-style: none;
  margin-block: 0.65rem 0;
  padding-inline-start: 0;
}

#app .operations-directory li {
  border-block-start: 1px solid #c9d6e2;
  padding-block: 0.75rem;
}

#app .operations-directory li p {
  margin-block: 0.2rem 0;
}

#app .operations-directory a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

#app .operations-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-block-end: 0.7rem;
}
