:root{font-family:system-ui,sans-serif;color:#16313b;background:#f3f6f5;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}
.sidebar{background:#102b37;color:#dce9e7;padding:32px 20px 22px;display:flex;flex-direction:column;min-height:100vh}
.brand{display:flex;gap:12px;align-items:center;padding:0 9px}
.brand-mark{width:42px;height:42px;border-radius:13px;background:#d6f0d8;color:#164935;font:800 25px system-ui,sans-serif;display:grid;place-items:center}
.brand-mark span,.mobile-brand span{color:#54af79}
.brand strong{display:block;font:800 19px system-ui,sans-serif;color:#fff;letter-spacing:-.04em}
.brand small{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9cb5b9;margin-top:1px}
.demo-chip{display:flex;align-items:center;gap:8px;font-size:11px;color:#c2e9cf;border:1px solid #345b59;border-radius:8px;padding:9px 10px;margin:35px 8px 24px}
.pulse{width:7px;height:7px;background:#7ed69d;border-radius:50%;box-shadow:0 0 0 4px #7ed69d22}
.sidebar nav{display:grid;gap:5px}
.nav-item{border:0;background:none;color:#a9c1c2;text-align:left;padding:12px 14px;border-radius:10px;font-weight:600;display:flex;gap:13px;align-items:center;width:100%}
.nav-item:hover{background:#1b3c46;color:#fff}
.nav-item.active{background:#d6f0d8;color:#164935}
.nav-primary:not(.active){background:#245c48;color:#e7f7eb}
.nav-primary:not(.active):hover{background:#307354}
.nav-icon{font-size:18px;width:20px;text-align:center;line-height:1}
.sidebar-bottom{margin-top:auto}
.sidebar-note{font-size:12px;line-height:1.55;color:#9cb5b9;padding:12px 10px}
.reset-button{width:100%;border:1px solid #49636b;color:#d6e4e1;background:transparent;border-radius:9px;padding:11px;font-size:12px;font-weight:700}
.reset-button:hover{background:#23434d}
.main-content{min-width:0}
.topbar{height:82px;background:#fff;border-bottom:1px solid #e4eae8;display:flex;align-items:center;justify-content:flex-end;padding:0 5%;gap:14px}
.topbar-right{display:flex;align-items:center;gap:13px}
.alert-button{border:1px solid #d9e5e1;background:#f8fbfa;border-radius:9px;color:#337255;padding:8px 10px;font-weight:800;font-size:13px;white-space:nowrap}
.alert-button span{background:#e8b76c;color:#553715;border-radius:6px;padding:2px 5px;margin-left:4px;font-size:10px}
.topbar-label{font-size:12px;color:#758991;font-weight:700}
.topbar select{border:1px solid #d9e5e1;border-radius:9px;background:#f8fbfa;color:#173c3e;padding:10px 36px 10px 12px;font-weight:700;max-width:240px}
.avatar{display:grid;place-items:center;background:#e5efe9;color:#2b6950;border-radius:50%;width:36px;height:36px;font-weight:800}
.mobile-brand{display:none}
.content-wrap{max-width:1400px;margin:0 auto;padding:38px 5% 80px}
.period-bar{display:flex;align-items:center;gap:11px;margin:-7px 0 25px;padding:11px 14px;background:#fff;border:1px solid #e2eae5;border-radius:10px;color:#47645d}
.period-bar[hidden]{display:none}
.period-bar label{font-size:12px;font-weight:800}
.period-bar input{border:1px solid #d5e3dc;border-radius:7px;padding:7px 9px;color:#245b43;background:#fff;font-weight:700}
.period-bar span{font-size:11px;color:#849b91}
.page[hidden],.notice[hidden]{display:none}
.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#598a72;font-weight:800}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}
.page-head h1{font:800 clamp(27px,3vw,37px)/1.17 system-ui,sans-serif;letter-spacing:-.055em;margin:7px 0 8px;color:#102b37}
.page-head p{color:#6e8589;margin:0;font-size:14px;line-height:1.5}
.button{border:0;border-radius:9px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:800;white-space:nowrap}
.button.primary{background:#1d7651;color:#fff}
.button.primary:hover{background:#145b3d}
.button.secondary{background:#e7f2eb;color:#235d43}
.button.secondary:hover{background:#d8eadf}
.button.outline{border:1px solid #d7e4e0;background:#fff;color:#315c54}
.button.outline:hover{background:#f2f8f4}
.button.danger{background:#fff1eb;color:#a54c31}
.button.small{padding:7px 10px;font-size:11px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.metric{background:#fff;border:1px solid #e3ebe8;border-radius:15px;padding:21px;box-shadow:0 3px 20px #17332a05}
.metric .metric-label{font-size:12px;color:#71898d;font-weight:700}
.metric .metric-value{font:800 clamp(22px,2.3vw,30px) system-ui,sans-serif;letter-spacing:-.055em;margin-top:12px;color:#173439}
.metric .metric-foot{font-size:11px;color:#829696;margin-top:7px}
.metric.emphasis{background:#173c3e;border-color:#173c3e}
.metric.emphasis .metric-label,.metric.emphasis .metric-foot{color:#b8d5d0}
.metric.emphasis .metric-value{color:#e4f5e3}
.grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:20px}
.register-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.9fr);gap:20px;align-items:start}
.register-panel .panel-body{padding-top:5px}
.register-aside{display:grid;gap:16px}
.register-fact{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #edf2ef;font-size:12px}
.register-fact span{color:#7d9192}
.register-fact strong{text-align:right;color:#254e43}
.register-help{background:#e9f4eb;border:1px solid #d5e8da;border-radius:14px;padding:20px}
.register-help strong{font-size:13px;color:#245e43}
.register-help p{font-size:12px;line-height:1.55;color:#5d7b6b;margin:10px 0 0}
.register-gate{max-width:600px;padding:28px}
.register-gate h2{font-size:18px;margin:16px 0 8px}
.register-gate p{font-size:13px;line-height:1.6;color:#688282;margin:0 0 20px}
.panel{background:#fff;border:1px solid #e3ebe8;border-radius:15px;box-shadow:0 3px 20px #17332a05;min-width:0}
.panel-head{padding:22px 23px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.panel-head h2{font:800 17px system-ui,sans-serif;letter-spacing:-.035em;margin:0;color:#173439}
.panel-head small{color:#829696;font-size:11px}
.panel-body{padding:0 23px 23px}
.link-button{background:none;border:0;color:#25794e;font-size:12px;font-weight:800;padding:4px}
.table-scroll{overflow:auto}
.data-table{border-collapse:collapse;width:100%;font-size:12px;min-width:660px}
.data-table th{text-align:left;color:#8a9b9c;font-weight:700;font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:13px 16px;border-bottom:1px solid #e9efed;white-space:nowrap}
.data-table td{padding:15px 16px;border-bottom:1px solid #eff3f1;vertical-align:middle}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr:hover{background:#f9fbfa}
.strong{font-weight:800;color:#18363b}
.sub{color:#899d9e;font-size:11px;margin-top:3px}
.substitution-tag{display:inline-block;margin-top:6px;padding:4px 7px;background:#e9f1fb;color:#3d6f98;border-radius:6px;font-size:10px;font-weight:800}
.badge{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:7px;font-size:10px;font-weight:800;white-space:nowrap}
.badge.green{background:#e4f4e9;color:#22704e}
.badge.amber{background:#fff2d8;color:#986222}
.badge.blue{background:#e7f0fa;color:#3c6e94}
.badge.red{background:#fde9e3;color:#ad573f}
.badge.gray{background:#eef2f1;color:#647f80}
.badge:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.location-note{font-size:11px;color:#a85b37;font-weight:700}
.inline-actions{display:flex;flex-wrap:wrap;gap:6px}
.review-summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#e8f3ec;border:1px solid #d9e9de;border-radius:11px;padding:13px 17px;margin-bottom:18px;color:#50705e;font-size:12px}
.review-summary strong{color:#215c40;font-size:19px;margin-left:12px}
.review-summary strong:first-child{margin-left:0}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.filters-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.teacher-filter{display:flex;align-items:center;gap:8px;color:#5e7b70;font-size:12px;font-weight:700;margin-bottom:18px}
.teacher-filter select{border:1px solid #d9e5e1;border-radius:8px;padding:8px 10px;background:#fff;color:#254e42;max-width:220px}
.filter{border:1px solid #dfe8e4;background:#fff;border-radius:8px;color:#658079;padding:9px 12px;font-size:12px;font-weight:700}
.filter.active{background:#1d7651;color:#fff;border-color:#1d7651}
.queue-item{padding:15px 0;border-bottom:1px solid #edf1ee}
.queue-item:last-child{border:0}
.queue-item-top{display:flex;justify-content:space-between;gap:10px}
.queue-item strong{font-size:12px}
.queue-item p{color:#819494;font-size:11px;margin:6px 0 0;line-height:1.5}
.queue-item .badge{margin-top:10px}
.callout{background:#ecf6ef;border:1px solid #dbece0;border-radius:12px;padding:18px;margin-top:20px}
.callout strong{display:block;color:#1b5f43;font-size:13px}
.callout p{color:#53756b;font-size:12px;line-height:1.55;margin:7px 0 0}
.empty{padding:35px 20px;text-align:center;color:#7c9291;font-size:13px}
.notice{padding:13px 17px;margin-bottom:22px;border-radius:9px;background:#e9f6ea;color:#235d43;border:1px solid #cfe7d2;font-size:13px;font-weight:700}
.notice.error{background:#fff0eb;color:#a14831;border-color:#f4d8cc}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field{display:flex;flex-direction:column;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:800;color:#385658}
.field input,.field select,.field textarea{width:100%;border:1px solid #d9e5e1;background:#fff;border-radius:9px;padding:11px 12px;color:#18363b;outline:none}
.replacement-toggle{display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid #d9e5e1;border-radius:9px;background:#f9fbfa;cursor:pointer}
.replacement-toggle input{width:16px;height:16px;padding:0;accent-color:#1d7651}
.replacement-fields[hidden]{display:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#368b64;box-shadow:0 0 0 3px #368b6422}
.field textarea{min-height:86px;resize:vertical}
.helper{font-size:11px;line-height:1.45;color:#7d9192}
.location-info{display:grid;gap:6px;background:#f1f7f4;border:1px solid #dbeae1;border-radius:10px;padding:14px 16px;margin-top:17px}
.location-info strong{color:#276047;font-size:12px}
.location-info span{color:#668276;font-size:11px;line-height:1.5}
.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}
.calc-preview{background:#edf7ef;border:1px solid #dcece0;border-radius:12px;padding:17px;display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:17px}
.calc-preview small{display:block;color:#658774;font-size:11px;margin-bottom:5px}
.calc-preview strong{color:#1c6748;font:800 22px system-ui,sans-serif}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 20px}
.detail-item small{color:#819696;font-size:11px;display:block;margin-bottom:5px}
.detail-item strong{font-size:13px;color:#29464a}
.stage-track{display:flex;gap:8px;background:#f1f6f3;border-radius:10px;padding:12px;margin-bottom:22px}
.stage{display:flex;align-items:center;gap:7px;flex:1;color:#9aaa9e;font-size:11px;font-weight:800}
.stage span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#dde8e0;color:#6b8578;flex:none}
.stage.done{color:#2d7351}
.stage.done span{background:#2f8660;color:#fff}
.stage.current{color:#9d6a27}
.stage.current span{background:#f1dba7;color:#714b19}
.history{border-left:2px solid #dfeae3;margin:10px 0 0 7px;padding-left:17px}
.history-item{position:relative;margin:0 0 17px;font-size:12px;color:#607a79}
.history-item:before{content:'';position:absolute;left:-22px;top:3px;width:8px;height:8px;border-radius:50%;background:#5aa778;border:2px solid #fff}
.history-item strong{display:block;color:#2c4d4d;margin-bottom:3px}
.history-item small{color:#9aabaa}
.history-item small{display:block;margin-bottom:5px}
.review-note{margin-top:15px}
.report{overflow:hidden}
.report-header{padding:25px 27px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #e7eee9}
.report-header h2{font-size:21px;letter-spacing:-.04em;margin:7px 0 5px;color:#1a3b35}
.report-header p{font-size:12px;color:#728b7c;margin:0;text-transform:capitalize}
.report-seal{border:2px solid #95bfa4;border-radius:50%;width:62px;height:62px;display:grid;place-content:center;text-align:center;color:#427b55;font-weight:900;transform:rotate(-8deg)}
.report-seal small{font-size:8px}
.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:19px 27px;background:#f6faf7}
.report-stats small{display:block;font-size:10px;color:#7b9485;margin-bottom:5px}
.report-stats strong{font-size:17px;color:#23523d}
.report-footer{display:flex;justify-content:space-between;gap:15px;padding:20px 27px;border-top:1px solid #e7eee9;font-size:12px;color:#758e7e}
.report-footer strong{color:#23523d;white-space:nowrap}
.report-section{font-size:13px;color:#27503e;margin:0;padding:18px 27px 4px;border-top:1px solid #e7eee9}
.people-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.person-row{display:flex;align-items:center;gap:12px;padding:15px 22px;border-top:1px solid #eef2f0}
.person-avatar{width:36px;height:36px;border-radius:10px;background:#e5f1e9;color:#2b7650;display:grid;place-items:center;font-weight:800;flex:none}
.person-text{flex:1;min-width:0}
.person-text strong{display:block;font-size:12px}
.person-text small{display:block;color:#8a9e9d;font-size:11px;margin-top:3px}
.person-value{font-size:12px;font-weight:800;color:#2c5c48;white-space:nowrap}
.modalities-panel{margin-top:20px}
.modality-list{display:flex;flex-wrap:wrap;gap:9px;padding:0 23px 23px}
.modality-chip{padding:8px 11px;background:#edf5ef;color:#2a6547;border-radius:8px;font-size:11px;font-weight:800}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.step{background:#fff;border:1px solid #e3ebe8;border-radius:13px;padding:20px}
.step-num{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e3f2e5;color:#28714d;font-weight:800;font-size:12px}
.step h3{font:800 14px system-ui,sans-serif;margin:17px 0 8px}
.step p{font-size:12px;line-height:1.55;color:#70898a;margin:0}
.flow-note{margin-top:20px;padding:20px 22px;background:#173c3e;color:#e7f4eb;border-radius:13px}
.flow-note strong{font-size:13px}
.flow-note p{font-size:12px;color:#bad4d0;line-height:1.6;margin:7px 0 0}
dialog{border:0;padding:0;border-radius:16px;box-shadow:0 22px 70px #12302c38;max-width:min(96vw,620px);width:100%;color:#16313b}
dialog::backdrop{background:#0f2c32a8}
#modal-content{padding:26px}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}
.modal-head h2{font:800 21px system-ui,sans-serif;letter-spacing:-.04em;margin:2px 0}
.modal-head p{font-size:12px;color:#7d9192;margin:6px 0 0}
.close{border:0;background:#eff4f1;color:#57716d;border-radius:8px;width:32px;height:32px;font-size:20px}
.section-title{font:800 13px system-ui,sans-serif;color:#21464b;margin:24px 0 12px}
.divider{border:0;border-top:1px solid #e8eeeb;margin:23px 0}
.muted{font-size:11px;color:#8da09d}
.mobile-tabs{display:none}

@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-main,.people-grid{grid-template-columns:1fr}
.report-stats{grid-template-columns:repeat(2,1fr)}
.register-layout{grid-template-columns:1fr}
.register-aside{grid-template-columns:1fr 1fr}
.steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){.app-shell{display:block}
.sidebar{min-height:0;padding:0;display:block;background:#102b37}
.sidebar .brand,.sidebar .demo-chip{display:none}
.sidebar-bottom{display:block;padding:0 10px 8px}
.sidebar-note{display:none}
.reset-button{padding:7px}
.sidebar nav{display:flex;gap:0;overflow:auto;padding:7px 10px}
.nav-item{flex:none;width:auto;font-size:11px;padding:11px 12px;gap:6px}
.nav-icon{font-size:14px;width:auto}
.topbar{height:66px;justify-content:space-between;padding:0 18px}
.mobile-brand{display:block;font:800 21px system-ui,sans-serif;color:#18383d}
.topbar-label{display:none}
.topbar select{max-width:170px;font-size:11px}
.avatar{display:none}
.content-wrap{padding:25px 16px 65px}
.period-bar{margin:0 0 20px;flex-wrap:wrap}
.period-bar span{flex-basis:100%}
.page-head{align-items:flex-start}
.page-head h1{font-size:27px}
.page-head .button{font-size:11px}
.cards{gap:10px}
.metric{padding:15px}
.metric .metric-value{font-size:23px}
.panel-head{padding:18px}
.panel-body{padding:0 18px 18px}
.steps{grid-template-columns:1fr 1fr}
}
@media(max-width:470px){.page-head{flex-direction:column;align-items:stretch}
.page-head .button{align-self:flex-start}
.cards{grid-template-columns:1fr 1fr}
.metric .metric-value{font-size:19px}
.form-grid,.detail-grid,.steps{grid-template-columns:1fr}
.register-aside{grid-template-columns:1fr}
.report-footer{flex-direction:column}
.review-summary strong{margin-left:0}
.topbar select{max-width:150px}
.nav-item{font-size:10px}
}
@media print{
  :root{background:#fff;color:#111}
  .sidebar,.topbar,.period-bar,.page-head,.print-hide,.notice,.callout{display:none!important}
  .app-shell{display:block;min-height:0}
  .main-content,.content-wrap{width:100%;max-width:none;margin:0;padding:0}
  .page{display:none!important}
  #page-closing{display:block!important}
  .report{border:0;box-shadow:none}
  .report-header,.report-stats,.report-footer{break-inside:avoid}
  .data-table{min-width:0}
  .data-table tr{break-inside:avoid}
}


