.housekeeping-workspace{display:grid;gap:20px;min-width:0}
.housekeeping-workspace [hidden]{display:none!important}
.housekeeping-workspace .hk-header{margin:0;padding:24px;border:1px solid #c8e3e4;border-radius:20px;background:linear-gradient(120deg,#e8f5f2,#edf3ff);align-items:center;gap:20px}
.housekeeping-workspace .hk-header h1{font-size:clamp(1.6rem,3vw,2.15rem);margin:4px 0 10px}
.housekeeping-workspace .hk-header .lede{margin:0;max-width:66ch}
.housekeeping-workspace .hk-context{padding:18px 24px}
.housekeeping-workspace .hk-context .field{max-width:600px;margin:0}
.housekeeping-workspace .hk-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:4px 0}
.housekeeping-workspace .hk-tabs .button{min-height:44px;margin:0}
.housekeeping-workspace .button{font-family:inherit}
.housekeeping-workspace .hk-task-card .status-pill{padding:7px 12px;border-radius:999px;background:#e6f3ee;color:#215d4b;line-height:1.4;white-space:normal}
.housekeeping-workspace .hk-tabs [aria-pressed=true]{box-shadow:0 3px 10px #006b6b22}
.housekeeping-workspace .hk-panel{display:grid;gap:20px;min-width:0}
.housekeeping-workspace .card{margin:0;min-width:0;padding:24px}
.housekeeping-workspace .card-header{align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.housekeeping-workspace .card-header h2{margin:0 0 8px;font-size:1.22rem}
.housekeeping-workspace .card-header p{margin:0;max-width:65ch}
.housekeeping-workspace .grid.two{gap:20px;align-items:start}
.housekeeping-workspace .hk-panel>.grid.two{align-items:stretch}
.housekeeping-workspace .employee-row{gap:16px;padding:18px 0;align-items:flex-start;flex-wrap:wrap}
.housekeeping-workspace .employee-row>div:first-child{min-width:0;flex:1 1 220px}
.housekeeping-workspace .employee-row small{display:block;line-height:1.6;overflow-wrap:anywhere}
.housekeeping-workspace .employee-list{display:grid;gap:4px}
.housekeeping-workspace .hk-setup-sections{display:grid;gap:24px}
.housekeeping-workspace .hk-setup-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.housekeeping-workspace .hk-setup-choice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:18px;border:1px solid #cadbe1;border-radius:14px;background:#fff;color:#244653;font:inherit;cursor:pointer;min-width:0;line-height:1.45}
.housekeeping-workspace .hk-setup-choice span{font-size:.9rem;color:#526a75}
.housekeeping-workspace .hk-setup-choice[aria-pressed=true]{background:#e7f4f0;border-color:#168276;box-shadow:inset 0 3px #168276}
.housekeeping-workspace .hk-setup-panel{display:grid;gap:20px;min-width:0}
.housekeeping-workspace [data-housekeeping-form=assign]{margin:16px 0 20px;border:1px solid #97c8be;background:#f6fbf9;border-radius:14px}
@media(max-width:760px){.housekeeping-workspace .hk-setup-nav{grid-template-columns:1fr}.housekeeping-workspace .hk-setup-choice{padding:14px;gap:4px}}
@media(max-width:640px){.housekeeping-workspace .employee-row>div:first-child{flex-basis:auto;width:100%}}
.housekeeping-workspace .hk-address-location{margin-top:24px;padding-top:18px;border-top:1px solid #d7e3e8}
.housekeeping-workspace .hk-address-location small{display:block;margin-top:12px}
.housekeeping-workspace .hk-location-group{border:1px solid #d7e3e8;border-radius:14px;padding:18px;margin:12px 0 20px;background:#f7fafc}
.housekeeping-workspace .hk-location-group>h3{margin:0 0 16px;color:#245965}
.housekeeping-workspace .hk-existing-location{padding:16px;margin-top:12px;background:#fff;border:1px solid #e1e8ec;border-radius:12px}
.housekeeping-workspace .hk-existing-location .card-header{margin-bottom:8px}
.housekeeping-workspace .hk-extra-locations{border-top:1px solid #d7e3e8;margin-top:18px;padding-top:16px}
.housekeeping-workspace .hk-existing-location p{line-height:1.55}
.housekeeping-workspace .button-row,.housekeeping-workspace .form-actions{gap:10px;flex-wrap:wrap}
.housekeeping-workspace .form-grid{gap:20px;align-items:start}
.housekeeping-workspace .form-grid>h2{margin:0 0 8px}
.housekeeping-workspace fieldset{border:1px solid #d4dfe7;border-radius:12px;padding:16px}
.housekeeping-workspace .employee-choice{line-height:1.5;gap:10px;min-height:44px}
.housekeeping-workspace .hk-next{background:#f0f7fb;border-color:#d8e6ee}
.housekeeping-workspace .hk-next li{margin:10px 0;line-height:1.6}
.housekeeping-workspace .hk-attention{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff6df;border-color:#edd7a5}
.housekeeping-workspace .hk-progress{color:#355b62;font-weight:650;margin:0 0 16px}
.housekeeping-workspace details>summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:650;color:#17676a}
.housekeeping-workspace .hk-task-card details[open]>summary{margin-bottom:14px;border-bottom:1px solid #dbe7e7}
.housekeeping-workspace .housekeeping-task-steps{padding-left:24px;margin-bottom:24px}
.housekeeping-workspace .housekeeping-task-steps li{padding:8px 0;border-bottom:1px solid #edf1f4}
.housekeeping-workspace .housekeeping-template-step{gap:12px;padding:14px;border-radius:12px;background:#f3f7fa;align-items:center}
.housekeeping-workspace .housekeeping-template-steps{display:grid;gap:12px;padding:0;list-style:none}
.housekeeping-workspace .housekeeping-address-group{display:grid;gap:16px}
.housekeeping-workspace .housekeeping-work-report .card-header{justify-content:space-between}
.housekeeping-workspace .housekeeping-work-report .card-header>.field{min-width:190px}
@media(max-width:640px){.housekeeping-workspace{gap:16px}.housekeeping-workspace .card,.housekeeping-workspace .hk-header{padding:18px}.housekeeping-workspace .hk-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.housekeeping-workspace .hk-tabs .button{padding:10px 8px;font-size:.92rem;white-space:normal}.housekeeping-workspace .hk-attention{align-items:stretch;flex-direction:column}.housekeeping-workspace .card-header>.button{width:100%}.housekeeping-workspace .housekeeping-template-step{display:flex;flex-direction:column;align-items:stretch}.housekeeping-workspace .housekeeping-template-step .button-row{display:flex}.housekeeping-workspace .grid.two{grid-template-columns:minmax(0,1fr)}.housekeeping-workspace .housekeeping-work-report .card-header{align-items:stretch}.housekeeping-workspace .housekeeping-work-report .card-header>.field{width:100%}}

.housekeeping-workspace .hk-preset-dialog{width:min(740px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #c8d7e2;border-radius:16px;color:#183047;overflow:auto}.housekeeping-workspace .hk-preset-dialog::backdrop{background:#142b4866}.housekeeping-workspace .hk-preset-dialog header{display:flex;gap:20px;align-items:flex-start;background:#edf5fa;padding:20px}.housekeeping-workspace .hk-preset-dialog header>div{flex:1;min-width:0}.housekeeping-workspace .hk-preset-dialog header>button{flex:0 0 44px;width:44px;min-height:44px;padding:0;font-size:24px}.housekeeping-workspace .hk-preset-dialog h2,.housekeeping-workspace .hk-preset-dialog header p{margin:0 0 8px}.housekeeping-workspace .hk-preset-body{padding:20px;display:grid;gap:16px}.housekeeping-workspace .hk-preset-body>p{margin:0}.housekeeping-workspace .hk-preset-body ol{margin:0;padding-left:24px}.housekeeping-workspace .hk-preset-body li{padding:10px 0}.housekeeping-workspace .hk-preset-body li p{margin:6px 0}.housekeeping-workspace .hk-preset-body select{width:100%;font:inherit;padding:10px}.housekeeping-workspace .hk-preset-actions{display:grid;gap:12px}.housekeeping-workspace .hk-preset-body [role=alert]{background:#fff0ed;padding:12px;color:#922b20;border-radius:8px}
.hk-order-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dbe5e1;border-radius:12px;margin:8px 0;background:#fff}.hk-order-row .employee-choice{flex:1;min-width:0;margin:0}.hk-order-number{font-variant-numeric:tabular-nums;color:#52665e}.hk-order-buttons{display:flex;gap:6px}.hk-drag-handle{cursor:grab;min-width:40px}.hk-dragging{opacity:.45;border-color:#16816a}.hk-order-row .button{padding:8px 12px;min-height:40px}@media(max-width:600px){.hk-order-row{gap:6px;padding:9px}.hk-order-buttons{flex-direction:column}.hk-order-number{display:none}.hk-order-row .button{padding:7px 10px}}

.housekeeping-workspace .hk-order-row .button{width:40px;flex:0 0 40px;padding:7px;min-width:40px}.housekeeping-workspace .hk-order-row .employee-choice{min-width:0;flex:1 1 auto;gap:8px;font-size:14px}.hk-order-row .employee-choice span{min-width:0;overflow-wrap:anywhere}.hk-order-buttons{flex:0 0 auto}
@media(max-width:600px){.housekeeping-workspace .hk-location-group,.housekeeping-workspace .hk-existing-location{padding:8px}.housekeeping-workspace [data-housekeeping-form=assign]{padding:10px}.hk-order-row{flex-wrap:wrap}.housekeeping-workspace .hk-order-row .employee-choice{flex-basis:calc(100% - 54px)}.hk-order-buttons{margin-left:auto;flex-direction:row}.housekeeping-workspace .hk-order-row .hk-order-buttons .button{width:44px;min-width:44px}.hk-drag-handle{align-self:flex-start}}

.hk-people-hours{margin:20px 0}.hk-person-hours{border:1px solid #d5e3e3;border-radius:12px;padding:12px 16px;margin:10px 0;background:#f7fbfa}.hk-person-hours>summary{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.hk-person-hours>summary>span{flex:1;min-width:160px}.hk-person-hours .housekeeping-report-shift{margin:12px 0}.hk-person-hours .button{margin:10px 0}

/* Headings and action rows span both columns; controls never share a heading row. */
.housekeeping-workspace .form-grid>.full,.housekeeping-workspace .form-grid>.form-actions{grid-column:1/-1}
.housekeeping-workspace .form-grid>input[type=hidden]{display:none}
.housekeeping-workspace .hk-step-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:12px 0}
.housekeeping-workspace .hk-step-add{display:grid;grid-template-rows:1fr auto;gap:14px;min-width:0;padding:18px;border:1px solid #d4e2e5;border-radius:14px;background:#f8fbfb}
.housekeeping-workspace .hk-step-add>.field{margin:0;min-width:0}
.housekeeping-workspace .hk-step-add>.button{width:100%;margin:0;min-height:44px;white-space:normal}
.housekeeping-workspace [data-housekeeping-form=action] textarea{resize:vertical;min-height:100px}
.housekeeping-workspace .housekeeping-template-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px}
.housekeeping-workspace .housekeeping-template-step>span{font-weight:600;overflow-wrap:anywhere}
.housekeeping-workspace .housekeeping-template-step>small{grid-column:1;color:#536779}
.housekeeping-workspace .housekeeping-template-step>.button-row{grid-column:2;grid-row:1/span 2;display:flex;gap:8px;align-items:center}
@media(max-width:640px){.housekeeping-workspace .housekeeping-template-step{display:flex;gap:10px}.housekeeping-workspace .housekeeping-template-step>.button-row{flex-wrap:wrap}}
@media(max-width:700px){.housekeeping-workspace .hk-step-add-grid{grid-template-columns:minmax(0,1fr)}.housekeeping-workspace .hk-step-add{padding:14px}}

.hk-photo-policy{border:1px solid #c7ded8;border-radius:14px;background:#f2f8f6;padding:20px;display:grid;gap:12px}.hk-photo-policy h3,.hk-photo-policy p{margin:0}.hk-photo-policy .form-grid{margin:0}.hk-photo-progress{padding:12px 14px;border-radius:10px;background:#edf6f4;color:#24554d}
