/* =====================================================================
   Atlas Federal Technologies brand, matching atlasfedtech.com.
   Loaded after style.css and overrides its theme.
   Fonts: League Spartan (headings), Ramabhadra (labels, nav, buttons), Segoe UI (body)
   Colours: navy #103157, mid blue #516993, soft blue #8d9cb9, light gray #c9d2de, ice blue #e7f0ff
   Light is the default, like the website; dark is a deep-navy version.
   ===================================================================== */
:root {
  --aft-navy: #103157; --aft-navy-2: #1a4a7a; --aft-mid: #516993; --aft-soft: #8d9cb9;
  --aft-gray: #c9d2de; --aft-ice: #e7f0ff;
  --font-heading: "League Spartan", "Segoe UI", sans-serif;
  --font-sub: "Ramabhadra", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --aft-grad: linear-gradient(135deg, #103157 0%, #1a4a7a 50%, #516993 100%);
  --radius: 12px;
  /* dark: deep navy */
  --page: #0a1a2e;
  --surface: #10243d;
  --surface-solid: #10243d;
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.08);
  --ink: #eef3fa;
  --ink-2: #b6c3d6;
  --muted: #8d9cb9;
  --heading: #ffffff;
  --border: rgba(201, 210, 222, 0.12);
  --border-strong: rgba(201, 210, 222, 0.26);
  --accent: #8d9cb9;
  --accent-2: #c9d2de;
  --accent-strong: #516993;
  --accent-ink: #a9c4ff;
  --accent-soft: rgba(141, 156, 185, 0.2);
  --accent-wash: rgba(141, 156, 185, 0.14);
  --accent-line: rgba(141, 156, 185, 0.45);
  --grad: linear-gradient(135deg, #1a4a7a 0%, #516993 100%);
  --grad-text: linear-gradient(100deg, #e7f0ff 0%, #8d9cb9 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  --ring-a: #e7f0ff; --ring-b: #8d9cb9;
  --topbar-bg: #0c2440;
  --aurora-opacity: 0;
  /* chart series: brand blues, light to dark against the navy page */
  --s1: #e7f0ff; --s2: #8fb0e6; --s3: #4f72a8; --s4: #2e4766;
}
:root[data-theme="light"] {
  --page: #f1f4fb;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #e7f0ff;
  --ink: #1a2a3a;
  --ink-2: #3d4f63;
  --muted: #6b7d93;
  --heading: #103157;
  --axis-text: #6b7d93;
  --grid: #e3e9f2;
  --axis: #c9d2de;
  --border: #dfe6ef;
  --border-strong: #c9d2de;
  --accent: #103157;
  --accent-2: #516993;
  --accent-strong: #103157;
  --accent-ink: #103157;
  --accent-soft: #e7f0ff;
  --accent-wash: rgba(16, 49, 87, 0.07);
  --accent-line: rgba(16, 49, 87, 0.35);
  --grad: var(--aft-grad);
  --grad-text: linear-gradient(100deg, #103157 0%, #516993 100%);
  --deemph: #c9d2de;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --glow: 0 8px 25px -8px rgba(16, 49, 87, 0.45);
  --ring-a: #103157; --ring-b: #516993;
  --topbar-bg: #103157;
  --aurora-opacity: 0;
  /* chart series: brand blues, dark to light, far enough apart to tell stacked bars apart */
  --s1: #103157; --s2: #3d6aa8; --s3: #8aa7d1; --s4: #d3dbe6;
}

body { font: 14px/1.65 var(--font-body); font-feature-settings: normal; color: var(--ink-2); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
h2 { font-size: 19px; }
a:hover { color: var(--aft-mid); text-decoration: none; }
::selection { background: rgba(81, 105, 147, 0.3); }
.aurora { display: none; }

/* section heading with a short gradient divider, like the website's section titles */
.card-head { margin-bottom: 18px; align-items: flex-end; }
.card-head h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
}
.tile-label, .eyebrow, .settings h3, th, .capture-grid label, .login label {
  font-family: var(--font-sub); letter-spacing: 0.06em;
}
.card-head .sub { font-size: 13px; }
.tile-label { text-transform: uppercase; font-size: 11.5px; color: var(--aft-mid); font-weight: 400; }
:root:not([data-theme="light"]) .tile-label { color: var(--aft-soft); }
.tile-value, .tpl-total b, .tpl-val b { font-family: var(--font-heading); font-weight: 800; color: var(--heading); letter-spacing: 0; }

/* cards: white, soft shadow, navy bar that slides in on hover (the website's service cards) */
.card {
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card::before {
  inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; z-index: 1;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.tile:hover, .job:hover, .car-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* top bar: navy, like the website's navigation */
.topbar {
  background: var(--topbar-bg); border-bottom: 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); padding: 8px 28px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  --ink: #ffffff; --ink-2: rgba(255, 255, 255, 0.85); --muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.22); --border-strong: rgba(255, 255, 255, 0.4);
  --surface-2: rgba(255, 255, 255, 0.1); --surface-3: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.brand { gap: 14px; font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: 0.01em; }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.25); }
.brand small { font-family: var(--font-sub); font-weight: 400; color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.3); letter-spacing: 0.08em; }
.nav { border: 0; background: transparent; gap: 6px; padding: 0; }
.nav a {
  font-family: var(--font-sub); font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.85);
  padding: 7px 18px; border-radius: 8px; letter-spacing: 0.02em; transition: all 0.3s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); border-radius: 50px; }
