/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN BRUGERE (A6) — Cross-tenant user-governance
   prefix: .abr-*
   Aesthetic: Editorial Mission Control (matches A1-A5 family)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --abr-editorial:    'Fraunces', Georgia, 'Times New Roman', serif;
  --abr-grid-tone:    rgba(14, 14, 12, 0.04);
  --abr-donut-admin:  var(--ink);
  --abr-donut-ejer:   var(--orange);
  --abr-donut-demo:   #C8C6BA;
  --abr-good:         #4A8F2A;
  --abr-warn:         #C77A1D;
  --abr-bad:          #D03B1A;
  --abr-warn-bg:      rgba(208, 59, 26, 0.05);
  --abr-warn-border:  rgba(208, 59, 26, 0.35);
  --abr-warn-stripe:  rgba(208, 59, 26, 0.06);
}
:root[data-theme="dark"] {
  --abr-grid-tone:    rgba(250, 250, 247, 0.04);
  --abr-donut-admin:  #FAFAF7;
  --abr-donut-ejer:   var(--orange);
  --abr-donut-demo:   #4A4A48;
  --abr-good:         #6BB342;
  --abr-warn:         #D89952;
  --abr-bad:          #E55A3A;
  --abr-warn-bg:      rgba(229, 90, 58, 0.08);
  --abr-warn-border:  rgba(229, 90, 58, 0.45);
  --abr-warn-stripe:  rgba(229, 90, 58, 0.05);
}

/* ─── Page scaffold ─────────────────────────────────────────────────────── */
.abr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.abr-content {
  padding: var(--sp-6) var(--sp-8) var(--sp-16);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  background-image:
    linear-gradient(var(--abr-grid-tone) 1px, transparent 1px),
    linear-gradient(90deg, var(--abr-grid-tone) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.abr-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-8);
  background: var(--surface);
  border-bottom: var(--rule-w) solid var(--rule);
  min-height: var(--topbar-h);
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.abr-breadcrumb {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
}
.abr-breadcrumb-sep    { color: var(--ink-ghost); }
.abr-breadcrumb-current{ color: var(--ink); }
.abr-topbar-meta {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.abr-hero {
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: var(--rule-w) solid var(--rule-faint);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6);
  align-items: end;
}
.abr-hero-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--orange);
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.abr-hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 32px; height: 1px; background: var(--orange);
}
.abr-hero-tagline {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 400;
  font-size: 18px; line-height: 1.3;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.abr-hero-h1 {
  font-family: var(--abr-editorial);
  font-style: italic; font-weight: 500;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
.abr-hero-h1 em { color: var(--orange); font-style: italic; }
.abr-hero-lead {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.abr-hero-lead strong { color: var(--ink); font-weight: 600; }

/* Period pills (active state · matches A5 pattern) */
.abr-period-pills {
  display: inline-flex; align-items: stretch;
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface);
}
.abr-period-pill {
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  border: 0;
  border-right: var(--rule-w) solid var(--rule-mid);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-period-pill:last-child { border-right: 0; }
.abr-period-pill:hover { color: var(--ink); }
.abr-period-pill.is-active {
  background: var(--ink); color: var(--surface);
}

/* ─── Status strip (6 cells) ────────────────────────────────────────────── */
.abr-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: var(--rule-w-emph) solid var(--rule);
  border-bottom: var(--rule-w-emph) solid var(--rule);
  margin: var(--sp-6) 0 var(--sp-6);
  background: var(--surface);
}
.abr-strip-cell {
  padding: var(--sp-4) var(--sp-5);
  border-right: var(--rule-w) solid var(--rule-faint);
  display: flex; flex-direction: column; gap: 6px;
}
.abr-strip-cell:last-child { border-right: 0; }
.abr-strip-cell--accent { background: var(--orange-tint); }
.abr-strip-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}
.abr-strip-value {
  font-family: var(--abr-editorial);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.abr-strip-value .abr-unit {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  font-weight: 400;
  margin-left: 4px; letter-spacing: 0;
}
.abr-strip-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.abr-strip-sub .abr-pos { color: var(--abr-good); }
.abr-strip-sub .abr-neg { color: var(--abr-bad); }
.abr-strip-sub .abr-mut { color: var(--ink-faint); }

/* ─── Warning banner (test-credentials in prod · NEW for A6) ───────────── */
.abr-warn-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--abr-warn-bg);
  border: var(--rule-w) solid var(--abr-warn-border);
  border-left: 3px solid var(--abr-bad);
  border-radius: var(--r-lg);
  margin: 0 0 var(--sp-6);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 8px,
      var(--abr-warn-stripe) 8px,
      var(--abr-warn-stripe) 9px
    );
}
.abr-warn-glyph {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: var(--rule-w) solid var(--abr-warn-border);
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-weight: 700;
  color: var(--abr-bad);
  font-size: 18px;
}
.abr-warn-body {
  display: flex; flex-direction: column; gap: 2px;
}
.abr-warn-title {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 600; font-size: 14px;
  color: var(--ink);
}
.abr-warn-text {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.abr-warn-text code {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--abr-warn-border);
  color: var(--ink);
}
.abr-warn-link {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--abr-bad);
  text-decoration: none;
  padding: 6px 12px;
  border: var(--rule-w) solid var(--abr-warn-border);
  border-radius: var(--r-full);
  background: var(--surface);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-warn-link:hover {
  background: var(--abr-bad); color: var(--surface);
  border-color: var(--abr-bad);
}

