.filter-control.is-active input,
.filter-control.is-active select {
  color: var(--gf-burgundy);
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  padding: 20px 16px;
  border: 1px solid var(--gf-line);
  border-top: 5px solid var(--gf-navy);
  border-radius: 8px;
  background: var(--gf-panel);
}

.admin-sidebar > strong {
  display: block;
  font-family: var(--gf-headline-font);
  font-size: 1.15rem;
  color: var(--gf-navy);
}

.admin-sidebar .section-nav {
  position: static;
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.admin-sidebar .section-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.admin-sidebar .section-nav a:hover {
  background: var(--gf-soft);
  text-decoration: none;
}

.admin-sidebar .section-nav a.is-active {
  background: var(--gf-burgundy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.shell { width: calc(100% - 32px); }
.admin-content { min-width: 0; }
.edit-shell { max-width: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.table-result-count { margin: 0 0 8px; color: var(--gf-muted); font-size: .9rem; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table-actions form { margin: 0; }
.danger-icon { color: var(--gf-red); font-size: 1.35rem; }
.danger-icon:hover { border-color: var(--gf-red); background: #fff3f3; }
.compact-note { margin: 14px 0 20px; }
.compact-note + div { margin-top: 4px; }
.role-user-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.role-user-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--gf-line); border-radius: 6px; }
.role-user-list strong, .role-user-list small { display: block; }
.role-user-list small { color: var(--gf-muted); }
.role-user-list .gf-secondary-button { flex: 0 0 auto; }

.client-secret-dialog {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(7, 29, 73, .28);
}

.client-secret-dialog::backdrop { background: rgba(7, 29, 73, .55); }
.secret-dialog-content { padding: clamp(24px, 5vw, 40px); border-top: 6px solid var(--gf-burgundy); }
.secret-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.secret-copy-row input { font-family: ui-monospace, Consolas, monospace; }
.client-secret-dialog form { display: flex; justify-content: flex-end; margin-top: 22px; }
.copy-status { min-height: 1.5em; color: #146c43; font-weight: 700; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: sticky; top: 0; z-index: 4; padding: 10px 12px; }
  .admin-sidebar > .gf-eyebrow,
  .admin-sidebar > strong { display: none; }
  .admin-sidebar .section-nav { display: flex; gap: 10px; margin: 0; overflow: auto; }
  .admin-sidebar .section-nav a { white-space: nowrap; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 24px); }
  .secret-copy-row { grid-template-columns: 1fr; }
  .role-user-list li { align-items: flex-start; flex-direction: column; gap: 8px; }
}
