:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#20344a;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(140deg,#0f2c47 10%,#245a77)}.login-card{background:white;width:min(390px,92vw);border-radius:18px;padding:35px;display:flex;gap:16px;flex-direction:column;box-shadow:0 20px 75px #001a3050}.login-card h1{margin:0;font-size:25px}.login-card p{margin:-9px 0 15px;color:#738397}.login-card label,.field{font-size:13px;font-weight:650;display:grid;gap:7px}.login-card input,.field input,.field select,textarea{width:100%;border:1px solid #cdd6e1;border-radius:8px;padding:11px;background:white;outline:none}.login-card input:focus,.field input:focus,.field select:focus{border-color:#367bb3;box-shadow:0 0 0 3px #c8e3f8}.mark{background:#0f2c47;color:white;display:grid;place-items:center;font-family:Georgia,serif;font-weight:bold;font-size:24px;border-radius:11px;width:51px;height:51px}.mark.small{width:39px;height:39px;font-size:18px;background:#dbe7f2;color:#0f2c47}.error{font-size:13px;color:#b32627}.btn{border:none;border-radius:9px;padding:10px 15px;font-size:13px;font-weight:650}.btn.primary{color:white;background:#0f2c47}.btn.primary:hover{background:#204a6c}.btn.light{background:white;border:1px solid #dae0e6;color:#253b53}.btn.danger{background:#b93843;color:white}.btn:disabled{opacity:.45;cursor:not-allowed}#app{display:flex;min-height:100vh}.side{width:250px;flex-shrink:0;background:#0f2c47;color:#eaf3fc;display:flex;flex-direction:column;padding:24px 17px;gap:7px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;gap:10px;align-items:center;padding:2px 7px 30px}.brand strong{display:block;font-size:17px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#aabdd0;margin-top:3px}.section-label{color:#a3bad1;font-size:10px;font-weight:800;letter-spacing:1.5px;margin:18px 10px 6px}.nav{display:block;color:#d8e7f5;text-align:left;border:0;background:transparent;padding:11px;border-radius:9px;font-size:13px;font-weight:550;width:100%}.nav:hover,.nav.active{background:#29516f;color:white}.side select{background:#21425f;color:white;border:1px solid #54738f;width:100%;border-radius:8px;padding:9px;font-size:12px}.field-label{font-size:11px;color:#b5c7d8;margin:0 4px 3px}.tag{font-size:11px;color:#c5e0f8;padding:4px 7px}.side-spacer{flex:1}.user-box{border-top:1px solid #42607a;padding:16px 10px 3px;font-size:13px;display:grid;gap:8px}.link-btn{background:none;border:0;text-align:left;color:#a9c9e1;font-size:12px;padding:3px 0}.main{min-width:0;flex:1}.top{padding:25px 30px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8296aa;font-weight:800}.top h1{font-size:28px;letter-spacing:-.8px;margin:6px 0 2px}.subtitle{font-size:13px;color:#718196}.top-actions{display:flex;align-items:center;gap:9px}.sync{color:#47735f;font-size:12px;margin-right:5px}.sync.saving{color:#a87419}.sync.failed{color:#bf384a}.toolbar{margin:0 30px 14px;padding:12px 14px;border:1px solid #e2e8ee;border-radius:11px;background:white;display:flex;justify-content:space-between;align-items:center}.toolbar-left{display:flex;align-items:center;gap:9px}.icon-btn{font-size:21px;line-height:1;border:1px solid #e3e9ef;background:white;color:#364f69;border-radius:7px;width:30px;height:31px}.separator{height:20px;width:1px;background:#e3e9ef;margin:0 8px}#dayLabel{font-size:13px;font-weight:700;min-width:92px;text-align:center}.legend{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#6b7b90}.legend span{display:flex;gap:5px;align-items:center}.legend i{width:9px;height:9px;border-radius:3px}#stats{font-size:11px;color:#8292a4}.calendar-frame{margin:0 30px;background:white;border-radius:12px;border:1px solid #e3e8ef;overflow:auto;max-height:calc(100vh - 235px);min-height:480px;box-shadow:0 5px 25px #2c46600b}.calendar-grid{display:flex;min-width:800px}.time-rail{width:63px;flex:none;position:sticky;left:0;z-index:5;background:#fff;border-right:1px solid #e0e8ef}.time-rail .rail-head{height:46px;background:#f6f9fc;position:sticky;top:0;z-index:7;border-bottom:1px solid #e3e9ee}.rail-body{position:relative}.time-tick{position:absolute;left:0;right:0;padding:0 9px;text-align:right;font-size:10px;color:#8796a7;transform:translateY(-6px)}.day-column{flex:1;min-width:195px;border-right:1px solid #e8edf2;position:relative}.calendar-grid.daily .day-column{min-width:680px}.day-head{height:46px;position:sticky;top:0;z-index:6;text-align:center;padding:10px 6px;background:#f6f9fc;border-bottom:1px solid #e3e9ee;font-size:12px;font-weight:750}.day-head small{font-size:10px;font-weight:400;display:block;color:#8090a2}.day-body{position:relative;background-image:linear-gradient(to bottom,transparent calc(100% - 1px),#edf1f5 calc(100% - 1px));}.hour-line{position:absolute;left:0;right:0;border-top:1px solid #dfe6ee;pointer-events:none}.quarter-line{position:absolute;left:0;right:0;border-top:1px dashed #eef2f6;pointer-events:none}.event{position:absolute;border-radius:6px;border:1px solid #00000012;padding:7px 7px 15px;overflow:hidden;z-index:2;cursor:grab;box-shadow:0 2px 4px #08152512;display:flex;flex-direction:column;gap:3px;color:#192a3c;font-size:11px;line-height:1.2;min-width:46px}.event:hover{outline:2px solid #315e83;z-index:4}.event:active{cursor:grabbing}.event-time{font-weight:650;opacity:.72;font-size:10px}.event-title{font-weight:800;overflow-wrap:anywhere}.event-location{font-size:9px;border-top:1px solid #0002;padding-top:3px;overflow-wrap:anywhere}.event-location b{font-weight:650}.event-resize{position:absolute;height:11px;bottom:0;left:0;right:0;text-align:center;cursor:ns-resize;font-size:12px;color:#2e4559;background:#00000009}.slot-target{position:absolute;left:0;right:0;z-index:1}.slot-target:hover{background:#d8e9f347}.footer-hint{margin:14px 30px 25px;color:#8091a5;font-size:11px}.modal-backdrop{position:fixed;inset:0;background:#071c2db0;z-index:20;display:grid;place-items:center;padding:15px}.modal{width:min(560px,95vw);max-height:90vh;overflow-y:auto;border-radius:15px;background:white;box-shadow:0 20px 65px #0004}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6ecf2;padding:18px 23px}.modal-header h2{font-size:19px;margin:0}.modal-header .icon-btn{border:0;font-size:25px}.modal-body{padding:20px 23px;display:grid;gap:15px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.loc-row{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:end;margin-top:8px}.loc-row input{padding:9px}.loc-del{height:36px;width:32px;border:1px solid #e0e5ea;border-radius:6px;background:white;color:#b04651}.mini{font-size:11px;color:#7d8d9e}.modal-footer{padding:15px 23px 20px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e8ecf1}.color-presets{display:flex;flex-wrap:wrap;gap:7px}.swatch{width:26px;height:26px;border-radius:6px;border:2px solid transparent}.swatch.active{border-color:#182c43;outline:2px solid white;box-shadow:0 0 0 2px #182c43}.toast{position:fixed;right:28px;bottom:25px;background:#19364f;color:white;border-radius:9px;padding:12px 18px;font-size:13px;box-shadow:0 8px 28px #0003;z-index:30}.conflict{margin:0 30px 12px;border:1px solid #f1c4b5;background:#fff3ec;color:#924124;padding:12px 15px;border-radius:9px;font-size:13px}@media(max-width:900px){.side{width:208px;padding:15px 10px}.top{padding:18px}.toolbar{margin:0 18px 12px}.calendar-frame{margin:0 18px}.legend{display:none}.footer-hint{margin:14px 18px}}@media(max-width:620px){#app{display:block}.side{position:static;width:100%;height:auto;max-height:none;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px;gap:5px}.brand{padding:0 10px 0 0}.side .section-label,.side .field-label,.side #versionTag{display:none}.side select{width:180px}.side .nav{width:auto;padding:8px}.user-box{padding:0;border:0;margin-left:auto}.top{flex-wrap:wrap}.top h1{font-size:23px}.calendar-frame{max-height:68vh}}
