/* Unified Mahara navigation across public, workspace and administration screens. */
:root {
  --mahara-nav-ink: #111712;
  --mahara-nav-green: #08704a;
  --mahara-nav-green-dark: #063e2b;
  --mahara-nav-lime: #d9ff66;
  --mahara-nav-muted: #647068;
  --mahara-nav-line: #e1e7e3;
  --mahara-nav-soft: #f1f7f3;
  --mahara-nav-gold: #d7b66f;
  --mahara-nav-shadow: 0 22px 60px rgba(8, 43, 28, .14), 0 5px 16px rgba(8, 43, 28, .06);
}

/* One brand mark in every navigation surface. */
.brand-symbol,
body.admin-shell .admin-brand .brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--mahara-nav-lime);
  background: var(--mahara-nav-green-dark);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  box-shadow: none;
}
.brand-symbol svg { width: 31px; height: 31px; }

/* Public header: this file is loaded last and is the canonical header layer. */
body.site-shell .main-header,
body.workspace-page .main-header,
body.auth-shell .main-header,
body.exchange-home .main-header {
  min-height: 78px;
  padding: 0;
  background: rgba(253, 255, 253, .92);
  border-color: rgba(211, 224, 216, .86);
  box-shadow: none;
  backdrop-filter: saturate(145%) blur(20px);
  -webkit-backdrop-filter: saturate(145%) blur(20px);
  transform: none !important;
}
body.site-shell .main-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(8, 112, 74, .23) 30%, rgba(215, 182, 111, .35) 50%, rgba(8, 112, 74, .23) 70%, transparent);
}
body.site-shell .main-header.is-scrolled,
body.site-shell .main-header.header-scrolled {
  min-height: 70px;
  padding: 0;
  background: rgba(253, 255, 253, .97);
  border-color: #d5e1d9;
  box-shadow: 0 13px 34px rgba(8, 43, 28, .08);
}
body.site-shell .header-container {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(15px, 1.7vw, 28px);
  width: min(calc(100% - 40px), 1500px);
  min-height: 77px;
}
body.site-shell .main-header.is-scrolled .header-container { min-height: 69px; }
body.site-shell .brand-link {
  gap: 11px;
  min-width: max-content;
  padding: 4px 0;
}
body.site-shell .main-header .brand-symbol {
  width: 45px;
  height: 45px;
  flex-basis: 45px;
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(6, 62, 43, .16), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
body.site-shell .main-header .brand-symbol svg { width: 33px; height: 33px; }
body.site-shell .brand-copy { gap: 1px; }
body.site-shell .brand-copy strong { color: var(--mahara-nav-ink); font-size: 1rem; line-height: 1.3; }
body.site-shell .brand-copy small { margin-top: 1px; color: #7b877f; font: 700 .58rem/1.2 system-ui, sans-serif; letter-spacing: .015em; }

body.site-shell .nav-menu {
  width: max-content;
  justify-self: center;
  gap: 2px;
  padding: 4px;
  background: rgba(239, 245, 241, .78);
  border: 1px solid #dde8e1;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
body.site-shell .nav-link,
body .nav-menu a.nav-hiring-link,
body.exchange-home .nav-menu a.nav-hiring-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #46534b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.site-shell .nav-link:hover,
body .nav-menu a.nav-hiring-link:hover,
body.site-shell .nav-more-wrapper.active .nav-more-btn {
  color: var(--mahara-nav-green-dark);
  background: #fff;
  border-color: #d6e4db;
  box-shadow: 0 4px 12px rgba(8, 64, 42, .07);
}
body.site-shell .nav-link.active,
body .nav-menu a.nav-hiring-link.active {
  color: #fff;
  background: linear-gradient(145deg, #08704a, #063e2b);
  border-color: #075f40;
  box-shadow: 0 7px 16px rgba(6, 62, 43, .16), inset 0 1px 0 rgba(255, 255, 255, .12);
}
body.site-shell .nav-link.active::after { display: none; }
body.site-shell .nav-hiring-link::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--mahara-nav-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(215, 182, 111, .15);
}

.nav-more-wrapper { position: relative; }
body.site-shell .nav-more-btn {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav-more-btn i { color: #879189; font-size: .53rem; transition: transform .2s ease; }
.nav-more-btn.active i { color: rgba(255, 255, 255, .78); }
.nav-more-wrapper.active .nav-more-btn i { transform: rotate(180deg); }
body.site-shell .nav-more-menu {
  top: calc(100% + 13px);
  right: auto;
  left: 0;
  display: grid;
  width: 244px;
  padding: 9px;
  overflow: visible;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dce6df;
  border-radius: 17px;
  box-shadow: var(--mahara-nav-shadow);
}
.nav-more-menu::before {
  position: absolute;
  top: -5px;
  left: 25px;
  width: 10px;
  height: 10px;
  content: "";
  background: #fff;
  border-top: 1px solid #dce6df;
  border-left: 1px solid #dce6df;
  transform: rotate(45deg);
}
.nav-more-wrapper.active .nav-more-menu { visibility: visible; opacity: 1; transform: none; }
body.site-shell .nav-more-menu a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 7px 9px;
  color: #354039;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
body.site-shell .nav-more-menu a:hover,
body.site-shell .nav-more-menu a.is-active { color: var(--mahara-nav-green-dark); background: var(--mahara-nav-soft); border-color: #dce9e1; }
body.site-shell .nav-more-menu i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--mahara-nav-green);
  background: #eaf4ee;
  border-radius: 9px;
}

body.site-shell .header-actions { flex: 0 0 auto; gap: 7px; }
.language-switch {
  display: inline-flex;
  margin: 0;
}
.language-switch button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--mahara-nav-green-dark);
  background: #fff;
  border: 1px solid #dbe6df;
  border-radius: 12px;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .07em;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.language-switch button i { color: #6d7b72; font-size: .69rem; }
.language-switch button:hover { color: #fff; background: var(--mahara-nav-green-dark); border-color: var(--mahara-nav-green-dark); }
.language-switch button:hover i { color: var(--mahara-nav-lime); }
.footer-parent-brand { color: inherit; font-weight: 700; }
.footer-language-switch { margin: 0; }
.footer-language-switch button {
  padding: 4px 10px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}
body.site-shell .header-cta,
body.site-shell .user-btn,
body.site-shell .header-icon-btn,
body.site-shell .notif-btn {
  min-height: 44px;
  border-radius: 12px;
}
body.site-shell .header-cta {
  min-width: max-content;
  padding-inline: 15px;
  color: #fff;
  background: linear-gradient(145deg, #08704a, #063e2b);
  border-color: #075f40;
  box-shadow: 0 8px 20px rgba(6, 62, 43, .14);
}
body.site-shell .header-cta i { color: var(--mahara-nav-lime); }
body.site-shell .header-cta:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(6, 62, 43, .2); }
body.site-shell .user-btn {
  height: 46px;
  min-width: 178px;
  max-width: 220px;
  padding: 4px 5px 4px 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff, #f5faf7);
  border-color: #dbe6df;
  box-shadow: 0 4px 13px rgba(8, 64, 42, .045);
}
body.site-shell .user-btn:hover,
body.site-shell .user-menu-wrapper.active .user-btn { background: #fff; border-color: #91b49f; box-shadow: 0 7px 18px rgba(8, 64, 42, .09); }
body.site-shell .user-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
body.site-shell .user-info { width: clamp(90px, 8.5vw, 140px); min-width: 0; }
body.site-shell .user-name,
body.site-shell .user-role { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.site-shell .user-name { font-size: .75rem; font-weight: 850; }
body.site-shell .user-role { color: #718078; font-size: .58rem; }
body.site-shell .user-chevron { flex: 0 0 auto; margin-inline-start: auto; color: #89958d; font-size: .55rem; transition: transform .2s ease; }
body.site-shell .user-menu-wrapper.active .user-chevron { transform: rotate(180deg); }
body.site-shell .header-icon-btn,
body.site-shell .notif-btn { width: 44px; height: 44px; color: var(--mahara-nav-green-dark); background: #fff; border-color: #dbe6df; }
body.site-shell .header-icon-btn:hover,
body.site-shell .notif-wrapper.active .notif-btn { color: #fff; background: var(--mahara-nav-green-dark); border-color: var(--mahara-nav-green-dark); transform: none; }
body.site-shell .notif-wrapper.active .notif-btn i { color: var(--mahara-nav-lime); }
body.site-shell .notif-badge { top: -4px; right: -5px; min-width: 18px; height: 18px; padding-inline: 4px; border: 2px solid #fff; font-size: .5rem; }

body.site-shell .surface-popover { border-color: #dce6df; border-radius: 18px; box-shadow: var(--mahara-nav-shadow); }

/* Notification centre: readable hierarchy, calm density and a deliberate unread state. */
body.site-shell .notif-dropdown {
  width: min(440px, calc(100vw - 20px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e4dd;
  border-radius: 19px;
  box-shadow: 0 26px 70px rgba(6, 42, 27, .18), 0 6px 18px rgba(6, 42, 27, .07);
}
body.site-shell .notif-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  color: var(--mahara-nav-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 255, 102, .15), transparent 38%),
    linear-gradient(135deg, #fbfdfb, #f3f8f5);
  border-bottom: 1px solid #dfe8e2;
}
body.site-shell .notif-header > *,
body.site-shell .notif-item > *,
body.site-shell .notif-footer > * {
  position: relative;
  z-index: 1;
  visibility: visible;
  opacity: 1;
}
body.site-shell .notif-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
body.site-shell .notif-heading-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--mahara-nav-lime);
  background: linear-gradient(145deg, #08704a, #063e2b);
  border: 1px solid #075f40;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(6, 62, 43, .14);
}
body.site-shell .notif-heading > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
body.site-shell .notif-heading strong { color: #15261e; font-size: .79rem; font-weight: 900; line-height: 1.35; }
body.site-shell .notif-heading small { color: #718078; font-size: .56rem; font-weight: 650; line-height: 1.45; }
body.site-shell .notif-header .link-button {
  min-width: max-content;
  padding: 7px 9px;
  color: #075f40;
  background: #e8f3ec;
  border: 1px solid #d1e4d8;
  border-radius: 999px;
  font: 800 .58rem/1.2 inherit;
  cursor: pointer;
}
body.site-shell .notif-header .link-button:hover { color: #fff; background: var(--mahara-nav-green-dark); border-color: var(--mahara-nav-green-dark); }
body.site-shell .notif-body {
  display: grid;
  max-height: min(410px, 61vh);
  gap: 7px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f4f8f5;
  scrollbar-color: #9fb4a8 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
body.site-shell .notif-body::-webkit-scrollbar { width: 6px; }
body.site-shell .notif-body::-webkit-scrollbar-track { background: transparent; }
body.site-shell .notif-body::-webkit-scrollbar-thumb { background: #a8baaf; border: 1px solid #f4f8f5; border-radius: 999px; }
body.site-shell .notif-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  min-height: 104px;
  margin: 0;
  padding: 11px;
  overflow: hidden;
  color: var(--mahara-nav-ink);
  background: #fff;
  border: 1px solid #e0e9e3;
  border-radius: 13px;
  box-shadow: 0 3px 11px rgba(8, 54, 36, .035);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.site-shell .notif-item:last-child { margin: 0; }
body.site-shell .notif-item:hover {
  z-index: 1;
  background: #fff;
  border-color: #9dbca9;
  box-shadow: 0 8px 20px rgba(8, 54, 36, .08);
  transform: translateY(-1px);
}
body.site-shell .notif-item.unread {
  background: linear-gradient(135deg, #fff 35%, #f4faf6);
  border-color: #c7ddd0;
  box-shadow: 0 4px 13px rgba(8, 73, 47, .055);
}
body.site-shell .notif-item.unread::after {
  position: absolute;
  top: 13px;
  right: 0;
  bottom: 13px;
  width: 3px;
  content: "";
  background: var(--mahara-nav-green);
  border-radius: 3px 0 0 3px;
}
html[dir="ltr"] body.site-shell .notif-item.unread::after { right: auto; left: 0; border-radius: 0 3px 3px 0; }
body.site-shell .notif-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  place-items: center;
  color: #08704a;
  background: #e5f2ea;
  border: 1px solid #d4e7db;
  border-radius: 12px;
  font-size: .78rem;
}
body.site-shell .notif-item.tone-finance .notif-icon { color: #8b5a11; background: #fff2d8; border-color: #f3dfb7; }
body.site-shell .notif-item.tone-agreement .notif-icon { color: #315a8a; background: #e9f1fb; border-color: #d4e2f3; }
body.site-shell .notif-item.tone-delivery .notif-icon { color: #6f4d94; background: #f0eafb; border-color: #dfd4ef; }
body.site-shell .notif-item.tone-dispute .notif-icon { color: #a6333d; background: #fff0f1; border-color: #f2d8da; }
body.site-shell .notif-item.tone-offer .notif-icon { color: #08705e; background: #e5f5f0; border-color: #cee7df; }
body.site-shell .notif-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
body.site-shell .notif-meta { display: flex; min-width: 0; align-items: center; gap: 6px; margin-bottom: 3px; }
body.site-shell .notif-meta b {
  max-width: 100%;
  overflow: hidden;
  color: #527063;
  font-size: .54rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.site-shell .notif-meta em { padding: 2px 6px; color: #855413; background: #ffedc8; border-radius: 999px; font-size: .49rem; font-style: normal; font-weight: 900; }
body.site-shell .notif-content strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #15271f;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.site-shell .notif-preview {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #5f6f67;
  font-size: .59rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.site-shell .notif-content small { margin-top: 5px; color: #8a958f; font-size: .52rem; font-weight: 650; }
body.site-shell .notif-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #7d9186;
  background: #f0f5f2;
  border-radius: 9px;
  font-size: .5rem;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
body.site-shell .notif-item:hover .notif-arrow { color: var(--mahara-nav-lime); background: var(--mahara-nav-green-dark); transform: translateX(-2px); }
html[dir="ltr"] body.site-shell .notif-item:hover .notif-arrow { transform: translateX(2px); }
body.site-shell .notif-footer { padding: 0; background: #fff; border-top: 1px solid #dfe8e2; }
body.site-shell .notif-footer a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  color: #075f40;
  font-size: .64rem;
  font-weight: 850;
  text-decoration: none;
}
body.site-shell .notif-footer a:hover { background: #f2f7f4; }
body.site-shell .notif-footer i { color: #739084; font-size: .56rem; }

body.site-shell .user-dropdown {
  width: min(324px, calc(100vw - 24px));
  max-height: min(76vh, 680px);
  padding: 8px;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: var(--mahara-nav-shadow);
}
body.site-shell .dropdown-kicker {
  padding: 9px 10px 5px;
  color: var(--mahara-nav-muted);
  font-size: .59rem;
  font-weight: 850;
}
body.site-shell .dropdown-item {
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 10px;
  font-size: .74rem;
}
body.site-shell .dropdown-item:hover { color: var(--mahara-nav-green-dark); background: var(--mahara-nav-soft); }
body.site-shell .dropdown-item:hover i { color: var(--mahara-nav-green); }
body.site-shell .dropdown-divider { margin: 5px 7px; background: var(--mahara-nav-line); }

/* Workspace navigation uses the same spacing, active state and color language. */
.workspace-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
  margin-bottom: 26px;
  padding: 8px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--mahara-nav-line);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(13, 42, 27, .035);
}
.workspace-nav-context {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 7px 11px;
  color: var(--mahara-nav-green-dark);
  background: var(--mahara-nav-soft);
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 850;
  white-space: nowrap;
  justify-content: center;
}
.workspace-nav a {
  justify-content: center;
  min-height: 38px;
  gap: 7px;
  padding: 7px 10px;
  color: #566159;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 750;
}
.workspace-nav a:hover { color: var(--mahara-nav-green-dark); background: var(--mahara-nav-soft); border-color: #e0ebe4; }
.workspace-nav a.is-active {
  color: #fff;
  background: var(--mahara-nav-green-dark);
  border-color: var(--mahara-nav-green-dark);
  box-shadow: 0 5px 13px rgba(6, 62, 43, .13);
}
.workspace-nav a.is-active i { color: var(--mahara-nav-lime); }

/* Administration keeps its focused dark rail with the same mark and controls. */
body.admin-shell .sidebar { background: #0f1712; border-color: #27332b; }
.admin-sidebar-close { display: none; }
body.admin-shell .admin-brand { margin: 17px 16px 13px; padding: 8px 6px 17px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
body.admin-shell .admin-brand .brand-symbol { color: var(--mahara-nav-lime); background: var(--mahara-nav-green); }
body.admin-shell .admin-sidebar { gap: 16px; padding-top: 10px; }
body.admin-shell .sidebar-section { gap: 4px; }
body.admin-shell .sidebar-section-title { margin: 10px 10px 5px; color: #849188; }
body.admin-shell .sidebar-link {
  min-height: 39px;
  padding: 8px 10px;
  color: #b7c2ba;
  border-radius: 8px;
  font-size: .76rem;
}
body.admin-shell .sidebar-link:hover { color: #fff; background: #19251d; }
body.admin-shell .sidebar-link.active {
  color: #0c2519;
  background: var(--mahara-nav-lime);
  box-shadow: none;
}
body.admin-shell .sidebar-link.active i { color: #0c5137; }
body.admin-shell .topbar {
  min-height: 64px;
  padding: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--mahara-nav-line);
  box-shadow: 0 7px 22px rgba(13, 42, 27, .035);
}
body.admin-shell .topbar-container { min-height: 63px; padding: 0; }
body.admin-shell .topbar-search-form,
body.admin-shell .topbar-date,
body.admin-shell .topbar-logout { border-radius: 8px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .workspace-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1280px) and (max-width: 1450px) {
  body.site-shell .header-container { gap: 10px; width: min(calc(100% - 24px), 1500px); }
  body.site-shell .brand-link { gap: 8px; }
  body.site-shell .brand-copy small { display: none; }
  body.site-shell .nav-link,
  body .nav-menu a.nav-hiring-link,
  body.exchange-home .nav-menu a.nav-hiring-link { padding-inline: 9px; font-size: .73rem; }
  body.site-shell .user-btn { min-width: 156px; max-width: 176px; }
  body.site-shell .header-cta { padding-inline: 11px; font-size: .68rem; }
  .language-switch button { min-width: 41px; padding-inline: 8px; }
}

/* Mobile navigation. */
@media (max-width: 1279px) {
  body.site-shell .header-container { grid-template-columns: auto 1fr; }
  body.site-shell .nav-menu { display: none; }
  body.site-shell .header-actions { justify-self: end; }
  body.site-shell .mobile-menu-btn { display: grid; }
  body.site-shell .language-switch { display: none; }
}

@media (max-width: 760px) {
  body.site-shell .main-header,
  body.workspace-page .main-header,
  body.auth-shell .main-header,
  body.exchange-home .main-header { min-height: 66px; }
  body.site-shell .header-container,
  body.site-shell .main-header.is-scrolled .header-container { width: min(calc(100% - 24px), 1400px); min-height: 65px; gap: 10px; }
  body.site-shell .main-header .brand-symbol { width: 39px; height: 39px; flex-basis: 39px; border-radius: 11px; box-shadow: 0 6px 16px rgba(6, 62, 43, .14); }
  body.site-shell .main-header .brand-symbol svg { width: 29px; height: 29px; }
  body.site-shell .brand-copy small { display: none; }
  body.site-shell .user-info,
  body.site-shell .header-cta,
  body.site-shell .header-login { display: none; }
  body.site-shell .user-btn { width: 42px; min-width: 42px; max-width: 42px; height: 42px; min-height: 42px; padding: 3px; }
  body.site-shell .user-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  body.site-shell .user-chevron { display: none; }
  body.site-shell .notif-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100svh - 82px);
    transform-origin: top center;
  }
  body.site-shell .user-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100svh - 82px);
    transform-origin: top center;
  }
  body.site-shell .notif-body { max-height: calc(100svh - 208px); }

  body.site-shell .mobile-menu {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(94vw, 410px);
    padding: 0 16px 16px;
    overflow: hidden;
    background: #f8fbf9;
    box-shadow: -22px 0 60px rgba(5, 38, 25, .2);
  }
  body.site-shell .mobile-menu-header {
    min-height: 84px;
    margin-inline: -16px;
    padding: 14px 16px;
    color: #fff;
    background:
      radial-gradient(circle at 8% 0%, rgba(215, 182, 111, .22), transparent 36%),
      linear-gradient(145deg, #063e2b, #08704a);
    border-bottom: 0;
  }
  body.site-shell .mobile-menu-header .brand-link { color: #fff; }
  body.site-shell .mobile-menu-header .brand-copy strong { color: #fff; }
  body.site-shell .mobile-menu-header .brand-copy small { display: block; color: rgba(255, 255, 255, .65); }
  body.site-shell .mobile-menu-header .brand-symbol { color: #123c2b; background: var(--mahara-nav-lime); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
  body.site-shell .mobile-menu-close {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .18);
  }
  body.site-shell .mobile-menu-close:hover { color: #123c2b; background: var(--mahara-nav-lime); border-color: var(--mahara-nav-lime); }
  body.site-shell .mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 6px;
    padding: 16px 1px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.site-shell .mobile-nav-links a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 11px;
    min-height: 61px;
    min-width: 0;
    align-items: center;
    padding: 8px 11px;
    color: var(--mahara-nav-ink);
    background: #fff;
    border: 1px solid #e3ebe6;
    border-radius: 13px;
    box-shadow: 0 3px 10px rgba(8, 64, 42, .025);
    font-size: .8rem;
  }
  body.site-shell .mobile-nav-links a > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.site-shell .mobile-nav-links a > i {
    grid-row: 1 / span 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--mahara-nav-green);
    background: var(--mahara-nav-soft);
    border-radius: 10px;
    font-size: .75rem;
  }
  body.site-shell .mobile-nav-links a > span { align-self: end; font-weight: 850; }
  body.site-shell .mobile-nav-links a > b { display: none; }
  body.site-shell .mobile-nav-kicker {
    grid-column: 1 / -1;
    margin-top: 7px;
    padding: 12px 5px 4px;
    color: var(--mahara-nav-muted);
    border-top: 1px solid var(--mahara-nav-line);
    font-size: .59rem;
    font-weight: 850;
  }
  body.site-shell .mobile-nav-links a:hover,
  body.site-shell .mobile-nav-links a.is-active { color: var(--mahara-nav-green-dark); background: var(--mahara-nav-soft); border-color: #dce9e1; }
  body.site-shell .mobile-nav-links a.is-active > i { color: var(--mahara-nav-lime); background: var(--mahara-nav-green-dark); }
  body.site-shell .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-inline: -16px;
    padding: 13px 16px 0;
    background: linear-gradient(to top, #f8fbf9 75%, rgba(248, 251, 249, .9));
    border-top: 1px solid var(--mahara-nav-line);
  }
  body.site-shell .mobile-menu-actions > :only-child { grid-column: 1 / -1; }
  body.site-shell .mobile-menu-actions .mobile-language-switch { grid-column: 1 / -1; }
  body.site-shell .mobile-menu-actions .btn { min-width: 0; margin: 0; }
  body.site-shell .mobile-language-switch { margin: 0; }
  body.site-shell .mobile-language-switch button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--mahara-nav-green-dark);
    background: var(--mahara-nav-soft);
    border: 1px solid #dce9e1;
    border-radius: 11px;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
  }

  .app-shell { width: min(calc(100% - 24px), 1240px); padding-top: 15px; }
  .workspace-nav {
    position: static;
    display: flex;
    gap: 6px;
    margin-inline: -12px;
    margin-bottom: 14px;
    padding: 5px 12px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
  }
  .workspace-nav-context { display: none; }
  .workspace-nav a { flex: 0 0 auto; min-width: max-content; min-height: 38px; padding: 7px 10px; font-size: .7rem; text-align: center; scroll-snap-align: center; }

  body.admin-shell .topbar-container { min-height: 58px; }
  body.admin-shell .topbar > .container { display: flex; align-items: center; gap: 8px; }
  body.admin-shell .topbar > .container > .topbar-container { flex: 1; min-width: 0; }
  body.admin-shell .topbar-actions { width: 100%; min-width: 0; }
  body.admin-shell .topbar-context,
  body.admin-shell .topbar-date { display: none; }
  body.admin-shell .topbar-search-form { width: auto; min-width: 0; flex: 1; }
  body.admin-shell .topbar-logout { flex: 0 0 auto; }
  body.admin-shell .sidebar-toggle { min-height: 40px; border-radius: 9px; }
  body.admin-shell .sidebar-toggle {
    position: static;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: #0c2519;
    background: var(--mahara-nav-lime);
    box-shadow: none;
  }
  body.admin-shell .sidebar-toggle span { display: none; }
  body.admin-shell .admin-sidebar-close {
    position: absolute;
    top: 18px;
    left: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #dce6df;
    background: #17251c;
    border: 1px solid #304038;
    border-radius: 9px;
    cursor: pointer;
  }
}

@media (max-width: 430px) {
  body.site-shell .header-container { width: calc(100% - 18px); gap: 7px; }
  body.site-shell .brand-copy strong { font-size: .86rem; }
  body.site-shell .brand-link { gap: 7px; }
  body.site-shell .header-actions { gap: 4px; }
  body.site-shell .notif-btn,
  body.site-shell .header-icon-btn,
  body.site-shell .user-btn { width: 39px; min-width: 39px; max-width: 39px; height: 39px; min-height: 39px; }
  body.site-shell .user-avatar { width: 31px; height: 31px; flex-basis: 31px; }
  body.site-shell .main-header .brand-symbol { width: 37px; height: 37px; flex-basis: 37px; }
  body.site-shell .notif-badge { right: -3px; }
  body.site-shell .notif-dropdown { top: 67px; right: 7px; left: 7px; }
  body.site-shell .notif-header { min-height: 70px; padding: 11px 12px; }
  body.site-shell .notif-heading-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  body.site-shell .notif-item { grid-template-columns: 38px minmax(0, 1fr) 26px; gap: 8px; min-height: 98px; padding: 10px; }
  body.site-shell .notif-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
}

@media (max-width: 350px) {
  body.site-shell .mobile-nav-links { grid-template-columns: 1fr; }
}
html[dir="ltr"] body.site-shell {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] body.site-shell .notif-dropdown {
  right: 0;
  left: auto;
  transform-origin: top right;
}