/* ─── Split section (60/40): Donut + Activity ─────────────────────────── */
.abr-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.abr-card {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}
.abr-card-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--orange);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.abr-card-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--orange);
}
.abr-card-title {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}

/* Donut */
.abr-donut-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.abr-donut {
  width: 200px; height: 200px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(
    var(--abr-donut-admin) 0% var(--share-admin, 0%),
    var(--abr-donut-ejer)  var(--share-admin, 0%) var(--share-ejer-end, 0%),
    var(--abr-donut-demo)  var(--share-ejer-end, 0%) 100%
  );
  border-radius: var(--r-full);
  margin: 0 auto;
}
.abr-donut::before {
  content: "";
  position: absolute;
  inset: 32px;
  background: var(--surface);
  border-radius: var(--r-full);
}
.abr-donut-center {
  position: relative;
  z-index: 1;
  text-align: center;
}
.abr-donut-center-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}
.abr-donut-center-value {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.abr-donut-center-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.abr-legend {
  display: flex; flex-direction: column; gap: 2px;
}
.abr-legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 8px var(--sp-2);
  border-bottom: 1px solid var(--rule-faint);
  font-size: var(--t-small);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.abr-legend-row:last-child { border-bottom: 0; }
.abr-legend-row:hover { background: var(--surface-alt); }
.abr-legend-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
}
.abr-legend-swatch--admin { background: var(--abr-donut-admin); }
.abr-legend-swatch--ejer  { background: var(--abr-donut-ejer); }
.abr-legend-swatch--demo  { background: var(--abr-donut-demo); }
.abr-legend-name {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 500;
  color: var(--ink);
}
.abr-legend-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.abr-legend-share {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* Activity card */
.abr-activity {
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.abr-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--sp-3);
}
.abr-activity-label {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}
.abr-activity-value {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.abr-activity-value--good { color: var(--abr-good); }
.abr-activity-value--bad  { color: var(--abr-bad); }
.abr-activity-bar {
  display: grid;
  grid-template-columns: var(--bar-success, 100%) var(--bar-failed, 0%);
  height: 8px;
  background: var(--surface-alt);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 2px;
}
.abr-activity-bar-success { background: var(--abr-good); }
.abr-activity-bar-failed  { background: var(--abr-bad); }
.abr-activity-callout {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface-alt);
  border-radius: var(--r-md);
  border-left: 3px solid var(--abr-warn);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.abr-activity-callout strong { color: var(--ink); font-weight: 600; }

/* ─── Filter chips ──────────────────────────────────────────────────────── */
.abr-toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-4);
}
.abr-section-header {
  margin: 0 0 var(--sp-4);
}
.abr-section-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--orange);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.abr-section-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--orange);
}
.abr-section-title {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.abr-section-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.abr-section-meta strong { color: var(--ink); font-weight: 600; }

.abr-filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
}
.abr-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px;
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.abr-chip.is-active {
  background: var(--ink); color: var(--surface);
  border-color: var(--ink);
}
.abr-chip-count {
  font-family: var(--font-mono); font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.abr-chip.is-active .abr-chip-count {
  background: var(--orange); color: var(--surface);
}

/* ─── Search + actions bar ──────────────────────────────────────────────── */
.abr-actions-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}
.abr-search {
  position: relative;
  display: flex; align-items: center;
}
.abr-search-icon {
  position: absolute; left: 12px;
  width: 16px; height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
.abr-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast);
}
.abr-search-input::placeholder { color: var(--ink-faint); }
.abr-search-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint);
}
.abr-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 9px 16px;
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  border-radius: var(--r-md);
  border: var(--rule-w) solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-btn--primary {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}
