/* =========================================================================
   A!thera Partners — shared stylesheet
   Visual system: athera-branding/references/visual-system.md
   ========================================================================= */

:root {
  /* Primary palette */
  --athera-blue: #5FB8D6;
  --athera-blue-light: #A8D9EC;
  --athera-blue-deep: #2A8FB0;
  --athera-charcoal: #374151;
  --athera-charcoal-light: #4B5563;
  --athera-grey: #6B7280;
  --athera-grey-light: #9CA3AF;
  --athera-navy: #0F172A;
  --athera-navy-mid: #1E2B42;

  /* Surfaces */
  --athera-white: #FFFFFF;
  --athera-off-white: #F8F7F4;
  --athera-surface: #F1EEE8;

  /* Extended */
  --athera-amber: #C8955A;
  --athera-amber-light: #E8C49A;
  --athera-steel: #8AA5BE;
  --athera-mist: #D4DFE8;

  /* Lines */
  --athera-line: rgba(55, 65, 81, 0.12);
  --athera-line-light: rgba(55, 65, 81, 0.06);
  --athera-line-dark: rgba(255, 255, 255, 0.08);
  --athera-line-dark-light: rgba(255, 255, 255, 0.06);

  /* Typography */
  --athera-display: 'Cormorant Garamond', Georgia, serif;
  --athera-sans: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --athera-mono: 'DM Mono', 'Consolas', 'Monaco', monospace;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--athera-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--athera-charcoal);
  background: var(--athera-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--athera-blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--athera-charcoal); }

img { max-width: 100%; display: block; }

/* =========================================================================
   Type scale
   ========================================================================= */

.athera-display-xl { font-family: var(--athera-display); font-size: clamp(64px, 9vw, 120px); font-weight: 300; line-height: 0.95; letter-spacing: -0.02em; }
.athera-display-lg { font-family: var(--athera-display); font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.0;  letter-spacing: -0.015em; }
.athera-display-md { font-family: var(--athera-display); font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.1;  letter-spacing: -0.01em; }
.athera-display-sm { font-family: var(--athera-display); font-size: clamp(20px, 3vw, 32px); font-weight: 400; line-height: 1.2; }

.athera-body-lg { font-size: 18px; font-weight: 300; line-height: 1.7;  color: var(--athera-charcoal-light); }
.athera-body    { font-size: 15px; font-weight: 400; line-height: 1.65; color: var(--athera-charcoal); }
.athera-body-sm { font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--athera-grey); }

.athera-label       { font-family: var(--athera-sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--athera-grey); }
.athera-label-blue  { font-family: var(--athera-sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--athera-blue-deep); }
.athera-mono        { font-family: var(--athera-mono); font-size: 11px; font-weight: 400; line-height: 1.6; color: var(--athera-grey-light); }

h1, h2, h3, h4 { margin: 0; font-weight: 300; color: var(--athera-charcoal); }
p { margin: 0; }

/* =========================================================================
   Layout shell
   ========================================================================= */

.athera-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.athera-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 720px) {
  .athera-container { padding: 0 24px; }
}

/* =========================================================================
   Shared topbar (A!thera Partners)
   Used on both the landing page and the admin dashboard.
   ========================================================================= */

.site-topbar {
  border-bottom: 1px solid var(--athera-line);
  background: transparent;
}
.site-topbar .athera-container {
  max-width: 1600px;
}
.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 32px;
  gap: 24px;
}
.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  line-height: 0;
  text-decoration: none;
}
.site-wordmark img.site-logo-athera {
  height: 44px;
  width: auto;
  display: block;
}
.site-topbar-meta {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
@media (max-width: 880px) {
  .site-wordmark { gap: 22px; }
  .site-wordmark img.site-logo-athera { height: 38px; }
  .site-topbar-meta { display: none; }
}

/* Header ----------------------------------------------------------------- */

.athera-header {
  border-bottom: 1px solid var(--athera-line);
  background: var(--athera-off-white);
}

.athera-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.athera-wordmark {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.athera-wordmark .a-bang { color: var(--athera-blue); }
.athera-wordmark-partners {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--athera-grey);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 2px;
  align-self: center;
  transform: translateY(-2px);
}

.athera-header-context {
  display: flex;
  align-items: center;
  gap: 16px;
}
.athera-header-divider {
  width: 1px;
  height: 14px;
  background: var(--athera-line);
}
.athera-client-mark {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--athera-charcoal);
}
.athera-client-mark .client-prefix {
  color: var(--athera-grey);
  font-weight: 400;
  margin-right: 8px;
}

