.topbar .brand .muted {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.tabs {
  display: flex;
  gap: 0.5rem;
}
.tabs a {
  text-decoration: none;
  padding: 0.4em 0.9em;
  border-radius: var(--radius);
  color: var(--fg-muted);
  border: 1px solid transparent;
}
.tabs a:hover { color: var(--fg); }
.tabs a.active {
  color: var(--fg);
  border-color: var(--tile-border);
  background: var(--bg-elev);
}

.muted { color: var(--fg-muted); }

.adminstage {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.tabpanel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filters label {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.row-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.row-form.vertical {
  flex-direction: column;
  align-items: stretch;
}
.row-form.vertical label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.row-form.vertical label.checkbox {
  flex-direction: row;
  align-items: center;
}

input, select, textarea {
  font: inherit;
  padding: 0.4em 0.6em;
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
  background: var(--bg-elev);
  color: var(--fg);
}
textarea { font-family: var(--font-tile); }

.grid-table {
  width: 100%;
  border-collapse: collapse;
}
.grid-table th, .grid-table td {
  text-align: left;
  padding: 0.5em 0.6em;
  border-bottom: 1px solid var(--tile-border);
  vertical-align: top;
  font-size: 0.95rem;
}
.grid-table tr:hover td { background: var(--bg-elev); }
.grid-table .actions-col { width: 1px; white-space: nowrap; }
.grid-table code {
  font-family: var(--font-tile);
  font-size: 0.85em;
  background: var(--bg-elev);
  padding: 1px 4px;
  border-radius: 3px;
}

.bulk {
  margin: 1rem 0;
}
.bulk[open] {
  background: var(--bg-elev);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
}
.bulk textarea {
  width: 100%;
  display: block;
  margin: 0.5rem 0;
}

.words {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.4rem;
}
.words li {
  background: var(--bg-elev);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  padding: 0.4em 0.6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-tile);
}
.words li button {
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  padding: 0 0.25em;
  cursor: pointer;
  font-size: 1em;
}
.words li button:hover { color: var(--fg); }
