:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#24345B;background:#F7FAFF;font-size:16px;line-height:1.5;--blue:#3973F6;--muted:#566780}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dce3ef;border-radius:9px;background:white;color:#2455c7;padding:10px 16px;font-weight:600}button:hover{background:#edf3ff}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #82a9ff;outline-offset:3px}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#1747c5}.link{background:none;border:0;font-size:.9rem}.brand{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;white-space:nowrap}.brand b{display:grid;place-items:center;background:var(--blue);color:white;width:37px;height:40px;border-radius:10px;font-size:1.4rem}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.11em;margin:30px 0 14px;color:var(--muted)}h1{font-size:2.4rem;line-height:1.15;letter-spacing:-.035em;margin:0 0 12px}h2{font-size:1.25rem;line-height:1.35}h3{font-size:1rem}p{color:var(--muted)}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}aside{background:white;border-right:1px solid #e1e7f1;padding:30px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}nav{display:grid;gap:8px}.nav{display:flex;align-items:center;gap:12px;border:0;text-align:left;color:#63728a;font-weight:500;padding:13px 14px}.nav.active{color:var(--blue);background:#edf3ff}.nav span{font-size:1.2rem}em{margin-left:auto;background:#dce7ff;font-size:.8rem;padding:0 6px;border-radius:4px;font-style:normal}.profile{display:flex;gap:10px;align-items:center;margin-top:auto;padding-top:40px;font-size:.9rem}.profile>b{background:#edf3ff;color:var(--blue);border-radius:50%;padding:10px 16px}.profile small{display:block;color:var(--muted)}main{padding:0 44px 50px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-bottom:1px solid #e1e7f1;font-size:.85rem;color:var(--muted)}.pill{background:white;border:1px solid #e1e7f1;border-radius:20px;padding:5px 12px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 30px}.heading p:last-child{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#24345B;color:white;border-radius:14px;padding:26px 10px;margin-bottom:32px}.stats div{padding:0 24px;border-right:1px solid #38517c}.stats div:last-child{border:0}.stats span{display:block;font-size:.9rem;color:#c6d5f4}.stats strong{font-size:2rem;font-weight:600}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.tabs button{border:0;background:transparent;color:var(--muted);font-size:.9rem}.tabs .selected{background:white;color:var(--blue);box-shadow:0 2px 5px #152d6010}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid #e0e7f2;border-radius:13px;padding:23px;min-width:0}.card-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.85rem}.badge{display:inline-block;background:#edf3ff;color:#2455c7;border-radius:5px;padding:4px 9px;font-size:.8rem;font-weight:600}.card h2{margin:20px 0 10px;overflow-wrap:anywhere}.card p{font-size:.95rem;white-space:pre-wrap;overflow-wrap:anywhere}.deadline{font-size:.875rem;margin-top:24px;color:var(--muted)}footer{border-top:1px solid #edf0f5;margin-top:18px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem}footer button{border:0;padding:4px;color:var(--blue);font-size:.875rem}code{font-size:1.35rem;letter-spacing:.07em;color:var(--blue)}.hint,small{font-size:.8rem;color:var(--muted)}.empty{text-align:center;background:white;border:1px dashed #ced9ed;border-radius:14px;padding:55px 20px}.empty>span{font-size:2rem;color:var(--blue)}.results{background:white;border:1px solid #e0e7f2;border-radius:14px;padding:0 24px}.results article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0;border-bottom:1px solid #e0e7f2}.results article:last-child{border:0}.results h3{margin:8px 0}.results p{margin:0}.results article>span{font-size:.875rem}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-intro{background:#24345B;color:white;padding:50px 11%;display:flex;flex-direction:column;justify-content:center}.auth-intro .brand{margin-bottom:70px}.auth-intro h1{font-size:3.4rem}.auth-intro p{color:#c6d5f4;max-width:370px}.auth-intro .eyebrow{color:#b4cbff}.levels{display:flex;gap:14px;margin-top:40px}.levels>span{border:1px solid #4b6594;border-radius:12px;padding:15px;font-size:1.8rem}.levels small{color:#b4cbff;font-size:.8rem}.auth-form{align-self:center;padding:40px;width:100%;max-width:510px;margin:auto}.auth-form h2{font-size:1.8rem;letter-spacing:-.025em}.auth-form .primary{width:100%}label{display:block;font-size:.9rem;font-weight:600;margin:16px 0}input,textarea,select{display:block;width:100%;border:1px solid #cbd6e8;background:#fff;border-radius:8px;padding:11px;margin-top:7px;color:#24345B}textarea{min-height:90px;resize:vertical}.error,#error{color:#b02929}dialog{width:min(680px,calc(100% - 28px));max-height:88vh;overflow:auto;border:0;border-radius:16px;padding:28px;box-shadow:0 20px 80px #132a5140}dialog::backdrop{background:#10244885}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-head h2{margin:0}.modal-head button{border:0}.question{padding:16px 0;border-bottom:1px solid #e1e7f1}.question p,.response{white-space:pre-wrap;overflow-wrap:anywhere}dialog .primary{display:block;margin-top:24px}#add{margin-top:16px}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#24345B;color:white;padding:14px 22px;border-radius:10px;max-width:90vw;z-index:5}summary{cursor:pointer;color:var(--blue);font-size:.9rem}@media(min-width:1450px){main{max-width:1350px;width:100%;margin:auto}}@media(max-width:1000px){.shell{grid-template-columns:200px 1fr}aside{padding:25px 14px}main{padding:0 24px 40px}.stats div{padding:0 14px}.heading{align-items:flex-start}.heading .primary{margin-top:35px}.auth-intro h1{font-size:2.7rem}}@media(max-width:720px){.shell{display:block}aside{height:auto;position:static;padding:15px;border-right:0;border-bottom:1px solid #e1e7f1}.brand{font-size:1rem}aside .eyebrow,.profile{display:none}nav{display:flex;margin-top:15px}.nav{padding:9px;flex:1;font-size:.875rem}aside>#logout{position:absolute;right:10px;top:16px}main{padding:0 18px 30px}header .pill{display:none}.heading{display:block;margin-bottom:22px}h1{font-size:2rem}.heading .primary{margin-top:18px}.stats{grid-template-columns:repeat(2,1fr);row-gap:20px}.stats div:nth-child(2){border:0}.cards{grid-template-columns:1fr}.results{padding:0 16px}.results article{flex-wrap:wrap}.results article>div{width:100%}.auth{display:block}.auth-intro{padding:25px}.auth-intro .brand{margin-bottom:0}.auth-intro h1,.auth-intro p,.levels{display:none}.auth-form{padding:24px}dialog{padding:20px}}
.report-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.report-controls label{flex:1;min-width:180px;margin:0}.report-controls label:nth-child(2){flex:2}.report-controls button{margin-bottom:1px}.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-summary>div{background:white;border:1px solid #dce3ef;border-radius:10px;padding:18px}.report-summary span{display:block;color:#566780;font-size:.9rem}.report-summary strong{font-size:1.8rem}.report-note{font-size:.875rem;max-width:850px}.report-filter{max-width:320px}.report-table-wrap{overflow-x:auto;background:white;border:1px solid #dce3ef;border-radius:12px}.report-table{width:100%;border-collapse:collapse;text-align:left}.report-table caption{text-align:left;padding:18px;font-weight:600}.report-table th{background:#edf3ff;color:#2455c7;font-size:.875rem}.report-table th,.report-table td{padding:15px;border-bottom:1px solid #e1e7f1;vertical-align:middle}.report-table td{font-size:.9rem}.report-table td:first-child{overflow-wrap:anywhere;min-width:160px}.report-table small{display:block}.report-status{display:inline-block;padding:5px 9px;border-radius:6px;font-size:.875rem}.report-status.missing{background:#fff0ed;color:#9a3020}.report-status.pending{background:#fff4d9;color:#765400}.report-status.reviewed{background:#e7f5ed;color:#216040}.report-table button{font-size:.875rem}.report-table tr:last-child td{border-bottom:0}@media(max-width:720px){nav{flex-wrap:wrap}.nav{flex:1 1 40%}.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.report-controls{display:block}.report-controls label{margin-bottom:14px}.report-table{min-width:680px}}
.answer-option{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce3ef;border-radius:8px;cursor:pointer}.answer-option input{display:inline-block;width:auto;margin:0;flex:none}.question-editor{background:#f5f8ff;padding:18px;border-radius:10px;margin:16px 0}.question-editor .remove-question{font-size:.875rem;color:#9a3020}.auto-summary{background:#edf3ff;border-left:4px solid #3973F6;padding:16px;color:#24345B}
.document-actions{flex-wrap:wrap}.document-actions a{display:inline-block;color:#3973F6;font-weight:600;text-decoration:none;border:1px solid #dce3ef;border-radius:7px;padding:9px 13px}.document-actions a:hover{background:#edf3ff}.document-actions button{color:#9a3020}.nav{white-space:normal}
.card footer{flex-wrap:wrap}.card footer .delete-assignment{color:#a52c24;border:1px solid #edc3bf;padding:6px 12px;border-radius:7px}.danger-button{background:#b32b24;border-color:#b32b24}.danger-button:hover{background:#92201a}
.progress-average{color:#3973F6;white-space:nowrap}.progress-table meter{display:block;width:120px;height:14px;margin-top:7px}.progress-grades{list-style:none;padding:0;min-width:210px}.progress-grades li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f5}.progress-grades li span{flex:1 1 100%;overflow-wrap:anywhere}aside{overflow-y:auto}

/* Keep scores and actions aligned independently of name/title length. */
.results article{display:grid;grid-template-columns:minmax(0,1fr) 130px 190px;gap:12px 24px;align-items:center}
.results article>div{min-width:0;width:auto;overflow-wrap:anywhere;grid-column:1;grid-row:1}
.results article>span{grid-column:2;grid-row:1;text-align:center;font-variant-numeric:tabular-nums}
.results article>button{grid-column:3;width:100%;white-space:normal}
.results article>button[data-review]{grid-row:1}
.results article>button[data-retake]{grid-row:2}
.results article:has(>button[data-retake])>div,.results article:has(>button[data-retake])>span{grid-row:1 / span 2}
@media(max-width:1000px){
.results article{grid-template-columns:minmax(0,1fr) 105px 155px;column-gap:14px}
}
@media(max-width:720px){
.results article{grid-template-columns:minmax(0,1fr) 110px;gap:14px}
.results article>div,.results article>span,.results article:has(>button[data-retake])>div,.results article:has(>button[data-retake])>span{grid-row:1}
.results article>button[data-review],.results article>button[data-retake]{grid-column:1 / -1;grid-row:auto}
}
.message-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.message-list{display:grid;gap:16px;margin-bottom:20px}.message-list .card-top{gap:12px;flex-wrap:wrap}.message-list p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:720px){nav{flex-wrap:wrap}.nav{flex:0 1 auto}}
.message-reply{margin:16px 0;padding:16px;border-left:3px solid var(--blue);background:#F7FAFF;border-radius:8px}.message-reply small{display:block;margin-top:4px}.message-reply p{margin-bottom:0}.message-list button{margin:4px 8px 4px 0}
.assignment-branches{border:1px solid #cbd6e8;border-radius:8px;margin:20px 0;padding:12px 16px;display:flex;gap:10px 20px;flex-wrap:wrap}.assignment-branches legend{font-weight:600}.assignment-branches label{display:flex;align-items:center;gap:8px;margin:4px 0}.assignment-branches input{width:18px;height:18px;margin:0;accent-color:var(--blue)}.assignment-branches small{width:100%}
.parent-pending,.parent-chart{margin:24px 0}.parent-pending article{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e0e7f2;padding:16px 0}.parent-pending p{margin-bottom:0}.chart-scroll{overflow-x:auto}.chart-scroll svg{display:block;width:100%;height:auto}.parent-chart li{overflow-wrap:anywhere}@media(max-width:720px){.parent-pending article{align-items:flex-start;flex-direction:column}}
.answer-correct{color:#176b35}.answer-wrong{color:#b42318}.badge.answer-correct{background:#eaf7ee;color:#176b35}.badge.answer-wrong{background:#fff0ee;color:#b42318}

/* Rotaven brand palette */
:root{--brand-blue:#3973F6;--yellow:#FFD447;--turquoise:#28D7C0;--coral:#FF6B6B;--blue:#2455c7;--muted:#566780;color:#24345B;background:#F7FAFF}
body{background:#F7FAFF;color:#24345B}
.brand{white-space:normal;flex-shrink:0}.brand img{display:block;width:100%;height:auto;object-fit:contain;background:white;border-radius:12px}.brand{width:190px;max-width:100%}.parent-brand{width:165px}
aside{border-color:#dee8fc;box-shadow:3px 0 20px #3973f605}.nav.active{background:#eaf0ff;color:#2455c7;box-shadow:inset 4px 0 var(--brand-blue)}.nav:hover{background:#f1f6ff}.nav em{background:var(--yellow);color:#24345B}
button{color:#2455c7;border-color:#d6e2fa}button:hover{background:#edf3ff}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--brand-blue)}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#1b45a9}.danger-button{background:#b42318;border-color:#b42318}.danger-button:hover{background:#901c13}
.stats{background:white;color:#24345B;padding:0;gap:14px;border-radius:16px}.stats div{border:0;border-radius:14px;padding:22px 24px;background:#FFD447}.stats div:nth-child(2){background:#3973F6;color:white}.stats div:nth-child(3){background:#28D7C0}.stats div:nth-child(4){background:#FF6B6B}.stats span{color:inherit}.stats strong{font-weight:700}
.badge{background:#eaf0ff;color:#2455c7}.profile>b{background:#d9faf5;color:#24345B}.pill{background:#fff6d6;border-color:#ffe58b;color:#24345B}.card,.results{border-color:#dce6f8;box-shadow:0 4px 18px #24345b04}.card-top{color:var(--muted)}.card footer{border-color:#e5ecf8}.report-summary>div{border-top:4px solid var(--turquoise)}.report-summary>div:first-child{border-top-color:var(--brand-blue)}.report-summary>div:nth-child(3){border-top-color:var(--yellow)}.report-summary>div:nth-child(4){border-top-color:var(--coral)}
.auth-intro{background:linear-gradient(145deg,#edf3ff 0%,#f7faff 52%,#dbfaf5 100%);color:#24345B}.auth-intro .brand{width:min(100%,440px);margin-bottom:44px}.auth-intro p,.auth-intro .eyebrow{color:#566780}.auth-intro h1{font-size:3.1rem}.levels>span{border:0;color:#24345B;background:#FFD447}.levels>span:nth-child(2){background:#3973F6;color:white}.levels>span:nth-child(3){background:#28D7C0}.levels>span:nth-child(4){background:#FF6B6B}.levels small{color:inherit}.auth-form h2{color:#24345B}.auth-form .eyebrow{color:#2455c7}
input,textarea,select{color:#24345B;border-color:#cbd9f1}code{color:#2455c7}#notice:not(:empty){background:#24345B}.message-reply{background:#edf7ff;border-left-color:var(--turquoise)}.parent-chart{border-top:4px solid var(--brand-blue)}.parent-pending{border-top:4px solid var(--yellow)}
.badge.answer-correct{background:#eaf7ee;color:#176b35}.badge.answer-wrong{background:#fff0ee;color:#b42318}
@media(max-width:1000px){.stats div{padding:18px 16px}.auth-intro h1{font-size:2.7rem}}
@media(max-width:720px){aside>.brand{width:160px}aside>#logout{top:24px}.auth-intro .brand{width:220px;margin-bottom:0}.stats{gap:12px}.stats div{padding:16px}.parent-brand{width:130px}header{gap:12px;flex-wrap:wrap}.auth-intro{padding:20px 24px}}
.course-picker{display:flex;align-items:center;gap:16px;max-width:400px;margin:20px 0}.course-picker select{margin:0}.course-label{margin:20px 0 0}
/* Public homepage */
.landing{background:#F7FAFF}.landing a{color:inherit;text-decoration:none}.landing a:hover{text-decoration:underline}.landing-header{max-width:1200px;margin:auto;padding:22px 32px;border:0;gap:24px}.landing-header>a{width:190px;flex-shrink:0}.landing-header img{display:block;width:100%;height:auto;border-radius:12px}.landing-header nav{display:flex;align-items:center;gap:24px;margin:0;font-size:.9rem}.landing-join{background:#FFD447;padding:12px 18px;border-radius:10px;font-weight:700}.landing-main{padding:0 32px;max-width:1200px;margin:auto;width:100%}.landing-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center;padding:64px 0 80px}.landing-kicker{color:#2455c7;font-weight:700;font-size:.8rem;letter-spacing:.08em}.landing h1{font-size:clamp(3rem,6vw,5.2rem);line-height:1.05;letter-spacing:-.05em;margin:24px 0}.landing h1 span{color:#2455c7;position:relative}.landing-lead{font-size:1.12rem;line-height:1.8;max-width:480px}.landing-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:28px}.landing-actions button{padding:14px 20px}.landing-actions a{font-weight:600;font-size:.9rem}.landing-note{font-size:.85rem;margin-top:26px}.landing-visual{background:white;padding:24px;border:1px solid #dde7fb;border-radius:26px;box-shadow:0 22px 65px #24345b0e;transform:rotate(2deg)}.landing-sample-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.85rem;font-weight:600}.landing-sample-task{background:#edf3ff;border-radius:18px;padding:26px;margin-top:24px}.landing-tag{font-size:.72rem;font-weight:700;color:#2455c7;letter-spacing:.08em}.landing-sample-task h2{font-size:1.55rem;line-height:1.3}.landing-sample-task p{font-size:.9rem;line-height:1.7}.landing-task-status{display:grid;gap:12px;margin-top:24px}.landing-task-status span{padding:10px 12px;border-radius:9px;background:#d6faf3;color:#24345B;font-size:.82rem;font-weight:600}.landing-task-status span+span{background:#fff1b4}.landing-sample-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px}.landing-sample-bottom>div:first-child{flex:1;font-size:.85rem;font-weight:600}.landing-bars{display:flex;gap:12px;height:90px;align-items:flex-end;padding-top:16px}.landing-bars i{width:28px;height:30%;background:#3973F6;border-radius:6px 6px 0 0}.landing-bars i:nth-child(2){height:45%;background:#28D7C0}.landing-bars i:nth-child(3){height:60%;background:#FFD447}.landing-bars i:nth-child(4){height:75%;background:#FF6B6B}.landing-bars i:nth-child(5){height:100%}.landing-star{font-size:5rem;color:#FFD447;line-height:1}.landing-caption{font-size:.78rem;border-top:1px solid #e5ecf8;padding-top:16px;margin-bottom:0}.landing-subjects{border-top:1px solid #dce6f8;border-bottom:1px solid #dce6f8;padding:28px 0;display:flex;align-items:center;justify-content:space-between;gap:24px}.landing-subjects p{margin:0}.landing-subjects>div{display:flex;gap:12px;flex-wrap:wrap}.landing-subjects span{background:#eaf0ff;border-radius:30px;padding:9px 18px;font-weight:600}.landing-subjects span:nth-child(2){background:#d9faf4}.landing-subjects .landing-levels{background:white;color:#566780;font-size:.9rem}.landing-section{padding:80px 0}.landing-section>h2,.landing-how h2,.landing-register h2{font-size:clamp(1.8rem,3vw,2.65rem);letter-spacing:-.035em;line-height:1.2}.landing-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:36px}.landing-role-grid article{padding:28px;background:white;border:1px solid #dce6f8;border-radius:18px}.landing-role-icon{display:inline-block;background:#FFD447;border-radius:10px;padding:10px 14px;font-weight:700}.landing-role-grid article:nth-child(2) .landing-role-icon{background:#28D7C0}.landing-role-grid article:nth-child(3) .landing-role-icon{background:#FF6B6B}.landing-role-grid h3{font-size:1.2rem;margin-top:24px}.landing-role-grid p{line-height:1.8;font-size:.95rem}.landing-how{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding:48px;background:#edf3ff;border-radius:24px}.landing-how ol{padding-left:24px;margin:0}.landing-how li{padding:12px 0 12px 8px}.landing-how p{line-height:1.7}.landing-register{text-align:center;padding:80px 20px}.landing-register .landing-actions{justify-content:center}.landing-register button:nth-child(1){background:#FFD447;color:#24345B;border-color:#FFD447}.landing-register button:nth-child(2){background:#28D7C0;color:#24345B;border-color:#28D7C0}.landing-register button:nth-child(3){background:#3973F6;color:white;border-color:#3973F6}.landing-footer{max-width:1136px;margin:0 auto;padding:24px 0;flex-wrap:wrap;color:#566780;font-size:.85rem}.landing-footer strong{color:#24345B;font-size:1.15rem}
@media(max-width:850px){.landing-hero{gap:30px}.landing-header nav{gap:12px}.landing-header nav>a:not(.landing-join){display:none}.landing-subjects{align-items:flex-start;flex-direction:column}.landing-role-grid{gap:14px}.landing-role-grid article{padding:20px}.landing-how{padding:32px;gap:30px}}
@media(max-width:600px){.landing-header{padding:16px 20px;gap:12px}.landing-header>a{width:130px}.landing-header nav{gap:8px}.landing-header nav button,.landing-join{padding:9px 12px;font-size:.8rem}.landing-main{padding:0 20px}.landing-hero{grid-template-columns:1fr;padding:32px 0 48px;gap:36px}.landing h1{font-size:3.4rem}.landing-visual{transform:none;padding:20px}.landing-role-grid,.landing-how{grid-template-columns:1fr}.landing-section{padding:48px 0}.landing-how{padding:24px;gap:16px}.landing-register{padding:48px 0}.landing-footer{margin:0 20px}.landing-footer span{flex-basis:100%}}

/* Rotaven: soft logo colours, light at the top and richer toward the bottom. */
:root{--page-gradient:linear-gradient(180deg,#fffdf2 0%,#f0fbf5 22%,#dcf6f2 44%,#d2e4ff 72%,#e6d7f5 88%,#ffd5cf 100%);background:#fffdf2}
body{min-height:100vh;background-color:#fffdf2;background-image:var(--page-gradient);background-repeat:no-repeat;background-size:100% 100%;background-attachment:fixed}
#app{min-height:100vh}
.shell,.auth,.landing,.auth-intro,.auth-form{background:transparent}
aside{background:rgba(255,255,255,.78);border-right-color:rgba(57,115,246,.14);box-shadow:4px 0 28px rgba(36,52,91,.035)}
.landing-header,main>header,.landing-footer{background:transparent}
.card,.results,.landing-visual,.landing-role-grid article{background:rgba(255,255,255,.94);box-shadow:0 8px 26px rgba(36,52,91,.06)}
.stats{background:transparent}
.landing-how{background:linear-gradient(145deg,rgba(255,255,255,.87),rgba(222,250,244,.91),rgba(220,232,255,.91));border:1px solid rgba(255,255,255,.9)}
.landing-sample-task{background:linear-gradient(155deg,#f2f6ff,#e5f9f4)}
.auth-form{background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.9);border-radius:24px;box-shadow:0 14px 42px rgba(36,52,91,.07);margin:32px auto}
dialog{background:linear-gradient(180deg,#ffffff 0%,#f3fbff 100%)}
@media(max-width:720px){aside{background:rgba(255,255,255,.84)}.auth-form{width:calc(100% - 32px);margin:16px auto 32px}}
/* Distinct, colourful navigation icons. */
.nav .menu-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(36,52,91,.04)}.menu-icon svg{width:23px;height:23px;display:block}.menu-icon-blue{background:#dce8ff;color:#2455c7}.menu-icon-green{background:#d5f5df;color:#176b35}.menu-icon-coral{background:#ffe0da;color:#b63829}.menu-icon-purple{background:#eadeff;color:#7441b3}.menu-icon-gold{background:#fff0b5;color:#986200}.menu-icon-teal{background:#c9f6ed;color:#08786c}.menu-icon-pink{background:#ffe0ee;color:#b32b6a}.nav.active .menu-icon{box-shadow:0 3px 9px rgba(36,52,91,.12)}.nav{gap:12px;padding:11px 12px}
@media(max-width:720px){.nav{gap:7px;padding:8px}.nav .menu-icon{width:30px;height:30px;flex-basis:30px;border-radius:9px}.menu-icon svg{width:21px;height:21px}}
/* Homework creation actions */
.heading:has(.homework-actions){flex-wrap:wrap;gap:22px}
.homework-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:stretch;max-width:100%}
.homework-actions .homework-action{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 20px;min-height:70px;border-radius:20px;border:1px solid transparent;font-weight:700;line-height:1.35;box-shadow:0 6px 16px rgba(36,52,91,.10);transition:transform .18s ease,box-shadow .18s ease;white-space:normal}
.homework-actions .action-symbol{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:rgba(255,255,255,.65)}
.homework-actions svg{width:24px;height:24px;display:block}
.homework-actions .action-import{background:linear-gradient(135deg,#d6faf1,#a9eadf);color:#155b55;border-color:#98dccf}
.homework-actions .action-ready{background:linear-gradient(135deg,#fff4c4,#ffdb78);color:#704711;border-color:#efce72}
.homework-actions .action-create{background:linear-gradient(135deg,#3267e7,#254db7);color:#fff;border-color:#2e59c3;box-shadow:0 7px 19px rgba(37,77,183,.23)}
.homework-actions .action-create .action-symbol{background:rgba(255,255,255,.18)}
@media(hover:hover){.homework-actions .homework-action:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(36,52,91,.17)}}
.homework-actions .homework-action:active{transform:translateY(0)}
.homework-actions .homework-action:focus-visible{outline:3px solid #24345b;outline-offset:4px}
@media(max-width:720px){.homework-actions{width:100%;gap:10px}.homework-actions .homework-action{width:100%;justify-content:flex-start;padding:12px 16px;min-height:62px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){.homework-actions .homework-action{transition:none;transform:none}}

.brand img,.landing-header img{background:transparent;border-radius:0}

/* Colourful, calm question cards and optional teacher photos. */
.student-quiz{width:min(900px,94vw);max-width:94vw;background:linear-gradient(160deg,#fffdf2,#eafbfa 55%,#e9efff)}
.student-quiz .modal-head{border-bottom:2px solid #d8e7fa;padding-bottom:18px}
.playful-question{--question-accent:#2a59ce;--question-tint:#eef3ff;border:1px solid #d9e4f4;border-left:5px solid var(--question-accent);border-radius:22px;padding:24px;margin:22px 0;background:linear-gradient(135deg,#fff,var(--question-tint));box-shadow:0 5px 18px rgba(36,52,91,.06)}
.playful-question.tone-1{--question-accent:#08756b;--question-tint:#e4faf3}.playful-question.tone-2{--question-accent:#98620d;--question-tint:#fff5d9}.playful-question.tone-3{--question-accent:#b34155;--question-tint:#ffedf0}
.question-top{display:flex;gap:12px;align-items:center}.question-number{display:grid;place-items:center;background:var(--question-accent);color:#fff;width:42px;height:42px;border-radius:14px;font-weight:800;font-size:1.2rem}.playful-question .badge{color:var(--question-accent);background:var(--question-tint)}
.playful-question h3{line-height:1.6;font-size:1.12rem;margin:18px 0;white-space:pre-wrap}
.playful-question .answer-option{display:flex;align-items:center;gap:12px;padding:15px 17px;border:2px solid #dce5ef;border-radius:15px;background:#fff;margin:10px 0;cursor:pointer;line-height:1.5}
.playful-question .answer-option:has(input:checked){border-color:var(--question-accent);background:var(--question-tint);box-shadow:0 0 0 1px var(--question-accent)}
.playful-question input[type=radio]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--question-accent)}
.playful-question textarea,.playful-question select{background:#fff;border:2px solid #dce5ef;border-radius:14px}.playful-question textarea:focus,.playful-question select:focus{outline:3px solid var(--question-accent);outline-offset:2px}
.question-photo{margin:16px 0}.question-photo img{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;border-radius:14px;background:#fff;border:1px solid #dce5ef}
.photo-editor{margin-top:16px;padding:16px;background:#eef7ff;border:1px dashed #9ab8dc;border-radius:16px}.photo-preview img{max-height:180px}.photo-editor small{display:block;color:#566780}
@media(max-width:600px){.playful-question{padding:16px;border-radius:17px}.student-quiz{padding:16px}.question-photo img{max-height:300px}}
