:root{--wine:#581a34;--wine2:#742b4b;--rose:#a75f7a;--ink:#30202a;--muted:#8a7e86;--edge:#efeaed;--cream:#fcfaf9;--paper:#fff;--green:#1a8656;--red:#b44556;--shadow:0 12px 38px rgba(69,28,46,.055)}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;line-height:1.48}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #db9daf;outline-offset:3px}
.app-shell{max-width:800px;min-height:100vh;margin:0 auto;background:#fdfbfb;box-shadow:0 0 80px #4523330b;position:relative;padding-bottom:calc(104px + env(safe-area-inset-bottom))}.app-header{height:92px;padding:calc(12px + env(safe-area-inset-top)) 28px 16px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #f7f2f4;box-sizing:content-box;min-height:66px}.brand-group{display:flex;align-items:center;gap:11px}.brand-mark,.auth-logo{display:grid;place-items:center;color:#fff;border-radius:14px;background:linear-gradient(145deg,#7c3152,#471529);width:48px;height:48px;font-family:Georgia,serif;font-size:28px;font-weight:700;letter-spacing:-3px;box-shadow:0 6px 18px #581a343b}.brand-mark span,.auth-logo span{font-size:10px;align-self:start;margin-left:-4px;letter-spacing:0}.eyebrow{font-size:9px;font-weight:800;letter-spacing:2px;color:var(--rose)}.eyebrow.muted{color:#ad8b9b}.brand-name{font-size:20px;font-weight:850;letter-spacing:-.8px;color:var(--wine)}.brand-name em{font-style:normal;font-weight:500;color:#947587}.header-actions{display:flex;align-items:center;gap:12px}.icon-button{position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--edge);border-radius:13px;font-size:24px;color:var(--wine)}.indicator{position:absolute;top:-4px;right:-4px;background:#ab3655;color:#fff;border:2px solid white;border-radius:12px;font-size:10px;padding:2px 5px}.profile-bubble{display:grid;place-items:center;border-radius:50%;width:39px;height:39px;background:#e9d9df;color:var(--wine);font-weight:800;border:2px solid #fff}main{padding:0 27px}.intro{padding:30px 1px 20px}.intro h1{font-size:clamp(29px,6vw,39px);letter-spacing:-1.3px;line-height:1.1;margin:10px 0 9px;color:#351628}.intro p{font-size:14px;color:var(--muted);margin:0}.selector-panel{border:1px solid #eadfe3;background:linear-gradient(130deg,#fff,#fdf4f5);padding:17px 18px;border-radius:23px;box-shadow:var(--shadow);margin-bottom:22px}.student-identity{display:flex;gap:13px;align-items:center}.student-avatar{background:linear-gradient(140deg,#f0d9df,#e1c5cf);color:var(--wine);width:48px;height:48px;display:grid;place-items:center;border-radius:16px;font-size:25px;font-weight:800}.student-identity strong{display:block;font-size:16px;color:#3e2330;margin:1px 0}.student-identity small{display:block;font-size:12px;color:var(--muted)}.selectors{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.selectors select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23886f7d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;border:1px solid #e9dee2;color:#482a3a;border-radius:11px;padding:11px 31px 11px 11px;font-size:12px;font-weight:650;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectors select:first-of-type{grid-column:1/-1}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-card{background:#fff;border:1px solid var(--edge);border-radius:21px;min-height:134px;padding:17px 18px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;box-shadow:var(--shadow)}.stat-card span{font-size:12px;color:#887b84;font-weight:600}.stat-card strong{font-size:36px;line-height:1.1;letter-spacing:-1.4px;color:#42172f;font-weight:800}.stat-card small{font-size:10px;color:#9b8992}.stat-card.accent{background:linear-gradient(137deg,#68223e,#4c1931);border-color:#68223e;color:#fff}.stat-card.accent span,.stat-card.accent strong,.stat-card.accent small{color:#fff}.stat-card.accent small{opacity:.69}.stat-art{font-family:Georgia,serif;position:absolute;right:-15px;bottom:-47px;font-size:150px;color:#ffffff0b;pointer-events:none}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 16px}.section-title h2{font-size:18px;letter-spacing:-.4px;margin:0;color:#3d2030}.section-title a{font-size:12px;color:#944562;font-weight:750;white-space:nowrap}.subdued{color:#978793;font-size:12px}.lesson-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #f0e8ec;padding:14px;border-radius:20px;margin:9px 0;min-height:90px;box-shadow:0 4px 18px #491b3408}.date-tile,.time-tile{flex:0 0 60px;background:#f9eff2;border-radius:13px;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--wine)}.date-tile strong{font-size:24px;line-height:1;font-weight:800}.date-tile small{font-size:12px}.time-tile{font-size:14px;font-weight:800}.time-tile small{font-size:11px;font-weight:500;color:#967d8a}.lesson-detail{flex:1;min-width:0}.lesson-detail h3,.grade-card h3,.document-card h3{font-size:14px;font-weight:750;margin:0 0 3px;line-height:1.4}.lesson-detail p,.document-card p{font-size:12px;color:#8a7e87;margin:0 0 4px}.lesson-detail>span:not(.pill){display:inline-block;font-size:11px;color:#7e4a62;font-weight:700}.arrow-circle{font-size:23px;color:#bfa6b1;margin-right:6px}.event-card{border:1px solid #f1e9ed;border-radius:18px;background:#fff;padding:15px;margin:9px 0;display:flex;align-items:flex-start;gap:12px;position:relative;box-shadow:0 5px 20px #48253608}.event-card.unread{background:#fffbfc;border-color:#e6c9d4}.event-symbol{flex:0 0 38px;display:grid;place-items:center;background:#f9edf2;border-radius:12px;height:38px;color:#772948;font-size:20px}.event-card>div:nth-child(2){flex:1}.event-card strong{font-size:13px}.event-card p{margin:4px 0 5px;font-size:12px;color:#807782;line-height:1.5}.event-card small{font-size:10px;color:#ab919e}.new-dot,.nav-dot{display:block;background:#c04867;border-radius:50%;width:7px;height:7px}.date-heading{font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:.6px;margin:23px 0 8px;color:#a05d79}.pill{display:inline-flex;align-items:center;font-size:10px!important;padding:4px 8px;border-radius:12px;background:#f5eef1;color:#7b4b62;font-weight:700}.pill.green{background:#e7f7ee;color:#23865c}.pill.red{background:#fbeaed;color:#bd4560}.grade-card{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid var(--edge);background:#fff;border-radius:19px;margin:9px 0;gap:12px}.grade-card small{display:block;color:#9d8591;font-size:11px;margin-bottom:5px}.grade-card h3{margin-bottom:7px}.teacher-comment{font-size:12px;color:#66585f;margin:10px 0 0}.grade-badge{min-width:53px;height:53px;border-radius:15px;background:#e6f4ec;color:#18835c;display:grid;place-items:center;font-size:24px;font-weight:800}.grade-badge.low{background:#fcebee;color:#b74362}.document-card{background:#fff;border:1px solid var(--edge);border-radius:19px;padding:15px;display:flex;align-items:center;gap:13px;margin:10px 0}.doc-icon{display:grid;place-items:center;flex:0 0 44px;height:49px;border-radius:12px;background:#f4e8ee;color:#8a3b5b;font-weight:900;font-size:22px;font-family:Georgia,serif}.doc-copy{min-width:0;flex:1}.doc-copy small{display:block;color:#9d8591;font-size:11px}.doc-copy .filename{margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.download-button{flex:0 0 39px;display:grid;place-items:center;height:39px;background:#64203d;color:#fff;border-radius:13px;font-size:24px}.support-line{font-size:12px;color:#9a8993;line-height:1.6}.soft-button{border:0;background:#f2e4ea;color:#7c2b4d;border-radius:12px;padding:10px 14px;font-size:12px;font-weight:800;margin-bottom:12px}.empty-state,.empty-mini{padding:29px 22px;text-align:center;color:#947d8b;background:#fff;border:1px dashed #ead4dd;border-radius:18px;font-size:13px}.empty-state h2{color:#4a2b3c}.empty-glyph{font-size:44px;color:#a75074}.app-footer{margin:38px 0 22px;display:flex;justify-content:space-between;color:#9b8691;font-size:11px}.app-footer a{color:#a34f6e;text-decoration:underline;text-underline-offset:3px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,800px);height:calc(76px + env(safe-area-inset-bottom));padding:8px 7px calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;align-items:center;background:#fffcfded;border-top:1px solid #ecdee4;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:40;box-shadow:0 -8px 35px #421b300b}.bottom-nav a{position:relative;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;color:#ab98a3;font-size:10px;font-weight:650;padding:7px 0;border-radius:13px}.bottom-nav a.selected{color:#6e2142;background:#f6e8ee}.nav-symbol{font-size:22px;height:26px;line-height:1}.nav-dot{position:absolute;top:4px;left:60%}
.auth-body{min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse at 22% 9%,#995675 0,transparent 33%),linear-gradient(145deg,#4e1830,#2e1125);display:flex;align-items:center;justify-content:center;padding:25px 18px calc(25px + env(safe-area-inset-bottom));color:#fff}.auth-shell,.install-shell{width:min(100%,460px);padding:28px 25px 32px;background:#fff;color:var(--ink);border-radius:30px;box-shadow:0 25px 80px #220c192b}.auth-logo{width:62px;height:62px;font-size:35px;margin-bottom:32px}.auth-logo span{font-size:12px}.auth-label{margin:0 0 6px}.auth-shell h1,.install-shell h1{font-size:30px;letter-spacing:-1.1px;line-height:1.18;margin:8px 0 12px;color:#3e1b30}.auth-shell>p,.install-shell>p{font-size:13px;color:#8a7a85;line-height:1.7;margin:0 0 29px}.auth-form label{font-size:12px;display:block;font-weight:800;color:#634a58;margin:13px 0}.auth-form input{display:block;width:100%;border:1px solid #e9dfe3;background:#fcf9fa;margin-top:7px;height:52px;border-radius:12px;padding:0 15px;color:#422b37;font-size:15px}.auth-form input:focus{border-color:#ad718a;outline:2px solid #f1d7e1}.main-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:17px 19px;border-radius:14px;background:linear-gradient(110deg,#792f51,#531a36);color:#fff;font-weight:800;font-size:14px;border:0;margin-top:24px;box-shadow:0 10px 25px #4a1a3150}.main-button span{font-size:22px;line-height:1}.main-button:disabled{opacity:.6}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:23px}.auth-links a,.quiet-link{font-size:12px;font-weight:800;color:#925574}.auth-footnote{display:block;text-align:center;margin-top:33px;font-size:10px;color:#b09da7}.auth-error{background:#fce9ec;color:#aa2549;border-radius:10px;padding:11px 12px;font-size:12px}.install-shell{text-align:center}.app-icon-preview{margin:0 auto 20px;display:grid;place-items:center}.app-icon-preview img{border-radius:22px;box-shadow:0 15px 35px #4e243535}.install-guide{text-align:left;margin-top:24px;background:#faf5f7;padding:17px;border-radius:17px;border:1px solid #f2e4e9}.install-guide h2{font-size:15px;margin:0 0 8px;color:#5a2841}.install-guide p,.install-guide li{font-size:12px;line-height:1.8;color:#7e6e79}.install-guide ol{padding-left:21px;margin:0}.secondary-button{display:block;margin-top:22px;background:#f1e3e9;border-radius:13px;padding:14px;color:#773350;font-size:13px;font-weight:800}.quiet-link{display:block;margin-top:18px}.install-status{font-size:12px;color:#887481;margin-top:15px}
@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.animate-in{animation:enter .43s ease both}@media(max-width:480px){.app-header{padding:calc(8px + env(safe-area-inset-top)) 18px 10px;height:65px}.brand-name{font-size:18px}.brand-mark{width:42px;height:42px}.eyebrow{font-size:8px}main{padding:0 17px}.intro{padding-top:24px}.selector-panel{padding:14px}.stats-grid{gap:10px}.stat-card{padding:15px;min-height:122px}.stat-card strong{font-size:32px}.section-title{margin-top:27px}.auth-shell,.install-shell{padding:25px 20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.nav-symbol svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none}.icon-button svg{display:block;width:20px;height:20px;stroke:currentColor}.bottom-nav a.selected .nav-symbol svg{stroke-width:2.3}

/* QSBI Parents v2: native-like mobile shell and genuine school emblem. */
html,body{overscroll-behavior-y:contain;touch-action:pan-x pan-y}
button,input,select,textarea{touch-action:manipulation}
input,textarea,select{font-size:16px!important}
.brand-school-logo{width:43px;height:53px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 4px rgba(71,22,40,.1))}
.brand-group{gap:10px}
.brand-group .brand-name{font-size:19px;letter-spacing:-.6px}
.auth-logo{width:120px;height:130px;margin:0 auto 16px;border-radius:0;background:none;box-shadow:none;letter-spacing:normal;display:grid;place-items:center}
.auth-logo img{display:block;width:96px;height:124px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(60,17,35,.18))}
.auth-label{text-align:center;font-size:9px;letter-spacing:2.1px}
.auth-shell h1,.auth-shell>p{text-align:center}
.auth-shell h1{font-size:clamp(26px,6.4vw,32px)}
.auth-form{margin-top:25px}
.auth-footnote{margin-top:20px}
.app-footer{justify-content:center;margin-bottom:8px}
.profile-bubble{border:2px solid #fff;appearance:none;-webkit-appearance:none;cursor:pointer;font-size:16px;padding:0}
.profile-overlay[hidden],.install-guide[hidden]{display:none!important}
.profile-overlay{position:fixed;z-index:1000;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:0}
.profile-backdrop{position:absolute;inset:0;background:rgba(19,9,16,.55);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.profile-sheet{position:relative;background:#fff;border-radius:26px 26px 0 0;width:min(100%,580px);max-height:calc(94dvh - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain;padding:14px 22px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -18px 70px rgba(20,9,17,.16);animation:slide-sheet .27s cubic-bezier(.2,.8,.2,1)}
@keyframes slide-sheet{from{transform:translateY(40px);opacity:.7}to{transform:translateY(0);opacity:1}}
.profile-sheet-handle{width:42px;height:4px;background:#e3d9de;border-radius:8px;margin:0 auto 20px}
.profile-sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.profile-sheet-header h2{font-size:25px;margin:2px 0;color:#3e172b}
.profile-close{width:36px;height:36px;border-radius:50%;background:#f5eff2;border:0;color:#65334c;font-size:25px;display:grid;place-items:center}
.profile-identity{display:flex;gap:12px;align-items:center;padding:14px;border-radius:18px;background:#f9f5f7;margin-bottom:18px}
.profile-identity strong,.profile-identity small{display:block}.profile-identity strong{font-size:14px}.profile-identity small{color:#8b7984;font-size:11px;margin-top:4px}
.profile-avatar-large{width:49px;height:49px;flex:none;display:grid;place-items:center;border-radius:17px;background:#641c3c;color:#fff;font-size:20px;font-weight:800}
.profile-form label{display:block;color:#614559;font-size:12px;font-weight:700;margin:13px 0}
.profile-form input{display:block;width:100%;border:1px solid #e7dce1;background:#fcfafb;border-radius:12px;min-height:49px;padding:0 13px;margin-top:7px;color:#412337;font-weight:500}
.profile-form input:disabled{background:#f4eff1;color:#a18d98}
.profile-form label small{display:block;color:#988994;font-size:10px;margin:5px 1px}
.profile-form-divider{margin:23px 0 8px;padding-top:15px;border-top:1px solid #f0e7eb;color:#61344b;font-weight:800;font-size:13px}
.profile-form .main-button{width:100%;margin:19px 0 4px}
.profile-logout-form{margin-top:11px}.profile-logout{display:block;width:100%;border:1px solid #eadbe1;border-radius:12px;background:#fbf8f9;color:#9a3452;padding:13px;font-weight:700;font-size:13px}
.profile-toast{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(93%,460px);z-index:1100;padding:13px 17px;border-radius:13px;box-shadow:0 9px 29px #260d222c;font-size:13px;font-weight:650;background:#fff;border:1px solid #e8d7df;color:#511a35}
.profile-toast.error{background:#fff2f3;border-color:#f0bac5;color:#a7284b}
.profile-toast.success{background:#f2fff6;border-color:#b5ebc8;color:#217147}
body.profile-open{overflow:hidden}
.install-guide[hidden]{display:none}
.pwa-install-page .install-shell{padding-top:32px}
.pwa-install-page .app-icon-preview{margin:2px auto 13px;width:96px;height:96px}
.pwa-install-page .app-icon-preview img{border-radius:20px;box-shadow:0 10px 28px #5a233c19}
.pwa-install-page .install-status{margin:15px 0 8px}
@media(display-mode:standalone){.pwa-install-page{display:none!important}}
@media(max-width:480px){.brand-school-logo{width:39px;height:48px}.brand-group .brand-name{font-size:17px}.profile-sheet{padding-left:17px;padding-right:17px}.auth-body{padding-top:18px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.auth-shell{padding:22px 23px 27px}}
@media(prefers-reduced-motion:reduce){.profile-sheet{animation:none}}

@view-transition{navigation:auto}
::view-transition-old(root){animation:150ms ease both fade-out-app}
::view-transition-new(root){animation:220ms ease both fade-in-app}
@keyframes fade-out-app{to{opacity:.6}}
@keyframes fade-in-app{from{opacity:.65}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}


/* QSBI Parents v3: result subject accordion, real school logo, portrait profile. */
.qsbi-parent-app{-webkit-touch-callout:none;overscroll-behavior:contain}
.qsbi-parent-app .app-shell{touch-action:pan-x pan-y}
.qsbi-parent-app input,.qsbi-parent-app select,.qsbi-parent-app textarea{user-select:text;-webkit-user-select:text}
.qsbi-parent-app button,.qsbi-parent-app a{touch-action:manipulation}
.parent-avatar-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.profile-bubble{overflow:hidden;padding:0;isolation:isolate}
.profile-avatar-large{overflow:hidden}
.avatar-upload{margin:4px 0 18px;padding:14px;border:1px dashed #d9afbe;border-radius:14px;background:#fdf7fa}
.avatar-upload-label{display:flex!important;align-items:center;gap:8px;margin:0 0 5px!important;font-size:13px!important;color:#642c49!important;cursor:pointer}
.avatar-upload-icon{font-size:20px}
.avatar-upload input[type=file]{margin:6px 0;padding:9px 6px;min-height:42px;background:#fff;font-size:12px!important;width:100%}
.avatar-upload small{display:block;color:#9c7c8c;line-height:1.5;font-size:11px;margin-top:5px}
.avatar-remove{display:flex!important;gap:7px;align-items:center;font-size:12px!important;margin:10px 0 0!important}
.avatar-remove input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 auto;margin:0;accent-color:#5a1c37}
.subject-curtain{border:1px solid #e9d7df;background:#fff;border-radius:20px;margin:14px 0 16px;overflow:hidden;box-shadow:var(--shadow)}
.subject-curtain>summary{display:flex;align-items:center;gap:13px;padding:17px 19px;list-style:none;cursor:pointer;user-select:none;-webkit-user-select:none;outline-offset:-3px}
.subject-curtain>summary::-webkit-details-marker{display:none}
.subject-curtain-symbol{background:#f6e6ed;color:#7b2d4e;border-radius:12px;flex:0 0 41px;height:41px;display:grid;place-items:center;font-size:23px}
.subject-curtain-copy{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.subject-curtain-copy strong{color:#492437;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subject-curtain-copy small{color:#947887;font-size:11px}
.subject-chevron{font-size:24px;line-height:1;display:grid;place-items:center;color:#81425e;transition:transform .2s ease}
.subject-curtain[open] .subject-chevron{transform:rotate(180deg)}
.subject-options{border-top:1px solid #f3e8ed;padding:8px;max-height:min(45vh,340px);overflow-y:auto;overscroll-behavior:contain}
.subject-option{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px;border-radius:12px;font-size:13px;font-weight:700;color:#553348;min-height:49px}
.subject-option span:first-child{flex:1}
.subject-option span:last-child{font-size:17px;color:#a97b91}
.subject-option:hover,.subject-option:focus-visible{background:#faf0f4}
.subject-option.selected{background:#f4e4eb;color:#702747}
.subject-option.selected span:last-child{color:#6e2443}
.subject-empty-hint{margin-top:15px}
.subject-insights{scroll-margin-top:15px;padding-top:3px}
.subject-insights-title{margin:22px 0 13px}.subject-insights-title h2{margin:6px 0 0;color:#381a2c;font-size:21px;letter-spacing:-.5px}
.performance-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.performance-metric{background:white;padding:18px 15px;border-radius:18px;border:1px solid #efeaed;box-shadow:var(--shadow);min-height:127px;display:flex;flex-direction:column;gap:7px}
.performance-metric>span{font-size:11px;color:#987d8b;font-weight:700}
.performance-metric>strong{font-size:29px;color:#612342;line-height:1.1}
.performance-metric>strong small{font-size:14px;color:#a48595;font-weight:650}
.performance-metric>small{font-size:10px;color:#957e8a;line-height:1.4}
.dynamics-card{background:#fff;border:1px solid #eadfe4;border-radius:19px;padding:19px 17px;box-shadow:var(--shadow)}
.dynamics-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:17px}
.dynamics-heading>strong{font-size:14px;color:#50243c}
.dynamics-delta{font-size:13px;font-weight:850;color:#8c687b;white-space:nowrap}
.tone-green .dynamics-delta{color:#20855d}.tone-amber .dynamics-delta{color:#ae7b22}.tone-red .dynamics-delta{color:#a73e57}
.dynamics-track{position:relative;background:#f0e7eb;border-radius:15px;height:13px;overflow:visible;margin:13px 3px}
.dynamics-fill{display:block;height:100%;border-radius:15px;background:linear-gradient(90deg,#874061,#be7494)}
.tone-green .dynamics-fill{background:linear-gradient(90deg,#207d55,#51b882)}
.tone-amber .dynamics-fill{background:linear-gradient(90deg,#ad7e27,#ebbe54)}
.dynamics-marker{position:absolute;top:-5px;height:23px;width:3px;background:#2d2530;border-radius:3px;box-shadow:0 0 0 2px white;transform:translateX(-50%)}
.dynamics-legend{display:flex;justify-content:space-between;gap:10px;color:#977a8a;font-size:11px;font-weight:700;margin-top:13px}
.dynamics-unknown{font-size:12px;line-height:1.6;color:#9c7c8d;margin:0 0 12px}
.dynamics-count{font-size:11px;color:#927b89;border-top:1px solid #f4ebef;padding-top:13px;margin-top:14px}
.subject-log-heading{margin-top:25px!important}
.return-to-subjects{display:flex;gap:9px;align-items:center;justify-content:center;background:#f5e5eb;color:#733050;font-weight:800;border-radius:14px;padding:16px;margin:22px 0 7px;font-size:13px}
.return-to-subjects span{font-size:22px;line-height:.5}
.floating-subject-return[hidden]{display:none!important}
.floating-subject-return{position:fixed;bottom:calc(87px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:45;background:#6b2445;color:white;border:0;border-radius:25px;padding:11px 19px;box-shadow:0 8px 20px rgba(44,16,34,.24);font-size:12px;font-weight:800;white-space:nowrap}
.floating-subject-return span{font-size:16px;margin-right:6px}
@media(max-width:380px){.performance-metric{padding:14px 12px}.performance-metric>strong{font-size:25px}.subject-curtain>summary{padding:14px 12px}}
@media(prefers-reduced-motion:reduce){.subject-chevron{transition:none}}

/* QSBI Parents v4: clickable tiles, clear grades, compact weekly grid, attendance. */
.stat-action{cursor:pointer;transition:transform .17s ease, box-shadow .17s ease}
.stat-action:active{transform:scale(.98)}.stat-action:focus-visible{outline:3px solid #c790a6;outline-offset:3px}
.stat-arrow{position:absolute;right:14px;top:16px;font-size:23px;color:#b795a4;font-style:normal}
.stat-card.accent .stat-arrow{color:#f2cfdf}.stat-card .stat-out-of{font-size:17px;font-weight:700;color:inherit;letter-spacing:0}
.stat-card.grade-tone-red{background:#fff4f4;border-color:#f2c4cb}.grade-tone-red strong{color:#b02943}.grade-tone-red>span{color:#aa5263}
.stat-card.grade-tone-yellow{background:#fff9e7;border-color:#efdf9e}.grade-tone-yellow strong{color:#996607}.grade-tone-yellow>span{color:#96742b}
.stat-card.grade-tone-green{background:#effbf4;border-color:#b8e6cb}.grade-tone-green strong{color:#16814c}.grade-tone-green>span{color:#458a65}
.attendance-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.attendance-overview>div{background:linear-gradient(135deg,#642243,#8a4661);border-radius:18px;padding:17px;color:white;display:flex;flex-direction:column;gap:6px}
.attendance-overview>div:nth-child(2){background:#fff;border:1px solid #efeaed;color:#65314a}
.attendance-overview span{font-size:12px;opacity:.85}.attendance-overview strong{font-size:30px;line-height:1.1}.attendance-overview strong small{font-size:14px}
.attendance-subject{background:#fff;border:1px solid #efeaed;border-radius:18px;padding:19px;margin:13px 0;scroll-margin-top:90px}
.attendance-subject h3{font-size:16px;margin:0 0 16px;color:#452237}
.attendance-bar{background:#f1e6eb;border-radius:10px;height:10px;overflow:hidden}.attendance-bar>span{display:block;background:linear-gradient(90deg,#4c996c,#76cc92);height:100%;border-radius:inherit}
.attendance-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:17px}.attendance-numbers>div{display:flex;flex-direction:column;gap:2px;min-width:0}.attendance-numbers b{font-size:22px;color:#54243d}.attendance-numbers small{color:#987f8b;font-size:10px}
.attendance-unmarked{font-size:11px;color:#976b2a;margin:14px 0 0}
.weekly-day{margin:20px 0;background:#fff;border:1px solid #f0e8ed;border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
.weekly-day h3{margin:0;padding:16px 17px;background:#f8f0f4;color:#57243f;font-size:15px;display:flex;align-items:center;gap:9px}
.weekly-day-dot{width:7px;height:7px;background:#ad5272;border-radius:50%}
.weekly-lesson{display:flex;align-items:center;gap:15px;padding:14px 17px;border-top:1px solid #f6edf0}.weekly-lesson:first-of-type{border:0}
.weekly-time{min-width:57px;color:#652743;font-size:16px;display:flex;flex-direction:column;font-weight:800}.weekly-time small{font-size:11px;color:#9a7989;font-weight:500}
.weekly-lesson>div:last-child{flex:1;min-width:0}.weekly-lesson strong{display:block;color:#3f2231;font-size:14px}.weekly-lesson>div:last-child small{display:block;color:#99848e;font-size:12px;margin-top:4px}
.push-consent{background:linear-gradient(140deg,#fff,#fdf5f9);border:1px solid #ecd9e2;border-radius:18px;padding:19px 17px;margin:10px 0 22px}
.push-consent-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#52253c;font-size:15px}.push-pill{background:#f0e0e8;color:#692c4c;font-size:10px;font-weight:750;padding:4px 9px;border-radius:20px}
.push-consent p{font-size:12px;line-height:1.5;color:#8f7885;margin:12px 0}
.push-enable,.push-disable{border:0;border-radius:12px;padding:13px 16px;font-size:13px;font-weight:800;background:#67213f;color:white;min-height:44px;width:100%}.push-disable{background:#f0e6eb;color:#62283f;margin-top:8px}.push-enable[disabled]{opacity:.65;cursor:default}
@media(prefers-reduced-motion:reduce){.stat-action{transition:none}}