/* Main ------------------------------------------------------------------- */

.athera-main {
  flex: 1 0 auto;
  padding: 80px 0 120px;
}

/* Section opener --------------------------------------------------------- */

.athera-section-opener {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.athera-section-opener .section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.athera-section-opener .section-number {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.athera-blue-rule {
  width: 48px;
  height: 1px;
  background: var(--athera-blue);
  margin: 24px 0 0;
}

/* Cards ------------------------------------------------------------------ */

.athera-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 32px;
}

.athera-card-dark {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--athera-line-dark);
  border-radius: 4px;
  padding: 32px;
}

/* Buttons ---------------------------------------------------------------- */

.athera-button-primary,
.athera-button-secondary {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.athera-button-primary {
  background: var(--athera-navy);
  color: var(--athera-white);
  border: 1px solid var(--athera-navy);
}
.athera-button-primary:hover { background: var(--athera-navy-mid); border-color: var(--athera-navy-mid); }

.athera-button-secondary {
  background: transparent;
  color: var(--athera-charcoal);
  border: 1px solid var(--athera-line);
}
.athera-button-secondary:hover { background: var(--athera-white); border-color: var(--athera-charcoal); }

/* Footer ----------------------------------------------------------------- */

.athera-footer {
  border-top: 1px solid var(--athera-line);
  background: var(--athera-off-white);
  padding: 32px 0;
}
.athera-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.athera-footer-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--athera-sans);
  font-size: 11px;
  color: var(--athera-grey);
  letter-spacing: 0.04em;
}
.athera-footer-signature .by {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}
.athera-footer-signature .mark {
  font-family: var(--athera-display);
  font-size: 16px;
  font-weight: 300;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
}
.athera-footer-signature .mark .a-bang { color: var(--athera-blue); }
.athera-footer-meta {
  font-family: var(--athera-mono);
  font-size: 10px;
  color: var(--athera-grey-light);
  letter-spacing: 0.06em;
}

/* =========================================================================
   Landing-specific placeholder
   ========================================================================= */

.athera-hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (min-width: 980px) {
  .athera-hero-stack { grid-template-columns: 1.05fr 0.95fr; gap: 96px; }
}

.athera-placeholder-frame {
  border: 1px dashed var(--athera-line);
  border-radius: 4px;
  padding: 48px;
  background: var(--athera-white);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--athera-grey-light);
  font-family: var(--athera-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================================
   Admin dashboard (A!thera Partners internal view)
   Branded as A!thera Partners — navy header, off-white body.
   ========================================================================= */

:root {
  /* Tier colors — derived from the A!thera palette, restrained */
  --tier-high: #6F9A77;       /* sage green for High Intent */
  --tier-high-soft: #E2ECDF;
  --tier-warm: #C8955A;       /* A!thera amber */
  --tier-warm-soft: #F1E2CC;
  --tier-cool: #5FB8D6;       /* A!thera blue */
  --tier-cool-soft: #DDEEF5;
  --tier-low: #9CA3AF;        /* A!thera grey-light */
  --tier-low-soft: #E5E7EB;

  --admin-row-bg: #FFFFFF;
  --admin-bg: #F8F7F4;
  --admin-page-pad: 56px;
}

body.admin-body {
  background: var(--admin-bg);
  color: var(--athera-charcoal);
  font-family: var(--athera-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* Header bar (navy, full width) ----------------------------------------- */

.admin-header {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--athera-line-dark);
}
.admin-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 18px var(--admin-page-pad);
}
.admin-header-left { justify-self: start; }
.admin-header-center { justify-self: center; display: flex; align-items: center; gap: 16px; }
.admin-header-right { justify-self: end; display: flex; align-items: center; gap: 16px; }

.admin-wordmark {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.admin-wordmark .a-bang { color: var(--athera-blue); }
.admin-wordmark-partners {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-left: 4px;
  align-self: center;
  transform: translateY(-3px);
}

.admin-header-label {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.admin-header-divider {
  font-family: var(--athera-display);
  color: rgba(255, 255, 255, 0.35);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.admin-header-client {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-clock {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.admin-refresh-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.admin-refresh-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.4); }
.admin-refresh-btn.is-refreshing { color: rgba(255, 255, 255, 0.55); }
.admin-refresh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--athera-blue);
  box-shadow: 0 0 0 0 rgba(95, 184, 214, 0.6);
  animation: admin-pulse-dot 2.4s ease-out infinite;
}
@keyframes admin-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(95, 184, 214, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(95, 184, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 184, 214, 0); }
}

@media (max-width: 1080px) {
  .admin-header-inner { grid-template-columns: auto 1fr; }
  .admin-header-center { display: none; }
}

/* Main column ----------------------------------------------------------- */

.admin-main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px var(--admin-page-pad) 80px;
}

