/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN AGENTER (A10) — Internal team monitoring · 10 AI personalities
   prefix: .agt-*  (admin-agents)
   Aesthetic: Editorial Mission Control + BOLDER personality
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --agt-editorial:  'Fraunces', Georgia, 'Times New Roman', serif;

  --agt-grid-tone:  rgba(14, 14, 12, 0.04);

  /* Status colors · canonical 3 states (matches A9 conventions) */
  --agt-success:        #2E9959;
  --agt-failed:         #D03B1A;
  --agt-running:        #C77A1D;
  --agt-idle:           #8B8B86;

  --agt-success-bg:     rgba(46, 153, 89, 0.07);
  --agt-failed-bg:      rgba(208, 59, 26, 0.07);
  --agt-running-bg:     rgba(199, 122, 29, 0.07);

  --agt-success-border: rgba(46, 153, 89, 0.30);
  --agt-failed-border:  rgba(208, 59, 26, 0.32);
  --agt-running-border: rgba(199, 122, 29, 0.32);

  /* Terminal aesthetic (for system-prompt card) */
  --agt-terminal-bg:    #1B1B17;
  --agt-terminal-ink:   #F4F0E6;
  --agt-terminal-faint: #A8A39A;
  --agt-terminal-rule:  rgba(244, 240, 230, 0.10);
  --agt-terminal-glow:  rgba(255, 80, 0, 0.40);

  /* 10 agent identity tokens (matches dashboard.jsx AGENT_CONFIG) */
  --agt-c-ceo:             #7F77DD;
  --agt-c-cto:             #185FA5;
  --agt-c-marketing:       #993556;
  --agt-c-design:          #0F6E56;
  --agt-c-data:            #854F0B;
  --agt-c-customersuccess: #3B6D11;
  --agt-c-regnskab:        #993C1D;
  --agt-c-salg:            #27500A;
  --agt-c-produkt:         #085041;
  --agt-c-juridisk:        #791F1F;
}
:root[data-theme="dark"] {
  --agt-grid-tone:      rgba(250, 250, 247, 0.04);

  --agt-success:        #6BB342;
  --agt-failed:         #E55A3A;
  --agt-running:        #D89952;
  --agt-idle:           #A8A8A2;

  --agt-success-bg:     rgba(107, 179, 66, 0.10);
  --agt-failed-bg:      rgba(229, 90, 58, 0.10);
  --agt-running-bg:     rgba(216, 153, 82, 0.10);

  --agt-success-border: rgba(107, 179, 66, 0.35);
  --agt-failed-border:  rgba(229, 90, 58, 0.38);
  --agt-running-border: rgba(216, 153, 82, 0.38);

  --agt-terminal-bg:    #0A0A08;
  --agt-terminal-ink:   #F8F4E8;
  --agt-terminal-faint: #8B867D;
  --agt-terminal-rule:  rgba(248, 244, 232, 0.08);

  /* Slightly brightened agent colors for dark mode */
  --agt-c-ceo:             #9A93E8;
  --agt-c-cto:             #4685C9;
  --agt-c-marketing:       #BC5778;
  --agt-c-design:          #2E9579;
  --agt-c-data:            #B57636;
  --agt-c-customersuccess: #6B9F3D;
  --agt-c-regnskab:        #BC5E40;
  --agt-c-salg:            #4E7A2C;
  --agt-c-produkt:         #2A7868;
  --agt-c-juridisk:        #A04848;
}

/* ─── Page scaffold ─────────────────────────────────────────────────────── */
.agt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agt-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(--agt-grid-tone) 1px, transparent 1px),
    linear-gradient(90deg, var(--agt-grid-tone) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.agt-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);
}
.agt-breadcrumb {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
}
.agt-breadcrumb-sep    { color: var(--ink-ghost); }
.agt-breadcrumb-current{ color: var(--ink); }
.agt-topbar-meta {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}

