/* ============================================================
 * Vilkax · /app/developer/ — Partner developer portal
 * ============================================================
 *
 * Layout: left sidebar nav (200px) + main content area on
 * desktop; bottom tab bar + stacked content on mobile (<768px).
 * Colors exclusively from brand tokens defined in /style.css.
 */

/* ── Page shell ───────────────────────────────────────────────── */

.dev-body {
  background: var(--bg-absolute, var(--bg-ink));
  display: block;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Skip link (a11y) ─────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 9999;
  padding: 6px 12px;
  background: var(--brand-primary);
  color: var(--bg-ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; }

/* ── Top header ───────────────────────────────────────────────── */

.dev-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(11, 20, 38, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  height: 58px;
}

.dev-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.dev-logo {
  width: auto;
  height: 38px;
  max-width: 180px;
  filter:
    drop-shadow(0 2px 8px rgba(61, 123, 217, 0.28))
    drop-shadow(0 0 14px rgba(127, 207, 230, 0.20));
}

.dev-header-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.dev-product-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.dev-env-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.dev-env-badge[data-env="test"] {
  background: rgba(251, 191, 36, 0.10);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
}

.dev-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.dev-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-default);
  font-family: var(--font-brand);
  font-size: 13px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.dev-account-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}
.dev-account-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.dev-account-icon { color: var(--text-muted); display: flex; }
.dev-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-account-chevron { color: var(--text-dim); display: flex; }

.dev-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
  overflow: hidden;
  z-index: 100;
}

.dev-account-menu-item {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-default);
  text-decoration: none;
  transition: background 120ms ease;
}
.dev-account-menu-item:hover { background: rgba(255, 255, 255, 0.05); }
.dev-account-menu-item--danger { color: #ff6b6b; }
.dev-account-menu-item--danger:hover { background: rgba(255, 107, 107, 0.08); }

/* ── Key-entry gate overlay ────────────────────────────────────── */

.dev-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 8, 12, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dev-gate-card {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--vlx-sh-glow, 0 8px 40px rgba(0, 0, 0, 0.50));
}

.dev-gate-h {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
}

.dev-gate-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.dev-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-gate-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dev-gate-input {
  width: 100%;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-strong);
  font-family: var(--font-brand);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
}
.dev-gate-input::placeholder { color: var(--text-dim); }
.dev-gate-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-accent-soft);
}

.dev-gate-hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.dev-gate-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand-primary-bright), var(--brand-primary));
  color: var(--bg-ink);
  border: 0;
  border-radius: 9px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}
.dev-gate-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.dev-gate-btn:active { transform: translateY(0); }
.dev-gate-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.dev-gate-error {
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.10);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 7px;
  font-size: 13px;
  color: #ff8896;
  margin: 0;
}

/* ── Shell layout ───────────────────────────────────────────────── */

.dev-shell {
  display: flex;
  min-height: calc(100dvh - 58px);
  align-items: flex-start;
}

/* ── Left sidebar nav (desktop) ────────────────────────────────── */

.dev-nav {
  position: sticky;
  top: 58px;
  flex-shrink: 0;
  width: 200px;
  height: calc(100dvh - 58px);
  overflow-y: auto;
  padding: 16px 12px;
  border-right: 1px solid var(--border-line);
  background: rgba(11, 20, 38, 0.60);
}

.dev-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
  text-align: left;
}
.dev-nav-item:hover {
  background: rgba(77, 169, 255, 0.07);
  color: var(--text-default);
}
.dev-nav-item.is-active,
.dev-nav-item[aria-current="page"] {
  background: rgba(77, 169, 255, 0.12);
  color: var(--brand-primary);
  font-weight: 600;
}
.dev-nav-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

.dev-nav-icon {
  display: flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.dev-nav-label { flex: 1; }
.dev-nav-ext { display: flex; opacity: 0.4; }

/* ── Main content area ──────────────────────────────────────────── */

.dev-main {
  flex: 1;
  min-width: 0;
  padding: 28px 24px 48px;
  max-width: 900px;
}

/* ── Section header ─────────────────────────────────────────────── */

.dev-section { display: flex; flex-direction: column; gap: 20px; }

.dev-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-line);
}

