/* SideBarMenu and AppShellHeader parts shared by the home page (v3) and the Lab (2026-11-27):
   the Menu header with its live dot, quick search, menu rows, search results, the corner tab, the NYSgpt title that opens the menu */
  .side-header .sb-title { margin: 0; font-weight: 400; }
  #sm-lead { display: flex; align-items: center; }
  /* the SideBarMenu: the RightSidePanel's live dot and title; a bite out of its corner; quick search above Home */
  .sidebar { position: relative; overflow: visible !important; }
  .side-wrap.open .bite { display: block; }
  .sidebar .kbd-hint { justify-content: flex-start; border-radius: 0 0 15px 15px; }
  .sm-search { display: flex; align-items: center; gap: 8px; height: 34px; margin: 0 -8px 12px; padding: 0 10px; border: 1px solid rgba(var(--as-ink-rgb),.16); border-radius: 8px; color: rgba(var(--as-ink-rgb),.45); cursor: text; transition: border-color .15s, box-shadow .2s; }
  .sm-search:focus-within { border-color: var(--as-strong); box-shadow: 0 0 0 3px var(--acc-ring); }
  .sm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13.5px; color: rgb(var(--as-ink-rgb)); }
  .sm-search .kbd { padding: 0 5px; border: 1px solid rgba(var(--as-ink-rgb),.12); border-radius: 4px; font: 10.5px/16px var(--mono, var(--font-mono)); }
  .sm-results { display: flex; flex-direction: column; gap: 2px; }
  .sm-rh { margin: 10px 0 4px; overflow: hidden; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(var(--as-ink-rgb),.45); white-space: nowrap; text-overflow: ellipsis; }
  .sm-res { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -8px; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; color: rgba(var(--as-ink-rgb),.78); text-align: left; transition: background-color .15s, color .15s; }
  .sm-res:hover, .sm-res.kb-cur { background: rgba(var(--as-ink-rgb),.06); color: var(--as-strong); }
  .sm-res b { overflow: hidden; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; transition: transform .25s ease-out; } .sm-res:hover b { transform: translateX(4px); }
  .sm-res span { flex-shrink: 0; font: 11px var(--mono, var(--font-mono)); color: rgba(var(--as-ink-rgb),.4); }
  .sm-none { margin: 8px 0; font-size: 13px; color: rgba(var(--as-ink-rgb),.5); }
  /* dark: the header's copy icon and the corner tabs' x go black on their light hover */
  html.dark :is(.hdr-copy, .bite .bx):hover { color: #000; }
  /* SideBarMenu: File, Edit, View, Share; each opens its menu from a vertical kebab */
  .sm-row { display: flex; align-items: center; margin: 0 -8px 2px; border-radius: 6px; transition: background-color .15s; }
  .sm-row:hover, .sm-row.open { background: rgba(var(--as-ink-rgb),.06); }
  .sm-label { flex: 1; padding: 6px 8px; font-size: 15px; color: rgba(var(--as-ink-rgb),.58); text-align: left; transition: color .15s; }
  .sm-row:hover .sm-label, .sm-row.open .sm-label, .sm-row.on .sm-label { color: var(--as-strong); }
  .sm-sep { height: 1px; margin: 10px 0; background: rgba(var(--as-ink-rgb),.08); }
  .sm-kb { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 2px; border-radius: 8px; color: rgba(var(--as-ink-rgb),.4); opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
  .sm-row:hover .sm-kb, .sm-row.open .sm-kb, .sm-kb:focus-visible { opacity: 1; }
  .sm-kb:hover, .sm-row.open .sm-kb { background: var(--as-surface); color: var(--as-strong); }
  /* AppShellHeader: the NYSgpt title opens the SideBarMenu (muted box on hover); no circle button, no copy icon */
  #side-toggle, .hdr-copy { display: none !important; }
  .hdr-title { margin-left: -4px; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: background-color .15s; }
  .hdr-title:hover, .hdr-title:focus-visible { background: rgba(var(--as-ink-rgb),.06); outline: none; }
  /* the SideBarMenu header's x (the RightSidePanel's), the quick search's clear x */
  .side-header .sb-btn { margin-left: auto; } .side-header .sb-btn svg { width: 16px; height: 16px; }
  .sm-x { display: flex; flex-shrink: 0; padding: 2px; border-radius: 4px; color: rgba(var(--as-ink-rgb),.5); transition: background-color .15s, color .15s; }
  .sm-x:hover { background: rgba(var(--as-ink-rgb),.08); color: rgb(var(--as-ink-rgb)); }
  .sm-x svg { width: 14px !important; height: 14px !important; }