.abr-btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.abr-btn--secondary {
  background: var(--surface); color: var(--ink-soft);
  border-color: var(--rule-mid);
}
.abr-btn--secondary:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ─── Users table ───────────────────────────────────────────────────────── */
.abr-table-wrap {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-faint);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}
.abr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
.abr-table thead th {
  text-align: left;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  padding: 12px var(--sp-4);
  border-bottom: var(--rule-w) solid var(--rule-mid);
  font-weight: 600;
  background: var(--surface-alt);
  white-space: nowrap;
}
.abr-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--rule-faint);
  color: var(--ink-soft);
  vertical-align: middle;
}
.abr-table tbody tr:hover td { background: var(--surface-alt); color: var(--ink); }
.abr-table tbody tr:last-child td { border-bottom: 0; }

.abr-col-name {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: var(--sp-2);
}
.abr-col-email {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft);
}
.abr-col-tenant {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 500; color: var(--ink);
}
.abr-col-tenant-id {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  border: 1px solid var(--rule-faint);
  border-radius: var(--r-sm);
}
.abr-col-time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.abr-col-time-faint { color: var(--ink-faint); }

/* Role pill */
.abr-role-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid var(--rule-mid);
  white-space: nowrap;
}
.abr-role-pill--admin {
  color: var(--ink); background: var(--ink);
  color: var(--surface); border-color: var(--ink);
}
.abr-role-pill--ejer {
  color: var(--orange); background: var(--orange-tint);
  border-color: rgba(255, 80, 0, 0.3);
}
.abr-role-pill--demo {
  color: var(--ink-soft); background: var(--surface-alt);
}

/* Status pill */
.abr-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid var(--rule-mid);
  white-space: nowrap;
}
.abr-status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.abr-status-pill--active {
  color: var(--abr-good);
  background: rgba(74, 143, 42, 0.08);
  border-color: rgba(74, 143, 42, 0.3);
}
.abr-status-pill--locked {
  color: var(--abr-warn);
  background: rgba(199, 122, 29, 0.08);
  border-color: rgba(199, 122, 29, 0.3);
}
.abr-status-pill--failed {
  color: var(--abr-warn);
  background: rgba(199, 122, 29, 0.08);
  border-color: rgba(199, 122, 29, 0.3);
}
.abr-status-pill--inactive {
  color: var(--ink-faint);
  background: var(--surface-alt);
}

