.healthy-section-nav{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:0 1.3rem}.healthy-section-nav a{display:flex;align-items:center;gap:.4rem;border:1px solid var(--line,#d7dfdc);padding:.65rem 1rem;border-radius:12px;text-decoration:none;color:var(--ink,#18382c)}.healthy-section-nav a.active{background:var(--brand-soft,#e8f5ed);font-weight:700}.healthy-toolbar{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.healthy-toolbar.panel{padding:1rem}.healthy-toolbar .field{min-width:150px;flex:1}.healthy-toolbar .button{min-height:44px}.healthy-connection{margin-left:auto}.healthy-warning{background:#fff1d6;color:#624300;padding:1rem;border-radius:12px;border:1px solid #a46b00;margin-block:1rem}.healthy-warning .button{margin:.4rem .4rem 0 0}.healthy-plan{position:relative;min-height:500px;width:100%;background:repeating-linear-gradient(0deg,transparent,transparent 24px,#71827b12 25px),repeating-linear-gradient(90deg,transparent,transparent 24px,#71827b12 25px);border:1px solid var(--line,#d8e0db);border-radius:16px;overflow:hidden;margin-block:1rem}.healthy-plan-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:#607b6620;stroke:#72857a;stroke-width:.25;stroke-dasharray:1 1}.healthy-plan .healthy-space,.healthy-plan-edit,.healthy-group{position:absolute;box-sizing:border-box}.healthy-group{border:2px dashed #81958a;background:#d9e4dc30;pointer-events:none;padding:.4rem;border-radius:8px}.healthy-plan-edit{border:2px solid var(--brand-color,#18764a);background:var(--surface,#fff);border-radius:10px;display:flex;z-index:2;min-width:0}.healthy-plan-edit.group-editor{background:#e8f0ea90;z-index:1}.healthy-plan-edit.selected{outline:3px solid #d18300;outline-offset:2px}.healthy-space-select{flex:1;min-width:0;overflow:auto;word-break:break-word;background:transparent;border:0;text-align:left;padding:8px;color:inherit;font:inherit}.healthy-space-select small{display:block}.healthy-drag-handle,.healthy-resize-handle{background:transparent;color:inherit;border:0;min-height:44px;min-width:36px;touch-action:none;cursor:grab;font-size:1.35rem;border-radius:8px}.healthy-resize-handle{position:absolute;bottom:0;right:0}.healthy-drag-handle:focus-visible,.healthy-resize-handle:focus-visible{outline:3px solid #d18300}.healthy-drag-handle.dragging{background:#ffe0a3;cursor:grabbing}.healthy-space-list{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:.5rem}.healthy-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:1rem}.healthy-space{display:flex;flex-direction:column;align-items:start;gap:.45rem;text-align:left;min-height:180px;padding:1.1rem;border:1px solid #789789;background:var(--surface,#fff);color:var(--ink,#133829);border-radius:14px;overflow:auto;word-break:break-word;font:inherit;box-shadow:0 3px 12px #112d1c09}.healthy-space strong{font-size:1.1rem}.healthy-space.status-ocupado{border-left:6px solid #176fa0}.healthy-space.status-demorado{border-left:6px solid #b12425}.healthy-space.status-libre{border-left:6px solid #227245}.healthy-space.status-nodisponible{border-left:6px solid #666}.healthy-space.status-reservado{border-left:6px solid #a16b00}.healthy-status{display:inline-flex;align-self:flex-start;font-weight:700;font-size:.85rem;padding:.15rem .5rem;border-radius:6px;background:#eef2ef;color:#294437}.healthy-status.status-demorado{background:#ffe6e6;color:#8f1717}.healthy-status.status-ocupado{background:#e2f2ff;color:#155378}.healthy-status.status-reservado{background:#fff0cd;color:#755000}.healthy-plan.monitor .healthy-space{min-height:0;padding:.6rem;font-size:.85rem}.healthy-dialog-backdrop{position:fixed;inset:0;background:#10251acc;z-index:1100;display:flex;align-items:center;justify-content:center;padding:1rem;overscroll-behavior:contain}.healthy-dialog{max-height:calc(100dvh - 2rem);overflow:auto;width:min(850px,100%);padding:1.5rem!important;display:flex;flex-direction:column;gap:1rem;min-width:0;box-shadow:0 20px 80px #0004}.healthy-dialog .modal-head{position:sticky;top:-1.5rem;background:var(--surface,#fff);padding:.5rem 0;z-index:3;display:flex;justify-content:space-between;gap:1rem}.healthy-dialog .icon-button{min-width:44px;min-height:44px;font-size:1.5rem}.healthy-dialog .healthy-status{width:max-content}.healthy-dialog input,.healthy-dialog select{max-width:100%;min-width:0}.healthy-dialog .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr))}.healthy-detail-list{display:grid;grid-template-columns:145px 1fr;gap:.6rem;margin:0}.healthy-detail-list dt{font-weight:600}.healthy-detail-list dd{margin:0;overflow-wrap:anywhere}.healthy-detail-heading{font-size:1.2rem;font-weight:650}.healthy-calendar{overflow:auto;max-height:75vh;border:1px solid var(--line,#d9e0dc);border-radius:12px;margin-bottom:1rem}.healthy-calendar-grid{display:grid;grid-template-columns:58px repeat(var(--columns),minmax(170px,1fr));position:relative}.healthy-calendar-corner,.healthy-calendar-heading{position:sticky;top:0;z-index:4;background:var(--surface,#fff);padding:.75rem .5rem;font-weight:700;border-bottom:2px solid #a9b9b0}.healthy-calendar-hour{font-size:.8rem;padding:.7rem .3rem;position:sticky;left:0;background:var(--surface,#fff);z-index:2}.healthy-calendar-cell{min-height:34px;border-bottom:1px solid #adbeb144;border-left:1px solid #adbeb144;min-width:0;padding:3px}.healthy-calendar-cell.drop-target{background:#ffebb8;outline:2px solid #997100;outline-offset:-2px}.healthy-event{border:1px solid #759d86;background:var(--brand-soft,#e9f5ec);border-radius:9px;display:flex;align-items:start;color:var(--ink,#133c29);margin-bottom:5px;min-width:0;font:inherit}.healthy-event-detail{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;text-align:left;border:0;background:transparent;color:inherit;font:inherit;padding:.6rem;overflow-wrap:anywhere}.healthy-event:hover,.healthy-event:focus-within{outline:2px solid var(--brand-color,#18764a);outline-offset:1px}.healthy-event span,.healthy-event small{font-size:.82rem}.healthy-event.event-noshow{background:#fff0eb;border-color:#b54a25}.healthy-event.event-attended{background:#e9eef3;border-color:#697d91}.healthy-agenda-list{display:grid;gap:.65rem;padding:.5rem}.healthy-agenda-list>.healthy-event{flex-direction:column;text-align:left;padding:1rem;gap:.5rem}.healthy-screen .healthy-space{min-height:240px;font-size:1.1rem}.healthy-screen h2{margin:0}
@media(max-width:600px){.healthy-dialog-backdrop{padding:0}.healthy-dialog{width:100%;max-height:100dvh;min-height:100dvh;border-radius:0!important;padding:1rem!important}.healthy-dialog .modal-head{top:-1rem}.healthy-toolbar>.button{flex:1}.healthy-detail-list{grid-template-columns:1fr;gap:.15rem}.healthy-detail-list dd{margin-bottom:.6rem}.healthy-plan{min-height:420px}.healthy-plan-edit{flex-direction:column}.healthy-space-select{font-size:.8rem;padding:2px}.healthy-plan.monitor .healthy-space{font-size:.7rem;gap:2px;padding:4px}.healthy-calendar-grid{grid-template-columns:48px repeat(var(--columns),minmax(160px,1fr))}.healthy-toolbar .field{min-width:0;flex-basis:100%}.healthy-section-nav a{flex:1;justify-content:center;font-size:.85rem}.healthy-dialog .healthy-toolbar .button{width:100%;flex-basis:100%}.healthy-dialog details{min-width:0}}
@media(prefers-reduced-motion:reduce){.healthy-workspace *{scroll-behavior:auto!important;transition:none!important}}
/* Native date/select controls and long labels must not force a wider viewport. */
.field{min-width:0}.field input,.field select,.field textarea{min-width:0;max-width:100%}.table-wrap{max-width:100%;overflow:auto}.room-row{flex-wrap:wrap;gap:.6rem}.room-row>span{min-width:0;overflow-wrap:anywhere}fieldset{min-width:0}
@media(max-width:640px){.form-grid{grid-template-columns:minmax(0,1fr)}.segmented-tabs,.history-tabs{max-width:100%;overflow-x:auto}.settings-section{min-width:0}.daily-grid{max-width:100%;overflow-x:auto}}
.toggle-line>span,.check-line>span{min-width:0;white-space:normal;overflow-wrap:anywhere}.member-tabs{max-width:100%;overflow-x:auto;flex-wrap:wrap}
.collection-mode-card{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.collection-mode-grid{min-width:0}@media(max-width:640px){.collection-mode-grid{grid-template-columns:minmax(0,1fr)}}
.healthy-calendar-cell.drop-invalid{background:#ffe5e5;outline-color:#a52424}.healthy-drag-feedback:not(:empty){display:block;position:sticky;top:0;z-index:8;background:#fff1cf;color:#583d00;padding:.7rem;font-weight:700}.healthy-drag-feedback:empty{display:none}
body:has(.healthy-dialog){overflow:hidden}.healthy-group strong{font-size:.85rem}
.healthy-screen-shell{min-height:100dvh;background:var(--canvas);padding:clamp(16px,3vw,48px)}.healthy-screen-shell main{max-width:1600px;margin:auto}.healthy-screen-brand{display:flex;align-items:center;gap:1rem;margin:0 auto 2rem;max-width:1600px}.healthy-screen-brand .brand-mark{width:48px;height:48px}.healthy-screen-brand>span{margin-left:auto;color:var(--ink-soft)}
.healthy-screen-brand{flex-wrap:wrap}.healthy-screen-brand>strong{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.healthy-screen-brand>span{flex-basis:100%;margin-left:0}}

/* Three.js: geometry is visual; the DOM list remains the keyboard/screen-reader alternative. */
.healthy-three{border:1px solid #d8e2d9;border-radius:20px;background:linear-gradient(145deg,#fbfcf8,#edf2e9);overflow:hidden;margin-block:.6rem 1.2rem;position:relative}.healthy-three-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 1.4rem .4rem}.healthy-three-heading h3{margin:.3rem 0;font-size:1.4rem}.healthy-three-heading .eyebrow{font-size:.65rem;letter-spacing:.14em;color:#526e60;font-weight:700}.healthy-three-hint{font-size:.85rem;color:#52685a}.healthy-three-stage{height:570px;position:relative;isolation:isolate;min-width:0;background:radial-gradient(ellipse at center,#f9faf3,#e8eee4);overflow:hidden}.healthy-three-canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}.healthy-three-canvas:active{cursor:grabbing}.healthy-three-labels{position:absolute;inset:0;pointer-events:none}.healthy-three-label{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:start;gap:3px;max-width:156px;background:#ffffffed;border:1px solid #cfdbd1;border-top:3px solid var(--status-color);border-radius:10px;padding:7px 10px;text-align:left;color:#213e30;box-shadow:0 5px 18px #193d2720;font-family:inherit;pointer-events:auto;font-size:.75rem;line-height:1.25;overflow-wrap:anywhere}.healthy-three-label strong{font-size:.8rem}.healthy-three-label span{color:var(--status-color);font-weight:700}.healthy-three-label small{font-size:.68rem}.healthy-three-label:focus-visible{outline:3px solid #a86b15;outline-offset:3px}.healthy-three-controls{display:flex;gap:.4rem;padding:.7rem 1.4rem;flex-wrap:wrap}.healthy-three-controls .button{min-width:44px;min-height:44px;padding:.45rem .8rem}.healthy-three-legend{display:flex;gap:1.2rem;justify-content:center;padding:.8rem 1rem;flex-wrap:wrap;font-size:.8rem;background:#ffffffb0;border-block:1px solid #d8e2d9}.healthy-three-legend span{display:flex;align-items:center;gap:.35rem}.healthy-three-legend i{width:9px;height:9px;border-radius:50%;background:#287653}.healthy-three-legend .busy{background:#267cad}.healthy-three-legend .late{background:#bb4244}.healthy-three-legend .off{background:#737e7c}.healthy-three-accessible{display:flex;flex-wrap:wrap;gap:.4rem;padding:1rem}.healthy-three-accessible>button,.healthy-three-accessible>div{flex:1;min-width:140px;display:flex;flex-direction:column;align-items:start;gap:.25rem;border:1px solid #cfdbd1;background:#fff;border-radius:10px;padding:.65rem .8rem;color:#213e30;font:inherit;font-size:.8rem;text-align:left}.healthy-three-accessible>button{cursor:pointer;min-height:44px}.healthy-three-accessible>button:focus-visible{outline:3px solid #a86b15}.healthy-screen-site{margin-block:1.5rem}.healthy-screen-shell .healthy-three-stage{height:610px}
@media(max-width:600px){.healthy-three-stage,.healthy-screen-shell .healthy-three-stage{height:460px}.healthy-three-heading{padding:1rem;display:block}.healthy-three-heading h3{font-size:1.15rem}.healthy-three-controls{padding:.5rem 1rem}.healthy-three-label{max-width:102px;padding:5px;font-size:.65rem}.healthy-three-label strong{font-size:.68rem}.healthy-three-label small{font-size:.6rem}.healthy-three-accessible{padding:.7rem}.healthy-three-hint{display:block;font-size:.75rem}}

.healthy-three-area-label{position:absolute;transform:translate(-50%,-50%);font-size:.68rem;font-weight:700;color:#425e4e;white-space:nowrap;text-shadow:0 1px #fff;pointer-events:none}

@media(max-width:600px){.healthy-three-label{max-width:88px}.healthy-three-label strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.healthy-three-label small{display:none}.healthy-three-accessible .healthy-status{font-size:.75rem}}
