/* In-app tabs under the header (public/js/tabs.js). Glass chrome, orange accent on the open
   tab, existing tokens only so dark mode follows glass-tokens.css. Desktop only, the phone
   gets the recent list in the drawer instead. */
.sf-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 28px 2px 20px; position: sticky; top: 62px; z-index: 30; }
.sf-tabs::-webkit-scrollbar { display: none; }
.sf-tabs[hidden] { display: none; }
.sf-tab { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; max-width: 220px; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--gl-chip); border: 1px solid var(--gl-chip-rim); color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-decoration: none;
  backdrop-filter: var(--mat-filter-regular); -webkit-backdrop-filter: var(--mat-filter-regular); transition: background .15s var(--ease), color .15s var(--ease); }
.sf-tab:hover { background: var(--gl-chip-hover); color: var(--ink); }
.sf-tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.sf-tab.drag { opacity: .5; }
.sf-tab-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-tab-x { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; opacity: .6; padding: 0; }
.sf-tab-x:hover, .sf-tab-x:focus-visible { opacity: 1; background: var(--gl-chip-hover); }
.sf-tab:focus-visible, .sf-tab-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sf-recent { display: none; }
.sf-recent a { display: block; padding: 7px 12px; margin: 1px 6px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-recent a:hover { background: var(--gl-chip-hover); color: var(--ink); }
@media (max-width: 860px) {
  .sf-tabs { display: none; }
  .sf-recent { display: block; margin-bottom: 6px; }
}
@media print { .sf-tabs, .sf-recent { display: none !important; } }