/* KPI strip ------------------------------------------------------------- */

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 1080px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin-kpi {
  position: relative;
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 22px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  justify-content: space-between;
}
.admin-kpi-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-kpi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.admin-kpi-dot--high { background: var(--tier-high); }
.admin-kpi-value {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--athera-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.admin-kpi-unit {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.admin-kpi-sub {
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--athera-grey);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-kpi-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--athera-grey-light);
  font-family: var(--athera-display);
  font-style: italic;
  font-size: 10px;
  color: var(--athera-grey-light);
  cursor: help;
}
.admin-kpi[data-tooltip] { cursor: help; }
.admin-kpi[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: 260px;
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 16px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}
.admin-kpi[data-tooltip]:hover::after { opacity: 1; }

/* Board ----------------------------------------------------------------- */

.admin-board { margin-top: 4px; }
.admin-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--athera-line);
  margin-bottom: 18px;
}
.admin-section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.admin-section-number {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.admin-section-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.admin-board-title {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--athera-charcoal);
  margin: 0;
  max-width: 720px;
}
.admin-board-meta {
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.admin-sort-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.admin-sort-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.admin-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--athera-line);
  border-radius: 0;
  padding: 4px 18px 4px 2px;
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--athera-charcoal);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  outline: none;
}
.admin-sort-select:hover { border-bottom-color: rgba(55, 65, 81, 0.32); }
.admin-sort-select:focus-visible { border-bottom-color: var(--athera-blue-deep); }
.admin-sort-caret {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--athera-grey-light);
  pointer-events: none;
}
.admin-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.admin-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tier-high);
  box-shadow: 0 0 0 0 rgba(111, 154, 119, 0.55);
  animation: admin-pulse-dot 2.4s ease-out infinite;
}

/* Lead row -------------------------------------------------------------- */

.admin-board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--admin-row-bg);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 18px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 1s ease;
}
.admin-row:hover { border-color: rgba(55, 65, 81, 0.22); }
.admin-row.is-new {
  animation: admin-row-pulse 1.6s ease-out 1;
}
@keyframes admin-row-pulse {
  0%   { background: rgba(95, 184, 214, 0.18); border-color: var(--athera-blue); }
  100% { background: var(--admin-row-bg); border-color: var(--athera-line); }
}

.admin-row-left { min-width: 0; }
.admin-row-name {
  font-family: var(--athera-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--athera-charcoal);
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--athera-sans);
  font-size: 12px;
  color: var(--athera-grey);
  line-height: 1.5;
}
.admin-row-meta > span { display: inline-flex; align-items: center; }
.admin-row-meta > span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--athera-grey-light);
}
.admin-row-meta .admin-row-compound { color: var(--athera-charcoal-light); font-weight: 500; }
.admin-row-meta .admin-row-time { color: var(--athera-grey-light); font-family: var(--athera-mono); font-size: 11px; }