/* ─── Hero (BIGGER per bolder) ─────────────────────────────────────────── */
.agt-hero {
  padding: var(--sp-10) 0 var(--sp-8);
  border-bottom: var(--rule-w) solid var(--rule-faint);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6);
  align-items: end;
  position: relative;
}
.agt-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);
}
.agt-hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 32px; height: 1px; background: var(--orange);
}
.agt-hero-h1 {
  font-family: var(--agt-editorial);
  font-weight: 500;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.agt-hero-h1 em {
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}
.agt-hero-lead {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}
.agt-hero-lead strong { color: var(--ink); font-weight: 600; }
.agt-hero-lead code {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: var(--r-sm);
}

.agt-hero-chat-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 18px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  align-self: end;
  margin-bottom: 8px;
}
.agt-hero-chat-link:hover {
  background: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.18);
}
.agt-hero-chat-link::after { content: "→"; }

/* ─── Status strip (4 cells) ─────────────────────────────────────────────── */
.agt-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule-w-emph) solid var(--rule);
  border-bottom: var(--rule-w-emph) solid var(--rule);
  margin: var(--sp-6) 0;
  background: var(--surface);
}
.agt-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;
  min-height: 96px;
  justify-content: center;
}
.agt-strip-cell:last-child { border-right: 0; }
.agt-strip-cell--success {
  background: var(--agt-success-bg);
  border-left: 3px solid var(--agt-success);
}
.agt-strip-cell--accent {
  background: var(--orange-tint);
  border-left: 3px solid var(--orange);
}
.agt-strip-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}
.agt-strip-cell--success .agt-strip-label { color: var(--agt-success); }
.agt-strip-cell--accent  .agt-strip-label { color: var(--orange); }
.agt-strip-value {
  font-family: var(--agt-editorial);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.agt-strip-cell--success .agt-strip-value { color: var(--agt-success); font-style: italic; }
.agt-strip-cell--accent  .agt-strip-value { color: var(--orange); font-style: italic; }
.agt-strip-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.agt-strip-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--agt-success);
  color: #fff;
  width: fit-content;
  margin-bottom: 2px;
}
.agt-strip-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: agt-pulse-dot 1.8s infinite;
}
@keyframes agt-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  70%  { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ─── Section headers (shared) ──────────────────────────────────────────── */
.agt-section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: var(--sp-8) 0 var(--sp-4);
  gap: var(--sp-4);
}
.agt-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);
}
.agt-section-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--orange);
}
.agt-section-title {
  font-family: var(--agt-editorial); font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 8px 0 0;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.agt-section-title em { color: var(--orange); font-style: italic; }
.agt-section-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.agt-section-meta strong { color: var(--ink); font-weight: 600; }

/* ─── Scheduler panel (3 job-cards · NEW pattern A10) ───────────────────── */
.agt-scheduler-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.agt-scheduler-card {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5) var(--sp-4);
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
}
.agt-scheduler-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.agt-scheduler-card--next {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-tint) 0%, var(--surface) 60%);
  border-left: 3px solid var(--orange);
}
.agt-scheduler-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
}
.agt-scheduler-job-id {
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.agt-scheduler-card--next .agt-scheduler-job-id { color: var(--orange); }

.agt-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px;
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid currentColor;
  background: var(--surface);
  white-space: nowrap;
}
.agt-status-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.agt-status-pill--success { color: var(--agt-success); background: var(--agt-success-bg); border-color: var(--agt-success-border); }
.agt-status-pill--failed  { color: var(--agt-failed);  background: var(--agt-failed-bg);  border-color: var(--agt-failed-border); }
.agt-status-pill--running { color: var(--agt-running); background: var(--agt-running-bg); border-color: var(--agt-running-border); }
.agt-status-pill--idle    { color: var(--agt-idle);    background: var(--surface-alt);    border-color: var(--rule-mid); }

