@font-face{font-family:Montserrat;src:url('/fonts/montserrat-cyrillic-400-normal.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;src:url('/fonts/montserrat-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/montserrat-cyrillic-600-normal.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;src:url('/fonts/montserrat-latin-600-normal.woff2') format('woff2');font-weight:600 800;font-display:swap}
:root{--blue:#1d4ed8;--navy:#13254b;--ink:#17253c;--muted:#627087;--line:#dce3ed;--bg:#f3f6fb;--white:#fff;--pale:#e9efff;--danger:#a5233d;--focus:#bbd0ff;--g5:#167449;--g4:#2563b5;--g3:#936000;--g2:#ba3045;--gn:#7947b5;font-family:Montserrat,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--blue)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus,textarea:focus{outline:2px solid var(--blue);outline-offset:1px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);padding:11px 12px;min-height:44px}textarea{resize:vertical;min-height:96px}label{display:flex;flex-direction:column;gap:8px;font-size:.875rem;font-weight:600}label small{font-weight:400}.button,button.primary{background:var(--blue);border:1px solid var(--blue);color:var(--white);border-radius:8px;padding:11px 17px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-decoration:none;min-height:44px;font-size:.875rem}button.secondary,.button.secondary{background:var(--white);color:var(--ink);border:1px solid var(--line)}button.quiet{background:transparent;border:0;color:var(--blue);padding:9px;font-size:.875rem;border-radius:6px}button.danger{color:var(--danger)}button:hover:not(:disabled){filter:brightness(.96)}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;line-height:1.3;font-weight:600;letter-spacing:-.05rem}h2{font-size:1.25rem;font-weight:600}h3{font-size:1rem;font-weight:600}p{line-height:1.65}.muted,small{color:var(--muted)}small{font-size:.8125rem;line-height:1.55}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.75rem;font-weight:600}.logo{display:flex;align-items:center;gap:12px;font-weight:600}.logo-mark{display:grid;place-items:center;background:var(--blue);color:var(--white);height:44px;width:52px;border-radius:10px;font-weight:600;font-size:1rem;flex-shrink:0}.logo small{display:block;font-size:.75rem;font-weight:400;margin-top:3px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--white);border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column;gap:40px;position:sticky;top:0;height:100vh}.sidebar .logo{font-size:1rem}.sidebar nav{display:grid;gap:8px}.nav-button{display:flex;align-items:center;gap:12px;padding:14px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);text-align:left;font-size:.875rem;font-weight:600}.nav-button.active{background:var(--pale);color:var(--blue)}.nav-icon{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:22px;display:grid;gap:12px}.avatar{border-radius:50%;width:40px;height:40px;object-fit:cover;background:var(--pale);color:var(--blue);display:grid;place-items:center;font-weight:600;flex-shrink:0}.avatar.large{height:100px;width:100px;font-size:2rem}.identity{display:flex;gap:10px;align-items:center}.identity strong{font-size:.8125rem;display:block;line-height:1.5;overflow-wrap:anywhere}.identity small{font-size:.75rem}.main{min-width:0}.topbar{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:19px 36px;border-bottom:1px solid var(--line);background:var(--white);font-size:.8125rem;min-height:70px}.topbar span:last-child{color:var(--muted)}.content{padding:34px 36px 90px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head h1{margin-bottom:9px}.page-head p{font-size:.875rem;margin:0;color:var(--muted)}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.panel{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-body{padding:24px}.filters{display:grid;grid-template-columns:1fr 1fr .65fr .8fr 1.7fr;gap:16px;padding:22px}.filters label{font-size:.75rem;color:var(--muted)}.filters select{font-size:.875rem}.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:0 0 24px;overflow:auto}.tab{padding:12px 0 15px;border:0;border-bottom:3px solid transparent;background:none;font-size:.875rem;color:var(--muted);white-space:nowrap;font-weight:600}.tab.active{color:var(--blue);border-color:var(--blue)}.journal-meta{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;gap:16px;border-bottom:1px solid var(--line)}.journal-meta h2{font-size:1rem;margin:0 0 6px}.badge{font-size:.75rem;color:var(--blue);background:var(--pale);padding:6px 9px;border-radius:6px;display:inline-block;white-space:nowrap}.table-wrap{overflow:auto;max-height:65vh}table{border-collapse:separate;border-spacing:0;width:100%;font-size:.875rem;text-align:left}th{color:var(--muted);background:var(--bg);font-weight:600;font-size:.75rem}td,th{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}table.data td{line-height:1.55}.data th{white-space:nowrap}.grade-table th{position:sticky;top:0;z-index:2;text-align:center;height:68px;min-width:66px;padding:8px;border-right:1px solid var(--line)}.grade-table td{padding:0;border-right:1px solid var(--line);height:60px;text-align:center;background:var(--white)}.grade-table .student-name{position:sticky;left:0;z-index:1;min-width:260px;width:260px;text-align:left;padding:15px 20px;background:var(--white);font-weight:600;font-size:.8125rem}.grade-table th.student-name{background:var(--bg);z-index:3;font-size:.75rem;color:var(--muted)}.row-number{display:inline-block;width:26px;color:var(--muted);font-size:.75rem;font-weight:400}.grade-input{border:0;border-radius:0;width:100%;min-width:65px;padding:0;text-align:center;background:transparent;height:59px;font-size:1rem;font-weight:600;outline:0!important;box-shadow:none}.grade-input:focus{background:var(--pale);box-shadow:inset 0 0 0 2px var(--blue)}.grade-input:disabled{opacity:1;color:var(--muted)}.grade-input[data-value="5"],.mark-5{color:var(--g5)}.grade-input[data-value="4"],.mark-4{color:var(--g4)}.grade-input[data-value="3"],.mark-3{color:var(--g3)}.grade-input[data-value="2"],.mark-2{color:var(--g2)}.grade-input[data-value="н"],.mark-н{color:var(--gn)}.grade-input.dirty{background:var(--pale)}.grade-table .date-button{border:0;background:none;font-size:.8125rem;color:var(--ink);padding:2px}.grade-table .date-button small{display:block;font-size:.75rem;margin-top:5px}.journal-footer{display:flex;justify-content:space-between;gap:15px;padding:16px 22px;align-items:center;border-top:1px solid var(--line)}.legend{display:flex;gap:16px;align-items:center;font-size:.75rem;flex-wrap:wrap}.legend b{font-size:.875rem}.savebar{display:flex;gap:16px;align-items:center}.savebar small{max-width:250px}.empty{padding:65px 24px;text-align:center}.empty h3{font-size:1.1rem;margin-bottom:10px}.empty p{font-size:.875rem;color:var(--muted);max-width:500px;margin:0 auto 20px}.empty-symbol{display:grid;place-items:center;font-size:1.5rem;width:54px;height:54px;border-radius:14px;background:var(--pale);color:var(--blue);margin:0 auto 18px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.full{grid-column:1/-1}.stack{display:grid;gap:20px}.toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.toolbar>input{flex:1;min-width:200px}.toolbar>select{width:auto;max-width:280px}.error{color:var(--danger);font-size:.875rem;line-height:1.6;white-space:pre-line}.notice{border-left:3px solid var(--blue);background:var(--pale);padding:14px 18px;font-size:.8125rem;line-height:1.7;margin-bottom:20px}.profile-card{display:flex;align-items:center;gap:24px;margin-bottom:24px}.profile-card h2{margin-bottom:10px}.readonly{background:var(--bg)}.lesson-list{display:grid;gap:14px}.lesson-item{border:1px solid var(--line);border-radius:9px;padding:20px;display:flex;justify-content:space-between;gap:20px}.lesson-item h3{margin:8px 0 10px}.lesson-item p{font-size:.875rem;margin-bottom:12px;white-space:pre-wrap}.lesson-date{font-size:.75rem;color:var(--muted)}.summary-line{display:flex;gap:22px;margin-bottom:24px;font-size:.875rem}.summary-line b{color:var(--blue)}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:min(640px,calc(100vw - 28px));max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #13254b33}dialog::backdrop{background:#13254b99}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:20px 24px}.dialog-head h2{margin:0}.dialog-body{padding:24px;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-actions .danger{margin-right:auto}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:var(--white);padding:15px 24px;border-radius:10px;max-width:90vw;z-index:10;display:none;font-size:.875rem;box-shadow:0 8px 30px #13254b33}#toast.show{display:block}.loading{padding:80px;text-align:center;color:var(--muted)}.subtle-note{font-size:.75rem;color:var(--muted);margin-top:16px}.nowrap{white-space:nowrap}.print-heading{display:none}.file-link{font-size:.875rem;display:inline-block;margin-top:6px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.content{padding:42px 50px}.sidebar{padding-top:36px}.shell{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:24px 12px}.content{padding:26px 20px 70px}.topbar{padding:18px 20px}.filters{grid-template-columns:1fr 1fr 1fr}.filters label:last-child{grid-column:2/4}.journal-footer{align-items:flex-start;flex-direction:column}.page-head{flex-wrap:wrap}.split{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;gap:18px;padding:18px}.sidebar nav{display:flex;overflow:auto;gap:6px}.nav-button{white-space:nowrap;padding:12px;font-size:.8125rem}.sidebar-bottom{margin:0;padding:12px 0 0;display:flex;justify-content:space-between;align-items:center}.sidebar-bottom .identity{max-width:65%}.sidebar-bottom .avatar{display:none}.sidebar-bottom .nav-button{padding:8px}.topbar{display:none}.content{padding:24px 16px 60px}h1{font-size:1.65rem}.filters{padding:16px;gap:12px;grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}.filters label:nth-child(2){grid-column:auto}.grade-table .student-name{min-width:175px;width:175px;padding:12px 10px}.row-number{width:18px}.grade-table .student-name{font-size:.75rem}.actions{width:100%}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.panel-body{padding:18px}.dialog-body{padding:20px}.dialog-head{padding:18px 20px}.journal-meta{padding:16px;flex-wrap:wrap}.savebar{width:100%;justify-content:space-between}.summary-line{flex-wrap:wrap;gap:12px}.lesson-item{flex-direction:column}.profile-card{align-items:flex-start}.tabs{gap:20px}.toolbar>select{max-width:none;width:100%}}
@media print{.sidebar,.topbar,.filters,.tabs,.page-head .actions,.journal-footer,.subtle-note,button,#toast{display:none!important}.shell{display:block}.content{padding:0}.panel{border:1px solid var(--line)}.table-wrap{max-height:none;overflow:visible}.grade-table .student-name{position:static;min-width:140px}.grade-input{min-width:32px}.grade-table th{min-width:32px}.print-heading{display:block}body{background:white}.grade-table td,.grade-table th{height:35px}.grade-input{height:35px;font-size:.75rem}}

/* Login card */
.login{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:48px 32px;background:#f3f6fa}
.login-card{width:min(100%,1312px);min-height:628px;display:grid;grid-template-columns:1.04fr 1fr;background:#fff;border:1px solid #dfe6f0;border-radius:24px;overflow:hidden;box-shadow:0 18px 60px #16396a12}
.login-story{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;background:#15366d;color:#fff;padding:62px 60px 60px}
.login-story::after{content:"";position:absolute;z-index:-1;width:430px;height:330px;right:-140px;bottom:-130px;transform:rotate(-18deg);background-image:linear-gradient(#8db5ef0a 1px,transparent 1px),linear-gradient(90deg,#8db5ef0a 1px,transparent 1px);background-size:40px 40px;pointer-events:none}
.story-label{display:flex;align-items:center;gap:10px;color:#bdd4fb;font-size:12px;letter-spacing:.14em}
.story-label::before{content:"";width:22px;height:2px;background:#94b8ef}
.story-copy{margin-top:94px}
.login-story h1{font-size:48px;line-height:1.23;font-weight:600;letter-spacing:-1.9px;margin:0 0 23px}
.login-story h1 span{color:#96bcf6}
.login-story p{font-size:16px;line-height:1.85;color:#e0eaff;margin:0}
.story-footer{margin-top:auto;padding-left:16px;border-left:3px solid #8bb1ed;font-size:13px;line-height:1.85;color:#ecf2ff}
.story-footer span{font-size:12px}
.login-form-side{display:grid;place-items:center;padding:68px 48px 62px}
.login-box{width:min(100%,360px)}
.login-box>.eyebrow{font-size:12px;letter-spacing:.15em;color:#2560ed;margin-bottom:15px}
.login-box h2{font-size:28px;letter-spacing:-.8px;line-height:1.3;margin:0 0 13px}
.login-box>p{font-size:13px;line-height:1.7;margin:0;color:#728096}
.login-box form{display:grid;grid-template-columns:1fr;gap:0;margin:34px 0 30px}
.login-box label{font-size:13px;font-weight:600;margin-bottom:9px}
.login-box input{height:52px;padding:14px 15px;border:1px solid #c8d5e9;background:#fafbfd;font-size:13px;border-radius:8px}
.login-box input::placeholder{color:#7c899f;opacity:1}
.login-box input[name=login]{margin-bottom:23px}
.password-wrap{position:relative;display:flex}
.password-wrap input{padding-right:52px}
.password-wrap button{position:absolute;right:3px;top:4px;width:44px;height:44px;display:grid;place-items:center;padding:0;color:#6d819f}
.eye-slash{display:none}
.password-wrap button[aria-pressed=true] .eye-slash{display:block}
.login-box .error:empty{display:none}
.login-box .error:not(:empty){margin-top:14px}
.login-box .primary{height:52px;width:100%;margin-top:25px;background:#255bda;border-color:#255bda;font-size:14px;box-shadow:0 4px 12px #255bda13}
.login-note{display:flex;align-items:flex-start;gap:12px;border-top:1px solid #e3e9f2;padding-top:24px;font-size:12px;line-height:1.8;color:#405879}
.login-note p{margin:0 0 3px;line-height:1.8}
.login-note .muted{color:#71829b}
.help-icon{display:grid;place-items:center;flex:none;width:21px;height:21px;border:1px solid #bdcee5;border-radius:50%;font-size:12px;color:#718db5}
@media(max-width:1200px){.login-story{padding:48px 38px}.login-story h1{font-size:38px}.login-form-side{padding:54px 36px}.story-copy{margin-top:85px}.story-footer span{font-size:11px}}
@media(max-width:760px){.login{padding:24px 16px}.login-card{grid-template-columns:1fr;min-height:0;border-radius:20px;max-width:520px}.login-story{padding:32px 28px;gap:30px}.story-copy{margin:0}.login-story h1{font-size:clamp(26px,7vw,34px);letter-spacing:-1.2px;margin-bottom:16px}.login-story p{font-size:14px}.story-footer{margin-top:0;font-size:12px}.login-form-side{padding:36px 28px}.login-box{width:100%}.login-box h2{font-size:26px}.login-box form{margin-top:28px}.story-label{font-size:10px}}
@media(prefers-reduced-motion:no-preference){.login-box .primary{transition:background .15s,box-shadow .15s}.login-box .primary:hover{background:#174cc9;box-shadow:0 6px 16px #255bda26}}

/* Shared horizontal workspace for all account roles. */
.workspace-shell{display:block;max-width:1480px;margin:0 auto;padding:40px 40px 0;min-height:100vh}
.workspace-header{display:flex;align-items:center;gap:26px;background:#e1e9f5;border:1px solid #d6e1f0;border-radius:22px;padding:18px 22px;min-height:96px}
.institution{flex:1;min-width:180px;max-width:265px;display:grid;gap:5px;color:#15366d}
.institution strong{font-size:14px;font-weight:600}
.institution span{font-size:11px;line-height:1.6;max-width:220px;color:#526b8e}
.workspace-nav{display:flex;align-items:center;gap:10px;flex-shrink:0}
.workspace-nav-button,.home-button{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;min-width:50px;height:50px;border:0;border-radius:14px;background:#cddbee;color:#244776;padding:0 14px}
.workspace-nav-button:hover,.home-button:hover{background:#bdd0eb;filter:none!important}
.workspace-nav-button.active,.home-button.active{background:#15366d;color:white;box-shadow:0 4px 10px #15366d12}
.workspace-nav-button .nav-icon{width:22px;height:22px}
.workspace-nav-button .nav-label{display:none;font-size:14px;font-weight:600;white-space:nowrap}
.workspace-nav-button.active .nav-label{display:block}
.nav-divider{width:1px;height:25px;background:#a5b9d5;margin:0 3px}
.home-button{width:50px;padding:0;flex-shrink:0;background:#15366d;color:white}

.home-icon{width:22px;height:22px}

.home-button:hover{background:#21467e}
.workspace-date{margin-left:auto;flex-shrink:0;font-size:12px;color:#526b8e;white-space:nowrap}
.workspace-shell .content{padding:30px 4px 70px;max-width:none}
.workspace-shell .page-head h1{font-size:27px;margin:7px 0 9px}
.workspace-shell .page-head .eyebrow{font-size:10px}
.workspace-shell .tabs{background:#eaf0f9;border:1px solid #dfe7f3;border-radius:13px;gap:6px;padding:5px;margin-bottom:28px;width:fit-content;max-width:100%}
.workspace-shell .tab{padding:13px 20px;border:0;border-radius:9px;font-size:13px}
.workspace-shell .tab.active{background:#fff;color:#2459d5;box-shadow:0 2px 5px #16396a0a}
.workspace-shell .filters{border-radius:14px;padding:21px;box-shadow:0 4px 18px #15366d03}
.workspace-shell .panel{border-color:#dfe7f1;border-radius:14px}
.workspace-shell .page-head .actions:empty{display:none}
.journal-lessons{border-top:1px solid var(--line);background:#fafcff}
.journal-lessons>h2{font-size:16px;margin-bottom:20px}
.journal-lessons .lesson-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.journal-lessons .lesson-item{background:white;min-width:0;padding:20px}
.journal-lessons .lesson-item p{overflow-wrap:anywhere}
.welcome-panel{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:40px;padding:46px 48px;background:#15366d;color:white;border-radius:20px;min-height:290px}
.welcome-panel::after{content:"";position:absolute;width:370px;height:370px;border:1px solid #ffffff0d;border-radius:50%;right:-70px;top:-130px;box-shadow:0 0 0 60px #ffffff03,0 0 0 120px #ffffff02;pointer-events:none}
.welcome-copy{position:relative;z-index:1;max-width:750px}
.welcome-copy .eyebrow{font-size:11px;color:#aecbfa;letter-spacing:.13em;margin-bottom:22px}
.welcome-copy h1{font-size:34px;line-height:1.35;letter-spacing:-1px;margin:0 0 18px;overflow-wrap:anywhere}
.welcome-copy h1 span{color:#b7d1fc}
.welcome-copy p{max-width:610px;font-size:14px;color:#dce8fb;margin-bottom:25px}
.welcome-action{background:#fff;color:#15366d;border-color:#fff;gap:24px}
.welcome-identity{z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:216px;margin-block:-24px;font-size:12px;color:#d3e3ff}
.welcome-identity .avatar{width:216px;height:216px;font-size:64px;object-fit:cover;background:#ffffff15;border:2px solid #ffffff26;box-shadow:0 8px 28px #071d4026;color:#fff;margin-bottom:3px}
.welcome-identity strong{font-size:13px;color:white}
.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:32px 0 20px}
.home-section-heading .eyebrow{font-size:10px;margin-bottom:9px}
.home-section-heading h2{font-size:21px;letter-spacing:-.4px;margin:0}
.home-availability{font-size:12px;color:var(--muted)}
.home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-card{display:flex;align-items:flex-start;flex-direction:column;text-align:left;background:white;border:1px solid #dce5f1;border-radius:16px;padding:26px;color:var(--ink)}
.home-card:hover{border-color:#9eb8e5;box-shadow:0 8px 24px #15366d07;filter:none!important}
.home-card-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#edf3fd;color:#255bda;margin-bottom:22px}
.home-card-icon .nav-icon{width:23px;height:23px}
.home-card h3{font-size:16px;margin-bottom:10px}
.home-card p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:25px}
.home-card-link{display:flex;justify-content:space-between;width:100%;font-size:12px;color:#255bda;margin-top:auto;font-weight:600}
@media(max-width:1200px){.workspace-shell{padding:26px 24px 0}.workspace-header{gap:16px;padding:16px}.institution{min-width:145px}.institution span{font-size:10px}.workspace-nav{gap:7px}.workspace-nav-button.active .nav-label{max-width:160px;white-space:normal;text-align:left;font-size:12px}.workspace-date{font-size:11px}.workspace-nav-button{padding:0 12px}}
@media(max-width:1000px){.workspace-header{flex-wrap:wrap;justify-content:space-between;gap:16px}.institution{max-width:none;flex:1}.institution span{max-width:none;font-size:11px}.workspace-date{order:1}.workspace-nav{order:2;flex-basis:100%;border-top:1px solid #cbd8e9;padding-top:14px}.workspace-nav-button.active .nav-label{max-width:none;white-space:nowrap}.workspace-nav .logout-button{margin-left:auto}.home-cards{gap:14px}.home-card{padding:22px}.welcome-panel{padding:36px}.welcome-identity{min-width:176px;margin-block:-12px}.welcome-identity .avatar{width:176px;height:176px;font-size:52px}.journal-lessons .lesson-list{grid-template-columns:1fr}}
@media(max-width:700px){.workspace-shell{padding:16px 14px 0}.workspace-header{border-radius:18px;padding:15px;gap:12px}.institution{min-width:0}.institution strong{font-size:12px}.institution span{font-size:9px;max-width:185px}.workspace-date{font-size:10px;max-width:95px;white-space:normal;text-align:right;line-height:1.6}.workspace-nav{gap:7px;min-width:0}.workspace-nav-button,.home-button{height:43px;min-width:41px;border-radius:11px;padding:0 10px}.home-button{width:43px}.workspace-nav-button.active .nav-label{display:none}.nav-divider{margin:0 1px}.workspace-shell .content{padding:22px 0 50px}.workspace-shell .page-head h1{font-size:24px}.workspace-shell .tabs{width:100%;margin-bottom:23px;gap:3px}.workspace-shell .tab{padding:12px;font-size:11px;white-space:normal}.workspace-shell .filters{padding:15px}.welcome-panel{padding:28px 24px;min-height:0;gap:0}.welcome-copy h1{font-size:27px;letter-spacing:-.6px}.welcome-copy .eyebrow{font-size:9px}.welcome-copy p{font-size:13px}.welcome-identity{display:none}.home-section-heading{align-items:start;flex-direction:column;gap:10px;margin-top:28px}.home-section-heading h2{font-size:19px}.home-cards{grid-template-columns:1fr}.home-card{padding:23px}.home-card-icon{margin-bottom:17px}.home-card p{margin-bottom:18px}.journal-lessons .lesson-item{padding:16px}}
.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.reports-grid .panel{margin:0}.report-description{font-size:13px;min-height:64px}.report-form .error:empty{display:none}.report-requisites{padding-top:20px}.report-form summary{cursor:pointer;font-size:13px;color:var(--blue)}@media(max-width:850px){.reports-grid{grid-template-columns:1fr}.report-description{min-height:0}}

/* Integrated journal spread and accessible attachment buttons. */
.file-picker{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;cursor:pointer;overflow:hidden}
.file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:1}
.file-picker-button{display:inline-flex;align-items:center;gap:9px;color:var(--blue);background:var(--pale);border:1px solid var(--line);border-radius:6px;padding:7px 10px;white-space:nowrap;font-size:.8125rem}
.file-picker svg,.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
.file-picker:focus-within{outline:2px solid var(--blue);outline-offset:2px}.file-picker-name{font-size:.75rem;overflow-wrap:anywhere}
.journal-month{display:flex;align-items:center;gap:20px;padding:16px 22px;border-bottom:1px solid var(--line)}.journal-month label{max-width:220px;font-size:.75rem}
.journal-spread{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr);align-items:start}.journal-marks{min-width:0}.journal-homework{min-width:0;border-left:1px solid var(--line)}
.journal-homework h2{font-size:.9rem;padding:18px 16px;margin:0;border-bottom:1px solid var(--line)}.homework-table{table-layout:fixed}.homework-table th:first-child{width:130px}.homework-table th:nth-child(2){width:36%}.homework-table td{vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap;padding:12px}.homework-table small{display:block;margin-top:5px}.homework-table th{white-space:normal;padding:12px}
.lesson-actions{display:flex;gap:6px;margin-bottom:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--white)}.icon-button:hover{background:var(--pale)}
.journal-spread .grade-table .student-name{min-width:205px;width:205px;padding:12px}.journal-spread .grade-table th{min-width:60px}.journal-spread .grade-table th:nth-last-child(2),.journal-spread .grade-table th:nth-last-child(3){min-width:100px}.journal-spread .journal-footer{flex-direction:column;align-items:stretch}.journal-spread .savebar{justify-content:space-between}
@media(max-width:1000px){.journal-spread{grid-template-columns:1fr}.journal-homework{border-left:0;border-top:1px solid var(--line)}.journal-month{flex-wrap:wrap}}

dialog.subgroups-dialog{width:min(960px,calc(100vw - 28px))}
.subgroup-board{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.subgroup-targets{display:grid;gap:20px;grid-auto-rows:minmax(180px,1fr)}
.subgroup-zone{border:1px solid var(--line);border-radius:16px;background:var(--bg);padding:18px;display:flex;flex-direction:column;min-width:0;transition:background .15s,border-color .15s}
.subgroup-all{min-height:420px}.subgroup-zone-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.subgroup-zone-head h3{margin:0;color:var(--blue);font-size:.875rem}
.subgroup-cards{display:grid;align-content:start;gap:8px;min-height:100px;max-height:42vh;overflow:auto;flex:1}
.subgroup-student{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;background:var(--white);text-align:left;font-size:.8125rem;cursor:grab;color:var(--ink)}
.subgroup-student small{display:block;margin-top:4px;font-size:.7rem}.subgroup-student.selected{border-color:var(--blue);background:var(--pale)}.subgroup-student:disabled{opacity:.55;cursor:not-allowed}.drag-grip{color:var(--muted);font-size:1.3rem}.subgroup-zone.drag-over{border-color:var(--blue);background:var(--pale);outline:2px dashed var(--blue);outline-offset:-5px}
.subgroup-move{margin-top:14px;width:100%;font-size:.75rem}.subgroup-empty{font-size:.8125rem;color:var(--muted);text-align:center;margin:20px 0}.subgroup-status{font-size:.8125rem;color:var(--blue);margin-top:16px;min-height:20px}
@media(max-width:650px){.subgroup-board{grid-template-columns:1fr;gap:16px}.subgroup-all{min-height:200px}.subgroup-cards{max-height:240px}}

.filters{grid-template-columns:1fr 1fr .65fr .8fr 1.5fr 1fr}
@media(max-width:1200px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filters label:last-child{grid-column:auto}}
@media(max-width:700px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label:last-child{grid-column:auto}}

.copy-target{flex-direction:row;align-items:center;font-weight:400}.copy-target input{width:20px;min-height:20px;flex-shrink:0}.subgroup-student{user-select:none}.journal-meta{flex-wrap:wrap}.journal-meta .actions{flex-wrap:wrap}

.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;flex-wrap:wrap}.header-tools .workspace-date{margin:0 8px 0 0;white-space:nowrap}.header-button{font-size:.75rem;padding:10px 13px;white-space:nowrap}.inbox-button{width:44px;height:44px;padding:10px}.inbox-button svg{width:22px;height:22px}.directory-search{max-width:440px;margin-bottom:28px}.directory-section{margin:28px 0}.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.person-card{display:flex;align-items:center;gap:14px;padding:20px;background:var(--white);border:1px solid var(--line);border-radius:14px}.photo-button{padding:0;border:0;background:none;flex-shrink:0;border-radius:50%;cursor:zoom-in}.photo-button:disabled{cursor:default;opacity:1}.photo-button .avatar{width:64px;height:64px}.person-name{min-width:0}.person-name strong{display:block;overflow-wrap:anywhere}.person-name small,.message-card small{display:block;margin-top:6px;color:var(--muted)}.contact-links{display:flex;gap:8px;margin-left:auto}.contact-link{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;flex-shrink:0}.contact-link img{width:30px;height:30px;object-fit:contain}.contact-link.unavailable{opacity:.24;filter:grayscale(1)}.photo-preview{display:block;width:min(100%,600px);max-height:70vh;object-fit:contain;margin:auto;border-radius:12px}.message-card{position:relative;border:1px solid var(--line);border-radius:12px;padding:20px 48px 20px 20px;margin-bottom:14px}.message-delete{position:absolute;right:10px;top:10px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.faq-list details{padding:16px 0;border-bottom:1px solid var(--line)}.faq-list summary{cursor:pointer;font-weight:600}.faq-list p{line-height:1.7}.workspace-header{gap:18px}.workspace-nav{flex-shrink:0}
@media(max-width:1200px){.workspace-header{flex-wrap:wrap}.header-tools{width:100%;justify-content:flex-end}}
@media(max-width:720px){.directory-grid{grid-template-columns:1fr}.header-tools{justify-content:flex-start}.person-card{padding:14px;gap:10px}.contact-links{gap:4px}.photo-button .avatar{width:48px;height:48px}.workspace-nav{flex-wrap:wrap;flex-shrink:1}.person-name strong{font-size:.85rem}}
.grade-table td.outside-enrollment,.grade-table td.outside-enrollment .grade-input:disabled{background:#e2e5ea!important;color:#8a919e!important;cursor:not-allowed}.grade-table td.outside-enrollment .grade-input::placeholder{color:#8a919e;opacity:1}

[hidden]{display:none!important}.cookie-notice{position:fixed;bottom:42px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);z-index:80;background:#fff;border:1px solid #d7deea;box-shadow:0 8px 32px #172b4d26;border-radius:14px;padding:18px 22px;display:flex;gap:24px;align-items:center}.cookie-notice p{margin:6px 0 0;font-size:.875rem;line-height:1.5}.cookie-notice button{flex-shrink:0}.cookie-document{max-width:840px;margin:30px auto;line-height:1.7}.backup-status{display:grid;gap:8px;margin:0}.backup-status dt{font-weight:600}.backup-status dd{margin:0 0 8px;overflow-wrap:anywhere}.actions{flex-wrap:wrap}@media(max-width:600px){.cookie-notice{bottom:38px;max-width:calc(100% - 16px);padding:14px;gap:12px;align-items:stretch;flex-direction:column;max-height:45vh;overflow:auto}.cookie-document{margin:12px}}

/* Scrollbars stay inside rounded dialogs and match the journal palette. */
*{scrollbar-width:thin;scrollbar-color:#9aafd1 #eef3fa}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#eef3fa;border-radius:8px}
::-webkit-scrollbar-thumb{background:#9aafd1;border:2px solid #eef3fa;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#587bb0}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-corner{background:transparent}
dialog{overflow:hidden;max-height:90dvh}
dialog[open]{display:flex;flex-direction:column}
.dialog-head{flex-shrink:0}
.dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body:has(dialog[open]){overflow:hidden}
@supports selector(::-webkit-scrollbar){*{scrollbar-width:auto;scrollbar-color:auto}}

/* Shared version label remains visible across all application routes. */
.journal-version{position:fixed;bottom:0;left:0;width:100%;height:30px;display:flex;align-items:center;justify-content:center;background:var(--bg,#f3f6fa);color:var(--muted,#63718a);font-size:12px;line-height:1.5;z-index:70}
body{padding-bottom:30px}.login{min-height:calc(100svh - 30px)}.workspace-shell,.shell{min-height:calc(100vh - 30px)}#toast{bottom:42px}
@media print{.journal-version,.cookie-notice{display:none!important}body{padding-bottom:0}}

.journal-hours{display:flex;flex-wrap:wrap;gap:12px 28px;padding:18px 22px;background:var(--pale);border-bottom:1px solid var(--line);font-size:.875rem}.journal-hours strong{color:var(--blue)}.journal-hours small,.journal-hours .error{flex-basis:100%}

/* 0.0.8: compact journal with full student names and an inset spread. */
@media screen {
  .journal-hours{padding:14px 20px;gap:8px 24px;font-size:.8125rem}
  .journal-meta{padding:14px 20px;gap:12px}
  .journal-meta h2{font-size:.9375rem;line-height:1.5}
  .journal-meta .button{min-height:38px;padding:8px 12px;font-size:.8125rem}
  .journal-month{padding:12px 20px;gap:18px}
  .journal-month input{min-height:38px;padding:8px 10px;font-size:.8125rem}
  .journal-spread{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);margin:20px 24px 24px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
  .journal-spread .table-wrap{max-height:58vh;scrollbar-gutter:stable}
  .journal-spread .grade-table{width:max-content;min-width:100%}
  .journal-spread .grade-table th{height:48px;min-width:48px;width:48px;padding:6px;font-size:.6875rem}
  .journal-spread .grade-table td{height:40px;font-size:.8125rem}
  .journal-spread .grade-table .student-name{min-width:300px;width:300px;padding:8px 12px;white-space:nowrap;font-size:.8125rem;line-height:1.4}
  .journal-spread .grade-table th.student-name{font-size:.75rem}
  .journal-spread .student-name small{display:block;padding-left:24px;font-size:.6875rem;line-height:1.4}
  .journal-spread .row-number{width:24px;font-size:.6875rem}
  .journal-spread .grade-input{min-width:47px;width:47px;height:39px;min-height:39px;font-size:.9375rem}
  .journal-spread .grade-table .date-button{font-size:.75rem;min-height:32px;padding:4px 0}
  .journal-spread .grade-table th:nth-last-child(2),.journal-spread .grade-table th:nth-last-child(3){min-width:90px}
  .journal-spread .grade-table th:last-child{min-width:76px}
  .journal-spread .journal-footer{padding:12px;gap:10px}
  .journal-spread .legend{gap:8px 12px;font-size:.6875rem}
  .journal-spread .savebar{gap:8px;flex-wrap:wrap}
  .journal-spread .savebar .button{min-height:38px;padding:8px 12px}
  .journal-homework h2{font-size:.8125rem;padding:14px 12px;line-height:1.5}
  .journal-homework .table-wrap{max-height:58vh}
  .homework-table{font-size:.8125rem}
  .homework-table th:first-child{width:96px}
  .homework-table th:nth-child(2){width:36%}
  .homework-table th{padding:9px 10px;font-size:.6875rem}
  .homework-table td{padding:10px;line-height:1.55}
  .homework-table small{font-size:.6875rem}
  .lesson-actions{gap:4px;margin-bottom:5px}
}
@media screen and (max-width:1000px){
  .journal-spread{grid-template-columns:1fr;margin:16px}
  .journal-homework{border-left:0;border-top:1px solid var(--line)}
  .homework-table th:first-child{width:112px}
}
@media screen and (max-width:600px){
  .journal-spread{margin:12px 8px 16px;border-radius:12px}
  .journal-spread .grade-table .student-name{position:static;min-width:270px;width:270px;font-size:.75rem}
  .journal-spread .grade-table th.student-name{position:sticky;left:auto}
  .journal-spread .grade-input{min-width:43px;width:43px}
  .journal-spread .grade-table th{min-width:44px;width:44px}
  .journal-hours,.journal-meta,.journal-month{padding:12px 14px}
  .homework-table th:first-child{width:88px}
  .homework-table th,.homework-table td{padding:8px}
}

.topic-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}

.teaching-semester{border-top:1px solid var(--line);padding-top:12px}.teaching-semester [hidden]{display:none}

/* Full width marks and collapsible lesson details on every screen size. */
.journal-spread{grid-template-columns:minmax(0,1fr)}
.journal-homework{border-left:0;border-top:1px solid var(--line);min-width:0}
.journal-homework summary{padding:16px 18px;cursor:pointer;font-size:.875rem;font-weight:600;color:var(--ink)}
.journal-homework summary span{font-weight:400;font-size:.75rem}
.journal-homework summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.journal-homework .homework-table{table-layout:fixed}
.journal-homework .homework-table th:first-child{width:150px}
.journal-homework .homework-table td{overflow-wrap:anywhere}
.filters{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(max-width:600px){.journal-homework .homework-table th:first-child{width:92px}}

.journal-month{justify-content:space-between;flex-wrap:wrap}
.journal-period{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.period-check{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:.8125rem;font-weight:400}
.period-check input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--blue)}
.journal-zoom{display:flex;gap:8px;align-items:center;margin-left:auto}
.journal-zoom output{min-width:48px;text-align:center;font-size:.8125rem;font-variant-numeric:tabular-nums}
.journal-spread .grade-table th.month-average,.journal-spread .grade-table td.month-average{min-width:96px;width:96px;background:var(--pale);color:var(--ink);font-weight:600}
.journal-month input:disabled{opacity:.55;cursor:not-allowed}

/* Keep the physical roster viewport stable while rows are zoomed. */
.journal-spread .journal-marks>.table-wrap{max-height:var(--journal-table-height,72vh)}
.journal-spread.all-students .journal-marks>.table-wrap{max-height:none}