.top-actions > a.muted {
  font-family: var(--font-sub); color: #fff; padding: 6px 18px; border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); transition: all 0.3s ease;
}
.top-actions > a.muted:hover { background: #fff; color: #103157; }
.pill { font-family: var(--font-sub); letter-spacing: 0.02em; }
.topbar .pill.running .dot { background: #fff; color: #fff; }
.icon-btn { border-radius: 50%; }
.run-control select { border-radius: 50px 0 0 50px; padding: 0 12px 0 16px; }
.topbar select option { color: #103157; background: #fff; }
.topbar .btn-play { background: #fff; color: #103157; box-shadow: none; border-radius: 0 50px 50px 0; }
.topbar .btn-play:hover { background: var(--aft-ice); filter: none; }

/* buttons: pill-shaped, Ramabhadra, navy gradient */
.btn, .btn-play, .login .submit, .seg button, .linklike { font-family: var(--font-sub); letter-spacing: 0.02em; }
.btn { border-radius: 50px; padding: 0 18px; font-weight: 400; transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-play, .login .submit { background: var(--aft-grad); color: #fff; border-color: transparent; font-weight: 400; box-shadow: var(--glow); }
.btn-primary:hover, .login .submit:hover { background: var(--aft-grad); filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.job .btn-play { border-radius: 50px; }
.login .submit { border-radius: 50px; height: 46px; font-size: 15px; }

/* hero: the website's navy gradient banner with a faint ring */
.hero.card {
  background: var(--aft-grad); border: 0; overflow: hidden; color: #fff;
  --ink: #ffffff; --ink-2: rgba(255, 255, 255, 0.82); --muted: rgba(255, 255, 255, 0.62); --heading: #ffffff;
  --border: rgba(255, 255, 255, 0.2); --border-strong: rgba(255, 255, 255, 0.4);
  --surface-2: rgba(255, 255, 255, 0.1); --surface-3: rgba(255, 255, 255, 0.16); --surface-solid: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.2); --accent: #e7f0ff; --accent-2: #8d9cb9; --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #ffffff, #e7f0ff); --grad-text: linear-gradient(100deg, #ffffff, #c9d2de);
}
.hero.card::before { display: none; }
.hero::after {
  inset: auto -120px -160px auto; width: 460px; height: 460px; border-radius: 50%;
  background: none; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.02);
}
.hero h1 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.eyebrow { text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.1em; }
.hero .pnode.active .orb { color: #103157; }
.hero .pnode b { font-family: var(--font-sub); font-weight: 400; letter-spacing: 0.02em; }
.hero .plink.done { background: rgba(255, 255, 255, 0.5); }

/* full width: use the whole screen, with the same side gutter as the top bar */
main { max-width: none; }
@media (min-width: 641px) { main { padding-left: 32px; padding-right: 32px; } }

/* RFI / RFQ / RFP tags: same brand blues as the charts, filled so the pale one stays readable */
.doctag.rfi { background: var(--s1); border-color: var(--s1); color: #fff; }
.doctag.rfq { background: var(--s2); border-color: var(--s2); color: #fff; }
.doctag.rfp { background: var(--s3); border-color: var(--s3); color: #0b2340; }
:root:not([data-theme="light"]) .doctag.rfi { color: #0b2340; }
:root:not([data-theme="light"]) .doctag.rfq { color: #0b2340; }
:root:not([data-theme="light"]) .doctag.rfp { color: #fff; }

/* things that were hard-coded purple in style.css */
.pill.running, .chip-filter, .fchip.on, .code.hit { border-color: var(--accent-line); }
.topbar .pill.running { border-color: rgba(255, 255, 255, 0.5); }
.step.active .step-icon { box-shadow: 0 0 0 4px var(--accent-wash); }
.plink.done { background: var(--accent-line); }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 30px 4px rgba(231, 240, 255, 0.45); } }

/* inputs */
.toolbar input[type="search"], .toolbar select, .seg { border-radius: 50px; }
.seg button { border-radius: 50px; }

/* login: navy page, logo on a navy band at the top of the card */
.login-wrap { background: var(--aft-grad); }
.login .brand-badge { display: grid; place-items: center; padding: 22px; margin: -32px -32px 22px; border-radius: var(--radius) var(--radius) 0 0; background: #103157; }
.login .brand-logo { height: 96px; width: auto; }
.login h1 .grad { animation: none; }

/* Admin "Agents": one premium card per agent, stacked so nothing is squeezed in the side column */
.jobs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.jobs .job {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 18px 16px;
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 1px 2px rgba(16, 49, 87, 0.04), 0 6px 18px -10px rgba(16, 49, 87, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.jobs .job::before {  /* the website's gradient top bar, slides in on hover */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aft-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.jobs .job:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.jobs .job:hover::before, .jobs .job.is-running::before { transform: scaleX(1); }
.job-top { display: flex; align-items: flex-start; gap: 14px; }
.jobs .job-icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--aft-grad); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(16, 49, 87, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.jobs .job-icon svg { width: 21px; height: 21px; }
.job-title { min-width: 0; }
.jobs .job h3 { font-family: var(--font-heading); font-size: 16.5px; font-weight: 700; color: var(--heading); line-height: 1.25; margin: 2px 0 7px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.job-tags span {
  font-family: var(--font-sub); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 50px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
:root:not([data-theme="light"]) .job-tags span { background: var(--accent-wash); }
.jobs .job-text { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.job-last {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--surface-3); color: var(--ink-2); font-size: 12.5px;
}
:root:not([data-theme="light"]) .job-last { background: var(--accent-wash); }
.job-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.job-last.good .job-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); }
.job-last.warn .job-dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.job-last.bad .job-dot { background: var(--crit-ink, #d03b3b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit-ink, #d03b3b) 18%, transparent); }
.job-last.running .job-dot { background: var(--accent-2); animation: jobPulse 1.4s ease-in-out infinite; }
.job-last.none { color: var(--muted); }
.job-metric { margin-left: auto; color: var(--muted); white-space: nowrap; }
.job-metric b { color: var(--heading); font-weight: 700; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.job-days { display: inline-flex; align-items: center; gap: 6px; }
.job-days-label, .job-days-unit { font-size: 12.5px; color: var(--muted); }
.job-days-label { margin-right: 2px; }
.job-days .step-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--heading); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.job-days .step-btn:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.job-days .step-btn:active { transform: scale(0.92); }
.job-days input {
  width: 46px; height: 32px; text-align: center; border: 1px solid var(--border); border-radius: 50px; background: var(--surface);
  color: var(--heading); font-family: var(--font-heading); font-weight: 700; font-size: 15px; padding: 0; -moz-appearance: textfield;
}
.job-days input::-webkit-outer-spin-button, .job-days input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.job-days input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.jobs .btn-play { height: 40px; padding: 0 22px 0 18px; border-radius: 50px; font-size: 14px; gap: 8px; }
.jobs .btn-play .spinner { width: 13px; height: 13px; }
.jobs .job.is-running { border-color: var(--accent-line); }
.jobs .job.is-running::after {  /* soft light sweeping across the running agent */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--accent-wash) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: jobSweep 2.4s linear infinite;
}
@keyframes jobPulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 25%, transparent); } }
@keyframes jobSweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .jobs .job.is-running::after, .job-last.running .job-dot { animation: none; }
}

/* results: filters as a left sidebar, table on the right */
.results-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.results-layout:has(.filters.closed) { grid-template-columns: minmax(0, 1fr); }
.results-main { min-width: 0; }
.results-layout > .filters {
  margin: 0; padding: 14px 12px 14px 16px; border-radius: 12px; background: var(--surface-2);
  position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin;
}
.results-layout > .filters.closed { position: static; max-height: none; padding: 10px 16px; }
.results-layout .filters-head { align-items: flex-start; flex-wrap: nowrap; }
.results-layout .filters-head h3 { font-family: var(--font-heading); font-size: 16px; color: var(--heading); line-height: 1.3; }
.results-layout .filters-head h3 .sub { font-family: var(--font-body); font-size: 12px; }
.results-layout .filters-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
.results-layout .filters-actions .btn { height: 28px; padding: 0 12px; font-size: 12px; }
.results-layout .filters-body { gap: 4px; }
.results-layout .fblock { gap: 0; }
.results-layout .fblock + .fblock { margin-top: 6px; padding-top: 10px; }
.results-layout .fblock-label { font-family: var(--font-sub); font-size: 11.5px; letter-spacing: 0.08em; margin-bottom: 4px; }
.results-layout .fblock-label span { display: block; margin: 2px 0 0; font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.results-layout .fgroup { padding: 10px 0 8px; }
.results-layout .fgroup + .fgroup { border-top: 1px solid var(--border); }
.results-layout .fgroup-head { margin-bottom: 4px; align-items: center; gap: 8px; }
.results-layout .fgroup-head h4 { font-size: 13px; font-weight: 700; color: var(--heading); }
.results-layout .fchips { flex-direction: column; flex-wrap: nowrap; gap: 1px; }
.results-layout .fchip {
  width: 100%; height: auto; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 8px;
  background: transparent; text-align: left; justify-content: flex-start; transform: none;
}
.results-layout .fchip:hover { background: var(--surface-3); transform: none; }
.results-layout .fchip.on { background: transparent; }
.results-layout .fchip.on:hover { background: var(--surface-3); }
.results-layout .fchip .box { flex: none; }
.results-layout .fchip .note { white-space: nowrap; }
.results-layout .fchip b { margin-left: auto; padding-left: 8px; font-size: 12px; }
.results-main > .toolbar { margin-bottom: 12px; }
@media (max-width: 1200px) {
  .results-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .results-layout > .filters { position: static; max-height: none; }
  .results-layout .fchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ---------- Admin "Team" card: a deep-navy premium panel in both themes ---------- */
.card[aria-labelledby="team-h"] {
  --ink: #eef3fa; --ink-2: #c3cfe0; --muted: #93a5c0; --heading: #ffffff;
  --border: rgba(201, 210, 222, 0.14); --border-strong: rgba(188, 210, 255, 0.34);
  --surface-solid: #0f2744; --surface-2: rgba(255, 255, 255, 0.05); --surface-3: rgba(255, 255, 255, 0.1);
  --accent: #8fb0e6; --accent-2: #e7f0ff; --accent-strong: #8d9cb9; --accent-ink: #bcd2ff;
  --accent-wash: rgba(143, 176, 230, 0.18); --accent-line: rgba(188, 210, 255, 0.5);
  --crit-ink: #ff9d9d;
  --pm-hairline: rgba(231, 240, 255, 0.09); --pm-btn-hi: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
  overflow: hidden; padding: 22px 22px 20px; color: var(--ink-2);
  border: 1px solid rgba(141, 156, 185, 0.3);
  background:
    radial-gradient(520px 260px at 105% -10%, rgba(81, 105, 147, 0.5), transparent 70%),
    radial-gradient(460px 260px at -10% 110%, rgba(26, 74, 122, 0.6), transparent 70%),
    linear-gradient(160deg, #071629 0%, #0c2442 52%, #11335a 100%);
  box-shadow: 0 20px 46px -20px rgba(4, 14, 28, 0.8), inset 0 1px 0 rgba(231, 240, 255, 0.1);
}
.card[aria-labelledby="team-h"]:hover {
  border-color: rgba(188, 210, 255, 0.38);
  box-shadow: 0 26px 56px -20px rgba(4, 14, 28, 0.9), inset 0 1px 0 rgba(231, 240, 255, 0.14);
}
.card[aria-labelledby="team-h"]::before { background: linear-gradient(90deg, #8d9cb9, #e7f0ff); }
/* faint rings in the corner, like the website's banner */
.card[aria-labelledby="team-h"]::after {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -120px; top: -150px;
  border-radius: 50%; border: 1px solid rgba(231, 240, 255, 0.09); pointer-events: none;
  box-shadow: 0 0 0 34px rgba(231, 240, 255, 0.025), 0 0 0 70px rgba(231, 240, 255, 0.015);
}
.card[aria-labelledby="team-h"] .card-head h2 { color: #fff; }
.card[aria-labelledby="team-h"] .card-head h2::after { background: linear-gradient(90deg, #8d9cb9, #e7f0ff); }
.card[aria-labelledby="team-h"] .card-head .sub { color: var(--muted); }

/* member rows: frosted glass tiles */
.card[aria-labelledby="team-h"] .team-list { gap: 10px; margin-bottom: 20px; }
.card[aria-labelledby="team-h"] .team-row {
  gap: 10px 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(201, 210, 222, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(231, 240, 255, 0.07), 0 10px 22px -16px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.card[aria-labelledby="team-h"] .team-row:hover {
  border-color: rgba(188, 210, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}
.card[aria-labelledby="team-h"] .team-row .who-av {
  width: 40px; height: 40px; font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  color: #fff; background: linear-gradient(135deg, #516993 0%, #1a4a7a 100%);
  box-shadow: 0 0 0 2px #0c2442, 0 0 0 3.5px rgba(188, 210, 255, 0.45), 0 8px 16px -8px rgba(0, 0, 0, 0.8);
}
/* the owner row is always first: ice avatar and a lit left edge */
.card[aria-labelledby="team-h"] .team-row:first-child {
  border-color: rgba(188, 210, 255, 0.24);
  box-shadow: inset 3px 0 0 #bcd2ff, inset 0 1px 0 rgba(231, 240, 255, 0.08), 0 10px 22px -16px rgba(0, 0, 0, 0.7);
}
.card[aria-labelledby="team-h"] .team-row:first-child .who-av {
  color: #103157; font-size: 17px; background: linear-gradient(135deg, #ffffff 0%, #c9d8f2 100%);
}
.card[aria-labelledby="team-h"] .team-who b { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.card[aria-labelledby="team-h"] .team-who small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.card[aria-labelledby="team-h"] .role-tag {
  font-family: var(--font-sub); font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 11px; border-radius: 50px; color: #c3cfe0; border: 1px solid rgba(201, 210, 222, 0.25);
}
.card[aria-labelledby="team-h"] .role-tag.admin {
  color: #103157; border-color: transparent; background: linear-gradient(135deg, #ffffff 0%, #bcd2ff 100%);
  box-shadow: 0 4px 12px -6px rgba(188, 210, 255, 0.7);
}

/* row controls: glass pills */
.card[aria-labelledby="team-h"] select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bcd2ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px;
}
.card[aria-labelledby="team-h"] select option { background: #0f2744; color: #eef3fa; }
.card[aria-labelledby="team-h"] select:disabled { opacity: 0.55; cursor: not-allowed; }
.card[aria-labelledby="team-h"] .team-actions { gap: 8px; }
.card[aria-labelledby="team-h"] .team-actions select {
  height: 32px; padding: 0 30px 0 14px; border-radius: 50px; border: 1px solid rgba(201, 210, 222, 0.22);
  color: #e7f0ff; font-family: var(--font-sub); font-size: 12.5px; letter-spacing: 0.02em;
}
.card[aria-labelledby="team-h"] .team-actions select:hover:not(:disabled) { border-color: rgba(188, 210, 255, 0.5); }
.card[aria-labelledby="team-h"] .btn:not(.btn-primary) {
  height: 32px; padding: 0 15px; font-size: 12.5px; color: #e7f0ff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(201, 210, 222, 0.22); box-shadow: none;
}
.card[aria-labelledby="team-h"] .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.14); border-color: rgba(188, 210, 255, 0.5); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}
.card[aria-labelledby="team-h"] .btn.danger { color: #ff9d9d; border-color: rgba(255, 157, 157, 0.3); }
.card[aria-labelledby="team-h"] .btn.danger:hover { color: #ffc2c2; background: rgba(240, 113, 113, 0.16); border-color: rgba(255, 157, 157, 0.6); }
.card[aria-labelledby="team-h"] .team-reset { padding-top: 10px; margin-top: 2px; border-top: 1px solid rgba(201, 210, 222, 0.1); }
.card[aria-labelledby="team-h"] .team-reset input { height: 36px; border-radius: 50px; padding: 0 16px; }
.card[aria-labelledby="team-h"] .team-reset .btn { height: 36px; }
.card[aria-labelledby="team-h"] .team-empty { color: var(--muted); padding: 10px 4px; }

/* "Add a team member": a recessed panel */
.card[aria-labelledby="team-h"] .team-form {
  gap: 14px; padding: 18px; border: 1px solid rgba(201, 210, 222, 0.12); border-radius: 14px;
  background: rgba(3, 11, 22, 0.38); box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
}
.card[aria-labelledby="team-h"] .team-form h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sub); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; color: #bcd2ff;
}
.card[aria-labelledby="team-h"] .team-form h3::before {
  content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--font-heading); font-size: 16px; line-height: 1; color: #103157;
  background: linear-gradient(135deg, #ffffff 0%, #bcd2ff 100%);
}
.card[aria-labelledby="team-h"] .team-grid { gap: 12px; }
.card[aria-labelledby="team-h"] .team-form label {
  gap: 6px; font-family: var(--font-sub); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.card[aria-labelledby="team-h"] .team-form input,
.card[aria-labelledby="team-h"] .team-form select,
.card[aria-labelledby="team-h"] .team-reset input {
  height: 40px; border-radius: 10px; border: 1px solid rgba(201, 210, 222, 0.18);
  background-color: rgba(255, 255, 255, 0.05); color: #fff;
  font-family: var(--font-body); font-size: 13.5px; text-transform: none; letter-spacing: 0;
}
.card[aria-labelledby="team-h"] .team-form select { padding-right: 32px; }
.card[aria-labelledby="team-h"] .team-form input:hover,
.card[aria-labelledby="team-h"] .team-form select:hover { border-color: rgba(188, 210, 255, 0.35); }
.card[aria-labelledby="team-h"] .team-form input:focus,
.card[aria-labelledby="team-h"] .team-form select:focus,
.card[aria-labelledby="team-h"] .team-reset input:focus {
  outline: none; border-color: #8fb0e6; background-color: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(143, 176, 230, 0.2);
}
.card[aria-labelledby="team-h"] input::placeholder { color: rgba(147, 165, 192, 0.75); }
.card[aria-labelledby="team-h"] input:-webkit-autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 40px #0f2744 inset; transition: background-color 9999s;
}
.card[aria-labelledby="team-h"] .team-form .err { color: #ff9d9d; }
.card[aria-labelledby="team-h"] .capture-actions { margin-top: 2px; gap: 14px; flex-wrap: wrap; }
.card[aria-labelledby="team-h"] .capture-actions .muted { color: var(--muted); font-size: 12.5px; }
/* primary on navy: white pill with navy text, like the run button in the top bar */
.card[aria-labelledby="team-h"] .btn-primary {
  height: 40px; padding: 0 22px; color: #103157; border-color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #dfe9fb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -10px rgba(0, 0, 0, 0.75);
}
.card[aria-labelledby="team-h"] .btn-primary:hover {
  background: #ffffff; filter: none; box-shadow: inset 0 1px 0 #fff, 0 14px 30px -10px rgba(188, 210, 255, 0.45);
}
.card[aria-labelledby="team-h"] .team-reset .btn-primary { height: 36px; padding: 0 18px; }
@media (prefers-reduced-motion: reduce) { .card[aria-labelledby="team-h"] .team-row { transition: none; } }

@media (max-width: 640px) {
  .topbar { padding: 8px 16px; }
  .brand-logo { height: 40px; }
  .brand { font-size: 17px; }
}
