/* ═════════════════════════════════════════════════════════════════════
   AristaMD Chile — Reseller Demo Hub  |  Authoritative Stylesheet v3
   ═════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens — Light Mode ── */
:root {
  --bg-page:       #f8fafc;
  --bg-card:       #ffffff;
  --bg-subtle:     #f1f5f9;
  --bg-header:     rgba(255,255,255,0.97);

  --border:        #cbd5e1;
  --border-light:  #e2e8f0;
  --border-hover:  #2a9d8f;

  --text-main:     #0f172a;
  --text-muted:    #334155;
  --text-subtle:   #64748b;

  --navy:          #132a45;
  --teal:          #2a9d8f;
  --teal-dark:     #218377;
  --teal-light:    #e6f7f5;
  --teal-glow:     rgba(42,157,143,0.20);

  --green-bg:      #dcfce7;
  --green-text:    #15803d;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-pill: 9999px;

  --sh-xs:  0 1px 2px rgba(0,0,0,0.05);
  --sh-sm:  0 2px 6px rgba(0,0,0,0.08);
  --sh-md:  0 4px 16px rgba(15,23,42,0.10);
  --sh-lg:  0 10px 32px rgba(15,23,42,0.14);

  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur:  0.18s;
}

/* ── Dark Mode Tokens ── */
[data-theme="dark"] {
  --bg-page:       #0b1726;
  --bg-card:       #132438;
  --bg-subtle:     #1a2f47;
  --bg-header:     rgba(11,23,38,0.97);

  --border:        #2e4766;
  --border-light:  #243954;
  --border-hover:  #7ee8df;

  --text-main:     #f1f5f9;
  --text-muted:    #cbd5e1;
  --text-subtle:   #94a3b8;

  --teal-light:    rgba(42,157,143,0.22);

  --green-bg:      rgba(16,185,129,0.18);
  --green-text:    #34d399;

  --sh-xs: 0 1px 2px rgba(0,0,0,0.4);
  --sh-sm: 0 2px 6px rgba(0,0,0,0.4);
  --sh-md: 0 4px 16px rgba(0,0,0,0.38);
  --sh-lg: 0 10px 32px rgba(0,0,0,0.58);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-muted);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}
a { color: var(--teal); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ═══════════════════════════════════════
   HEADER  — sticky, frosted
   ═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--sh-xs);
}

/* Single flex row: brand LEFT, controls RIGHT */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.6rem 0;
  gap: 2.5rem;        /* generous gap between left and right clusters */
  flex-wrap: nowrap;  /* NEVER wrap on desktop */
}

/* ── Left cluster: logo + name + pipe + badge ── */
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;     /* never squash the brand */
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.brand-accent { color: var(--teal); }

/* Pipe separator — styled as a faint vertical rule */
.pipe {
  width: 1.5px;
  height: 22px;
  background: var(--border);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Hub label badge */
.hub-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: var(--teal-light);
  border: 1.5px solid rgba(42,157,143,0.38);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Right cluster: lang + nav links + theme ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Language pill — styled segmented control */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.lang-btn:hover:not(.active) { color: var(--text-main); }
.lang-btn.active {
  background: var(--navy);
  color: #fff !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
}
[data-theme="dark"] .lang-btn.active {
  background: var(--teal);
  color: #0b1726 !important;
}

/* ── Shared button base ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.52rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--r-md);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.79rem;
  border-radius: var(--r-sm);
}
.btn-primary {
  background: var(--teal);
  color: #fff !important;
  border-color: var(--teal-dark);
  box-shadow: 0 2px 8px var(--teal-glow);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--teal-glow);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border-color: var(--border);
  box-shadow: var(--sh-xs);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--teal);
  color: var(--teal) !important;
}

/* Theme circle toggle */
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-btn:hover { border-color: var(--teal); background: var(--teal-light); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1.5px solid var(--border);
  background: linear-gradient(175deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
}
.hero-inner { max-width: 820px; }

.kpi-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.36rem 0.9rem;
  box-shadow: var(--sh-xs);
  white-space: nowrap;
}
.kpi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px rgba(16,185,129,0.55);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}
.hero-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Hero CTA row — explicit flex with visible gap and border on both buttons */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   SECTION WRAPPER
   ═══════════════════════════════════════ */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--bg-subtle);
  border-top: 1.5px solid var(--border);
}
.section-label {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 1.85rem;
}

/* ═══════════════════════════════════════
   DEMO CARDS
   ═══════════════════════════════════════ */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--sh-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.demo-card:hover {
  border-color: var(--teal);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-text);
  background: var(--green-bg);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.7rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.card-desc {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Audience box */
.audience-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  margin-top: auto;
  margin-bottom: 1.35rem;
}
.audience-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  flex-shrink: 0;
}
.audience-value {
  font-weight: 600;
  color: var(--text-muted);
}

