/* Alumni Portal interactive demo (/alumni-portal). Theme colours come from the
   site tokens (colors_and_type.css); fallbacks match the Recovery Workflows page. */
.al {
  --al-primary: var(--brand, #6D28D9);
  --al-primary-hover: var(--brand-active, #5B21B6);
  --al-light: var(--color-violet-50, #FAF5FF);
  --al-bg: var(--bg, #FFFBFE);
  --al-card: var(--bg-card, #FFFFFF);
  --al-heading: var(--fg, #111827);
  --al-body: var(--fg-body, #334155);
  --al-muted: var(--fg-muted, #64748B);
  --al-border: var(--border-strong, #E2E8F0);
  --al-line: var(--color-violet-200, #E9D5FF);
  --al-ai: var(--color-violet-800, #4C1D95);
  --al-ai-soft: var(--color-violet-100, #F3E8FF);
  --al-teal: var(--color-teal-700, #0F766E);
  --al-teal-soft: var(--color-teal-50, #ECFEFF);
  --al-ok: #047857; --al-ok-soft: #ECFDF5;
  --al-warn: #B45309; --al-warn-soft: #FFFBEB;
  --al-r: 18px;
  --al-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --al-fast: 180ms; --al-mid: 300ms; --al-slow: 700ms; --al-ease: cubic-bezier(.2, .7, .2, 1);
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  color: var(--al-body);
  background: var(--al-bg);
}
.al [hidden] { display: none !important; }
.al [id] { scroll-margin-top: 96px; }
.al-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.al h1, .al h2, .al h3, .al h4 { color: var(--al-heading); font-family: inherit; letter-spacing: -0.02em; }
.al a:not(.btn) { color: var(--al-primary); }
.al :focus-visible { outline: 3px solid rgba(109, 40, 217, .45); outline-offset: 2px; border-radius: 8px; }
.al [tabindex="-1"]:focus { outline: none; }
.al svg { flex: none; }
.al p { overflow-wrap: anywhere; }
.al-muted { color: var(--al-muted); }
.al-small { font-size: 13px; }
.al-center { text-align: center; }
.al-mt-sm { margin-top: 14px !important; }
.al-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.al-between { justify-content: space-between; }
.al-stack { display: grid; gap: 14px; align-content: start; }
.al-card.al-stack > .al-btn { justify-self: start; }
.al-stack > * { margin: 0; }
.al-h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; margin: 12px 0; text-wrap: balance; }
.al-h3 { font-size: 20px; line-height: 1.25; margin: 0 0 12px; font-weight: 700; color: var(--al-heading); text-wrap: balance; }
.al-h4 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; color: var(--al-heading); }
.al-h4 svg { width: 17px; height: 17px; color: var(--al-primary); }
.al-k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--al-muted); margin: 0 0 8px; }
.al-k svg { width: 14px; height: 14px; color: var(--al-primary); }
.al-pad { padding: 20px; }
.al-pad-sm { padding: 16px; }
.al-card { background: var(--al-card); border: 1px solid var(--al-border); border-radius: var(--al-r); box-shadow: var(--al-shadow); }
.al-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; }
.al-grid-tight { gap: 12px; max-width: none; }
.al-grid-flat { align-items: center; gap: clamp(24px, 5vw, 64px); }
.al-ok-ic { width: 20px; height: 20px; color: var(--al-ok); vertical-align: -3px; }

/* buttons */
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--al-fast) var(--al-ease), border-color var(--al-fast), transform var(--al-fast); }
.al-btn svg { width: 17px; height: 17px; }
.al-btn:active { transform: translateY(1px); }
.al-btn:disabled { opacity: .55; cursor: default; }
.al-btn-primary { background: var(--al-primary); color: #fff !important; box-shadow: 0 6px 16px rgba(109, 40, 217, .22); }
.al-btn-primary:hover { background: var(--al-primary-hover); }
.al-btn-secondary { background: var(--al-card); color: var(--al-primary) !important; border-color: var(--al-line); }
.al-btn-secondary:hover { background: var(--al-light); }
.al-btn-ghost { background: transparent; color: var(--al-body) !important; border-color: var(--al-border); }
.al-btn-ghost:hover { background: #F8FAFC; }
.al-btn-ghost[aria-pressed="true"] { background: var(--al-light); border-color: var(--al-line); color: var(--al-primary-hover) !important; }
.al-btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.al-btn-sm { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.al-btn-block { width: 100%; }
.al-linkbtn { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--al-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.al-back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--al-muted); cursor: pointer; }
.al-back svg { width: 16px; height: 16px; }
.al-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-left: auto; padding: 0 10px; border: 0; background: none; color: var(--al-muted); font: inherit; font-size: 13px; cursor: pointer; border-radius: 8px; }
.al-reset:hover { color: var(--al-primary); }
.al-reset svg { width: 15px; height: 15px; }

/* chips, badges, status */
.al-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--al-light); color: var(--al-primary-hover); font-size: 12px; font-weight: 600; white-space: nowrap; }
.al-chip-ok { background: var(--al-ok-soft); color: var(--al-ok); }
.al-chip-ai { background: var(--al-ai-soft); color: var(--al-ai); }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.al-chip-btn { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--al-border); background: var(--al-card); font: inherit; font-size: 13px; font-weight: 600; color: var(--al-body); cursor: pointer; transition: all var(--al-fast) var(--al-ease); }
.al-chip-btn svg { width: 15px; height: 15px; }
.al-chip-btn[aria-pressed="true"] { background: var(--al-primary); border-color: var(--al-primary); color: #fff; }
.al-chips-static { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.al-chips-static li { padding: 4px 10px; border-radius: 999px; background: var(--al-light); color: var(--al-primary-hover); font-size: 13px; font-weight: 600; }
.al-muted-chips li { background: #F1F5F9; color: #475569; }
.al-chips-no li { background: #F1F5F9; color: #475569; text-decoration: line-through; }
.al-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.al-badge svg { width: 12px; height: 12px; }
.al-badge-demo { background: #F1F5F9; color: #475569; border: 1px dashed #94A3B8; }
.al-badge-concept { background: var(--al-ai-soft); color: var(--al-ai); border: 1px dashed #A78BFA; }
.al-badge-interactive { background: var(--al-teal-soft); color: var(--al-teal); border: 1px dashed var(--color-teal-500, #14B8A6); }
.al-badge-production { background: var(--al-ok-soft); color: var(--al-ok); border: 1px solid #A7F3D0; }
.al-class { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.al-class-production { background: var(--al-ok-soft); color: var(--al-ok); }
.al-class-demo { background: #F1F5F9; color: #475569; }
.al-class-interactive { background: var(--al-teal-soft); color: var(--al-teal); }
.al-class-concept { background: var(--al-ai-soft); color: var(--al-ai); }
.al-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background var(--al-mid), color var(--al-mid); }
.al-status svg { width: 14px; height: 14px; }
.al-status-ok { background: var(--al-ok-soft); color: var(--al-ok); border-color: #A7F3D0; }
.al-status-attention { background: var(--al-warn-soft); color: var(--al-warn); border-color: #FDE68A; }
.al-status-idle { background: #F1F5F9; color: #475569; border-color: var(--al-border); }

.al-bar { position: relative; display: inline-block; flex: 1; min-width: 40px; height: 8px; border-radius: 999px; background: #EEF2F7; overflow: hidden; vertical-align: middle; }
.al-bar > span { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--al-primary), var(--color-teal-500, #14B8A6)); }
.al-pace { display: grid; gap: 10px; }
.al-pace > div { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 14px; }
.al-pace strong { text-align: right; color: var(--al-heading); }
.al-avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--al-ai-soft); color: var(--al-ai); font-size: 13px; font-weight: 700; }
.al-avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.al-avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.al-avatars { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.al-avatars .al-avatar { border: 2px solid var(--al-card); margin-right: -8px; }
.al-avatars span.al-small { margin-left: 14px; }
.al-person { display: flex; align-items: center; gap: 12px; margin: 0; }

.al-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; line-height: 1.5; color: var(--al-heading); resize: vertical; margin-bottom: 10px; }
.al-input:focus { outline: none; border-color: var(--al-primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, .18); }
.al-select { margin: 0; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.al-label { display: block; font-size: 14px; font-weight: 600; color: var(--al-heading); margin: 10px 0 6px; }
.al-check { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--al-body); cursor: pointer; }
.al-check input { width: 18px; height: 18px; accent-color: var(--al-primary); }
.al-fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.al-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--al-muted); margin: 12px 0 0; }
.al-note svg { width: 15px; height: 15px; margin-top: 2px; }
.al-empty { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0; border-radius: 14px; background: var(--al-card); border: 1px dashed var(--al-border); font-size: 14px; }
.al-empty svg { width: 18px; height: 18px; color: var(--al-primary); }
.al-detail { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--al-border); }
.al-detail > p { margin: 0 0 8px; }
.al-detail > :last-child { margin-bottom: 0; }
.al-done { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--al-ok-soft); border: 1px solid #A7F3D0; }
.al-done p { margin: 0 0 6px; }
.al-done-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--al-ok); }
.al-done-title svg { width: 18px; height: 18px; }
.al-done-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--al-ok); font-weight: 600; }
.al-done-line svg { width: 16px; height: 16px; }
.al-verify { margin: 10px 0 0; font-size: 14px; }
.al-verify:empty { display: none; }
.al-verify.is-pending { color: var(--al-muted); }
.al-verify.is-ok { padding: 10px 12px; border-radius: 12px; background: var(--al-ok-soft); color: var(--al-ok); font-weight: 600; }
.al-prefer, .al-avoid { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 10px 0 0; }
.al-prefer svg, .al-avoid svg { width: 15px; height: 15px; margin-top: 2px; }
.al-prefer svg { color: var(--al-ok); }
.al-avoid { color: var(--al-muted); }
.al-avoid svg { color: #B91C1C; }

@keyframes al-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.al-in { animation: al-in var(--al-mid) var(--al-ease) both; }

/* layout: sections */
.al-section { padding: clamp(56px, 7vw, 96px) 0; }
.al-tint { background: linear-gradient(180deg, var(--al-bg), #F6F0FF); }
.al-head { max-width: 780px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.al-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin: 12px 0; text-wrap: balance; }
.al-head p { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.al-legend { margin-top: 10px !important; font-size: 13.5px !important; color: var(--al-muted); }
.al-eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--al-primary); }

/* hero */
.al-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(60% 80% at 10% 0%, rgba(109, 40, 217, .10), transparent 70%), radial-gradient(40% 60% at 95% 20%, rgba(20, 184, 166, .08), transparent 70%), var(--al-bg); }
.al-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.al-hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; margin: 16px 0 18px; text-wrap: balance; }
.al-lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 580px; margin: 0 0 28px; }
.al-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.al-note-line { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: var(--al-muted); }
.al-note-line svg { width: 16px; height: 16px; }
.al-hero-card { max-width: 480px; justify-self: end; width: 100%; }
.al-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--al-muted); }
.al-crumb svg { width: 14px; height: 14px; }
.al-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.al-facts > div { padding: 8px 10px; border-radius: 10px; background: #F8FAFC; border: 1px solid var(--al-border); min-width: 0; }
.al-facts dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--al-muted); }
.al-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--al-heading); overflow-wrap: anywhere; }
.al-facts-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.al-facts .al-span { grid-column: 1 / -1; }
.al-tile { padding: 16px; border-radius: 16px; background: var(--al-card); border: 1px solid var(--al-border); min-width: 0; }
.al-tile > p { margin: 0 0 8px; }
.al-tile-accent { background: linear-gradient(135deg, var(--al-card), var(--al-light)); border-color: var(--al-line); }

.al-band { padding: 26px 0; border-block: 1px solid var(--al-border); background: var(--al-card); }
.al-loop { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.al-loop li { padding: 6px 12px; border-radius: 999px; background: var(--al-light); color: var(--al-primary-hover); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.al-loop li:not(:last-child)::after { content: " →"; color: #A78BFA; }

/* app chrome */
.al-app { max-width: 1120px; margin: 0 auto; background: var(--al-card); border: 1px solid var(--al-border); border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .10); overflow: hidden; }
.al-app-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--al-border); background: #F8FAFC; }
.al-dots { display: flex; gap: 6px; }
.al-dots span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.al-context { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 18px; border-bottom: 1px solid var(--al-border); background: var(--al-light); font-size: 13.5px; color: var(--al-muted); }
.al-context strong { color: var(--al-heading); }
.al-context > span:not(.al-chip)::before { content: "›"; margin-right: 10px; color: #A78BFA; }
.al-roles { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #EEF2F7; }
.al-role { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--al-muted); cursor: pointer; }
.al-role svg { width: 15px; height: 15px; }
.al-role[aria-pressed="true"] { background: var(--al-card); color: var(--al-primary-hover); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* transition */
.al-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.al-ticks li { display: flex; align-items: center; gap: 8px; }
.al-ticks svg { width: 16px; height: 16px; color: var(--al-ok); }
.al-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.al-stages li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--al-border); background: #F8FAFC; opacity: .55; transition: opacity var(--al-slow) var(--al-ease), border-color var(--al-slow), background var(--al-slow); }
.al-stages li > span:last-child { display: grid; }
.al-stages li.is-on { opacity: 1; }
.al-stages li.is-now { border-color: var(--al-primary); background: var(--al-light); box-shadow: 0 0 0 3px rgba(109, 40, 217, .10); }
.al-stage-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--al-card); border: 1px solid var(--al-line); color: var(--al-primary); }
.al-stage-ic svg { width: 20px; height: 20px; }
.al-stages-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.al-stages-inline li { padding: 6px 12px; opacity: 1; background: var(--al-card); }
.al-stages-inline li:first-child::after { content: " →"; color: #A78BFA; }

/* intelligence */
.al-ai-out { margin-top: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--al-card), var(--al-ai-soft)); border: 1px solid var(--al-line); line-height: 1.6; }
.al-ai-out > p { margin: 0 0 8px; }
.al-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--al-border); background: #FCFBFF; }
.al-rules p { margin: 0 0 8px; }

/* video, links, use cases */
.al-browser { max-width: 1000px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--al-border); background: #0F172A; box-shadow: 0 30px 70px rgba(15, 23, 42, .22); }
.al-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1E293B; }
.al-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.al-browser-bar em { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: #0F172A; color: #94A3B8; font-size: 12px; font-style: normal; }
.al-video-frame { position: relative; aspect-ratio: 16 / 9; background: #0F172A; }
.al-video-play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: #fff; color: var(--al-heading); font: 700 16px/1 var(--font-sans, inherit); cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.al-video-play[hidden] { display: none; }
.al-video-play svg { width: 20px; height: 20px; color: var(--al-primary); }
.al-video-play:hover { transform: scale(1.03); }
.al-video-time { padding: 3px 10px; border-radius: 999px; background: var(--al-light, #F3E8FF); color: var(--al-primary); font-size: 13px; font-weight: 700; }
.al-video { display: block; width: 100%; height: 100%; }
.al-video-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; color: #CBD5E1; text-align: center; max-width: 520px; margin: auto; }
.al-video-soon svg { width: 36px; height: 36px; }
.al-chapters { list-style: none; margin: 16px auto 0; padding: 0; max-width: 1000px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.al-chapters .al-chip-btn span { color: var(--al-muted); font-variant-numeric: tabular-nums; }
.al-chapters .al-chip-btn[aria-pressed="true"] span { color: #E9D5FF; }
.al-chapters .al-chip-btn:disabled { opacity: .6; cursor: default; }
.al-transcript { max-width: 1000px; margin: 16px auto 0; }
.al-transcript summary { cursor: pointer; font-weight: 700; color: var(--al-heading); min-height: 32px; }
.al-transcript ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.al-links { list-style: none; max-width: 1000px; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; font-size: 14px; }
.al-links li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--al-border); }
.al-links span { color: var(--al-muted); }
.al-links a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.al-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 14px; background: #EEF2F7; width: max-content; max-width: 100%; box-sizing: border-box; }
.al-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--al-muted); cursor: pointer; }
.al-tabs [role="tab"] svg { width: 15px; height: 15px; }
.al-tabs [role="tab"][aria-selected="true"] { background: var(--al-card); color: var(--al-primary-hover); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.al-uses { list-style: none; margin: 24px auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.al-uses a { display: flex; align-items: center; gap: 10px; height: 100%; box-sizing: border-box; font-weight: 600; color: var(--al-heading) !important; text-decoration: none; box-shadow: none; transition: border-color var(--al-fast); }
.al-uses a:hover { border-color: var(--al-primary); }
.al-uses svg { width: 20px; height: 20px; color: var(--al-primary); }
.al-pillars { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.al-pillars li { display: grid; gap: 4px; justify-items: start; align-content: start; font-size: 13.5px; }
.al-pillars svg { width: 20px; height: 20px; color: var(--al-primary); }
.al-pillars strong { color: var(--al-heading); }
.al-pillars span { color: var(--al-muted); }
.al-integrity { max-width: 1120px; margin: 24px auto 0; padding: 12px 16px; border-radius: 16px; background: var(--al-card); border: 1px solid var(--al-border); }
.al-integrity summary { display: flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; color: var(--al-heading); cursor: pointer; }
.al-integrity summary svg { width: 17px; height: 17px; color: var(--al-primary); }
.al-integrity .al-table { margin-top: 10px; }

.al-final-inner { text-align: center; max-width: 780px; }
.al-final h2 { color: #fff !important; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.al-final .al-ctas { justify-content: center; margin-top: 24px; }
.al-final-talk { margin: 20px 0 0; }
.al-final-talk a { display: inline-flex; align-items: center; gap: 6px; color: #E9D5FF !important; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.al-final-talk a svg { width: 16px; height: 16px; }
.al-final a:focus-visible, .al-final button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* responsive */
@media (max-width: 1024px) {
  .al-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .al-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .al-hero-grid, .al-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .al-hero-card { justify-self: stretch; max-width: none; }
  .al-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .al-ctas .al-btn, .al-final .al-ctas .btn { width: 100%; }
  .al-links { grid-template-columns: minmax(0, 1fr); }
  .al-facts { grid-template-columns: minmax(0, 1fr); }
  .al-uses, .al-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-tabs { width: 100%; }
  .al-table thead { display: none; }
  .al-table, .al-table tbody { display: block; }
  .al-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--al-border); }
  .al-table th, .al-table td { padding: 0; border: 0; }
  .al-roles { width: 100%; }
  .al-role { flex: 1; justify-content: center; }
  .al-reset { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .al *, .al *::before, .al *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

.al-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.al-table th, .al-table td { padding: 8px 10px; border-bottom: 1px solid var(--al-border); text-align: left; vertical-align: middle; }
.al-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--al-muted); }
.al-url { font-size: 12.5px; color: var(--al-muted); padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--al-border); }

/* ==========================================================================
   .ax — the Alumni Portal's own UI, restated from the product:
   tokens from public/alumni_app/static/alumni.css, component values from
   lib.jsx (Button, Badge, Avatar, Input), app.jsx (shell, rail, right rail),
   Home.jsx (feed), Admin.jsx (console). Keep in step with those files.
   ========================================================================== */
.ax {
  --t-primary: #0f3f57; --t-primary-hover: #0b3247; --t-primary-soft: #dfeaf1; --t-primary-text: #0b3247;
  --t-secondary: #2f7395; --t-accent: #a8d0e2; --t-accent-text: #1d5a78; --t-accent-soft: #d9ecf5;
  --t-warm: #d9a05b; --t-warm-soft: #fbf1e3; --t-warm-text: #7a4f14;
  --t-sunken: #e9f0f4; --t-tile: #f6f9fb; --t-line: #e2eaef; --t-line-strong: #c9d8e0; --t-divider: #edf2f5;
  --t-display: 'DM Serif Display', Georgia, serif; --t-dark: #082a3b;
  --ax-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --fg-1: #1b1733; --fg-2: #4a4560; --fg-3: #6b6580; --fg-4: #9b97ac;
  --ai-text: #4f5bd5;
  --ai-feature: radial-gradient(120% 90% at 100% 0%, rgba(139,123,234,.42), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(63,184,200,.30), transparent 60%), linear-gradient(160deg, #122f44 0%, #0f2a3d 55%, #0d2334 100%);
  --shadow-primary: 0 6px 18px rgba(15,63,87,.28);
  font-family: var(--ax-sans); color: var(--fg-1);
}
.ax [hidden] { display: none !important; }
.ax-bubble > .ax-badge, .ax-card > .ax-btn, .ax-card > .ax-badge { justify-self: start; }
.ax :focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15,63,87,.18); border-radius: 10px; }
.ax p { margin: 0; }
.ax svg { flex: none; }
.al-portal { max-width: 1240px; margin: 0 auto; background: #fff; border: 1px solid var(--t-line); border-radius: 20px; box-shadow: 0 24px 60px rgba(8,42,59,.12); overflow: hidden; }
.al-portal .al-app-bar { background: #f6f9fb; border-color: var(--t-line); }
.al-portal .al-role[aria-pressed="true"] { color: var(--t-primary); }

/* primitives */
.ax-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ax-between { justify-content: space-between; }
.ax-baseline { align-items: baseline; }
.ax-top-align { align-items: flex-start; flex-wrap: nowrap; }
.ax-spacer { flex: 1; }
.ax-display { margin: 0; font-family: var(--t-display); font-weight: 400; font-size: clamp(21px, 2.3vw, 26px); letter-spacing: -.01em; line-height: 1.15; color: var(--fg-1); }
.ax-display-lg { font-size: clamp(24px, 2.8vw, 32px); }
.ax-h4 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--fg-1); }
.ax-lead { font-size: 14px; line-height: 1.55; color: var(--fg-3); }
.ax-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--fg-3); }
.ax-meta svg { width: 12px; height: 12px; }
.ax-small { font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.ax-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--fg-3); }
.ax-note svg { width: 14px; height: 14px; margin-top: 2px; }
.ax-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); margin: 0; }
.ax-eyebrow svg { width: 13px; height: 13px; }
.ax-ai { color: var(--ai-text); }
.ax-name { font: 800 15px var(--ax-sans); letter-spacing: -.01em; color: var(--fg-1); }
.ax-link, .ax-link-static { border: none; background: none; padding: 0; font: 600 13px var(--ax-sans); color: var(--t-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ax-link svg { width: 15px; height: 15px; }
.ax-accent { color: var(--t-accent); }
.ax-ok { width: 16px; height: 16px; color: #166534; }
.ax-tick { display: inline-flex; color: var(--t-secondary); }
.ax-tick svg { width: 15px; height: 15px; }
.ax-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: none; border-radius: 14px; font: 600 14px var(--ax-sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.ax-btn svg { width: 16px; height: 16px; }
.ax-btn-sm { height: 34px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.ax-btn-sm svg { width: 15px; height: 15px; }
.ax-btn-primary { background: var(--t-primary); color: #fff !important; box-shadow: var(--shadow-primary); }
.ax-btn-primary:hover { background: var(--t-primary-hover); }
.ax-btn-secondary { background: #fff; color: var(--fg-2) !important; border: 1px solid var(--t-line-strong); }
.ax-btn-ghost { background: transparent; color: var(--fg-3) !important; }
.ax-btn-ghost[aria-pressed="true"], .ax-btn-secondary[aria-pressed="true"] { background: var(--t-primary-soft); color: var(--t-primary-text) !important; }
.ax-btn-dark { background: rgba(255,255,255,.10); color: #fff !important; border: 1px solid rgba(255,255,255,.16); }
.ax-btn:disabled { opacity: .55; cursor: not-allowed; }
.ax-btn[aria-pressed="true"].ax-btn-primary { background: var(--t-primary-soft); color: var(--t-primary-text) !important; box-shadow: none; }

.ax-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ax-badge svg { width: 13px; height: 13px; }
.ax-badge-violet { background: var(--t-primary-soft); color: var(--t-primary-text); }
.ax-badge-amber { background: var(--t-warm-soft); color: var(--t-warm-text); }
.ax-badge-green { background: #ecfdf5; color: #166534; }
.ax-badge-blue { background: #eff6ff; color: #1d4ed8; }
.ax-badge-teal { background: var(--t-accent-soft); color: var(--t-accent-text); }
.ax-badge-gray { background: var(--t-sunken); color: var(--fg-3); }
.ax-badge-dark { background: var(--t-primary); color: #fff; }

.ax-av { --s: 36px; width: var(--s); height: var(--s); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: calc(var(--s) * .38); letter-spacing: -.02em; }
.ax-av-violet { background: #e4defb; color: #5b21b6; } .ax-av-amber { background: #fde9c8; color: #92400e; }
.ax-av-green { background: #cdeede; color: #166534; } .ax-av-blue { background: #d6e4ff; color: #1d4ed8; }
.ax-av-rose { background: #ffe0e6; color: #be123c; } .ax-av-teal { background: #cdeeea; color: #0f766e; }

.ax-input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--t-line-strong); background: #fff; font: 400 14px var(--ax-sans); color: var(--fg-1); resize: vertical; }
.ax-field { position: relative; flex: 1; display: flex; align-items: center; }
.ax-field svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--fg-4); }
.ax-field .ax-input { padding-left: 36px; }
.ax-select { position: relative; display: inline-flex; align-items: center; }
.ax-select select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--t-line-strong); background: #fff; font: 500 13.5px var(--ax-sans); color: var(--fg-1); cursor: pointer; width: 100%; }
.ax-select svg { position: absolute; right: 11px; width: 15px; height: 15px; color: var(--fg-4); pointer-events: none; }
.ax-check { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 13.5px; color: var(--fg-2); cursor: pointer; }
.ax-check input { width: 18px; height: 18px; accent-color: var(--t-primary); }
.ax-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.ax-progress { display: block; height: 7px; border-radius: 999px; background: var(--t-sunken); overflow: hidden; }
.ax-progress span { display: block; height: 100%; width: var(--v); background: var(--t-primary); border-radius: 999px; }

.ax-tile { background: var(--t-tile); border-radius: 20px; padding: 18px 20px; display: grid; gap: 12px; }
.ax-card { background: #fff; border: 1px solid var(--t-line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ax-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ax-detail { padding: 12px 14px; border-radius: 12px; background: var(--t-tile); font-size: 13.5px; line-height: 1.55; color: var(--fg-2); display: grid; gap: 6px; margin: 0; }
.ax-detail ol, ol.ax-detail { padding-left: 32px; }
.ax-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--t-tile); font-size: 13.5px; color: var(--fg-2); }
.ax-empty svg { width: 18px; height: 18px; color: var(--t-secondary); }
.ax-done { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #166534; }
.ax-done svg { width: 16px; height: 16px; }
.ax-done-card { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #ecfdf5; }
.ax-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ax-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--t-divider); font-size: 13.5px; }
.ax-list li:last-child { border-bottom: 0; }
.ax-list li > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.ax-wait-ic { width: 36px; height: 36px; border-radius: 11px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--t-accent-soft); color: var(--t-accent-text); }
.ax-wait-ic svg { width: 17px; height: 17px; }

/* member app shell */
.ax-member { background: #fff; }
.ax-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-bottom: 1px solid var(--t-line); background: rgba(255,255,255,.86); }
.ax-top-sm { height: 52px; padding: 0 14px; }
.ax-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.ax-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.ax-brand-name { font-family: var(--t-display); font-size: 17px; color: var(--fg-1); }
.ax-brand-inst { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); }
.ax-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--t-primary); color: #fff; font-family: var(--t-display); font-size: 20px; }
.ax-mark-dark { background: rgba(255,255,255,.1); color: var(--t-accent); }
.ax-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--t-line-strong); font-size: 14px; color: var(--fg-4); min-width: 0; }
.ax-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-search svg { width: 16px; height: 16px; }
.ax-search-sm { max-width: 300px; height: 38px; font-size: 13.5px; }
.ax-topicon { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; border: none; display: inline-flex; align-items: center; justify-content: center; background: var(--t-sunken); color: var(--fg-2); cursor: pointer; }
.ax-topicon svg { width: 18px; height: 18px; }
.ax-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--t-warm); color: #2b1a05; font: 700 10px var(--ax-sans); display: inline-flex; align-items: center; justify-content: center; }

.ax-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 22px; align-items: start; padding: 20px 22px 26px; min-height: 620px; }
.ax-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; padding: 14px 10px 12px; border-radius: 22px; background: var(--t-dark); }
.ax-rail-list { display: flex; flex-direction: column; gap: 2px; }
.ax-rail-group { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.42); padding: 10px 12px 6px; }
.ax-rail-group:first-child { padding-top: 4px; }
.ax-rail [role="tab"] { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: none; border-radius: 12px; background: transparent; color: rgba(255,255,255,.76); font: 500 14px var(--ax-sans); cursor: pointer; text-align: left; width: 100%; }
.ax-rail [role="tab"] svg { width: 18px; height: 18px; }
.ax-rail [role="tab"] > span { flex: 1; }
.ax-rail [role="tab"]:hover { background: rgba(255,255,255,.09); }
.ax-rail [role="tab"][aria-selected="true"] { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.ax-rail [role="tab"]:focus-visible { box-shadow: 0 0 0 3px rgba(168,208,226,.55); }
.ax-rail-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 700 11px var(--ax-sans); font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.ax-rail-foot { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); color: #fff; }
.ax-rail-foot strong { display: block; font-size: 13px; }
.ax-rail-foot small { display: block; font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,.62); }
.ax-ring { width: 44px; height: 44px; flex: none; border-radius: 999px; display: inline-grid; place-items: center; background: conic-gradient(var(--t-warm) calc(var(--v) * 1%), rgba(127,127,127,.3) 0); }
.ax-ring b { width: 34px; height: 34px; border-radius: 999px; background: #0d3346; display: grid; place-items: center; font-size: 11px; }

.ax-main { min-width: 0; }
.ax-main .al-panel { display: grid; gap: 16px; padding: 0; }
.ax-waiting { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ax-wait { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid transparent; background: var(--t-tile); cursor: pointer; text-align: left; max-width: 280px; font-family: var(--ax-sans); }
.ax-wait > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ax-wait strong { font-size: 13.5px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-wait small { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-wait > svg { width: 15px; height: 15px; color: var(--fg-4); }
.ax-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: none; background: var(--t-sunken); color: var(--fg-2); font: 600 13.5px var(--ax-sans); cursor: pointer; }
.ax-pill svg { width: 15px; height: 15px; }
.ax-pill[aria-pressed="true"] { background: var(--t-primary); color: #fff; }
.ax-pills-static .ax-pill { height: 34px; background: #fff; border: 1px solid var(--t-line-strong); cursor: default; font-weight: 500; }

.ax-post { position: relative; background: var(--t-tile); border-radius: 20px; padding: 16px 20px 14px; display: grid; gap: 12px; }
.ax-post-sm { padding: 14px 18px; gap: 8px; }
.ax-post-head { display: flex; align-items: flex-start; gap: 12px; }
.ax-post-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ax-post-text { font-size: 14.5px; line-height: 1.6; color: var(--fg-1); overflow-wrap: anywhere; }
.ax-post-acts { display: flex; align-items: center; gap: 18px; padding-top: 10px; border-top: 1px solid var(--t-line); font-size: 13px; color: var(--fg-3); }
.ax-post-acts span, .ax-act { display: inline-flex; align-items: center; gap: 6px; }
.ax-post-acts svg { width: 16px; height: 16px; }
.ax-act { border: none; background: none; padding: 4px 0; font: 600 13px var(--ax-sans); color: var(--fg-3); cursor: pointer; }
.ax-act[aria-expanded="true"] { color: var(--t-primary); }
.ax-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ax-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ax-comments li { display: flex; align-items: flex-start; gap: 10px; }
.ax-bubble { flex: 1; display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--t-line); font-size: 13.5px; line-height: 1.5; color: var(--fg-1); }
.ax-bubble strong { font-size: 13px; }
.ax-compose { display: flex; align-items: center; gap: 10px; }
.ax-compose .ax-input { min-height: 40px; }

.ax-search-form { display: flex; gap: 10px; }
.ax-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-people li > .ax-row > span { display: grid; }

.ax-cover { height: 120px; border-radius: 20px; background: linear-gradient(135deg, #284b7a, var(--t-dark)); }
.ax-cover-event { display: flex; align-items: center; justify-content: center; color: var(--t-accent); background: linear-gradient(135deg, #1d5a78, var(--t-dark)); }
.ax-cover-event svg { width: 34px; height: 34px; }
.ax-cover-profile { height: 110px; background: linear-gradient(135deg, #1f6b6b, var(--t-dark)); }
.ax-profile-head { margin: -62px 0 0 22px; }
.ax-profile-head .ax-av { box-shadow: 0 0 0 4px #fff; }
.ax-announce { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--t-primary-soft); font-size: 13.5px; line-height: 1.5; color: var(--t-primary-text); }
.ax-announce svg { width: 17px; height: 17px; margin-top: 1px; }

.ax-score { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; border: 4px solid #6c7bf0; font-family: var(--t-display); font-size: 17px; color: var(--fg-1); }
.ax-why { padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(93,108,240,.07), rgba(139,123,234,.06) 50%, rgba(63,184,200,.07)); display: grid; gap: 6px; }
.ax-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--fg-2); }
.ax-why li { display: flex; gap: 8px; align-items: center; }
.ax-why svg { width: 14px; height: 14px; color: var(--ai-text); }
.ax-match > .ax-row > .ax-row > span { display: grid; }
.ax-refer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--t-divider); }
.ax-refer p { width: 100%; }

.ax-opp-ic { width: 56px; height: 56px; border-radius: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--t-sunken); color: var(--t-primary); }
.ax-opp-ic svg { width: 24px; height: 24px; }
.ax-opp .ax-top-align > span:last-child { display: grid; gap: 4px; min-width: 0; }
.ax-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ax-dl > div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--t-line); min-width: 0; }
.ax-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-4); }
.ax-dl dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--fg-1); overflow-wrap: anywhere; }

