:root{color:#1d2433;background:#f7f3ea;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{background:radial-gradient(circle at 0 0,#9641ff29,#0000 28rem),linear-gradient(135deg,#fbf6eb 0%,#eef8f6 47%,#fff7fb 100%);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{width:min(1180px,100% - 32px);margin:0 auto;padding:24px 0 40px}.topbar{align-items:center;gap:12px;margin-bottom:22px;display:flex}.topbar span{color:#667085;font-size:.92rem;display:block}.brand-mark{background:#ffcf66;border:2px solid #1d2433;border-radius:8px;place-items:center;width:44px;height:44px;font-weight:900;display:grid}.home-shell{grid-template-columns:minmax(0,1.15fr) 280px;align-items:stretch;gap:20px;display:grid}.hero-copy,.content-badge,.chat-panel,.exam-panel,.practice-panel,.video-shelf,.material-shelf{background:#ffffffc7;border:1px solid #1d24331f;border-radius:8px;box-shadow:0 18px 60px #1d243314}.hero-copy{padding:32px;position:relative;overflow:hidden}.hero-copy:after{content:"";background:linear-gradient(90deg,#0000 0 24%,#1d243314 24% 26%,#0000 26%),repeating-linear-gradient(0deg,#0000 0 13px,#1d24331a 14px);border:2px solid #1d243329;width:120px;height:80px;position:absolute;bottom:20px;right:24px;transform:rotate(-4deg)}.eyebrow{color:#7b3ff2;letter-spacing:0;text-transform:uppercase;margin:0 0 8px;font-size:.78rem;font-weight:800}h1,h2,p{margin-top:0}h1{letter-spacing:0;margin-bottom:2px;font-size:clamp(2.4rem,7vw,4.8rem);line-height:1}.hero-copy h2{margin-bottom:14px;font-size:clamp(1.35rem,3vw,2rem)}.subtitle{color:#4d5a6d;max-width:620px;margin-bottom:0;font-size:1.1rem}.content-badge{color:#fff;background:#1d2433;padding:24px}.content-badge span{color:#9ce8d8;text-transform:uppercase;font-size:.78rem;font-weight:800}.content-badge strong{margin:14px 0;font-size:1.8rem;display:block}.content-badge p{color:#d5dbe7;margin-bottom:6px}.mode-grid{grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.mode-card{color:#1d2433;text-align:left;background:#fff;border:1px solid #1d24331f;border-radius:8px;align-items:center;gap:12px;min-height:104px;padding:18px;transition:transform .16s,border-color .16s,box-shadow .16s;display:flex}.mode-card:hover,.mode-card-active{border-color:#7b3ff2;transform:translateY(-2px);box-shadow:0 14px 34px #7b3ff229}.mode-card strong,.mode-card small{display:block}.mode-card small{color:#667085;margin-top:4px;font-size:.86rem}.mode-icon{background:#f2ecff;border-radius:8px;flex:0 0 42px;place-items:center;height:42px;display:grid}.chat-panel,.exam-panel,.practice-panel{margin-top:20px;overflow:hidden}.exam-header,.practice-header{border-bottom:1px solid #1d24331a;justify-content:space-between;gap:16px;padding:20px;display:flex}.exam-header h2,.practice-header h2{margin-bottom:0}.exam-header>span,.practice-header>span{color:#0c7665;background:#eef8f6;border-radius:999px;align-self:center;padding:6px 10px;font-weight:900}.exam-start,.exam-question,.exam-review-list,.exam-actions{padding:20px}.exam-start p{color:#4d5a6d}.exam-start button,.exam-question button,.exam-actions button{color:#fff;background:#1d2433;border:0;border-radius:8px;min-height:48px;padding:0 18px;font-weight:900}.exam-question h3{max-width:840px;margin-bottom:18px;font-size:1.25rem}.exam-options{border:0;gap:10px;max-width:760px;margin:0 0 18px;padding:0;display:grid}.exam-options legend{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.exam-option{background:#fff;border:1px solid #1d243324;border-radius:8px;align-items:center;gap:10px;min-height:56px;padding:14px;display:flex}.exam-option-selected{border-color:#7b3ff2;box-shadow:0 8px 24px #7b3ff21f}.topic-result-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:20px;display:grid}.topic-result,.exam-review-item{background:#fff;border:1px solid #1d24331f;border-radius:8px}.topic-result{justify-content:space-between;gap:10px;padding:12px;display:flex}.topic-result span,.exam-review-item span{font-weight:900}.exam-review-list{gap:12px;display:grid}.exam-review-item{padding:14px}.exam-review-item h3{margin:8px 0;font-size:1rem}.exam-review-item p,.exam-review-item small{color:#4d5a6d;margin:4px 0;display:block}.exam-correct{border-color:#0c766552}.exam-wrong{border-color:#c0392b52}.exam-actions{flex-wrap:wrap;gap:10px;display:flex}.exam-actions .secondary-action{color:#0c7665;background:#eef8f6}.practice-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px;display:grid}.practice-choice-grid button{color:#1d2433;text-align:left;background:#fff;border:1px solid #1d24331f;border-radius:8px;min-height:78px;padding:16px;font-weight:900}.practice-choice-grid button:hover{border-color:#7b3ff2;box-shadow:0 14px 34px #7b3ff224}.guided-question,.practice-feedback,.practice-summary{background:#fff;border:1px solid #1d24331f;border-radius:8px;margin:20px;padding:18px}.guided-question>span{color:#0c7665;background:#eef8f6;border-radius:999px;margin-bottom:10px;padding:3px 8px;font-size:.78rem;font-weight:900;display:inline-flex}.guided-question h3{max-width:820px;font-size:1.2rem}.guided-question label{color:#4d5a6d;gap:8px;max-width:420px;margin-top:16px;font-weight:800;display:grid}.guided-question input{border:1px solid #1d24332e;border-radius:8px;min-height:48px;padding:0 14px}.three-step-note{background:#fff2cc;border-radius:8px;max-width:760px;padding:12px}.three-step-note p,.practice-feedback p,.practice-summary p{color:#4d5a6d;margin:6px 0 0}.practice-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.practice-actions button,.practice-summary button{color:#fff;background:#1d2433;border:0;border-radius:8px;min-height:44px;padding:0 16px;font-weight:900}.practice-actions .secondary-action{color:#0c7665;background:#eef8f6}.practice-feedback{background:#fffdfa}.practice-feedback>strong,.practice-summary>strong{font-size:1.05rem;display:block}.practice-feedback small{color:#667085;margin-top:8px;display:block}.practice-video{background:#eef8f6;border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;padding:12px;display:flex}.practice-video span{flex-basis:100%;font-weight:900}.practice-video a{color:#7b3ff2;font-weight:900;text-decoration:none}.practice-video button{color:#fff;background:#1d2433;border:0;border-radius:8px;min-height:40px;padding:0 14px;font-weight:900}.material-shelf{margin-top:20px;padding:20px}.material-shelf h2,.video-shelf h2{margin-bottom:14px}.video-shelf{margin-top:20px;padding:20px}.material-grid,.video-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.material-card,.video-card{color:#1d2433;background:#fff;border:1px solid #1d24331f;border-radius:8px;flex-direction:column;gap:6px;min-height:126px;padding:16px;text-decoration:none;display:flex}.video-card{min-height:0;padding:0;overflow:hidden}.video-card img{aspect-ratio:16/9;object-fit:cover;background:#eef8f6;width:100%}.video-card div{flex-direction:column;gap:6px;padding:14px;display:flex}.material-card span,.video-card span{color:#0c7665;background:#eef8f6;border-radius:999px;width:max-content;max-width:100%;padding:3px 8px;font-size:.78rem;font-weight:800}.material-card small,.video-card small{color:#667085}.video-card a,.video-nudge a{color:#7b3ff2;width:max-content;max-width:100%;font-weight:900;text-decoration:none}.chat-header{border-bottom:1px solid #1d24331a;justify-content:space-between;gap:16px;padding:20px;display:flex}.chat-header h2{margin-bottom:0}.status-stack{color:#667085;flex-direction:column;align-items:flex-end;font-size:.88rem;display:flex}.mock-pill{color:#6b4a00;background:#fff2cc;border-radius:999px;padding:4px 8px;font-weight:800}.message-list{flex-direction:column;gap:12px;min-height:340px;max-height:52vh;padding:20px;display:flex;overflow:auto}.message{border-radius:8px;max-width:min(76%,720px);padding:14px 16px}.message span{margin-bottom:6px;font-size:.78rem;font-weight:800;display:block}.message p{margin-bottom:0}.message-student{color:#fff;background:#7b3ff2;align-self:flex-end}.message-tutor{color:#1d2433;background:#eef8f6;align-self:flex-start}.loading-message{outline:2px dashed #7b3ff240}.video-nudge{background:#fffdfa;border:1px solid #7b3ff22e;border-radius:8px;max-width:min(76%,720px);padding:14px 16px}.video-nudge p,.video-nudge small{color:#4d5a6d;margin:6px 0}.video-nudge span{font-weight:900;display:block}.video-nudge div{flex-wrap:wrap;gap:10px;margin:10px 0 4px;display:flex}.video-nudge button{color:#fff;background:#1d2433;border:0;border-radius:8px;min-height:40px;padding:0 14px;font-weight:900}.composer{background:#ffffffb8;border-top:1px solid #1d24331a;grid-template-columns:auto auto auto auto 52px minmax(0,1fr) auto 52px 52px;gap:10px;padding:16px;display:grid}.composer input{background:#fff;border:1px solid #1d24332e;border-radius:8px;min-height:52px;padding:0 16px}.composer button{color:#fff;background:#1d2433;border:0;border-radius:8px;min-height:52px;padding:0 18px;font-weight:800}.composer .icon-button{color:#1d2433;background:#ffcf66;padding:0}.composer .secondary-action{color:#0c7665;background:#eef8f6}@media (width<=880px){.home-shell{grid-template-columns:1fr}.mode-grid,.material-grid,.video-grid,.topic-result-grid,.practice-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=620px){.app-shell{width:min(100% - 20px,1180px);padding-top:14px}.hero-copy,.content-badge{padding:22px}.mode-grid,.material-grid,.video-grid{grid-template-columns:1fr}.exam-header,.practice-header{flex-direction:column}.topic-result-grid,.practice-choice-grid{grid-template-columns:1fr}.mode-card{min-height:88px}.chat-header{flex-direction:column}.status-stack{align-items:flex-start}.message,.video-nudge{max-width:92%}.composer{grid-template-columns:48px 1fr 48px}.composer input{grid-area:1/1/auto/-1}.composer .secondary-action{grid-column:1/-1}.composer .secondary-action+.secondary-action{grid-column:auto}.composer button[type=submit]{grid-column:2}}