/* ── 2-row card action grid ──
   THIS IS THE CRITICAL LAYOUT BLOCK.
   .card-actions is a column flex container.
   Each .action-row is a 2-column grid.
   Each .abt is a styled button/link filling its grid cell.
   ─────────────────────────────────────────── */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1.5px solid var(--border);
  width: 100%;
  margin-top: auto;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  width: 100%;
}

/* Base action button — every .abt is an explicit block-level flex item */
.abt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-md);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

/* Variant: primary (teal) — open demo */
.abt-primary {
  background: var(--teal);
  color: #ffffff;
  border: 1px solid var(--teal-dark);
  box-shadow: 0 2px 6px var(--teal-glow);
}
.abt-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Variant: navy — view script */
.abt-navy {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid #0c1e33;
}
.abt-navy:hover {
  background: #0c1e33;
  transform: translateY(-1px);
}

/* Variant: outline — copy / download */
.abt-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border);
}
.abt-outline:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

/* Focus accessibility */
.abt:focus-visible,
.btn:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════
   RESELLER TOOLS SECTION
   ═══════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--sh-sm);
}
.tool-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

/* 5-min sequence list */
.seq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.seq-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-main);
  font-weight: 500;
}
.seq-badge {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid rgba(42,157,143,0.35);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Script doc reference list */
.script-refs-wrap {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1.5px solid var(--border);
}
.script-refs-label {
  display: block;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}
.script-refs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.script-ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.8rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.script-ref-item:hover { border-color: var(--teal); background: var(--bg-card); }
.ref-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.58rem;
  font-size: 0.78rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }


/* ─── Talking points ─── */
.tp-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tp-card {
  display: block;
  padding: 0.75rem 0.9rem 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-sm);
}
.tp-title {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.tp-icon { color: var(--teal); font-size: 0.68rem; }
.tp-body {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ═══════════════════════════════════════
   SCRIPT MODAL
   ═══════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,23,38,0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform var(--dur) var(--ease);
}
.modal-backdrop.open .modal-box { transform: scale(1); }

.modal-hd {
  padding: 1.1rem 1.4rem;
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-hd-title { font-size: 1.05rem; font-weight: 800; color: var(--text-main); }
.modal-close {
  font-size: 1.45rem;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.18rem 0.48rem;
  border-radius: var(--r-sm);
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover { background: var(--border); color: var(--text-main); }

.modal-bd {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.modal-ft {
  padding: 0.9rem 1.4rem;
  border-top: 1.5px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-ft-note { font-size: 0.76rem; color: var(--text-subtle); }

/* ═══════════════════════════════════════
   FOOTER — two clear rows separated by <hr>
   ═══════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1.5px solid var(--border);
  padding: 2.25rem 0;
  background: var(--bg-page);
  font-size: 0.84rem;
  color: var(--text-subtle);
}

/* Row 1: brand cluster LEFT, external link RIGHT */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Horizontal divider between footer rows */
.footer-rule {
  border: 0;
  height: 1.5px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

/* Row 2: tagline LEFT, copyright RIGHT */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.81rem;
}

.footer-note { color: var(--text-muted); font-weight: 500; }
.footer-copy { color: var(--text-subtle); }

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: #0f172a;
  color: #fff;
  border-left: 4px solid var(--teal);
  border-radius: var(--r-md);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  pointer-events: auto;
  animation: toast-in 0.18s var(--ease) forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ─ 960px: stack the 2-col grids to 1-col
   ─ 480px: mobile-only stacking, never collapse header on typical laptop
   ═══════════════════════════════════════ */
@media (max-width: 960px) {
  .demos-grid  { grid-template-columns: 1fr; }
  .tools-grid  { grid-template-columns: 1fr; }
}

/* Only apply full-stack layout on genuine small screens (phones) */
@media (max-width: 480px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    min-height: unset;
    padding: 0.85rem 0;
  }
  .nav-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn { width: 100%; }
  .action-row { grid-template-columns: 1fr; }
  .footer-top    { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════
   SPEC-CONTRACT CLASS ALIASES
   PROJECT_CONTEXT.md and AGENTS.md specify:
     • .card-action-grid  — 2-row card action grid container
   Both names must resolve to identical layout rules.
   ═══════════════════════════════════════ */

/* Card action grid — spec alias forwards to .card-actions rules */
.card-action-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1.5px solid var(--border);
  width: 100%;
  margin-top: auto;
}


/* ═══════════════════════════════════════
   LEGACY CSS VARIABLE ALIASES
   JS openScriptModal() inline styles reference old token names from a
   prior stylesheet revision. These :root aliases forward them to current
   tokens so the modal body renders correctly.
   ═══════════════════════════════════════ */
:root {
  --border-color: var(--border);
  --brand-teal:   var(--teal);
  --radius-md:    var(--r-md);
}

