@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#263e39;background:#f5f7f5;font-size:14px;--green:#166856;--muted:#77847e;--line:#e2e8e3}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #55ac92;outline-offset:3px}button{border:1px solid var(--line);background:white;color:#29483e;border-radius:8px;padding:10px 15px;font-weight:600;white-space:nowrap}button:hover{background:#edf4ef}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#10513f}.danger{color:#a24435}.quiet{border:0;background:transparent}.small{padding:6px 10px;font-size:12px}.shell{display:flex;min-height:100vh}.sidebar{background:#123d37;color:#c1d4cb;width:235px;position:fixed;inset:0 auto 0 0;padding:31px 21px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:white;font:750 18px/1.25 Manrope,system-ui;margin-bottom:47px}.brand svg{background:#2f6156;border-radius:11px;padding:8px;width:42px;height:42px}.side-label{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#8daf9f;margin:0 14px 13px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;gap:12px;align-items:center;border:0;background:transparent;color:#b9cfc4;text-align:left;padding:13px 14px;font-weight:500}.nav button.active{background:#2a584d;color:white}.nav svg{width:19px;height:19px}.nav .count{margin-left:auto;background:#406e60;font-size:11px;padding:2px 6px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:23px 12px 0;border-top:1px solid #33564e;font-size:12px;line-height:1.7;color:#a8c2b4}.sidebar-bottom strong{color:#d8e6dd;font-weight:500;display:block}.main{margin-left:235px;width:calc(100% - 235px)}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;color:#64766e;font-size:12px}.topbar b{color:#304b3f;font-weight:550}.topbar-right{display:flex;align-items:center;gap:18px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:5px;font-size:11px;font-weight:550;background:#edf4ee;color:#56725e}.dot{width:6px;height:6px;border-radius:50%;background:#4d9270}.avatar{width:31px;height:31px;border-radius:50%;background:#eee8db;display:grid;place-items:center;color:#826d42}.content{padding:32px 38px 40px;max-width:1600px;margin:auto}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;font-weight:700;color:#74877a;margin-bottom:9px}h1,h2,h3{font-family:Manrope,system-ui,sans-serif;margin:0;color:#24483a}h1{font-size:30px;letter-spacing:-1.1px;font-weight:750}h2{font-size:17px;font-weight:750}h3{font-size:15px}p{line-height:1.6}.muted{color:#77847e}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}.heading p{margin:8px 0 0;font-size:13px;color:#7b877f}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.actions button{display:flex;align-items:center;gap:7px}.actions svg{width:15px;height:15px}.demo-banner{display:flex;align-items:center;gap:12px;background:#eeeedd;border:1px solid #e2e3ce;border-radius:8px;padding:11px 15px;margin-bottom:23px;color:#6e7054;font-size:12px}.demo-banner button{margin-left:auto;background:transparent;border-color:#d2d5bb;color:#5f664b}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{border:1px solid var(--line);background:white;border-radius:10px;padding:20px}.stat-top{display:flex;justify-content:space-between;color:#708076;font-size:12px}.stat-icon{color:#7a9d85}.stat-number{font:750 31px Manrope,system-ui;letter-spacing:-1px;margin:11px 0 5px}.stat-foot{font-size:11px;color:#8a968d}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden}.panel-head{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.panel-head p{margin:5px 0 0;font-size:12px;color:#849085}.filters{display:flex;gap:10px;align-items:center;padding:17px 23px;border-bottom:1px solid var(--line)}.search{position:relative;max-width:320px;width:100%}.search input{padding-left:35px;width:100%;background:#fbfcfa}.search svg{position:absolute;left:12px;top:12px;color:#9ca69d;width:15px;height:15px}input,select,textarea{border:1px solid #dce4dc;border-radius:7px;padding:10px 11px;background:white;color:#304c40;max-width:100%}select{cursor:pointer}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;padding:0}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.table-wrap{overflow-x:auto}th{background:#f8faf7;font-size:10px;color:#849184;text-transform:uppercase;letter-spacing:.8px;font-weight:600;padding:13px 20px;white-space:nowrap}td{padding:15px 20px;border-top:1px solid #edf0eb;vertical-align:middle}tr:hover td{background:#fbfcfa}.student-cell{display:flex;gap:11px;align-items:center;min-width:170px}.initials{background:#eaf0e8;width:32px;height:32px;display:grid;place-items:center;color:#64806a;border-radius:9px;font-size:10px;font-weight:700}.student-name{font-weight:600;color:#314c3e}.subline{font-size:10px;color:#8e9a90;margin-top:4px}.tag{display:inline-block;padding:4px 7px;border-radius:4px;background:#eaf2ec;color:#5c7e66;font-size:10px;margin:2px 3px 2px 0;white-space:nowrap}.tag.blue{background:#eef0fa;color:#7c82a0}.tag.amber{background:#faf0dd;color:#a48b56}.tag.gray{background:#f1f3ee;color:#7c887b}.rating{display:flex;align-items:center;gap:4px}.rating i{height:5px;width:10px;background:#e7ece5;border-radius:3px}.rating i.on{background:#9caf91}.rating span{margin-left:5px;font-size:10px;color:#8a968b}.table-foot{padding:15px 23px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:11px;color:#8b968c}.info-strip{margin-top:20px;padding:16px 19px;border-radius:8px;background:#ebf0e9;display:flex;gap:11px;align-items:flex-start;font-size:12px;line-height:1.6;color:#6b806c}.info-strip svg{width:18px;height:18px;flex-shrink:0;margin-top:2px}.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}.class-col{background:#edf1ea;border:1px solid #dce4d9;border-radius:10px;padding:16px}.class-col.unassigned{background:#f4efe5;border-color:#e8dfce}.class-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.class-meta{font-size:11px;color:#80907e;margin-bottom:13px;line-height:1.8}.progress{height:4px;border-radius:4px;background:#dce5d7;overflow:hidden;margin:10px 0 16px}.progress div{height:100%;background:#739680}.student-card{background:white;border:1px solid #dfe5da;border-radius:8px;padding:12px;margin:9px 0;box-shadow:0 2px 3px #233b2903}.student-card header{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:6px}.student-card select{width:100%;font-size:11px;padding:7px;margin-top:9px}.student-card .quiet{padding:2px 4px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.class-detail{padding:23px}.class-detail header{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.class-detail p{font-size:12px;color:#778773}.class-detail .capacity{font:700 28px Manrope;line-height:1.6}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rule-body{padding:23px}.rule{display:flex;align-items:start;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6}.rule:last-child{border:0}.rule p{font-size:12px;color:#80907b;margin:3px 0}.rule .check{color:#34785f}.review-item{padding:14px 20px;border-top:1px solid var(--line);font-size:12px;line-height:1.6}.review-item.hard{border-left:3px solid #be7258;background:#fdf8f3}.review-item.preference{border-left:3px solid #c7ae71}.empty{padding:55px 25px;text-align:center;color:#87957f}.empty h3{margin-bottom:8px}.empty p{font-size:13px;margin-bottom:20px}.footer{display:flex;justify-content:space-between;margin-top:28px;font-size:10px;color:#9aa393}.footer strong{font-weight:500;color:#7a8e78}dialog{border:1px solid #dae3d8;border-radius:14px;padding:0;width:700px;max-width:calc(100% - 28px);max-height:90vh;color:#29463a;box-shadow:0 18px 80px #18372c26}dialog::backdrop{background:#15342c77;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.modal-body{padding:23px 26px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 26px;border-top:1px solid var(--line);background:#f8faf6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.full{grid-column:1/-1}.field small{color:#83917d;line-height:1.5}.form-section{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin:23px 0 12px;color:#778e73}.checks{display:flex;gap:10px 20px;flex-wrap:wrap}.checks label{display:flex;gap:6px;align-items:center;font-size:12px}.pair-list{max-height:130px;overflow:auto;background:#f8faf7;border:1px solid var(--line);border-radius:7px;padding:10px;display:grid;gap:8px}.pair-list label{display:flex;gap:7px;align-items:center}.section-note{font-size:12px;line-height:1.6;color:#7c8974;margin:0 0 17px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#254f40;color:white;border-radius:8px;box-shadow:0 5px 25px #173e3922;display:none;z-index:20;font-size:13px;max-width:90vw}.setting-row{margin:0 0 22px;display:grid;gap:8px;max-width:450px}.danger-zone{margin-top:25px;border-top:1px solid var(--line);padding-top:25px}.mobile-brand{display:none}.warn{color:#ac6547}.success{color:#3e8260}.legend{font-size:11px;color:#8a9781;margin:16px 0}.storage-error{background:#f8e3dd;color:#8e4131;padding:12px}.review-count{background:#f6ecda;color:#a0854c;border-radius:4px;padding:4px 8px;font-size:11px}
@media(min-width:1450px){.content{padding:40px 48px}.topbar{padding:0 48px}}
@media(max-width:1100px){.sidebar{width:195px;padding:25px 14px}.main{margin-left:195px;width:calc(100% - 195px)}.content{padding:25px}.topbar{padding:0 25px}.stats{gap:10px}.stat{padding:15px}td,th{padding:13px}.heading{align-items:flex-start}.heading .actions{justify-content:flex-end}.rules-grid{grid-template-columns:1fr}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:15px}.brand{margin-bottom:16px;font-size:16px}.brand br{display:none}.brand svg{width:34px;height:34px}.side-label,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow-x:auto;gap:4px}.nav button{font-size:12px;padding:9px}.nav .count{display:none}.nav svg{width:15px;height:15px}.main{margin:0;width:100%}.topbar{height:56px;padding:0 18px}.topbar-right{gap:9px}.topbar .avatar{display:none}.content{padding:23px 16px}.heading{flex-direction:column;gap:17px}h1{font-size:27px}.stats{grid-template-columns:1fr 1fr}.stat-number{font-size:27px}.filters{padding:14px;flex-wrap:wrap}.panel-head{padding:17px}.demo-banner{align-items:flex-start;flex-wrap:wrap}.demo-banner button{margin-left:0}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.modal-body{padding:20px}.footer{gap:15px}.table-foot{padding:15px}.topbar .badge{font-size:10px}}
@media print{.sidebar,.topbar,.heading .actions,.demo-banner,.filters,.footer,.info-strip,button,select{display:none!important}.main{margin:0;width:100%}.content{padding:0}.panel,.class-col{break-inside:avoid}.board{display:block}.class-col{margin-bottom:15px}.student-card{display:inline-block;vertical-align:top;width:30%;margin:5px}.stats{margin-bottom:15px}}