/* Score badge ----------------------------------------------------------- */

.admin-score-badge {
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--tier-low-soft);
  color: var(--athera-charcoal);
  padding: 12px 20px;
  min-width: 124px;
  border-radius: 4px;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  font-family: var(--athera-sans);
  line-height: 1;
}
.admin-score-badge:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}
.admin-score-badge:active { transform: translateY(-1px); }
.admin-score-num {
  font-family: var(--athera-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.admin-score-pct {
  font-family: var(--athera-sans);
  font-size: 14px;
  font-weight: 500;
  margin-left: 2px;
  opacity: 0.6;
}
.admin-score-tier {
  font-family: var(--athera-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 2px;
}

.admin-score-badge--high { background: var(--tier-high-soft); color: #355040; }
.admin-score-badge--high .admin-score-num { color: var(--tier-high); }
.admin-score-badge--warm { background: var(--tier-warm-soft); color: #6E4E22; }
.admin-score-badge--warm .admin-score-num { color: var(--tier-warm); }
.admin-score-badge--cool { background: var(--tier-cool-soft); color: var(--athera-blue-deep); }
.admin-score-badge--cool .admin-score-num { color: var(--athera-blue-deep); }
.admin-score-badge--low  { background: var(--tier-low-soft); color: var(--athera-grey); }
.admin-score-badge--low  .admin-score-num { color: var(--athera-grey); }

.admin-score-badge--lg { min-width: 160px; padding: 22px 28px; }
.admin-score-badge--lg .admin-score-num { font-size: 64px; }
.admin-score-badge--lg .admin-score-pct { font-size: 22px; }
.admin-score-badge--lg .admin-score-tier { font-size: 10px; margin-top: 6px; }

/* Empty state ----------------------------------------------------------- */

.admin-empty {
  text-align: center;
  padding: 96px 24px;
  background: var(--athera-white);
  border: 1px dashed var(--athera-line);
  border-radius: 4px;
}
.admin-empty-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--athera-blue);
  margin: 0 auto 24px;
  box-shadow: 0 0 0 0 rgba(95, 184, 214, 0.55);
  animation: admin-pulse-dot 2s ease-out infinite;
}
.admin-empty-text {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--athera-charcoal);
  margin: 0;
}
.admin-empty-sub {
  font-family: var(--athera-sans);
  font-size: 13px;
  color: var(--athera-grey);
  margin: 12px 0 0;
}

/* Footer ---------------------------------------------------------------- */

.admin-footer {
  border-top: 1px solid var(--athera-line);
  padding: 24px var(--admin-page-pad);
  background: var(--admin-bg);
}
.admin-footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.admin-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--athera-sans);
  font-size: 11px;
  color: var(--athera-grey);
  letter-spacing: 0.04em;
}
.admin-footer-mark {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 16px;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
}
.admin-footer-mark .a-bang { color: var(--athera-blue); }
.admin-footer-sep { color: var(--athera-grey-light); }
.admin-footer-meta {
  font-family: var(--athera-mono);
  font-size: 10px;
  color: var(--athera-grey-light);
  letter-spacing: 0.06em;
}
.admin-footer-right {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}

/* Reset button (bottom-right) ------------------------------------------- */

.admin-reset {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  appearance: none;
  background: var(--athera-white);
  color: var(--athera-grey);
  border: 1px solid var(--athera-line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.admin-reset:hover {
  color: var(--athera-charcoal);
  border-color: var(--athera-charcoal);
  background: var(--athera-white);
}
.admin-reset-icon {
  font-family: var(--athera-sans);
  font-size: 13px;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-0.5px);
}
.admin-reset.is-running .admin-reset-icon { animation: admin-spin 0.8s linear infinite; }
@keyframes admin-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Modal ----------------------------------------------------------------- */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: admin-fade 0.2s ease both;
}
.admin-modal-card {
  position: relative;
  background: var(--athera-white);
  border-radius: 4px;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 48px 56px 40px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  transform-origin: center;
  animation: admin-modal-in 0.2s cubic-bezier(0.2, 0, 0.2, 1) both;
}
@keyframes admin-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes admin-modal-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--athera-grey-light);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.admin-modal-close:hover { color: var(--athera-charcoal); background: var(--athera-off-white); }