/* Test/dev tag */
.abr-tag {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 700;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.abr-tag-test {
  color: var(--abr-bad);
  background: rgba(208, 59, 26, 0.08);
  border: 1px solid var(--abr-warn-border);
}
.abr-tag-locked {
  color: var(--abr-warn);
  background: rgba(199, 122, 29, 0.08);
  border: 1px solid rgba(199, 122, 29, 0.3);
}

/* Action kebab */
.abr-kebab {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.abr-kebab:hover { background: var(--surface-alt); color: var(--ink); }
.abr-kebab svg { width: 16px; height: 16px; }

.abr-row-actions {
  display: inline-flex; gap: 4px;
}
.abr-action-link {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--rule-faint);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.abr-action-link:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ─── Quick actions (3 cards) ───────────────────────────────────────────── */
.abr-quick-actions {
  margin: var(--sp-8) 0 var(--sp-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.abr-action-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.abr-action-card:hover { border-color: var(--orange); background: var(--orange-tint); }
.abr-action-card[aria-disabled="true"] {
  opacity: 0.55; cursor: default; pointer-events: none;
}
.abr-action-icon { font-size: 22px; margin-bottom: var(--sp-2); }
.abr-action-title {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 16px; font-weight: 600;
  color: var(--ink);
}
.abr-action-desc {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.abr-action-soon-tag {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-ghost);
  font-style: italic;
}

/* ─── Krydshenvisninger (4 cards) ───────────────────────────────────────── */
.abr-cross {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: var(--rule-w) solid var(--rule-faint);
}
.abr-cross-card {
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-faint);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-cross-card:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.abr-cross-card[aria-disabled="true"] {
  opacity: 0.55; cursor: default; pointer-events: none;
}
.abr-cross-arrow {
  font-family: var(--font-mono); color: var(--orange);
  align-self: flex-end;
  margin-top: var(--sp-2);
  transition: transform var(--dur-fast);
}
.abr-cross-card:hover .abr-cross-arrow { transform: translateX(3px); }
.abr-cross-title {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 600; font-size: 15px;
}
.abr-cross-desc {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  line-height: 1.6;
}

/* ─── Detail sub-route (admin-brugere-detail.html) ──────────────────────── */
.abr-back-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin: var(--sp-5) 0 var(--sp-3);
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border: var(--rule-w) solid var(--rule-faint);
  border-radius: var(--r-full);
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-back-link:hover {
  color: var(--ink); border-color: var(--ink-soft);
  transform: translateX(-2px);
}

.abr-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-6);
}
.abr-id-avatar {
  width: 64px; height: 64px;
  border-radius: var(--r-full);
  background: var(--orange);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.abr-id-meta { min-width: 0; }
.abr-id-pill-row {
  display: flex; gap: var(--sp-2); align-items: center;
  margin-bottom: var(--sp-2);
}
.abr-id-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  border-radius: var(--r-full);
}
.abr-id-pill--role-ejer {
  background: var(--orange-tint); color: var(--orange);
  border: 1px solid rgba(255, 80, 0, 0.30);
}
.abr-id-pill--tenant {
  background: var(--surface-alt); color: var(--ink-soft);
  border: 1px solid var(--rule-mid);
}
.abr-id-name {
  font-family: var(--abr-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--sp-3) 0;
}
.abr-id-contact {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px var(--sp-5);
  font-family: var(--font-mono); font-size: var(--t-micro);
  color: var(--ink-soft);
}
.abr-id-contact-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.abr-id-contact-item svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 1.75;
  opacity: 0.55;
}
.abr-id-quickstats {
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  padding-left: var(--sp-5);
  border-left: var(--rule-w) solid var(--rule-faint);
  min-width: 180px;
  align-items: flex-end;
}
.abr-id-stat { text-align: right; }
.abr-id-stat-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  display: block;
  margin-bottom: 2px;
}
.abr-id-stat-value {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.1;
}
.abr-id-stat-value .abr-em { color: var(--orange); }
.abr-id-stat-sub {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-soft);
}

/* Dev-credential warning badge (full-page detail) */
.abr-dev-warn {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--abr-warn-bg);
  border: var(--rule-w) solid var(--abr-warn-border);
  border-left: 3px solid var(--abr-bad);
  border-radius: var(--r-md);
  margin: 0 0 var(--sp-5);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.abr-dev-warn strong { color: var(--ink); }
.abr-dev-warn-icon {
  font-size: 14px; color: var(--abr-bad);
}