.agt-scheduler-label {
  font-family: var(--agt-editorial); font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.agt-scheduler-card--next .agt-scheduler-label { color: var(--orange); }

.agt-scheduler-cron {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  background: var(--surface-alt);
  padding: 4px 9px;
  border: 1px dashed var(--rule-mid);
  border-radius: var(--r-sm);
  width: fit-content;
}
.agt-scheduler-cron strong { color: var(--ink); font-weight: 600; }

.agt-scheduler-rows {
  display: flex; flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--rule-faint);
  padding-top: var(--sp-3);
}
.agt-scheduler-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--font-mono); font-size: 11px;
}
.agt-scheduler-row-label {
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-size: 9px;
}
.agt-scheduler-row-value {
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
}
.agt-scheduler-row-value--rel {
  font-family: var(--agt-editorial); font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.005em;
}
.agt-scheduler-card--next::after {
  content: "TODAY";
  position: absolute;
  top: var(--sp-4); right: -28px;
  transform: rotate(35deg);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  padding: 3px 32px;
  text-transform: uppercase;
  opacity: 0;
}

/* ─── Agent grid (THE FOCAL POINT · bolder personality) ─────────────────── */
.agt-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 1100px) {
  .agt-agent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .agt-agent-grid { grid-template-columns: 1fr; }
}

.agt-agent-card {
  --agt-color: var(--ink);
  --agt-color-bg: rgba(14, 14, 12, 0.03);

  background: var(--surface);
  background-image: linear-gradient(180deg, var(--agt-color-bg) 0%, var(--surface) 75%);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.agt-agent-card:hover {
  transform: translateY(-3px);
  border-color: var(--agt-color);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.06),
    0 0 0 1px var(--agt-color) inset;
}

.agt-agent-stripe {
  height: 6px;
  background: var(--agt-color);
  width: 100%;
  flex-shrink: 0;
  position: relative;
}
.agt-agent-stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  opacity: 0.5;
}