.admin-modal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--athera-line);
  margin-bottom: 28px;
}
.admin-modal-headline { min-width: 0; }
.admin-modal-eyebrow {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.admin-modal-name {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--athera-charcoal);
  margin: 0 0 10px;
}
.admin-modal-contact {
  font-family: var(--athera-sans);
  font-size: 13px;
  color: var(--athera-grey);
  letter-spacing: 0.02em;
}
.admin-modal-sep { color: var(--athera-grey-light); margin: 0 8px; }

.admin-modal-action {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  background: rgba(95, 184, 214, 0.08);
  border-left: 2px solid var(--athera-blue);
  padding: 14px 20px;
  margin-bottom: 32px;
  border-radius: 2px;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .admin-modal-grid { grid-template-columns: 1fr; gap: 24px; }
  .admin-modal-card { padding: 36px 28px; }
  .admin-modal-head { grid-template-columns: 1fr; }
  .admin-modal-name { font-size: 30px; }
}

.admin-modal-block { margin-bottom: 28px; }
.admin-modal-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin-bottom: 14px;
}

.admin-modal-dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 10px;
  column-gap: 24px;
  font-family: var(--athera-sans);
  font-size: 14px;
}
.admin-modal-dl dt {
  color: var(--athera-grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}
.admin-modal-dl dd {
  margin: 0;
  color: var(--athera-charcoal);
  font-weight: 400;
}

.admin-modal-reasons,
.admin-modal-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-modal-reasons li,
.admin-modal-flags li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-family: var(--athera-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--athera-charcoal-light);
}
.admin-modal-reasons .ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tier-high-soft);
  color: var(--tier-high);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
}
.admin-modal-flags .ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--tier-warm);
  margin-top: 4px;
  font-weight: 600;
}

.admin-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--athera-line);
}
.admin-modal-foot-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-modal-time {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey);
}
.admin-btn--danger {
  background: transparent;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-btn--danger:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}
.admin-btn--danger .admin-btn-icon {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

/* Reset confirm --------------------------------------------------------- */

.admin-confirm {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-confirm[hidden] { display: none; }
.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: admin-fade 0.18s ease both;
}
.admin-confirm-card {
  position: relative;
  background: var(--athera-white);
  border-radius: 4px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  animation: admin-modal-in 0.2s cubic-bezier(0.2, 0, 0.2, 1) both;
}
.admin-confirm-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin-bottom: 12px;
}
.admin-confirm-text {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--athera-charcoal);
  margin: 0 0 10px;
}
.admin-confirm-sub {
  font-family: var(--athera-sans);
  font-size: 13px;
  color: var(--athera-grey);
  margin: 0 0 28px;
  line-height: 1.6;
}
.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.admin-btn--primary {
  background: var(--athera-navy);
  color: var(--athera-white);
  border-color: var(--athera-navy);
}
.admin-btn--primary:hover { background: var(--athera-navy-mid); border-color: var(--athera-navy-mid); }
.admin-btn--ghost {
  background: transparent;
  color: var(--athera-grey);
  border-color: var(--athera-line);
}
.admin-btn--ghost:hover { color: var(--athera-charcoal); border-color: var(--athera-charcoal); }

/* =========================================================================
   A!thera — landing page (client-facing, editorial / hospitality)
   Palette: deep charcoal, ivory, soft gold.
   ========================================================================= */