/* Tabs (detail-page) */
.abr-tabs {
  display: flex; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  border-bottom: var(--rule-w) solid var(--rule-faint);
  padding-bottom: var(--sp-4);
}
.abr-tab {
  padding: 8px 18px;
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-soft);
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-tab:hover { color: var(--ink); border-color: var(--ink-soft); }
.abr-tab.is-active {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.abr-tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border-radius: var(--r-full);
}
.abr-tab.is-active .abr-tab-count {
  background: var(--orange); color: var(--surface);
}
.abr-tab-content {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-faint);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  min-height: 280px;
}

/* Permissions matrix (Tilladelser tab) */
.abr-perm-list {
  display: flex; flex-direction: column;
  gap: 0;
}
.abr-perm-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--rule-faint);
  font-size: var(--t-small);
}
.abr-perm-row:last-child { border-bottom: 0; }
.abr-perm-check {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-full);
  background: rgba(74, 143, 42, 0.10);
  color: var(--abr-good);
  border: 1px solid rgba(74, 143, 42, 0.30);
}
.abr-perm-cross {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--ink-faint);
  border: 1px solid var(--rule-faint);
}
.abr-perm-name {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
}
.abr-perm-note {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.abr-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 14, 12, 0.4);
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--dur-modal) var(--ease-out);
  z-index: 110;
  padding: var(--sp-6);
}
.abr-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.abr-modal {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(14, 14, 12, 0.18);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur-modal) var(--ease-spring);
}
.abr-modal-backdrop.is-open .abr-modal { transform: translateY(0) scale(1); }
.abr-modal-header {
  padding: var(--sp-5) var(--sp-6) var(--sp-3);
  border-bottom: var(--rule-w) solid var(--rule-faint);
}
.abr-modal-title {
  font-family: var(--abr-editorial); font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.abr-modal-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.abr-modal-body {
  padding: var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.abr-field-label {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.abr-input, .abr-select {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-md);
}
.abr-input:focus, .abr-select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint);
}
.abr-radio-group {
  display: flex; gap: var(--sp-2);
  flex-wrap: wrap;
}
.abr-radio {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-mid);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.abr-radio:hover { color: var(--ink); border-color: var(--ink-soft); }
.abr-radio.is-active {
  background: var(--ink); color: var(--surface);
  border-color: var(--ink);
}

.abr-helper {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 6px;
}

.abr-modal-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: var(--rule-w) solid var(--rule-faint);
  display: flex; gap: var(--sp-3); justify-content: flex-end;
  background: var(--surface-alt);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .abr-strip { grid-template-columns: repeat(3, 1fr); }
  .abr-strip-cell:nth-child(3) { border-right: 0; }
  .abr-split { grid-template-columns: 1fr; }
  .abr-donut-wrap { grid-template-columns: 1fr; }
  .abr-donut { margin: 0 auto var(--sp-4); }
  .abr-cross { grid-template-columns: repeat(2, 1fr); }
  .abr-identity { grid-template-columns: auto 1fr; }
  .abr-id-quickstats {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: var(--rule-w) solid var(--rule-faint);
    padding-top: var(--sp-4);
    padding-left: 0;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
  }
  .abr-id-stat { text-align: left; }
}
@media (max-width: 900px) {
  .abr-hero { grid-template-columns: 1fr; }
  .abr-warn-banner { grid-template-columns: 1fr; }
  .abr-actions-bar { grid-template-columns: 1fr; }
  .abr-quick-actions { grid-template-columns: 1fr; }
  .abr-identity { grid-template-columns: 1fr; }
  .abr-id-quickstats { flex-direction: column; }
  .abr-tabs { flex-wrap: wrap; }
  .abr-table { font-size: 12px; }
  .abr-table thead th, .abr-table tbody td { padding: 8px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   A6 React-port additions: InviteWizard + form-controls
   ════════════════════════════════════════════════════════════════════════════ */

.abr-wizard {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(14, 14, 12, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur-modal) var(--ease-out);
}
.abr-modal-backdrop.is-open .abr-wizard { transform: translateY(0) scale(1); }

.abr-wizard-header {
  position: relative;
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-bottom: var(--rule-w) solid var(--rule);
}
.abr-wizard-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.abr-wizard-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin: 4px 0 0;
  color: var(--ink);
}
.abr-wizard-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px; height: 32px;
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-wizard-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* Step indicator */
.abr-wizard-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface-alt);
  border-bottom: var(--rule-w) solid var(--rule);
  gap: var(--sp-2);
}
.abr-wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  opacity: 0.55;
}
.abr-wizard-step.is-current { opacity: 1; color: var(--ink); }
.abr-wizard-step.is-done { opacity: 0.85; color: #226d50; }
.abr-wizard-step-num {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.abr-wizard-step.is-current .abr-wizard-step-num {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.abr-wizard-step.is-done .abr-wizard-step-num {
  background: #226d50;
  color: #fff;
  border-color: #226d50;
}
.abr-wizard-step-label { font-family: var(--font-body); }

.abr-wizard-body {
  padding: var(--sp-5) var(--sp-6);
  overflow-y: auto;
  flex: 1;
  min-height: 240px;
}
.abr-wizard-panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--ink);
}
.abr-wizard-panel-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
}

