.main-nav { min-width: 0; }
.header-search { display: flex; align-items: center; width: clamp(172px, 18vw, 236px); height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.header-search:focus-within { border-color: var(--pink-text); background: var(--surface); box-shadow: 0 0 0 3px var(--schedule-updated-border); }
.header-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-search input { width: 100%; min-width: 0; height: 42px; padding: 0 0 0 14px; border: 0; border-radius: inherit; background: transparent; font-size: 14px; outline: none; }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.header-search button { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.header-search button:hover { color: var(--pink-text); background: var(--schedule-updated-bg); }
.header-search svg, .header-search-toggle svg, .search-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-search-toggle { display: none; }
.search-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-panel-heading label { margin: 0; color: var(--text); font-size: 15px; }
.search-close { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.search-close:hover { background: var(--surface-soft); color: var(--pink-text); }
@media (min-width: 768px) {
  .header-shell { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
  .main-nav { overflow-x: auto; scrollbar-width: none; }
  .main-nav a { flex-shrink: 0; }
  .main-nav::-webkit-scrollbar { display: none; }
  #site-search { display: none; }
}
@media (min-width: 1200px) { .main-nav { gap: 22px; } }
@media (min-width: 768px) and (max-width: 1023px) {
  .header-shell { gap: 14px; }
  .header-search { width: 172px; }
  .account-link { padding-inline: 8px; }
}
@media (max-width: 767px) {
  .header-search { display: none; }
  .header-search-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 12px; font-size: 13px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
  .header-search-toggle[aria-expanded=true] { color: var(--pink-text); border-color: var(--schedule-updated-border); background: var(--schedule-updated-bg); }
  #site-search { position: absolute; top: 100%; left: 0; width: 100%; margin: 0; padding: 8px 12px 18px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(36,35,43,.1); }
  #site-search:not([hidden]) { animation: search-panel-enter 160ms ease-out; }
  #site-search .search-row { gap: 8px; }
  #site-search input { font-size: 16px; border-color: var(--line); background: var(--bg); }
  #site-search input:focus { border-color: var(--pink-text); box-shadow: 0 0 0 3px var(--schedule-updated-border); }
  #site-search .search-row button { padding-inline: 20px; }
}
@keyframes search-panel-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .header-search { transition: none; } #site-search:not([hidden]) { animation: none; } }

.main-nav .nav-client { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--pink-text); }
.nav-client svg { width: 17px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