.dev-section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}

.dev-section-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Cards ──────────────────────────────────────────────────────── */

.dev-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.dev-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-line);
  gap: 12px;
}

.dev-card-h {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.dev-link-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--brand-primary);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 130ms ease;
}
.dev-link-btn:hover { opacity: 0.75; }
.dev-link-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Welcome banner ─────────────────────────────────────────────── */

.dev-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(77, 169, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--brand-primary);
}

.dev-welcome-icon { display: flex; flex-shrink: 0; }

.dev-welcome-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-welcome-org {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.dev-welcome-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

/* ── Stat cards grid ─────────────────────────────────────────────── */

.dev-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dev-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.dev-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dev-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.dev-stat-foot {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Tables ─────────────────────────────────────────────────────── */

.dev-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text-default);
}

.dev-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-line);
  white-space: nowrap;
}

.dev-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-line);
  vertical-align: middle;
}

.dev-table tr:last-child td { border-bottom: 0; }

.dev-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.dev-key-prefix {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--brand-ice);
  background: rgba(77, 169, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.dev-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dev-status-pill[data-status="active"] {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.dev-status-pill[data-status="revoked"] {
  background: rgba(255, 107, 107, 0.08);
  color: #ff8896;
  border: 1px solid rgba(255, 107, 107, 0.20);
}

/* ── Progress bar ───────────────────────────────────────────────── */

.dev-quota-block {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-quota-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dev-quota-label { font-size: 13px; color: var(--text-default); }
.dev-quota-val { font-size: 13px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }

.dev-quota-bar-wrap {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dev-quota-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-bright));
  transition: width 500ms var(--vlx-ease-out, ease);
  min-width: 4px;
}

.dev-quota-bar[data-warn="true"] {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.dev-quota-bar[data-critical="true"] {
  background: linear-gradient(90deg, #fb923c, #ff6b6b);
}

.dev-quota-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dev-quota-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dev-quota-meta-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dev-quota-meta-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

/* ── Sparkline ──────────────────────────────────────────────────── */

.dev-spark-wrap {
  padding: 20px;
  overflow: hidden;
}

.dev-spark-chart {
  width: 100%;
  overflow: visible;
}

.dev-spark-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ── Empty state ─────────────────────────────────────────────────── */

.dev-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dev-empty-icon {
  width: 40px;
  height: 40px;
  opacity: 0.35;
  color: var(--text-dim);
}

.dev-empty-title {
  font-weight: 600;
  color: var(--text-default);
  margin: 0;
}

.dev-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Error state ─────────────────────────────────────────────────── */

.dev-fetch-error {
  padding: 16px 20px;
  background: rgba(255, 107, 107, 0.06);
  border-top: 1px solid rgba(255, 107, 107, 0.14);
  font-size: 13px;
  color: #ff8896;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Skeleton loaders ────────────────────────────────────────────── */

@keyframes dev-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.dev-skel {
  display: inline-block;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 800px 100%;
  animation: dev-shimmer 1.6s ease-in-out infinite;
}

.dev-skel-stack {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-skel-num  { width: 80px; height: 34px; }
.dev-skel-line    { width: 100%; height: 18px; }
.dev-skel-line-lg { width: 100%; height: 22px; }
.dev-skel-line-sm { width: 55%; height: 14px; }

/* ── Forms ───────────────────────────────────────────────────────── */

.dev-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dev-form-row { display: flex; flex-direction: column; gap: 6px; }
.dev-form-row--inline { flex-direction: row; align-items: center; }

.dev-form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dev-form-input {
  width: 100%;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-strong);
  font-family: var(--font-brand);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.dev-form-input::placeholder { color: var(--text-dim); }
.dev-form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-accent-soft);
}

.dev-form-select { cursor: pointer; }

.dev-form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.dev-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dev-form-actions--mt { padding: 0 20px 20px; }

.dev-form-status {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 20px;
}
.dev-form-status[data-ok="true"]  { color: #10b981; }
.dev-form-status[data-ok="false"] { color: #ff8896; }

/* ── Toggle switch ───────────────────────────────────────────────── */

.dev-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.dev-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.dev-toggle-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border-subtle);
  transition: background 160ms ease;
  flex-shrink: 0;
}
.dev-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 160ms ease, background 160ms ease;
}
.dev-toggle-input:checked + .dev-toggle-track {
  background: rgba(77, 169, 255, 0.20);
  border-color: var(--brand-primary);
}
.dev-toggle-input:checked + .dev-toggle-track::after {
  transform: translateX(16px);
  background: var(--brand-primary);
}
.dev-toggle-input:focus-visible + .dev-toggle-track {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.dev-toggle-label {
  font-size: 14px;
  color: var(--text-default);
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 0;
  border-radius: 9px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}
.dev-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.dev-btn:active { transform: translateY(0); }
.dev-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.dev-btn--primary {
  background: linear-gradient(135deg, var(--brand-primary-bright), var(--brand-primary));
  color: var(--bg-ink);
}

.dev-btn--danger {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.28);
  color: #ff8896;
}
.dev-btn--danger:hover {
  background: rgba(255, 107, 107, 0.18);
}

/* ── Settings rows ───────────────────────────────────────────────── */

.dev-settings-rows {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dev-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-line);
  gap: 12px;
}
.dev-settings-row:last-child { border-bottom: 0; }

.dev-settings-key {
  font-size: 13px;
  color: var(--text-muted);
}

.dev-settings-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  word-break: break-all;
  text-align: right;
}

