/* Mirrors components/programs/programs-page.module.css so /skills uses
   the same layout language as /functions and /memory: 64px topbar,
   grid body with a fixed-width left rail = (--sidebar-width − 1px),
   1fr content area. Toolbar bits reuse the same conventions. */

.view {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  height: 64px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  flex-shrink: 0;
}

.count {
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 999px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-left: 24px;
}

.tabBtn {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.tabBtn:hover {
  color: var(--text-bright);
}
.tabBtn.active {
  color: var(--text-bright);
  border-color: var(--border);
  background: var(--bg-secondary);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-bottom: 2px;
}

.body {
  flex: 1;
  display: grid;
  grid-template-columns: calc(var(--sidebar-width) - 1px) 1fr;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.rail {
  min-width: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow-y: auto;
  padding: 12px 8px;
}

.content {
  min-width: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.singleColumn {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.singleColumnInner {
  /* No max-width — the catalog grid needs the full viewport so we get
     3+ columns on desktop. Older single-column views (forms, etc.)
     can apply their own narrower max-width inline. */
  width: 100%;
}

.errorBar {
  padding: 8px 24px;
  font-size: 12px;
  color: var(--accent-red, #ef4444);
  border-bottom: 1px solid var(--border);
}
