:root {
    --ink: #17201d;
    --muted: #60706a;
    --cream: #f7f6f0;
    --paper: #ffffff;
    --line: #dfe5df;
    --green: #1f5c4a;
    --green-dark: #153f34;
    --violet: #7257d5;
    --shadow: 0 20px 60px rgba(32, 54, 46, .1);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow-shell { width: min(680px, calc(100% - 40px)); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(223,229,223,.8); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand strong { color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: white; background: var(--green); font-weight: 800; }
.main-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; color: #46534e; }
.main-nav a:hover, .text-link:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions form { margin: 0; }
.text-link { font-size: 14px; font-weight: 600; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding-inline: 16px; border-radius: 11px; font-size: 14px; }
.button-dark { color: white; background: var(--ink); }
.button-primary { color: white; background: var(--green); box-shadow: 0 10px 24px rgba(31,92,74,.2); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary, .button-ghost { color: var(--ink); border-color: var(--line); background: white; }
.button-light { color: var(--green-dark); background: white; }
.button-block { width: 100%; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fbfaf5 0%, #f0f7f1 100%); }
.hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; top: -240px; right: 25%; background: rgba(185,219,196,.3); filter: blur(2px); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; padding-block: 80px; }
.kicker, .eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1, .detail-hero h1 { max-width: 760px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -.05em; }
.hero h1 span { color: var(--green); }
.hero-lede { max-width: 640px; margin: 26px 0 30px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #52615b; font-size: 13px; font-weight: 600; }

.hero-panel { position: relative; min-height: 470px; border-radius: 38px; background: #dcecdf; overflow: hidden; box-shadow: var(--shadow); }
.panel-orbit { position: absolute; border: 1px solid rgba(31,92,74,.2); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; left: 50px; top: 20px; }
.orbit-two { width: 300px; height: 300px; left: 135px; top: 105px; }
.conversation-card { position: absolute; left: 50%; top: 50%; width: min(78%, 390px); padding: 30px; border-radius: 24px; background: rgba(255,255,255,.92); transform: translate(-50%, -50%); box-shadow: 0 20px 60px rgba(31,92,74,.15); }
.conversation-label { display: block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.conversation-card p { margin: 22px 0; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 700; }
.typing { display: flex; gap: 6px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8eaaa0; }
.guide-bubble { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 12px 30px rgba(31,92,74,.12); }
.guide-bubble-one { top: 48px; right: 30px; }
.guide-bubble-two { bottom: 44px; left: 26px; }
.guide-bubble strong, .guide-bubble small { display: block; }
.guide-bubble strong { font-size: 13px; }
.guide-bubble small { margin-top: 3px; color: var(--muted); }
.mini-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: white; font-weight: 800; }
.mini-avatar.violet { background: var(--violet); }
.mini-avatar.amber { background: #cf8b28; }

.section { padding-block: 100px; }
.section-soft { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-heading h2, .center-heading h2, .cta-inner h2, .dashboard-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; }
.section-heading > p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.65; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.experience-card { --accent: var(--green); display: flex; min-height: 350px; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(33,52,45,.05); transition: transform .2s ease, box-shadow .2s ease; }
.experience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.accent-violet { --accent: #7257d5; }
.accent-teal { --accent: #208d80; }
.accent-blue { --accent: #3977c8; }
.accent-amber { --accent: #c77b16; }
.accent-rose { --accent: #c65570; }
.accent-green { --accent: #3f8757; }
.card-topline, .detail-label, .chat-title-row { display: flex; align-items: center; gap: 12px; }
.experience-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: white; background: var(--accent); font-family: Manrope, sans-serif; font-weight: 800; }
.card-topline .eyebrow { margin: 0; color: var(--accent); }
.experience-card h3 { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 26px; letter-spacing: -.03em; }
.card-tagline { margin: 0; color: var(--muted); line-height: 1.55; }
.expert-line { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.expert-line strong { color: var(--ink); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.price { color: var(--ink); font-weight: 800; }
.card-link { color: var(--accent); font-weight: 800; }

.center-heading { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.steps article { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.steps span { color: var(--green); font-family: Manrope, sans-serif; font-weight: 800; }
.steps h3 { margin: 24px 0 10px; font-family: Manrope, sans-serif; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.cta-band { padding-block: 68px; color: white; background: var(--green); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.kicker.light { color: #bde2d2; }
.cta-inner h2 { max-width: 700px; }

.detail-hero { --accent: var(--green); min-height: calc(100vh - 76px); display: grid; align-items: center; padding-block: 80px; background: linear-gradient(135deg, #fbfaf6, color-mix(in srgb, var(--accent) 8%, white)); }
.detail-grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--muted); font-size: 14px; font-weight: 700; }
.detail-label { margin-bottom: 22px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-hero h1 { font-size: clamp(48px, 6vw, 70px); }
.detail-tagline { margin: 24px 0 12px; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 700; }
.detail-description { max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.expert-profile { max-width: 700px; margin-top: 28px; padding: 24px; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; background: rgba(255,255,255,.72); }
.expert-profile .eyebrow { margin-bottom: 8px; color: var(--accent); }
.expert-profile h2 { margin: 0 0 4px; font: 800 25px Manrope, sans-serif; }
.expert-profile strong { color: var(--muted); font-size: 14px; }
.expert-profile p, .knowledge-note p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.knowledge-note { max-width: 700px; margin-top: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.detail-facts span { font-weight: 700; }
.detail-facts small, .plan-row small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.enroll-panel, .confirm-card { padding: 36px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.enroll-panel h2 { margin: 8px 0 24px; font-family: Manrope, sans-serif; font-size: 31px; }
.check-list { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--muted); }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 800; }
.panel-note, .fine-print { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.panel-note a { color: var(--green); font-weight: 800; }

.form-page { min-height: calc(100vh - 76px); padding-block: 70px 110px; background: var(--cream); }
.confirm-card { --accent: var(--green); }
.confirm-card h1 { margin: 22px 0 12px; font-family: Manrope, sans-serif; font-size: 40px; letter-spacing: -.04em; }
.confirm-card > p { color: var(--muted); line-height: 1.6; }
.plan-row { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; padding: 22px; border-radius: 16px; background: var(--cream); }
.plan-price { text-align: right; }

.dashboard-hero { padding-block: 66px 54px; background: linear-gradient(135deg, #eff6f0, #faf8f1); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.dashboard-heading p:last-child { margin: 12px 0 0; color: var(--muted); }
.dashboard-section { padding-top: 54px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.subheading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.subheading-row h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 27px; }
.subheading-row span { color: var(--muted); font-size: 13px; }
.enrollment-row { --accent: var(--green); display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 20px; align-items: center; margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; }
.enrollment-copy h3 { margin: 4px 0 7px; font-family: Manrope, sans-serif; font-size: 22px; }
.enrollment-copy p { margin: 0 0 6px; color: var(--muted); }
.enrollment-copy small { color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 10px; }
.status-line .eyebrow { margin: 0; color: var(--accent); }
.status { padding: 4px 8px; border-radius: 20px; background: #edf4ee; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.account-card, .recommend-card, .empty-state, .connection-state { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }
.account-card { text-align: center; }
.avatar-large { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; color: white; background: var(--green); font: 800 24px Manrope, sans-serif; }
.account-card h3, .recommend-card h3 { margin: 0 0 6px; font-family: Manrope, sans-serif; }
.account-card p, .recommend-card p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.account-label { display: inline-block; padding: 6px 10px; border-radius: 20px; color: var(--green); background: white; font-size: 11px; font-weight: 800; }
.recommend-card { margin-top: 18px; background: white; }
.recommend-card a { color: var(--green); font-weight: 800; }
.empty-state { padding: 50px; text-align: center; }
.empty-state > span { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.empty-state h3 { margin: 10px 0; font: 700 28px Manrope, sans-serif; }
.empty-state p { max-width: 500px; margin: 0 auto 24px; color: var(--muted); }

.chat-page { --accent: var(--green); min-height: calc(100vh - 76px); padding-block: 42px 70px; background: #f5f7f4; }
.chat-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.chat-heading .back-link { margin-bottom: 20px; }
.chat-title-row .eyebrow { margin: 0 0 5px; color: var(--accent); }
.chat-title-row h1 { margin: 0; font: 800 32px Manrope, sans-serif; letter-spacing: -.04em; }
.chat-expert { margin: 12px 0 0 58px; color: var(--muted); font-size: 13px; }
.privacy-note { color: var(--muted); font-size: 12px; font-weight: 700; }
.privacy-note::before { content: "●"; margin-right: 7px; color: #43a66a; }
.chat-frame { width: 100%; height: min(720px, calc(100vh - 220px)); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 40px rgba(32,54,46,.08); }
.chat-workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; }
.learning-context { display: grid; gap: 12px; }
.context-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.context-card h2 { margin: 6px 0 8px; font: 800 19px Manrope, sans-serif; }
.context-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.context-primary { border-top: 4px solid var(--accent); }
.context-standards { display: grid; gap: 7px; margin-top: 14px; }
.context-standards span { display: grid; gap: 2px; padding: 9px; border-radius: 10px; color: var(--muted); background: #f5f7f4; font-size: 10px; line-height: 1.35; }
.context-standards b { color: var(--ink); }
.context-standards em { margin-top: 2px; color: var(--accent); font-size: 9px; font-style: normal; font-weight: 800; }
.chat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.chat-actions button { min-height: 40px; padding: 8px; border: 1px solid #cbd5cf; border-radius: 9px; color: var(--ink); background: #f8faf7; cursor: pointer; font-size: 10px; font-weight: 800; line-height: 1.25; }
.chat-actions button:hover { color: white; border-color: var(--accent); background: var(--accent); }
.context-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; text-align: center; }
.context-stats span { color: var(--muted); font-size: 9px; }
.context-stats b { display: block; margin-bottom: 3px; color: var(--ink); font: 800 18px Manrope, sans-serif; }
.recent-evidence { display: grid; gap: 7px; margin-top: 10px; }
.recent-evidence > div { padding: 9px; border-radius: 9px; background: #f5f7f4; }
.recent-evidence strong, .recent-evidence span { display: block; }
.recent-evidence strong { font-size: 10px; text-transform: capitalize; }
.recent-evidence span, .recent-evidence small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.context-progress-link { display: block; padding: 12px 14px; border-radius: 11px; color: white; background: var(--accent); font-size: 11px; font-weight: 800; text-align: center; }
.chat-support-links { display: flex; justify-content: center; gap: 13px; }
.chat-support-links a { color: var(--muted); font-size: 9px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.assessment-notice { margin: 0; padding: 0 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
#n8n-chat { --chat--color--primary: var(--accent); --chat--color--secondary: var(--accent); }
.connection-state { max-width: 680px; margin: 70px auto; text-align: center; background: white; }
.connection-state .experience-icon { margin: 0 auto; }
.connection-state h2 { font: 700 30px Manrope, sans-serif; }
.connection-state p { color: var(--muted); }
.connection-state code { display: inline-block; padding: 10px 14px; border-radius: 8px; background: #edf1ee; }

.flash { margin-top: 16px; padding: 13px 16px; border: 1px solid #b9dbc8; border-radius: 12px; color: var(--green-dark); background: #ecf8f1; font-weight: 700; }
.auth-page { min-height: calc(100vh - 76px); display: grid; align-items: center; padding: 70px 20px; background: linear-gradient(135deg, #f7f6f0, #edf6ef); }
.auth-shell { width: min(1000px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; }
.auth-intro h1 { margin: 0; font: 800 clamp(44px, 6vw, 66px)/1.02 Manrope, sans-serif; letter-spacing: -.05em; }
.auth-intro > p:not(.kicker) { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.auth-quote { max-width: 500px; margin-top: 34px; padding: 22px; border-left: 3px solid var(--green); color: var(--green-dark); background: rgba(255,255,255,.55); font: 700 18px/1.5 Manrope, sans-serif; }
.auth-benefits { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); }
.auth-benefits li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 800; }
.auth-card { padding: 38px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 8px; font: 800 32px Manrope, sans-serif; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 7px; font-size: 13px; font-weight: 800; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #ccd6d0; border-radius: 11px; outline: none; font: inherit; background: white; }
.auth-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,92,74,.1); }
.account-type-fieldset { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; border: 0; }
.account-type-fieldset legend { margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.account-type-option { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 12px; border: 1px solid #d7dfda; border-radius: 11px; cursor: pointer; }
.account-type-option:has(input:checked) { border-color: var(--green); background: #f0f7f3; box-shadow: 0 0 0 2px rgba(31,92,74,.08); }
.account-type-option input { margin-top: 3px; accent-color: var(--green); }
.account-type-option span, .account-type-option strong, .account-type-option small { display: block; }
.account-type-option small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.enrollment-profile { display: grid; gap: 8px; margin: 0 0 18px; }
.enrollment-profile label { margin-top: 6px; font-size: 13px; font-weight: 800; }
.enrollment-profile label small { color: var(--muted); font-weight: 500; }
.enrollment-profile input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #ccd6d0; border-radius: 11px; outline: none; }
.enrollment-profile input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,92,74,.1); }
.field-error { color: #9a3535; font-size: 12px; font-weight: 700; }
.pathway-section { background: #17201d; color: white; }
.pathway-section .kicker { color: #a9d4be; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pathway-card { display: flex; min-height: 280px; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.06); }
.pathway-card > span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; color: #173f34; background: #d4eadf; font: 800 16px Manrope, sans-serif; }
.pathway-card h3 { margin: 22px 0 10px; font: 800 25px Manrope, sans-serif; }
.pathway-card p { margin: 0 0 22px; color: #bfcac5; line-height: 1.6; }
.pathway-card a { margin-top: auto; color: #cce8d9; font-weight: 800; }
.school-implementation { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.school-implementation h2 { margin: 0; font: 800 clamp(36px,5vw,52px) Manrope,sans-serif; letter-spacing: -.04em; }
.school-implementation > div > p:last-of-type { color: var(--muted); line-height: 1.7; }
.implementation-steps { display: grid; gap: 12px; }
.implementation-step { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.implementation-step span { grid-row: 1 / 3; display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; color: white; background: var(--green); font-weight: 800; }
.implementation-step strong { font-family: Manrope, sans-serif; }
.implementation-step small { color: var(--muted); line-height: 1.4; }

@media (max-width: 820px) {
    .pathway-grid { grid-template-columns: 1fr; }
    .school-implementation { grid-template-columns: 1fr; gap: 34px; }
}
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.label-row label { margin: 0; }
.label-row a, .auth-switch a { color: var(--green); font-size: 12px; font-weight: 800; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px !important; color: var(--muted); font-weight: 600 !important; }
.auth-switch { margin: 22px 0 0 !important; text-align: center; }
.auth-switch a { font-size: inherit; }
.form-errors, .form-status { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.form-errors { border: 1px solid #efc1c1; color: #8d3030; background: #fff1f1; }
.form-errors p { margin: 3px 0; }
.form-status { border: 1px solid #b9dbc8; color: var(--green-dark); background: #ecf8f1; }

.admin-hero { padding-block: 70px; background: linear-gradient(135deg, #eef6f0, #faf7ed); }
.admin-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.admin-hero h1 { margin: 0; font: 800 clamp(42px, 6vw, 68px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.admin-hero p:last-child { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.admin-hero-compact { padding-block: 52px; }
.admin-hero-compact .back-link { margin-bottom: 28px; }
.admin-page { padding-block: 54px 100px; background: #f8f8f4; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -82px; margin-bottom: 58px; }
.admin-stat { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 34px rgba(32,54,46,.07); }
.admin-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-stat strong { display: block; margin-top: 10px; font: 800 36px Manrope, sans-serif; }
.admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.admin-toolbar .eyebrow { margin-bottom: 7px; }
.admin-toolbar h2 { margin: 0; font: 800 32px Manrope, sans-serif; letter-spacing: -.03em; }
.admin-guide-list { display: grid; gap: 16px; }
.admin-guide { --accent: var(--green); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.admin-guide-copy { min-width: 0; }
.admin-guide-title { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.admin-guide-title .eyebrow { margin: 0 0 5px; color: var(--accent); }
.admin-guide h3 { margin: 0; font: 800 24px Manrope, sans-serif; }
.admin-guide-copy > p { margin: 10px 0 16px; color: var(--muted); }
.admin-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.badge-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #495650; background: #edf1ee; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-ready, .status-live { color: #17603f; background: #e3f4e9; }
.status-ingesting { color: #7a520a; background: #fff1cd; }
.status-needs_update, .status-off { color: #8a3d3d; background: #fbe6e6; }
.admin-guide-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.admin-guide-meta span { min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.admin-guide-meta small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-guide-meta code { display: block; overflow: hidden; color: var(--green); text-overflow: ellipsis; white-space: nowrap; }
.admin-guide-actions { display: grid; justify-items: center; gap: 11px; }
.admin-form-shell { width: min(980px, calc(100% - 40px)); }
.admin-form { display: grid; gap: 24px; }
.form-section { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.form-section legend { padding: 0 10px; font: 800 25px Manrope, sans-serif; }
.form-section > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.training-studio { margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #f8faf7; }
.training-studio-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.training-studio-heading h2 { margin: 5px 0 7px; font: 800 27px Manrope, sans-serif; }
.training-studio-heading p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.55; }
.training-namespace { padding: 8px 11px; border: 1px solid #bfd6ca; border-radius: 9px; color: #195340; background: white; font: 700 11px monospace; }
.source-upload-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.source-upload-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.source-upload-actions p { max-width: 580px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.source-list { display: grid; gap: 9px; margin-top: 18px; }
.source-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 110px auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.source-kind { display: grid; height: 42px; place-items: center; border-radius: 10px; color: #195340; background: #e6f2eb; font-size: 9px; font-weight: 800; }
.source-copy strong, .source-copy span, .source-copy small { display: block; }
.source-copy strong { font-size: 13px; }
.source-copy span, .source-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.source-state { text-align: right; }
.source-state strong, .source-state span { display: block; }
.source-state strong { color: #805d19; font-size: 11px; }
.source-state span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.source-state.status-ready strong { color: #246548; }
.source-state.status-error strong { color: #9b3838; }
.source-actions { display: flex; gap: 6px; }
.source-actions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.source-actions button.danger { color: #9b3838; border-color: #eccaca; }
.source-empty { padding: 28px; border: 1px dashed #c7d3cc; border-radius: 14px; text-align: center; }
.source-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field, .toggle-row { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd5cf; border-radius: 11px; outline: none; color: var(--ink); background: white; font: inherit; }
.field input, .field select { min-height: 48px; padding: 0 13px; }
.field textarea { padding: 13px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,92,74,.1); }
.toggle-row { grid-template-columns: auto 1fr; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--green); }
.toggle-row span { font-size: 13px; font-weight: 700; }
.form-actions { display: flex; justify-content: end; gap: 12px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 34px; padding: 24px; border: 1px solid #efcaca; border-radius: 18px; background: #fffafa; }
.danger-zone strong { color: #812f2f; }
.danger-zone p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.button-danger { color: white; background: #963d3d; }
.button-danger:disabled { cursor: not-allowed; opacity: .45; }
.site-footer { padding-block: 48px; color: #cbd8d2; background: #14231e; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.brand-footer { color: white; }
.site-footer p { margin: 12px 0 0; font-size: 13px; }
.footer-links { display: flex; gap: 24px; align-items: center; font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .hero-grid, .detail-grid, .dashboard-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 48px; padding-block: 64px; }
    .hero-panel { min-height: 420px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { gap: 44px; }
    .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .recommend-card { margin-top: 0; }
    .auth-shell { grid-template-columns: 1fr; gap: 44px; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-guide { grid-template-columns: auto 1fr; align-items: start; }
    .admin-guide-actions { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: end; justify-items: end; }
    .admin-guide-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .chat-workspace { grid-template-columns: 1fr; }
    .learning-context { grid-template-columns: 1fr 1fr; }
    .context-primary, .assessment-notice { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .shell, .narrow-shell { width: min(100% - 28px, 1180px); }
    .site-header { position: static; }
    .nav-wrap { min-height: 68px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 32px; height: 32px; }
    .desktop-only, .nav-actions .button-ghost { display: none; }
    .nav-actions { gap: 8px; }
    .nav-actions .button-small { min-height: 36px; padding-inline: 11px; }
    .hero-grid { min-height: auto; }
    .hero h1 { font-size: 48px; }
    .hero-panel { min-height: 360px; }
    .guide-bubble-one { top: 20px; right: 14px; }
    .guide-bubble-two { bottom: 20px; left: 14px; }
    .conversation-card { width: 84%; }
    .section { padding-block: 70px; }
    .section-heading { grid-template-columns: 1fr; gap: 14px; }
    .card-grid, .steps, .detail-facts, .dashboard-side { grid-template-columns: 1fr; }
    .steps { gap: 28px; }
    .cta-inner, .dashboard-heading, .chat-heading { align-items: flex-start; flex-direction: column; }
    .detail-hero { padding-block: 54px; }
    .detail-facts { gap: 14px; }
    .enroll-panel, .confirm-card { padding: 26px; }
    .enrollment-row { grid-template-columns: auto 1fr; }
    .enrollment-row > .button { grid-column: 1 / -1; }
    .chat-frame { height: 650px; min-height: 650px; }
    .learning-context { grid-template-columns: 1fr; }
    .context-primary, .assessment-notice { grid-column: auto; }
    .footer-grid { flex-direction: column; }
    .admin-hero-row, .admin-toolbar, .danger-zone { align-items: flex-start; flex-direction: column; }
    .admin-stat-grid { margin-top: -62px; }
    .admin-guide { grid-template-columns: 1fr; }
    .admin-guide-title { flex-direction: column; }
    .admin-badges { justify-content: start; }
    .admin-guide-meta, .field-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .admin-guide-actions { grid-column: auto; justify-content: stretch; justify-items: stretch; }
    .admin-guide-actions .text-link { text-align: center; }
    .form-section { padding: 22px; }
    .form-actions { flex-direction: column-reverse; }
    .training-studio { padding: 20px; }
    .training-studio-heading, .source-upload-actions { align-items: flex-start; flex-direction: column; }
    .source-upload-form { grid-template-columns: 1fr; padding: 17px; }
    .source-upload-form .field-wide, .source-upload-actions { grid-column: auto; }
    .source-row { grid-template-columns: 48px 1fr; }
    .source-state { text-align: left; }
}