.agt-agent-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.agt-agent-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: center;
}
.agt-agent-emoji {
  font-size: 34px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--surface);
  border: 1.5px solid var(--agt-color);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 4px var(--agt-color-bg);
  flex-shrink: 0;
}
.agt-agent-id-block { min-width: 0; }
.agt-agent-name {
  font-family: var(--agt-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}
.agt-agent-role {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}
.agt-agent-id-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--agt-color);
  background: var(--agt-color-bg);
  border: 1px solid var(--agt-color);
  padding: 1px 7px;
  border-radius: var(--r-sm);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.agt-agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px dashed var(--rule-faint);
  border-bottom: 1px dashed var(--rule-faint);
}
.agt-agent-stat {
  display: flex; flex-direction: column;
  gap: 2px;
}
.agt-agent-stat-label {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
}
.agt-agent-stat-value {
  font-family: var(--font-mono); font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.agt-agent-stat-value--good { color: var(--agt-success); }

.agt-agent-prompt {
  font-family: var(--agt-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agt-agent-prompt::before {
  content: """;
  font-family: var(--agt-editorial);
  font-size: 18px;
  font-style: italic;
  color: var(--agt-color);
  margin-right: 2px;
  opacity: 0.7;
  font-weight: 500;
}

.agt-agent-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-5);
  background: var(--surface);
  border-top: 1px solid var(--rule-faint);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  margin-top: auto;
}
.agt-agent-footer-arrow {
  color: var(--agt-color);
  font-weight: 600;
  transition: transform var(--dur-fast);
}
.agt-agent-card:hover .agt-agent-footer-arrow { transform: translateX(3px); }

/* Per-agent color hooks · sets --agt-color + --agt-color-bg cascading vars */
.agt-agent-card--ceo             { --agt-color: var(--agt-c-ceo);             --agt-color-bg: rgba(127, 119, 221, 0.06); }
.agt-agent-card--cto             { --agt-color: var(--agt-c-cto);             --agt-color-bg: rgba( 24,  95, 165, 0.06); }
.agt-agent-card--marketing       { --agt-color: var(--agt-c-marketing);       --agt-color-bg: rgba(153,  53,  86, 0.06); }
.agt-agent-card--design          { --agt-color: var(--agt-c-design);          --agt-color-bg: rgba( 15, 110,  86, 0.06); }
.agt-agent-card--data            { --agt-color: var(--agt-c-data);            --agt-color-bg: rgba(133,  79,  11, 0.06); }
.agt-agent-card--customersuccess { --agt-color: var(--agt-c-customersuccess); --agt-color-bg: rgba( 59, 109,  17, 0.06); }
.agt-agent-card--regnskab        { --agt-color: var(--agt-c-regnskab);        --agt-color-bg: rgba(153,  60,  29, 0.06); }
.agt-agent-card--salg            { --agt-color: var(--agt-c-salg);            --agt-color-bg: rgba( 39,  80,  10, 0.06); }
.agt-agent-card--produkt         { --agt-color: var(--agt-c-produkt);         --agt-color-bg: rgba(  8,  80,  65, 0.06); }
.agt-agent-card--juridisk        { --agt-color: var(--agt-c-juridisk);        --agt-color-bg: rgba(121,  31,  31, 0.06); }

:root[data-theme="dark"] .agt-agent-card--ceo             { --agt-color-bg: rgba(154, 147, 232, 0.08); }
:root[data-theme="dark"] .agt-agent-card--cto             { --agt-color-bg: rgba( 70, 133, 201, 0.08); }
:root[data-theme="dark"] .agt-agent-card--marketing       { --agt-color-bg: rgba(188,  87, 120, 0.08); }
:root[data-theme="dark"] .agt-agent-card--design          { --agt-color-bg: rgba( 46, 149, 121, 0.08); }
:root[data-theme="dark"] .agt-agent-card--data            { --agt-color-bg: rgba(181, 118,  54, 0.08); }
:root[data-theme="dark"] .agt-agent-card--customersuccess { --agt-color-bg: rgba(107, 159,  61, 0.08); }
:root[data-theme="dark"] .agt-agent-card--regnskab        { --agt-color-bg: rgba(188,  94,  64, 0.08); }
:root[data-theme="dark"] .agt-agent-card--salg            { --agt-color-bg: rgba( 78, 122,  44, 0.08); }
:root[data-theme="dark"] .agt-agent-card--produkt         { --agt-color-bg: rgba( 42, 120, 104, 0.08); }
:root[data-theme="dark"] .agt-agent-card--juridisk        { --agt-color-bg: rgba(160,  72,  72, 0.08); }

/* ─── Briefings feed (cross-agent timeline · NEW pattern A10) ────────────── */
.agt-briefings-feed {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.agt-briefing-row {
  display: grid;
  grid-template-columns: 110px 180px 130px auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--rule-faint);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.agt-briefing-row:last-child { border-bottom: 0; }
.agt-briefing-row:hover { background: var(--surface-alt); }

.agt-briefing-time {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
}
.agt-briefing-time-rel {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.agt-briefing-time-abs {
  font-size: 9px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}

.agt-briefing-agent {
  --agt-color: var(--ink);
  --agt-color-bg: rgba(14, 14, 12, 0.04);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: var(--r-full);
  background: var(--agt-color-bg);
  border: 1px solid var(--agt-color);
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 600;
  color: var(--agt-color);
  width: fit-content;
  white-space: nowrap;
}
.agt-briefing-agent-emoji { font-size: 14px; line-height: 1; }
.agt-briefing-agent--ceo             { --agt-color: var(--agt-c-ceo);             --agt-color-bg: rgba(127, 119, 221, 0.07); }
.agt-briefing-agent--cto             { --agt-color: var(--agt-c-cto);             --agt-color-bg: rgba( 24,  95, 165, 0.07); }
.agt-briefing-agent--marketing       { --agt-color: var(--agt-c-marketing);       --agt-color-bg: rgba(153,  53,  86, 0.07); }
.agt-briefing-agent--design          { --agt-color: var(--agt-c-design);          --agt-color-bg: rgba( 15, 110,  86, 0.07); }
.agt-briefing-agent--data            { --agt-color: var(--agt-c-data);            --agt-color-bg: rgba(133,  79,  11, 0.07); }
.agt-briefing-agent--customersuccess { --agt-color: var(--agt-c-customersuccess); --agt-color-bg: rgba( 59, 109,  17, 0.07); }
.agt-briefing-agent--regnskab        { --agt-color: var(--agt-c-regnskab);        --agt-color-bg: rgba(153,  60,  29, 0.07); }
.agt-briefing-agent--salg            { --agt-color: var(--agt-c-salg);            --agt-color-bg: rgba( 39,  80,  10, 0.07); }
.agt-briefing-agent--produkt         { --agt-color: var(--agt-c-produkt);         --agt-color-bg: rgba(  8,  80,  65, 0.07); }
.agt-briefing-agent--juridisk        { --agt-color: var(--agt-c-juridisk);        --agt-color-bg: rgba(121,  31,  31, 0.07); }

.agt-briefing-job {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
}
.agt-briefing-job strong { color: var(--ink); font-weight: 600; }

.agt-briefing-preview {
  font-family: var(--agt-editorial); font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agt-briefing-divider {
  grid-column: 1 / -1;
  background: var(--surface-alt);
  padding: 6px var(--sp-5);
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
  display: block;
}

/* ─── Quick actions ──────────────────────────────────────────────────────── */
.agt-quick-actions {
  margin: var(--sp-8) 0 var(--sp-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.agt-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;
}
.agt-action-card:hover { border-color: var(--orange); background: var(--orange-tint); }
.agt-action-icon { font-size: 22px; margin-bottom: var(--sp-2); }
.agt-action-title {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 16px; font-weight: 600;
  color: var(--ink);
}
.agt-action-desc {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── Krydshenvisninger ──────────────────────────────────────────────────── */
.agt-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);
}
.agt-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);
  position: relative;
}
.agt-cross-card:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.agt-cross-card[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.agt-cross-arrow {
  font-family: var(--font-mono); color: var(--orange);
  align-self: flex-end;
  margin-top: var(--sp-2);
  transition: transform var(--dur-fast);
}
.agt-cross-card:hover .agt-cross-arrow { transform: translateX(3px); }
.agt-cross-title {
  font-family: var(--font-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-weight: 600; font-size: 15px;
}
.agt-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;
}
.agt-cross-soon {
  display: inline-block;
  margin-top: var(--sp-1);
  padding: 1px 6px;
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-ghost);
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  font-style: italic;
  width: fit-content;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DETAIL SUB-ROUTE (admin-agents-detail.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.agt-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);
  width: fit-content;
}
.agt-back-link:hover {
  color: var(--ink); border-color: var(--ink-soft);
  transform: translateX(-2px);
}

/* Identity header (LARGE color-glyph · bolder version of A9 .ahs-identity) */
.agt-identity {
  --agt-color: var(--agt-c-ceo);
  --agt-color-bg: rgba(127, 119, 221, 0.08);

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-6);
  padding: var(--sp-7) var(--sp-8);
  background: var(--surface);
  background-image: linear-gradient(180deg, var(--agt-color-bg) 0%, var(--surface) 70%);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.agt-identity::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--agt-color);
}

.agt-id-glyph {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--agt-color);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px var(--agt-color-bg);
  position: relative;
  margin-top: 4px;
}
.agt-id-glyph::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--agt-color);
  opacity: 0.30;
  animation: agt-glyph-pulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes agt-glyph-pulse {
  0%   { transform: scale(1);    opacity: 0.45; }
  100% { transform: scale(1.35); opacity: 0;   }
}

.agt-id-meta { min-width: 0; padding-top: var(--sp-1); }
.agt-id-pill-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center;
  margin-bottom: var(--sp-3);
}
.agt-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);
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--rule-mid);
}
.agt-id-pill--id    { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.agt-id-pill--role  { background: var(--surface); color: var(--agt-color); border-color: var(--agt-color); }
.agt-id-pill--color {
  background: var(--surface); color: var(--ink-soft);
}
.agt-id-pill-swatch {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--agt-color);
}

.agt-id-name {
  font-family: var(--agt-editorial);
  font-style: italic; font-weight: 500;
  font-size: clamp(48px, 6.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 var(--sp-4) 0;
}
.agt-id-name em { color: var(--agt-color); font-style: italic; }
.agt-id-contact {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px var(--sp-6);
  font-family: var(--font-mono); font-size: var(--t-micro);
  color: var(--ink-soft);
}
.agt-id-contact-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.agt-id-contact-item svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 1.75;
  opacity: 0.55;
}
.agt-id-contact-item code {
  color: var(--ink);
  font-family: var(--font-mono);
}
.agt-id-contact-item--color code {
  color: var(--agt-color);
  font-weight: 600;
}

.agt-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: 200px;
  align-items: flex-end;
}
.agt-id-stat { text-align: right; }
.agt-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;
}
.agt-id-stat-value {
  font-family: var(--agt-editorial); font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.agt-id-stat-value--good { color: var(--agt-success); }
.agt-id-stat-value .agt-unit-inline {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft); font-weight: 400;
  margin-left: 4px; font-style: normal;
  letter-spacing: 0;
}
.agt-id-stat-sub {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  margin-top: 2px;
}

/* Two-column main · 60/40 */
.agt-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

/* ─── System-prompt card (terminal aesthetic · NEW pattern A10) ─────────── */
.agt-prompt-card {
  background: var(--agt-terminal-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--agt-terminal-rule);
}
.agt-prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--agt-terminal-glow) 50%, transparent 100%);
  opacity: 0.7;
}
.agt-prompt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--agt-terminal-rule);
  gap: var(--sp-3);
}
.agt-prompt-head-left {
  display: flex; align-items: center; gap: var(--sp-2);
}
.agt-prompt-dots { display: inline-flex; gap: 5px; }
.agt-prompt-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.18);
}
.agt-prompt-dot:nth-child(1) { background: rgba(255, 80, 0, 0.65); }
.agt-prompt-dot:nth-child(2) { background: rgba(255, 175, 0, 0.50); }
.agt-prompt-dot:nth-child(3) { background: rgba(46, 153, 89, 0.55); }
.agt-prompt-filename {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--agt-terminal-faint);
  letter-spacing: 0.02em;
}
.agt-prompt-badge {
  font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-weight: 600;
  color: var(--agt-terminal-faint);
  padding: 3px 8px;
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid var(--agt-terminal-rule);
  border-radius: var(--r-sm);
}
.agt-prompt-body {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--agt-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--agt-terminal-ink);
  letter-spacing: -0.005em;
  max-height: 280px;
  overflow-y: auto;
  position: relative;
}
.agt-prompt-body strong {
  font-weight: 600;
  color: #fff;
  font-style: italic;
}
.agt-prompt-line-number {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(168, 163, 154, 0.45);
  user-select: none;
  margin-right: var(--sp-3);
  display: inline-block;
  font-style: normal;
  text-align: right;
  min-width: 22px;
}
.agt-prompt-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--orange);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: agt-blink 1.1s steps(2, end) infinite;
}
@keyframes agt-blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.agt-prompt-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--sp-5);
  border-top: 1px solid var(--agt-terminal-rule);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--agt-terminal-faint);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}

/* ─── Briefing-frequency chart (port A8 · 30 days) ──────────────────────── */
.agt-chart-card {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-5);
}
.agt-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--sp-4);
  gap: var(--sp-4);
}
.agt-card-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--orange);
}
.agt-card-title {
  font-family: var(--agt-editorial); font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}
.agt-chart-legend {
  display: inline-flex; gap: var(--sp-4);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-soft);
}
.agt-chart-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.agt-chart-legend-swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--agt-success);
}
.agt-chart-legend-swatch--fail { background: var(--agt-failed); }

.agt-chart {
  width: 100%; height: 220px;
}
.agt-chart-grid line {
  stroke: var(--rule-faint);
  stroke-width: 1;
}
.agt-chart-axis-label {
  font-family: var(--font-mono); font-size: 10px;
  fill: var(--ink-faint);
}
.agt-chart-bar {
  fill: var(--agt-success);
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}
.agt-chart-bar--fail { fill: var(--agt-failed); }
.agt-chart-bar:hover { opacity: 1; }
.agt-chart-x-label {
  font-family: var(--font-mono); font-size: 10px;
  fill: var(--ink-faint);
}

/* ─── Recent runs list (detail) ─────────────────────────────────────────── */
.agt-runs-card {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-5);
}
.agt-runs-card .agt-chart-head { margin-bottom: var(--sp-3); }
.agt-runs-list {
  display: flex; flex-direction: column;
}
.agt-run-row {
  display: grid;
  grid-template-columns: 90px 140px 90px 90px 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-faint);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast);
}
.agt-run-row:last-child { border-bottom: 0; }
.agt-run-row:hover { background: var(--surface-alt); }
.agt-run-time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
}
.agt-run-job {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink);
  font-weight: 600;
}
.agt-run-duration {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
  text-align: right;
}
.agt-run-preview {
  font-family: var(--agt-editorial); font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Sticky right-sidebar (detail) ──────────────────────────────────────── */
.agt-side {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-5));
  display: flex; flex-direction: column;
  gap: var(--sp-4);
}
.agt-side-card {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.agt-side-card-title {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}

/* Success-bars · 7 days */
.agt-success-bars {
  display: flex; align-items: flex-end;
  gap: 6px;
  height: 90px;
}
.agt-success-bar-col {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-faint);
}
.agt-success-bar-fill {
  width: 100%;
  background: var(--agt-success);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.agt-success-bar-fill--partial { background: linear-gradient(180deg, var(--agt-failed) 0%, var(--agt-failed) 18%, var(--agt-success) 18%); }
.agt-success-bar-fill--mid     { background: linear-gradient(180deg, var(--agt-failed) 0%, var(--agt-failed) 33%, var(--agt-success) 33%); }

/* Big CTA action */
.agt-side-cta {
  --agt-color: var(--agt-c-ceo);
  --agt-color-bg: rgba(127, 119, 221, 0.10);

  display: flex; flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--agt-color-bg);
  border: 2px solid var(--agt-color);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.agt-side-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.agt-side-cta-emoji { font-size: 28px; line-height: 1; }
.agt-side-cta-title {
  font-family: var(--agt-editorial); font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--agt-color);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.agt-side-cta-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.agt-side-cta-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--agt-color);
  font-weight: 600;
  align-self: flex-end;
  margin-top: var(--sp-2);
}

/* Stats list */
.agt-stats-list {
  display: flex; flex-direction: column;
}
.agt-stats-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-faint);
}
.agt-stats-row:last-child { border-bottom: 0; }
.agt-stats-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft);
}
.agt-stats-value {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE PARITY
   ═══════════════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] .agt-strip-cell--accent {
  background: var(--orange-tint-md);
}
:root[data-theme="dark"] .agt-agent-card {
  background-image: linear-gradient(180deg, var(--agt-color-bg) 0%, var(--surface) 75%);
}
:root[data-theme="dark"] .agt-scheduler-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.40);
}
:root[data-theme="dark"] .agt-agent-card:hover {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--agt-color) inset;
}
:root[data-theme="dark"] .agt-prompt-dot:nth-child(1) { background: rgba(255, 110, 60, 0.65); }
:root[data-theme="dark"] .agt-prompt-dot:nth-child(2) { background: rgba(255, 195, 50, 0.55); }
:root[data-theme="dark"] .agt-prompt-dot:nth-child(3) { background: rgba(107, 179, 66, 0.65); }

/* Print and reduced motion handled globally via tokens.css */
