:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#202632;background:#f5f6f9;font-size:14px}*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px}h2{font-size:17px}h3{font-size:15px}p{line-height:1.6;color:#6c7484}small{font-size:11px;color:#86909d}a{color:inherit;text-decoration:none}button,.button{cursor:pointer;border:1px solid #c91e32;background:#c91e32;color:white;border-radius:9px;padding:11px 16px;font:inherit;font-weight:650;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}button:hover,.button:hover{filter:brightness(.95)}button.secondary,.button.secondary{background:#fff;border-color:#dce0e6;color:#424b58}.danger{color:#b82030!important}.small{padding:7px 11px;font-size:12px}input,select,textarea{width:100%;border:1px solid #dce0e6;border-radius:8px;padding:10px 11px;background:white;color:#242a35;font:inherit;min-height:40px}input:focus,select:focus,textarea:focus{outline:2px solid #f6ccd1;border-color:#be1830}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:12px;color:#596273;min-width:0}.layout{display:flex;min-height:100vh}.sidebar{width:245px;min-width:245px;background:#171d2b;color:white;display:flex;flex-direction:column;padding:30px 16px 18px}.brandmark{font-weight:850;font-size:32px;color:#e52b45;display:flex;align-items:center;gap:12px;line-height:1.05;margin-bottom:34px}.brandmark span{font-size:14px;letter-spacing:.5px;color:white}.sidebar>small{margin:0 15px 15px;color:#69768b;letter-spacing:1px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:13px 15px;color:#adb7c6;border-radius:9px;font-size:13px}.sidebar nav a.active,.sidebar nav a:hover{background:#303747;color:white}.sidebar-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#b1bbca;flex-wrap:wrap}.main{flex:1;min-width:0;padding:33px 35px 24px;max-width:1700px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:20px}.top small{display:block;letter-spacing:.9px;margin-bottom:8px}.pill{background:#fcecee;color:#b42135;padding:8px 12px;border-radius:30px;font-weight:700;font-size:11px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat,.panel{border:1px solid #e8eaf0;border-radius:13px;background:#fff;box-shadow:0 2px 12px #18203306}.stat{padding:23px;display:flex;flex-direction:column;gap:7px}.stat strong{font-size:30px;color:#202735}.stat span{font-size:12px;color:#8792a0}.panel{padding:23px;margin-bottom:19px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.sectionhead p{font-size:12px;margin-top:5px}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filters label{flex:1 1 165px}.filters button,.filters .button{height:40px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays{margin:5px 0 8px;text-align:center;color:#7d8796}.weekdays b{font-size:12px}.calendar-grid{border-top:1px solid #e7eaf0;border-left:1px solid #e7eaf0}.day{min-height:118px;border-right:1px solid #e7eaf0;border-bottom:1px solid #e7eaf0;padding:9px 7px;overflow:hidden}.day>b{display:block;margin-bottom:8px}.day.empty{background:#f8f9fb}.chip{padding:5px 6px;border-radius:5px;margin-bottom:4px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fbe4e6;color:#a92537}.chip.district{background:#e9edf9;color:#465fa9}.chip.other{background:#eef0f2;color:#69717b}.legend{font-size:11px;color:#7f8795;display:flex;gap:12px}.eventrow{display:flex;align-items:flex-start;gap:16px;padding:18px 0;border-top:1px solid #eff0f3}.datebox{flex:0 0 63px;background:#fff1f3;border-radius:9px;text-align:center;padding:9px}.datebox strong{display:block;color:#c51e35;font-size:23px}.datebox small{color:#bd6975}.eventbody{flex:1;min-width:0}.eventbody h3{margin:6px 0}.eventbody p{font-size:12px}.eventbody>small{display:block;margin-top:7px}.eventmeta{display:flex;align-items:center;gap:10px;font-size:12px;color:#828b99}.tag{background:#fce5e8;color:#bb2336;padding:4px 7px;border-radius:5px;font-size:10px;font-weight:700}.tag.district{background:#e7edff;color:#4e69aa}.tag.other{background:#eaecef;color:#6a7180}.textlink{color:#b82338;font-size:12px;font-weight:700}.narrow{max-width:780px}.stack{display:flex;flex-direction:column;gap:17px}.narrow h2{margin-bottom:12px}.narrow p{margin-bottom:22px}.cols{display:grid;grid-template-columns:1fr 1fr;gap:13px}.hint{padding:15px;background:#f5f6f9;border-radius:8px;color:#747d89;font-size:12px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;margin-top:15px}td,th{text-align:left;border-bottom:1px solid #edf0f3;padding:13px;font-size:12px}th{background:#f9fafc;color:#697483;font-weight:700}.previewtable{min-width:950px}.previewtable input,.previewtable textarea{min-width:120px}.previewtable input[type=checkbox]{width:18px;min-width:18px;min-height:18px}.actions{display:flex;gap:12px;margin-top:20px}.alert{border-radius:9px;padding:13px 16px;background:#e7f7ee;color:#146940;margin:0 0 17px}.alert.err{background:#ffebef;color:#ae223b}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,#fff0f1,#f5f6f9 48%)}.auth .panel{width:min(100%,420px);padding:35px}.auth .brandmark span{color:#293041}.auth h1{font-size:24px}.auth p{font-size:13px}.deleteform{margin-top:20px}.empty-state{text-align:center;padding:35px 15px;color:#8b93a0}footer{color:#a0a6b1;font-size:11px;padding:15px 0}.muted{color:#8b93a0;font-size:12px}@media(max-width:900px){.layout{display:block}.sidebar{width:100%;min-width:0;padding:14px;display:block}.sidebar .brandmark{margin:0 0 9px;font-size:22px}.sidebar>small,.sidebar-bottom{display:none}.sidebar nav{display:flex;flex-direction:row;overflow-x:auto}.sidebar nav a{flex:0 0 auto;padding:10px}.main{padding:20px 15px}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:22px}.day{min-height:83px}.chip{font-size:8px}.panel{padding:14px}}@media(max-width:520px){.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{display:none}.top{align-items:start}.pill{display:none}.cols{grid-template-columns:1fr}.weekdays b{font-size:10px}.day{padding:4px 2px;min-height:65px}.chip{font-size:7px;padding:3px}.datebox{flex-basis:51px}.eventrow{gap:10px}}
