/* Page-specific styles for the accounts site. Everything else comes from the UI kit. */
.scope-list, .rules-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.brand-modes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.color-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.color-field { display: flex; align-items: center; gap: 8px; font-size: 0.875em; }
.color-field input { width: 36px; height: 36px; padding: 0; border: 1px solid var(--wz-border); border-radius: var(--wz-radius-sm); background: none; cursor: pointer; flex: none; }

.swatches { display: flex; flex-direction: column; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 12px; }
.chip { width: 40px; height: 40px; border-radius: var(--wz-radius-sm); border: 1px solid var(--wz-border); flex: none; }

.preview { background: var(--wz-bg); color: var(--wz-text); border: 1px solid var(--wz-border); border-radius: var(--wz-radius); padding: 20px; }
.rules { min-height: 220px; }
.token-input { flex: 1; min-width: 220px; }
.wz-row > .wz-field { flex: 1; min-width: 140px; }

/* Admin area: side menu on the left, content on the right. */
.admin-shell { max-width: 1320px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; }
.admin-nav a { padding: 8px 12px; border-radius: var(--wz-radius-sm); color: var(--wz-muted); font-weight: 600; font-size: 0.94em; }
.admin-nav a:hover { color: var(--wz-text); background: var(--wz-surface-alt); text-decoration: none; }
.admin-nav a[aria-current="page"] { color: var(--wz-text); background: var(--wz-surface-alt); }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-nav { flex-direction: row; overflow-x: auto; position: static; }
  .admin-nav a { white-space: nowrap; }
}

.wz-card.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 1.5em; font-family: var(--wz-font-display); line-height: 1.2; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9em; }
.data-table td { white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; font-size: 0.92em; }
.data-table th a { color: inherit; }
.filter .wz-select, .filter .wz-input { width: auto; min-width: 140px; }
.db-select { width: auto; min-width: 220px; }
.lines-select { width: auto; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.facts dt { color: var(--wz-muted); font-size: 0.9em; }
.facts dd { margin: 0; min-width: 0; }
.facts.wide { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); }
.facts .value { white-space: pre-wrap; overflow-wrap: anywhere; }
.sql { font-family: var(--wz-font-mono); font-size: 0.9em; min-height: 140px; }
.logs { max-height: 65vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8em; }

.wz-card.app-card { display: flex; align-items: center; gap: 14px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 16px; }
.icon-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
