/* Calmer look for the signed-in portal and owner panel: light sidebar, flat cards, no gradients. Loaded after the base styles. */
:root{--bg:#f7f6f2;--br:#e3dfd6;--shadow:none}
[data-theme=dark]{--bg:#0b1118;--br:#223041}
body{background:var(--bg)}
.shell .side{background:var(--card);color:var(--ink);border-right:1px solid var(--br)}
.shell .side .logo{color:var(--ink)}
.shell .side .grp{color:var(--mut)}
.shell .side a{color:var(--ink);border-radius:6px;font-weight:500}
.shell .side a:hover{background:color-mix(in srgb,var(--mut) 12%,transparent);color:var(--ink);padding-left:12px}
.shell .side a.on{background:var(--pri-soft);color:var(--pri);box-shadow:none;font-weight:600}
.shell .side .foot{color:var(--mut)}
.shell .top{background:var(--card);backdrop-filter:none}
.shell .avatar{background:var(--pri);color:#fff}
.shell .card{box-shadow:none;border-radius:8px;animation:none}
.shell button,.shell .btn{border-radius:6px;box-shadow:none!important}
.shell button:hover,.shell .btn:hover{transform:none}
.shell input,.shell select,.shell textarea{border-radius:6px}
/* greeting banner: a plain card with an accent edge, not a coloured slab */
.shell .hero{background:var(--card)!important;color:var(--ink);border:1px solid var(--br);border-left:4px solid var(--pri);border-radius:8px;padding:18px 22px;animation:none}
.shell .hero:after{display:none}
.shell .hero .hello{color:var(--ink);font-size:22px}.shell .hero .hello .i{stroke:var(--pri);animation:none}
.shell .hero p{opacity:1;color:var(--ink)}.shell .hero small{opacity:1;color:var(--mut)}
.shell .hero .livebtn{background:var(--bad);color:#fff}
/* tiles */
.shell .qa{border-radius:8px;box-shadow:none;transition:border-color .15s}.shell .qa:hover{transform:none;box-shadow:none}
.shell .qa .qi{border-radius:8px}
.shell .stat .ic{background:var(--pri-soft)!important;color:var(--pri)!important;box-shadow:none!important;border-radius:8px}
.shell .stat b{color:var(--ink)}
.shell .pill{border-radius:4px}
.shell .modal .box{border-radius:10px}
/* sign-in page */
.lg{min-height:100vh;background:var(--bg);display:flex;flex-direction:column}
.lg header{background:var(--card);border-bottom:1px solid var(--br);padding:0 24px;height:62px;display:flex;align-items:center;justify-content:space-between}
.lg header .logo{color:var(--ink)}.lg header .back{color:var(--mut);font-weight:500;font-size:14.5px}
.lg main{flex:1;max-width:980px;width:100%;margin:0 auto;padding:48px 24px;display:grid;grid-template-columns:420px 1fr;gap:56px;align-items:start}
.lg .box{background:var(--card);border:1px solid var(--br);border-radius:8px;padding:28px;animation:none;max-width:none}
.lg .box h1{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:30px;margin:0 0 4px}
.lg .help{padding-top:8px}.lg .help h2{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:22px;margin:0 0 12px}
.lg .help p{margin:0 0 10px;color:var(--ink);max-width:440px}.lg .help .mut{color:var(--mut)}
.lg footer{text-align:center;color:var(--mut);font-size:13px;padding:18px}
@media(max-width:860px){.lg main{grid-template-columns:1fr;gap:28px;padding:28px 16px}}
/* ---- 0.14 polish: every page ---- */
.shell .content{max-width:1120px}
.shell .content h1{display:flex;align-items:center;gap:12px;font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:28px;font-weight:600;letter-spacing:-.01em;margin:0 0 4px}
.shell .content h1>svg,.shell .content h1>.i{flex:none;width:38px;height:38px;padding:9px;border-radius:10px;background:var(--pri-soft);stroke:var(--pri);color:var(--pri);box-sizing:border-box}
.shell .content .sub{color:var(--mut);margin:0 0 20px;max-width:640px}
.shell .content h2{font-size:17px;font-weight:650;margin:0 0 10px}
.shell .card{border:1px solid var(--br);padding:20px;margin-bottom:16px}
.shell .card.hover:hover,.shell .stat.hover:hover{border-color:var(--pri)}
/* tables */
.shell .tablewrap{border:1px solid var(--br);border-radius:8px;overflow:auto;background:var(--card)}
.shell table{border-collapse:collapse;width:100%}
.shell th{background:color-mix(in srgb,var(--mut) 7%,var(--card));color:var(--mut);font-size:12px;letter-spacing:.04em;text-transform:uppercase;font-weight:600;text-align:left;padding:10px 14px;border-bottom:1px solid var(--br)}
.shell td{padding:12px 14px;border-bottom:1px solid var(--br);vertical-align:middle}
.shell tr:last-child td{border-bottom:0}
.shell tbody tr:hover td,.shell table tr:hover td{background:color-mix(in srgb,var(--pri) 3%,transparent)}
.shell .card .tablewrap{border:0;border-radius:0}
/* empty states */
.shell .empty{text-align:center;color:var(--mut);padding:34px 16px;border:1px dashed var(--br);border-radius:8px;background:transparent}
.shell .empty svg{width:34px;height:34px;stroke:var(--mut);opacity:.7;margin-bottom:8px}
/* pills */
.shell .pill{font-weight:600;font-size:12px;padding:3px 9px}
/* chips and segmented filters */
.shell .chip{border-radius:6px;padding:6px 12px;font-weight:500}.shell .chip.on{background:var(--pri-soft);color:var(--pri);border-color:var(--pri)}
/* forms */
.shell label{font-weight:600;font-size:13.5px;margin-top:14px;display:block}
.shell input,.shell select,.shell textarea{border:1px solid var(--br);padding:10px 12px;background:var(--card);font-size:15px}
.shell input:focus,.shell select:focus,.shell textarea:focus{outline:2px solid color-mix(in srgb,var(--pri) 35%,transparent);outline-offset:0;border-color:var(--pri)}
.shell button.sec,.shell .btn.sec{background:var(--card);color:var(--ink);border:1px solid var(--br)}
.shell button.sec:hover,.shell .btn.sec:hover{border-color:var(--pri);color:var(--pri)}
.shell button.sm,.shell .btn.sm{padding:6px 12px;font-size:13px}
/* classes, subjects and scores lists */
.shell .slot{padding:14px 4px}.shell .slot .tt{font-weight:600}
.shell .qa{border:1px solid var(--br);padding:16px 10px}.shell .qa:hover{border-color:var(--pri)}
.shell .grid{gap:14px}
.shell .stat{border:1px solid var(--br);padding:16px 18px}
.shell .stat span{color:var(--mut)}
.shell .bar,.shell .meter{height:8px}.shell .meter i{background:var(--pri)}
.shell .steps .st{border-radius:8px;background:var(--card)}
.shell .steps .st.done{border-color:color-mix(in srgb,var(--ok,#2f7d4f) 40%,var(--br))}
.shell .steps .st.late{border-color:#e0b4ac;background:#fbf1ef}
.shell .week .d{border-radius:8px}
.shell .qcard{border-radius:8px}
/* toasts and notes */
.shell .toast{border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.12)}
@media(max-width:700px){.shell .content h1{font-size:23px}.shell .card{padding:16px}.shell th,.shell td{padding:10px}}

/* 0.14.2 sign-in */
.auth-modern{background:#f4f8f8;color:#142d36}
.auth-modern header{height:76px;padding:0 max(24px,calc((100vw - 1120px)/2));border-color:#e0eaea}
.auth-modern .back{display:flex;align-items:center;gap:8px}.auth-modern .back .i{width:17px;height:17px}
.auth-modern main{max-width:1120px;grid-template-columns:1fr 440px;gap:32px 80px;align-content:center;padding:48px 32px}
.auth-intro{padding:22px 0;animation:auth-enter .6s ease both}.auth-kicker{color:#087e79;letter-spacing:.18em;font-size:11px;font-weight:800}
.auth-modern .auth-intro h2{font-family:inherit;font-size:44px;line-height:1.13;letter-spacing:-.04em;margin:18px 0;color:#163b41}
.auth-lead{font-size:16px;line-height:1.7;color:#647b81;max-width:380px;margin-bottom:28px}
.auth-roles{display:grid;gap:12px}.auth-role{display:flex;gap:14px;padding:15px 16px;background:#fff;border:1px solid #e0ebea;border-radius:14px;align-items:center;transition:transform .2s,border-color .2s}
.auth-role:hover{transform:translateX(4px);border-color:#87c6c0}.auth-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e7f5f2;color:#0a8a80;flex-shrink:0}.auth-icon .i{width:23px;height:23px}
.auth-role:nth-child(2) .auth-icon{background:#eef0ff;color:#6366ac}.auth-role:nth-child(3) .auth-icon{background:#fff3dd;color:#a7781b}
.auth-role h3{font-size:14px;margin:0 0 4px;font-weight:700}.auth-role p{font-size:12px;line-height:1.6;margin:0;color:#647b81}
.auth-trust{display:flex;align-items:center;gap:8px;font-size:12px;color:#698389;margin-top:22px}.auth-trust .i{width:17px;height:17px;color:#09877b}
.auth-modern .box{padding:32px;border:1px solid #deebe9;border-radius:22px;box-shadow:0 16px 50px #153f3b0c;animation:auth-enter .6s .1s ease both;background:white}
.auth-form-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e6f5f1;color:#09877b;margin-bottom:20px;animation:auth-icon-in .7s ease both}.auth-form-icon .i{width:27px;height:27px}
.auth-modern .box h1{font-family:inherit;font-size:28px;font-weight:750;letter-spacing:-.035em;color:#163b41}.auth-modern .box .sub{font-size:13px;line-height:1.6;margin:8px 0 24px;color:#698087}
.auth-modern .box label{font-size:12px;font-weight:650;color:#425f66;margin:18px 0 7px;display:block}.auth-modern .box input,.auth-modern .box select{min-height:49px;border:1px solid #d9e6e3;border-radius:10px;background:#fafcfc;font-size:14px;transition:border-color .2s,box-shadow .2s}
.auth-modern .box input:focus,.auth-modern .box select:focus{border-color:#0b9387;outline:none;box-shadow:0 0 0 3px #0b93871a}.auth-password-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.auth-password-label a{font-size:12px;font-weight:600}
.auth-modern .auth-submit{width:100%;justify-content:center;gap:12px;min-height:50px;margin-top:24px;border-radius:11px;background:#087f77;font-size:14px;box-shadow:0 5px 14px #087f7724;transition:transform .2s,background .2s}.auth-submit:hover{background:#066960;transform:translateY(-2px)}.auth-submit .i{width:18px;height:18px;transition:transform .2s}.auth-submit:hover .i{transform:translateX(4px)}
.auth-modern #lm{font-size:12px;margin-top:10px}.auth-register{text-align:center;border-top:1px solid #e7eeec;padding-top:20px;margin-top:20px;font-size:12px;color:#698087}.auth-register a{font-weight:700;white-space:nowrap}.auth-register .i{width:12px;height:12px;vertical-align:middle}.auth-parent{font-size:12px}
.auth-support{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:22px;color:#71868b;font-size:12px;line-height:1.7}.auth-support>.i{width:22px;height:22px;color:#0a8a80}.auth-support b{font-weight:500;color:#425f66}.auth-support small{display:block;font-size:11px}
.auth-links{grid-column:1/-1;display:flex;justify-content:center;gap:16px;margin-top:0}.auth-links a{display:flex;align-items:center;gap:9px;font-size:12px;border:1px solid #deebe7;border-radius:10px;padding:12px 18px;background:#fff;color:#42696a;transition:transform .2s}.auth-links a:hover{transform:translateY(-2px)}.auth-links .i{width:16px;height:16px}.auth-links .i:last-child{width:13px;height:13px;margin-left:10px}.auth-modern footer{font-size:11px;padding:14px 16px 20px}
@keyframes auth-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes auth-icon-in{from{opacity:0;transform:scale(.85) rotate(-10deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media(max-width:860px){.auth-modern main{max-width:560px;grid-template-columns:1fr;gap:26px;padding:28px 20px}.auth-form-panel{grid-row:1}.auth-intro{padding:0}.auth-modern .auth-intro h2{font-size:30px}.auth-modern .auth-intro h2 br{display:none}.auth-lead{font-size:14px;margin-bottom:18px}.auth-modern header{height:66px;padding:0 20px}.auth-modern .back{font-size:12px}.auth-modern .box{padding:26px}.auth-links{flex-wrap:wrap;gap:10px}.auth-links a{flex:1;justify-content:center;white-space:nowrap}.auth-trust{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.auth-modern *{animation:none!important;transition:none!important}}