/* ── Screen-reader only utility ──────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile: bottom tab bar layout (<768px) ───────────────────────── */

@media (max-width: 767px) {
  .dev-shell {
    flex-direction: column;
    min-height: 0;
    padding-bottom: 72px; /* space for tab bar */
  }

  .dev-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: 68px;
    padding: 0;
    border-right: 0;
    border-top: 1px solid var(--border-line);
    background: rgba(11, 20, 38, 0.96);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    z-index: 50;
    overflow: visible;
    display: flex;
    align-items: stretch;
  }

  .dev-nav-list {
    flex-direction: row;
    width: 100%;
    gap: 0;
    justify-content: space-around;
    align-items: stretch;
  }

  .dev-nav-list > li {
    flex: 1;
  }

  .dev-nav-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 0;
    font-size: 10px;
    height: 100%;
    width: 100%;
  }

  .dev-nav-item.is-active,
  .dev-nav-item[aria-current="page"] {
    background: transparent;
    color: var(--brand-primary);
    border-radius: 0;
  }

  .dev-nav-item.is-active .dev-nav-icon,
  .dev-nav-item[aria-current="page"] .dev-nav-icon {
    color: var(--brand-primary);
  }

  .dev-nav-ext { display: none; }

  .dev-main {
    padding: 20px 16px 32px;
    max-width: 100%;
  }

  .dev-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dev-header {
    padding: 10px 14px;
  }

  .dev-product-name { display: none; }

  .dev-account-name { max-width: 100px; }
}

/* ── Tablet adjustments (768-1023px) ────────────────────────────── */

@media (min-width: 768px) and (max-width: 1023px) {
  .dev-nav { width: 180px; }

  .dev-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .dev-skel { animation: none; }
  .dev-btn, .dev-gate-btn { transition: none; }
  .dev-quota-bar { transition: none; }
}

/* [hidden] guards — `display:` outranks the UA `[hidden]{display:none}`, so
   the gate stayed visible behind the shell and every hidden section rendered.
   Audit 2026-09-09. */
.dev-gate[hidden]    { display: none !important; }
.dev-shell[hidden]   { display: none !important; }
.dev-welcome[hidden] { display: none !important; }
.dev-section[hidden] { display: none !important; }