:root {
  --add-ink: #161412;
  --add-ink-soft: #34302B;
  --add-grey: #6F6A63;
  --add-grey-light: #A39E96;
  --add-line: rgba(22, 20, 18, 0.10);
  --add-line-soft: rgba(22, 20, 18, 0.06);
  --add-ivory: #F4EFE6;
  --add-cream: #FAF6EE;
  --add-paper: #FFFCF6;
  --add-gold: #B08A4A;
  --add-gold-soft: #C9A86B;

  --add-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --add-sans: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

body.add-page {
  background: var(--add-cream);
  color: var(--add-ink);
  font-family: var(--add-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
}

.add-shell { min-height: 100vh; display: flex; flex-direction: column; }
.add-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .add-container { padding: 0 24px; } }

/* Header ----------------------------------------------------------------- */

.add-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--add-line-soft);
}
.add-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.add-wordmark {
  font-family: var(--add-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--add-ink);
  text-transform: uppercase;
  text-decoration: none;
}
.add-wordmark .ampers {
  color: var(--add-gold);
  font-style: italic;
  letter-spacing: 0;
  margin: 0 4px;
}
.add-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.add-nav a {
  font-family: var(--add-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--add-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.add-nav a:hover { color: var(--add-gold); }
@media (max-width: 720px) {
  .add-nav { display: none; }
}

/* Hero ------------------------------------------------------------------- */

.add-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(176, 138, 74, 0.10), transparent 55%),
    linear-gradient(180deg, var(--add-cream) 0%, var(--add-ivory) 100%);
  padding: 140px 0 160px;
  overflow: hidden;
}
.add-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--add-line-soft);
}
.add-hero-inner {
  position: relative;
  max-width: 880px;
}
.add-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--add-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--add-gold);
  margin-bottom: 36px;
}
.add-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--add-gold);
  display: inline-block;
}
.add-hero h1 {
  font-family: var(--add-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(48px, 7.4vw, 102px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--add-ink);
  margin: 0 0 40px;
}
.add-hero h1 .line {
  display: block;
}
.add-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--add-gold);
  letter-spacing: -0.01em;
  margin-right: 0.08em;
}
.add-hero p.add-lede {
  max-width: 620px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--add-ink-soft);
}
.add-hero-cta {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--add-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--add-ink);
  text-decoration: none;
}
.add-hero-cta .arrow {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--add-ink);
  transition: width 0.3s ease;
}
.add-hero-cta:hover .arrow { width: 56px; }

/* Why section ------------------------------------------------------------ */

.add-section {
  padding: 140px 0;
  position: relative;
}
.add-section + .add-section { border-top: 1px solid var(--add-line-soft); }

.add-section-head {
  text-align: center;
  margin-bottom: 96px;
}
.add-section-label {
  font-family: var(--add-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--add-gold);
  display: inline-block;
  margin-bottom: 24px;
}
.add-section-title {
  font-family: var(--add-display);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--add-ink);
  margin: 0;
}
.add-section-title em {
  font-style: italic;
  color: var(--add-gold);
}

.add-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 880px) {
  .add-pillars { grid-template-columns: repeat(3, 1fr); gap: 56px; }
}
.add-pillar {
  position: relative;
  padding-top: 36px;
}
.add-pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 1px;
  background: var(--add-gold);
}
.add-pillar-number {
  font-family: var(--add-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--add-gold);
  margin-bottom: 18px;
  display: inline-block;
}
.add-pillar h3 {
  font-family: var(--add-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--add-ink);
  margin: 0 0 18px;
}
.add-pillar p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--add-ink-soft);
  margin: 0;
}

/* Form section ----------------------------------------------------------- */

.add-form-section {
  background: var(--add-paper);
  border-top: 1px solid var(--add-line-soft);
  padding: 140px 0;
}

.add-form-shell {
  display: block;
}

.add-form-intro {
  width: 100%;
}

.add-form-intro h2 {
  font-family: var(--add-display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--add-ink);
}
.add-form-intro h2 em { font-style: italic; color: var(--add-gold); }
.add-form-intro p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--add-ink-soft);
  max-width: 540px;
}

