:root{--navy:#153d4c;--ink:#17313c;--muted:#6d7f86;--line:#dce6e8;--sage:#eaf2ec}*{box-sizing:border-box}body{margin:0;background:#f7f8f6;color:var(--ink);font-family:Arial,sans-serif}button,select,textarea{font:inherit}button,select{cursor:pointer}.topbar{height:82px;padding:0 max(24px,calc((100vw - 1320px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand,.top-actions,.role-block{display:flex;align-items:center}.brand{gap:12px}.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--navy);color:#fff;font:italic 26px Georgia;display:grid;place-items:center}.brand strong{display:block;font:22px Georgia}.brand small{color:var(--muted);font-size:12px}.top-actions{gap:25px}.privacy-pill{border:0;background:var(--sage);color:#37624b;padding:9px 13px;border-radius:20px;font-size:13px;font-weight:700}.privacy-pill span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#4d8260;color:#fff;margin-right:5px}.role-block{gap:9px;border-left:1px solid var(--line);padding-left:24px}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e6eef0;color:var(--navy);font-size:12px;font-weight:800}.role-block small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.role-block select{border:0;background:transparent;color:var(--ink);font-weight:700}.privacy-banner{max-width:1320px;margin:16px auto 0;background:#edf5ef;border:1px solid #cfe0d4;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center}.privacy-banner[hidden]{display:none}.privacy-banner div span{display:block;color:#60766a;font-size:13px;margin-top:3px}.name-control,.manager-only{font-size:13px;font-weight:700;color:#597166}.workspace{max-width:1320px;margin:auto;padding:38px 24px 70px}.saved-toast{position:fixed;right:25px;top:95px;background:#37624b;color:#fff;padding:12px 18px;border-radius:8px;z-index:10}.title-row{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}.eyebrow{color:#c06d3d!important;font-size:11px!important;font-weight:800;letter-spacing:.16em;margin:0 0 7px!important}.title-row h1{font:40px Georgia;margin:0 0 7px}.title-row p,.board-heading p{color:var(--muted);margin:0;font-size:14px}.date-box{text-align:right}.date-box span{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.date-box strong{font:16px Georgia}.control-bar{min-height:72px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 16px;display:flex;align-items:center;box-shadow:0 4px 18px #17313c0a}.unit-tabs{display:flex;height:50px;gap:4px}.unit-tabs button{min-width:145px;border:0;border-radius:9px;background:transparent;color:#738189;font-weight:700;text-align:left;padding:7px 16px}.unit-tabs small{display:block;font-size:10px;margin-top:3px;font-weight:500}.unit-tabs .active{background:var(--navy);color:#fff}.shift-control{margin-left:auto;display:flex;align-items:center;gap:12px;border-right:1px solid var(--line);padding-right:24px}.shift-control>span{color:var(--muted);font-size:12px;text-transform:uppercase;font-weight:700}.shift-control>div{padding:3px;background:#edf1f1;border-radius:8px}.shift-control button{width:46px;border:0;border-radius:6px;padding:7px;background:transparent;color:#708087;font-weight:700}.shift-control button.active{background:#fff;color:var(--navy);box-shadow:0 1px 5px #ccd5d5}.status{color:#896d31;font-size:12px;font-weight:700;padding-left:23px}.status i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d7a73d;margin-right:6px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 32px}.summary-grid>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;align-items:center;gap:12px}.summary-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:800}.blue{background:#e5f0f4;color:#33677a}.amber{background:#fbf0dc;color:#9c6c21}.green{background:#e8f2e9;color:#477351}.purple{background:#eee9f4;color:#75578d}.summary-grid p{margin:0;color:var(--muted);font-size:11px}.summary-grid strong{display:block;color:var(--ink);font-size:14px;margin-top:3px}.board-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.board-heading h2{font:23px Georgia;margin:0 0 5px}.print-link{border:0;background:transparent;color:var(--navy);font-size:13px;font-weight:700}.section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;align-items:start}.section-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 4px 16px #17313c09}.section-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-bottom:1px solid var(--line)}.section-head>div{display:flex;align-items:baseline;gap:6px}.section-head>div span,.section-head label,.floater-card label{font-size:9px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.08em}.section-head b{font:23px Georgia}.section-head select,.floater-card select{display:block;margin-top:4px;border:1px solid #cad7da;border-radius:7px;background:#fff;color:var(--ink);font-weight:700;font-size:12px;padding:8px;min-width:155px}.room-head,.room-row{display:grid;grid-template-columns:54px 1fr}.room-head{padding:9px 14px;background:#f7f9f8;color:#869398;font-size:9px;font-weight:800;letter-spacing:.1em}.room-row{min-height:53px;padding:10px 14px;border-top:1px solid #edf1f1;align-items:center}.room-row>strong{font:16px Georgia}.room-row>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tag,.assist{display:inline-block;padding:4px 7px;border-radius:5px;font-size:10px;font-weight:800}.tag.bb{background:#f8ecd6;color:#8e6221}.tag.ab{background:#e6f0e8;color:#3f704a}.tag.none{background:#eef1f1;color:#748187}.assist{background:#eee8f4;color:#6b5180}.room-row small,.resident-name{width:100%;font-size:10px}.room-row small{color:#77868b}.resident-name{font-weight:700;color:#314b55}.section-card footer{display:flex;justify-content:center;background:#f9faf9;border-top:1px solid var(--line);padding:9px 14px;color:#7e8d92;font-size:10px}.section-card footer .footer-double{color:#6d28d9;font-weight:700}
.print-assist-summary{display:none}.floater-card,.notes-card{background:#fff;border:1px solid var(--line);border-radius:13px;margin-top:15px;padding:15px 18px;display:flex;align-items:center}.floater-card{gap:13px;border-left:4px solid #c58356}.float-icon{width:38px;height:38px;border-radius:10px;background:#f7eadf;color:#a25e32;display:grid;place-items:center;font-size:20px}.floater-card h3{margin:0 0 3px;font:17px Georgia}.floater-card p{color:var(--muted);font-size:11px;margin:0}.floater-card label{margin-left:auto}.floater-card select{min-width:230px}.notes-card label{width:100%;font-size:12px;font-weight:800}.notes-card label span{color:var(--muted);font-weight:400}.notes-card textarea{width:100%;min-height:68px;margin-top:9px;resize:vertical;border:1px solid #d3dfe1;border-radius:8px;padding:11px}.bottom-actions{margin-top:23px;padding-top:21px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.bottom-actions>div{display:flex;gap:10px;align-items:center}.lock{width:26px;height:26px;background:#e4efea;border-radius:50%;display:grid;place-items:center;color:#4f795f;font-size:8px}.bottom-actions p{margin:0}.bottom-actions p strong,.bottom-actions p small{display:block}.bottom-actions p strong{font-size:12px}.bottom-actions p small{color:var(--muted);font-size:10px;margin-top:3px}.bottom-actions button{border-radius:8px;padding:11px 17px;font-size:12px;font-weight:800}.secondary{border:1px solid #b9c9cc;background:#fff;color:var(--navy)}.primary{border:1px solid var(--navy);background:var(--navy);color:#fff;min-width:130px}@media(max-width:900px){.section-grid{grid-template-columns:repeat(2,1fr)}.summary-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.topbar{padding:0 14px}.workspace{padding:25px 14px}.privacy-pill,.date-box{display:none}.section-grid,.summary-grid{grid-template-columns:1fr}.control-bar{flex-wrap:wrap}.unit-tabs{width:100%}.unit-tabs button{min-width:0;flex:1}.shift-control{margin:10px 0 0;width:100%;justify-content:space-between;border:0}.status{display:none}.floater-card{flex-wrap:wrap}.floater-card label{margin-left:51px}.bottom-actions>div:first-child{max-width:45%}}@media print{body{background:#fff}.topbar,.privacy-banner,.title-row,.summary-grid,.control-bar,.print-link,.notes-card,.bottom-actions,.saved-toast{display:none!important}.workspace{padding:0}.section-grid{grid-template-columns:repeat(3,1fr);gap:8px}.section-card{break-inside:avoid;box-shadow:none}.section-head select{appearance:none;border:0}.section-head label{font-size:0}.section-head label select{font-size:11px}.resident-name{display:none!important}@page{size:A4 landscape;margin:8mm}}
/* Reusable allocation preset chooser */
.preset-selector{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:14px 0;display:flex;align-items:center;gap:22px}.preset-selector>div{margin-right:auto}.preset-selector span{display:block;font-size:9px;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.preset-selector strong{font-size:13px}.preset-selector label{font-size:10px;color:var(--muted)}.preset-selector select{display:block;margin-top:5px;min-width:240px;border:1px solid #cad7da;border-radius:8px;padding:9px;background:#fff}.preset-selector>a{font-size:11px;font-weight:800;color:var(--navy);text-decoration:none}@media(max-width:760px){.preset-selector{align-items:stretch;flex-direction:column;gap:10px}.preset-selector select{width:100%}}

/* Drag & Drop */
.room-head,.room-row{display:grid;grid-template-columns:28px 54px 1fr;align-items:center}
.drag-handle{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--muted);font-size:16px;cursor:grab;user-select:none;opacity:.4;transition:opacity .15s,background .15s}
.room-row:hover .drag-handle{opacity:1;background:#edf1f1;color:#475569}
.drag-handle:active{cursor:grabbing;color:#0d9488}
.room-dragging{opacity:.3;background:#f0fdfa!important}
.section-drop-target{border-color:#2dd4bf!important;background:rgba(20,184,166,.04)!important;box-shadow:0 0 0 3px rgba(20,184,166,.12),0 4px 12px rgba(0,0,0,.06)!important}
.room-row{cursor:pointer;transition:background .12s}
.room-row:hover{background:#f0f7f4}
.machine-tag{display:inline-block;padding:1px 6px;border-radius:4px;background:#ede9fe;color:#6d28d9;font-size:11px;font-weight:600;white-space:nowrap}
.room-row.room-empty{opacity:.45;background:#f5f6f5}
.room-row.room-empty:hover{background:#eef0ee}
.empty-room-tag{display:inline-block;padding:1px 6px;border-radius:4px;background:#e2e8e4;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.room-empty-btn{display:inline-block;margin-left:4px;padding:2px 7px;border:1px solid #d5dde0;border-radius:5px;background:#fff;color:#7a8b92;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;line-height:1.4;cursor:pointer;vertical-align:middle}
.room-empty-btn:hover{border-color:#b8c6ca;color:#475569;background:#f6f8f8}
.room-inuse-btn{display:inline-block;margin-left:4px;padding:2px 7px;border:1px solid #a9c6b4;border-radius:5px;background:#f2f8f4;color:#3f6e50;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;line-height:1.4;cursor:pointer;vertical-align:middle}
.room-inuse-btn:hover{border-color:#7fa392;background:#e7f2ea}
.tag.time-tag{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
.summary-icon.teal{background:#ccfbf1;color:#0d9488}

/* Care Plan Modal */
.care-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:grid;place-items:center;z-index:1000;padding:24px}
.care-modal-overlay[hidden]{display:none}
.care-modal{background:#fff;border-radius:16px;width:100%;max-width:900px;max-height:calc(100dvh - 48px);box-shadow:0 20px 60px rgba(0,0,0,.2);overflow:hidden;display:flex;flex-direction:column}
.care-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}
.care-modal-header h3{margin:0;font:600 18px/1.3 Arial,sans-serif;color:var(--ink)}
.care-modal-close{background:none;border:0;font-size:24px;color:var(--muted);cursor:pointer;width:32px;height:32px;display:grid;place-items:center;border-radius:8px}
.care-modal-close:hover{background:#f0f0f0;color:var(--ink)}
.care-modal-body{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.care-shift-panel{margin-top:14px;padding:16px 20px 12px}
.care-shift-panel:first-child{border-right:1px solid var(--line)}
.care-shift-panel.active-shift{background:#f0f9f5}
.care-shift-label{font:700 13px/1 Arial,sans-serif;color:var(--navy);text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px;padding-bottom:7px;border-bottom:2px solid var(--navy)}
.care-shift-panel:not(.active-shift) .care-shift-label{color:var(--muted);border-bottom-color:var(--line)}
.care-shift-panel label{display:block;margin-bottom:11px;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.care-shift-panel label small{font-weight:400;text-transform:none;letter-spacing:0}
.care-shift-panel select,.care-shift-panel input[type="text"],.care-shift-panel input[type="time"]{display:block;width:100%;margin-top:5px;padding:9px 11px;border:1px solid #cad7da;border-radius:8px;font-size:13px;background:#fff;color:var(--ink)}
.care-shift-panel select:focus,.care-shift-panel input[type="text"]:focus,.care-shift-panel input[type="time"]:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(21,61,76,.1)}
.care-shift-panel input[type="time"]{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236d7f86' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13zM8 3.5a.75.75 0 0 0-.75.75V8c0 .28.16.54.41.67l2.5 1.5a.75.75 0 1 0 .77-1.3L8.75 7.64V4.25A.75.75 0 0 0 8 3.5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px;padding-right:32px}
.care-time-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:5px}.care-time-input-row input[type="time"]{margin-top:0}.care-time-input-row button{border:1px solid #cad7da;border-radius:8px;background:#fff;color:var(--navy);padding:0 11px;font-size:11px;font-weight:800;white-space:nowrap}.care-time-input-row button:hover{background:#edf5f2}
/* Staff search */
.staff-search-wrap{position:relative}.staff-search-input{width:100%;padding:6px 10px;border:1px solid #cad7da;border-radius:6px 6px 0 0;font-size:12px;background:#fff;color:var(--ink);outline:none;border-bottom:0}.staff-search-input:focus{border-color:var(--navy)}.staff-search-input::placeholder{color:var(--muted)}.staff-search-wrap select{border-radius:0 0 6px 6px}.care-modal-header,.care-modal-footer{flex:0 0 auto}.care-modal-footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-top:1px solid var(--line);background:#fafbfa;box-shadow:0 -6px 18px rgba(21,61,76,.06)}
.care-modal-footer .primary{background:var(--navy);color:#fff;border:0;padding:10px 20px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer}
.care-modal-footer .primary:hover{background:#1a4a5c}
.care-modal-footer .primary:disabled{cursor:wait;opacity:.7}
.care-modal-footer .secondary{background:none;border:1px solid var(--line);padding:10px 18px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;color:var(--muted);margin-right:8px}
.care-modal-footer .secondary:hover{background:#f0f0f0}
.care-modal-status{font-size:13px;color:var(--muted)}
.hehp-milk-note{display:block;width:100%;padding:3px 6px;border-radius:5px;background:#e9f3fb;color:#285e78!important;font-weight:700}
@media(max-width:640px){.care-modal-body{grid-template-columns:1fr}.care-shift-panel:first-child{border-right:0;border-bottom:1px solid var(--line)}}

/* Board heading actions */
.board-heading-actions{display:flex;align-items:center;gap:10px}

/* Optional guided allocation interface */
.allocation-view-tools{display:flex;align-items:center;gap:18px}.view-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#edf1f1}.view-switch a{padding:7px 11px;border-radius:6px;color:var(--muted);font-size:11px;font-weight:800;text-decoration:none}.view-switch a.active{background:#fff;color:var(--navy);box-shadow:0 1px 5px #ccd5d5}.guided-progress,.guided-step-heading,.guided-review-summary{display:none}.allocation-view-guided .guided-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 24px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 18px #17313c0a;position:sticky;top:8px;z-index:7}.guided-progress a{display:grid;grid-template-columns:30px 1fr;column-gap:9px;padding:10px;border-radius:9px;color:var(--ink);text-decoration:none}.guided-progress a:hover{background:#edf5f2}.guided-progress a>span{grid-row:1/3;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-size:12px;font-weight:800}.guided-progress strong{font-size:12px}.guided-progress small{margin-top:3px;color:var(--muted);font-size:9px}.allocation-view-guided .guided-step-heading{display:flex;align-items:center;gap:10px;margin:24px 0 10px;scroll-margin-top:105px}.guided-step-heading>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#c06d3d;color:#fff;font-size:12px;font-weight:800}.guided-step-heading strong,.guided-step-heading small{display:block}.guided-step-heading strong{font:18px Georgia}.guided-step-heading small{color:var(--muted);font-size:11px;margin-top:2px}.allocation-view-guided .guided-review-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.guided-review-summary>div{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.guided-review-summary span,.guided-review-summary strong{display:block}.guided-review-summary span{color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:800}.guided-review-summary strong{margin-top:4px;font:22px Georgia}.allocation-view-guided .control-bar,.allocation-view-guided .preset-selector{box-shadow:0 5px 20px #17313c0c}.allocation-view-guided .summary-grid{margin-top:24px}

@media(max-width:700px){.allocation-view-tools{align-items:flex-start;flex-direction:column-reverse}.allocation-view-guided .guided-progress{grid-template-columns:repeat(4,minmax(100px,1fr));overflow-x:auto;position:static}.guided-progress a{min-width:125px}.allocation-view-guided .guided-review-summary{grid-template-columns:repeat(2,1fr)}}
@media print{.guided-progress,.guided-step-heading,.guided-review-summary,.view-switch{display:none!important}}

/* Full guided wizard */
.guided-wizard{display:none}.allocation-view-guided{background:#f8faf9}.allocation-view-guided .topbar{position:fixed;inset:0 auto 0 0;width:230px;height:100vh;padding:24px 16px;background:linear-gradient(180deg,#0e4b52,#0a3840);border:0;z-index:20;align-items:stretch;justify-content:flex-start;flex-direction:column;color:#fff}.allocation-view-guided .topbar .brand{padding:0 8px 22px}.allocation-view-guided .topbar .brand-mark{background:#e9dcae;color:#17565a}.allocation-view-guided .topbar .brand small{color:#b9d1d1}.allocation-view-guided .main-nav{display:flex;flex-direction:column;gap:7px;margin-top:16px}.allocation-view-guided .main-nav a{color:#d9e8e8;padding:12px 14px;border-radius:8px;text-decoration:none}.allocation-view-guided .main-nav a.active{background:#ffffff18;color:#fff}.allocation-view-guided .top-actions{margin-top:auto;display:block}.allocation-view-guided .privacy-pill{display:none}.allocation-view-guided .role-block{padding:18px 4px 0;border-left:0;border-top:1px solid #ffffff2c}.allocation-view-guided .role-block small,.allocation-view-guided .role-block span{color:#bdd2d3}.allocation-view-guided .logout-button{color:#fff;border-color:#ffffff55}.allocation-view-guided .workspace{max-width:none;margin-left:230px;padding:0 34px 65px}.allocation-view-guided .workspace>.title-row,.allocation-view-guided .workspace>.control-bar,.allocation-view-guided .workspace>.preset-selector,.allocation-view-guided .workspace>.summary-grid,.allocation-view-guided #allocation-form{display:none}.allocation-view-guided.guided-active-step-4 #allocation-form{display:block;max-width:1500px;margin:24px auto 0}.allocation-view-guided .guided-wizard{display:block;max-width:1400px;margin:auto}.guided-wizard-header{min-height:96px;margin:0 -34px;padding:22px 34px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center}.guided-wizard-header h1{font:30px Georgia;margin:0 0 4px}.guided-wizard-header p{margin:0;color:var(--muted);font-size:13px}.guided-header-meta{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:12px}.guided-header-meta b{padding:10px 14px;border-radius:22px;background:#e8f5e9;color:#37624b}.guided-header-meta i{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#62a85f}.guided-wizard-progress{display:grid;grid-template-columns:repeat(5,1fr);margin:28px 0 26px}.guided-wizard-progress button{position:relative;border:0;background:transparent;color:#6d7f86;text-align:center;padding:0}.guided-wizard-progress button:not(:last-child):after{content:"";position:absolute;top:18px;left:calc(50% + 24px);right:calc(-50% + 24px);height:2px;background:#dce6e8}.guided-wizard-progress span{position:relative;z-index:1;width:38px;height:38px;margin:0 auto 9px;border:1px solid #cbd8da;border-radius:50%;background:#edf1f1;display:grid;place-items:center;font-weight:800}.guided-wizard-progress strong{display:block;font-size:12px}.guided-wizard-progress button.active{color:#0e5557}.guided-wizard-progress button.active span,.guided-wizard-progress button.complete span{border-color:#0e5557;background:#0e5557;color:#fff}.guided-wizard-progress button.complete:not(:last-child):after{background:#6aa6a0}.guided-panel{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.guided-panel[hidden]{display:none}.guided-main-card,.guided-help{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:0 6px 22px #17313c0b}.guided-main-card>h2{font:26px Georgia;margin:0 0 7px}.guided-main-card>p{margin:0 0 22px;color:var(--muted);font-size:13px}.guided-date{display:block;max-width:280px;margin-bottom:16px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.guided-date input,.guided-staff-search input{display:block;width:100%;margin-top:6px;border:1px solid #cad7da;border-radius:8px;padding:11px;background:#fff}.guided-unit-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.guided-unit-card{position:relative;display:grid;grid-template-columns:62px 1fr;column-gap:14px;padding:18px;border:2px solid var(--line);border-radius:12px;cursor:pointer}.guided-unit-card:has(input:checked){border-color:#0e5557;box-shadow:0 0 0 2px #0e555714}.guided-unit-card input,.guided-shift-choices input,.guided-preset-choices input{position:absolute;opacity:0}.guided-unit-icon{grid-row:1/3;width:62px;height:62px;border-radius:10px;background:#e4eee8;display:grid;place-items:center;font:28px Georgia;color:#46675a}.guided-unit-card strong{align-self:end;font:22px Georgia}.guided-unit-card small{color:var(--muted);margin-top:4px}.guided-shift-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}.guided-shift-choices label{position:relative;display:flex;justify-content:center;align-items:center;gap:10px;padding:15px;border:1px solid #cad7da;border-radius:9px;cursor:pointer}.guided-shift-choices label:has(input:checked){background:#0e5557;color:#fff}.guided-shift-choices span{font-size:20px}.guided-panel-actions{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.guided-panel-actions a,.guided-back{border:1px solid #bdcbce;background:#fff;color:var(--navy);padding:11px 17px;border-radius:8px;text-decoration:none;font-weight:800}.guided-next{border:0;border-radius:8px;background:#eaa523;color:#142f38;padding:12px 22px;font-weight:800}.guided-next b{margin-left:14px}.guided-help{background:#edf7f4}.guided-help>span{width:38px;height:38px;border-radius:50%;background:#4eaa9e;color:#fff;display:grid;place-items:center;font-weight:800}.guided-help h3{font:20px Georgia;margin:12px 0}.guided-help ol{list-style:none;padding:0;margin:0;counter-reset:help}.guided-help li{display:grid;grid-template-columns:25px 1fr;column-gap:8px;margin:13px 0;counter-increment:help}.guided-help li:before{content:counter(help);grid-row:1/3;width:23px;height:23px;border:1px solid #afc5c2;border-radius:50%;display:grid;place-items:center;font-size:10px}.guided-help li b,.guided-help li small{display:block}.guided-help li b{font-size:11px}.guided-help li small{margin-top:2px;color:var(--muted);font-size:9px}.guided-help.compact p{color:var(--muted);font-size:12px;line-height:1.5}.guided-help.compact a{font-size:12px;font-weight:800;color:#0e5557}.guided-preset-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.guided-preset-choices label{position:relative;min-height:130px;padding:18px;border:2px solid var(--line);border-radius:11px;cursor:pointer}.guided-preset-choices label:has(input:checked){border-color:#0e5557;background:#f1f8f6}.guided-preset-choices span>*{display:block}.guided-preset-choices b{color:#37624b;font-size:11px}.guided-preset-choices strong{font:18px Georgia;margin:14px 0 5px}.guided-preset-choices small{color:var(--muted);font-size:10px}.guided-staff-search{display:block;max-width:420px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.guided-staff-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.guided-staff-list>label{display:grid;grid-template-columns:40px 1fr;column-gap:10px;position:relative;padding:11px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.guided-staff-list>label:has(input:checked){border-color:#4eaa9e;background:#eef8f5}.guided-staff-list input{position:absolute;right:10px;top:10px}.guided-staff-avatar{grid-row:1/3;width:38px;height:38px;border-radius:50%;background:#dfecef;display:grid;place-items:center;font-size:11px;font-weight:800}.guided-staff-list strong{align-self:end;font-size:12px}.guided-staff-list small{color:var(--muted);font-size:9px}.guided-selected-count{margin-top:14px;color:var(--muted);font-size:12px}.guided-selected-count strong{color:var(--navy)}.guided-step-four-heading{display:none}.allocation-view-guided .guided-step-four-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.guided-step-four-heading h1{font:30px Georgia;margin:0}.guided-step-four-heading>p:not(.eyebrow){color:var(--muted);margin:0}.guided-step-four-heading .guided-back{margin-left:auto}.allocation-view-guided #allocation-form>.board-heading{margin-top:0}.allocation-view-guided #allocation-form>.bottom-actions{display:none}.guided-step-four-actions{display:flex;justify-content:space-between;margin-top:22px}.guided-final-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.guided-final-summary>div{padding:17px;border:1px solid var(--line);border-radius:10px}.guided-final-summary span,.guided-final-summary strong{display:block}.guided-final-summary span{color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}.guided-final-summary strong{margin-top:6px;font:18px Georgia}.guided-review-warning{margin-top:14px;padding:14px;border-radius:9px;display:flex;gap:10px}.guided-review-warning strong,.guided-review-warning span{display:block}.guided-review-warning.has-warning{background:#fff5e5;color:#79541c}.guided-review-warning.is-ready{background:#eaf5ed;color:#37624b}.guided-review-warning span{font-size:11px;margin-top:2px}.guided-review-panel .guided-panel-actions>div{display:flex;gap:9px}

@media(max-width:900px){.allocation-view-guided .topbar{position:static;width:auto;height:auto;padding:12px 16px;flex-direction:row}.allocation-view-guided .topbar .brand{padding:0}.allocation-view-guided .main-nav{flex-direction:row;margin:0 auto}.allocation-view-guided .top-actions{margin:0}.allocation-view-guided .role-block{padding:0;border:0}.allocation-view-guided .workspace{margin-left:0;padding:0 18px 55px}.guided-panel{grid-template-columns:1fr}.guided-help{display:none}.guided-staff-list,.guided-preset-choices{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.guided-wizard-header{margin:0 -18px;padding:18px}.guided-header-meta{display:none}.guided-wizard-progress{overflow-x:auto;grid-template-columns:repeat(5,120px)}.guided-unit-choices,.guided-staff-list,.guided-preset-choices,.guided-final-summary{grid-template-columns:1fr}.guided-step-four-heading{align-items:flex-start!important;flex-direction:column}.guided-step-four-heading .guided-back{margin-left:0}.allocation-view-guided .main-nav{display:none}}
@media print{.allocation-view-guided .topbar,.guided-wizard,.guided-step-four-heading,.guided-step-four-actions{display:none!important}.allocation-view-guided .workspace{margin:0;padding:0}.allocation-view-guided #allocation-form{display:block!important}.allocation-view-guided #allocation-form>.bottom-actions{display:none!important}}
.guided-header-meta>a{color:var(--navy);font-weight:800;text-decoration:none;padding:8px 10px;border:1px solid var(--line);border-radius:7px}

/* Add section button */
.add-section-btn{background:#fff;border:2px dashed #cad7da;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:700;color:var(--navy);cursor:pointer;transition:all .15s}
.add-section-btn:hover{border-color:var(--navy);background:#f0f7f4}

/* Temporary section */
.temp-section{border:2px dashed #b4d4be;background:#f8fcf9}
.temp-section .section-head{background:#f0f9f5}
.remove-section-btn{background:none;border:1px solid #e5e7eb;color:#dc2626;cursor:pointer;font-size:12px;font-weight:700;padding:5px 10px;border-radius:6px;margin-left:8px;white-space:nowrap}
.remove-section-btn:hover{background:#fee2e2;border-color:#dc2626}

/* Multiple staff slots */
.section-head .staff-slots{display:flex;flex-wrap:wrap;gap:3px}
.staff-slot{display:flex;align-items:center;gap:2px}
.staff-slot select{min-width:140px!important}
.staff-slot .staff-slot-remove{border:0;background:none;color:#c0392b;font-size:15px;line-height:1;cursor:pointer;padding:0 3px}
.staff-slot .staff-slot-remove:hover{color:#7f1d1d}
.add-staff-btn{display:inline-block;margin-top:4px;background:#fff;border:1px dashed #a8b9bd;color:var(--navy);font-size:10px;font-weight:700;padding:4px 8px;border-radius:6px;cursor:pointer;transition:all .15s}
.add-staff-btn:hover{border-color:var(--navy);background:#f0f7f4}

/* Print: hide add/remove buttons */
@media print{.add-section-btn,.remove-section-btn,.add-staff-btn,.staff-slot-remove{display:none!important}}
