/* Shared workspace navigation. */
.app { --sidebar-width: 264px; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100dvh;
  padding: 28px 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #425670 transparent;
  border-right: 1px solid #ffffff0c;
  background: #15243b;
}
.sidebar .brand { flex-shrink: 0; gap: 11px; margin: 0 7px 32px; padding: 0 0 27px; border-bottom: 1px solid #ffffff12; }
.sidebar .brand-mark { position: relative; width: 39px; height: 39px; border: 1px solid #c3d0ff; border-radius: 12px; background: #acbdff; color: #192e4c; box-shadow: 0 4px 12px #020d211f, inset 0 1px 0 #ffffff66; }
.sidebar .brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease-out; }
.sidebar .brand:hover .brand-mark svg { transform: translate(1px, -1px); }
.brand-copy { display: grid; gap: 6px; min-width: 0; }
.brand-copy strong { color: #f3f6ff; font-size: 17px; font-weight: 760; letter-spacing: -.035em; line-height: 1.2; }
.brand-copy small { color: #9bacca; font-size: 7px; font-weight: 500; letter-spacing: .11em; }
.sidebar .nav { display: grid; gap: 27px; flex-shrink: 0; margin: 0; }
.nav-group { display: grid; gap: 5px; }
.nav-section { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 7px; color: #9bacc5; font-size: 11px; font-weight: 550; line-height: 1.5; }
.sidebar .nav-button { position: relative; gap: 11px; width: 100%; min-height: 52px; padding: 9px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #b8c6dc; font-size: 14px; font-weight: 550; line-height: 1.5; text-decoration: none; transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out; }
.sidebar .nav-button::before { content: ''; position: absolute; inset: 15px auto 15px -1px; width: 3px; border-radius: 0 3px 3px 0; background: #8be2ca; opacity: 0; transform: scaleY(.4); transition: transform 180ms ease-out, opacity 180ms ease-out; }
.sidebar .nav-button:hover { border-color: #ffffff0a; background: #ffffff06; color: #f3f7ff; }
.sidebar .nav-button.active { width: 100%; border-color: #53758f45; background: #223b54; color: #f5faff; box-shadow: 0 3px 8px #05132616; }
.sidebar .nav-button.active::before { opacity: 1; transform: scaleY(1); }
.sidebar .nav-button span { width: auto; color: inherit; font-size: inherit; text-align: left; }
.sidebar .nav-button .nav-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #ffffff05; color: #91a7c8; transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar .nav-button.active .nav-icon { color: #99e9d3; background: #8be2ca12; }
.sidebar .nav-button:hover .nav-icon { color: #b7e7e0; transform: translateY(-1px); }
.sidebar .nav-label { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; white-space: nowrap; }
.nav-chevron { width: 12px; height: 12px; flex-shrink: 0; margin-left: auto; fill: none; stroke: #a2d6d0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-3px); transition: opacity 180ms ease-out, transform 180ms ease-out; }
.nav-button.active .nav-chevron { opacity: 1; transform: translateX(0); }
.programs-toggle .nav-chevron { opacity: .75; transform: rotate(0deg); }
.programs-toggle[aria-expanded="true"] .nav-chevron { opacity: 1; transform: rotate(90deg); }
.sidebar-program-panel { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 220ms ease, opacity 180ms ease, visibility 0s 220ms; }
.sidebar-program-panel.is-expanded { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 220ms ease, opacity 180ms ease, visibility 0s; }
.sidebar-program-clip { min-height: 0; overflow: hidden; }
.sidebar-program-list { display: grid; gap: 3px; margin: 5px 3px 3px 27px; padding: 4px 0 4px 12px; border-left: 1px solid #91a7c82b; list-style: none; }
.sidebar-program-link { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #acbdd5; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; text-decoration: none; overflow-wrap: anywhere; transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out; }
.sidebar-program-link:hover { background: #ffffff08; color: #f3f7ff; }
.sidebar-program-link.active { border-color: #8be2ca24; background: #8be2ca12; color: #a0ecd7; }
.sidebar-program-link small { padding: 1px 5px; border: 1px solid #9ab2d226; border-radius: 4px; color: #9bacc5; font-size: 9px; white-space: nowrap; }
.sidebar-program-all { color: #92a6c4; font-size: 11px; }
.sidebar-program-list :is(a, button):focus-visible { outline-offset: -2px; }
.sidebar .nav-mobile-label { display: none; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 11px 14px; border: 1px solid #ffffff13; border-radius: 10px; background: #ffffff03; color: #aabbd4; font-size: 11px; text-align: left; transition: color 180ms ease-out, background-color 180ms ease-out; }
.sidebar-toggle:hover { background: #ffffff08; color: #f3f7ff; }
.sidebar-toggle svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-toggle .sidebar-toggle-hint { display: grid; place-items: center; width: 19px; height: 19px; margin-left: auto; border: 1px solid #ffffff1a; border-radius: 4px; font: inherit; font-size: 14px; line-height: 1; }
.sidebar :is(a, button):focus-visible { outline: 2px solid #8be2ca; outline-offset: 3px; }
@media (min-width: 721px) {
  .app.sidebar-collapsed { --sidebar-width: 80px; }
  .sidebar-collapsed .sidebar { padding-inline: 10px; }
  .sidebar-collapsed .brand { justify-content: center; margin-inline: 0; padding-bottom: 25px; }
  .sidebar-collapsed :is(.brand-copy, .nav-section, .nav-label, .nav-chevron, .sidebar-toggle span, .sidebar-toggle .sidebar-toggle-hint) { display: none; }
  .sidebar-collapsed .nav { gap: 22px; }
  .sidebar-collapsed .nav-button { justify-content: center; gap: 0; min-height: 52px; padding: 9px; }
  .sidebar-collapsed .sidebar-program-panel { display: none; }
  .sidebar-collapsed .sidebar-toggle { justify-content: center; padding-inline: 10px; }
  .sidebar-collapsed .sidebar-toggle svg { transform: scaleX(-1); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .app:not(.sidebar-collapsed) { --sidebar-width: 248px; }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand { gap: 9px; margin-inline: 5px; }
  .brand-copy strong { font-size: 16px; }
  .sidebar .nav-button { gap: 9px; padding-inline: 10px; }
}
@media (max-width: 720px) {
  .sidebar { position: sticky; inset: 0 auto auto 0; width: 100%; height: auto; max-height: none; padding: calc(12px + env(safe-area-inset-top)) 14px 10px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 13px; overflow: visible; border-right: 0; border-bottom: 1px solid #ffffff12; box-shadow: 0 4px 12px #17243b0b; }
  .sidebar .brand { align-self: flex-start; gap: 9px; margin: 0 3px; padding: 0; border: 0; }
  .sidebar .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .sidebar .brand-mark svg { width: 20px; height: 20px; }
  .brand-copy { gap: 4px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 6px; }
  .sidebar .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 5px; margin: 0; }
  .nav-group { display: contents; }
  .sidebar-programs { display: contents; }
  .sidebar-program-panel { grid-column: 1 / -1; grid-row: 2; }
  .sidebar-program-list { max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; margin: 3px 0 0; padding: 6px; border: 1px solid #ffffff12; border-radius: 10px; background: #101e32; }
  .sidebar-program-link { min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .sidebar :is(.nav-section, .nav-label, .nav-chevron, .sidebar-bottom) { display: none; }
  .sidebar .nav-button { flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 57px; padding: 6px 2px; border-radius: 9px; font-size: 10px; }
  .sidebar .nav-button::before { inset: auto 25% -1px; width: auto; height: 2px; border-radius: 2px; }
  .sidebar .nav-button .nav-icon { width: 24px; height: 24px; border-radius: 6px; background: transparent; }
  .nav-icon svg { width: 18px; height: 18px; }
  .sidebar .nav-mobile-label { display: block; color: inherit; font-size: 11px; font-weight: 550; line-height: 1.3; white-space: nowrap; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar *, .sidebar *::before { transition: none !important; }
  .sidebar .brand:hover .brand-mark svg, .sidebar .nav-button:hover .nav-icon { transform: none; }
}