.add-form {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .add-form { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .add-field.full { grid-column: 1 / -1; }
}

.add-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.add-field label {
  font-family: var(--add-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--add-grey);
}
.add-field input,
.add-field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--add-line);
  border-radius: 0;
  padding: 12px 0 14px;
  font-family: var(--add-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--add-ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: border-color 0.2s ease;
  width: 100%;
}
.add-field input::placeholder {
  color: var(--add-grey-light);
  font-style: italic;
}
.add-field input:focus,
.add-field select:focus {
  outline: none;
  border-bottom-color: var(--add-gold);
}
.add-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--add-grey) 50%),
                    linear-gradient(135deg, var(--add-grey) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.add-field select:invalid { color: var(--add-grey-light); font-style: italic; }
.add-field select option { color: var(--add-ink); font-family: var(--add-sans); font-size: 14px; font-style: normal; }

.add-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.add-form-actions .add-disclaimer {
  font-size: 12px;
  color: var(--add-grey);
  max-width: 380px;
  line-height: 1.6;
}

.add-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--add-ink);
  color: var(--add-cream);
  font-family: var(--add-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 22px 44px;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.12s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.add-submit:hover { background: var(--add-gold); }
.add-submit:active { transform: scale(0.97); }
.add-submit:disabled { cursor: progress; transform: none; }
.add-submit.is-submitting {
  background: var(--add-ink-soft);
  cursor: progress;
}
.add-submit .arrow {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: opacity 0.2s ease;
}
.add-submit.is-submitting .arrow { display: none; }

.add-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 246, 238, 0.25);
  border-top-color: var(--add-cream);
  animation: add-spin 0.7s linear infinite;
}
.add-submit.is-submitting .add-spinner { display: inline-block; }
@keyframes add-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Confirmation ----------------------------------------------------------- */

.add-confirm {
  display: none;
  text-align: center;
  padding: 80px 24px;
}
.add-confirm.is-visible { display: block; }
.add-confirm .mark {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--add-gold);
  margin-bottom: 32px;
}
.add-confirm h2 {
  font-family: var(--add-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  color: var(--add-ink);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.add-confirm h2 em { font-style: italic; color: var(--add-gold); }
.add-confirm p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--add-ink-soft);
  max-width: 520px;
  margin: 0 auto 48px;
}
.add-confirm .add-return {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--add-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  color: var(--add-ink);
  border: 1px solid var(--add-ink);
  padding: 18px 38px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: 2px;
}
.add-confirm .add-return:hover {
  background: var(--add-ink);
  color: var(--add-cream);
}

/* Footer ----------------------------------------------------------------- */

.add-footer {
  border-top: 1px solid var(--add-line-soft);
  background: var(--add-cream);
  padding: 36px 0;
}
.add-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.add-footer-copy {
  font-family: var(--add-sans);
  font-size: 12px;
  color: var(--add-grey);
  letter-spacing: 0.04em;
}
.add-footer-demo {
  font-family: var(--add-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--add-grey-light);
}

/* =========================================================================
   AI Assistant — floating button + chat panel (A!thera landing page)
   ========================================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#ai-assistant-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--add-ink);
  color: var(--add-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 120ms ease;
  animation: ai-button-breathe 4s ease-in-out infinite;
}
@keyframes ai-button-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
#ai-assistant-button:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
#ai-assistant-button:active {
  animation-play-state: paused;
  transform: scale(0.94);
}
#ai-assistant-button .ai-sparkle {
  display: block;
}
#ai-assistant-button.is-open {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transform: scale(0.85);
}
@media (prefers-reduced-motion: reduce) {
  #ai-assistant-button { animation: none; }
}

#ai-assistant-panel {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 101;
  width: 380px;
  height: 560px;
  background: var(--add-paper);
  border: 1px solid var(--add-line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: bottom right;
  /* Desynced ease curves give the open a premium feel:
     scale eases out longer with a quint curve, opacity rises faster. */
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   160ms ease-out;
}
#ai-assistant-panel.is-open {
  display: flex;
  opacity: 1;
  transform: scale(1);
}
#ai-assistant-panel.is-closing {
  display: flex;
  opacity: 0;
  transform: scale(0.4);
  transition:
    transform 200ms cubic-bezier(0.64, 0, 0.78, 0),
    opacity   140ms ease-in;
}

