
:root{
 --bg:#edf1f6;--ink:#18233b;--mut:#69748b;--line:rgba(125,139,163,.18);
 --glass:rgba(255,255,255,.72);--glass2:rgba(255,255,255,.52);
 --blue:#347ff1;--blue-soft:#e8f1ff;--green:#2aa56d;--orange:#e9a441;
 --shadow:0 18px 55px rgba(44,62,96,.08);--r:22px
}
*{box-sizing:border-box}html{min-height:100%;background:#edf1f6}
body{margin:0;min-height:100vh;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
background:
 radial-gradient(circle at 13% 8%,rgba(177,211,255,.35),transparent 30%),
 radial-gradient(circle at 88% 18%,rgba(221,215,255,.34),transparent 30%),
 linear-gradient(135deg,#eef3f8,#f7f7f5 48%,#edf2f8);
background-attachment:fixed}
a{text-decoration:none;color:inherit}.topbar{position:sticky;top:0;z-index:50;padding:18px 24px 0;background:linear-gradient(to bottom,rgba(237,241,246,.92),rgba(237,241,246,0));backdrop-filter:blur(2px)}
.topbar-in{max-width:1500px;margin:auto;min-height:62px;padding:8px 14px 8px 20px;display:flex;align-items:center;gap:22px;border:1px solid rgba(255,255,255,.76);border-radius:20px;background:rgba(255,255,255,.67);backdrop-filter:blur(24px) saturate(140%);box-shadow:0 10px 34px rgba(57,73,105,.08)}
.brand{font-size:23px;font-weight:900;letter-spacing:-.04em;margin-right:16px}.brand:before{content:"▣";color:var(--blue);margin-right:10px}.nav{display:flex;gap:3px;flex:1}.nav a,.logout{padding:10px 13px;border-radius:12px;color:#56627a;font-weight:650;font-size:14px;white-space:nowrap;transition:.15s}.nav a:hover,.nav a.active{background:rgba(226,237,255,.8);color:#204f99}.logout{background:rgba(244,246,249,.7)}
main{max-width:1500px;margin:auto;padding:28px 24px 34px}.top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 18px}h1{font-size:30px;letter-spacing:-.035em;margin:0 0 5px}h2{font-size:19px;letter-spacing:-.02em;margin:0 0 8px}h3{font-size:14px;margin:0 0 7px}.mut{color:var(--mut)}.small{font-size:12px}
.card,.glass{border:1px solid rgba(255,255,255,.8);background:var(--glass);backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%);box-shadow:var(--shadow);border-radius:var(--r);padding:20px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.btn,button{appearance:none;border:1px solid rgba(116,134,163,.18);background:rgba(255,255,255,.72);color:#31405a;padding:8px 12px;border-radius:11px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:.15s;box-shadow:0 3px 10px rgba(55,72,104,.04)}.btn:hover,button:hover{background:inherit}.primary{background:linear-gradient(135deg,#408af4,#2875ea);border-color:transparent;color:#fff;box-shadow:0 8px 22px rgba(52,127,241,.2)}.good{background:linear-gradient(135deg,#36b67c,#259b67);border-color:transparent;color:#fff}
label{display:block;font-size:11px;font-weight:800;color:#59667c;margin:9px 0 5px}input,select,textarea{width:100%;padding:10px 11px;border:1px solid rgba(111,128,156,.2);border-radius:11px;background:rgba(255,255,255,.78);color:var(--ink);font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#83b3fb;box-shadow:0 0 0 3px rgba(52,127,241,.08)}
.notice{font-size:12px;color:#53627b}.metric{font-size:31px;font-weight:900}.metric-label{font-size:11px;color:var(--mut)}
.subjects{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:15px 0}.subject-card{min-height:94px;padding:17px;border-radius:18px;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.62);box-shadow:0 12px 34px rgba(51,69,101,.07);text-align:left;cursor:pointer;transition:.16s;backdrop-filter:blur(18px)}.subject-card:hover{box-shadow:0 16px 38px rgba(51,69,101,.1)}.subject-card b{display:block;font-size:15px;margin:7px 0 3px}.subject-card span{font-size:11px;color:var(--mut)}.subject-card:before{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#e7f0ff;color:#2d78e8;font-weight:900}.subject-card:nth-child(1):before{content:"∑"}.subject-card:nth-child(2):before{content:"Aa";background:#fff0d9;color:#dc7b1f}.subject-card:nth-child(3):before{content:"◉";background:#e3f6eb;color:#23945e}.subject-card:nth-child(4):before{content:"◎";background:#f7eadc;color:#d77830}.subject-card.active{border-color:#62a1ff;background:rgba(246,250,255,.86);box-shadow:0 0 0 2px rgba(52,127,241,.08),0 16px 40px rgba(52,127,241,.1)}.subject-card.locked{opacity:.48;cursor:not-allowed;transform:none}
.hero-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:15px;margin-bottom:15px}.class-hero{min-height:245px;position:relative;overflow:hidden;padding:29px 34px;background:linear-gradient(125deg,rgba(223,237,252,.92),rgba(255,255,255,.64) 48%,rgba(231,225,211,.72));}.class-hero:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-90px;bottom:-150px;background:radial-gradient(circle,rgba(96,155,236,.2),transparent 67%)}.eyebrow{font-size:14px;color:#55657f;font-weight:700}.class-name{font-size:76px;line-height:.95;font-weight:950;letter-spacing:-.065em;margin:17px 0 20px}.hero-meta{display:flex;gap:20px;color:#59677e;font-size:13px}.hero-quote{position:absolute;right:28px;bottom:26px;width:260px;padding:18px;border:1px solid rgba(255,255,255,.85);border-radius:18px;background:rgba(255,255,255,.43);backdrop-filter:blur(18px);font-size:13px;z-index:2}
.birthdays{min-height:245px}.birthday-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.birthday-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:10px}.birthday-box{padding:14px;border-radius:16px;background:rgba(245,247,252,.65);min-height:135px}.birthday-title{font-size:12px;font-weight:850;margin-bottom:10px}.person{display:flex;align-items:center;gap:9px;margin:8px 0}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#d9e8ff,#f1e9ff);font-size:11px;font-weight:900;color:#4b6592}.person b{font-size:12px}.person small{display:block;color:var(--mut);font-size:10px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,1fr);gap:15px}.activity{display:grid;gap:9px}.activity-row{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px solid rgba(120,135,158,.1)}.activity-row:last-child{border:0}.activity-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e8f1ff;color:#347ff1}.activity-row b{font-size:12px}.activity-row span{display:block;font-size:10px;color:var(--mut);margin-top:2px}
.editorbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:13px 0}.editstate{font-size:11px;color:var(--mut)}.editstate.dirty{color:#a27030;font-weight:800}.editor.locked input:not([type=hidden]),.editor.locked textarea,.editor.locked .mark label,.editor.locked .filepick{pointer-events:none;opacity:.52}.quick-wrap{overflow:auto}.quick-head,.quick-row{display:grid;grid-template-columns:190px repeat(var(--skills),minmax(105px,1fr));gap:6px;min-width:950px}.quick-head{align-items:end}.quick-row{margin:6px 0}.student-name{padding:9px;font-weight:750}.skill-head{font-size:10px;color:var(--mut);text-align:center;padding:5px}.skill-head b{color:var(--ink)}.mark{position:relative}.mark input{position:absolute;opacity:0}.mark label{margin:0;text-align:center;padding:9px 3px;border:1px solid rgba(120,135,158,.18);border-radius:9px;background:rgba(255,255,255,.7);cursor:pointer}.mark input:checked+label{background:#def1e7;border-color:#8cc1a5;color:#246a4a}
.skill-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.skill-item{padding:11px;border:1px solid rgba(120,135,158,.14);border-radius:12px;background:rgba(255,255,255,.6)}.source{font-size:10px;color:var(--mut);margin-top:5px}.source a{text-decoration:underline}.timeline{display:grid;gap:8px}.timeline-item{border-left:3px solid #c8d5e8;padding:7px 12px}.trend{height:7px;background:rgba(115,130,155,.12);border-radius:20px;overflow:hidden}.trend span{height:100%;display:block;background:linear-gradient(90deg,#65a3fa,#347ff1)}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px 9px;border-bottom:1px solid rgba(120,135,158,.12)}th{font-size:10px;text-transform:uppercase;color:var(--mut)}
.toast{position:fixed;right:25px;bottom:25px;z-index:100;background:linear-gradient(135deg,#35b77c,#269c68);color:white;border-radius:13px;padding:11px 16px;font-size:13px;font-weight:800;box-shadow:0 14px 35px rgba(37,150,99,.22);transition:.25s}.toast.hide{opacity:0;transform:translateY(8px)}
.toast.error{background:linear-gradient(135deg,#c94f55,#a93b42);box-shadow:0 14px 35px rgba(169,59,66,.22)}
.privacy-footer{max-width:1500px;margin:0 auto;padding:0 25px 24px;color:#788399;font-size:10px;display:flex;justify-content:space-between}
@media(max-width:1050px){.nav{overflow:auto}.hero-grid,.dashboard-grid{grid-template-columns:1fr}.subjects{grid-template-columns:1fr 1fr}.hero-quote{position:relative;right:auto;bottom:auto;margin-top:18px}.class-hero{min-height:auto}.birthday-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.topbar{padding:8px}.topbar-in{display:block}.nav{margin-top:8px}.logout{display:none}main{padding:18px 12px}.grid,.grid2,.subjects,.birthday-grid,.skill-list{grid-template-columns:1fr}.class-name{font-size:58px}.hero-meta{flex-wrap:wrap}}
@media print{.topbar,.no-print,.toast{display:none!important}body{background:white}main{max-width:none;padding:0}.card,.glass{box-shadow:none;border:1px solid #ddd}.privacy-footer{padding:10px 0}}

/* v1.2.2 SAFE HOTFIX */
.nav{gap:8px}
.nav a{border:1px solid transparent;outline:none!important}
.nav a:hover{
  transform:none!important;
  background:rgba(255,255,255,.34)!important;
  border-color:rgba(52,127,241,.48)!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(52,127,241,.06)!important
}
.nav a.active{
  border-color:rgba(52,127,241,.28)!important;
  outline:none!important;
  box-shadow:0 0 0 3px rgba(52,127,241,.04)!important
}
.student-meta{color:var(--mut);font-size:12px}
.student-table td{vertical-align:middle}
.student-table .empty{color:#9ba5b5}
.class-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(232,241,255,.72);font-size:11px;font-weight:800;color:#4d678c}

/* v1.3 SAFE */
.greeting{margin:0 0 16px 2px}.greeting h1{font-size:28px;margin:0 0 3px}
.hero-safe{position:relative;overflow:hidden;min-height:280px;padding:0!important;background:#dbe6f1}
.hero-safe .slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.1s ease}
.hero-safe .slide.on{opacity:1}.hero-safe .shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,32,51,.72),rgba(20,32,51,.34) 58%,rgba(20,32,51,.08))}
.hero-safe .copy{position:relative;z-index:2;color:#fff;padding:32px;height:216px;display:flex;flex-direction:column;justify-content:center}
.hero-safe .copy .eyebrow,.hero-safe .copy .mut{color:rgba(255,255,255,.82)}.hero-safe .class-name{font-size:76px;line-height:.9;margin:13px 0 17px}
.hero-safe .dots{position:absolute;z-index:3;left:32px;bottom:18px;display:flex;gap:6px}.hero-safe .dots i{display:block;width:7px;height:7px;border-radius:9px;background:rgba(255,255,255,.5)}.hero-safe .dots i.on{width:19px;background:#fff}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.metric{min-height:108px;padding:16px}.metric strong{display:block;font-size:30px;letter-spacing:-.04em;margin:7px 0 2px}
.analytics-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.stat-row{display:grid;grid-template-columns:minmax(120px,1fr) 3fr 42px;gap:10px;align-items:center;margin:12px 0;font-size:12px}.stat-bar{height:8px;background:rgba(110,130,158,.12);border-radius:10px;overflow:hidden}.stat-bar span{display:block;height:100%;background:#6ea4ee;border-radius:10px}
.insight-list{display:grid;gap:8px}.insight{padding:11px 13px;border:1px solid rgba(120,135,158,.12);border-radius:13px;background:rgba(255,255,255,.48)}.insight b{font-size:12px}.insight small{display:block;color:var(--mut);margin-top:3px}
.demo-box{border-color:rgba(52,127,241,.18);background:rgba(246,250,255,.65)}.danger-soft{color:#a04444;border-color:rgba(190,70,70,.28)}
.report-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.privacy-stamp{font-size:11px;color:var(--mut);margin-top:14px}
@media(max-width:900px){.metric-grid{grid-template-columns:1fr 1fr}.analytics-grid,.report-grid{grid-template-columns:1fr}.hero-safe .class-name{font-size:62px}}

/* v1.3.2 UI / ROLE / MOBILE — final overrides */
:root{--focus:#4b8df4;--focus-soft:rgba(75,141,244,.14)}
.nav{gap:10px!important}
.nav a,.btn,button{transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease,transform .18s ease}
.nav a{border:1px solid transparent!important;box-shadow:none!important}
.nav a:hover,.nav a:focus-visible{background:rgba(255,255,255,.38)!important;border-color:rgba(70,132,226,.48)!important;box-shadow:0 0 0 3px rgba(70,132,226,.07)!important;color:var(--ink)!important}
.nav a.active{background:rgba(232,241,255,.68)!important;border-color:rgba(70,132,226,.34)!important;box-shadow:0 0 0 3px rgba(70,132,226,.05)!important}
button.primary,.btn.primary,a.btn.primary{background:#347ff0!important;color:#fff!important;border-color:#347ff0!important}
button.primary:hover,.btn.primary:hover,a.btn.primary:hover,
button.primary:focus-visible,.btn.primary:focus-visible,a.btn.primary:focus-visible{
 background:#347ff0!important;color:#fff!important;border-color:#1f67d2!important;
 box-shadow:0 0 0 3px rgba(52,127,240,.18),0 8px 20px rgba(52,127,240,.16)!important;
 transform:none
}
button:not(.primary):hover,.btn:not(.primary):hover{border-color:rgba(70,132,226,.48)!important;box-shadow:0 0 0 3px rgba(70,132,226,.07)!important}
.mobile-menu-btn{display:none}.admin-badge{padding:6px 10px;border-radius:999px;background:rgba(52,127,240,.1);color:#2868bd;font-size:10px;font-weight:900;letter-spacing:.08em}
.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.admin-action{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;text-decoration:none;color:var(--ink);min-height:92px}.admin-action:hover{border-color:rgba(70,132,226,.42);box-shadow:0 0 0 3px rgba(70,132,226,.06),var(--shadow)}.admin-action h2{margin:0 0 3px}.admin-action p{margin:0}.admin-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(52,127,240,.09);color:#347ff0;font-weight:900}.system-status{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4eaf78;margin-right:6px}

/* phone */
@media(max-width:720px){
 body{overflow-x:hidden}
 main{padding-left:14px!important;padding-right:14px!important}
 .topbar{padding:10px 12px!important}
 .topbar-in{min-height:50px;padding:0 12px!important;border-radius:18px!important;position:relative}
 .brand{font-size:19px!important}
 .mobile-menu-btn{display:flex!important;margin-left:auto;width:38px;height:38px;padding:9px;border:0!important;background:transparent!important;box-shadow:none!important;flex-direction:column;justify-content:center;gap:4px}
 .mobile-menu-btn span{display:block;width:20px;height:2px;border-radius:4px;background:var(--ink)}
 .logout{margin-left:6px;font-size:11px}
 .nav{display:none!important;position:absolute;z-index:100;left:0;right:0;top:58px;padding:9px;background:rgba(250,252,255,.97);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(120,140,165,.18);border-radius:17px;box-shadow:0 18px 38px rgba(35,55,85,.16);flex-direction:column;align-items:stretch!important;gap:4px!important}
 .menu-open .nav{display:flex!important}
 .nav a{width:100%;box-sizing:border-box;padding:11px 13px!important;border-radius:11px!important}
 .greeting{margin-top:3px}.greeting h1{font-size:24px!important}
 .hero-safe{min-height:220px!important;border-radius:20px!important}.hero-safe .copy{height:166px!important;padding:25px!important}.hero-safe .class-name{font-size:58px!important}.hero-safe .dots{left:25px!important;bottom:15px!important}
 .home-grid,.grid2,.grid3,.analytics-grid,.report-grid,.admin-grid{grid-template-columns:1fr!important}
 .metric-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}.metric{min-height:88px!important;padding:13px!important}.metric strong{font-size:25px!important}
 .subject-grid{grid-template-columns:1fr 1fr!important}
 .top{align-items:flex-start!important;gap:10px!important}.top h1{font-size:28px!important}
 .card{border-radius:18px!important;padding:15px!important}
 .quick-actions{grid-template-columns:1fr!important}
 .responsive-table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .responsive-table th,.responsive-table td{white-space:nowrap}
 .stat-row{grid-template-columns:105px 1fr 32px!important}
 .privacy-footer{padding:18px 16px!important;gap:8px!important;flex-direction:column!important}
 .admin-metrics{grid-template-columns:1fr 1fr!important}
}
@media(max-width:420px){
 .metric-grid,.admin-metrics{grid-template-columns:1fr 1fr!important}
 .subject-grid{grid-template-columns:1fr 1fr!important}
 .hero-safe .class-name{font-size:52px!important}
 .logout{font-size:0}.logout:after{content:'↪';font-size:18px}
}

/* v1.3.3 LOGIN / HERO / BUTTON OUTLINE */
.login-page{min-height:100vh;margin:0;background:
 radial-gradient(circle at 18% 18%,rgba(255,224,173,.38),transparent 30%),
 radial-gradient(circle at 82% 15%,rgba(169,207,255,.46),transparent 33%),
 linear-gradient(135deg,#f8fbff,#edf5ff 48%,#fff7ed);display:grid;place-items:center;padding:28px;box-sizing:border-box}
.login-shell{width:100%;max-width:540px;padding:0!important;margin:0!important}
.login-card{text-align:center;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.88);border-radius:32px;padding:38px 48px 30px;box-shadow:0 26px 70px rgba(42,72,110,.16);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.login-logo{width:94px;height:94px;border-radius:24px;object-fit:cover;box-shadow:0 12px 28px rgba(47,105,180,.18);margin-bottom:12px}
.login-card h1{font-size:36px;margin:0;color:var(--ink)}.login-tagline{text-transform:uppercase;letter-spacing:.18em;font-size:10px;font-weight:800;color:#75839b;margin-top:5px}
.login-welcome{margin:29px 0 20px}.login-welcome h2{font-size:22px;margin:0 0 5px}.login-welcome p{margin:0;color:var(--mut)}
.login-form{text-align:left;display:grid;gap:13px}.login-form label span{display:block;font-size:11px;font-weight:800;color:#617087;margin:0 0 5px 4px}.login-form input{height:49px;border-radius:13px!important}
.login-submit{height:51px;border-radius:15px!important;font-size:14px!important;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px}
.login-error{padding:10px 13px;border-radius:12px;background:#fff0f0;border:1px solid #f0cccc;color:#a53b3b;font-size:12px;margin-bottom:13px}
.ssl-panel{margin-top:22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;padding:12px 13px;border-radius:16px;background:rgba(228,248,238,.72);border:1px solid rgba(83,169,122,.14)}
.ssl-shield{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#50b57b;color:white;font-weight:900}.ssl-panel strong{display:block;font-size:11px}.ssl-panel small{display:block;font-size:9px;color:#698078;margin-top:2px}.ssl-host{font-size:10px;color:#278755;background:rgba(255,255,255,.68);padding:7px 9px;border-radius:10px;white-space:nowrap}.login-privacy{font-size:9px;color:#8994a5;line-height:1.45;margin-top:16px}

/* Button hover is an outline, never a pulse */
@keyframes none{}
.nav a,.btn,button{animation:none!important;transform:none!important}
.nav a:hover,.nav a:focus-visible,.btn:hover,.btn:focus-visible,button:hover,button:focus-visible{
 transform:none!important;outline:1px solid rgba(47,119,230,.62)!important;outline-offset:3px!important
}
button.primary:hover,.btn.primary:hover,a.btn.primary:hover,button.primary:focus-visible,.btn.primary:focus-visible,a.btn.primary:focus-visible{
 background:#347ff0!important;color:#fff!important;outline:1px solid rgba(31,103,210,.76)!important;outline-offset:3px!important;box-shadow:0 7px 18px rgba(52,127,240,.13)!important
}

/* teacher hero custom carousel */
.hero-safe{position:relative;overflow:hidden}.hero-safe>*:not(.hero-custom-slide){position:relative;z-index:3}
.hero-custom-slide{position:absolute!important;inset:0;z-index:1!important;background-size:cover;background-position:center;opacity:0;transition:opacity 1s ease}
.hero-custom-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(19,45,79,.72),rgba(19,45,79,.30) 55%,rgba(19,45,79,.12))}
.hero-custom-slide.show{opacity:1}.hero-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-change{font-size:10px;font-weight:800;color:white;text-decoration:none;padding:7px 9px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.10);backdrop-filter:blur(8px)}.hero-change:hover{outline:1px solid rgba(255,255,255,.7);outline-offset:2px}
.hero-library{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:14px}.hero-library-item{padding:10px!important}.hero-library-item img{width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:12px;display:block;margin-bottom:9px}.hero-library-item>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.hero-library-item small{color:var(--mut)}.hero-library-item form{margin-top:8px}.hero-upload-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:720px){.login-page{padding:14px}.login-card{padding:28px 20px 22px;border-radius:24px}.login-logo{width:80px;height:80px;border-radius:21px}.login-card h1{font-size:31px}.ssl-panel{grid-template-columns:auto 1fr}.ssl-host{grid-column:1/-1;text-align:center}.hero-library{grid-template-columns:1fr}.hero-change{font-size:9px}}

/* Visible hover contour, not pulse */
.nav a,.btn,button,.admin-action{position:relative}
.nav a::after,.btn::after,button::after,.admin-action::after{
 content:"";position:absolute;pointer-events:none;inset:-4px;border:1.5px solid transparent;border-radius:inherit;opacity:0;transition:opacity .14s ease,border-color .14s ease
}
.nav a:hover::after,.nav a:focus-visible::after,.btn:hover::after,.btn:focus-visible::after,button:hover::after,button:focus-visible::after,.admin-action:hover::after,.admin-action:focus-visible::after{
 opacity:1;border-color:rgba(48,116,224,.78)
}
.nav a:hover,.btn:hover,button:hover{transform:none!important;animation:none!important}
button.primary:hover,.btn.primary:hover,a.btn.primary:hover{background:#347ff0!important;color:#fff!important}
.admin-table-card table{width:100%;border-collapse:collapse}.admin-table-card th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);padding:10px}.admin-table-card td{padding:11px 10px;border-top:1px solid rgba(120,140,165,.12)}.actions{display:flex;gap:7px;align-items:center;justify-content:flex-end}.actions form{margin:0}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.status-pill.ok{background:#e9f7ef;color:#2d8556}.status-pill.off{background:#f1f3f6;color:#7c8798}.admin-edit{margin-top:14px}.admin-form{display:grid;grid-template-columns:1fr 1fr auto;gap:11px;align-items:end}.admin-form label{font-size:11px;font-weight:800;color:var(--mut)}.admin-form input{margin-top:5px}.admin-form.compact{grid-template-columns:1fr auto;max-width:620px}.admin-dialog{width:min(520px,calc(100vw - 28px));border:1px solid rgba(120,140,165,.18);border-radius:24px;padding:22px;background:rgba(250,252,255,.96);box-shadow:0 30px 80px rgba(30,50,80,.24);backdrop-filter:blur(22px)}.admin-dialog::backdrop{background:rgba(20,30,45,.25);backdrop-filter:blur(4px)}.admin-dialog .admin-form{grid-template-columns:1fr;margin-top:16px}.admin-dialog .top button{font-size:20px;border:0;background:transparent}.admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:720px){.admin-form,.admin-form.compact{grid-template-columns:1fr}.actions{justify-content:flex-start;flex-wrap:wrap}.admin-grid{grid-template-columns:1fr!important}.admin-dialog{padding:18px}}

/* Mobile logout lives inside the opened mobile navigation */
.mobile-logout{display:none}
@media(max-width:760px){
 .topbar-in{position:relative}
 .logout{display:none!important}
 .nav .mobile-logout{
   display:flex!important;width:100%;margin-top:10px;padding-top:14px;
   border-top:1px solid rgba(100,120,150,.16);color:#a54242!important
 }
 .nav .mobile-logout::after{border-color:transparent}
 .nav .mobile-logout:hover::after,.nav .mobile-logout:focus-visible::after{border-color:rgba(165,66,66,.55)}
}

/* v1.3.5 teacher feature flags */
.feature-setting{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}.feature-setting h3{margin:0 0 4px}.feature-setting p{margin:0;max-width:650px}.feature-setting form{display:flex;gap:12px;align-items:center}.feature-switch{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:11px}.feature-switch input{position:absolute;opacity:0;pointer-events:none}.feature-switch span{width:42px;height:24px;border-radius:999px;background:#d7dde6;position:relative;transition:.18s}.feature-switch span:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 2px 5px rgba(30,50,80,.2);transition:.18s}.feature-switch input:checked+span{background:#4b8df4}.feature-switch input:checked+span:after{transform:translateX(18px)}
@media(max-width:720px){.feature-setting{grid-template-columns:1fr}.feature-setting form{align-items:flex-start;flex-direction:column}}

/* v1.3.6 workflow */
.work-meta{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(250px,1fr) minmax(220px,1fr);gap:14px;align-items:end}.type-choice{display:flex;gap:8px;margin-top:6px}.type-choice label{cursor:pointer}.type-choice input{position:absolute;opacity:0}.type-choice span{display:block;padding:10px 12px;border:1px solid rgba(100,125,160,.18);border-radius:12px;background:rgba(255,255,255,.6);font-weight:750;font-size:11px}.type-choice input:checked+span{border-color:#4b8df4;background:#edf4ff;color:#2567ca}.danger{color:#a33b3b!important;border-color:rgba(180,60,60,.22)!important}.work-link{color:inherit;text-decoration:none}.work-link:hover{text-decoration:underline}.class-transfer{display:grid;grid-template-columns:120px 1fr auto;gap:12px;align-items:end;padding:10px 0;border-top:1px solid rgba(120,140,165,.12)}.class-transfer label{font-size:11px;font-weight:700;color:var(--mut)}.class-transfer select{margin-top:4px}
@media(max-width:720px){.work-meta{grid-template-columns:1fr}.type-choice{flex-wrap:wrap}.class-transfer{grid-template-columns:1fr}}

/* v1.3.6a admin class management */
.class-create{display:grid;grid-template-columns:minmax(220px,420px) auto;gap:10px;align-items:end;margin:14px 0}.class-create label{font-size:11px;font-weight:750;color:var(--mut)}.class-admin-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1fr) auto;gap:10px;align-items:end;padding:12px 0;border-top:1px solid rgba(120,140,165,.12)}.class-rename{display:grid;grid-template-columns:1fr auto;gap:8px}.class-transfer{display:grid;grid-template-columns:1fr auto;gap:8px}.class-transfer label{font-size:11px;font-weight:700;color:var(--mut)}.class-transfer select{margin-top:4px}
@media(max-width:720px){.class-create,.class-admin-row,.class-rename,.class-transfer{grid-template-columns:1fr}}

/* v1.3.6b mark truth + view/edit */
.mark label .mark-check{opacity:.22}.mark input:checked+label .mark-check{opacity:1}.mark input:not(:checked)+label{background:rgba(255,255,255,.46)!important;border-color:rgba(100,125,160,.13)!important;color:#718096!important}.mark input:checked+label{background:#e4f5ec!important;border-color:#9fd5b8!important;color:#24704a!important}.view-mode input[readonly]{background:rgba(245,248,252,.72);cursor:default}.view-mode .mark label{cursor:default}.view-mode .type-choice label{cursor:default}


/* =========================================================
   v1.3.7 — Mobile / iPad foundation + touch UX + CSS cleanup
   Breakpoints: phone <= 720, tablet 721–1100, desktop > 1100
   ========================================================= */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,.btn,.nav a,.logout,input,select,textarea{touch-action:manipulation}
button,.btn,.nav a,.logout{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
button:focus-visible,.btn:focus-visible,.nav a:focus-visible,.logout:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid rgba(47,119,230,.72)!important;outline-offset:3px!important}
.btn:hover,button:hover,.nav a:hover,.subject-card:hover,.admin-action:hover{transform:none!important}
.quick-scroll-hint{display:none;color:var(--mut);font-size:10px;font-weight:700;margin:10px 2px 0}
.responsive-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.responsive-table table{min-width:680px}
.file-input{min-height:46px;padding:8px;background:rgba(255,255,255,.68)}
.file-input::file-selector-button{min-height:34px;border:1px solid rgba(116,134,163,.18);border-radius:9px;background:#fff;padding:6px 10px;margin-right:10px;font-weight:750;color:#31405a}
.ssl-warning{background:rgba(255,244,225,.78);border-color:rgba(203,145,58,.18)}.ssl-warning .ssl-shield{background:#d89a3c}.ssl-warning .ssl-host{color:#9a681e}

/* Tablet: preserve desktop information density, increase touch comfort. */
@media (min-width:721px) and (max-width:1100px){
 .topbar{padding:12px 16px 0}.topbar-in{gap:10px;padding:7px 10px 7px 15px}.brand{font-size:21px;margin-right:4px}.nav{gap:3px;overflow-x:auto;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav a,.logout{min-height:44px;padding:10px 11px;font-size:12px}
 main{padding:24px 18px 32px}.card,.glass{padding:18px}.hero-grid,.dashboard-grid{grid-template-columns:1fr}.hero-safe{min-height:245px}.subjects{grid-template-columns:repeat(2,1fr)}
 button,.btn{min-height:44px}.mark label{min-height:44px;display:grid;place-items:center}.quick-wrap{border-radius:14px}.quick-head,.quick-row{grid-template-columns:170px repeat(var(--skills),minmax(100px,1fr))}.quick-scroll-hint{display:block}
 .work-meta{grid-template-columns:1.2fr 1fr}.work-meta>div:last-child{grid-column:1/-1}.admin-grid{grid-template-columns:repeat(2,1fr)!important}.admin-form{grid-template-columns:1fr 1fr}.admin-form>button{grid-column:1/-1;justify-self:start}.class-admin-row{grid-template-columns:1fr 1fr}.class-admin-row>form:last-child{grid-column:1/-1;justify-self:start}
 .hero-library{grid-template-columns:repeat(2,1fr)}
}

/* Phone */
@media (max-width:720px){
 body{padding-bottom:env(safe-area-inset-bottom);background-attachment:scroll}
 .topbar{padding:8px 10px 0!important}.topbar-in{display:flex!important;min-height:54px;padding:5px 8px 5px 13px!important;border-radius:17px!important;gap:8px}.brand{font-size:19px!important;margin-right:0;min-height:44px;display:flex;align-items:center}.brand:before{margin-right:7px}.mobile-menu-btn{width:44px!important;height:44px!important;min-height:44px!important;padding:11px!important}.mobile-menu-btn span{width:22px!important}
 .nav{top:61px!important;max-height:calc(100dvh - 78px);overflow-y:auto!important;padding:8px!important}.nav a{min-height:46px!important;padding:12px 14px!important;font-size:14px!important}.nav .mobile-logout{min-height:48px!important}
 main{padding:18px 12px 28px!important}.top{flex-wrap:wrap;margin-bottom:14px}.top>div:first-child{min-width:0;flex:1 1 210px}.top h1,h1{font-size:27px!important}.top>.btn,.top>button,.top>form{flex:0 0 auto}.top>form button{min-height:44px}
 .card,.glass{padding:14px!important;border-radius:18px!important}.grid,.grid2,.skill-list,.birthday-grid{grid-template-columns:1fr!important}.subjects{grid-template-columns:1fr 1fr!important;gap:9px}.subject-card{min-height:88px;padding:13px!important}.subject-card b{font-size:13px}.subject-card span{font-size:10px}
 button,.btn{min-height:44px;padding:10px 13px}.hero-safe{min-height:205px!important}.hero-safe .copy{height:155px!important;padding:21px!important}.hero-safe .class-name{font-size:50px!important}.hero-safe .dots{left:21px!important}.hero-topline{align-items:flex-start}.hero-change{min-height:36px;padding:8px 9px}.hero-grid{gap:11px}.birthdays{min-height:0}.birthday-grid{gap:8px}
 .dashboard-grid{gap:11px}.activity-row{min-height:50px}.privacy-footer{padding:16px 13px calc(18px + env(safe-area-inset-bottom))!important;line-height:1.45}
 .toast{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));text-align:center;padding:12px 14px}
 .responsive-table{margin:0 -2px;padding-bottom:3px}.responsive-table table{min-width:650px}.responsive-table th,.responsive-table td{padding:11px 10px;white-space:nowrap}.student-table td:last-child{position:sticky;right:0;background:rgba(250,252,255,.96);box-shadow:-8px 0 16px rgba(40,60,90,.04)}
 .work-meta{grid-template-columns:1fr!important;gap:9px}.work-meta input,.work-meta select{min-height:46px}.type-choice{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}.type-choice span{min-height:44px;display:grid!important;place-items:center;text-align:center;padding:8px!important}.quick-scroll-hint{display:block}
 .quick-wrap{margin-left:-14px;margin-right:-14px;padding-left:0;padding-bottom:8px;scrollbar-width:thin;overscroll-behavior-inline:contain}.quick-head,.quick-row{grid-template-columns:128px repeat(var(--skills),76px)!important;gap:5px!important;min-width:max-content!important}.quick-head{position:sticky;top:0;z-index:8;background:rgba(247,249,252,.96);backdrop-filter:blur(10px);padding-top:5px}.quick-head>div:first-child{position:sticky;left:0;z-index:10;background:rgba(247,249,252,.98)}.student-name{position:sticky;left:0;z-index:6;background:rgba(250,252,255,.98);box-shadow:7px 0 12px rgba(45,65,95,.05);padding:10px 8px 10px 14px!important;display:flex;align-items:center;font-size:12px}.skill-head{width:76px;font-size:8px!important;line-height:1.15;padding:4px 2px!important}.skill-head b{font-size:9px}.mark label{width:100%;height:46px;min-height:46px;padding:0!important;display:grid;place-items:center;border-radius:11px!important;font-size:16px}.quick-row{margin:5px 0!important}
 .editorbar.work-actionbar{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:30;margin:12px -2px 10px;padding:9px 10px;border:1px solid rgba(255,255,255,.86);border-radius:15px;background:rgba(248,251,255,.94);backdrop-filter:blur(18px);box-shadow:0 10px 28px rgba(35,55,85,.14)}.editorbar.work-actionbar .save-main{min-width:112px}.editstate{font-size:10px}.view-mode .editorbar.work-actionbar{position:static;box-shadow:none;background:transparent;border:0;padding:0;margin:10px 0}
 .hero-upload-form{display:grid!important;grid-template-columns:1fr}.hero-upload-form button{width:100%}.hero-library{grid-template-columns:1fr!important}.hero-library-item>div{align-items:flex-start;flex-direction:column}.file-input{width:100%;min-height:50px}
 .admin-table-card{padding:10px!important}.admin-table-card .responsive-table{margin:0}.actions{min-width:190px}.admin-form,.admin-form.compact,.class-create,.class-admin-row,.class-rename,.class-transfer{grid-template-columns:1fr!important}.admin-form button,.class-create button,.class-rename button,.class-transfer button{width:100%}.class-admin-row{padding:15px 0}.feature-setting form{width:100%}.feature-setting form>button{width:100%}.admin-dialog{width:100vw!important;max-width:none!important;height:min(100dvh,760px);max-height:100dvh;margin:auto 0 0!important;border-radius:24px 24px 0 0!important;padding:20px 16px calc(20px + env(safe-area-inset-bottom))!important;overflow-y:auto}.admin-dialog .top{position:sticky;top:-20px;z-index:3;background:rgba(250,252,255,.96);padding:12px 0}.admin-dialog .top button{width:44px;height:44px}
 .login-page{padding:12px!important;align-items:center}.login-shell{max-width:480px}.login-card{padding:25px 18px 20px!important;border-radius:24px!important}.login-logo{width:76px!important;height:76px!important}.login-card h1{font-size:30px!important}.login-welcome{margin:20px 0 15px}.login-form input,.login-submit{min-height:50px}.ssl-panel{padding:11px!important}.login-privacy{font-size:10px}
}

@media (max-width:420px){
 .subjects{grid-template-columns:1fr 1fr!important}.subject-card{min-width:0}.subject-card:before{width:30px;height:30px}.metric-grid,.admin-metrics{grid-template-columns:1fr 1fr!important}.hero-safe .class-name{font-size:46px!important}.top h1,h1{font-size:25px!important}.quick-head,.quick-row{grid-template-columns:116px repeat(var(--skills),72px)!important}.skill-head{width:72px}.student-name{font-size:11px}.type-choice{grid-template-columns:1fr!important}
}

@media (orientation:landscape) and (max-height:520px) and (max-width:950px){
 .topbar{position:relative}.login-page{display:block;overflow:auto}.login-shell{margin:10px auto}.login-logo{width:58px!important;height:58px!important}.login-welcome{margin:10px 0}.ssl-panel{margin-top:12px}.login-privacy{margin-top:10px}
}

/* v1.3.7a carousel hotfix */
.hero-safe .class-name{letter-spacing:-.025em!important;font-kerning:normal;text-rendering:optimizeLegibility}
.hero-safe .dots{align-items:center}
.hero-safe .hero-dot{display:block;min-width:0!important;min-height:0!important;width:8px;height:8px;padding:0!important;border:0!important;border-radius:999px;background:rgba(255,255,255,.52)!important;box-shadow:none!important;outline:none!important;cursor:pointer;transition:width .28s ease,background .28s ease,opacity .28s ease;opacity:.9}
.hero-safe .hero-dot.on{width:22px;background:#fff!important;opacity:1}
.hero-safe .hero-dot:hover,.hero-safe .hero-dot:focus-visible{outline:1px solid rgba(255,255,255,.82)!important;outline-offset:3px!important;transform:none!important}
@media(max-width:720px){.hero-safe .class-name{letter-spacing:-.018em!important}.hero-safe .hero-dot{width:9px;height:9px}.hero-safe .hero-dot.on{width:23px}}

/* v1.3.7b hero carousel — custom-only, reliable slide layer */
.hero-safe{background:#26384d!important}
.hero-safe > .slide{position:absolute!important;inset:0!important;z-index:1!important;display:block!important;background-size:cover!important;background-position:center!important;opacity:0;transition:opacity 1.05s ease;pointer-events:none}
.hero-safe > .slide.on{opacity:1!important}
.hero-safe > .shade{position:absolute!important;inset:0!important;z-index:2!important;background:linear-gradient(90deg,rgba(11,24,42,.78),rgba(13,28,48,.43) 58%,rgba(11,24,42,.22))!important;pointer-events:none}
.hero-safe > .fallback-slide + .shade{background:linear-gradient(90deg,rgba(8,20,36,.82),rgba(10,24,42,.55) 58%,rgba(8,20,36,.38))!important}
.hero-safe > .copy,.hero-safe > .dots{position:relative;z-index:3}
.hero-safe > .dots{position:absolute!important}
.hero-safe .class-name{letter-spacing:.005em!important}
.hero-library-item>div b{font-size:12px}
/* v1.4.0 Parent Conversation + mobile work cards */
.period-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.period-tabs button{background:rgba(255,255,255,.7)}.period-tabs button.active{background:#347ff0!important;color:#fff!important;border-color:#347ff0!important}.conversation-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.conversation-summary .metric{display:flex;flex-direction:column;gap:3px}.conversation-summary .metric span,.conversation-summary .metric small{color:var(--mut)}.conversation-summary .metric b{font-size:30px;line-height:1.1}.conversation-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid rgba(120,140,165,.12)}.conversation-item:last-child{border-bottom:0}.conversation-item span{font-size:12px;color:var(--mut);text-align:right}.subject-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject-summary>div{padding:12px;border:1px solid rgba(120,140,165,.12);border-radius:14px;background:rgba(255,255,255,.48);display:flex;flex-direction:column;gap:4px}.subject-summary span{font-size:12px;color:var(--mut)}.draft-card textarea{width:100%;min-height:330px;line-height:1.6;font:inherit;resize:vertical}.draft-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.parent-conversation-cta .btn{margin-top:8px}
@media(max-width:720px){
 .topbar-in{min-height:66px}.brand{font-size:24px}.mobile-menu-btn{width:48px;height:48px}.topbar{padding-top:max(8px,env(safe-area-inset-top))}
 .conversation-summary{grid-template-columns:repeat(2,1fr);gap:8px}.conversation-summary .metric{padding:14px}.conversation-summary .metric b{font-size:25px}.conversation-grid{grid-template-columns:1fr}.subject-summary{grid-template-columns:1fr}.period-tabs{display:grid;grid-template-columns:1fr 1fr}.period-tabs button{width:100%}.conversation-item{align-items:flex-start}.draft-card textarea{min-height:420px}.report-head{align-items:flex-start;gap:10px}.report-head button{flex:0 0 auto}
 .mobile-work-cards,.mobile-work-cards tbody,.mobile-work-cards tr,.mobile-work-cards td{display:block!important;width:100%!important}.mobile-work-cards thead{display:none!important}.mobile-work-cards tr{position:relative;padding:16px 15px 14px;margin:0 0 10px;border:1px solid rgba(120,140,165,.13);border-radius:16px;background:rgba(255,255,255,.58)}.mobile-work-cards td{border:0!important;padding:2px 0!important;white-space:normal!important}.mobile-work-cards td[data-label="Darbs"]{font-size:18px;padding-right:90px!important}.mobile-work-cards td[data-label="Datums"],.mobile-work-cards td[data-label="Priekšmets"]{display:inline!important;width:auto!important;color:var(--mut);font-size:13px}.mobile-work-cards td[data-label="Datums"]:after{content:" · ";}.mobile-work-cards td[data-label="Veids"]{margin-top:8px}.mobile-work-cards td[data-label="Pielikums"]{display:none!important}.mobile-work-cards .work-open{position:absolute;right:12px;top:12px;width:auto!important}.mobile-work-cards .work-open .btn{min-height:42px}.recent-table-wrap,.responsive-table{overflow:visible}
 .privacy-footer{padding-bottom:max(22px,env(safe-area-inset-bottom))}
}

/* v1.4.1 Mobile Polish + Interactive Class View */
.stat-link,.insight-link{color:inherit;text-decoration:none}.stat-link{border-radius:10px;padding:7px 8px;margin-left:-8px;margin-right:-8px}.stat-link:hover,.insight-link:hover{background:rgba(52,127,240,.045)}.insight-link{transition:.15s}.insight-link small span{color:#347ff0;font-weight:900}.class-drilldown{margin-top:14px;scroll-margin-top:90px}.drill-kids{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.drill-kid{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid rgba(120,140,165,.12);border-radius:14px;background:rgba(255,255,255,.48);color:inherit;text-decoration:none}.drill-kid span{font-size:12px;color:var(--mut);text-align:right}
@media(max-width:720px){
 .subjects{grid-template-columns:1fr!important;gap:8px!important}.subject-card{min-height:72px!important;padding:12px 14px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:10px!important;align-items:center!important}.subject-card:before{grid-row:1/3!important;grid-column:1!important;margin:0!important}.subject-card b{grid-column:2!important;margin:0!important;font-size:15px!important;line-height:1.2!important;min-width:0}.subject-card span{grid-column:2!important;font-size:11px!important;line-height:1.25!important;min-width:0}
 .conversation-summary{grid-template-columns:1fr 1fr!important;gap:8px!important}.conversation-summary .metric{min-height:0!important;padding:13px!important;gap:2px!important}.conversation-summary .metric span{font-size:11px!important;font-weight:800!important}.conversation-summary .metric b{font-size:28px!important;line-height:1!important}.conversation-summary .metric small{font-size:10px!important;line-height:1.25!important}.period-tabs button{min-height:46px!important;padding:10px!important}
 .responsive-table:has(.mobile-student-cards){overflow:visible!important}.mobile-student-cards,.mobile-student-cards tbody,.mobile-student-cards tr,.mobile-student-cards td{display:block!important;width:100%!important;min-width:0!important}.mobile-student-cards thead{display:none!important}.mobile-student-cards tr{position:relative;padding:15px 14px;margin-bottom:9px;border:1px solid rgba(120,140,165,.13);border-radius:16px;background:rgba(255,255,255,.56)}.mobile-student-cards td{position:static!important;border:0!important;padding:3px 0!important;white-space:normal!important;background:transparent!important;box-shadow:none!important}.mobile-student-cards td[data-label="Skolēns"]{font-size:17px;padding-right:126px!important;margin-bottom:5px}.mobile-student-cards td[data-label="Dzimšanas diena"],.mobile-student-cards td[data-label="Novērojumi"],.mobile-student-cards td[data-label="Pēdējais ieraksts"]{font-size:12px;color:var(--mut)}.mobile-student-cards td[data-label="Novērojumi"]:before{content:"Novērojumi: ";font-weight:750}.mobile-student-cards td[data-label="Pēdējais ieraksts"]:before{content:"Pēdējais: ";font-weight:750}.mobile-student-cards .student-open{position:absolute!important;right:12px!important;top:12px!important;width:auto!important}.mobile-student-cards .student-open .btn{min-height:42px!important;padding:10px 12px!important}
 .insight-link{min-height:52px;padding:12px!important;border-radius:13px!important}.stat-link{min-height:44px;margin:2px 0!important;padding:8px!important}.drill-kids{grid-template-columns:1fr!important}.drill-kid{min-height:52px}.class-drilldown{scroll-margin-top:82px}
}
@media(max-width:420px){.conversation-summary .metric b{font-size:26px!important}.conversation-summary .metric span{font-size:10px!important}}

/* v1.4.1a Class detail stability */
.class-drilldown{contain:layout paint;animation:none!important}
.class-drilldown .insight small{line-height:1.45}
@media(max-width:720px){
 .class-drilldown .insight{align-items:flex-start!important}
 .class-drilldown .insight small{max-width:62%;text-align:right}
}

/* v1.4.1b Class overview — stable logical layout */
#class-detail-slot:empty{display:none}
#class-detail-slot:not(:empty){display:block;margin:0 0 14px}
#class-detail-slot .class-drilldown{margin:0;animation:none!important;contain:layout paint}
.class-activity-grid,.class-insight-grid{align-items:stretch}
.class-activity-grid>.card,.class-insight-grid>.card{height:100%;min-height:0}
.class-activity-grid>.card{min-height:245px}
.class-insight-grid>.card{min-height:300px}
@media(max-width:720px){
 #class-detail-slot:not(:empty){margin-bottom:10px}
 .class-activity-grid,.class-insight-grid{grid-template-columns:1fr!important}
 .class-activity-grid>.card,.class-insight-grid>.card{min-height:0!important}
}

/* v1.4.1c — paired master/detail class overview */
.paired-analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px;align-items:stretch}
.paired-analysis-grid>.card{margin:0;min-width:0;height:100%}
.paired-detail-card{background:rgba(255,255,255,.72)}
.paired-detail-card .report-head{margin-bottom:8px}
.detail-empty{min-height:150px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--mut);text-align:center;padding:24px}
.detail-empty span{font-size:26px;color:#347ff0}
.detail-empty p{margin:0;max-width:330px}
.detail-active{background:rgba(52,127,240,.065)!important;outline:1px solid rgba(52,127,240,.28)!important;outline-offset:0!important}
.overview-pair .insight-list,.skills-pair .insight-list{height:auto}
.paired-detail-card .drill-kids{grid-template-columns:1fr!important}
@media(min-width:1100px){
 .overview-pair{grid-template-columns:.72fr 1.28fr}
 .skills-pair{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
 .paired-analysis-grid{grid-template-columns:1fr;gap:8px;margin-top:10px}
 .paired-detail-card{min-height:0!important}
 .detail-empty{min-height:90px;padding:16px}
}

/* v1.4.2 — quick-entry polish + comfortable dark mode */
.subject-chooser{padding:18px 24px}
.subject-chooser .subjects{margin-top:0}
.class-picker-compact{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.class-picker-compact label{margin:0}
.class-picker-compact select{max-width:220px}
.subject-card{min-width:0;overflow:hidden}
.subject-card b,.subject-card span{position:relative;z-index:1}
.subject-card b{display:block;line-height:1.15}
.subject-card span{display:block;margin-top:5px;line-height:1.25;white-space:normal}
.file-upload{display:flex!important;align-items:center;gap:10px;min-height:52px;padding:7px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.52);cursor:pointer;margin:0}
.file-upload input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.file-upload-button{flex:0 0 auto;padding:10px 14px;border-radius:10px;background:rgba(52,127,240,.11);color:#2468c9;font-weight:750}
.file-upload-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mut);font-weight:600}
.theme-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;background:transparent;color:inherit;padding:8px 10px;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.theme-toggle:hover,.theme-toggle:focus-visible{outline:1px solid rgba(52,127,240,.5)!important;outline-offset:3px!important}
.theme-icon{font-size:16px}
@media(max-width:720px){
 .subject-chooser{padding:14px}
 .subject-chooser .subjects{gap:10px}
 .subject-card{padding:14px 12px!important}
 .subject-card b{font-size:16px!important}
 .subject-card span{font-size:12px!important}
 .file-upload{align-items:stretch;flex-direction:column}
 .file-upload-button{text-align:center}
 .file-upload-name{text-align:center;padding:2px 6px}
 .theme-label{display:none}
}

/* Comfortable charcoal-blue mode: deliberately not pure black. */
html[data-theme="dark"]{color-scheme:dark;--bg:#151b24;--ink:#edf2fb;--mut:#9eabc0;--line:#354154}
html[data-theme="dark"] body{
 background:
 radial-gradient(circle at 12% 8%,rgba(48,91,145,.22),transparent 34%),
 radial-gradient(circle at 88% 12%,rgba(84,65,119,.16),transparent 30%),
 #171d27!important;
 color:#edf2fb!important
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .quick-actions,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .subject-card,
html[data-theme="dark"] .paired-detail-card{
 background:rgba(29,37,49,.88)!important;
 border-color:#354154!important;
 box-shadow:0 14px 34px rgba(0,0,0,.18)!important;
 color:#edf2fb!important
}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] b,html[data-theme="dark"] strong,html[data-theme="dark"] label,
html[data-theme="dark"] .student-name,html[data-theme="dark"] .skill-head{color:#edf2fb!important}
html[data-theme="dark"] .mut,html[data-theme="dark"] .small,html[data-theme="dark"] p,
html[data-theme="dark"] .notice{color:#aab5c7}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{
 background:#202938!important;color:#edf2fb!important;border-color:#3b485c!important
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#78869b}
html[data-theme="dark"] .nav a,html[data-theme="dark"] .topbar a,html[data-theme="dark"] .theme-toggle{color:#cbd5e5!important}
html[data-theme="dark"] .nav a.active,html[data-theme="dark"] .topbar a.active{background:#253650!important;color:#eaf2ff!important}
html[data-theme="dark"] .file-upload{background:#202938;border-color:#3b485c}
html[data-theme="dark"] .file-upload-button{background:#293c59;color:#aecdff}
html[data-theme="dark"] .insight,html[data-theme="dark"] .drill-kid,html[data-theme="dark"] .quick-row>div,
html[data-theme="dark"] table td,html[data-theme="dark"] table th{border-color:#354154!important}
html[data-theme="dark"] .insight,html[data-theme="dark"] .drill-kid{background:rgba(35,44,58,.72)!important}
html[data-theme="dark"] .detail-active{background:#253650!important}
html[data-theme="dark"] footer{color:#8997ac!important}

/* v1.4.3 — dark polish, theme scheduler, account security */
.nav-logout{margin-left:auto}
.theme-settings-btn,.theme-toggle{flex:0 0 auto}
.theme-settings-btn{width:34px;height:34px;padding:0!important;display:grid;place-items:center;border:1px solid transparent!important;background:transparent!important;color:var(--mut);border-radius:10px;cursor:pointer}
.theme-dialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:22px;padding:22px;background:rgba(250,252,255,.98);color:var(--ink);box-shadow:0 30px 80px rgba(20,30,45,.25)}
.theme-dialog::backdrop{background:rgba(15,22,32,.42);backdrop-filter:blur(4px)}
.theme-dialog .top{display:flex;justify-content:space-between;align-items:center}.theme-dialog h2{margin:0}.dialog-close{font-size:22px;border:0!important;background:transparent!important}
.schedule-switch{display:flex!important;align-items:center;gap:10px;margin:20px 0 16px;cursor:pointer}.schedule-switch input{position:absolute;opacity:0}.schedule-switch span{width:44px;height:25px;border-radius:99px;background:#cfd7e3;position:relative}.schedule-switch span:after{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.18s}.schedule-switch input:checked+span{background:#4b8df4}.schedule-switch input:checked+span:after{transform:translateX(19px)}
.theme-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-time-grid label{font-size:11px;font-weight:800;color:var(--mut)}.theme-time-grid input{margin-top:5px}
.password-change-shell{max-width:620px;margin:50px auto}.password-change-card{text-align:center;padding:34px}.security-icon{font-size:42px}.password-change-card h1{margin:10px 0 6px}.password-change-form{display:grid;gap:12px;text-align:left;margin:22px 0 12px}.password-change-form label{font-size:11px;font-weight:800;color:var(--mut)}.password-change-form input{margin-top:5px}

/* dark mode contrast fixes seen in real screens */
html[data-theme="dark"] .topbar-in{background:rgba(30,39,52,.94)!important;border-color:#3b485d!important}
html[data-theme="dark"] .brand{color:#f2f6fc!important}
html[data-theme="dark"] .nav a{color:#b9c5d7!important}
html[data-theme="dark"] .nav a:hover,html[data-theme="dark"] .nav a:focus-visible{background:#253246!important;color:#f2f6fc!important}
html[data-theme="dark"] .nav a.active{background:#2b4262!important;color:#f5f8fd!important;border-color:#4b6f9f!important}
html[data-theme="dark"] .nav-logout{color:#b9c5d7!important}
html[data-theme="dark"] .btn:not(.primary),html[data-theme="dark"] button:not(.primary):not(.theme-toggle):not(.theme-settings-btn):not(.mobile-menu-btn):not(.dialog-close){
 background:#283344!important;color:#e8eef8!important;border-color:#445268!important
}
html[data-theme="dark"] .btn:not(.primary):hover,html[data-theme="dark"] button:not(.primary):hover{background:#303d50!important;color:#fff!important}
html[data-theme="dark"] .subject-card{background:#1e2836!important}
html[data-theme="dark"] .subject-card.active{background:#253a55!important;border-color:#4f8fe8!important}
html[data-theme="dark"] .subject-card span{color:#9facbf!important}
html[data-theme="dark"] .type-choice span{background:#263142!important;color:#d9e2ef!important;border-color:#425168!important}
html[data-theme="dark"] .type-choice input:checked+span{background:#29466d!important;color:#cfe2ff!important;border-color:#67a1f2!important}
html[data-theme="dark"] .mark label{background:#283344!important;color:#d8e1ee!important;border-color:#3e4b5f!important}
html[data-theme="dark"] .mark input:checked+label{background:#214d3d!important;border-color:#3f8c6c!important;color:#d8f5e7!important}
html[data-theme="dark"] .skill-item{background:#202a38!important;border-color:#39475b!important;color:#edf2fb!important}
html[data-theme="dark"] .status-pill.ok{background:#214d3d!important;color:#bfe9d2!important}
html[data-theme="dark"] .status-pill.off{background:#303947!important;color:#bdc7d6!important}
html[data-theme="dark"] .class-chip{background:#29384e!important;color:#c9dcf7!important}
html[data-theme="dark"] .theme-dialog{background:#202938!important;border-color:#445268!important}
html[data-theme="dark"] .theme-dialog input{background:#18212e!important}
html[data-theme="dark"] .admin-dialog{background:#202938!important;color:#edf2fb!important}
html[data-theme="dark"] .admin-dialog::backdrop{background:rgba(5,9,15,.62)}
html[data-theme="dark"] .hero-safe{border-color:#354154!important}
/* keep image hero readable; its overlay owns contrast */
html[data-theme="dark"] .hero-safe .copy,html[data-theme="dark"] .hero-safe .copy b,html[data-theme="dark"] .hero-safe .copy strong{color:#fff!important}
@media(max-width:760px){
 .nav-logout{margin-left:0;margin-top:8px;border-top:1px solid rgba(120,140,165,.16)!important}
 .theme-toggle{justify-content:flex-start}.theme-label{display:inline!important}
 .theme-settings-btn{width:100%;justify-content:flex-start;display:flex;padding:10px 14px!important}
 .theme-time-grid{grid-template-columns:1fr}
}

/* v1.4.3a — subject-card spacing, home dark birthday polish, self password */
.subject-card{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:12px!important;
  row-gap:3px!important;
  align-content:center!important;
  justify-content:start!important;
  text-align:left!important;
}
.subject-card .subject-icon,.subject-card .ico,.subject-card>i:first-child{
  grid-column:1!important;grid-row:1 / span 2!important;align-self:center!important;margin:0!important
}
.subject-card strong,.subject-card b{
  grid-column:2!important;grid-row:1!important;display:block!important;min-width:0!important;
  line-height:1.12!important;margin:0!important;white-space:normal!important
}
.subject-card span:not(.subject-icon):not(.ico){
  grid-column:2!important;grid-row:2!important;display:block!important;min-width:0!important;
  line-height:1.2!important;margin:0!important;white-space:normal!important
}
/* Some cards use raw text nodes inside a wrapper: force wrapper itself into a vertical stack. */
.subject-card .subject-copy,.subject-card .copy,.subject-card .subject-text{
  grid-column:2!important;grid-row:1 / span 2!important;display:flex!important;flex-direction:column!important;
  gap:3px!important;min-width:0!important
}
.account-password-link{display:flex;align-items:center;gap:6px;padding:8px 9px!important;border-radius:10px;color:var(--mut)!important;text-decoration:none!important;font-size:12px;font-weight:800}
.account-password-link:hover,.account-password-link:focus-visible{outline:1px solid rgba(47,119,230,.62);outline-offset:3px}
.account-password-label{display:none}
html[data-theme="dark"] .account-password-link{color:#c2cddd!important}
html[data-theme="dark"] .birthday-card .birthday-empty,
html[data-theme="dark"] .birthday-card .empty-state,
html[data-theme="dark"] .birthday-card .birthday-list,
html[data-theme="dark"] .birthday-panel .birthday-empty,
html[data-theme="dark"] .birthday-panel .empty-state,
html[data-theme="dark"] .birthday-panel .birthday-list{
 background:#222d3c!important;color:#dbe4f1!important;border-color:#3c4a5e!important
}
html[data-theme="dark"] .birthday-card .mut,
html[data-theme="dark"] .birthday-panel .mut{color:#aebbd0!important}
html[data-theme="dark"] .birthday-card,
html[data-theme="dark"] .birthday-panel{color:#edf3fb!important}
@media(max-width:760px){
 .account-password-link{padding:10px 14px!important}.account-password-label{display:inline}
 .subject-card{column-gap:10px!important}
}

/* v1.5.0 — settings, students, configurable subjects, compact conversation */
.nav-divider{width:1px;height:24px;background:rgba(120,140,165,.22);margin:0 6px;flex:0 0 auto}
.settings-link{display:flex!important;align-items:center;gap:6px;text-decoration:none!important;color:var(--mut)!important;font-size:12px!important;font-weight:800!important;padding:8px 10px!important;border-radius:10px!important}
.settings-link:hover,.settings-link:focus-visible{outline:1px solid rgba(47,119,230,.62)!important;outline-offset:3px!important}
.student-toolbar,.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.student-identity,.student-profile-title{display:flex;align-items:center;gap:11px}.student-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;display:grid;place-items:center;flex:0 0 auto}.student-avatar.initials{background:linear-gradient(135deg,#dceaff,#eee8ff);color:#45628c;font-weight:900}.student-avatar.large{width:64px;height:64px;font-size:22px}.student-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:860px}.student-profile-form label{font-size:11px;font-weight:800;color:var(--mut)}.student-profile-form input{margin-top:5px}.student-profile-form button{align-self:end}.checkline{display:flex!important;align-items:center;gap:8px}.checkline input{width:auto!important;margin:0!important}.student-remove-form{display:flex;align-items:center;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.admin-student-actions,.admin-student-actions form{display:flex;align-items:center;gap:7px}.admin-student-actions select{min-width:180px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-actions{display:flex;gap:8px;flex-wrap:wrap}.subject-library{margin-bottom:12px}.skill-group-card{margin-bottom:10px}.manage-skills{grid-template-columns:1fr!important}.manage-skills details summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.skill-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.skill-edit-form label{font-size:10px;font-weight:800;color:var(--mut)}.skill-edit-form input,.skill-edit-form select{margin-top:4px}
/* Compact parent conversation KPI cards: information first, not giant tiles. */
.conversation-summary{gap:9px!important}.conversation-summary .metric{padding:12px 14px!important;min-height:92px!important}.conversation-summary .metric span{font-size:11px!important;font-weight:800!important}.conversation-summary .metric b{font-size:27px!important;line-height:1!important}.conversation-summary .metric small{font-size:11px!important;line-height:1.25!important}.subject-summary>div{padding:10px 12px!important;min-height:0!important}
/* Dark mode: remove remaining hard-coded pale islands. */
html[data-theme="dark"] .birthday-box,html[data-theme="dark"] .birthday-grid,html[data-theme="dark"] .birthdays .birthday-box{background:#222d3c!important;color:#edf3fb!important;border-color:#3c4a5e!important}
html[data-theme="dark"] .subject-summary>div,html[data-theme="dark"] .conversation-summary .metric,html[data-theme="dark"] .conversation-grid>.card,html[data-theme="dark"] .draft-card{background:rgba(29,37,49,.88)!important;color:#edf2fb!important;border-color:#354154!important}
html[data-theme="dark"] .subject-summary span{color:#aebbd0!important}html[data-theme="dark"] .student-avatar.initials{background:#29384e!important;color:#d9e7fb!important}
/* Subject card typography must always be visibly separated. */
.subject-card b{margin-bottom:2px!important}.subject-card span{padding-top:1px!important}.subjects .subject-card{overflow:hidden!important}.subjects .subject-card b,.subjects .subject-card span{overflow-wrap:anywhere!important}
.forgot-link{text-align:right;margin-top:-4px;margin-bottom:8px}.forgot-link a{font-size:12px;color:#347ff0;text-decoration:none;font-weight:750}
@media(max-width:760px){.nav-divider{width:100%;height:1px;margin:6px 0}.settings-link{padding:10px 14px!important}.student-profile-form,.settings-grid,.skill-edit-form{grid-template-columns:1fr}.student-toolbar,.library-toolbar{align-items:stretch;flex-direction:column}.student-toolbar>button{width:100%}.admin-student-actions,.admin-student-actions form{align-items:stretch;flex-direction:column}.admin-student-actions select{min-width:0;width:100%}.conversation-summary .metric{min-height:78px!important;padding:10px 11px!important}.conversation-summary .metric b{font-size:24px!important}.student-identity{gap:8px}.student-avatar{width:34px;height:34px}}


/* v1.5.1 — student management, class level defaults, password recovery polish */
.password-recovery-card{width:min(560px,calc(100vw - 32px))!important;padding:34px 38px!important;border-radius:28px!important}
.password-recovery-card .login-logo{width:86px!important;height:86px!important;margin-bottom:14px!important}
.password-recovery-card h1{font-size:38px!important;margin:4px 0 12px!important}.password-recovery-card .mut{font-size:16px!important}.password-recovery-card .login-form{margin-top:18px!important}.password-recovery-card .login-form input{min-height:52px!important}.password-recovery-card .login-form button{min-height:48px!important}.password-recovery-card>a.btn{margin-top:10px!important}
.admin-student-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr auto auto;gap:10px;align-items:end;margin-bottom:14px}.admin-student-filters label{font-size:11px;font-weight:800;color:var(--mut)}.admin-student-filters input,.admin-student-filters select{margin-top:5px}.class-grade-setting{display:grid;grid-template-columns:1fr 150px auto;gap:10px;align-items:center;margin-top:10px}.class-grade-setting select{margin:0}
html[data-theme="dark"] .birthdays,html[data-theme="dark"] .birthdays.card{background:#1d2735!important;border-color:#3a485d!important}html[data-theme="dark"] .birthdays .birthday-box,html[data-theme="dark"] .birthdays .birthday-grid,html[data-theme="dark"] .birthdays .birthday-grid .birthday-box{background:#222d3c!important;color:#edf3fb!important;border-color:#3c4a5e!important;box-shadow:none!important}html[data-theme="dark"] .birthdays .birthday-title,html[data-theme="dark"] .birthdays .person b{color:#edf3fb!important}html[data-theme="dark"] .birthdays .person small,html[data-theme="dark"] .birthdays .small{color:#aebbd0!important}
@media(max-width:900px){.admin-student-filters{grid-template-columns:1fr 1fr}.class-grade-setting{grid-template-columns:1fr}}
@media(max-width:600px){.password-recovery-card{padding:26px 20px!important}.password-recovery-card h1{font-size:31px!important}.admin-student-filters{grid-template-columns:1fr}}

/* v1.5.1a hotfix: compact student modal + human-readable skill badges */
.student-create-dialog{width:min(440px,calc(100vw - 32px))!important;padding:20px!important;border-radius:20px!important}
.student-create-dialog form{display:grid;gap:14px}.student-create-dialog .top{margin:0!important;align-items:flex-start}.student-create-dialog .top h2{margin:0 0 3px;font-size:22px}.student-create-dialog .top .mut{font-size:13px}.student-create-dialog label{font-size:12px;font-weight:800;color:var(--mut)}.student-create-dialog input{margin-top:6px}.student-create-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:2px}.student-create-dialog .dialog-actions button{min-width:110px}
.skill-kind{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.skill-kind.strength{background:#e9f7ef;color:#28764d}.skill-kind.improve{background:#fff3df;color:#9a6419}.skill-kind.neutral{background:#edf2f8;color:#617087}
html[data-theme="dark"] .skill-kind.strength{background:#18392d;color:#9be0bd}html[data-theme="dark"] .skill-kind.improve{background:#44331c;color:#ffd18a}html[data-theme="dark"] .skill-kind.neutral{background:#2a3443;color:#c8d2df}
.admin-student-actions .permanent-delete{margin-left:auto}.danger-hard{background:#a83b3b!important;border-color:#b64a4a!important;color:#fff!important}.danger-hard:hover,.danger-hard:focus-visible{background:#963333!important;color:#fff!important}
@media(max-width:720px){.student-create-dialog{width:calc(100vw - 24px)!important;height:auto!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:20px!important;padding:18px!important}.student-create-dialog .top{position:static!important;background:transparent!important;padding:0!important}.student-create-dialog .dialog-actions button{width:100%}}
.danger-notice{background:#fff1f1!important;border-color:#efc5c5!important;color:#8b3131!important}.student-create-dialog .dialog-actions{gap:8px}.student-create-dialog .dialog-actions button{width:auto}
html[data-theme="dark"] .danger-notice{background:#3a2024!important;border-color:#6d343b!important;color:#ffc1c8!important}
/* v1.5.2 — bulk student import + admin pupil counts */
.student-toolbar-actions{display:flex;gap:8px;align-items:center}.student-import-dialog{width:min(560px,calc(100vw - 32px))!important}.student-import-dialog form{display:grid;gap:13px}.student-import-dialog label{font-size:12px;font-weight:800;color:var(--mut)}.student-import-dialog input[type=file],.student-import-dialog textarea{margin-top:6px}.import-or{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:11px}.import-or:before,.import-or:after{content:"";height:1px;background:var(--line);flex:1}.import-preview{display:grid;gap:6px;max-height:390px;overflow:auto;padding:4px}.import-preview label{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.import-preview input{width:auto!important;margin:0!important}.class-student-count{display:flex;flex-direction:column;gap:2px;min-width:120px}.class-student-count .mut{font-size:10px}
@media(max-width:760px){.student-toolbar-actions{display:grid;grid-template-columns:1fr;gap:8px}.student-toolbar-actions button{width:100%}.student-import-dialog{width:calc(100vw - 24px)!important;height:auto!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border-radius:20px!important}}

/* v1.5.3 UI/UX hotfix */
@media(min-width:761px){
 .student-table th,.student-table td{padding:7px 9px!important}
 .student-table .student-avatar{width:30px;height:30px;font-size:11px}
 .student-table .student-identity{gap:9px}
 .student-table .student-open .btn{padding:6px 10px;border-radius:9px;font-size:12px}
}
.profile-save-actions{grid-column:1/-1;display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.profile-save-actions button{min-width:120px}.profile-save-actions button+button{background:rgba(255,255,255,.58)}
.skill-primary-action{grid-column:1/-1;display:flex;justify-content:flex-start;margin-top:3px}.skill-primary-action button{min-width:165px}
.skill-remove-form{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.skill-remove-form .danger{flex:0 0 auto}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.help-card{padding:18px}.help-card h2{margin:0 0 10px}.help-card details{border-top:1px solid var(--line);padding:10px 0}.help-card details:first-of-type{border-top:0}.help-card summary{cursor:pointer;font-weight:850;color:var(--text);list-style:none}.help-card summary::-webkit-details-marker{display:none}.help-card summary:after{content:'+';float:right;color:var(--mut)}.help-card details[open] summary:after{content:'−'}.help-card p{margin:8px 0 2px;color:var(--mut);line-height:1.55;font-size:13px}.admin-help{grid-column:1/-1}
html[data-theme="dark"] .profile-save-actions button+button{background:#253246!important;color:#eef4ff!important}
@media(max-width:760px){.profile-save-actions{display:grid;grid-template-columns:1fr}.profile-save-actions button{width:100%}.skill-remove-form{align-items:flex-start;flex-direction:column}.help-grid{grid-template-columns:1fr}.admin-help{grid-column:auto}}
/* v1.6.0 academic year / class transition */
.class-year-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line,#dfe6ef)}
.class-year-row:first-of-type{border-top:0}.class-year-row .class-grade-setting{display:flex;gap:8px;align-items:center}.class-year-row select{min-width:130px}.year-history{margin-top:14px;border-top:1px solid var(--line,#dfe6ef);padding-top:14px}.year-history summary{cursor:pointer;font-weight:800}.year-history-list{display:grid;gap:8px;margin-top:12px}.year-history-list>div{display:grid;grid-template-columns:1fr 120px 90px 150px;gap:12px;padding:10px 12px;border:1px solid var(--line,#dfe6ef);border-radius:12px}.transition-info{margin:16px 0;padding:14px 16px;border-radius:14px;background:rgba(52,127,240,.08);border:1px solid rgba(52,127,240,.18)}.transition-info ul{margin:8px 0 0 20px;padding:0}.transition-dialog{max-width:650px}.transition-dialog label{display:block;font-weight:700}.transition-dialog input{margin-top:7px}
@media(max-width:760px){.class-year-row{grid-template-columns:1fr}.class-year-row .class-grade-setting{flex-wrap:wrap}.year-history-list>div{grid-template-columns:1fr 1fr}.transition-dialog{width:calc(100% - 24px)}}
/* v1.6.1 — student profile v2 */
.student-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.student-summary-card{padding:15px 17px!important;display:flex;flex-direction:column;gap:3px}.student-summary-card>span{font-size:11px;font-weight:850;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}.student-summary-card>b{font-size:30px;line-height:1.05}.student-summary-card>b.date-value{font-size:20px;margin-top:5px}.student-summary-card small{color:var(--mut)}
.student-profile-main{margin-bottom:14px}.progress-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.progress-columns h3{font-size:13px;margin:4px 0 9px}.profile-skill{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}.profile-skill:first-of-type{border-top:0}.profile-skill b{font-size:13px}.profile-skill span{font-size:11px;color:var(--mut);white-space:nowrap}
.student-class-history{display:grid;gap:7px;margin-top:10px}.history-row{display:grid;grid-template-columns:1fr 90px 80px;gap:10px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:11px}.history-row.current{border-color:rgba(52,127,240,.35);background:rgba(52,127,240,.06)}.history-row>div{display:flex;flex-direction:column}.history-row span{font-size:11px;color:var(--mut)}.history-row>span:last-child{text-align:right;font-weight:800}
.student-profile-edit .optional{font-size:9px;font-weight:750;color:var(--mut);margin-left:4px;text-transform:uppercase;letter-spacing:.03em}.timeline-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.observation-status{font-size:9px;font-weight:850;padding:4px 7px;border-radius:999px;white-space:nowrap}.observation-status.strength,.observation-status.mastered{background:#e9f7ef;color:#28764d}.observation-status.improve{background:#fff3df;color:#9a6419}.observation-status.observation{background:#edf2f8;color:#617087}.observation-note{font-size:12px;line-height:1.45;margin:7px 0 0;padding:8px 10px;border-radius:9px;background:rgba(120,140,165,.08)}
html[data-theme="dark"] .observation-status.strength,html[data-theme="dark"] .observation-status.mastered{background:#18392d;color:#9be0bd}html[data-theme="dark"] .observation-status.improve{background:#44331c;color:#ffd18a}html[data-theme="dark"] .observation-status.observation{background:#2a3443;color:#c8d2df}
@media(max-width:900px){.student-summary-grid{grid-template-columns:1fr 1fr}.progress-columns{grid-template-columns:1fr}}@media(max-width:600px){.student-summary-grid{grid-template-columns:1fr 1fr}.student-summary-card>b{font-size:24px}.history-row{grid-template-columns:1fr auto}.history-row>span:last-child{grid-column:2;grid-row:1 / span 2}.timeline-head{align-items:flex-start;flex-direction:column}}
/* v1.6.2 — work archive */
.work-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(130px,.8fr)) auto;gap:10px;align-items:end;margin:14px 0}.work-filters label{font-size:11px;font-weight:800;color:var(--mut)}.work-filters input,.work-filters select{margin-top:6px}.work-filter-actions,.work-view-actions{display:flex;gap:8px;align-items:center}.work-archive-card{overflow:hidden}.work-archive-table td,.work-archive-table th{vertical-align:middle}.work-archive-actions{display:flex;gap:6px;white-space:nowrap}.work-archive-actions .btn{padding:6px 9px;font-size:11px}.work-attachment-link{white-space:nowrap}.work-meta{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
@media(max-width:900px){.work-filters{grid-template-columns:1fr 1fr}.work-filter-actions{grid-column:1/-1}}@media(max-width:600px){.work-filters{grid-template-columns:1fr}.work-filter-actions{grid-column:auto}.work-filter-actions>*{flex:1}.work-view-actions{flex-wrap:wrap}}

/* v1.6.3 — Parent conversation v2 */
.eyebrow,.panel-kicker{font-size:11px;font-weight:800;letter-spacing:.11em;color:var(--mut);text-transform:uppercase}.conversation-title h1{margin:3px 0 2px}.conversation-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.conversation-privacy{margin-bottom:2px}.conversation-panel{min-height:260px}.conversation-panel h2,.progress-card h2,.conversation-lower h2,.conversation-workspace h2{margin-top:5px}.conversation-item>div{display:flex;flex-direction:column;gap:3px;min-width:0}.conversation-item small,.recent-observation small{font-size:12px;color:var(--mut)}.progress-card,.conversation-lower,.conversation-workspace,.conversation-history{margin-top:14px}.trend-note{font-size:11px;color:var(--mut);padding:6px 9px;border:1px solid rgba(120,140,165,.16);border-radius:999px}.empty-soft{margin-top:12px;padding:14px;border-radius:14px;background:rgba(120,140,165,.07);color:var(--mut);font-size:13px;line-height:1.5}.conversation-lower{align-items:start}.recent-observations{display:flex;flex-direction:column}.recent-observation{padding:11px 0;border-bottom:1px solid rgba(120,140,165,.12);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.recent-observation:last-child{border-bottom:0}.recent-observation>div{display:flex;flex-direction:column;gap:3px}.recent-observation p{grid-column:1/-1;margin:2px 0 0;font-size:13px;line-height:1.45}.conversation-workspace textarea{margin-top:14px}.conversation-stamp{margin-top:14px}
@media(max-width:800px){.conversation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.conversation-top-actions{width:100%}.conversation-top-actions>*{flex:1;text-align:center}.subject-summary{grid-template-columns:1fr}.trend-note{display:none}}
@media print{.topbar,.privacy-footer,.no-print,.period-tabs{display:none!important}body{background:#fff!important;color:#111!important}.card,.notice{box-shadow:none!important;background:#fff!important;border:1px solid #dfe3e8!important}.conversation-summary{grid-template-columns:repeat(4,1fr)!important}.conversation-grid,.conversation-lower{grid-template-columns:1fr 1fr!important}.conversation-workspace textarea{border:0!important;padding:0!important;min-height:260px!important;background:#fff!important;color:#111!important}.conversation-stamp{display:block!important}main{max-width:none!important;padding:12px!important}.conversation-panel{min-height:0}.card{break-inside:avoid}}

/* v1.6.4 — removed subjects/skills management */
.removed-library-card{margin-top:18px}.removed-library{margin-top:10px}.removed-library>summary{cursor:pointer;font-weight:700;padding:10px 0}.removed-library h3{margin:18px 0 8px}.removed-items{display:grid;gap:8px}.removed-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border:1px solid var(--line,#dfe5ec);border-radius:14px;background:rgba(255,255,255,.38)}.removed-item form{margin:0;flex:0 0 auto}.removed-item .btn{white-space:nowrap}@media(max-width:680px){.removed-item{align-items:flex-start;flex-direction:column}.removed-item form,.removed-item .btn{width:100%}}
/* v1.6.5 curriculum library */
.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.curriculum-note{margin-bottom:16px}.curriculum-note p{margin:8px 0 0}.curriculum-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.curriculum-pick{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line,#dfe5ec);border-radius:14px;cursor:pointer;margin:0}.curriculum-pick input{width:auto;margin-top:4px}.curriculum-pick span{display:grid;gap:3px}.curriculum-pick small{opacity:.65}.curriculum-pick em{font-style:normal;font-size:12px;opacity:.65}.curriculum-pick.already-added{opacity:.58;cursor:default}.curriculum-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}.source-card{margin-top:16px}@media(max-width:760px){.curriculum-picks{grid-template-columns:1fr}.curriculum-actions{justify-content:stretch}.curriculum-actions>*{flex:1}}

/* v1.6.6 — Parent PDF report */
.parent-report-screen{margin-bottom:16px}.report-screen-actions{display:flex;gap:8px;flex-wrap:wrap}.parent-report-controls{display:grid;grid-template-columns:minmax(220px,1fr) 170px 170px auto;gap:10px;align-items:end;margin-top:14px}.parent-report-controls button{height:43px}.report-note-editor{margin-top:12px}.report-note-editor textarea{margin-top:9px}.parent-report-sheet{max-width:900px;margin:0 auto;background:#fff;color:#172033;border:1px solid rgba(120,140,165,.18);border-radius:22px;padding:38px 42px;box-shadow:0 18px 60px rgba(34,55,86,.08)}.parent-report-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #e8edf4;padding-bottom:18px}.report-brand{font-size:22px;font-weight:900;letter-spacing:-.03em}.report-type{font-size:12px;color:#697386;margin-top:3px}.report-lock{font-size:10px;font-weight:900;letter-spacing:.12em;border:1px solid #dce4ef;border-radius:999px;padding:7px 10px;color:#697386}.parent-report-identity{display:flex;justify-content:space-between;gap:30px;padding:26px 0 22px}.report-label{font-size:10px;letter-spacing:.14em;font-weight:900;color:#7b8799}.parent-report-identity h1{font-size:31px;margin:5px 0 4px;letter-spacing:-.035em}.report-meta{font-size:13px;color:#697386}.report-date{display:grid;grid-template-columns:auto auto;gap:5px 12px;align-content:start;font-size:11px;text-align:right}.report-date span{color:#8a95a6}.report-date b{font-size:11px}.parent-report-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.parent-report-block{border:1px solid #e6ebf2;border-radius:16px;padding:17px 18px;background:#fbfcfe}.report-section-title{display:flex;gap:11px;align-items:flex-start}.report-section-title>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px;background:#eef4ff;color:#347ff0;font-size:10px;font-weight:900}.report-section-title>div{display:flex;flex-direction:column;gap:2px}.report-section-title b{font-size:14px}.report-section-title small{font-size:10px;color:#7b8799}.report-list{margin-top:13px;display:grid;gap:8px}.report-list>div{padding-top:8px;border-top:1px solid #edf0f4;display:flex;flex-direction:column;gap:2px}.report-list b,.report-progress-list b{font-size:12px;line-height:1.3}.report-list span,.report-progress-list span{font-size:10px;color:#778295}.report-list p,.report-soft-text{font-size:11px;color:#778295;line-height:1.45;margin:12px 0 0}.report-progress,.report-teacher-note{margin-top:14px}.report-progress-list{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.report-progress-list>div{border-top:1px solid #edf0f4;padding-top:8px;display:flex;flex-direction:column;gap:2px}.report-note-text{white-space:pre-wrap;margin-top:12px;min-height:52px;font-size:12px;line-height:1.55;color:#3f4a5c}.parent-report-footer{border-top:1px solid #e8edf4;margin-top:20px;padding-top:14px;display:flex;justify-content:space-between;gap:22px;color:#778295;font-size:9px;line-height:1.45}.parent-report-footer div{max-width:58%}.parent-report-footer b{max-width:38%;text-align:right;font-weight:700}.report-empty{padding:18px;border:1px dashed #d7dfeb;border-radius:14px;color:#697386;font-size:12px;margin-bottom:14px}
html[data-theme="dark"] .parent-report-sheet{box-shadow:0 18px 60px rgba(0,0,0,.22)}
@media(max-width:760px){.parent-report-controls{grid-template-columns:1fr 1fr}.parent-report-controls>div:first-child{grid-column:1/-1}.parent-report-controls button{grid-column:1/-1}.parent-report-sheet{padding:24px 20px;border-radius:18px}.parent-report-identity{flex-direction:column}.report-date{text-align:left;grid-template-columns:auto 1fr}.parent-report-columns,.report-progress-list{grid-template-columns:1fr}.parent-report-footer{flex-direction:column}.parent-report-footer div,.parent-report-footer b{max-width:none;text-align:left}}
@media print{@page{size:A4;margin:11mm}html,body{background:#fff!important}.parent-report-screen,.topbar,.privacy-footer{display:none!important}main{padding:0!important;margin:0!important;max-width:none!important}.parent-report-sheet{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#172033!important}.parent-report-header{padding-bottom:12px}.parent-report-identity{padding:16px 0 14px}.parent-report-identity h1{font-size:25px}.parent-report-block{padding:12px 13px;border-radius:11px;background:#fff!important;break-inside:avoid}.report-progress,.report-teacher-note{margin-top:9px}.report-list{margin-top:8px;gap:5px}.report-list>div,.report-progress-list>div{padding-top:5px}.report-progress-list{margin-top:8px}.parent-report-footer{margin-top:12px;padding-top:9px}.parent-report-columns{gap:9px}.report-empty{margin-bottom:9px;padding:12px} }


/* v1.6.6a — visual hotfix: grade tabs, evidence badges, parent report */
.library-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.library-toolbar>div>.small{margin-right:2px!important}
.recent-observation{align-items:center}
.recent-observation>div{align-self:center}
.recent-observation .observation-status{align-self:center;justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-height:0!important;height:auto!important;padding:5px 9px;line-height:1;font-size:8.5px;font-weight:800;letter-spacing:.01em}

/* Keep the report visually separate from the application and close to an A4 handout. */
.parent-report-sheet{position:relative;overflow:hidden;max-width:820px;margin:22px auto 34px;background:#fff!important;color:#172033!important;border:1px solid #e1e7f0!important;border-radius:24px!important;padding:40px 44px 34px!important;box-shadow:0 22px 70px rgba(31,50,78,.12)!important}
.parent-report-sheet:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#347ff0,#72a8f7)}
.parent-report-header{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px;border-bottom:1px solid #e7ecf3!important;padding:0 0 18px!important}
.report-brand{font-size:20px!important;line-height:1.1!important;font-weight:900!important;color:#172033!important}.report-type{font-size:11px!important;line-height:1.35!important;color:#748198!important;margin-top:4px!important}.report-lock{display:inline-flex!important;align-items:center!important;min-height:0!important;font-size:8px!important;line-height:1!important;font-weight:850!important;letter-spacing:.11em!important;border:1px solid #dce4ef!important;border-radius:999px!important;padding:7px 9px!important;color:#697386!important;background:#f8fafc!important}
.parent-report-identity{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:28px!important;padding:24px 0 20px!important}.report-label{font-size:8px!important;line-height:1!important;letter-spacing:.15em!important;font-weight:900!important;color:#8390a4!important}.parent-report-identity h1{font-size:29px!important;line-height:1.08!important;margin:6px 0 5px!important;letter-spacing:-.035em!important;color:#172033!important}.report-meta{font-size:11px!important;line-height:1.4!important;color:#69768c!important}.report-date{display:grid!important;grid-template-columns:auto auto!important;gap:5px 11px!important;align-content:start!important;font-size:9px!important;line-height:1.25!important;text-align:right!important;padding-top:2px}.report-date span{color:#909bad!important}.report-date b{font-size:9px!important;color:#3d485b!important}
.parent-report-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.parent-report-block{display:block!important;border:1px solid #e5eaf1!important;border-radius:15px!important;padding:15px 16px!important;background:#fbfcfe!important;color:#172033!important}.report-strength{border-top:3px solid #78b994!important}.report-improve{border-top:3px solid #e5b366!important}.report-progress{border-top:3px solid #7fa9e8!important}.report-teacher-note{border-top:3px solid #a69bd8!important}.report-section-title{display:flex!important;gap:10px!important;align-items:flex-start!important}.report-section-title>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 25px!important;width:25px!important;height:25px!important;min-height:0!important;border-radius:8px!important;background:#edf4ff!important;color:#347ff0!important;font-size:8px!important;line-height:1!important;font-weight:900!important}.report-section-title>div{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0}.report-section-title b{font-size:12px!important;line-height:1.25!important;color:#172033!important}.report-section-title small{font-size:8.5px!important;line-height:1.35!important;color:#7d899b!important}.report-list{margin-top:11px!important;display:grid!important;gap:0!important}.report-list>div{padding:7px 0!important;border-top:1px solid #edf0f4!important;display:flex!important;flex-direction:column!important;gap:2px!important}.report-list b,.report-progress-list b{font-size:10.5px!important;line-height:1.3!important;color:#253147!important}.report-list span,.report-progress-list span{font-size:8.5px!important;line-height:1.35!important;color:#7c8798!important}.report-list p,.report-soft-text{font-size:9.5px!important;color:#778295!important;line-height:1.45!important;margin:10px 0 0!important}.report-progress,.report-teacher-note{margin-top:12px!important}.report-progress-list{margin-top:10px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.report-progress-list>div{border-top:1px solid #edf0f4!important;padding-top:7px!important;display:flex!important;flex-direction:column!important;gap:2px!important}.report-note-text{white-space:pre-wrap!important;margin-top:10px!important;min-height:46px!important;font-size:10.5px!important;line-height:1.5!important;color:#3f4a5c!important}.parent-report-footer{border-top:1px solid #e8edf4!important;margin-top:17px!important;padding-top:12px!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;color:#7d8797!important;font-size:7.8px!important;line-height:1.45!important}.parent-report-footer div{max-width:60%!important}.parent-report-footer b{max-width:36%!important;text-align:right!important;font-weight:750!important;color:#657185!important}.report-empty{padding:14px!important;border:1px dashed #d7dfeb!important;border-radius:12px!important;color:#697386!important;font-size:10px!important;margin-bottom:12px!important}
@media(max-width:760px){.library-toolbar>div{gap:8px}.library-toolbar>div>.small{width:100%;margin-bottom:2px}.parent-report-sheet{margin:14px 0 24px!important;padding:25px 20px!important;border-radius:18px!important}.parent-report-identity{flex-direction:column!important}.report-date{text-align:left!important;grid-template-columns:auto 1fr!important}.parent-report-columns,.report-progress-list{grid-template-columns:1fr!important}.parent-report-footer{flex-direction:column!important}.parent-report-footer div,.parent-report-footer b{max-width:none!important;text-align:left!important}}
@media print{@page{size:A4;margin:12mm}.parent-report-sheet{overflow:visible!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.parent-report-sheet:before{display:none!important}.parent-report-header{padding-bottom:11px!important}.parent-report-identity{padding:15px 0 13px!important}.parent-report-identity h1{font-size:24px!important}.parent-report-block{padding:10px 11px!important;border-radius:10px!important;break-inside:avoid!important}.parent-report-columns{gap:8px!important}.report-progress,.report-teacher-note{margin-top:8px!important}.report-list{margin-top:7px!important}.report-list>div,.report-progress-list>div{padding-top:5px!important}.report-progress-list{margin-top:7px!important}.parent-report-footer{margin-top:10px!important;padding-top:8px!important}}
/* v1.6.7 presentation builder */
.presentation-builder{display:grid;gap:14px}.presentation-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;background:linear-gradient(135deg,rgba(50,111,232,.11),rgba(124,92,214,.08),rgba(255,255,255,.75))}.presentation-intro h2{margin:4px 0 8px;font-size:clamp(24px,2.3vw,36px)}.presentation-preview-mark{flex:0 0 auto;width:112px;aspect-ratio:16/9;border-radius:16px;display:grid;place-items:center;font-weight:800;color:#326fe8;background:rgba(255,255,255,.72);border:1px solid rgba(50,111,232,.22);box-shadow:0 14px 34px rgba(37,65,120,.12)}.presentation-options{padding:22px}.presentation-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.presentation-option{display:flex;gap:11px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.48);cursor:pointer}.presentation-option input{width:auto;margin-top:3px}.presentation-option span{display:grid;gap:3px}.presentation-option small{color:var(--mut);line-height:1.35}.presentation-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.presentation-form-row label{display:grid;gap:6px}.presentation-form-row label>span{font-size:13px;font-weight:750;color:var(--mut)}.presentation-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}@media(max-width:850px){.presentation-option-grid{grid-template-columns:1fr 1fr}.presentation-form-row{grid-template-columns:1fr}}@media(max-width:560px){.presentation-option-grid{grid-template-columns:1fr}.presentation-intro{padding:20px}.presentation-preview-mark{display:none}}

/* v1.6.8 — local presentation library + in-browser slide preview */
.presentation-preview-top{align-items:flex-end}.presentation-preview-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.presentation-web-deck{display:grid;gap:28px;max-width:1180px;margin:18px auto 36px}.pv-slide{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:24px;background:#f4f7fc;color:#17233d;border:1px solid rgba(86,105,140,.14);box-shadow:0 22px 60px rgba(34,55,91,.13);padding:4.8% 5.2%;display:flex;flex-direction:column}.pv-slide h2{font-size:clamp(28px,3.1vw,48px);letter-spacing:-.035em;margin:2.4% 0 3.1%;line-height:1.02}.pv-chrome{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.13em;color:#758199}.pv-chrome b{color:#61749a}.pv-body{flex:1;min-height:0}.pv-foot{display:flex;justify-content:space-between;align-items:flex-end;border-top:1px solid #dce4f1;padding-top:1%;font-size:8px;color:#8792a7}.pv-cover{padding:0;background:#f4f7fc}.pv-cover-panel{position:absolute;z-index:2;left:5%;top:9%;bottom:9%;width:66%;background:#fff;border-radius:26px;padding:5% 4.5%;box-shadow:0 18px 55px rgba(37,65,120,.10)}.pv-brand{font-size:11px;letter-spacing:.14em;font-weight:900;color:#5572ac}.pv-cover h2{font-size:clamp(36px,4.6vw,66px);margin:11% 0 4%}.pv-cover h3{color:#326fe8;font-size:clamp(18px,2vw,29px);margin:0 0 4%}.pv-cover p{color:#6b7894;font-size:clamp(13px,1.35vw,20px)}.pv-cover small{position:absolute;bottom:7%;left:6%;color:#7c879f}.pv-orb{position:absolute;width:42%;aspect-ratio:1;border-radius:50%;right:-12%;top:-28%;background:#315fe8}.pv-agenda{display:grid;grid-template-columns:70px 1fr;gap:18px 22px;align-items:center;font-size:clamp(16px,1.8vw,27px);padding-top:1%}.pv-agenda b{color:#326fe8;font-size:13px}.pv-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2%;height:70%;align-items:stretch}.pv-metrics>div,.pv-three>div{background:#fff;border-radius:20px;padding:9%;display:flex;flex-direction:column;justify-content:center}.pv-metrics strong{font-size:clamp(38px,5vw,74px);color:#326fe8;line-height:1}.pv-metrics span{margin-top:8%;color:#6f7b91;font-size:clamp(12px,1.2vw,18px)}.pv-row{display:grid;grid-template-columns:12px 1fr;gap:18px;align-items:center;background:#fff;border-radius:15px;padding:1.5% 2%;margin-bottom:1.3%}.pv-row>span{width:11px;height:11px;border-radius:50%;background:#326fe8}.pv-row div{display:grid}.pv-row b{font-size:clamp(14px,1.55vw,23px)}.pv-row small{color:#73809a;margin-top:4px}.pv-empty{background:#fff;border-radius:18px;padding:4%;color:#748198}.pv-subjects{display:grid;gap:4%}.pv-subjects>div{display:grid;grid-template-columns:24% 1fr 40px;gap:2%;align-items:center}.pv-subjects span{font-weight:800}.pv-subjects i{height:10px;background:#e3e9f4;border-radius:99px;overflow:hidden}.pv-subjects em{display:block;height:100%;background:#326fe8;border-radius:99px}.pv-subjects b{text-align:right;color:#68758e}.pv-three{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2%;height:72%}.pv-three>div{padding:8%;justify-content:flex-start}.pv-three b{font-size:clamp(15px,1.5vw,23px);color:#326fe8}.pv-three p{font-size:clamp(11px,1.05vw,16px);line-height:1.45;color:#68758e}.pv-questions{background:#fff;border-radius:20px;padding:3.5% 4%;display:grid;gap:5%}.pv-questions p{font-size:clamp(14px,1.45vw,22px);font-weight:800;margin:0;padding-left:3%;border-left:6px solid #326fe8}.pv-dates{display:grid;gap:2.5%}.pv-dates>div{display:grid;grid-template-columns:20% 1fr;gap:2%}.pv-dates b,.pv-dates span{background:#fff;border-radius:12px;padding:2.2% 4%}.pv-dates b{background:#eaf1ff;color:#326fe8}.pv-dates span{color:#8993a8}.pv-notes{background:#fff;border-radius:20px;padding:4%;height:78%;display:grid;align-content:space-around}.pv-notes i{height:1px;background:#e4e9f2}.pv-dark{background:#10182c;color:#fff}.pv-thanks{justify-content:center;padding:6%}.pv-thanks .pv-brand{color:#8ea8ea}.pv-thanks h2{font-size:clamp(38px,5vw,72px);margin:7% 0 3%;color:#fff}.pv-thanks p{max-width:80%;font-size:clamp(15px,1.7vw,25px);line-height:1.45;color:#dce5ff}.pv-thanks small{position:absolute;bottom:7%;color:#9eacca}@media(max-width:760px){.presentation-preview-top{align-items:flex-start}.presentation-preview-actions{justify-content:flex-start}.presentation-web-deck{gap:14px}.pv-slide{border-radius:15px}.pv-cover-panel{border-radius:15px}.pv-row{gap:8px}.pv-three{gap:1.5%}.pv-foot span{display:none}}


/* v1.6.9 — saved presentations + quick-entry frozen headers and column ordering */
.presentation-library-panel{margin-bottom:14px}.presentation-panel-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:14px}.presentation-panel-head h2{margin:3px 0 0}.presentation-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.presentation-saved-card{border:1px solid var(--line);border-radius:17px;padding:15px;background:rgba(255,255,255,.5)}.presentation-saved-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.presentation-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:850}.presentation-status.draft{background:#fff3df;color:#95601b}.presentation-status.ready{background:#e5f6ec;color:#247148}.presentation-saved-card h3{margin:11px 0 4px;font-size:16px}.presentation-saved-card p{margin:0 0 8px;color:var(--mut);min-height:20px}.presentation-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.presentation-card-actions form{margin:0}.presentation-card-actions .btn,.presentation-card-actions button{min-height:34px;padding:6px 9px;font-size:11px}.presentation-empty{padding:20px;border:1px dashed var(--line);border-radius:14px;color:var(--mut);text-align:center}.presentation-save-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:18px}.presentation-save-row label{display:grid;gap:6px;min-width:160px}.presentation-save-row label>span{font-size:12px;font-weight:750;color:var(--mut)}
.column-order{margin:12px 0 8px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.48);padding:0 12px}.column-order summary{cursor:pointer;padding:11px 0;font-size:12px;font-weight:800;color:var(--mut)}.column-order-form{padding:0 0 12px}.column-order-list{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 10px}.column-order-item{display:flex;align-items:center;gap:7px;flex:0 0 auto;max-width:210px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:11px;cursor:grab}.column-order-item.dragging{opacity:.45}.drag-handle{color:var(--mut);font-size:15px;letter-spacing:-3px}
.quick-wrap{position:relative;isolation:isolate;margin-top:0!important}.quick-head-viewport{position:sticky;top:86px;z-index:24;overflow:hidden;background:rgba(247,249,252,.97);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(120,140,165,.16);padding-top:7px;padding-bottom:7px}.quick-head{position:relative!important;top:auto!important;z-index:1;background:transparent!important;padding:0!important;border:0!important}.quick-head>div:first-child{position:sticky;left:0;z-index:25;background:rgba(247,249,252,.99);box-shadow:8px 0 14px rgba(45,65,95,.04)}.student-name{position:sticky;left:0;z-index:15;background:rgba(250,252,255,.98);box-shadow:8px 0 14px rgba(45,65,95,.05)}
html[data-theme="dark"] .quick-head-viewport,html[data-theme="dark"] .quick-head>div:first-child{background:rgba(22,31,47,.97)}html[data-theme="dark"] .student-name{background:rgba(22,31,47,.99)}html[data-theme="dark"] .presentation-saved-card,html[data-theme="dark"] .column-order{background:rgba(28,39,57,.72)}
@media(max-width:900px){.presentation-saved-grid{grid-template-columns:1fr 1fr}.quick-head-viewport{top:78px}}
@media(max-width:620px){.presentation-saved-grid{grid-template-columns:1fr}.presentation-panel-head{align-items:flex-start;flex-direction:column}.presentation-save-row>*{width:100%}.quick-head-viewport{top:8px}}

/* v1.7.0 — Class overview analytics v2 */
.overview-top{align-items:flex-end}.overview-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.overview-filter{display:flex;align-items:end;gap:14px;padding:14px 16px;margin-bottom:12px}.overview-filter label{display:grid;gap:5px;min-width:220px}.overview-filter label>span{font-size:11px;font-weight:850;color:var(--mut);text-transform:uppercase;letter-spacing:.08em}.overview-period-note{display:grid;gap:2px}.privacy-banner{padding:10px 14px;margin:0 0 12px;border-radius:12px;background:rgba(47,119,230,.08);border:1px solid rgba(47,119,230,.16);font-size:12px;font-weight:750;color:var(--mut)}.overview-metrics{margin-bottom:14px}.overview-v2-grid{grid-template-columns:1fr 1fr;margin-bottom:14px}.section-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:#6f83aa;margin-bottom:3px}.trend-bars{height:205px;display:flex;align-items:flex-end;gap:8px;padding:22px 2px 0}.trend-col{height:100%;flex:1;min-width:24px;display:grid;grid-template-rows:18px 1fr 18px;gap:4px;text-align:center}.trend-value{font-size:10px;font-weight:850;color:var(--mut)}.trend-stick{height:100%;display:flex;align-items:flex-end;justify-content:center;background:rgba(47,119,230,.055);border-radius:8px;overflow:hidden}.trend-stick i{display:block;width:100%;background:linear-gradient(180deg,#5b91ee,#3277e6);border-radius:7px 7px 3px 3px;min-height:4px}.trend-col small{font-size:8px;color:var(--mut);white-space:nowrap;overflow:hidden}.subject-compare{display:grid;gap:12px;margin-top:18px}.subject-compare-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,2fr) 74px;gap:12px;align-items:center}.subject-compare-row>div:first-child{display:grid}.subject-compare-row small{color:var(--mut);font-size:9px}.subject-compare-row>span{text-align:right;font-size:10px;font-weight:800;color:var(--mut)}.dualbar{height:9px;border-radius:99px;background:rgba(120,140,165,.12);display:flex;overflow:hidden}.dualbar i{background:#45a879}.dualbar em{background:#e0a349}.legend{display:flex;gap:14px;margin-top:16px;font-size:9px;color:var(--mut)}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:8px;height:8px;border-radius:50%}.lg-good{background:#45a879}.lg-focus{background:#e0a349}.rank-list{display:grid;gap:8px;margin-top:15px}.rank-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.38)}.rank-row>div{display:grid;gap:2px}.rank-row b{font-size:12px}.rank-row small{font-size:9px;color:var(--mut)}.rank-row>strong{font-size:12px;color:#9a681f;white-space:nowrap}.progress-row>strong{color:#2f8658}.rank-link{text-decoration:none;color:inherit}.rank-link:hover,.rank-link:focus-visible{outline:1px solid rgba(47,119,230,.55);outline-offset:2px}.positive-empty{margin-top:15px;padding:13px;border-radius:12px;background:rgba(69,168,121,.08);color:var(--mut);font-size:11px}.stale-list{display:grid;gap:7px;margin-top:15px}.stale-list a{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:inherit;padding:9px 11px;border-bottom:1px solid var(--line)}.stale-list a span{font-size:9px;color:var(--mut)}.coverage-big{display:flex;align-items:baseline;gap:12px;margin-top:24px}.coverage-big strong{font-size:54px;line-height:1;color:#3277e6}.coverage-big span{max-width:180px;color:var(--mut);font-size:12px}.overview-detail-v2{margin-top:0}html[data-theme="dark"] .rank-row{background:rgba(28,39,57,.55)}html[data-theme="dark"] .trend-stick{background:rgba(255,255,255,.055)}
@media(max-width:900px){.overview-v2-grid{grid-template-columns:1fr}.overview-top{align-items:flex-start}.overview-actions{justify-content:flex-start}.subject-compare-row{grid-template-columns:minmax(100px,1fr) minmax(100px,1.5fr) 68px}}@media(max-width:620px){.overview-filter{align-items:stretch;flex-direction:column}.overview-filter label{min-width:0}.trend-bars{height:170px}.subject-compare-row{grid-template-columns:1fr}.subject-compare-row>span{text-align:left}.overview-actions .btn{width:100%}}
/* v1.7.0a — smoother class overview interactions */
#overviewDynamic{transition:opacity .14s ease}#overviewDynamic.is-loading{opacity:.48;pointer-events:none}.skills-card{align-self:start}.skill-inline-detail{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.skill-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.skill-detail-head h3{margin:0;font-size:16px}.skill-detail-close{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;text-decoration:none;color:var(--mut);font-size:20px;line-height:1}.skill-detail-close:hover,.skill-detail-close:focus-visible{outline:1px solid rgba(47,119,230,.55);outline-offset:2px}.rank-link.active{border-color:rgba(47,119,230,.48);background:rgba(47,119,230,.065)}.skill-inline-detail .drill-kids{grid-template-columns:1fr;margin-top:0}.skill-inline-detail .drill-kid{padding:9px 11px}.detail-empty.compact{min-height:0;padding:12px 4px 2px;display:flex;align-items:center;gap:8px}.detail-empty.compact span{font-size:18px}.detail-empty.compact p{margin:0;font-size:10px}

/* v1.7.0b */
.brand{display:flex;align-items:center}.brand:before{content:none!important;display:none!important}.brand-logo{width:27px;height:27px;object-fit:contain;display:block;flex:0 0 27px;margin-right:9px;border-radius:7px}.student-profile-collapsible{padding:0!important;overflow:hidden}.student-profile-collapsible>summary{list-style:none}.student-profile-collapsible>summary::-webkit-details-marker{display:none}.student-profile-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;cursor:pointer;user-select:none}.student-profile-summary h2{margin:0 0 3px}.student-profile-summary p{margin:0}.student-profile-summary-action{display:inline-flex;align-items:center;gap:7px;color:var(--blue);font-size:12px;font-weight:800;white-space:nowrap}.student-profile-summary-action:after{content:"⌄";font-size:17px;line-height:1;transition:transform .18s ease}.student-profile-collapsible[open] .student-profile-summary-action{font-size:0}.student-profile-collapsible[open] .student-profile-summary-action:before{content:"Aizvērt";font-size:12px}.student-profile-collapsible[open] .student-profile-summary-action:after{transform:rotate(180deg)}.student-profile-edit-body{padding:0 20px 20px;border-top:1px solid rgba(125,145,170,.16)}.student-profile-edit-body>.top{padding-top:16px;margin-bottom:12px}@media(max-width:700px){.brand-logo{width:24px;height:24px;flex-basis:24px;margin-right:7px}.student-profile-summary{padding:15px 16px}.student-profile-edit-body{padding:0 16px 16px}}
/* v1.9.0 STEP 2 — backups */
.backup-create-card{margin-top:14px}.backup-security{margin-top:14px;padding:12px 14px;border-radius:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(48,170,112,.08);border:1px solid rgba(48,170,112,.18)}.backup-security.bad{background:rgba(190,65,65,.07);border-color:rgba(190,65,65,.18)}.backup-security code{font-size:11px;opacity:.7;overflow-wrap:anywhere}.backup-list{display:grid;gap:10px}.backup-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-top:1px solid rgba(120,140,165,.15)}.backup-row:first-child{border-top:0}.backup-row>div:first-child{display:grid;gap:4px}.backup-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.backup-actions form{margin:0}.backup-scope{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.backup-scope span{display:grid;gap:4px;padding:13px;border:1px solid rgba(120,140,165,.17);border-radius:14px}.backup-scope small{color:var(--muted)}
@media(max-width:900px){.backup-row{align-items:flex-start;flex-direction:column}.backup-actions{justify-content:flex-start}.backup-scope{grid-template-columns:1fr}}
/* STEP 3 — controlled restore */
.restore-btn{border-color:rgba(55,125,235,.28)}.restore-status.ok{border:1px solid rgba(48,170,112,.22);background:rgba(48,170,112,.055)}.restore-status p{margin:5px 0 0}.restore-id{font-size:15px!important;overflow-wrap:anywhere}.restore-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.restore-steps span{display:grid;gap:5px;padding:14px;border:1px solid rgba(120,140,165,.17);border-radius:14px}.restore-steps small{color:var(--muted);line-height:1.45}.restore-danger{border:1px solid rgba(190,65,65,.2)}.restore-danger code{font-weight:800}.restore-danger label{display:grid;gap:8px;margin-top:16px;max-width:720px}.restore-danger input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:800px){.restore-steps{grid-template-columns:1fr}}

/* STEP 4 — controlled data exports */
.export-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.export-type{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line,#dfe5ef);border-radius:16px;padding:15px;background:rgba(255,255,255,.38);cursor:pointer}.export-type input{width:auto;margin-top:3px}.export-type span{display:grid;gap:4px}.export-type small,.export-row small{display:block;color:var(--muted,#69758d);margin-top:4px}.export-options{display:grid;grid-template-columns:2fr 1.5fr 1fr 1fr;gap:12px;margin:12px 0}.export-options[data-for="student"]{grid-template-columns:minmax(280px,620px)}.export-preview{display:flex;gap:12px;align-items:center;padding:13px 15px;margin:14px 0;border:1px solid rgba(55,128,235,.22);background:rgba(55,128,235,.07);border-radius:14px}.export-preview span{color:var(--muted,#69758d)}.export-list{display:grid}.export-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-top:1px solid var(--line,#e2e7ef)}.export-row:first-child{border-top:0}.export-actions{display:flex;align-items:center;gap:8px}.export-actions form{margin:0}.export-safety .admin-grid>div{padding:14px;border:1px solid var(--line,#e2e7ef);border-radius:14px}.export-safety p{margin:5px 0 0}@media(max-width:1000px){.export-type-grid{grid-template-columns:1fr 1fr}.export-options{grid-template-columns:1fr 1fr}}@media(max-width:650px){.export-type-grid,.export-options{grid-template-columns:1fr}.export-row{align-items:flex-start;flex-direction:column}.export-actions{width:100%;flex-wrap:wrap}.export-preview{align-items:flex-start;flex-direction:column}}

/* STEP 7 — explicit pedagogical sharing */
.share-row,.shared-observation-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(125,145,170,.16)}
.share-row:first-of-type,.shared-observation-row:first-of-type{border-top:0}.share-row form{margin:0}.shared-observation-row>div:first-child{min-width:0}.shared-observation-row p{margin:7px 0 0;white-space:pre-wrap}.shared-observation-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap;color:var(--muted,#64748b)}
@media(max-width:720px){.share-row,.shared-observation-row{align-items:flex-start;flex-direction:column}.shared-observation-meta{align-items:flex-start}.share-row form,.share-row .btn{width:100%}}

/* STEP 7 privacy: friendly access-denied state */
.access-denied-wrap{min-height:calc(100vh - 250px);display:grid;place-items:center;padding:34px 0 54px}
.access-denied-card{width:min(720px,100%);display:grid;grid-template-columns:72px 1fr;gap:22px;align-items:start;padding:28px!important}
.access-denied-icon{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;font-size:29px;background:rgba(55,116,246,.10);border:1px solid rgba(55,116,246,.16)}
.access-denied-card .eyebrow{font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:2px 0 7px}
.access-denied-card h1{margin:0 0 10px;font-size:clamp(25px,3vw,34px);line-height:1.12}
.access-denied-card p{max-width:590px;line-height:1.6;margin:0 0 10px}
.access-denied-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
html[data-theme="dark"] .access-denied-icon{background:rgba(90,145,255,.13);border-color:rgba(120,165,255,.22)}
@media(max-width:620px){.access-denied-wrap{padding:18px 0 36px}.access-denied-card{grid-template-columns:1fr;gap:14px;padding:20px!important}.access-denied-icon{width:54px;height:54px;border-radius:17px;font-size:24px}.access-denied-actions{display:grid;grid-template-columns:1fr}.access-denied-actions .btn{text-align:center}}

/* STEP 7 privacy QA: student avatar access + polished picker */
.student-avatar-link{display:inline-flex;border-radius:50%;text-decoration:none;flex:0 0 auto;transition:box-shadow .16s ease}
.student-avatar-link:hover,.student-avatar-link:focus-visible{outline:2px solid rgba(52,127,240,.34);outline-offset:3px}
.student-avatar-link .student-avatar{display:block}
.student-avatar-upload{display:flex;flex-direction:column;gap:5px}
.student-avatar-upload .field-label{font-size:11px;font-weight:800;color:var(--mut)}
.student-avatar-upload .file-upload{margin-top:0}
.avatar-open-link{display:inline-flex;width:max-content;margin-top:2px;color:#347ff0;text-decoration:none;font-weight:750}
.avatar-open-link:hover{text-decoration:underline}
/* STEP 8 — Audit log v2 */
.audit-filter-card{margin-bottom:14px}.audit-filters{display:grid;grid-template-columns:2fr 1.2fr 1.4fr 1fr 1fr auto;gap:12px;align-items:end}.audit-filters label{display:grid;gap:7px;font-weight:700}.audit-filters input,.audit-filters select{min-width:0}.audit-filter-actions{display:flex;gap:8px;align-items:center}.audit-summary{display:flex;justify-content:space-between;align-items:center;margin:12px 4px}.audit-table-card{padding:0;overflow:hidden}.audit-table{margin:0}.audit-table th{white-space:nowrap}.audit-table td{vertical-align:top}.audit-table small{display:block;margin-top:4px;color:var(--muted,#68758d);font-weight:500}.audit-time{white-space:nowrap;font-variant-numeric:tabular-nums}.audit-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(59,130,246,.10);border:1px solid rgba(59,130,246,.18);font-size:12px;font-weight:800;white-space:nowrap}.audit-details{max-width:360px;overflow-wrap:anywhere}.audit-pages{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:16px}@media(max-width:1100px){.audit-filters{grid-template-columns:1fr 1fr 1fr}.audit-filter-actions{grid-column:span 3}}@media(max-width:700px){.audit-filters{grid-template-columns:1fr}.audit-filter-actions{grid-column:auto}.audit-summary{align-items:flex-start;gap:6px;flex-direction:column}}

/* STEP 10 — System status v2 */
.health-overall{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:850;border:1px solid rgba(47,160,100,.2);background:rgba(47,160,100,.08)}.health-overall i,.health-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#35a86b}.health-overall.warn{background:rgba(210,150,45,.09);border-color:rgba(210,150,45,.22)}.health-overall.warn i,.health-dot.warn{background:#d79a2d}.health-overall.bad{background:rgba(190,65,65,.08);border-color:rgba(190,65,65,.2)}.health-overall.bad i,.health-dot.bad{background:#c94f57}.health-metrics .metric small{display:block;margin-top:5px;color:var(--muted,#68758d);font-size:10px}.health-card{margin-top:14px}.top.compact{margin-bottom:14px;align-items:center}.top.compact h2{margin-bottom:3px}.health-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.health-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 0;border-top:1px solid rgba(125,145,170,.14)}.health-row:nth-child(-n+2){border-top:0}.health-row small{display:block;margin-top:3px;color:var(--muted,#68758d);font-size:10px;line-height:1.35}.health-value{font-size:12px;white-space:nowrap}.health-value.ok{color:#26885a}.health-value.warn{color:#a76d11}.health-value.bad{color:#b63f49}.health-two{grid-template-columns:1fr 1fr}.health-feature{display:grid;gap:5px}.health-feature>strong{font-size:18px}.health-feature>span{font-size:12px}.health-feature>small{color:var(--muted,#68758d);overflow-wrap:anywhere}.health-tools{display:flex;gap:9px;flex-wrap:wrap}.health-tools .btn{display:inline-flex;align-items:center;gap:10px}.health-tools .btn span{font-size:11px;opacity:.65}.health-runtime p{margin:13px 0 0}.health-dot{width:7px;height:7px}
@media(max-width:900px){.health-grid,.health-two{grid-template-columns:1fr}.health-row:nth-child(2){border-top:1px solid rgba(125,145,170,.14)}}@media(max-width:620px){.health-row{grid-template-columns:10px 1fr}.health-value{grid-column:2}.health-overall{margin-top:8px}.health-tools{display:grid;grid-template-columns:1fr}.health-tools .btn{justify-content:space-between}}

/* RC.3 — keep work metadata focus ring fully visible above neighbouring grid cells. */
.work-meta input:focus-visible,.work-meta select:focus-visible,.work-meta textarea:focus-visible{position:relative;z-index:2;outline-offset:1px!important;box-shadow:0 0 0 3px rgba(75,141,244,.14)!important}

/* RC.4 — work view/edit UX: stable column controls, truly read-only view, complete focus ring. */
.work-meta>div{min-width:0;position:relative}
.work-meta input:focus-visible,.work-meta select:focus-visible,.work-meta textarea:focus-visible{outline:none!important;border-color:#4b8df4!important;box-shadow:0 0 0 2px #4b8df4,0 0 0 5px rgba(75,141,244,.12)!important;position:relative;z-index:3}
.work-meta input:disabled{pointer-events:none;cursor:default;opacity:1;color:var(--ink);-webkit-text-fill-color:var(--ink);background:rgba(255,255,255,.48)}
.column-order-inline{margin:16px 0 2px;padding:0;border-top:1px solid rgba(120,140,165,.14);border-radius:0;background:transparent}
.column-order-inline>summary{padding:13px 2px 8px}
.column-order-inline .column-order-form{padding:0 0 4px}
html[data-theme="dark"] .work-meta input:disabled{background:rgba(28,39,57,.52);color:#eef4ff;-webkit-text-fill-color:#eef4ff}

/* v2.0.0-rc.5 — in-table column drag ordering */
.column-drag-toolbar{display:flex;align-items:center;gap:12px;margin:14px 0 7px;padding:10px 13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.48)}
.column-drag-toolbar>div:first-child{display:flex;align-items:baseline;gap:9px;min-width:0}.column-drag-toolbar b{font-size:12px}.column-drag-toolbar #columnDragHelp{font-size:11px;color:var(--mut)}
.column-drag-switch{position:relative;display:inline-flex!important;flex:0 0 auto;width:42px!important;height:24px!important;margin:0!important;cursor:pointer}.column-drag-switch input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important}.column-drag-slider{position:absolute;inset:0;border-radius:999px;background:#cbd4e1;box-shadow:inset 0 0 0 1px rgba(80,100,130,.12);transition:.18s}.column-drag-slider:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(20,35,60,.22);transition:.18s}.column-drag-switch input:checked+.column-drag-slider{background:#3986f6}.column-drag-switch input:checked+.column-drag-slider:after{transform:translateX(18px)}.column-drag-switch input:focus-visible+.column-drag-slider{box-shadow:0 0 0 3px rgba(57,134,246,.22)}
.column-order-status{margin-left:auto;min-width:125px;text-align:right;font-size:11px;font-weight:750;color:var(--mut)}
.column-drag-grip{display:none;color:#65758c;font-size:15px;line-height:1;letter-spacing:-3px;margin-right:4px}.column-drag-mode .column-drag-grip{display:inline-block}.column-drag-mode .skill-head{cursor:grab;user-select:none;border-radius:9px;transition:background .12s,box-shadow .12s,opacity .12s}.column-drag-mode .skill-head:hover{background:rgba(57,134,246,.07);box-shadow:inset 0 0 0 1px rgba(57,134,246,.16)}.column-drag-mode .skill-head.dragging{opacity:.35;cursor:grabbing}.column-drag-mode .skill-head.drop-before{box-shadow:inset 3px 0 0 #3986f6}.column-drag-mode .skill-head.drop-after{box-shadow:inset -3px 0 0 #3986f6}.column-drag-mode .mark{pointer-events:none}.skill-head-text{display:inline}
html[data-theme="dark"] .column-drag-toolbar{background:rgba(28,39,57,.72)}html[data-theme="dark"] .column-drag-mode .skill-head:hover{background:rgba(76,143,245,.12)}
@media(max-width:700px){.column-drag-toolbar{align-items:flex-start;flex-wrap:wrap}.column-drag-toolbar>div:first-child{display:block;flex:1}.column-drag-toolbar #columnDragHelp{display:block;margin-top:2px}.column-order-status{width:100%;text-align:left;margin-left:0}}
/* v2.0.0-rc.6 — compact column reorder control + pointer drag */
.column-drag-compact{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:-4px 2px 6px;min-height:28px}.column-drag-label{font-size:10px;font-weight:750;color:var(--mut)}.column-drag-compact .column-order-status{font-size:10px;color:var(--mut);margin-right:4px}.column-drag-compact .column-drag-switch{width:34px!important;height:19px!important}.column-drag-compact .column-drag-slider:after{width:13px;height:13px;left:3px;top:3px}.column-drag-compact .column-drag-switch input:checked+.column-drag-slider:after{transform:translateX(15px)}
.column-drag-grip{display:none!important;margin:0 auto 2px!important;font-size:11px!important;line-height:.7!important;letter-spacing:1px!important;color:#6c7d95}.column-drag-mode .column-drag-grip{display:block!important}.column-drag-mode .skill-head{touch-action:none;cursor:grab;user-select:none}.column-drag-mode .skill-head.dragging{cursor:grabbing;opacity:.45;background:rgba(57,134,246,.09)}.column-drag-mode .skill-head.drop-before{box-shadow:inset 4px 0 0 #3986f6!important}.column-drag-mode .skill-head.drop-after{box-shadow:inset -4px 0 0 #3986f6!important}.skill-head-text{display:block!important}
@media(max-width:700px){.column-drag-compact{justify-content:flex-end;margin-top:2px}.column-drag-label{font-size:9px}}

/* RC.7: compact column ordering control and clean drag status */
.column-drag-compact{position:relative;display:flex;justify-content:flex-end;align-items:center;gap:7px;margin:-2px 4px 5px;min-height:22px;white-space:nowrap}
.column-drag-compact .column-drag-label{font-size:10px;line-height:1;font-weight:750;color:var(--mut)}
.column-drag-compact .column-order-status{position:absolute;right:92px;top:50%;transform:translateY(-50%);max-width:min(460px,55vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:10px;line-height:1.2;color:var(--mut);pointer-events:none}
.column-drag-compact .column-drag-switch{width:30px!important;height:17px!important;min-width:30px!important}
.column-drag-compact .column-drag-slider:after{width:11px;height:11px;left:3px;top:3px}
.column-drag-compact .column-drag-switch input:checked+.column-drag-slider:after{transform:translateX(13px)}
.column-drag-mode .skill-head{touch-action:none;cursor:grab}
.column-drag-mode .skill-head.dragging{cursor:grabbing;opacity:.62}
.column-drag-mode .column-drag-grip{display:block;width:100%;text-align:center;line-height:10px;margin:0 0 3px;color:var(--mut);letter-spacing:2px}
@media(max-width:700px){.column-drag-compact .column-order-status{position:static;transform:none;max-width:45vw;margin-right:2px}.column-drag-compact{margin-right:2px}}

/* RC.8 quick-entry polish */
.work-meta .type-choice input[type="radio"]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
.view-mode .type-choice input[type="radio"]{opacity:0!important}
.column-drag-compact .column-order-status{right:76px!important;max-width:300px!important}
.column-drag-compact .column-drag-label{white-space:nowrap}
@media(max-width:900px){.column-drag-compact .column-order-status{max-width:210px!important}}

/* v2.0.0-rc.9 — column reorder control lives with assessment type; status is transient toast */
.work-meta .column-drag-compact{
  position:relative!important;
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:7px!important;
  margin:8px 0 0!important;
  min-height:20px!important;
  width:max-content;
  max-width:100%;
  white-space:nowrap;
}
.work-meta .column-drag-compact .column-drag-label{
  font-size:10px!important;
  line-height:1!important;
  font-weight:750!important;
  color:var(--mut)!important;
}
.work-meta .column-drag-compact .column-drag-switch{
  width:30px!important;
  min-width:30px!important;
  height:17px!important;
  margin:0!important;
}
.work-meta .column-drag-compact .column-order-status{
  position:absolute!important;
  z-index:20;
  right:0!important;
  top:calc(100% + 7px)!important;
  transform:none!important;
  width:max-content!important;
  min-width:0!important;
  max-width:260px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:right!important;
  font-size:10px!important;
  line-height:1.2!important;
  color:var(--mut)!important;
  pointer-events:none;
}
.work-meta .column-drag-compact .column-order-status:empty{display:none!important}
@media(max-width:720px){
  .work-meta .column-drag-compact{width:100%;justify-content:flex-start!important}
  .work-meta .column-drag-compact .column-order-status{left:0!important;right:auto!important;text-align:left!important;max-width:80vw!important}
}

/* v2.0.0-rc.10 — aligned work metadata + corner reorder control */
.work-editor-card{position:relative}
.work-editor-card.has-reorder-control{padding-top:54px}
.work-editor-card .work-meta{align-items:start!important}
.work-editor-card .work-meta>div>label:first-child{display:block;min-height:17px;margin:0 0 6px;line-height:1.2}
.work-editor-card .type-choice{margin-top:0!important;min-height:48px;align-items:stretch}
.work-editor-card .type-choice label{display:flex;align-items:stretch}
.work-editor-card .type-choice span{display:flex!important;align-items:center;min-height:48px;box-sizing:border-box}
.work-editor-card>.column-drag-compact{
  position:absolute!important;
  top:14px!important;
  right:18px!important;
  display:grid!important;
  justify-items:end!important;
  gap:3px!important;
  width:auto!important;
  max-width:240px!important;
  min-height:0!important;
  margin:0!important;
  white-space:nowrap;
  z-index:4;
}
.work-editor-card>.column-drag-compact .column-drag-main{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.work-editor-card>.column-drag-compact .column-drag-label{font-size:10px!important;line-height:1!important;font-weight:750!important;color:var(--mut)!important}
.work-editor-card>.column-drag-compact .column-drag-switch{width:30px!important;min-width:30px!important;height:17px!important;margin:0!important}
.work-editor-card>.column-drag-compact .column-order-status{
  position:static!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:220px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  text-align:right!important;
  font-size:9px!important;
  line-height:1.15!important;
  font-weight:500!important;
  color:var(--mut)!important;
  opacity:.88;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
.work-editor-card>.column-drag-compact .column-order-status:empty{display:none!important}
@media(max-width:720px){
  .work-editor-card.has-reorder-control{padding-top:62px}
  .work-editor-card>.column-drag-compact{top:14px!important;right:14px!important;max-width:calc(100% - 28px)!important}
}


/* v2.0.0-rc.11 — quick-entry navigation and reorder guidance */
.quick-scroll-nav{display:flex;align-items:center;gap:7px;pointer-events:none}
.quick-scroll-nav button{pointer-events:auto}
.quick-scroll-nav-top{justify-content:flex-end;margin:7px 0 4px;min-height:30px}
.quick-scroll-nav-bottom{justify-content:flex-end;margin:5px 0 0;min-height:32px}
.quick-scroll-more{font-size:10px;font-weight:650;color:var(--mut);opacity:.88}
.quick-scroll-arrow{display:grid!important;place-items:center;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:999px!important;font-size:22px!important;line-height:1!important;font-weight:500!important;color:var(--ink)!important;background:var(--card)!important;border:1px solid var(--line)!important;box-shadow:0 2px 8px rgba(30,50,80,.06)!important}
.quick-scroll-arrow:hover:not(:disabled){outline:2px solid rgba(57,134,246,.2)!important;outline-offset:1px!important;transform:none!important}
.quick-scroll-arrow:disabled{opacity:.28!important;cursor:default!important}
.quick-scroll-arrow.is-hidden,.quick-scroll-more.is-hidden{visibility:hidden!important;pointer-events:none!important}
html[data-theme="dark"] .quick-scroll-arrow{background:rgba(28,39,57,.88)!important}
/* The lower native scrollbar remains available; the upper area uses arrows only. */
.quick-head-viewport{scrollbar-width:none}
.quick-head-viewport::-webkit-scrollbar{display:none}
@media(max-width:700px){.quick-scroll-more{display:none}.quick-scroll-nav-top,.quick-scroll-nav-bottom{gap:5px}}

/* v2.0.0-rc.12 — keep horizontally scrolled skill headers out of the pupil-name column */
.quick-head-viewport::after{
  content:"";
  position:sticky;
  left:0;
  top:0;
  display:block;
  width:190px;
  height:0;
  z-index:60;
  pointer-events:none;
  box-shadow:8px 0 14px rgba(45,65,95,.04);
}
.quick-head-viewport::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:190px;
  z-index:55;
  pointer-events:none;
  background:rgba(247,249,252,.99);
  box-shadow:8px 0 14px rgba(45,65,95,.04);
}
html[data-theme="dark"] .quick-head-viewport::before{background:rgba(22,31,47,.99)}
@media(max-width:900px){.quick-head-viewport::before,.quick-head-viewport::after{width:170px}}
@media(max-width:620px){.quick-head-viewport::before,.quick-head-viewport::after{width:116px}}

/* v2.0.0-rc.13 — hard clip the frozen pupil column + unify work header controls */
.work-editor-card .work-meta{
  grid-template-columns:minmax(280px,1.15fr) minmax(280px,1.15fr) minmax(300px,1fr)!important;
  align-items:start!important;
}
.work-editor-card .work-meta>div>label:first-child{
  min-height:18px!important;
  margin:0 0 7px!important;
  white-space:nowrap;
}
.work-editor-card .work-meta input[type="text"],
.work-editor-card .work-meta input[type="date"]{
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
}
.work-editor-card .type-choice{
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  align-items:stretch!important;
}
.work-editor-card .type-choice label{height:52px!important;margin:0!important}
.work-editor-card .type-choice span{
  height:52px!important;
  min-height:52px!important;
  padding:0 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}

/* The first 190px are a true frozen visual lane. Scrolled cells/headers are clipped below it. */
.quick-head-viewport,
.quick-wrap{--pupil-lane:190px}
.quick-head-viewport{position:sticky!important;isolation:isolate!important}
.quick-head-viewport::before{
  content:""!important;
  position:sticky!important;
  display:block!important;
  float:left!important;
  left:0!important;
  top:0!important;
  width:var(--pupil-lane)!important;
  height:100%!important;
  min-height:100%!important;
  margin-right:calc(-1 * var(--pupil-lane))!important;
  z-index:100!important;
  background:rgba(247,249,252,.995)!important;
  box-shadow:8px 0 14px rgba(45,65,95,.05)!important;
  pointer-events:none!important;
}
.quick-head-viewport::after{display:none!important}
.quick-head>div:first-child{
  position:sticky!important;
  left:0!important;
  z-index:110!important;
  background:rgba(247,249,252,.995)!important;
}
.quick-wrap .student-name{
  position:sticky!important;
  left:0!important;
  z-index:90!important;
  background:rgba(250,252,255,1)!important;
  box-shadow:8px 0 14px rgba(45,65,95,.06)!important;
}
html[data-theme="dark"] .quick-head-viewport::before,
html[data-theme="dark"] .quick-head>div:first-child{background:rgba(22,31,47,.995)!important}
html[data-theme="dark"] .quick-wrap .student-name{background:rgba(22,31,47,1)!important}
@media(max-width:900px){
  .quick-head-viewport,.quick-wrap{--pupil-lane:170px}
  .work-editor-card .work-meta{grid-template-columns:1fr 1fr!important}
  .work-editor-card .work-meta>div:nth-child(3){grid-column:1/-1}
}
@media(max-width:620px){
  .quick-head-viewport,.quick-wrap{--pupil-lane:116px}
  .work-editor-card .work-meta{grid-template-columns:1fr!important}
  .work-editor-card .work-meta>div:nth-child(3){grid-column:auto}
  .work-editor-card .work-meta>div>label:first-child{white-space:normal}
}


/* v2.0.0-rc.14 — freeze pupil header lane while only skill headers track horizontal scroll */
.quick-head-viewport{overflow:hidden!important}
.quick-head{overflow:visible!important}
.quick-head>div:first-child{
  position:relative!important;
  left:auto!important;
  z-index:130!important;
  background:rgba(247,249,252,1)!important;
  box-shadow:8px 0 14px rgba(45,65,95,.05)!important;
}
.quick-head .skill-head{will-change:transform}
html[data-theme="dark"] .quick-head>div:first-child{background:rgba(22,31,47,1)!important}
/* RC.12/13 masks are no longer needed: the frozen first header cell itself is the mask. */
.quick-head-viewport::before,.quick-head-viewport::after{display:none!important}


/* v2.0.0-rc.17 — true split header lane. The pupil-name lane is no longer part of the scrolling header at all. */
.quick-head-viewport,
.quick-wrap{--pupil-lane:190px}
.quick-head-viewport{
  position:sticky!important;
  left:auto!important;
  width:calc(100% - var(--pupil-lane))!important;
  margin-left:var(--pupil-lane)!important;
  overflow:hidden!important;
  isolation:isolate!important;
  box-sizing:border-box!important;
}
.quick-head-viewport::before,
.quick-head-viewport::after{display:none!important;content:none!important}
.quick-head-viewport .quick-head{
  display:grid!important;
  grid-template-columns:repeat(var(--skills),minmax(105px,1fr))!important;
  gap:6px!important;
  min-width:0!important;
  max-width:none!important;
  position:relative!important;
  z-index:1!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.quick-head-viewport .skill-head{
  min-width:0!important;
  width:auto!important;
  transform:none!important;
  will-change:auto!important;
}
.quick-wrap .student-name{
  position:sticky!important;
  left:0!important;
  z-index:200!important;
  background:rgba(250,252,255,1)!important;
  box-shadow:8px 0 14px rgba(45,65,95,.06)!important;
}
html[data-theme="dark"] .quick-wrap .student-name{background:rgba(22,31,47,1)!important}
@media(max-width:900px){
  .quick-head-viewport,.quick-wrap{--pupil-lane:170px}
  .quick-head-viewport .quick-head{grid-template-columns:repeat(var(--skills),minmax(100px,1fr))!important}
}
@media(max-width:620px){
  .quick-head-viewport,.quick-wrap{--pupil-lane:116px}
  .quick-head-viewport .quick-head{grid-template-columns:repeat(var(--skills),72px)!important;gap:5px!important}
}

/* v2.0.0-rc.18 — unified sticky header shell + table crosshair hover */
.quick-head-shell{
  --pupil-lane:190px;
  position:sticky;
  top:86px;
  z-index:240;
  display:grid;
  grid-template-columns:var(--pupil-lane) minmax(0,1fr);
  width:100%;
  background:rgba(247,249,252,.985);
  border-bottom:1px solid rgba(120,140,165,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  isolation:isolate;
}
.quick-head-pupil-mask{
  grid-column:1;
  min-width:0;
  background:rgba(247,249,252,1);
  border-right:1px solid rgba(120,140,165,.10);
  box-shadow:8px 0 14px rgba(45,65,95,.035);
  z-index:3;
}
.quick-head-shell .quick-head-viewport{
  grid-column:2;
  position:relative!important;
  top:auto!important;
  left:auto!important;
  width:100%!important;
  margin-left:0!important;
  overflow:hidden!important;
  background:transparent!important;
  border-bottom:0!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding-top:7px;
  padding-bottom:7px;
}
html[data-theme="dark"] .quick-head-shell,
html[data-theme="dark"] .quick-head-pupil-mask{background:rgba(22,31,47,.985)!important}

/* Crosshair hover. It is intentionally subtle and never changes the meaning of checked cells. */
.quick-row .student-name,.quick-row .mark label,.skill-head{transition:background-color .10s ease,border-color .10s ease,box-shadow .10s ease}
.quick-row.is-cross-row .student-name{background:rgba(57,134,246,.105)!important;color:var(--ink)!important}
.quick-row.is-cross-row .mark label{box-shadow:inset 0 0 0 999px rgba(57,134,246,.025)}
.mark.is-cross-col label{border-color:rgba(57,134,246,.22)!important;box-shadow:inset 0 0 0 999px rgba(57,134,246,.035)}
.quick-row.is-cross-row .mark.is-cross-col label{border-color:rgba(57,134,246,.42)!important;box-shadow:inset 0 0 0 999px rgba(57,134,246,.075),0 0 0 1px rgba(57,134,246,.08)}
.skill-head.is-cross-head{background:rgba(57,134,246,.095)!important;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(57,134,246,.13)}
.mark input:checked+label{box-shadow:none}
.quick-row.is-cross-row .mark.is-cross-col input:checked+label{box-shadow:inset 0 0 0 2px rgba(57,134,246,.22)!important}
.column-drag-mode .quick-row.is-cross-row .student-name,.column-drag-mode .mark.is-cross-col label,.column-drag-mode .skill-head.is-cross-head{background:initial!important;box-shadow:none!important}
@media(max-width:900px){.quick-head-shell{--pupil-lane:170px;top:78px}}
@media(max-width:620px){.quick-head-shell{--pupil-lane:116px;top:8px}}

/* v2.0.0-rc.19 — stronger crosshair + cleaner sticky table boundary */
/* Keep the frozen skill lane visually attached to the table and fully mask rows below it. */
.quick-head-shell{
  top:94px;
  background:rgba(247,249,252,1)!important;
  box-shadow:0 7px 12px -12px rgba(28,48,78,.34);
}
.quick-head-shell::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:100%;
  height:10px;
  background:rgba(247,249,252,1);
  pointer-events:none;
}
.quick-head-shell .quick-head-viewport{background:rgba(247,249,252,1)!important}
html[data-theme="dark"] .quick-head-shell,
html[data-theme="dark"] .quick-head-shell::before,
html[data-theme="dark"] .quick-head-shell .quick-head-viewport{background:rgba(22,31,47,1)!important}

/* Crosshair: deliberately clearer than RC.18, while checked/green cells keep their semantic state. */
.quick-row.is-cross-row .student-name{
  background:rgba(57,134,246,.17)!important;
  box-shadow:inset 3px 0 0 rgba(57,134,246,.34),8px 0 14px rgba(45,65,95,.05)!important;
}
.quick-row.is-cross-row .mark label{
  box-shadow:inset 0 0 0 999px rgba(57,134,246,.055);
}
.mark.is-cross-col label{
  border-color:rgba(57,134,246,.34)!important;
  box-shadow:inset 0 0 0 999px rgba(57,134,246,.065);
}
.quick-row.is-cross-row .mark.is-cross-col label{
  border-color:rgba(57,134,246,.62)!important;
  box-shadow:inset 0 0 0 999px rgba(57,134,246,.13),0 0 0 2px rgba(57,134,246,.12)!important;
}
.skill-head.is-cross-head{
  background:rgba(57,134,246,.16)!important;
  box-shadow:inset 0 0 0 1px rgba(57,134,246,.24)!important;
}
.quick-row.is-cross-row .mark.is-cross-col input:checked+label{
  box-shadow:inset 0 0 0 2px rgba(57,134,246,.42),0 0 0 1px rgba(57,134,246,.10)!important;
}
@media(max-width:900px){.quick-head-shell{top:86px}}
@media(max-width:620px){.quick-head-shell{top:8px}.quick-head-shell::before{height:6px}}


/* v2.0.0-rc.20 — persistent edit-state rail + true sticky occlusion zone */
/* Edit mode is indicated by one calm rail on the OUTER LEFT edge of the work card. */
.editor.edit-mode .work-editor-card{
  border-left:2px solid rgba(196,92,92,.42)!important;
}
html[data-theme="dark"] .editor.edit-mode .work-editor-card{
  border-left-color:rgba(231,132,132,.48)!important;
}
/* Reorder remains a separate blue state, without changing the red edit rail. */
.editor.edit-mode.column-drag-mode .work-editor-card{
  box-shadow:inset 3px 0 0 rgba(57,134,246,.18),var(--shadow,0 16px 40px rgba(35,55,85,.08));
}

/* Rows must disappear before they enter the page controls above the frozen headings.
   RC.19 only masked a narrow strip. Here the sticky heading shell owns the complete
   occlusion zone from the top of the viewport down to the heading boundary. */
.quick-head-shell::before{
  top:calc(-1 * var(--quick-sticky-top,94px))!important;
  bottom:auto!important;
  height:var(--quick-sticky-top,94px)!important;
  background:rgba(247,249,252,1)!important;
  z-index:20!important;
}
.quick-head-shell{--quick-sticky-top:94px}
.quick-head-shell .quick-head-pupil-mask,
.quick-head-shell .quick-head-viewport{position:relative;z-index:21}
html[data-theme="dark"] .quick-head-shell::before{background:rgba(22,31,47,1)!important}
@media(max-width:900px){.quick-head-shell{--quick-sticky-top:86px}}
@media(max-width:620px){.quick-head-shell{--quick-sticky-top:8px}}

/* v2.0.0-rc.21 — conditional sticky occlusion + clearer edit rail */
/* The RC.20 occlusion mask must exist only while the skill header is actually frozen.
   Otherwise it extends upward over the work metadata controls at the top of the page. */
.quick-head-shell::before{
  display:none!important;
}
.quick-head-shell.is-stuck::before{
  display:block!important;
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:calc(-1 * var(--quick-sticky-top,94px))!important;
  bottom:auto!important;
  height:var(--quick-sticky-top,94px)!important;
  background:rgba(247,249,252,1)!important;
  z-index:20!important;
  pointer-events:none;
}
html[data-theme="dark"] .quick-head-shell.is-stuck::before{
  background:rgba(22,31,47,1)!important;
}

/* Edit mode: a slightly stronger left rail with a soft fade into the card. */
.editor.edit-mode .work-editor-card{
  border-left:3px solid rgba(210,82,92,.68)!important;
  overflow:visible;
}
.editor.edit-mode .work-editor-card::after{
  content:"";
  position:absolute;
  z-index:4;
  left:0;
  top:10px;
  bottom:10px;
  width:11px;
  border-radius:10px 0 0 10px;
  background:linear-gradient(90deg,rgba(210,82,92,.18),rgba(210,82,92,0));
  pointer-events:none;
}
html[data-theme="dark"] .editor.edit-mode .work-editor-card{
  border-left-color:rgba(238,124,132,.72)!important;
}
html[data-theme="dark"] .editor.edit-mode .work-editor-card::after{
  background:linear-gradient(90deg,rgba(238,124,132,.20),rgba(238,124,132,0));
}
\n\n/* v2.0.0-rc.22 — unified work meta sizing + pupil header + quiet row numbers */
.work-editor-card .work-meta{
  align-items:start!important;
}
.work-editor-card .work-meta>div>label:first-child{
  height:18px!important;
  min-height:18px!important;
  line-height:18px!important;
  margin:0 0 7px!important;
}
.work-editor-card .work-meta input[type="text"],
.work-editor-card .work-meta input[type="date"],
.work-editor-card .type-choice,
.work-editor-card .type-choice label,
.work-editor-card .type-choice span{
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
}
.work-editor-card .type-choice{display:flex!important;align-items:stretch!important;gap:8px!important}
.work-editor-card .type-choice label{display:flex!important;align-items:stretch!important;margin:0!important}
.work-editor-card .type-choice span{display:flex!important;align-items:center!important;justify-content:center!important;padding:0 16px!important}

.quick-head-pupil-mask{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  padding:7px 12px 11px!important;
  box-sizing:border-box!important;
  color:var(--mut)!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.15!important;
  letter-spacing:.01em!important;
}
.quick-head-pupil-mask span{display:block;white-space:nowrap}

.quick-wrap .student-name{
  position:sticky!important;
  left:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding-right:9px!important;
}
.student-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-row-number{
  flex:0 0 auto;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:19px;
  height:19px;
  margin-top:2px;
  border:1px solid rgba(92,111,139,.28);
  border-radius:50%;
  background:rgba(255,255,255,.44);
  color:rgba(79,97,123,.72);
  font-size:9px;
  font-weight:750;
  line-height:1;
  font-variant-numeric:tabular-nums;
  box-sizing:border-box;
  pointer-events:none;
}
html[data-theme="dark"] .student-row-number{
  border-color:rgba(179,196,220,.28);
  background:rgba(255,255,255,.035);
  color:rgba(205,218,237,.70);
}
.quick-row.is-cross-row .student-row-number{
  border-color:rgba(57,134,246,.42);
  color:rgba(45,105,194,.88);
}
@media(max-width:620px){
  .quick-head-pupil-mask{padding-left:8px!important;padding-right:6px!important;font-size:9px!important}
  .student-row-number{width:17px;height:17px;font-size:8px;margin-top:1px}
}


/* RC.23 — polished pupil header + unobtrusive circled row number */
.quick-head-pupil-mask{
  align-items:center!important;
  justify-content:center!important;
  padding:8px 12px!important;
  text-align:center!important;
  color:var(--mut)!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:.01em!important;
}
.quick-head-pupil-mask span{
  display:block!important;
  width:100%!important;
  white-space:nowrap!important;
  text-align:center!important;
}

.quick-wrap .student-name{
  position:sticky!important;
  left:0!important;
  display:block!important;
  padding-right:30px!important;
}
.quick-wrap .student-name .student-name-text{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.quick-wrap .student-name .student-row-number{
  position:absolute!important;
  top:5px!important;
  right:6px!important;
  z-index:2!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:17px!important;
  height:17px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid currentColor!important;
  border-radius:50%!important;
  background:transparent!important;
  color:var(--mut)!important;
  opacity:.50!important;
  font-size:8px!important;
  font-weight:700!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
}
html[data-theme="dark"] .quick-wrap .student-name .student-row-number{
  background:transparent!important;
  color:var(--mut)!important;
  opacity:.50!important;
}
.quick-row.is-cross-row .student-row-number{
  border-color:currentColor!important;
  color:var(--mut)!important;
  opacity:.50!important;
}
@media(max-width:620px){
  .quick-head-pupil-mask{padding:7px 8px!important;font-size:9px!important}
  .quick-wrap .student-name{padding-right:27px!important}
  .quick-wrap .student-name .student-row-number{
    top:4px!important;
    right:5px!important;
    width:16px!important;
    height:16px!important;
    font-size:7px!important;
  }
}


/* RC.24 — unify work metadata row + stronger pupil-column heading */
.quick-head-pupil-mask{
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.15!important;
  letter-spacing:.005em!important;
}

/* All three metadata controls share the same visual baseline and 52px control height. */
.work-editor-card .work-meta{
  align-items:start!important;
}
.work-editor-card .work-meta>div{
  min-width:0!important;
}
.work-editor-card .work-meta>div>label:first-child{
  display:flex!important;
  align-items:center!important;
  height:18px!important;
  min-height:18px!important;
  margin:0 0 7px!important;
  padding:0!important;
  line-height:18px!important;
  box-sizing:border-box!important;
}
.work-editor-card .work-meta input[type="text"],
.work-editor-card .work-meta input[type="date"]{
  display:block!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  box-sizing:border-box!important;
}
.work-editor-card .type-choice{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.work-editor-card .type-choice label{
  display:flex!important;
  align-items:stretch!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.work-editor-card .type-choice span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 16px!important;
  box-sizing:border-box!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}

@media(max-width:720px){
  .quick-head-pupil-mask{font-size:10px!important}
  .work-editor-card .work-meta input[type="text"],
  .work-editor-card .work-meta input[type="date"],
  .work-editor-card .type-choice,
  .work-editor-card .type-choice label,
  .work-editor-card .type-choice span{
    min-height:46px!important;
    height:46px!important;
  }
}


/* RC.25 — metadata row rebuilt as one consistent form component */
.work-editor-card .work-meta-unified{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) minmax(280px,1fr) minmax(300px,.9fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.work-editor-card .work-meta-unified .work-meta-field{
  display:grid!important;
  grid-template-rows:18px 54px!important;
  row-gap:7px!important;
  align-items:stretch!important;
  min-width:0!important;
}
.work-editor-card .work-meta-unified .work-meta-field>label:first-child{
  display:flex!important;
  align-items:center!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  line-height:18px!important;
  box-sizing:border-box!important;
}
.work-editor-card .work-meta-unified .work-meta-field>input[type="text"],
.work-editor-card .work-meta-unified .work-meta-field>input[type="date"]{
  appearance:auto;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0!important;
  padding:0 14px!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  line-height:1.2!important;
}
.work-editor-card .work-meta-unified .work-meta-field>input[type="date"]{
  padding-right:12px!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 88px!important;
  gap:0!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(100,125,160,.18)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.6)!important;
  box-sizing:border-box!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented label{
  display:block!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented label+label{
  border-left:1px solid rgba(100,125,160,.18)!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented input:checked+span{
  background:#edf4ff!important;
  color:#2567ca!important;
  box-shadow:inset 0 0 0 1px #4b8df4!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented{
  background:#263142!important;
  border-color:#425168!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented label+label{
  border-left-color:#425168!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented span{
  background:transparent!important;
  color:#d9e2ef!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented input:checked+span{
  background:#29466d!important;
  color:#cfe2ff!important;
  box-shadow:inset 0 0 0 1px #67a1f2!important;
}
@media(max-width:980px){
  .work-editor-card .work-meta-unified{
    grid-template-columns:1fr 1fr!important;
  }
  .work-editor-card .work-meta-unified .work-meta-type{grid-column:1/-1!important}
}
@media(max-width:720px){
  .work-editor-card .work-meta-unified{grid-template-columns:1fr!important}
  .work-editor-card .work-meta-unified .work-meta-type{grid-column:auto!important}
  .work-editor-card .work-meta-unified .work-meta-field{grid-template-rows:18px 48px!important}
  .work-editor-card .work-meta-unified .work-meta-field>input[type="text"],
  .work-editor-card .work-meta-unified .work-meta-field>input[type="date"],
  .work-editor-card .work-meta-unified .type-choice-segmented{
    height:48px!important;min-height:48px!important;max-height:48px!important
  }
  .work-editor-card .work-meta-unified .type-choice-segmented label,
  .work-editor-card .work-meta-unified .type-choice-segmented span{
    height:46px!important;min-height:46px!important
  }
}


/* RC.26 — compact 40px metadata controls + clearer 50/50 assessment selector */
.work-editor-card .work-meta-unified .work-meta-field{
  grid-template-rows:18px 40px!important;
  row-gap:6px!important;
}
.work-editor-card .work-meta-unified .work-meta-field>input[type="text"],
.work-editor-card .work-meta-unified .work-meta-field>input[type="date"]{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:0 13px!important;
  border-radius:10px!important;
  font-size:15px!important;
  line-height:1.15!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented{
  grid-template-columns:1fr 1fr!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  border-radius:10px!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented label,
.work-editor-card .work-meta-unified .type-choice-segmented span{
  height:38px!important;
  min-height:38px!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented span{
  padding:0 10px!important;
  font-size:13px!important;
  font-weight:700!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented label:first-child span{
  background:rgba(72,130,215,.055)!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented label:last-child span{
  background:rgba(120,132,150,.045)!important;
}
.work-editor-card .work-meta-unified .type-choice-segmented input:checked+span{
  background:#e5efff!important;
  color:#1f63c7!important;
  box-shadow:inset 0 0 0 1px #4b8df4!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented label:first-child span{
  background:rgba(92,145,220,.10)!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented label:last-child span{
  background:rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] .work-editor-card .work-meta-unified .type-choice-segmented input:checked+span{
  background:#294d7a!important;
  color:#d8e9ff!important;
  box-shadow:inset 0 0 0 1px #67a1f2!important;
}
@media(max-width:720px){
  .work-editor-card .work-meta-unified .work-meta-field{
    grid-template-rows:18px 40px!important;
  }
  .work-editor-card .work-meta-unified .work-meta-field>input[type="text"],
  .work-editor-card .work-meta-unified .work-meta-field>input[type="date"],
  .work-editor-card .work-meta-unified .type-choice-segmented{
    height:40px!important;min-height:40px!important;max-height:40px!important;
  }
  .work-editor-card .work-meta-unified .type-choice-segmented label,
  .work-editor-card .work-meta-unified .type-choice-segmented span{
    height:38px!important;min-height:38px!important;
  }
}

/* RC.27 — Ātrās piezīmes */
.quick-notes-title{align-items:flex-end}
.qn-sync-state{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.55);font-size:12px;font-weight:700;color:var(--mut)}
.qn-sync-state .qn-dot{width:7px;height:7px;border-radius:50%;background:#93a0b3}
.qn-sync-state.ok .qn-dot{background:#2aaf78}.qn-sync-state.pending .qn-dot{background:#e0a22d}.qn-sync-state.offline .qn-dot{background:#d08a35}
.qn-chooser{display:flex;gap:18px;align-items:flex-end;margin-bottom:14px;padding:16px 18px}
.qn-chooser-field{min-width:180px}.qn-chooser-field>label{display:block;font-size:12px;font-weight:800;color:var(--mut);margin:0 0 7px}
.qn-chooser-field select{height:40px}.qn-subject-field{flex:1}.qn-subjects{display:flex;gap:8px;flex-wrap:wrap}
.qn-subject{height:40px;padding:0 15px;border-radius:11px}.qn-subject.active{border-color:#4b8df4;background:#e8f1ff;color:#2163c7;box-shadow:inset 0 0 0 1px #4b8df4}
.qn-card{padding:0;overflow:hidden}.qn-help{display:flex;gap:18px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--line);font-size:12px;color:var(--mut)}
.qn-scroll{overflow:auto;max-width:100%}.qn-grid{display:grid;grid-template-columns:210px repeat(var(--qn-cols),minmax(122px,1fr));min-width:max-content;position:relative}
.qn-head{position:sticky;top:0;z-index:4;min-height:76px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;background:rgba(248,250,254,.97);border-bottom:1px solid var(--line);font-size:11px;line-height:1.12}
.qn-head span{color:var(--mut);font-weight:500}.qn-head b{max-width:150px}.qn-name-head{left:0;z-index:7;align-items:flex-start;justify-content:center;padding-left:16px;font-size:13px}
.qn-name{position:sticky;left:0;z-index:3;min-height:46px;display:flex;align-items:center;padding:0 38px 0 14px;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(215,222,233,.55);font-weight:750;position:sticky}
.qn-name i{position:absolute;right:10px;top:7px;width:18px;height:18px;border:1px solid #aab5c5;border-radius:50%;display:grid;place-items:center;font-size:9px;font-style:normal;font-weight:700;color:#748198;opacity:.52}
.qn-cell{margin:4px;min-height:38px;border:1px solid #dfe5ee;border-radius:10px;background:rgba(255,255,255,.62);display:grid;place-items:center;position:relative;color:#c7cfda;transition:background .12s,border-color .12s,box-shadow .12s}
.qn-cell .qn-check{font-size:15px;font-weight:900}.qn-cell .qn-pending{display:none;position:absolute;right:6px;top:4px;font-size:9px;color:#d08a35}
.qn-cell.is-active{background:#e5f5ed;border-color:#8fd1af;color:#16734a}.qn-cell.is-pending .qn-pending{display:block}
.qn-cell.qn-row-hover,.qn-name.qn-row-hover{background:#edf4ff}.qn-cell.qn-col-hover{background:#edf4ff}.qn-cell.is-active.qn-row-hover,.qn-cell.is-active.qn-col-hover{background:#d9f0e5}.qn-head.qn-col-hover{background:#e5efff}
.qn-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:80;max-width:min(720px,calc(100vw - 30px));padding:11px 12px 11px 16px;border:1px solid #b7c5d8;border-radius:14px;background:rgba(25,38,58,.94);color:#fff;box-shadow:0 14px 38px rgba(21,35,58,.22);font-size:13px}
.qn-toast button{margin-left:14px;border-color:rgba(255,255,255,.3);color:#fff;background:rgba(255,255,255,.08);padding:6px 10px}
.qn-dialog{width:min(520px,calc(100vw - 28px))}.qn-dialog textarea{width:100%;resize:vertical}.qn-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.qn-empty{padding:28px;text-align:center;color:var(--mut)}
.student-quick-notes-card{margin-bottom:14px}
html[data-theme="dark"] .qn-sync-state{background:rgba(20,29,44,.7)}
html[data-theme="dark"] .qn-head{background:rgba(21,30,45,.98)}
html[data-theme="dark"] .qn-name{background:rgba(18,27,41,.98)}
html[data-theme="dark"] .qn-subject.active{background:#294d7a;color:#d8e9ff}
html[data-theme="dark"] .qn-cell{background:rgba(21,31,47,.7);border-color:#344156;color:#667287}
html[data-theme="dark"] .qn-cell.is-active{background:#173e31;border-color:#347e5d;color:#82d7ad}
html[data-theme="dark"] .qn-cell.qn-row-hover,html[data-theme="dark"] .qn-name.qn-row-hover,html[data-theme="dark"] .qn-cell.qn-col-hover{background:#243a58}
@media(max-width:760px){.qn-chooser{align-items:stretch;flex-direction:column}.qn-grid{grid-template-columns:170px repeat(var(--qn-cols),118px)}.qn-help{gap:8px;flex-direction:column}}

/* RC.28 — Quick Notes uses the teacher's active class; subject is the only chooser. */
.qn-chooser-subject-only{align-items:flex-start}
.qn-chooser-subject-only .qn-subject-field{width:100%}

/* RC.31 — visually separate the secondary quick-note history at profile bottom */
.student-quick-notes-card{margin-top:14px!important;}

/* RC.32 — quick-note history ownership controls */
.quick-note-history-actions{display:flex;align-items:center;gap:8px}
.quick-note-delete{padding:4px 8px!important;min-height:0!important;border:0!important;background:transparent!important;color:#a14c55!important;font-size:11px!important;font-weight:700!important;box-shadow:none!important}
.quick-note-delete:hover{outline:1px solid rgba(161,76,85,.35)!important;outline-offset:2px!important;background:transparent!important}

/* RC.33 — SMTP production acceptance */
.smtp-acceptance{margin-top:22px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:rgba(80,125,190,.045)}
.smtp-acceptance h3{margin:0 0 10px}.smtp-acceptance ol{margin:0;padding-left:20px}.smtp-acceptance li{margin:7px 0}

/* RC.34 — iPhone login/recovery: open at the correct scale and never auto-zoom inputs */
@media (max-width:720px){
  .login-page{width:100%;max-width:100%;overflow-x:hidden!important}
  .login-shell{width:100%!important;max-width:480px!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important}
  .login-card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .login-form,.login-form label{min-width:0!important}
  .login-form input{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    font-size:16px!important; /* iOS Safari does not zoom focused form controls at >=16px */
  }
  .login-tagline{white-space:normal!important}
}

/* RC.38 — safe work deletion */
.work-delete-details{position:relative;display:inline-block}
.work-delete-details>summary{list-style:none;cursor:pointer}
.work-delete-details>summary::-webkit-details-marker{display:none}
.danger-soft{color:#a63d45!important;border-color:rgba(166,61,69,.24)!important;background:rgba(190,60,70,.055)!important}
.work-delete-confirm{position:absolute;right:0;top:calc(100% + 8px);z-index:80;width:min(390px,82vw);padding:16px;border:1px solid rgba(35,55,85,.13);border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 18px 50px rgba(25,45,75,.16);text-align:left}
.work-delete-confirm p{margin:8px 0 12px}.work-delete-confirm label{display:block}.work-delete-confirm input{margin:6px 0 12px;width:100%}
html[data-theme="dark"] .work-delete-confirm{background:rgba(21,31,48,.98);border-color:rgba(255,255,255,.12)}
@media(max-width:720px){.work-delete-confirm{position:fixed;left:16px;right:16px;top:auto;bottom:20px;width:auto}}

/* RC.38.1 — work delete modal hotfix + admin card spacing */
.work-delete-details,.work-delete-confirm{display:none!important}
body.modal-open{overflow:hidden}
.work-delete-modal[hidden]{display:none!important}
.work-delete-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px}
.work-delete-backdrop{position:absolute;inset:0;background:rgba(18,29,47,.38);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.work-delete-dialog{position:relative;z-index:1;width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:28px;border:1px solid rgba(35,55,85,.13);border-radius:22px;background:rgba(255,255,255,.985);box-shadow:0 28px 90px rgba(18,35,62,.25)}
.work-delete-dialog h2{margin:4px 42px 8px 0;font-size:25px}
.work-delete-kicker{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#a63d45}
.work-delete-x{position:absolute;right:16px;top:14px;width:36px;height:36px;border:0;border-radius:10px;background:transparent;font-size:25px;line-height:1;cursor:pointer;color:inherit}
.work-delete-x:hover{background:rgba(50,70,100,.07)}
.work-delete-warning{display:grid;gap:5px;margin:18px 0;padding:14px 15px;border-radius:13px;background:rgba(190,60,70,.055);border:1px solid rgba(166,61,69,.14);font-size:14px;line-height:1.45}
.work-delete-label{display:block;font-size:13px;font-weight:700}
.work-delete-label input{width:100%;margin-top:7px}
.work-delete-buttons{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.work-delete-buttons .btn{min-width:110px}
.work-delete-buttons button:disabled{opacity:.42;cursor:not-allowed}
.admin-privacy-card{margin-top:14px!important}
html[data-theme="dark"] .work-delete-dialog{background:rgba(20,30,46,.99);border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .work-delete-backdrop{background:rgba(3,8,16,.58)}
@media(max-width:720px){
 .work-delete-modal{padding:16px}
 .work-delete-dialog{padding:22px 18px;border-radius:18px}
 .work-delete-buttons{display:grid;grid-template-columns:1fr 1fr}
 .work-delete-buttons .btn{width:100%;min-width:0}
}

/* RC.38.2 — concise teacher ↔ administrator support */
.support-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr);gap:14px;align-items:start}
.support-form{display:grid;gap:13px}.support-form label,.admin-support-form label{display:grid;gap:6px;font-weight:700}
.support-form textarea,.admin-support-form textarea{resize:vertical;min-height:94px}
.support-list{display:grid;gap:10px}.support-item{padding:15px 16px;border:1px solid rgba(45,65,95,.10);border-radius:14px;background:rgba(255,255,255,.32)}
.support-item p{margin:10px 0;line-height:1.48}.support-item-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.support-status{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.status-new{background:#e6f1ff;color:#2868b9}.status-processing{background:#fff2d8;color:#936218}.status-resolved{background:#e5f5e8;color:#2e8150}.status-rejected{background:#fde8e8;color:#a3484d}
.support-reply{margin-top:12px;padding:11px 12px;border-radius:11px;background:rgba(70,130,210,.07);display:grid;gap:5px}
.support-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.support-filters .btn.active{box-shadow:0 0 0 2px rgba(55,125,225,.24)}
.support-count,.support-nav-badge{display:inline-flex;min-width:20px;height:20px;padding:0 6px;align-items:center;justify-content:center;border-radius:999px;background:#e5efff;color:#2766b8;font-size:11px;font-weight:800}
.admin-support-list .support-item{padding:18px}.admin-support-form{margin-top:13px}.support-admin-actions{display:flex;gap:9px;justify-content:flex-end;align-items:center;margin-top:10px}.support-admin-actions select{width:auto;min-width:145px}
html[data-theme="dark"] .support-item{background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.09)}
html[data-theme="dark"] .support-reply{background:rgba(90,150,230,.10)}
@media(max-width:900px){.support-grid{grid-template-columns:1fr}.support-item-top{align-items:flex-start}.support-admin-actions{justify-content:stretch}.support-admin-actions select,.support-admin-actions .primary{flex:1}}

/* RC.38.3 — admin-only permanent support-message cleanup */
.support-delete-box{margin-top:14px;padding-top:12px;border-top:1px solid rgba(45,65,95,.10)}
.support-delete-box summary{cursor:pointer;width:max-content;max-width:100%;font-size:12px;font-weight:750;color:var(--muted,#6b7482)}
.support-delete-form{margin-top:10px;display:grid;gap:9px;max-width:420px}.support-delete-form p{margin:0}.support-delete-form label{display:grid;gap:6px;font-size:13px;font-weight:700}
html[data-theme="dark"] .support-delete-box{border-top-color:rgba(255,255,255,.09)}
/* RC.39 — class transition and controlled student transfer */
.transition-students{margin:14px 0;padding:13px;border:1px solid rgba(45,65,95,.11);border-radius:13px;max-height:310px;overflow:auto}.transition-students>label{display:flex!important;align-items:center;gap:9px;padding:7px 3px;font-weight:650}.transition-students input{width:auto!important;margin:0}.transfer-request-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.transfer-request-summary{display:grid;gap:4px;margin:11px 0;padding:11px 12px;border-radius:12px;background:rgba(70,130,210,.07);font-size:13px}.transfer-execute-form{margin:10px 0 14px}.transfer-marker{display:inline-flex;align-items:center;gap:7px;margin:0 0 12px;padding:7px 11px;border-radius:999px;background:#e8f1ff;color:#285f9f;font-size:12px;font-weight:800}.transferred-history-card{margin-bottom:14px}.transferred-history-card>summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center;list-style:none}.transferred-history-card>summary::-webkit-details-marker{display:none}.transferred-history-card>summary h2,.transferred-history-card>summary p{margin:0}.transferred-history-card>summary p{margin-top:4px}.transferred-history-list{margin-top:14px}.transferred-history-card[open]>summary{padding-bottom:12px;border-bottom:1px solid rgba(45,65,95,.09)}
html[data-theme="dark"] .transition-students,html[data-theme="dark"] .transferred-history-card[open]>summary{border-color:rgba(255,255,255,.09)}html[data-theme="dark"] .transfer-request-summary{background:rgba(90,150,230,.10)}html[data-theme="dark"] .transfer-marker{background:rgba(70,130,210,.18);color:#b9d5ff}
@media(max-width:720px){.transfer-request-fields{grid-template-columns:1fr}}
.transfer-mini-badge{display:inline-flex;padding:3px 7px;border-radius:999px;background:#e8f1ff;color:#285f9f;font-size:10px;font-weight:800;white-space:nowrap}html[data-theme="dark"] .transfer-mini-badge{background:rgba(70,130,210,.18);color:#b9d5ff}

/* RC.39.1 — transfer form visibility / empty target state */
.transfer-request-fields[hidden]{display:none!important}
.transfer-request-fields{grid-template-columns:1fr 1fr;gap:12px}
.transfer-empty-note{grid-column:1/-1;padding:10px 12px;border-radius:11px;background:rgba(70,130,210,.07);font-size:13px;color:var(--muted,#6b7482);line-height:1.4}
@media(max-width:720px){.transfer-request-fields{grid-template-columns:1fr}}

/* STEP 12 — release system */
.release-roadmap{display:grid;gap:10px}.release-road{display:grid;grid-template-columns:110px 1fr auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.34)}.release-road.done strong{color:#17864b}.release-road.next{outline:2px solid rgba(55,128,238,.18);outline-offset:1px}.release-road.next strong{color:#2f75dc}.release-road strong{font-size:13px}.release-road span{font-weight:700}@media(max-width:700px){.release-road{grid-template-columns:1fr}.release-road strong{justify-self:start}}

/* RC.41.1 — STEP 13 mobile/dark acceptance fixes + conversation snapshot management */
.conversation-snapshot{align-items:center;gap:14px}.conversation-snapshot>div:first-child{display:grid;gap:4px}.conversation-snapshot>div:first-child small{color:var(--mut)}.conversation-snapshot-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.conversation-snapshot-actions form{margin:0}.snapshot-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:22px;background:rgba(250,252,255,.98);color:var(--ink);box-shadow:0 30px 80px rgba(20,30,45,.25)}.snapshot-dialog::backdrop{background:rgba(15,22,32,.42);backdrop-filter:blur(4px)}.snapshot-dialog pre{white-space:pre-wrap;word-break:break-word;font:inherit;line-height:1.5;padding:16px;border-radius:14px;background:rgba(235,241,249,.72);border:1px solid var(--line);max-height:55vh;overflow:auto}
html[data-theme="dark"] .snapshot-dialog{background:#202938!important;border-color:#445268!important;color:#edf2fb!important}html[data-theme="dark"] .snapshot-dialog pre{background:#182231!important;border-color:#3b485c!important;color:#edf2fb!important}
@media(max-width:720px){
 .conversation-snapshot{display:grid!important;grid-template-columns:1fr!important}.conversation-snapshot-actions{justify-content:flex-start}.conversation-snapshot-actions .btn,.conversation-snapshot-actions form{flex:1}.conversation-snapshot-actions form .btn{width:100%}
 .work-view-actions{display:flex!important;flex-wrap:wrap!important;width:100%;gap:8px}.work-view-actions .btn{flex:1 1 auto;text-align:center}
 .work-editor-card{min-width:0!important;max-width:100%!important;overflow:hidden!important}.quick-head-shell,.quick-wrap{max-width:100%!important}.quick-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}.quick-head-shell{overflow:hidden!important}
 .work-archive-card{overflow:hidden!important}.work-archive-table{max-width:100%!important;overflow-x:auto!important}
}
@media(max-width:720px){html[data-theme="dark"] .nav{background:rgba(27,36,49,.985)!important;border-color:#43516a!important;box-shadow:0 18px 44px rgba(0,0,0,.42)!important}html[data-theme="dark"] .nav a,html[data-theme="dark"] .nav .settings-link{color:#d7e0ed!important}html[data-theme="dark"] .nav a.active{background:#2b4262!important;color:#fff!important}html[data-theme="dark"] .mobile-menu-btn{background:#28384e!important;border:1px solid #4b6282!important}html[data-theme="dark"] .mobile-menu-btn span{background:#edf3fb!important}}
html[data-theme="dark"] .work-archive-card,html[data-theme="dark"] .work-archive-table,html[data-theme="dark"] .work-archive-table tbody,html[data-theme="dark"] .work-archive-table tr{background:transparent!important;color:#edf2fb!important}html[data-theme="dark"] .work-archive-table td,html[data-theme="dark"] .work-archive-table th{color:#edf2fb!important;border-color:#354154!important}


/* RC.41.2 — final mobile dark navigation + compact parent-conversation snapshots */
.conversation-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.conversation-history-head h2{margin-bottom:5px}.conversation-history-head p{margin:0}.conversation-history-count{display:inline-flex;align-items:center;white-space:nowrap;padding:6px 10px;border-radius:999px;background:rgba(52,127,241,.09);color:#2868bd;font-size:11px;font-weight:850}.conversation-snapshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.conversation-snapshot-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.38)}.conversation-snapshot-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.conversation-snapshot-meta b{font-size:13px}.conversation-snapshot-meta span{font-size:10px;color:var(--mut);white-space:nowrap}.conversation-snapshot-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:4.2em;margin:0 0 12px;color:var(--ink);font-size:12px;line-height:1.4}.conversation-snapshot-card .conversation-snapshot-actions{justify-content:flex-start}.conversation-snapshot-card .conversation-snapshot-actions .btn{min-height:34px;padding:6px 10px;font-size:11px}
html[data-theme="dark"] .conversation-snapshot-card{background:#1b2636!important;border-color:#3a485d!important}html[data-theme="dark"] .conversation-snapshot-preview{color:#e8eef8!important}html[data-theme="dark"] .conversation-history-count{background:#253b59!important;color:#cfe1ff!important}
@media(max-width:720px){
 .conversation-history-head{display:grid;gap:8px}.conversation-history-count{justify-self:start}.conversation-snapshot-grid{grid-template-columns:1fr}.conversation-snapshot-card{padding:13px}.conversation-snapshot-meta{align-items:flex-start;flex-direction:column;gap:3px}.conversation-snapshot-preview{-webkit-line-clamp:3;min-height:auto}.conversation-snapshot-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.conversation-snapshot-actions .btn,.conversation-snapshot-actions form{flex:0 0 auto!important}.conversation-snapshot-actions form .btn{width:auto!important}
 html[data-theme="dark"] body.menu-open .nav,html[data-theme="dark"] .menu-open .nav{background:#192536!important;background-image:none!important;border:1px solid #43536b!important;color:#eef3fb!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 22px 52px rgba(0,0,0,.55)!important}
 html[data-theme="dark"] body.menu-open .nav a,html[data-theme="dark"] body.menu-open .nav button,html[data-theme="dark"] .menu-open .nav a,html[data-theme="dark"] .menu-open .nav button{color:#dce6f4!important;background-color:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;opacity:1!important}
 html[data-theme="dark"] body.menu-open .nav a.active,html[data-theme="dark"] .menu-open .nav a.active{background:#304b70!important;color:#fff!important;border-color:#5375a1!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)!important}
 html[data-theme="dark"] body.menu-open .nav .theme-toggle,html[data-theme="dark"] .menu-open .nav .theme-toggle{background:#202f43!important;color:#eef3fb!important;border:1px solid #3c4e68!important}
 html[data-theme="dark"] body.menu-open .nav .nav-divider,html[data-theme="dark"] .menu-open .nav .nav-divider{border-color:#34445a!important;background:#34445a!important}
}


/* RC.41.3 — mobile dark-mode work cards + server-backed Quick Lock */
@media(max-width:720px){
 html[data-theme="dark"] .mobile-work-cards tr{background:#202a38!important;border-color:#3b485c!important;color:#edf2fb!important;box-shadow:0 10px 28px rgba(0,0,0,.16)!important}
 html[data-theme="dark"] .mobile-work-cards td{background:transparent!important;color:#edf2fb!important}
 html[data-theme="dark"] .mobile-work-cards td[data-label="Datums"],html[data-theme="dark"] .mobile-work-cards td[data-label="Priekšmets"]{color:#aebbd0!important}
 html[data-theme="dark"] .mobile-work-cards .badge{filter:none!important}
}
.quick-lock-page{overflow:hidden;background:#17202c!important}.quick-lock-backdrop{position:fixed;inset:0;background:radial-gradient(circle at 20% 15%,rgba(62,130,225,.2),transparent 36%),linear-gradient(135deg,#1d2a3b,#121923);filter:blur(0);transform:scale(1.03)}.quick-lock-backdrop:after{content:"";position:absolute;inset:0;background:rgba(12,18,27,.36);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.quick-lock-fake{position:absolute;inset:8% 7%;border:1px solid rgba(255,255,255,.08);border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.025));box-shadow:0 30px 90px rgba(0,0,0,.25)}.quick-lock-shell{position:relative;z-index:2;min-height:100vh;display:grid;place-items:center;padding:24px!important}.quick-lock-panel{width:min(430px,100%);padding:34px;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:rgba(25,35,49,.82);backdrop-filter:blur(28px) saturate(130%);-webkit-backdrop-filter:blur(28px) saturate(130%);box-shadow:0 28px 80px rgba(0,0,0,.35);color:#edf2fb;text-align:center}.quick-lock-panel>img{width:66px;height:66px;border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.22)}.quick-lock-panel h1{margin:18px 0 7px;color:#fff;font-size:27px}.quick-lock-panel p{margin:0 0 22px;color:#aebbd0;line-height:1.45}.quick-lock-panel label{text-align:left;color:#cbd6e7}.quick-lock-panel input{font-size:26px;text-align:center;letter-spacing:.22em;background:#182231!important;border-color:#42536b!important;color:#fff!important}.quick-lock-panel form button{width:100%;margin-top:12px;min-height:48px}.quick-lock-logout{display:inline-block;margin-top:18px;color:#aebbd0;font-size:13px;font-weight:750}.quick-lock-error{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:rgba(190,66,75,.18);color:#ffd7da;font-size:13px}.quick-lock-nav{white-space:nowrap}
@media(max-width:720px){.quick-lock-panel{padding:27px 22px;border-radius:24px}.quick-lock-panel h1{font-size:24px}.quick-lock-nav span{display:inline}}


/* RC.41.4 — Quick Lock placement: keep desktop navigation compact, move lock to home privacy control */
.quick-lock-mobile-only{display:none!important}
.home-heading-row{margin:0 0 12px 2px;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px}
.home-quick-lock{display:grid;place-items:center;width:70px;height:70px;margin-right:12px;border-radius:22px;text-decoration:none;outline:0;transition:box-shadow .16s ease,border-color .16s ease,background .16s ease;position:relative}
.home-quick-lock:before{content:"";position:absolute;inset:6px;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(218,244,247,.36));border:1px solid rgba(68,153,179,.16);box-shadow:0 10px 28px rgba(31,102,130,.10)}
.home-lock-shield{position:relative;z-index:1;width:58px;height:66px;display:block;filter:drop-shadow(0 7px 10px rgba(20,83,111,.18))}
.home-lock-shield svg{display:block;width:100%;height:100%}
.home-quick-lock:hover,.home-quick-lock:focus-visible{outline:2px solid rgba(64,137,231,.55);outline-offset:3px;box-shadow:none}
html[data-theme="dark"] .home-quick-lock:before{background:linear-gradient(145deg,rgba(54,76,101,.74),rgba(26,51,67,.66));border-color:rgba(111,216,220,.2);box-shadow:0 10px 28px rgba(0,0,0,.2)}
@media(max-width:720px){.quick-lock-mobile-only{display:flex!important}.home-quick-lock{display:none}.home-heading-row{min-height:0;margin:0 0 16px 2px}}

/* v2.0.0 stable: visible release identity */
@media (min-width:721px){.privacy-footer{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center}.privacy-footer>span:last-child{text-align:right}.footer-version{text-align:center;font-weight:800;letter-spacing:.02em;color:#6f7d94}}
.login-version{text-align:center;margin-top:13px;font-size:10px;font-weight:800;letter-spacing:.06em;color:#8490a3}
html[data-theme="dark"] .footer-version,html[data-theme="dark"] .login-version{color:#8fa0b8}
@media(max-width:720px){.privacy-footer .footer-version{order:3;text-align:left;font-weight:800}.login-version{margin-top:10px}}
