/* AEVLO V607 — mode titles as documentation-style selection pills.
   Only mode tabs: CSS-only experiment directly on production. */
#view-modes .mode-switcher {
  display:flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  border-bottom:0;
  padding:2px 2px 9px;
  margin-bottom:16px;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
#view-modes .mode-switcher::-webkit-scrollbar {display:none;}
#view-modes .mode-chip {
  box-sizing:border-box;
  flex:0 0 auto;
  height:39px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  padding:0 13px;
  white-space:nowrap;
  color:var(--secondary);
  font-size:12.5px;
  font-weight:590;
  line-height:1;
  transition:color .16s, background .16s, border-color .16s;
}
#view-modes .mode-chip:hover {
  color:var(--text);
  border-color:var(--strong-border);
  background:var(--hover);
}
#view-modes .mode-chip.is-selected {
  color:var(--accent);
  border-color:var(--accent);
  background:var(--accent-soft);
  font-weight:650;
}
#view-modes .mode-chip.is-selected:hover {
  color:var(--accent);
  border-color:var(--accent);
  background:var(--accent-soft);
}
#view-modes .mode-chip:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px;
}
#view-modes .mode-chip[data-mode="public"] {min-width:0;}
#view-modes .mode-tab-count {
  display:inline-flex;
  min-width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  border-radius:99px;
  font-size:10px;
  font-weight:670;
}
#view-modes .mode-tab-count[hidden] {display:none;}
#view-modes .mode-chip.is-selected .mode-tab-count {
  color:var(--accent);
  background:rgba(110,58,216,.10);
}
@media(max-width:850px) {
  #view-modes .mode-switcher {gap:7px;padding:2px 1px 8px;margin-bottom:15px;}
  #view-modes .mode-chip {height:38px;padding:0 12px;font-size:12px;border-radius:10px;}
}
@media(max-width:380px) {
  #view-modes .mode-switcher {gap:6px;}
  #view-modes .mode-chip {height:37px;padding:0 10px;font-size:11.5px;}
}
@media(prefers-reduced-motion:reduce) {
  #view-modes .mode-chip {transition:none;}
}