.abr-field { margin-bottom: var(--sp-4); }
.abr-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.abr-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.abr-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(235, 84, 19, 0.12);
}
.abr-input.is-valid { border-color: #226d50; }
.abr-input:disabled {
  opacity: 0.6;
  background: var(--surface-alt);
  cursor: not-allowed;
}
.abr-field-hint {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.abr-field-hint.is-pos { color: #226d50; }

.abr-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.abr-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-radio-pill input { display: none; }
.abr-radio-pill:hover { color: var(--ink); border-color: var(--ink-soft); }
.abr-radio-pill.is-active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  font-weight: 500;
}

.abr-perm-list--compact .abr-perm-row {
  padding: 6px 0;
  font-size: 12px;
}

.abr-wizard-review {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--rule-w) solid var(--rule);
}
.abr-wizard-review-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 10px 0;
  border-bottom: var(--rule-w) solid var(--rule);
  font-size: 13px;
  margin: 0;
}
.abr-wizard-review-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0;
}
.abr-wizard-review-row dd {
  margin: 0;
  color: var(--ink);
}

.abr-wizard-error {
  background: rgba(208, 59, 26, 0.08);
  border: var(--rule-w) solid rgba(208, 59, 26, 0.3);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--orange);
  margin-top: var(--sp-3);
}

.abr-wizard-result {
  background: rgba(34, 109, 80, 0.06);
  border: var(--rule-w) solid rgba(34, 109, 80, 0.25);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.abr-wizard-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}
.abr-wizard-result-meta {
  margin-top: var(--sp-3);
  font-size: 11px;
  color: var(--ink-faint);
}
.abr-wizard-copy {
  padding: 9px 14px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.abr-wizard-copy:hover { opacity: 0.85; }

.abr-wizard-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface-alt);
  border-top: var(--rule-w) solid var(--rule);
}

.abr-btn-primary {
  padding: 9px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.abr-btn-primary:hover:not(:disabled) { opacity: 0.9; }
.abr-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.abr-btn-secondary {
  padding: 9px 18px;
  background: transparent;
  color: var(--ink-soft);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.abr-btn-secondary:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-soft); }

[data-theme="dark"] .abr-wizard {
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .abr-input { background: var(--surface-alt); }
[data-theme="dark"] .abr-input:focus { background: var(--surface); }
[data-theme="dark"] .abr-radio-pill { background: var(--surface-alt); }
[data-theme="dark"] .abr-radio-pill.is-active {
  background: #f5ede0;
  color: var(--ink);
  border-color: #f5ede0;
}
[data-theme="dark"] .abr-wizard-step.is-current .abr-wizard-step-num {
  background: #f5ede0;
  color: var(--ink);
  border-color: #f5ede0;
}
[data-theme="dark"] .abr-wizard-copy {
  background: #f5ede0;
  color: var(--ink);
}
