:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17313d;
  background: #f7f8fb;
  font-synthesis: none;
  --navy: #0c3140;
  --navy-2: #144859;
  --teal: #0e8b80;
  --teal-soft: #e8f7f5;
  --purple: #7257c8;
  --purple-soft: #f1edff;
  --gold: #d9992c;
  --gold-soft: #fff6e6;
  --coral: #e36c5d;
  --coral-soft: #fff0ed;
  --ink: #17313d;
  --muted: #6f818b;
  --line: #e6ebef;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(30, 58, 70, 0.09);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(180deg, #fbfcfe 0%, #f4f7f9 100%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }

.loading-screen, .login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.loading-screen { gap: 12px; grid-auto-flow: column; color: var(--navy); font-weight: 700; }
.login-screen { background: radial-gradient(circle at 80% 20%, rgba(114,87,200,.14), transparent 32%), radial-gradient(circle at 18% 78%, rgba(14,139,128,.12), transparent 28%), #f7f8fb; }
.login-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.login-card h1 { margin: 12px 0 8px; font-size: 34px; color: var(--navy); }
.login-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.brand-lockup, .sidebar-brand { display: flex; align-items: center; gap: 12px; }
.brand-lockup img, .sidebar-brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-lockup b, .sidebar-brand b { display: block; font-size: 22px; letter-spacing: -.03em; color: var(--navy); }
.brand-lockup b span, .sidebar-brand b span { color: var(--purple); }
.brand-lockup small, .sidebar-brand small { color: var(--muted); }
.login-card form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #dbe3e8; border-radius: 14px; padding: 12px 14px; outline: none; color: var(--ink); background: #fff; transition: .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(114,87,200,.10); }
textarea { resize: vertical; }
.primary-button { border: 0; border-radius: 14px; padding: 13px 18px; color: white; background: linear-gradient(135deg, var(--navy), var(--navy-2)); font-weight: 800; box-shadow: 0 10px 24px rgba(12,49,64,.18); }
.text-button { border: 0; background: transparent; color: var(--purple); font-weight: 700; }
.form-message, .inline-error { color: var(--coral); font-weight: 700; line-height: 1.45; }
.eyebrow, .ai-kicker, .answer-mode { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .14em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { background: linear-gradient(180deg, #0c3140 0%, #092a36 100%); color: #fff; padding: 22px 15px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.sidebar-brand { padding: 2px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand b { color: #fff; }
.sidebar-brand small { color: rgba(255,255,255,.55); }
.sidebar-brand > button { display: none; margin-left: auto; border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; padding: 7px; }
.sidebar nav { display: grid; gap: 8px; margin-top: 24px; }
.nav-item { border: 0; background: transparent; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 750; text-align: left; }
.nav-item:hover, .nav-item--active { background: rgba(255,255,255,.11); color: #fff; }
.nav-item--active { box-shadow: inset 3px 0 0 #f0a33a; }
.nav-logout { margin-top: 8px; }
.sidebar-profile { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-profile > span { width: 38px; height: 38px; display: grid; place-items: center; background: linear-gradient(135deg, #7b5dd1, #e5863c); border-radius: 50%; font-weight: 900; }
.sidebar-profile b, .sidebar-profile small { display: block; }
.sidebar-profile small { color: rgba(255,255,255,.55); font-size: 11px; margin-top: 2px; }
.mobile-scrim { display: none; }

.app-main { min-width: 0; }
.topbar { height: 72px; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; }
.topbar > div b, .topbar > div small { display: block; }
.topbar > div b { color: var(--navy); font-size: 16px; }
.topbar > div small { color: var(--muted); margin-top: 2px; }
.menu-button { display: none; border: 0; background: #f1f4f6; color: var(--navy); border-radius: 11px; padding: 8px; }
.context-chip { margin-left: auto; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); padding: 7px 11px 7px 7px; font-weight: 800; }
.context-chip span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple), #9a7ce7); border-radius: 50%; font-size: 11px; }
.content-area { padding: 24px; max-width: 1500px; margin: 0 auto; }
.edge-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.today-strip, .attention-strip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 10px 28px rgba(37,59,70,.05); }
.today-strip header, .attention-strip header { display: flex; align-items: center; justify-content: space-between; color: var(--navy); margin-bottom: 10px; }
.today-strip header b, .attention-strip header b { display: block; margin-top: 4px; }
.today-class, .attention-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid #eef2f4; }
.today-class > span { min-width: 64px; color: var(--purple); font-weight: 850; font-size: 12px; }
.today-class div, .attention-item div { flex: 1; }
.today-class b, .today-class small, .attention-item b, .attention-item small { display: block; }
.today-class small, .attention-item small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); margin: 0 5px; }
.muted { color: var(--muted); margin: 8px 0 0; }

.ai-stage { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 520px); align-items: start; gap: 22px; position: relative; background: radial-gradient(circle at 35% 40%, rgba(114,87,200,.11), transparent 26%), radial-gradient(circle at 28% 58%, rgba(14,139,128,.09), transparent 28%), #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 34px; overflow: hidden; }
.ai-centre { min-height: 570px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; padding: 30px 10px; position: relative; z-index: 3; }
.ai-centre h1 { color: var(--navy); font-size: clamp(28px, 4vw, 48px); margin: 10px 0 8px; letter-spacing: -.04em; max-width: 760px; }
.ai-centre > p { color: var(--muted); max-width: 660px; margin: 0 0 22px; line-height: 1.6; }
.ai-orb { width: 180px; height: 180px; border: 0; border-radius: 50%; background: transparent; position: relative; display: grid; place-items: center; margin: 12px 0 24px; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(114,87,200,.18); animation: pulse-ring 2.6s ease-out infinite; }
.orb-ring--two { inset: -17px; animation-delay: .8s; border-color: rgba(14,139,128,.17); }
.orb-core { width: 138px; height: 138px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 3px; color: white; background: radial-gradient(circle at 35% 30%, #9d87eb 0%, #7658cc 38%, #31598d 72%, #0f837b 100%); box-shadow: 0 20px 55px rgba(71,83,151,.32), inset 0 0 22px rgba(255,255,255,.16); transition: transform .2s ease; }
.ai-orb:hover .orb-core { transform: scale(1.04); }
.ai-orb--listening .orb-core { animation: orb-breathe .9s ease-in-out infinite alternate; }
.orb-core b { font-size: 17px; }
.orb-core small { opacity: .75; }
@keyframes pulse-ring { 0% { transform: scale(.76); opacity: .55; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes orb-breathe { from { transform: scale(.96); } to { transform: scale(1.08); } }

.ask-box { width: min(710px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; border: 1px solid #dce4e9; background: #fff; border-radius: 18px; padding: 7px; box-shadow: 0 12px 30px rgba(34,55,67,.08); }
.ask-box input { border: 0; box-shadow: none; padding: 12px; }
.mic-button, .send-button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; }
.mic-button { background: var(--purple-soft); color: var(--purple); }
.mic-button--live { background: var(--coral-soft); color: var(--coral); animation: orb-breathe .7s infinite alternate; }
.send-button { background: var(--navy); color: #fff; }
.prompt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.prompt-row button { border: 1px solid #e3e8ec; background: #fff; color: #526975; border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 720; }
.prompt-row button:hover { border-color: var(--purple); color: var(--purple); }
.voice-controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.voice-chip, .icon-control { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.voice-chip--on { color: var(--teal); background: var(--teal-soft); border-color: rgba(14,139,128,.15); }
.icon-control { padding: 8px; }
.speaking-dot { color: var(--teal); font-size: 12px; font-weight: 800; }

.student-orbit { position: absolute; inset: 0 48% 0 0; pointer-events: none; z-index: 2; }
.student-bubble { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(260px) rotate(calc(var(--angle) * -1)); width: 68px; border: 0; background: transparent; pointer-events: auto; display: grid; place-items: center; gap: 4px; color: var(--muted); font-weight: 800; font-size: 11px; }
.student-bubble > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--purple), #9c84e6); border: 4px solid white; box-shadow: 0 8px 20px rgba(37,56,76,.16); transition: .2s ease; }
.student-bubble:nth-child(3n+2) > span { background: linear-gradient(135deg, #168d82, #54b8ad); }
.student-bubble:nth-child(3n+3) > span { background: linear-gradient(135deg, #d28a2c, #eba758); }
.student-bubble:hover > span, .student-bubble--selected > span { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(114,87,200,.13), 0 10px 24px rgba(37,56,76,.2); }
.student-bubble--selected small { color: var(--purple); }

.answer-card { background: #fbfcfe; border: 1px solid #e2e8ec; border-radius: 22px; padding: 22px; align-self: center; max-height: 590px; overflow: auto; box-shadow: 0 10px 34px rgba(37,59,70,.07); position: relative; z-index: 4; }
.answer-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.answer-card h2 { margin: 5px 0 0; color: var(--navy); }
.limit-badge { background: var(--gold-soft); color: #9a681b; border-radius: 999px; padding: 7px 9px; font-size: 10px; font-weight: 850; }
.answer-lead { color: #38515d; line-height: 1.7; font-size: 16px; }
.answer-sections { display: grid; gap: 10px; }
.answer-section { display: grid; grid-template-columns: auto 1fr; gap: 10px; border-radius: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); text-align: left; }
.answer-section > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.answer-section b { color: var(--navy); }
.answer-section p { margin: 4px 0 0; color: #59707b; line-height: 1.5; }
.answer-section--verified > span { color: var(--teal); background: var(--teal-soft); }
.answer-section--coach_insight > span { color: var(--purple); background: var(--purple-soft); }
.answer-section--recommendation > span { color: #b66f14; background: var(--gold-soft); }
.answer-section--insufficient > span { color: var(--coral); background: var(--coral-soft); }
.evidence-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; text-align: left; }
.evidence-box summary { cursor: pointer; color: var(--purple); font-weight: 800; }
.evidence-box p { color: var(--muted); font-size: 12px; }

.simple-page { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); min-height: 680px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.page-heading h1 { color: var(--navy); font-size: 38px; margin: 7px 0 4px; letter-spacing: -.04em; }
.page-heading p { color: var(--muted); margin: 0; }
.simple-toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.simple-toolbar label { min-width: 280px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 0 11px; color: var(--muted); }
.simple-toolbar label input { border: 0; box-shadow: none; }
.simple-toolbar select, .standalone-select { width: auto; min-width: 150px; }
.student-card-grid { display: grid; gap: 10px; }
.student-card { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 14px; text-align: left; color: var(--ink); transition: .18s ease; }
.student-card:hover { border-color: rgba(114,87,200,.35); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,59,70,.06); }
.student-card-avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-weight: 900; }
.student-card-copy > div { display: flex; align-items: center; gap: 8px; }
.student-card-copy p { margin: 4px 0; color: #4e6570; }
.student-card-copy small { color: var(--muted); }
.source-badge { font-style: normal; border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.source-badge--neskills { background: var(--teal-soft); color: var(--teal); }
.source-badge--urbanpro { background: var(--gold-soft); color: #9e6717; }
.package-mini { text-align: center; border-left: 1px solid var(--line); padding-left: 16px; }
.package-mini b, .package-mini small { display: block; }
.package-mini b { color: var(--navy); font-size: 20px; }
.package-mini small { color: var(--muted); }

.session-form { max-width: 860px; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-drop { border: 1px dashed #b9c7cf; background: #fbfcfd; border-radius: 16px; min-height: 76px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; position: relative; color: var(--muted); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { display: grid; gap: 10px; margin-top: 18px; }
.file-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 13px; border-radius: 14px; }
.file-row b, .file-row small { display: block; }
.file-row small { color: var(--muted); margin-top: 3px; }
.empty-state { display: grid; place-items: center; min-height: 300px; color: var(--muted); text-align: center; }
.empty-state b { color: var(--navy); margin-top: 8px; }
.empty-state p { margin: 4px 0 0; }
.settings-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 10px; }
.settings-card > div { display: flex; align-items: center; gap: 12px; }
.settings-card b, .settings-card small { display: block; }
.settings-card small { color: var(--muted); margin-top: 3px; }
.toggle { width: 48px; height: 28px; border: 0; background: #dbe2e6; border-radius: 999px; padding: 3px; }
.toggle span { width: 22px; height: 22px; display: block; border-radius: 50%; background: #fff; transition: .2s ease; }
.toggle--on { background: var(--teal); }
.toggle--on span { transform: translateX(20px); }
.status-pill { border-radius: 999px; background: var(--teal-soft); color: var(--teal); padding: 7px 10px; font-size: 11px; font-weight: 850; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
.spinner--dark { border-color: rgba(12,49,64,.15); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1160px) {
  .ai-stage { grid-template-columns: 1fr; }
  .answer-card { max-width: 820px; width: 100%; justify-self: center; }
  .student-orbit { inset: 0; opacity: .9; }
  .student-bubble { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(225px) rotate(calc(var(--angle) * -1)); }
}

@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 260px; transition: .22s ease; }
  .sidebar--open { transform: translateX(0); }
  .sidebar-brand > button, .menu-button { display: grid; place-items: center; }
  .mobile-scrim { display: block; position: fixed; inset: 0; border: 0; background: rgba(5,27,36,.45); opacity: 0; pointer-events: none; z-index: 25; transition: .2s; }
  .mobile-scrim--open { opacity: 1; pointer-events: auto; }
  .content-area { padding: 14px; }
  .topbar { padding: 0 14px; }
  .context-chip { max-width: 170px; overflow: hidden; }
  .edge-panels { grid-template-columns: 1fr; }
  .ai-stage { padding: 20px 14px; min-height: auto; }
  .student-orbit { position: static; display: flex; overflow-x: auto; gap: 10px; width: 100%; pointer-events: auto; padding: 4px 2px 14px; grid-column: 1; }
  .student-bubble { position: static; transform: none; flex: 0 0 64px; }
  .ai-centre { min-height: 530px; }
  .form-grid { grid-template-columns: 1fr; }
  .simple-toolbar { flex-direction: column; }
  .simple-toolbar label { min-width: 0; }
  .simple-toolbar select { width: 100%; }
}

@media (max-width: 560px) {
  .topbar > div small { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .context-chip { display: none; }
  .content-area { padding: 10px; }
  .ai-stage { border-radius: 20px; }
  .ai-centre h1 { font-size: 28px; }
  .ai-orb { width: 155px; height: 155px; }
  .orb-core { width: 120px; height: 120px; }
  .prompt-row { overflow-x: auto; justify-content: flex-start; width: 100%; flex-wrap: nowrap; padding-bottom: 4px; }
  .prompt-row button { white-space: nowrap; }
  .voice-controls { flex-wrap: wrap; justify-content: center; }
  .answer-card { border-radius: 18px; padding: 16px; }
  .simple-page { padding: 18px 14px; border-radius: 20px; }
  .page-heading h1 { font-size: 31px; }
  .student-card { grid-template-columns: auto 1fr auto; }
  .student-card > svg { display: none; }
  .package-mini { padding-left: 10px; }
}

/* Quick session and attention controls */
.attention-item--button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.attention-item--button:hover { background: #fbfcfd; }
.alert-dot--amber { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.missing-banner { max-width: 860px; display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; padding: 13px 15px; border: 1px solid rgba(227,108,93,.22); border-radius: 16px; background: var(--coral-soft); }
.missing-banner > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: var(--coral); background: #fff; font-weight: 900; }
.missing-banner b, .missing-banner small { display: block; }
.missing-banner b { color: var(--navy); }
.missing-banner small { margin-top: 3px; color: var(--muted); }
.conditional-fields { display: grid; gap: 14px; padding: 15px; border: 1px solid rgba(217,153,44,.22); border-radius: 16px; background: var(--gold-soft); }
.conditional-fields[hidden] { display: none; }
.deduct-control { align-content: start; }
.checkbox-row { min-height: 46px; display: flex; align-items: center; gap: 10px; border: 1px solid #dbe3e8; border-radius: 14px; padding: 11px 13px; background: #fff; color: var(--ink); font-weight: 650; }
.checkbox-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); box-shadow: none; }
.checkbox-row:has(input:disabled) { color: var(--muted); background: #f5f7f8; }
.suggested-actions { margin-top: 14px; padding: 13px; border-radius: 15px; background: var(--purple-soft); text-align: left; }
.suggested-actions > b { display: block; margin-bottom: 8px; color: var(--purple); font-size: 12px; letter-spacing: .04em; }
.suggested-actions > div { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(114,87,200,.12); }
.suggested-actions > div:first-of-type { border-top: 0; }
.suggested-actions span { color: var(--purple); font-weight: 900; }
.suggested-actions p { margin: 0; color: #526975; line-height: 1.45; }
.suggested-actions strong { display: block; color: var(--navy); margin-bottom: 2px; }


/* ---------- Polished AI home (v2) ---------- */
.content-area {
  max-width: 1440px;
  padding: 22px 26px 36px;
}
.edge-panels {
  max-width: 1180px;
  margin: 0 auto 16px;
}
.today-strip, .attention-strip {
  min-height: 190px;
}
.ai-stage {
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: 24px;
  padding: 26px;
  overflow: visible;
  background:
    radial-gradient(circle at 28% 48%, rgba(114,87,200,.10), transparent 31%),
    radial-gradient(circle at 34% 65%, rgba(14,139,128,.08), transparent 30%),
    #fff;
}
.ai-centre {
  grid-column: 1;
  min-height: 560px;
  justify-content: flex-start;
  padding: 14px 6px 8px;
}
.ai-heading {
  width: min(680px, 100%);
  min-height: 122px;
  display: grid;
  justify-items: center;
  align-content: start;
}
.ai-heading h1 {
  color: var(--navy);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
  margin: 8px 0 8px;
  letter-spacing: -.045em;
}
.ai-heading p {
  color: var(--muted);
  max-width: 650px;
  margin: 0;
  line-height: 1.55;
}
.ai-visual {
  width: 370px;
  height: 330px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ai-visual--student {
  height: 280px;
}
.ai-orb {
  width: 166px;
  height: 166px;
  margin: 0;
  z-index: 4;
}
.orb-core {
  width: 132px;
  height: 132px;
}
.student-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.student-bubble {
  left: 50%;
  top: 50%;
  width: 62px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(145px) rotate(calc(var(--angle) * -1));
}
.student-bubble > span {
  width: 46px;
  height: 46px;
  border-width: 3px;
}
.student-bubble small {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-rail {
  width: min(700px, 100%);
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.student-rail button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #617580;
  padding: 5px 9px 5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.student-rail button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font-size: 9px;
}
.student-rail button.is-selected {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: rgba(114,87,200,.25);
}
.ask-box {
  width: min(680px, 100%);
  margin-top: 5px;
}
.prompt-row {
  width: min(700px, 100%);
}
.voice-controls {
  margin-top: 11px;
}
.answer-card {
  grid-column: 2;
  width: 100%;
  max-height: none;
  min-height: 560px;
  align-self: stretch;
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
}
.answer-card--state {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(241,237,255,.42), rgba(232,247,245,.24)),
    #fff;
}
.answer-card--state h2 {
  color: var(--navy);
  margin: 15px 0 7px;
  font-size: 24px;
}
.answer-card--state > p {
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
}
.answer-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 22px;
  font-weight: 900;
}
.answer-card--error .answer-state-icon {
  color: var(--coral);
  background: var(--coral-soft);
}
.answer-example {
  max-width: 360px;
  margin-top: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.answer-example b {
  color: var(--purple);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.answer-example span {
  color: #526975;
}
.secondary-button {
  margin-top: 18px;
  border: 1px solid rgba(114,87,200,.22);
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 10px 14px;
  font-weight: 850;
}
.inline-error {
  display: none;
}
.answer-card header h2 {
  font-size: 26px;
  line-height: 1.12;
}
.answer-lead {
  font-size: 15px;
}
.answer-sections {
  margin-top: 14px;
}
.answer-section {
  padding: 13px;
}
.answer-section p {
  font-size: 13px;
}
.suggested-actions {
  background: linear-gradient(135deg, var(--purple-soft), #f8f6ff);
}
@media (max-width: 1160px) {
  .ai-stage {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .ai-centre {
    grid-column: 1;
    min-height: 540px;
  }
  .answer-card {
    grid-column: 1;
    min-height: 300px;
  }
}
@media (max-width: 850px) {
  .content-area {
    padding: 14px;
  }
  .ai-stage {
    padding: 18px 14px;
  }
  .ai-visual {
    width: 340px;
    height: 315px;
    max-width: 100%;
  }
  .student-orbit {
    position: absolute;
    display: block;
    overflow: visible;
    padding: 0;
  }
  .student-bubble {
    position: absolute;
    flex: none;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(132px) rotate(calc(var(--angle) * -1));
  }
  .answer-card {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .edge-panels {
    margin-bottom: 10px;
  }
  .today-strip, .attention-strip {
    min-height: auto;
  }
  .ai-heading {
    min-height: 138px;
  }
  .ai-heading h1 {
    font-size: 29px;
  }
  .ai-visual {
    width: 290px;
    height: 285px;
  }
  .ai-orb {
    width: 150px;
    height: 150px;
  }
  .orb-core {
    width: 118px;
    height: 118px;
  }
  .student-bubble {
    width: 54px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(111px) rotate(calc(var(--angle) * -1));
  }
  .student-bubble > span {
    width: 39px;
    height: 39px;
  }
  .student-bubble small {
    font-size: 9px;
  }
  .answer-card {
    min-height: 280px;
    padding: 18px;
  }
}
