@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#193137;background:#f3f5f3;font-synthesis:none;--ink:#142c32;--muted:#677b7e;--line:#dce3df;--accent:#246d61}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,select,textarea{border:1px solid var(--line);border-radius:9px}button{background:white;color:var(--ink);padding:10px 15px;font-weight:600}button:hover{border-color:#70998d;background:#f0f6f2}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #51a699;outline-offset:3px}button.primary{background:var(--ink);color:white;border-color:var(--ink)}button.primary:hover{background:#285053}.quiet{background:transparent}input,select,textarea{background:white;padding:10px 12px;max-width:100%;color:var(--ink)}label{font-size:13px;font-weight:600;display:grid;gap:7px}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:34px;line-height:1.2;letter-spacing:-1.2px;margin:8px 0 12px}h2{font-size:21px;letter-spacing:-.5px;margin:0}h3{font-size:16px;margin:0 0 12px}p{line-height:1.6}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;text-transform:uppercase;color:var(--accent)}.brand{font-size:20px;font-weight:800;letter-spacing:-.6px;display:flex;align-items:center;gap:11px}.brandmark{background:var(--ink);color:#c9ead4;border-radius:10px;padding:5px 10px;font-size:24px}.topbar{height:83px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1440px)/2));gap:15px}.topbar-right,.inline,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.private{font-size:11px;border:1px solid var(--line);padding:5px 9px;border-radius:30px;color:#56716a}.avatar{border-radius:50%;background:#e4ece5;padding:9px 12px;font-weight:700}.page{max-width:1440px;margin:auto;padding:36px 28px 20px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.intro p{margin:0;color:var(--muted);font-size:14px}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;background:white;border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-bottom:24px}.reliefs{display:flex;gap:5px}.reliefs button{width:42px;padding:10px 0}.reliefs button.selected{background:var(--ink);border-color:var(--ink);color:white}.check{display:flex;align-items:center;gap:8px;font-size:12px;max-width:230px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.panel-head{padding:23px 22px 19px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.subhead{font-size:12px;color:var(--muted);margin-top:6px}.segmented{display:flex;padding:4px;background:#f0f3f0;border-radius:9px;gap:2px}.segmented button{border:0;background:transparent;border-radius:6px;padding:7px 11px;font-size:12px;color:var(--muted)}.segmented .selected{background:white;color:var(--ink);box-shadow:0 1px 4px #0000000c}.month-nav{display:flex;gap:5px}.month-nav button{padding:6px 12px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday{padding:13px 8px;text-align:center;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);background:#fafbf9;border-bottom:1px solid var(--line)}.day{min-height:113px;padding:10px;border:0;border-right:1px solid #e7ece8;border-bottom:1px solid #e7ece8;border-radius:0;text-align:left;display:flex;flex-direction:column;align-items:start;gap:9px;background:white;position:relative}.day:nth-child(7n){border-right:0}.day:hover{background:#f5f9f5}.day.active{box-shadow:inset 0 0 0 2px #317969;background:#f2f7f2}.day.outside{background:#f8f9f7;color:#a8b1ad}.day .num{font-size:12px;font-weight:600}.day.today .num{border-radius:50%;background:var(--ink);color:white;padding:3px 6px;margin:-3px -6px}.badge{display:inline-flex;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:700;white-space:nowrap;align-items:center;gap:5px}.early{background:#e2f0df;color:#355c38}.late{background:#fff0c6;color:#806017}.night{background:#e3e8f8;color:#475b96}.rest{background:#edf0ed;color:#7c8880}.leave{background:#fae3e9;color:#97516b}.training{background:#f7dfd4;color:#a45e3c}.other{background:#e8e0f3;color:#715397}.day .time{font-size:10px;color:var(--muted)}.modified{position:absolute;right:9px;top:12px;font-size:9px;color:var(--accent)}.legend{padding:15px 22px;display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.legend span{display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%}.dot.early{background:#91bd82}.dot.late{background:#e3be58}.dot.night{background:#8397d1}.dot.rest{background:#b4bdb5}.side{display:grid;gap:20px}.card{padding:22px}.card-date{font-size:21px;font-weight:800;margin:7px 0 18px;letter-spacing:-.7px}.shift-large{padding:19px;border-radius:10px;margin:0 0 17px}.shift-large h2{margin:10px 0 5px;font-size:25px}.shift-large p{margin:0;font-size:13px}.full{width:100%}.rule{border:0;border-top:1px solid var(--line);margin:20px 0}.cover-row{display:flex;justify-content:space-between;align-items:center;margin:14px 0;gap:10px;font-size:12px}.cover-row p{margin:4px 0 0;font-size:11px;color:var(--muted)}.callout{background:#edf3ed;border-radius:10px;padding:15px;font-size:12px;line-height:1.6;color:#4d695c}.callout strong{color:#21493c}.source-note{font-size:11px;line-height:1.7;color:var(--muted);margin:20px 0}.footer{padding:24px 0 5px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted)}.table-scroll{overflow:auto;max-height:630px}.rota{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.rota th,.rota td{border-right:1px solid #e8ece7;border-bottom:1px solid var(--line);padding:8px;min-width:91px;text-align:center}.rota th{background:#f5f7f3;position:sticky;top:0;z-index:2;font-size:11px}.rota .rowhead{position:sticky;left:0;z-index:3;min-width:85px;background:white}.rota th.rowhead{z-index:4}.rota .selected-row{background:#f0f5ee}.rota td button{border:0;background:none;padding:5px 0;font-size:10px;width:100%}.rota td.chosen{box-shadow:inset 0 0 0 2px var(--accent)}.rota .tabletime{display:block;margin-top:6px;white-space:nowrap}.day-view{padding:24px}.day-view .day-shifts{display:grid;gap:12px}.relief-shift{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:10px;padding:14px;background:white;width:100%;text-align:left}.relief-shift .letter{font-weight:800;font-size:21px;background:#f1f4ed;border-radius:8px;padding:10px 16px}.relief-shift.active{border-color:var(--accent);background:#f6f9f3}.relief-shift .detail{flex:1}.relief-shift .detail p{margin:5px 0 0;font-size:12px}.next-note{font-size:11px;margin:10px 0;color:var(--muted)}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:10px;background:var(--ink);color:white;z-index:20;box-shadow:0 6px 20px #0002;max-width:90vw;font-size:13px}.alert{padding:13px 17px;background:#fff3d9;color:#795d22;border:1px solid #e8d7ac;border-radius:10px;font-size:12px;line-height:1.7;margin-bottom:20px}.error{color:#a13737;font-size:13px;line-height:1.6}.auth{max-width:460px;margin:9vh auto;background:white;border:1px solid var(--line);border-radius:18px;padding:36px;box-shadow:0 12px 50px #17372e08}.auth h1{font-size:28px;margin-top:28px}.auth p{font-size:13px;color:var(--muted)}.auth form{display:grid;gap:18px;margin:24px 0 15px}.auth .switch{display:flex;justify-content:space-between;gap:8px}.link{padding:6px 0;border:0;background:none;color:var(--accent);font-size:12px;text-decoration:underline}.overlay{position:fixed;inset:0;background:#112c3266;backdrop-filter:blur(3px);z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.dialog{max-height:90vh;overflow:auto;background:white;border:1px solid var(--line);border-radius:16px;width:640px;box-shadow:0 20px 80px #0002}.dialog-head{padding:23px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.dialog-body{padding:25px}.dialog form{display:grid;gap:18px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-foot{padding:18px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.choices{display:flex;gap:18px;flex-wrap:wrap}.preview-list{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:12px;font-size:12px}.preview-list p{margin:6px 0}.history-item{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.history-item p{margin:5px 0}.member{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;font-size:12px;overflow-wrap:anywhere}.share-link{width:100%;margin:12px 0;font-size:11px}.settings-section{margin:0 0 28px}.screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.page{padding-top:44px}.day{min-height:125px}}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 270px}.day{padding:8px;min-height:100px}.day .time{font-size:9px}.page{padding:24px 18px}.card{padding:18px}.toolbar{padding:16px}.topbar{padding:0 20px}.intro h1{font-size:30px}}@media(max-width:850px){.workspace{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}.topbar-right .account-email{display:none}.intro{align-items:start}.intro .actions{justify-content:flex-end}.day{min-height:109px}.panel-head{padding:18px}.toolbar{gap:15px}.footer{flex-direction:column;gap:7px}}@media(max-width:550px){.topbar{height:68px;padding:0 16px}.brand{font-size:17px}.private{display:none}.topbar-right{gap:4px}.topbar-right button{padding:7px;font-size:11px}.page{padding:25px 12px}.intro{display:block}.intro h1{font-size:29px}.intro .actions{justify-content:start;margin-top:18px}.intro .actions button{font-size:12px;padding:9px 12px}.toolbar{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.toolbar .relief-control{grid-column:1/-1}.reliefs button{width:46px}.toolbar input[type=date]{width:100%;font-size:12px;padding:9px}.toolbar .check{grid-column:1/-1;max-width:none}.side{grid-template-columns:1fr}.panel-head{gap:14px;padding:17px 13px}.panel-head h2{font-size:18px}.segmented button{padding:6px 10px}.day{min-height:94px;padding:8px 3px;gap:8px;align-items:center}.day .time{font-size:8px;letter-spacing:-.4px}.day .badge{font-size:9px;padding:4px 5px}.day .num{font-size:11px}.day .modified{right:3px;top:8px;font-size:7px}.weekday{font-size:9px;padding:11px 1px}.legend{padding:13px;gap:12px;font-size:10px}.auth{margin:5vh 15px;padding:28px}.dialog-body{padding:18px}.dialog-head{padding:18px}.formrow{gap:12px}.overlay{padding:10px}.dialog{max-height:95vh}.day-view{padding:16px}.card{padding:22px}.intro p{font-size:13px}}
@media print{body{background:white}.topbar,.intro .actions,.toolbar,.side,.segmented,.month-nav,.footer,.overlay,.toast{display:none!important}.page{max-width:none;padding:0}.workspace{display:block}.panel{border:1px solid #ccc}.day{min-height:90px;break-inside:avoid}.table-scroll{overflow:visible;max-height:none}.rota th,.rota td{min-width:0;padding:3px;font-size:8px}.rota .badge{font-size:7px;padding:3px}.rota .tabletime{font-size:6px}.rota .rowhead{min-width:35px}.source-note{font-size:9px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.rota-selector{display:flex;gap:20px;align-items:end;margin:0 0 20px}.rota-selector label{min-width:260px;max-width:100%}.rota-selector .muted{font-size:12px;padding:10px 0}.builder-block{border:1px solid var(--line);border-radius:10px;padding:14px;margin:0 0 15px}.builder-block legend{font-weight:700;font-size:13px;padding:0 6px}.builder-fields{display:grid;grid-template-columns:70px 1fr 100px 100px;gap:12px;margin-bottom:12px}.builder-fields input,.builder-fields select{width:100%;min-width:0}.builder-block .actions button{font-size:11px;padding:6px 10px}.builder-preview{max-height:350px;overflow:auto;border:1px solid var(--line);border-radius:10px}.builder-preview table{width:100%;border-collapse:collapse;font-size:12px}.builder-preview td,.builder-preview th{text-align:left;padding:10px;border-bottom:1px solid var(--line)}.builder-preview th{position:sticky;top:0;background:#f0f4ef}#rotation-total{font-size:12px;color:var(--muted)}@media(max-width:550px){.builder-fields{grid-template-columns:1fr 1fr}.rota-selector{display:block}.rota-selector label{min-width:0}.rota-selector .muted{display:block}}
