:root{--wine:#681d3a;--gold:#af8a48;--ink:#26332f;--muted:#68736e;--line:#dce2dd;--paper:#f4f6f3;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:var(--wine)}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border-radius:8px;border:1px solid var(--line);font-weight:600;text-decoration:none;cursor:pointer;gap:8px;min-height:43px}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--wine);color:white;border-color:var(--wine)}.secondary{background:white;color:var(--wine)}.danger{background:#fff0ed;color:#9a3028}.link{background:none;border:0;padding:4px;min-height:30px}.wide{width:100%}.brand{display:flex;align-items:center;gap:20px;text-decoration:none;color:var(--wine)}.brand img{width:155px;max-height:70px;object-fit:contain}.brand-line{height:55px;border-left:1px solid #c8bbb0}.brand strong{font-size:30px;letter-spacing:1px}.brand strong b{font-weight:400}.brand small,.credit{display:block;font-size:11px;letter-spacing:.1px}.credit{color:#7a7165;margin-top:5px}.top{background:white;padding:20px 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.identity{text-align:right}.identity strong,.identity small{display:block}.identity small{color:var(--muted);margin:5px 0}.workspace{display:block;min-height:calc(100vh - 185px)}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--gold)}
.menu-ribbon{position:sticky;top:0;z-index:10;background:white;border-bottom:1px solid var(--line);box-shadow:0 3px 8px #26332f08}
.ribbon-inner{display:flex;align-items:center;gap:6px;max-width:1600px;margin:auto;padding:0 24px;min-width:0}
#main-navigation{position:relative;display:flex;flex:1;flex-wrap:nowrap;min-width:0;gap:2px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c2afa4 transparent}
#main-navigation a{display:flex;align-items:center;flex:none;white-space:nowrap;min-height:56px;padding:12px 14px;text-decoration:none;font-size:13px;color:#43564b;border-bottom:3px solid transparent}
#main-navigation a:hover{background:#f7f3f0;color:var(--wine)}
#main-navigation a.active{color:var(--wine);background:#f5ebef;font-weight:700;border-bottom-color:var(--wine)}
#main-navigation a:focus-visible{outline:2px solid var(--wine);outline-offset:-3px}
.ribbon-scroll{flex:none;width:32px;min-height:40px;padding:4px;font-size:23px;background:white;color:var(--wine)}.ribbon-scroll[hidden]{display:none}
main{padding:32px;min-width:0;max-width:1600px;width:100%;margin:0 auto}.student main{max-width:1100px}
.page-title{margin:0 0 26px}h1{font-size:30px;line-height:1.18;margin:10px 0 12px;letter-spacing:-.7px}h2{font-size:20px;margin:12px 0}h3{font-size:16px}p{line-height:1.6}small,.muted{color:var(--muted)}.page-title p{margin:0;color:var(--muted)}.tiles,.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tile{display:block;background:white;border:1px solid var(--line);border-radius:12px;padding:26px;text-decoration:none;color:var(--ink);position:relative}.tile:hover{border-color:var(--gold);box-shadow:0 6px 22px #223c2310}.tile p{color:var(--muted);font-size:14px}.student-identity{padding:20px;background:#e7eee8;border-left:4px solid #577362;border-radius:7px;margin-bottom:22px}.student-identity>*{display:block;margin:4px 0}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.metrics>div{padding:20px;background:white;border:1px solid var(--line);border-radius:10px}.metrics span{color:var(--muted);font-size:13px}.metrics strong{display:block;font-size:34px;color:var(--wine);margin-top:8px}.panel,.request-card,.subject-card,.task{background:white;border:1px solid var(--line);border-radius:10px;padding:22px;margin:18px 0}.cards{display:grid;gap:14px}.cards>article{margin:0}.cards{margin:18px 0}details summary{font-weight:600;cursor:pointer;padding:6px 0}details[open] summary{margin-bottom:16px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px;margin:18px 0;background:white}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;background:#eaf0ea;font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding:14px}td{padding:14px;border-top:1px solid var(--line);line-height:1.5}td small{display:block;margin-top:5px}tr:hover td{background:#fafbf9}label{display:block;font-size:13px;font-weight:600;margin:12px 0}input,select,textarea{display:block;width:100%;border:1px solid #bdc8c0;border-radius:7px;padding:12px;background:white;color:var(--ink);margin-top:7px;min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #af8a4860;border-color:var(--gold)}textarea{resize:vertical;min-height:90px}.check{display:flex;align-items:center;gap:10px;font-weight:400}.check input,input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--wine)}.toolbar,.inline-form,.actions,.export{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0}.toolbar label,.inline-form label{flex:1;min-width:170px}.toolbar{align-items:center}.toolbar label{max-width:500px}.card-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.card-heading h3{margin-top:6px}.tag{display:inline-block;padding:5px 9px;font-size:11px;font-weight:600;border-radius:20px;background:#eef0ed;color:#536358;white-space:normal}.tag.authorized,.notice.success{color:#246549;background:#e8f4eb}.tag.pending,.notice.warning{color:#76551c;background:#fff4da}.tag.rejected,.notice.error{color:#9b352b;background:#fff0ec}.notice{padding:14px 16px;border-radius:8px;background:#edf1f5;font-size:13px;margin:16px 0;line-height:1.6}.request-item{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding:14px 0}.empty{text-align:center;padding:36px;color:var(--muted)}.empty-icon{font-size:30px;color:#7f9d88}.hero-count{display:flex;gap:24px;align-items:center;background:white;padding:22px;border-radius:12px;border:1px solid var(--line)}.hero-count>strong{font-size:58px;color:var(--wine)}.sticky-action{position:sticky;bottom:0;background:#f4f6f3f5;padding:15px 0;display:flex;gap:12px;flex-wrap:wrap}.schedule{display:flex;gap:25px;flex-wrap:wrap}.schedule p{font-size:13px}.grade{width:85px}.pre{white-space:pre-wrap}.teacher-picker{position:relative}.teacher-picker label{padding-right:35px}.picker-open{position:absolute;right:0;top:24px;padding:10px}.teacher-options{position:absolute;z-index:3;top:100%;left:0;right:0;max-height:210px;overflow:auto;background:white;border:1px solid var(--line);box-shadow:0 8px 20px #0002}.teacher-options button{display:block;width:100%;text-align:left;border-radius:0;background:white;border:0;font-size:13px}.login-shell{max-width:1240px;margin:auto;padding:35px}.login-layout{display:grid;grid-template-columns:1fr 440px;gap:85px;align-items:center;min-height:78vh}.welcome h1{font-size:48px;line-height:1.16;margin:22px 0}.welcome em{font-style:normal;color:var(--wine)}.welcome p{max-width:390px;color:var(--muted)}.welcome-foot{margin-top:65px;font-size:13px;line-height:1.8}.welcome-foot strong{color:var(--gold);font-size:11px}.login-card{background:white;border:1px solid var(--line);padding:32px;border-radius:16px;box-shadow:0 12px 40px #233a2110}.login-card h2{font-size:27px}.login-links{display:grid;text-align:center;gap:18px;font-size:13px;margin-top:22px}.admin-link{color:var(--muted);font-size:11px}footer{padding:20px;text-align:center;color:var(--muted);font-size:11px}dialog{border:0;border-radius:15px;padding:30px;max-width:520px;width:calc(100% - 32px);box-shadow:0 15px 70px #0003}dialog::backdrop{background:#16281f88}dialog form{text-align:right;margin-top:22px}dialog small{line-height:1.7}#toast{display:none;position:fixed;right:20px;bottom:20px;z-index:30;max-width:480px;background:#234b37;color:white;padding:18px 22px;border-radius:9px;box-shadow:0 6px 25px #0003}#toast.show{display:block}#toast.error{background:#922d39}.loading{padding:40px;text-align:center}
@media(max-width:1000px){.brand img{width:110px}main{padding:22px}.login-layout{gap:35px;grid-template-columns:1fr 400px}.welcome h1{font-size:38px}}
@media(max-width:700px){.top{padding:15px;gap:12px;align-items:start}.brand{gap:10px}.brand img{display:none}.brand-line{display:none}.brand strong{font-size:25px}.brand small{font-size:9px}.credit{font-size:10px}.identity{max-width:140px;font-size:11px}.identity .link{font-size:11px}.ribbon-inner{padding:0 8px;gap:3px}#main-navigation a{font-size:12px;padding:10px 12px;min-height:48px}.ribbon-scroll{width:27px}main{padding:22px 15px}h1{font-size:27px}.tiles{gap:12px}.tile{padding:18px}.tile h2{font-size:17px}.tile p{font-size:12px}.metrics{gap:8px}.metrics>div{padding:12px}.metrics span{font-size:10px}.metrics strong{font-size:26px}.panel,.request-card,.subject-card,.task{padding:16px}.grid.two{grid-template-columns:1fr}.student .table-wrap{border:0;background:none;overflow:visible}.student table,.student tbody,.student tr,.student td{display:block}.student thead{display:none}.student tr{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px;padding:12px}.student td{border:0;padding:6px;display:flex;justify-content:space-between;gap:20px;text-align:right}.student td:before{content:attr(data-label);text-align:left;color:var(--muted);font-size:11px;min-width:85px}.student td:first-child{display:block;text-align:left;font-weight:700;font-size:15px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:4px}.student td:first-child:before{display:none}.student td:first-child small{font-weight:400;font-size:12px}.login-shell{padding:22px 18px}.login-layout{display:block;min-height:0}.welcome{margin:30px 0}.welcome h1{font-size:30px;margin:12px 0}.welcome p{font-size:14px}.welcome-foot{display:none}.login-card{padding:24px}.login-shell .brand img{display:block;width:105px}.login-shell .brand small{font-size:8px}.login-shell .brand-line{display:block}.login-shell .brand{gap:12px}#toast{right:12px;left:12px;bottom:12px;max-width:none}.hero-count{gap:16px}.hero-count>strong{font-size:44px}.hero-count h2{font-size:17px}}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:10px 0}.filters>label{flex:1;min-width:200px}.filters>label.check{flex:none;margin-bottom:22px}
.metrics.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metrics strong.small{font-size:20px;margin-top:14px}
.positive{color:#246549}.report{border-color:var(--gold)}code{background:#f1ede6;padding:1px 5px;border-radius:4px;font-size:12px}
.subject-group{border:1px solid var(--line);border-radius:8px;padding:6px 14px 10px;margin:10px 0}.subject-group legend{padding:0 6px}.subject-group legend label{margin:4px 0}.subject-group>label{margin:8px 0}
td input,td select{margin-top:0;min-height:38px;padding:8px}td form{margin:0}
input[type=file]{padding:9px;background:#fafbf9}
#busy{position:fixed;inset:0;z-index:50;background:#16281fa8;display:flex;align-items:center;justify-content:center;padding:16px}#busy[hidden]{display:none}#busy>div{background:white;border-radius:14px;padding:28px 30px;max-width:420px;text-align:center;box-shadow:0 15px 60px #0004}
.spinner{display:inline-block;width:38px;height:38px;border:4px solid #e9dfe3;border-top-color:var(--wine);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){ .metrics.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
.low{color:#9b352b}
td small.att{display:block}.student td strong+small{display:inline;margin:0 0 0 8px}
.main-import{border-left:4px solid var(--wine)}.metrics small{display:block;margin-top:6px;font-size:11px}
.panel.inner{margin:10px 0;background:#fafbf9}details.edit{display:inline-block}details.edit[open]{display:block;width:100%;background:#fafbf9;border:1px solid var(--line);border-radius:8px;padding:10px 12px}details.edit summary{list-style:none;min-height:43px}details.edit summary::-webkit-details-marker{display:none}details.edit[open] summary{margin-bottom:6px}
td .actions{margin:0;gap:6px}td .actions button,td .actions summary.button{min-height:34px;padding:6px 10px;font-size:12px}#teachers-table td:first-child{min-width:200px;font-weight:600}
.button.big,button.big{min-height:54px;font-size:17px;padding:14px 26px;width:100%;max-width:420px}.section-title{font-size:18px;margin:28px 0 10px}.owed{display:grid;gap:10px;margin-bottom:8px}.owed-item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 14px;background:white;border:1px solid var(--line);border-left:4px solid #c0564b;border-radius:9px;padding:14px 16px}.owed-item small{display:block;margin-top:3px}.owed-item>small{flex-basis:100%}.next-step{font-weight:600;margin:10px 0 4px}
.teacher-line{display:block;margin-top:4px;font-weight:400;color:var(--muted)}
.suggest{display:block;margin-top:6px;color:#246549}
.wizard-steps{list-style:none;display:flex;gap:6px;padding:0;margin:18px 0 22px}.wizard-steps li{flex:1;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:10px 8px;border-bottom:4px solid var(--line)}.wizard-steps li span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e4e8e4;font-weight:700;flex:none}.wizard-steps li.current{color:var(--wine);font-weight:700;border-color:var(--wine)}.wizard-steps li.current span{background:var(--wine);color:white}.wizard-steps li.done{color:#246549;border-color:#7fae92}.wizard-steps li.done span{background:#e8f4eb;color:#246549}
.wizard-title{font-size:21px;margin:6px 0 4px}.choice-list{display:grid;gap:10px;margin:16px 0}.choice{display:flex;gap:14px;align-items:center;background:white;border:2px solid var(--line);border-radius:12px;padding:16px;margin:0;cursor:pointer;font-weight:400}.choice input{width:24px!important;height:24px!important;min-height:24px!important;flex:none}.choice strong{display:block;font-size:15px}.choice small{display:block;margin-top:3px}.choice.on{border-color:var(--wine);background:#fbf5f7}.choice.off{opacity:.55;cursor:not-allowed}
.wizard-nav{justify-content:space-between}.wizard-nav>*{flex:1;max-width:320px}.review small{display:block}
@media(max-width:700px){.wizard-steps li{flex-direction:column;text-align:center;font-size:11px;gap:4px;padding:6px 2px}}
.proc-find{position:relative}.proc-results{border:1px solid var(--line);border-radius:8px;background:white;box-shadow:0 8px 20px #0002;max-height:300px;overflow:auto;margin-top:-6px}.proc-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:white;padding:10px 12px;min-height:0}.proc-results button small{display:block;font-weight:400}.proc-results p{padding:10px;margin:0;font-size:13px}#proc-table details.edit[open]{min-width:320px}
.restart-check{margin-top:14px;font-weight:700;color:#9b352b}.restart-warning{margin-top:6px}.panel.narrow{max-width:760px}
.student-cell dl{display:grid;grid-template-columns:max-content 1fr;gap:3px 10px;margin:8px 0 0;font-size:12px}.student-cell dt{color:var(--muted)}.student-cell dd{margin:0}.student-cell .tag{margin-left:6px}
.adm-sec{border:1px solid var(--line);border-radius:10px;padding:6px 16px 10px;margin:14px 0;background:white}.adm-sec legend{font-weight:700;color:var(--wine);padding:0 6px}.req{color:#c0392b}#adm-table details.edit[open]{min-width:560px}
.field-form{min-width:520px}.span2{grid-column:1/-1}
.upper{text-transform:uppercase}

.nowrap{white-space:nowrap}
.partials-table th:last-child,.partials-table td:last-child{border-left:3px solid var(--line);background:#f6f8f5;min-width:150px}
.partials-table th:last-child{background:#e2ebe3}
@media(max-width:700px){.student .partials-table td:last-child{border-left:0;border-top:2px dashed var(--line);margin-top:6px;padding-top:10px;font-weight:600;align-items:center}.student .partials-table td:last-child:empty{display:none}}

.export-row{display:flex;flex-wrap:wrap;gap:0 18px;align-items:center}
.export-row>.export{margin:0}
a.locked{opacity:.45;cursor:not-allowed}
.info-dlg{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px}
.info-dlg .dlg-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.info-dlg h2{margin:0}.info-dlg .dlg-head p{margin:4px 0 10px;color:var(--muted)}
.info-view{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:16px 0}
.info-view section{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.info-view h3{margin:0 0 8px;font-size:15px}
.info-view dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;font-size:14px}
.info-view dt{color:var(--muted)}.info-view dd{margin:0;font-weight:600;word-break:break-word}

.seg-tabs{display:flex;gap:8px;margin:0 0 16px}
.cap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px;margin-top:14px}
.cap-group{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.cap-group header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.cap-group h3{margin:0;font-size:20px}.cap-group header p{margin:2px 0 0;color:var(--muted);font-size:13px}
.cap-group.ready{border:2px solid #2f8f4e;background:#f1faf3}
.cap-bar-top{display:flex;justify-content:space-between;font-size:14px}
.cap-prog{-webkit-appearance:none;appearance:none;display:block;width:100%;height:10px;border:0;border-radius:99px;background:#eceae6;overflow:hidden;margin:4px 0 2px;color:#d39b2a}
.cap-prog::-webkit-progress-bar{background:#eceae6;border-radius:99px}
.cap-prog::-webkit-progress-value{background:#d39b2a;border-radius:99px}
.cap-prog::-moz-progress-bar{background:#d39b2a;border-radius:99px}
.cap-prog.full::-webkit-progress-value{background:#2f8f4e}.cap-prog.full::-moz-progress-bar{background:#2f8f4e}
.cap-bar small{color:var(--muted)}
.cap-group details summary{font-size:14px}
.cap-group td small{display:block}
.cap-dl .export{margin:0}.cap-dl .button,.cap-dl a{font-size:13px;padding:6px 12px;min-height:34px}

.msg-text{width:100%;font-family:inherit;font-size:14px;line-height:1.5;margin:12px 0}

.ribbon-inner.sub{border-top:1px solid var(--line)}
.ribbon-inner.sub:empty{display:none}
.sub-nav{display:flex;gap:4px;overflow-x:auto;padding:6px 0;scrollbar-width:thin}
.sub-nav a{white-space:nowrap;padding:7px 14px;border-radius:999px;color:var(--ink);text-decoration:none;font-size:14px}
.sub-nav a:hover{background:#f3efe9}
.sub-nav a.active{background:var(--wine,#6b1d3a);color:#fff;font-weight:600}
.identity .account-link{display:block;margin-left:auto}
.identity .account-link.active{text-decoration:underline}
.lbl-short{display:none}
@media(max-width:700px){.lbl-long{display:none}.lbl-short{display:inline}}

.name-link{background:none;border:0;padding:0;min-height:0;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:#0003;text-underline-offset:3px}
.name-link:hover{color:var(--wine,#6b1d3a);text-decoration-color:currentColor;filter:none;transform:none}
.exp-dlg{width:min(1000px,calc(100vw - 32px))}
.exp-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.exp-sec{border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:8px 0}
.exp-sec[open]{padding-bottom:14px}
.exp-sec summary{cursor:pointer}
.exp-sec td small{display:block}
dialog.info-dlg{max-width:none;width:min(860px,calc(100vw - 32px))}
dialog.info-dlg.exp-dlg{width:min(1000px,calc(100vw - 32px))}
.exp-none{margin:8px 0 0}
.privacy-page{max-width:820px;margin:0 auto;padding:20px 16px 48px}.privacy-page>header{margin-bottom:20px}.privacy-page h1{margin-top:8px}.privacy-page h2{font-size:18px;margin:22px 0 8px}.privacy-page p{margin:0 0 8px}.privacy-item{padding-left:12px}footer a{color:inherit;text-decoration:underline}
.srv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:16px}
.srv-dl{display:grid;grid-template-columns:150px 1fr;gap:10px 14px;margin:0}
.srv-dl dt{color:var(--muted)}.srv-dl dd{margin:0;min-width:0;overflow-wrap:anywhere}.srv-dl dd small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:600px){.srv-grid{grid-template-columns:1fr}.srv-dl{grid-template-columns:1fr}.srv-dl dt{font-weight:600}}
