:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#122033;background:radial-gradient(circle at top left,rgba(255,194,102,.28),transparent 28%),radial-gradient(circle at top right,rgba(58,127,246,.2),transparent 26%),linear-gradient(180deg,#f8fbff,#eef4ff);line-height:1.5;font-weight:400;color-scheme:light;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit;text-decoration:none}button,textarea{font:inherit}#root{min-height:100vh}.app-shell{position:relative;min-height:100vh;overflow:hidden;padding:32px 20px}.backdrop{position:absolute;border-radius:999px;filter:blur(20px);opacity:.65;pointer-events:none}.backdrop-left{top:-120px;left:-80px;width:260px;height:260px;background:#ffb44c59}.backdrop-right{right:-120px;top:120px;width:300px;height:300px;background:#3b82f638}.app-frame{position:relative;z-index:1;max-width:1240px;margin:0 auto;display:grid;grid-template-columns:.95fr 1.25fr;gap:24px;align-items:start}.hero-panel,.chat-panel{border:1px solid rgba(18,32,51,.08);background:#ffffffb8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 24px 80px #1f3a651f}.hero-panel{border-radius:32px;padding:32px}.eyebrow{margin:0 0 10px;font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;color:#3564d9;font-weight:700}.hero-panel h1{margin:0;font-size:clamp(2.3rem,4vw,4.5rem);line-height:.96;letter-spacing:-.05em}.hero-copy{margin:20px 0 0;font-size:1.05rem;color:#405068;max-width:38ch}.example-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.example-chip{border:0;border-radius:999px;padding:10px 16px;background:#1220330f;color:#19304f;cursor:pointer;transition:transform .2s ease,background .2s ease}.example-chip:hover{transform:translateY(-1px);background:#3564d91f}.chat-panel{border-radius:32px;min-height:calc(100vh - 64px);display:flex;flex-direction:column}.chat-header{display:flex;justify-content:space-between;gap:16px;padding:24px 24px 18px;border-bottom:1px solid rgba(18,32,51,.08)}.chat-label{margin:0;color:#5f6f86;font-size:.82rem;text-transform:uppercase;letter-spacing:.15em}.chat-header h2{margin:6px 0 0;font-size:1.3rem}.status-pill{height:fit-content;border-radius:999px;padding:8px 14px;background:#1483681f;color:#0e6b53;font-weight:700;font-size:.85rem}.status-pill.is-busy{background:#d877061f;color:#9a5803}.message-list{flex:1;padding:24px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}.message{display:flex}.message.user{justify-content:flex-end}.message.assistant{justify-content:flex-start}.bubble{width:min(100%,860px);border-radius:24px;padding:18px;background:#fff;border:1px solid rgba(18,32,51,.07);box-shadow:0 18px 40px #1f3a6514}.message.user .bubble{background:linear-gradient(135deg,#2548a8,#3564d9);color:#fff}.bubble-course{background:linear-gradient(180deg,#fffffff5,#f7fafff5)}.message-role{margin:0 0 8px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;opacity:.72}.composer{padding:20px 24px 24px;border-top:1px solid rgba(18,32,51,.08);background:#ffffffa6}.composer-label{display:block;margin-bottom:10px;font-weight:700}.composer-row{display:grid;grid-template-columns:1fr auto;gap:12px}.composer-input{width:100%;resize:vertical;min-height:88px;border-radius:20px;border:1px solid rgba(18,32,51,.12);padding:16px 18px;background:#fff;color:#122033}.composer-input:focus{outline:2px solid rgba(53,100,217,.24);border-color:#3564d95c}.submit-button,.pdf-button{border:0;border-radius:18px;padding:14px 20px;background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}.submit-button:hover,.pdf-button:hover{transform:translateY(-1px);box-shadow:0 16px 30px #ea580c33}.submit-button:disabled{cursor:not-allowed;opacity:.65;transform:none;box-shadow:none}.error-text{margin:12px 0 0;color:#b42318;font-weight:600}.loading-state{display:flex;flex-direction:column;gap:12px}.loading-text{margin:0;color:#405068}.typing-dots{display:inline-flex;gap:6px}.typing-dots span{width:8px;height:8px;border-radius:50%;background:#3564d9;animation:pulse 1.2s infinite ease-in-out}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}.course-card{display:flex;flex-direction:column;gap:24px}.course-topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.course-topbar h3{margin:0;font-size:1.7rem}.course-description{margin:8px 0 0;color:#526176;max-width:58ch}.course-section{display:flex;flex-direction:column;gap:14px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h4{margin:0;font-size:1.05rem}.section-heading span{color:#64748b;font-size:.92rem}.module-grid,.video-grid{display:grid;gap:14px}.module-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.video-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.module-card,.video-card,.empty-state{border-radius:22px;border:1px solid rgba(18,32,51,.08);background:#fffffff2;overflow:hidden}.module-card{padding:18px}.module-index{display:inline-flex;border-radius:999px;padding:6px 10px;background:#3564d91a;color:#2548a8;font-size:.78rem;font-weight:700}.module-card h5,.video-copy h5{margin:12px 0 8px;font-size:1rem}.module-card ul{margin:0;padding-left:18px;color:#4a5a70}.module-card li+li{margin-top:6px}.video-card{display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}.video-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px #1f3a651f}.video-card img{width:100%;aspect-ratio:16 / 9;object-fit:cover;background:#dce5f8}.video-copy{padding:16px}.video-copy p{margin:0;color:#5c6d85;font-size:.92rem}.empty-state{padding:18px;color:#5c6d85}@keyframes pulse{0%,80%,to{transform:scale(.75);opacity:.5}40%{transform:scale(1);opacity:1}}@media (max-width: 1080px){.app-frame{grid-template-columns:1fr}.chat-panel{min-height:auto}}@media (max-width: 720px){.app-shell{padding:18px 12px}.hero-panel,.chat-panel{border-radius:24px}.hero-panel,.message-list,.composer,.chat-header{padding-left:16px;padding-right:16px}.course-topbar,.section-heading,.composer-row{grid-template-columns:1fr;display:grid}.submit-button,.pdf-button{width:100%;text-align:center}}