#ai-assistant-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--add-line-soft);
  flex-shrink: 0;
}
#ai-assistant-panel header .title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--add-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--add-ink);
}
#ai-assistant-panel header .title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--add-gold);
  box-shadow: 0 0 0 0 rgba(176, 138, 74, 0.55);
  animation: ai-pulse 2.4s ease-out infinite;
}
@keyframes ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(176, 138, 74, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(176, 138, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 138, 74, 0); }
}
#ai-assistant-panel header .close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--add-grey);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease;
}
#ai-assistant-panel header .close:hover {
  color: var(--add-ink);
  background: rgba(22, 20, 18, 0.04);
}

#ai-assistant-panel .messages-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
#ai-assistant-panel .messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.2s ease;
}
#ai-assistant-panel .messages:hover {
  scrollbar-color: var(--add-line) transparent;
}
#ai-assistant-panel .messages::-webkit-scrollbar {
  width: 6px;
}
#ai-assistant-panel .messages::-webkit-scrollbar-track {
  background: transparent;
}
#ai-assistant-panel .messages::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.2s ease;
}
#ai-assistant-panel .messages:hover::-webkit-scrollbar-thumb {
  background: var(--add-line);
}

#ai-assistant-panel .message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--add-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--add-ink);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  /* Fade + lift on first paint. Streamed token updates do not
     re-trigger this — the animation runs only on the bubble itself. */
  animation: ai-message-in 220ms ease-out both;
}
@keyframes ai-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #ai-assistant-panel .message { animation: none; }
}
#ai-assistant-panel .message.user {
  align-self: flex-end;
  background: var(--add-ivory);
}
#ai-assistant-panel .message.assistant {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--add-line-soft);
}
#ai-assistant-panel .message strong {
  font-weight: 600;
}
#ai-assistant-panel .message .connection-lost {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-size: 12px;
  color: var(--add-grey-light);
}
#ai-assistant-panel .message .caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--add-gold);
  font-weight: 300;
  /* 0.9s reads a touch "more alive" than the conventional 1s.
     Opacity-based blink (not visibility) so the caret stays visually
     stable as new tokens land beside it. */
  animation: ai-caret-blink 0.9s steps(2, start) infinite;
}
@keyframes ai-caret-blink {
  0%, 49.99% { opacity: 1; }
  50%, 100%  { opacity: 0; }
}

#ai-assistant-panel .composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--add-line-soft);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
#ai-assistant-panel .composer:focus-within {
  border-top-color: var(--add-line);
}
#ai-assistant-panel .composer input {
  flex: 1 1 auto;
  appearance: none;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--add-sans);
  font-size: 14px;
  color: var(--add-ink);
  padding: 6px 4px;
  min-width: 0;
}
#ai-assistant-panel .composer input::placeholder {
  color: var(--add-grey-light);
  font-style: italic;
}
#ai-assistant-panel .composer button {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--add-gold);
  color: var(--add-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease, opacity 150ms ease;
}
#ai-assistant-panel .composer button:hover:not(:disabled):not(.is-empty) {
  transform: translateY(-1px);
  background: var(--add-gold-soft);
}
#ai-assistant-panel .composer button:active:not(:disabled):not(.is-empty) {
  transform: scale(0.94);
}
#ai-assistant-panel .composer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#ai-assistant-panel .composer button.is-empty {
  opacity: 0.5;
  cursor: default;
}

/* "New message" pill — appears at the bottom of the messages area when
   new content streams in while the user has scrolled up. */
#ai-assistant-panel .new-message-pill {
  position: absolute;
  right: 16px;
  bottom: 12px;
  appearance: none;
  border: 1px solid rgba(176, 138, 74, 0.32);
  background: rgba(255, 252, 246, 0.96);
  color: var(--add-gold);
  font-family: var(--add-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}
#ai-assistant-panel .new-message-pill.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#ai-assistant-panel .new-message-pill:hover {
  border-color: rgba(176, 138, 74, 0.55);
}

@media (max-width: 480px) {
  #ai-assistant-button {
    bottom: 20px;
    right: 20px;
  }
  #ai-assistant-panel {
    bottom: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    height: 70vh;
  }
}

