/* Shared navigation refinements; all links are the existing role-filtered routes. */
.app-shell .studio-menu-search { position: relative; margin: 2px 0 18px; flex-shrink: 0; }
.studio-menu-search label { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--muted); }
.studio-menu-search label > svg { width: 17px; height: 17px; flex: none; }
.app-shell .studio-menu-search input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 26px 8px 0; border: 0; outline: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--text); font: 500 12px/1.4 var(--font); }
.studio-menu-search input::placeholder { color: var(--muted); opacity: 1; }
.studio-menu-search input::-webkit-search-cancel-button { display: none; }
.studio-menu-search label:focus-within { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
.studio-menu-clear { position: absolute; inset-inline-end: 3px; top: 3px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.studio-menu-clear:hover { background: var(--surface-hover); color: var(--text); }
.studio-menu-clear svg { width: 16px; height: 16px; }
.app-shell .studio-menu-status { margin: -5px 4px 17px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.app-shell #studio-navigation :is(.studio-nav-group,.nav-item)[hidden], .studio-menu-search [hidden], .studio-menu-status[hidden] { display: none !important; }
.app-shell .sidebar .nav-item { scroll-margin-block: 14px; }
.app-shell .sidebar .nav-item:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.app-shell .sidebar .studio-nav-label { line-height: 1.7; }
.app-shell .studio-help-links { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 15px 1px; border-top: 1px solid var(--border); }
.studio-help-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; line-height: 1.7; color: var(--muted); text-decoration: none; }
.studio-help-links a:hover { color: var(--primary-text); text-decoration: underline; text-underline-offset: 4px; }
.studio-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.auth-screen .auth-resource-links, .route-error .auth-resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--border); }
.auth-resource-links a { color: var(--muted); font-size: 12px; line-height: 1.7; font-weight: 550; text-decoration: none; }
.auth-resource-links a:hover { color: var(--primary-text); text-decoration: underline; text-underline-offset: 4px; }
.auth-resource-links a:focus-visible, .studio-help-links a:focus-visible, .studio-menu-clear:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 4px; border-radius: 3px; }
.route-error { min-height: 100svh; padding: 40px 24px; }
.route-error > div { width: min(620px, 100%); margin: auto; }
.route-error .brand { justify-content: center; margin-bottom: 50px; }
.route-error-label { display: block; margin-bottom: 17px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.route-error h1 { font-size: clamp(27px, 6vw, 44px); letter-spacing: -.045em; line-height: 1.2; text-wrap: balance; }
.route-error p { max-width: 470px; margin: 20px auto 28px; font-size: 15px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.route-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.route-error-actions .btn { min-height: 46px; }
@media (min-width: 761px) {
  .app-shell.is-compact .studio-menu-search, .app-shell.is-compact .studio-menu-status, .app-shell.is-compact .studio-help-links { display: none; }
}
@media (max-width: 760px) {
  .app-shell .studio-menu-search input { font-size: 16px; }
  .app-shell .studio-menu-search label { min-height: 46px; }
  .studio-menu-clear { width: 40px; height: 40px; }
  .studio-help-links a { min-height: 44px; font-size: 12px; }
  .auth-resource-links a { min-height: 35px; display: inline-flex; align-items: center; }
  .route-error .brand { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { .app-shell .sidebar .nav-item { transition: none; } }
@media print { .auth-resource-links, .studio-help-links { display: none !important; } }
