:root{--ink:#172e3b;--muted:#6c7c86;--teal:#176b68;--deep:#153d45;--line:#e2e8eb;--bg:#f5f7f8;--red:#b44338;--shadow:0 3px 16px #22354405}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid #79b8b1;outline-offset:3px}[hidden]{display:none!important}.topbar{height:83px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5.7%;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:750;letter-spacing:-.8px}.brand-mark{width:35px;height:37px;border-radius:9px;background:var(--deep);color:white;display:flex;align-items:center;justify-content:center;font-size:26px;position:relative;font-weight:550}.brand-mark span{width:7px;height:7px;background:#95ccbc;position:absolute;top:8px;right:7px;border-radius:2px}.brand-sub{font-weight:450;color:var(--muted);font-size:14px;letter-spacing:0;margin-left:8px}nav{display:flex;align-items:center;gap:26px}.nav-link{border:0;background:transparent;color:var(--muted);padding:8px 0;font-size:13px}.nav-link:hover{color:var(--teal)}.local-badge{font-size:11px;display:flex;align-items:center;gap:7px;padding:7px 11px;background:#f1f7f4;border:1px solid #dceae2;border-radius:30px;color:#47705c}.local-badge i,.status-dot{width:6px;height:6px;border-radius:50%;background:#4b9273;display:inline-block}main{max-width:1460px;margin:auto;padding:48px 5.7% 24px}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:34px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.75px;color:var(--teal);display:flex;align-items:center;gap:9px}.eyebrow>span{width:16px;height:1px;background:var(--teal)}h1{font-size:clamp(31px,3.1vw,45px);font-weight:620;letter-spacing:-1.6px;line-height:1.18;margin:14px 0 13px}.hero p{color:var(--muted);font-size:14px;line-height:1.85;margin:0}.mobile-break{display:none}.hero-note{display:flex;align-items:center;gap:18px;padding:19px 0 19px 35px;border-left:1px solid #dbe4e6}.hero-note strong{display:block;font-weight:600;font-size:14px}.hero-note span:not(.mini-calendar){display:block;color:var(--muted);font-size:11px;margin-top:5px}.mini-calendar{border:1px solid #adc7c6;border-top:5px solid #85aca5;border-radius:5px;display:grid;grid-template-columns:repeat(3,7px);gap:4px;padding:10px 7px 8px;background:#edf4f0}.mini-calendar i{display:block;width:7px;height:7px;background:#b9d4ca;border-radius:2px}.mini-calendar i:nth-child(3n){background:#5c9486}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fff;border-radius:13px;margin-bottom:25px;padding:21px 0;box-shadow:var(--shadow)}.stats>div{padding:0 27px;border-right:1px solid var(--line);display:flex;flex-direction:column}.stats>div:last-child{border:0}.stat-label{font-size:9px;letter-spacing:1.3px;font-weight:650;color:var(--muted)}.stats strong{font-size:30px;font-weight:550;line-height:1.5;letter-spacing:-1px}.stat-note{font-size:11px;color:#87939b}.workspace{display:grid;grid-template-columns:minmax(0,1.37fr) minmax(330px,1fr);gap:24px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.card-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;border-bottom:1px solid var(--line);gap:12px}.card-heading>div:first-child{display:flex;align-items:center;gap:11px}h2{font-size:16px;font-weight:630;letter-spacing:-.3px;margin:0}.step{font-size:10px;font-weight:650;width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;color:var(--muted)}.pill{font-size:10px;white-space:nowrap;padding:4px 8px;border-radius:5px;background:#f3f5f6;color:var(--muted);font-weight:500}.pill.good{background:#e9f4ef;color:#33715c}.pill.bad{background:#fff0e9;color:#a26430}.subtle{font-size:10px;color:#88969e}.dropzone{margin:25px 24px 19px;border:1.5px dashed #b9cccc;border-radius:9px;text-align:center;background:linear-gradient(130deg,#f8fbfa,#f6f9fb);padding:36px 15px 30px;cursor:pointer;transition:.18s}.dropzone:hover,.dropzone.dragover{border-color:#478a80;background:#edf6f2}.upload-icon{width:49px;height:53px;margin:0 auto 16px;padding:10px;background:white;box-shadow:0 3px 10px #344c4311;border:1px solid #dae6e1;border-radius:9px;color:#478278;transform:rotate(-5deg)}.upload-icon svg{width:100%;height:100%}h3{font-size:16px;font-weight:600;letter-spacing:-.25px;margin:0}.dropzone p{font-size:12px;color:var(--muted);margin:7px 0 15px}.text-link{color:var(--teal);font-weight:550}.file-spec{font-size:10px;color:#94a1a9}.input-actions{padding:0 24px;display:flex;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:7px;padding:10px 15px;line-height:1.4;font-size:12px;font-weight:600;transition:background .15s;white-space:nowrap}.button.secondary{background:white;border-color:#dce4e8;color:#425966}.button.secondary:hover{background:#f6f9f9}.button.primary{background:var(--deep);color:white}.button.primary:hover{background:#215560}.button.small{font-size:11px;padding:8px 11px}.input-actions .button{flex:1}.template-note{font-size:11px;color:#87949c;line-height:1.75;padding:14px 24px 24px}.privacy-note{margin:0 24px;padding:17px 0 21px;border-top:1px solid #edf0f2;color:#7b8d8f;display:flex;align-items:center;gap:8px;font-size:10px}.privacy-note svg{width:17px;height:17px;flex:none}.rules-card form{padding:20px 24px 17px}label{display:block;font-size:11px;font-weight:550;color:#526572;margin-bottom:7px}input:not([type=checkbox]),select{width:100%;height:37px;border:1px solid #dce4e8;border-radius:6px;padding:7px 10px;background:#fff;color:#2b4553;font-size:12px;min-width:0}select{padding-right:22px}input::placeholder{color:#9ca8b0}#scheduleName{margin-bottom:18px}#balanceMode{margin-bottom:9px}.inline-field{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.inline-field label{margin:0;font-size:11px}.inline-field label span{display:block;font-size:10px;font-weight:400;color:#97a1a8;margin-top:2px}.number-suffix{display:flex;position:relative;width:81px;flex:none}.number-suffix input{padding-right:23px}.number-suffix>span{position:absolute;right:12px;top:9px;font-size:12px;color:var(--muted)}.rule-divider{border-top:1px solid #edf0f2;margin:16px 0}.toggle-row{display:flex;align-items:center;position:relative;margin:17px 0;gap:14px;color:#405863;cursor:pointer}.toggle-row>span:first-child{flex:1}.toggle-row small{display:block;color:#91a0a7;font-size:10px;font-weight:400;margin-top:3px}.toggle-row input{position:absolute;width:38px;height:23px;opacity:0;right:0;margin:0;cursor:pointer}.switch{flex:none;width:33px;height:19px;border-radius:15px;background:#d7e0e4;position:relative;transition:.2s}.switch:after{content:"";position:absolute;width:13px;height:13px;background:white;top:3px;left:3px;border-radius:50%;box-shadow:0 1px 2px #0002;transition:.2s}.toggle-row input:checked+.switch{background:var(--teal)}.toggle-row input:checked+.switch:after{left:17px}.toggle-row input:focus-visible+.switch{outline:3px solid #79b8b1;outline-offset:3px}.form-row{display:flex;gap:13px;margin-top:20px}.form-row>div{flex:1;min-width:0}.solve-budget{margin:18px 0}.solve-budget select{width:140px}.generate{width:100%;justify-content:space-between;padding:12px 16px;margin-top:2px}.rules-footnote{font-size:10px;color:#8d9ba3;text-align:center;margin:11px 0 0;line-height:1.7}.loaded-file{display:flex;align-items:center;gap:12px;margin:24px;padding:15px;border:1px solid #d9e9e1;border-radius:8px;background:#f6faf8}.file-symbol{border:1px solid #cde2d7;border-radius:6px;width:35px;height:40px;display:grid;place-items:center;color:#247455;background:#fff;font-weight:650}.file-name{flex:1;min-width:0}.file-name strong{display:block;word-break:break-word;font-size:12px}.file-name>span{font-size:10px;color:var(--muted)}.messages{padding:0 24px}.message{border-radius:6px;padding:10px 12px;margin:8px 0;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.message strong{display:block;font-weight:650}.message.warning{background:#fff7e8;color:#976b24;border:1px solid #f4e9d1}.message.error{background:#fff0ed;color:#ae4a3f;border:1px solid #f2d6d1}.data-preview{padding:9px 24px 21px;font-size:11px}.data-preview summary{font-weight:600;cursor:pointer;color:#4f6671;padding:8px 0}.data-preview summary span{font-weight:400;color:#93a0a7;padding-left:6px}.data-preview>a{font-size:10px;display:inline-block;margin-top:13px}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:10px;letter-spacing:.2px;color:#7a8b94;background:#f7f9fa;font-weight:550}th,td{padding:12px 14px;border-bottom:1px solid #edf1f3;vertical-align:middle}td{color:#445b67}tbody tr:hover{background:#fbfcfc}.table-scroll{overflow:auto;max-height:570px}.table-scroll thead th{position:sticky;top:0;z-index:2}.data-preview table{font-size:10px}.data-preview th,.data-preview td{padding:8px}.data-preview .table-scroll{max-height:240px}.results-card{margin-top:24px}.empty-result{text-align:center;padding:43px 20px 35px}.empty-result h3{font-size:17px;margin-top:21px}.empty-result p{font-size:12px;color:#8697a0;line-height:1.8;margin:9px 0 22px}.quiet-label{font-size:9px;letter-spacing:1.5px;color:#a3afb4}.empty-grid{display:flex;width:144px;height:47px;margin:auto;border:1px solid #e1e9e9;border-radius:5px;overflow:hidden;background:repeating-linear-gradient(0deg,transparent,transparent 14px,#eaf0ef 14px,#eaf0ef 15px)}.empty-grid span{flex:1;border-right:1px solid #e7efed;position:relative}.empty-grid span:nth-child(2):after,.empty-grid span:nth-child(4):after{content:"";display:block;position:absolute;top:18px;left:4px;right:4px;height:19px;background:#cce1d8;border-radius:3px}.empty-grid span:nth-child(4):after{top:4px;background:#d5e4ea}.result-downloads{display:flex;gap:8px}.progress-panel{padding:35px 24px;display:flex;align-items:center;gap:20px}.progress-panel h3{font-size:16px}.progress-panel p{color:var(--muted);font-size:12px;margin:4px 0}.progress-panel>div:nth-child(2){flex:1}.progress-panel span{font-size:10px;color:#8c9ca4}.spinner{width:27px;height:27px;border:2px solid #dcece5;border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}.failure-panel{padding:25px;background:#fffbf7}.failure-panel h3{color:#9b4f31}.failure-panel p{font-size:12px;color:#876f5e;line-height:1.75}.result-summary{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #eff2f3;gap:12px}.result-summary>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.result-summary strong{font-size:13px;font-weight:600}.result-summary>span{font-size:11px;color:var(--muted)}.results-toolbar{padding:19px 24px 10px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.segmented{background:#f0f4f5;border:1px solid #e7edee;padding:3px;display:flex;border-radius:7px;gap:2px}.segmented button{border:0;border-radius:5px;background:transparent;padding:7px 11px;color:#82919a;font-size:11px}.segmented button.active{background:white;box-shadow:0 1px 5px #1e3d3b0c;color:#245955;font-weight:600}.filters{display:flex;gap:9px;flex-wrap:wrap}.filters select,.filters input{height:32px;font-size:10px;width:145px}.filters input{width:171px}.legend{display:flex;gap:18px;align-items:center;margin:6px 24px 17px;font-size:10px;color:#85969e}.legend>span{display:flex;align-items:center;gap:6px}.legend i{width:7px;height:7px;border-radius:2px}.legend .ug{background:#7db8a5}.legend .grad{background:#aa98cd}.legend .lab{background:#8aafcf}.legend-note{margin-left:auto;font-size:9px}.calendar-scroll{overflow:auto;max-height:590px;border-top:1px solid #e4eceb}.calendar{display:grid;grid-template-columns:70px repeat(5,minmax(145px,1fr));min-width:900px}.calendar .day-header,.calendar .time-header{position:sticky;top:0;background:#f7faf9;z-index:5;border-bottom:1px solid #e1e9e6;padding:12px;text-align:center;font-size:10px;letter-spacing:.5px;font-weight:550;color:#5e7b78}.calendar .day-header span{color:#99aaa7;padding-left:6px;font-size:9px}.day-column,.time-column{position:relative;border-right:1px solid #e8efec;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 25px,#f1f5f3 25px,#f1f5f3 26px,transparent 26px,transparent 51px,#e8efec 51px,#e8efec 52px)}.time-column{background:#fbfcfc}.time-label{position:absolute;right:10px;color:#98a7ad;font-size:9px;transform:translateY(-6px)}.event{position:absolute;border-radius:5px;padding:5px 6px;border:1px solid #cce1d8;border-left:3px solid #65a88f;background:#edf7f1;overflow:hidden;line-height:1.35;min-height:2px;color:#356455}.event.GRAD{background:#f1edf7;border-color:#e0d8ed;border-left-color:#a795c4;color:#74608f}.event.LAB{background:#eef4fa;border-color:#d6e4f2;border-left-color:#8baccb;color:#4b7397}.event strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event .event-time{font-size:9px;display:block;white-space:nowrap;margin-top:2px}.event .event-staff{font-size:9px;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis;margin-top:3px;opacity:.8}.event:hover{z-index:4;filter:brightness(.975)}.results-caption{padding:16px 24px;border-top:1px solid var(--line);font-size:10px;color:#8a9ba3;line-height:1.75}.kind-pill{display:inline-block;padding:3px 6px;border-radius:4px;font-size:9px;background:#edf5f0;color:#4e7f6c}.kind-pill.GRAD{background:#f2edf8;color:#85709e}.kind-pill.LAB{background:#edf3fa;color:#5d84a5}#auditView{padding:10px 24px 20px}.audit-check{padding:13px 0;border-bottom:1px solid #eef2f3;display:flex;gap:20px;align-items:center}.audit-check>span{font-size:10px;width:94px;flex:none;color:#308267;font-weight:650}.audit-check>span.skipped{color:#a48745}.audit-check strong{font-size:12px;font-weight:550;display:block}.audit-check small{color:#91a0a7;font-size:10px}footer{display:flex;justify-content:space-between;gap:15px;padding:27px 0 3px;font-size:10px;color:#99a6ad}footer>a,footer a{color:#7e9399}.version{margin-left:7px;padding:2px 4px;border:1px solid #dde5e7;border-radius:4px;font-size:8px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#193e46;color:white;border-radius:9px;padding:14px 22px;z-index:100;max-width:min(90vw,650px);box-shadow:0 8px 30px #0e353d2b;font-size:12px}dialog{border:1px solid #dce7e8;border-radius:15px;padding:29px;width:min(780px,94vw);max-height:88vh;color:var(--ink);box-shadow:0 20px 120px #173d482e}dialog::backdrop{background:#17334077;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-heading h2{font-size:23px;margin:9px 0}.dialog-heading .eyebrow{font-size:9px}dialog>p{font-size:12px;line-height:1.8;color:var(--muted);margin:16px 0 24px}.icon-button{border:1px solid var(--line);width:30px;height:30px;background:white;border-radius:6px;color:var(--muted);flex:none}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px 25px}.guide-grid strong{font-size:13px}.guide-grid p{font-size:11px;line-height:1.75;color:var(--muted);margin:6px 0}.callout{background:#fff6e9;border:1px solid #f2e4ca;padding:13px;border-radius:7px;margin:20px 0;color:#94692e;font-size:11px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:23px}.history-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding:16px 0}.history-row>div{flex:1;min-width:0}.history-row strong{font-size:12px;overflow-wrap:anywhere}.history-row small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.loading{opacity:.55;pointer-events:none}.no-matches{padding:45px 24px;text-align:center;color:var(--muted);font-size:12px}@media(min-width:1500px){main{padding-left:55px;padding-right:55px}}@media(max-width:1000px){.hero-note{display:none}.workspace{grid-template-columns:1.05fr 1fr}.card-heading{padding:18px}.input-actions{flex-direction:column}.stats>div{padding:0 20px}.brand-sub{font-size:12px}.result-summary{align-items:flex-start}.legend-note{display:none}}@media(max-width:760px){.topbar{height:70px;padding:0 5%}.brand-sub{display:none}nav{gap:15px}.nav-link{font-size:11px}.local-badge{display:none}main{padding:30px 5% 20px}.hero{padding-bottom:26px}.hero p{font-size:12px}h1{font-size:35px;letter-spacing:-1.3px}.stats{grid-template-columns:repeat(2,1fr);padding:0;margin-bottom:18px}.stats>div{padding:16px 19px}.stats>div:nth-child(2){border:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.stats strong{font-size:28px}.stat-note{font-size:10px}.workspace{grid-template-columns:1fr;gap:18px}.input-actions{flex-direction:row}.rules-card form{padding:20px}.results-card{margin-top:18px}.results-card>.card-heading{flex-wrap:wrap}.result-downloads{width:100%;flex-wrap:wrap}.result-downloads .button{flex:1}.result-summary{flex-direction:column;gap:9px}.results-toolbar{padding:17px 18px 10px}.filters{width:100%}.filters select{flex:1;width:120px}.filters input{width:100%}.legend{margin-left:18px;margin-right:18px;gap:13px}.progress-panel{flex-wrap:wrap;padding:25px 18px;gap:12px}.progress-panel>div:nth-child(2){min-width:210px}.progress-panel h3{font-size:14px}.progress-panel .button{margin-left:40px}.empty-result{padding:35px 18px}footer{flex-direction:column;gap:9px}.guide-grid{grid-template-columns:1fr}.dialog-heading h2{font-size:20px}dialog{padding:22px}.card-heading .subtle{font-size:9px}.history-row{flex-wrap:wrap}.hero .eyebrow{font-size:8px}#auditView{padding:5px 18px 18px}.audit-check{gap:11px}.audit-check>span{width:83px;font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:0s!important;transition:none!important}.spinner{animation-duration:2s!important}}

.editor-card { margin: 24px 0; padding: clamp(16px, 3vw, 32px); }
.editor-card .input-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.draft-toolbar { display: flex; gap: 12px 20px; align-items: end; flex-wrap: wrap; margin-top: 24px; }
.draft-toolbar label { flex: 1; min-width: min(14rem, 100%); }
.draft-toolbar input, #rowFields input:not([type="checkbox"]), #rowFields select { display: block; width: 100%; margin-top: 4px; }
#editorTabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #dae3e1; padding-bottom: 10px; margin-top: 18px; }
#editorTabs button[aria-pressed="true"] { background: #e5f4ee; border-color: #497e6a; }
.editor-section-heading { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin: 14px 0; }
.editor-section-heading h3 { margin: 0; }
.editor-section-heading input { width: min(13rem, 100%); }
#editorTable td { overflow-wrap: anywhere; }
#editorTable tr[data-invalid] td:first-child { border-left: 3px solid #a43734; }
.editor-table-actions { white-space: nowrap; }
.editor-table-actions button + button { margin-left: 6px; }
.editor-page { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
#rowDialog { max-height: 90vh; }
#rowFields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
#rowFields label { min-width: 0; }
#rowFields small { display: block; color: #53656a; font-weight: 400; }
#rowFields select[multiple] { min-height: 105px; }
#rowError { color: #a43734; }
#saveStatus { overflow-wrap: anywhere; }
.login-card { max-width: 440px; margin: 12vh auto 0; }
.login-card input { display: block; width: 100%; margin: 4px 0 14px; }
.login-card button { width: 100%; }
@media (max-width: 520px) { #rowFields { grid-template-columns: 1fr; } }
