body { --dashboard-rail: 224px; padding-left: var(--dashboard-rail); background: #f7f3ef; }
.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--dashboard-rail); padding: 20px 12px; box-sizing: border-box; overflow: auto; background: #222321; color: white; z-index: 30; }
.dashboard-brand { display: grid; justify-items: center; gap: 8px; margin: 0 9px 24px; padding-bottom: 17px; border-bottom: 1px solid #ffffff38; color: white; text-decoration: none; }
.dashboard-brand img { display: block; width: 174px; max-width: 100%; height: auto; }
.dashboard-brand strong { letter-spacing: .13em; text-transform: uppercase; font-size: 13px; color: white; }
.dashboard-sidebar .dashboard-links { display: grid; gap: 5px; padding: 0; background: transparent; border: 0; overflow: visible; }
.dashboard-links button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: white; text-align: left; white-space: normal; font-size: 14px; }
.dashboard-links button span { font-size: 20px; width: 22px; flex: none; text-align: center; }
.dashboard-links button:hover, .dashboard-links button:focus-visible { background: #383936; color: white; }
.dashboard-links button[aria-current="page"] { background: #b63c0d; color: white; }
.dashboard-nav-heading { margin: 12px 7px 4px; padding-top: 15px; border-top: 1px solid #ffffff38; color: #e0d9d2; font-size: 13px; font-weight: 700; }
header .academy-global-nav, body[data-view="course"] header .academy-global-nav { position: static; display: flex; min-height: 60px; gap: 14px; padding: 8px 24px; box-sizing: border-box; background: #fff; border-bottom: 1px solid #ddd4c9; justify-content: space-between; }
header .academy-global-nav .academy-language { background: #222321; border-radius: 6px; }
#dashboard-crumb { color: #222321; font-size: 14px; font-weight: 700; }
#dashboard-search { margin: 0 0 0 auto; display: flex; width: min(350px, 42vw); background: #f7f5f2; border: 1px solid #c7beb7; border-radius: 8px; }
#dashboard-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 7px 10px; color: #222321; }
#dashboard-search button, #dashboard-menu { color: #222321; }
#dashboard-menu { display: none; }
body:not([data-view="course"]) header .toolbar { display: none; }
body[data-view="home"] main { box-sizing: border-box; padding: 26px 28px 42px; }
.dashboard-title { font-size: clamp(28px, 4vw, 43px); margin: 0 0 17px; }
body[data-view="home"] .academy-hero { border: 1px solid #ddd4c9; border-radius: 12px; overflow: hidden; background: white; grid-template-columns: 1fr 1fr; }
body[data-view="home"] .academy-hero-copy { padding: clamp(20px, 3vw, 38px); }
body[data-view="home"] .academy-hero h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; }
body[data-view="home"] .academy-hero p { font-size: 16px; }
body[data-view="home"] .academy-hero img { width: 100%; height: 100%; max-height: 320px; min-height: 230px; object-fit: cover; }
.dashboard-quick { display: flex; gap: 13px; margin: 16px 0 22px; }
.dashboard-shortcut { display: flex; align-items: center; gap: 12px; flex: 1; background: white; color: #222321; border: 1px solid #ddd4c9; border-radius: 9px; padding: 14px; text-align: left; }
.dashboard-shortcut small { display: block; }
.dashboard-shortcut-icon, .dashboard-shortcut-action { color: #a2350d; font-weight: 700; }
.dashboard-shortcut-icon { font-size: 24px; }
.dashboard-shortcut-action { margin-left: auto; white-space: nowrap; }
body[data-view="home"] .academy-catalog { padding: 0; }
body[data-view="home"] .academy-modules { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
body[data-view="home"] .dashboard-module { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: left; min-width: 0; min-height: 98px; padding: 13px; background: white; border: 1px solid #ddd4c9; color: #222321; }
.dashboard-module:hover, .dashboard-shortcut:hover { border-color: #b63c0d !important; }
.dashboard-module p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.dashboard-module .academy-icon { width: 24px; height: 24px; }
.dashboard-module-arrow { justify-self: end; }
body.focus { padding-left: 0; }
body.focus .dashboard-sidebar { display: none; }
@media (max-width: 1100px) { body[data-view="home"] .academy-modules { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  body { padding-left: 0; }
  .dashboard-sidebar { display: none; top: 60px; box-shadow: 10px 0 25px #0003; }
  .dashboard-sidebar.dashboard-menu-open { display: block; }
  #dashboard-menu { display: inline-block; padding: 7px; }
  #dashboard-crumb { display: none; }
  header .academy-global-nav, body[data-view="course"] header .academy-global-nav { padding-inline: 10px; gap: 8px; }
  #dashboard-search { width: auto; flex: 1; }
  body[data-view="home"] main { padding: 18px 13px 30px; }
  body[data-view="home"] .academy-hero { grid-template-columns: 1fr; }
  body[data-view="home"] .academy-hero img { height: 185px; min-height: 0; }
  .dashboard-quick { flex-direction: column; }
}
@media print { body { padding-left: 0 !important; } .dashboard-sidebar { display: none !important; } }

/* Dashboard layout follows the approved desktop design. */
body { --dashboard-rail: 242px; background: #f4efeb; }
.dashboard-sidebar { padding: 24px 8px; background: #222; }
.dashboard-brand { gap: 10px; padding: 0; border: 0; margin: 0 13px 44px; }
.dashboard-brand img { width: 194px; }
.dashboard-brand strong { width: 94%; border-top: 1px solid #ffffff66; padding-top: 10px; text-align: center; font-size: 16px; letter-spacing: .1em; }
.dashboard-links button { min-height: 51px; font-size: 18px; gap: 18px; padding-inline: 17px; }
.dashboard-links button[aria-current="page"], body[data-view="home"] .academy-hero .primary { background: #bd4008; color: white; }
.dashboard-links button span { width: 27px; }
.dashboard-nav-heading { margin: 14px 14px 8px; padding-top: 24px; font-size: 16px; }
.dashboard-icon { display: block; width: 26px; height: 26px; flex: none; }
header .academy-global-nav, body[data-view="course"] header .academy-global-nav { min-height: 70px; padding-inline: 35px 26px; gap: 28px; }
header .academy-global-nav .academy-language { background: transparent; color: #181818; }
header .academy-global-nav .academy-language button { color: #181818; background: transparent; border: 0; }
header .academy-global-nav .academy-language button[aria-pressed="true"] { font-weight: 800; }
#dashboard-crumb { font-size: 18px; font-weight: 400; }
#dashboard-search { width: min(462px, 35vw); min-height: 46px; background: #f3f3f3; }
#dashboard-search input { font-size: 18px; }
#dashboard-search button { display: grid; place-items: center; padding: 0 0 0 12px; border: 0; background: none; }
body[data-view="home"] main { max-width: none; padding: 26px 28px 50px 32px; color: #191919; }
.dashboard-title { margin-bottom: 18px; font-size: clamp(34px, 3.35vw, 50px); }
body[data-view="home"] .academy-hero { grid-template-columns: 46% 54%; min-height: 346px; }
body[data-view="home"] .academy-hero-copy { padding: 35px; align-self: center; }
body[data-view="home"] .academy-hero h2 { font-size: clamp(29px, 3.15vw, 47px); line-height: 1.14; }
body[data-view="home"] .academy-hero p { font-size: clamp(17px, 1.55vw, 23px); line-height: 1.25; margin-bottom: 25px; }
body[data-view="home"] .academy-hero .primary { padding: 13px 32px; font-size: clamp(16px, 1.65vw, 24px); }
body[data-view="home"] .academy-hero img { max-height: 346px; min-height: 100%; object-position: center; }
.dashboard-quick { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 22px 0 25px; }
.dashboard-shortcut { min-height: 84px; padding: 10px 28px; gap: 22px; font-size: 21px; }
.dashboard-shortcut small { font-size: 17px; font-weight: 400; }
.dashboard-shortcut-icon, .dashboard-shortcut-action, .dashboard-module > .dashboard-icon { color: #c34308; }
.dashboard-shortcut-icon .dashboard-icon, .dashboard-module > .dashboard-icon { width: 36px; height: 36px; }
.dashboard-shortcut-action { font-size: 19px; }
#academy-catalog-heading { font-size: clamp(28px, 2.45vw, 36px); margin: 0 0 16px; }
body[data-view="home"] .dashboard-module { min-height: 132px; gap: 7px 15px; padding: 14px 20px; border-radius: 11px; color: #151515; }
.dashboard-module strong { font-size: clamp(15px, 1.48vw, 22px); line-height: 1.15; }
.dashboard-module p { font-size: clamp(14px, 1.2vw, 18px); line-height: 1.25; font-weight: 400; }
.dashboard-module-arrow .dashboard-icon { width: 21px; height: 21px; }
@media (max-width: 1250px) { body[data-view="home"] .dashboard-module { padding-inline: 12px; gap: 7px 9px; } }
@media (max-width: 760px) {
  header .academy-global-nav, body[data-view="course"] header .academy-global-nav { padding-inline: 10px; gap: 8px; }
  .dashboard-sidebar { top: 70px; }
  body[data-view="home"] main { padding: 18px 13px 30px; }
  body[data-view="home"] .academy-hero { grid-template-columns: 1fr; }
  body[data-view="home"] .academy-hero img { min-height: 0; }
  .dashboard-quick { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-shortcut { padding: 10px 13px; gap: 10px; font-size: 17px; }
  .dashboard-shortcut small, .dashboard-shortcut-action, #dashboard-search input { font-size: 14px; }
}

.dashboard-sidebar .dashboard-links button > [data-dashboard-icon] {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
}

#overlay .modalback {
  z-index: 100;
  box-sizing: border-box;
  padding: clamp(10px, 3vw, 24px);
}
#overlay .modal {
  box-sizing: border-box;
  min-width: 0;
  max-height: 100%;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
#overlay .modal select { box-sizing: border-box; }
body:has(#overlay .modalback) { overflow: hidden; }
.dashboard-sidebar .dashboard-admin-link { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .65rem .8rem; border-radius: .5rem; color: white; text-decoration: none; }
.dashboard-sidebar .dashboard-admin-link:hover, .dashboard-sidebar .dashboard-admin-link:focus-visible { background: #3b3b38; }
.dashboard-admin-link .dashboard-icon { width: 1.35rem; height: 1.35rem; }
.dashboard-sidebar .dashboard-admin-link > [data-dashboard-icon] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  padding: 0;
}
