/* Adapted from the private reference's app-shell, sidebar and app-bar. */
:root { --forest: #173c32; --green: #226d55; --border: #d6e1dc; --ink: #20332d; --muted: #597066; --sidebar-width: 256px; }
body { background: #f4f7f5; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 18px; background: var(--forest); color: #edf5f1; overflow-y: auto; }
.sidebar .brand { padding: 0 8px; color: white; gap: 12px; font-size: 23px; }
.sidebar .brand img, .mobile-menu .brand img { border-radius: 8px; background: white; object-fit: contain; }
.brand span { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand small { font-size: 11px; font-weight: 450; color: #c3d7ce; margin-top: 3px; }
.workspace-identity { margin: 28px 8px 20px; padding: 0 0 22px; border-bottom: 1px solid #426457; }
.workspace-identity strong { display: block; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.role-label { display: block; font-size: 11px; font-weight: 650; color: #b8d3c6; margin-bottom: 7px; text-transform: uppercase; }
.nav-caption { margin: 22px 12px 8px; text-transform: uppercase; font-size: 10px; font-weight: 700; color: #b8d3c6; }
.main-nav { display: grid; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 12px; border-radius: 6px; color: #d3e3dc; text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav a:hover { background: #294f40; color: white; }
.main-nav a[aria-current] { background: #eef6f1; color: #173c32; }
.sidebar-account { display: flex; gap: 12px; align-items: center; margin-top: auto; padding: 20px 10px 6px; border-top: 1px solid #426457; color: #e4f0e9; text-decoration: none; font-size: 13px; }
.sidebar-account span { flex: 1; min-width: 0; }
.sidebar-account small { display: block; font-size: 11px; color: #bdd4c8; margin-top: 4px; }
.content-shell { min-width: 0; }
.app-bar { height: 80px; padding: 12px 36px; border-bottom: 1px solid var(--border); background: white; display: flex; gap: 16px; align-items: center; }
.app-bar-context { min-width: 0; margin-right: auto; }
.app-bar-context span, .app-bar-context strong { display: block; overflow-wrap: anywhere; }
.app-bar-context span { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.app-bar-context strong { font-size: 15px; }
.role-switcher, .department-switcher { position: relative; }
.role-switcher > summary, .department-switcher > summary { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--forest); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.role-switcher > summary::-webkit-details-marker, .department-switcher > summary::-webkit-details-marker { display: none; }
.role-switcher > summary .icon:last-child, .department-switcher > summary .icon:last-child { width: 14px; height: 14px; }
.role-switcher > div, .department-switcher > div { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 190px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: white; box-shadow: 0 12px 28px rgba(20, 52, 45, .16); }
.department-switcher > div { min-width: 270px; }
.department-switcher p { margin: 7px 8px 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.role-switcher a, .department-switcher a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 11px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.department-switcher a small { color: var(--muted); font-weight: 600; }
.role-switcher a:hover, .role-switcher a[aria-current="page"], .department-switcher a:hover, .department-switcher a[aria-current="page"] { background: #edf4f1; }
.network-status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-left: 3px solid #a66a00; background: #fff2cf; color: #6f4b08; font-size: 11px; font-weight: 700; }
.icon-button { width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 6px; color: #385c4d; background: white; text-decoration: none; }
.icon-button:hover { background: #edf4ef; }
.menu-toggle, .mobile-brand { display: none; }
.mobile-primary-nav { display: none; }
.content-shell main { max-width: 1450px; width: 100%; margin: 0 auto; padding: 34px 36px 48px; min-height: calc(100dvh - 140px); }
.context-help { margin: -10px 0 30px; padding: 0 0 13px; border-bottom: 1px solid var(--border); }
.context-help > summary { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.context-help > summary::-webkit-details-marker { display: none; }
.context-help > summary .icon { width: 17px; height: 17px; }
.context-help > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 2px 25px; }
.context-help p { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.context-help a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--forest); font-size: 13px; font-weight: 700; text-decoration: none; }
.context-help .icon { width: 16px; height: 16px; flex-basis: 16px; }
.content-shell footer { color: var(--muted); padding: 16px 36px; text-align: left; font-size: 11px; border-top: 1px solid var(--border); }
.content-shell h1 { font-size: 34px; font-weight: 750; margin-bottom: 24px; }
.content-shell h2 { font-size: 20px; margin-bottom: 20px; }
.content-shell section { border-color: var(--border); }
.content-shell a { text-underline-offset: 3px; }
.content-shell .eyebrow { font-size: 12px; font-weight: 650; color: #39705b; }
.mobile-menu { position: fixed; inset: 0 auto 0 0; margin: 0; padding: 22px 16px; width: min(320px, 90%); max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; background: var(--forest); color: #eef5f1; }
.mobile-menu::backdrop { background: #14261ec4; }
.mobile-menu .brand { color: white; font-size: 21px; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu .sidebar-account { margin-top: 30px; }
.mobile-menu .icon-button { background: #294e40; border-color: #527765; color: white; }
.skip { z-index: 100; }
.content-shell .summary { padding: 22px 0; margin: 0; }
.content-shell .records, .content-shell .invite-form { max-width: 1100px; }
@media (max-width: 1100px) and (min-width: 901px) { :root { --sidebar-width: 228px; } .content-shell main { padding: 28px 24px; } .app-bar { padding: 12px 24px; } }
@media (max-width: 900px), (max-height: 600px) {
  .app-shell { display: block; } .sidebar { display: none; } .menu-toggle { display: inline-flex; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--forest); font-size: 19px; text-decoration: none; margin-right: auto; }
  .app-bar-context { display: none; } .app-bar { height: 68px; gap: 10px; padding: 10px 14px; }
  .role-switcher, .department-switcher { margin-left: auto; }
  .role-switcher + .department-switcher, .department-switcher + .role-switcher { margin-left: 0; }
  .role-switcher > summary span, .department-switcher > summary span { display: none; }
  .app-bar:has(.role-switcher) .account-link, .app-bar:has(.department-switcher) .account-link { display: none; }
  .app-bar:has(.role-switcher) .mobile-brand strong, .app-bar:has(.department-switcher) .mobile-brand strong { display: none; }
  .content-shell main { padding: 26px 24px 106px; } .content-shell footer { display: none; } .content-shell h1 { font-size: 29px; }
  .mobile-primary-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 70px; padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--border); background: #fffefdf5; backdrop-filter: blur(12px); }
  .mobile-primary-nav a, .mobile-primary-nav button { min-width: 0; min-height: 56px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 4px; background: transparent; color: #587064; text-decoration: none; font-size: 11px; font-weight: 650; }
  .mobile-primary-nav a[aria-current] { color: #17664d; background: #e8f2ed; }
  .mobile-primary-nav .icon { width: 21px; height: 21px; }
}
@media (max-width: 480px) {
  .content-shell main { padding: 24px 16px 102px; } .app-bar { padding: 8px 12px; gap: 8px; }
  .content-shell h1 { font-size: 27px; } .content-shell footer { padding: 16px; }
  .context-help { margin-top: -4px; padding-bottom: 10px; }
  .context-help > div { align-items: flex-start; flex-direction: column; gap: 8px; padding-left: 0; }
}
@media print {
  .sidebar, .app-bar, .mobile-menu, .mobile-primary-nav, .content-shell footer, .skip { display: none !important; }
  .app-shell { display: block; } .content-shell main { padding: 0; max-width: none; min-height: 0; }
}

@media print {
  .context-help, .network-status, .role-switcher, .department-switcher, .meeting-attendance-shortcut { display: none !important; }
}

/* Keep navigation labels together at word boundaries on all screen sizes. */
.main-nav a span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }

@media (max-width: 359px) {
  .mobile-primary-nav a, .mobile-primary-nav button { padding-inline: 1px; }
}

.mobile-primary-nav span { overflow-wrap: normal; word-break: normal; text-align: center; }

/* Keep administration focused on the task, including narrow screens. */
.leadership-shell .context-help { margin-block: 0 .75rem; padding-block: .5rem; }
.leadership-shell .workspace-context { display: none; }
.leadership-shell .page-heading { margin-block: .75rem 1rem; padding-block: .5rem; }
.leadership-shell .administration-settings { margin-top: 1.5rem; border-top: 1px solid #557168; padding-top: .75rem; }
.leadership-links { display:flex; flex-wrap:wrap; gap: .75rem 1.25rem; }
.leadership-links a { padding-block:.5rem; }

.leadership-shell .notice.is-info { background: #edf3f1; border-color: #637c73; }

.leadership-shell main { padding-top: 16px; }
.leadership-shell .context-help { padding-block:0; margin-bottom:8px; }
.leadership-shell .context-help > summary { padding-block:0; min-height:44px; }
.leadership-shell .leadership-attention { margin-block: 16px; padding-block: 12px; }
.leadership-shell .leadership-activity { padding-top: 16px; }
.leadership-shell .page-heading { margin-block: 8px 12px; }