.ax-event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; align-items: start; }
.ax-event-grid > div:first-child { display: grid; gap: 10px; }
.ax-event-acts { display: grid; gap: 10px; }
.ax-event-acts .ax-btn { width: 100%; }
.ax-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.ax-facts li { display: flex; align-items: center; gap: 10px; }
.ax-facts svg { width: 16px; height: 16px; color: var(--fg-3); }

.ax-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ax-notes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--t-primary-soft); font-size: 14px; color: var(--fg-1); }
.ax-notes li > span:nth-child(2) { flex: 1; }
.ax-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ax-path li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--t-sunken); font-size: 13px; font-weight: 600; color: var(--fg-3); }
.ax-path li:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--fg-4); }
.ax-path svg { width: 15px; height: 15px; }
.ax-path .is-done { background: #ecfdf5; color: #166534; }
.ax-path .is-next { background: var(--t-primary-soft); color: var(--t-primary-text); }
.ax-feature-card { grid-template-columns: 88px minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
.ax-feature-band { background: linear-gradient(135deg, #1d5a78, var(--t-dark)); color: var(--t-accent); display: flex; align-items: center; justify-content: center; }
.ax-feature-band svg { width: 24px; height: 24px; }
.ax-feature-body { padding: 16px; display: grid; gap: 10px; min-width: 0; }

.ax-credential { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--t-primary-soft); }
.ax-credential > span:nth-child(2) { display: grid; flex: 1; min-width: 140px; }
.ax-credential-sm { padding: 10px 12px; }
.ax-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--t-primary-text); }
.ax-verified svg { width: 15px; height: 15px; }
.ax-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ax-chain li { padding: 4px 10px; border-radius: 999px; background: var(--t-sunken); color: var(--fg-3); font-size: 12px; font-weight: 600; }
.ax-chain li.is-done { background: #ecfdf5; color: #166534; }
.ax-chain li.is-now { background: var(--t-primary); color: #fff; }
.ax-update { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--t-divider); }
.ax-verify { font-size: 13.5px; }
.ax-verify:empty { display: none; }
.ax-verify.is-ok { padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #166534; font-weight: 600; }
.ax-verify.is-pending { color: var(--fg-3); }
.ax-vis { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--fg-2); }
.ax-muted-list { color: var(--fg-3); }
.ax-toggles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ax-toggles li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.ax-right { position: sticky; top: 90px; display: grid; gap: 12px; }
.ax-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ax-stats li { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 14px; background: var(--t-tile); }
.ax-stats b { font-family: var(--t-display); font-size: 22px; font-weight: 400; color: var(--t-primary); }
.ax-stats span { font-size: 11px; color: var(--fg-3); }
.ax-coming { list-style: none; margin: 0; padding: 0; display: grid; }
.ax-coming li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--t-divider); }
.ax-coming li > span:last-child { display: grid; }
.ax-coming strong { font-size: 13.5px; }
.ax-coming small { font-size: 12px; color: var(--fg-3); }
.ax-date { width: 44px; height: 46px; flex: none; border-radius: 12px; background: var(--t-sunken); display: grid; place-items: center; align-content: center; font-family: var(--t-display); font-size: 18px; line-height: 1; color: var(--t-primary); }
.ax-date small { font-family: var(--ax-sans); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--fg-3); }
.ax-mentor-card { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--ai-feature); color: #fff; }
.ax-mentor-card .ax-row > span:last-child { display: grid; }
.ax-mentor-card small { font-size: 12px; color: rgba(255,255,255,.7); }
.ax-mentor-card .ax-small { color: rgba(255,255,255,.78); }
.ax-mentor-card svg { width: 15px; height: 15px; }
.ax-mentor-card b { font-family: var(--t-display); font-size: 19px; font-weight: 400; color: #c7cdff; }
.ax-mentor-card > .ax-row:first-child span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

/* admin console */
.ax-admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 640px; }
.ax-adm-rail { background: var(--t-dark); color: #fff; display: flex; flex-direction: column; gap: 1px; padding: 18px 14px; }
.ax-brand-dark { margin-bottom: 10px; }
.ax-brand-dark .ax-brand-name { color: #fff; font-size: 16px; }
.ax-brand-dark .ax-brand-inst { color: rgba(255,255,255,.5); font-size: 9.5px; }
.ax-adm-rail .ax-rail-group { font-size: 9.5px; color: rgba(255,255,255,.38); padding: 10px 8px 4px; }
.ax-adm-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 500; }
.ax-adm-item svg { width: 16px; height: 16px; }
.ax-adm-item.is-on { background: rgba(168,208,226,.16); box-shadow: inset 3px 0 0 var(--t-accent); color: #fff; font-weight: 700; }
.ax-adm-foot { margin-top: auto; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.74); }
.ax-adm-foot strong { color: #fff; }
.ax-adm-main { min-width: 0; }
.ax-adm-top { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 24px; border-bottom: 1px solid var(--t-line); }
.ax-crumb { flex: 1; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-4); }
.ax-crumb b { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--fg-1); }
.ax-range { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--t-line-strong); font-size: 13.5px; font-weight: 500; }
.ax-range svg { width: 15px; height: 15px; color: var(--fg-4); }
.ax-adm-body { padding: 22px 24px 28px; display: grid; gap: 22px; }
.ax-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 0 26px; border-top: 1px solid var(--t-line); }
.ax-kpis li { display: grid; gap: 6px; padding: 16px 0 4px; border-top: 2px solid var(--t-accent); margin-top: -1px; }
.ax-kpis span { font-size: 12px; color: var(--fg-3); }
.ax-kpis strong { font-family: var(--t-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--t-primary); font-variant-numeric: tabular-nums; }
.ax-kpis-3 { grid-template-columns: repeat(3, 1fr); }
.ax-split { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.ax-split > div { flex: 1 1 260px; max-width: 380px; display: grid; gap: 12px; }
.ax-split-title { font-family: var(--t-display); font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.ax-funnel { flex: 2 1 380px; list-style: none; margin: 0; padding: 0; display: grid; }
.ax-funnel li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 48px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--t-divider); font-size: 13.5px; font-weight: 600; }
.ax-funnel b { font-family: 'JetBrains Mono', Menlo, monospace; font-size: 12.5px; font-weight: 500; text-align: right; }
.ax-bar { height: 8px; border-radius: 99px; background: var(--t-sunken); overflow: hidden; }
.ax-bar span { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.ax-prefer, .ax-avoid { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.ax-prefer svg, .ax-avoid svg { width: 15px; height: 15px; margin-top: 2px; }
.ax-prefer svg { color: #166534; }
.ax-avoid { color: var(--fg-3); }
.ax-avoid svg { color: #b91c1c; }
.ax-adm-h { margin: 0; font-family: var(--t-display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.ax-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; }
.ax-table th, .ax-table td { padding: 10px 8px; border-bottom: 1px solid var(--t-divider); text-align: left; }
.ax-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-4); }
.ax-table tbody th { font-weight: 600; }
.ax-intel { margin-bottom: 14px; }
.ax-intel p { font-size: 14px; line-height: 1.55; }
.ax-admin .ax-card #al-outreach { display: grid; gap: 10px; }
.ax-admin .ax-card #al-outreach[hidden] { display: none !important; }

/* hero preview and phone */
.al-hero-card.ax { max-width: 500px; }
.ax-hero-body { display: grid; gap: 10px; padding: 16px; }
.ax-hero-body .ax-wait { max-width: none; cursor: default; }
.ax-hero-body .ax-display { font-size: 22px; }
.al-phone.ax { width: 300px; max-width: 100%; justify-self: center; padding: 12px; border-radius: 40px; background: #0F172A; box-shadow: 0 30px 60px rgba(15, 23, 42, .25); box-sizing: border-box; }
.al-phone .al-phone-screen { display: grid; grid-template-rows: auto 1fr auto; border-radius: 30px; background: #fff; min-height: 480px; overflow: hidden; }
.ax-phone-body { display: grid; gap: 10px; align-content: start; padding: 14px; }
.ax-phone-body .ax-wait { max-width: none; cursor: default; }
.ax-phone-body .ax-display { font-size: 20px; }
.ax-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px 8px; border-top: 1px solid var(--t-line); }
.ax-tabs span { display: grid; justify-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--fg-3); }
.ax-tabs svg { width: 19px; height: 19px; }
.ax-tabs .is-on { color: var(--t-primary); font-weight: 700; }

@media (max-width: 1180px) {
  .ax-body { grid-template-columns: 200px minmax(0, 1fr); }
  .ax-right { display: none; }
}
@media (max-width: 900px) {
  .ax-body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .ax-rail { position: static; padding: 8px; overflow-x: auto; }
  .ax-rail-list { flex-direction: row; width: max-content; }
  .ax-rail-group, .ax-rail-foot { display: none; }
  .ax-rail [role="tab"] { width: auto; white-space: nowrap; }
  .ax-search { display: none; }
  .ax-admin { grid-template-columns: minmax(0, 1fr); }
  .ax-adm-rail { display: none; }
  .ax-grid-2, .ax-people, .ax-event-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ax-top { padding: 0 12px; gap: 8px; }
  .ax-brand > span:last-child { display: none; }
  .ax-dl, .ax-vis { grid-template-columns: minmax(0, 1fr); }
  .ax-search-form { flex-wrap: wrap; }
  .ax-search-form .ax-btn { width: 100%; }
  .ax-funnel li { grid-template-columns: minmax(0, 1fr) 40px; }
  .ax-funnel li .ax-bar { grid-column: 1 / -1; grid-row: 2; }
  .ax-adm-top .ax-search, .ax-range { display: none; }
  .ax-adm-body { padding: 16px; }
  .ax-table thead { display: none; }
  .ax-table, .ax-table tbody { display: block; }
  .ax-table tr { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--t-divider); }
  .ax-table tbody th { grid-column: 1 / -1; }
  .ax-table th, .ax-table td { padding: 0; border: 0; }
  .ax-feature-card { grid-template-columns: minmax(0, 1fr); }
  .ax-feature-band { height: 60px; }
  .al-portal .al-url { display: none; }
}
/* Grids size to min-content by default; the waiting strip's fixed-width
   items would push narrow screens past the frame. */
.ax-main .al-panel, .ax-hero-body, .ax-phone-body, .ax-tile, .ax-card, .ax-post { grid-template-columns: minmax(0, 1fr); }
.ax-hero-body .ax-wait, .ax-phone-body .ax-wait { flex: 1 1 auto; min-width: 0; }
.ax-post-head > .al-badge { flex: none; }
@media (max-width: 640px) {
  .ax-post-head { flex-wrap: wrap; }
  .ax-post-head > .al-badge { order: 3; }
  .ax-post-acts { gap: 12px; flex-wrap: wrap; }
  .ax-baseline { align-items: flex-start; flex-direction: column; }
}
/* The page's heading rule (.al h1–h4 { font-family: inherit }) outranks the
   single-class display styles, so restate the app's serif at .ax scope. */
.ax .ax-display, .ax .ax-adm-h { font-family: var(--t-display); font-weight: 400; }
.ax .ax-h4 { font-family: var(--ax-sans); }
/* Admin page header: title left, actions top-right (Admin.jsx area header). */
.ax-adm-body > .ax-row:first-child { flex-wrap: nowrap; align-items: flex-start; }
.ax-adm-body > .ax-row:first-child > div { flex: 1; min-width: 0; }
.ax-adm-body > .ax-row:first-child > .ax-row { flex: none; flex-wrap: nowrap; }
@media (max-width: 640px) {
  .ax-adm-body > .ax-row:first-child { flex-wrap: wrap; }
}
