/* L14-A: content on the front plane; geometry/material/theme remain upstream. */
.agent-card-content {
  --content-safe: 23px;
  --content-text: #233b59;
  position: absolute; inset: var(--content-safe);
  color: var(--content-text); font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}
.agent-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-card-meta,.agent-card-status {
  font-size: 10px; line-height: 14px; font-weight: 550; letter-spacing: .075em;
  color: #304d70; text-shadow: 0 1px 1px rgba(244,251,255,.65);
}
.agent-card-status { display: inline-flex; align-items: center; gap: 5px; }
.agent-card-status::before {
  content: ""; width: 4px; height: 4px; flex: none; border-radius: 50%;
  background: #22bd81; box-shadow: 0 0 0 1px rgba(17,97,66,.13);
}
.agent-card-title {
  margin: 14px 0 0; font-size: 20px; line-height: 25px;
  font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: color-mix(in srgb, rgb(var(--agent-secondary)) 52%, #193253);
  text-shadow: 0 1px 1px rgba(246,251,255,.55);
}
.agent-card-description {
  position: absolute; left: 142px; right: 0; top: 73px;
  margin: 0; font-size: 12.5px; line-height: 19px; font-weight: 450;
  text-shadow: 0 1px 1px rgba(245,251,255,.7);
  background: radial-gradient(ellipse at center, rgba(231,244,253,.2), transparent 83%);
  overflow-wrap: normal; hyphens: none;
}
.agent-card-cta {
  position: absolute; left: 142px; right: auto; top: 169px; bottom: auto;
  width: 118px; height: 30px; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, rgb(var(--agent-secondary)) 22%, #e8f7ff);
  padding: 0 10px; background: transparent; border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(246,253,255,.28);
  font-family: inherit; opacity: 1; appearance: none;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 26px; color: var(--content-text); font-size: 13px; line-height: 20px;
  font-weight: 500; text-decoration: none; pointer-events: none;
  text-shadow: 0 1px 1px rgba(245,251,255,.55);
}
.agent-card-cta span { color: rgb(var(--agent-secondary)); font-size: 17px; }
.time-night .agent-card-description {
  background: radial-gradient(ellipse at center, rgba(231,244,253,.4) 45%, transparent 100%);
  text-shadow: 0 0 2px rgba(245,251,255,.85), 0 1px 1px rgba(245,251,255,.7);
}
/* Shorter central copy permits a slightly closer CTA within the same safe area. */
.agent-card-shell[data-side="center"] .agent-card-cta { top: 134px; }

/* Explorer optical material: shared logo-family rim, independent of agent hue.
   Compact navigation arrows keep their existing borderless treatment. */
.agent-card-shell:not([data-card-mode="compact"]) .agent-card-cta {
  border-color: rgba(237, 248, 255, .82);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.34), transparent 61%),
    linear-gradient(115deg, rgba(236,247,255,.13), rgba(64,111,255,.055) 48%, rgba(111,73,231,.09));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.68),
    inset 0 -1px 2px rgba(73,95,221,.16),
    0 0 3px rgba(239,249,255,.36),
    -2px 1px 7px rgba(39,102,247,.16),
    2px 1px 8px rgba(105,66,218,.13);
}
.agent-card-shell:not([data-card-mode="compact"]) .agent-card-content-grid > .agent-card-cta {
  position: relative;
  inset: auto;
}
.agent-card-shell:not([data-card-mode="compact"]) .agent-card-cta::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(115deg,
    #ffffff 0%, #e8f7ff 12%, #618cff 29%,
    #f5fbff 43%, #eaf6ff 57%, #997bef 77%, #ffffff 92%, #bdd5ff 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
