/* Shared appearance of the sidebar tabs and the app's segmented controls.
   Page styles still determine group spacing and how long rows scroll. */
:root .log-section-tabs {
  --log-tab-selected-background: #292335;
  --log-tab-selected-color: #e2d4f8;
  --log-tab-selected-border: #ac8be91a;
  --log-tab-selected-shadow: 0 1px 4px #0004;
  --log-tab-press-edge: #ac8be962;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  background: #090a10;
  border: 1px solid #ffffff03;
  border-radius: 8px;
  box-shadow: none;
}
.sidebar .log-section-tabs {
  width: 100%;
  margin: 0 0 12px;
}
:root .log-section-tabs > button.log-section-tab {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8c809d;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .16s ease-out, color .16s ease-out,
    border-color .16s ease-out, box-shadow .16s ease-out, scale .1s ease-out;
}
:root :is(.sidebar .log-section-tabs, .recording-methods) > button.log-section-tab {
  flex: 1 1 0;
}
@media (hover: hover) {
  :root .log-section-tabs > button.log-section-tab:hover:not(:disabled, [aria-selected=true], [aria-pressed=true]) {
    color: #c6b5dd;
    background-color: #ffffff04;
  }
  :root[data-theme=light] .log-section-tabs > button.log-section-tab:hover:not(:disabled, [aria-selected=true], [aria-pressed=true]) {
    color: var(--theme-accent);
    background-color: #fff9;
  }
}
:root .log-section-tabs > button.log-section-tab:is([aria-selected=true], [aria-pressed=true], :active:not(:disabled)) {
  color: var(--log-tab-selected-color);
  background-color: var(--log-tab-selected-background);
  border-color: var(--log-tab-selected-border);
  box-shadow: var(--log-tab-selected-shadow);
}
:root .log-section-tabs > button.log-section-tab:active:not(:disabled) {
  scale: .985;
  box-shadow: inset 0 0 0 1px var(--log-tab-press-edge), var(--log-tab-selected-shadow);
}
:root .log-section-tabs > button.log-section-tab:focus-visible {
  outline: 2px solid #a38af6;
  outline-offset: -2px;
}
:root .log-section-tabs > button.log-section-tab:disabled {
  cursor: default;
}
:root[data-theme=light] .log-section-tabs {
  --log-tab-selected-background: #fff;
  --log-tab-selected-color: #6043a7;
  --log-tab-selected-border: #7053ba30;
  --log-tab-selected-shadow: 0 1px 4px #29234012;
  --log-tab-press-edge: #7053ba58;
  background: var(--theme-subtle);
  border-color: var(--line);
}
:root[data-theme=light] .log-section-tabs > button.log-section-tab:not(:active, [aria-selected=true], [aria-pressed=true]) {
  color: var(--muted);
}

/* Leave room for the switch labels even on screens that used icon-only buttons. */
.library-layout > button.log-section-tab > span { display: inline; }
.log-section-tabs.material-preview-sheet-tabs > button.log-section-tab { flex: 0 0 auto; }

@media (max-width: 1024px) {
  :root .log-section-tabs > button.log-section-tab {
    min-height: 44px;
    padding-inline: 10px;
  }
}
@media (max-width: 740px) {
  :root .log-section-tabs > button.log-section-tab {
    padding-inline: 6px;
    gap: 4px;
  }
  :root .log-section-tabs.home-task-filters > button.log-section-tab {
    padding-inline: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .log-section-tabs > button.log-section-tab { transition: none; }
  :root .log-section-tabs > button.log-section-tab:active:not(:disabled) { scale: 1; }
}
@media (forced-colors: active) {
  :root[data-theme] .log-section-tabs > button.log-section-tab:is([aria-selected=true], [aria-pressed=true]) {
    border-color: Highlight;
    box-shadow: none;
  }
  :root .log-section-tabs > button.log-section-tab:focus-visible { outline-color: Highlight; }
}

#meetingLogSidebar[hidden], #individualLogSidebar[hidden] { display: none !important; }
#individualLogSidebar { min-width: 0; }
.individual-logs-view .topbar .search-wrap { display: none !important; }
