/* Home presentation only. Existing module screens and controllers are retained. */
#hcOriginalModuleRoutes[hidden],#hcLegacyHomeNav[hidden]{display:none!important}
#hcHomeBoard{display:block;width:100%;height:auto;overflow:visible;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#hcHomeBoard text{fill:#f3f4f4;font-family:Arial,Helvetica,sans-serif}
#hcHomeBoard .button{cursor:pointer;outline:none}
#hcHomeBoard .card{fill:url(#card);stroke:#697277;stroke-width:1.25;transition:stroke .15s,fill .15s}
#hcHomeBoard .icon{color:#aab5bc}#hcHomeBoard .bar{fill:#566168}
#hcHomeBoard .button.active .card{stroke:#52c5bc;stroke-width:1.8;fill:url(#selected)}
#hcHomeBoard .button.active .icon{color:#5dd7cc}#hcHomeBoard .button.active .bar{fill:#55c5ba}
#hcHomeBoard .button:focus-visible .card,#hcHomeBoard .button:focus-visible .core{stroke:#a2f1e5;stroke-width:3}
#hcHomeBoard .core{fill:url(#core);stroke:url(#hcEclipseRim);stroke-width:1.5;transition:stroke .18s}
#hcHomeBoard .core-logo{color:#f1f4f3}#hcHomeBoard .feed{opacity:0;pointer-events:none}
#hcHomeBoard.flowing .feed{opacity:1}#hcHomeBoard.powered .core{stroke:url(#hcEclipseRim);stroke-width:2.2;filter:url(#glow)}
#hcHomeBoard.powered .core-logo{filter:url(#glow)}#hcCoreLight{opacity:0;transition:opacity .18s;pointer-events:none}#hcHomeBoard.powered #hcCoreLight{opacity:.12}
#homeView .control-section{padding:0}#homeView .control-section h2{margin:18px 0 4px;font-size:clamp(24px,5vw,36px)}
.hc-maintenance-shortcuts{display:grid;gap:10px;margin:0 0 16px}.hc-maintenance-shortcuts button{width:100%;text-align:left;grid-template-columns:30px 1fr 16px}.hc-maintenance-shortcuts strong,.hc-maintenance-shortcuts small{display:block}.hc-maintenance-shortcuts small{color:#a2afb5;font-size:12px;margin-top:5px}.hc-incidents-mark{color:#f08c8c}
.bottom-nav.hc-wave-nav{display:grid!important;grid-template-columns:1fr 1fr 1fr;align-items:end;min-height:92px;padding:20px 12px max(8px,env(safe-area-inset-bottom));background:#0b1113!important;border:0!important;box-shadow:none!important;isolation:isolate}
.hc-footer-wave{position:absolute;inset:0;width:100%;height:95px;pointer-events:none;z-index:-1}.hc-footer-wave path{fill:none;stroke:#e4e9e9;stroke-width:1.25}
.hc-wave-nav .hc-footer-button,.hc-wave-nav .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:auto;height:auto;min-width:44px;min-height:56px;padding:6px 14px;border:0;border-radius:0;background:transparent!important;color:#dbe4e5;box-shadow:none!important;font:inherit}
#hcGlobalBack{justify-self:start}#hcMessages{justify-self:center}.hc-wave-nav .nav-item{justify-self:end}
.hc-wave-nav .hc-footer-button svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}#hcMessages svg{width:33px;height:33px}
.hc-wave-nav small{font-size:11px}.hc-wave-nav button:after{display:none!important}#hcMessages.active{color:#72dfd1}#hcMessages.active svg{filter:drop-shadow(0 0 3px #52c5bc60)}
.hc-wave-nav button:focus-visible{outline:2px solid #72dfd1;outline-offset:-2px}.hc-more-technical{display:flex;gap:12px;margin:16px 0}.hc-more-technical button{position:static;flex:1}
body #app main{padding-bottom:115px}
@media(prefers-reduced-motion:reduce){#hcHomeBoard *{transition:none!important}}

body.hc-home-screen,body.hc-home-screen #app,body.hc-home-screen .topbar{background:#0b1113}body.hc-home-screen .hotel-hero{border-color:#4c5659}body.hc-home-screen .control-section h2{color:#f3f4f4}

/* One viewport on the home screen; inner business screens retain scrolling. */
html:has(body.hc-home-screen){height:100%;overflow:hidden;overscroll-behavior:none}
body.hc-home-screen{height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}
body.hc-home-screen #app{height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column}
body.hc-home-screen .topbar{flex:0 0 auto;padding:8px 16px 4px}
body.hc-home-screen .brand{gap:12px}
body.hc-home-screen .brand-icon{width:clamp(48px,9dvh,72px)}
body.hc-home-screen .brand-name{font-size:clamp(18px,3.1dvh,24px)}
body.hc-home-screen .brand-sub{font-size:11px}
body.hc-home-screen #app main{flex:1;min-height:0;padding:0 14px!important;display:flex;flex-direction:column}
body.hc-home-screen #homeView.active{flex:1;min-height:0;display:grid;grid-template-rows:clamp(48px,8dvh,66px) minmax(50px,1fr) minmax(0,1.65fr);gap:8px}
body.hc-home-screen .hotel-tabs{padding:0;min-height:0}
body.hc-home-screen .hotel-tab{height:100%;min-height:44px}
body.hc-home-screen .hotel-hero{min-height:0}
body.hc-home-screen .hotel-hero img{height:100%;width:100%;aspect-ratio:auto;object-fit:cover}
body.hc-home-screen #homeView .control-section{min-height:0;display:flex;flex-direction:column}
body.hc-home-screen #homeView .control-section h2{font-size:clamp(20px,3.3dvh,28px);margin:0 0 4px;flex:0 0 auto}
body.hc-home-screen #hcHomeBoard{flex:1;min-height:0;width:100%;height:100%;overflow:hidden}
body.hc-home-screen .bottom-nav.hc-wave-nav{position:relative;flex:0 0 auto;min-height:76px;width:100%;padding-top:14px;padding-bottom:max(5px,env(safe-area-inset-bottom))}
body.hc-home-screen .hc-footer-wave{height:76px}
#hcAccountSettings #hcConnectionStatus{position:static!important;display:block!important;max-width:none!important;width:100%;margin:12px 0;padding:12px;border-radius:12px;background:#152421!important;font-size:13px}
body.hc-home-screen #offlineBanner:not(.hidden){flex:0 0 auto;margin:3px 0;font-size:11px;padding:4px 8px}
@media(max-height:550px) and (orientation:landscape){
 body.hc-home-screen .topbar{padding:4px 12px}body.hc-home-screen .brand-icon{width:38px}body.hc-home-screen .brand-sub{display:none}
 body.hc-home-screen #homeView.active{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);grid-template-rows:44px minmax(0,1fr);gap:8px}
 body.hc-home-screen .hotel-tabs{grid-column:1/-1}body.hc-home-screen .control-section{grid-column:2;grid-row:2}
 body.hc-home-screen .bottom-nav.hc-wave-nav{min-height:60px;padding-top:4px}body.hc-home-screen .hc-footer-wave{height:60px}
 body.hc-home-screen .hc-wave-nav .hc-footer-button,body.hc-home-screen .hc-wave-nav .nav-item{min-height:48px;padding:3px 14px}
}

.hc-wave-nav .nav-item:not(.active){color:#dbe4e5!important}.hc-wave-nav .nav-item.active{color:#72dfd1!important}

.hc-wave-nav .hc-footer-button{color:#dbe4e5!important}#hcMessages.active{color:#72dfd1!important}
body.hc-home-screen #app main{background:#0b1113!important}

/* Matching teal icon frames for every maintenance entry. */
#maintenanceView .maintenance-folder{grid-template-columns:44px minmax(0,1fr) 16px;gap:12px}
#maintenanceView .maintenance-folder-icon{width:44px;height:44px;box-sizing:border-box;border:2px solid #52c5bc;border-radius:12px;color:#72dfd1}
#maintenanceView .maintenance-folder-icon svg{width:26px;height:26px}
#maintenanceView .maintenance-folder-icon .hc-maintenance-line-icon{fill:none;stroke:currentColor}
#maintenanceView .maintenance-folder-copy{gap:3px}
#maintenanceView .maintenance-folder-copy small{margin-top:0}
#maintenanceView .maintenance-folder-arrow{color:#52c5bc;font-size:30px}
#maintenanceView .hc-maintenance-shortcuts{margin-bottom:10px}
#maintenanceView .maintenance-controls{margin-bottom:10px}


/* Maintenance hub: two daily actions, three discreet supporting tools. */
body:has(#maintenanceView.active) .topbar{padding:10px 16px 6px}
body:has(#maintenanceView.active) .brand{gap:12px;align-items:center}
body:has(#maintenanceView.active) .brand-icon{width:52px;height:44px;object-fit:contain}
body:has(#maintenanceView.active) .brand-name{font-size:20px}
body:has(#maintenanceView.active) .brand-sub{font-size:11px}
body:has(#maintenanceView.active) main{padding-top:10px}
#maintenanceView .maintenance-head{margin:0 0 18px;gap:12px;align-items:center}
#maintenanceView .maintenance-head .back-button{width:40px;height:40px;min-width:40px}
#maintenanceView .maintenance-head .eyebrow{display:none}
#maintenanceView .maintenance-title-block h1{font-size:clamp(25px,6.8vw,34px);line-height:1.1;margin:0 0 6px}
#maintenanceView .warehouse-hotel-name{font-size:14px;line-height:1.3}
.hc-maintenance-hub{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;max-width:940px;margin:auto}
#maintenanceView .hc-maintenance-hub .maintenance-folder{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;position:relative;gap:14px;padding:20px 16px;text-align:left;min-width:0;border-radius:22px;transition:transform .15s,border-color .15s,box-shadow .15s}
#maintenanceView .hc-maintenance-hub .maintenance-folder:active{transform:scale(.98);box-shadow:inset 0 0 26px #52c5bc22}
#maintenanceView .hc-maintenance-hub .maintenance-folder:focus-visible{outline:2px solid #72dfd1;outline-offset:3px}
#maintenanceView .hc-maintenance-hub .maintenance-folder-copy{gap:8px}
#maintenanceView .hc-maintenance-hub .maintenance-folder-copy strong{font-size:clamp(18px,4.7vw,25px);line-height:1.14;font-weight:700}
#maintenanceView .hc-maintenance-hub .maintenance-folder-copy small{font-size:12px;line-height:1.5;color:#a9babb}
#maintenanceView .hc-maintenance-hub .maintenance-folder-arrow{position:absolute;right:15px;top:18px;font-size:23px;line-height:1}
#maintenanceView .hc-maintenance-hub .maintenance-folder-icon{width:52px;height:52px;border:0;background:#52c5bc0d;border-radius:15px}
#maintenanceView .hc-maintenance-hub .maintenance-folder-icon svg{width:34px;height:34px}
#maintenanceView .hc-entry-measures{grid-column:span 7;min-height:clamp(184px,32dvh,280px);background:radial-gradient(ellipse at 0 0,#204c46,transparent 85%),#122121!important;border-color:#487e76!important}
#maintenanceView .hc-entry-checklist{grid-column:span 5;min-height:clamp(184px,32dvh,280px)}
#maintenanceView .hc-entry-measures .maintenance-folder-copy,#maintenanceView .hc-entry-checklist .maintenance-folder-copy{margin-top:auto}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library){grid-column:span 4;min-height:clamp(112px,18dvh,152px);padding:14px 10px;gap:10px;border-radius:17px;background:#111b1e!important;border-color:#293c3f!important}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) .maintenance-folder-icon{width:34px;height:34px;background:none;border:0}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) svg{width:27px;height:27px}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) strong{font-size:clamp(12px,3.3vw,16px);line-height:1.25}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) small{font-size:10px;line-height:1.35}
#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) .maintenance-folder-arrow{display:none}
@media(max-width:350px){.hc-maintenance-hub{gap:8px}#maintenanceView .hc-maintenance-hub .maintenance-folder{padding:15px 12px}#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library){padding:12px 8px}#maintenanceView .hc-maintenance-hub .maintenance-folder-copy small{font-size:11px}#maintenanceView .hc-maintenance-hub :is(.hc-entry-incidents,.hc-entry-sensors,.hc-entry-library) small{font-size:10px}}

/* A single soft eclipse corona on press; the existing core and cards keep their shape. */
#hcCoreCorona{pointer-events:none}
#hcCoreCorona .hc-corona-bloom,#hcCoreCorona .hc-corona-ring{opacity:0;transform-origin:0 0}
#hcHomeBoard.powered .hc-corona-bloom{animation:hcCoronaBloom .82s cubic-bezier(.16,.6,.25,1) both}
#hcHomeBoard.powered .hc-corona-ring{animation:hcCoronaRing .82s ease-out both}
#hcHomeBoard.powered .hc-corona-sweep{transform-origin:0 0;animation:hcCoronaSweep .82s cubic-bezier(.2,.55,.35,1) both}
@keyframes hcCoronaBloom{0%{opacity:0;transform:scale(.94)}22%{opacity:1;transform:scale(1)}62%{opacity:.85;transform:scale(1.045)}100%{opacity:0;transform:scale(1.12)}}
@keyframes hcCoronaRing{0%{opacity:0}12%{opacity:.9}36%{opacity:1}75%{opacity:.65}100%{opacity:0}}
@keyframes hcCoronaSweep{from{transform:rotate(-30deg)}to{transform:rotate(92deg)}}
@media(prefers-reduced-motion:reduce){#hcHomeBoard.powered .hc-corona-bloom{animation:hcCoronaRing .55s ease-out both;transform:none}#hcHomeBoard.powered .hc-corona-ring{animation-duration:.55s}#hcHomeBoard.powered .hc-corona-sweep{animation:none}}

/* Permanent green identity; the original HC/leaf paths and circle remain intact. */
#hcCoreEclipse{pointer-events:none;opacity:.86;transition:opacity .18s ease-out}#hcHomeBoard.powered #hcCoreEclipse{opacity:1}

/* Ambient breathing: light only, synchronized and paused outside the visible home. */
#hcHomeCore{animation:hcCoreBreathe 4.8s ease-in-out infinite;animation-play-state:paused}
#hcCoreEclipse{animation:hcHaloBreathe 4.8s ease-in-out infinite;animation-play-state:paused}
#hcHomeBoard.flowing #hcHomeCore,#hcHomeBoard.flowing #hcCoreEclipse{animation-play-state:running}
#hcHomeBoard.powered #hcHomeCore{animation:none;filter:none}
#hcHomeBoard.powered #hcCoreEclipse{animation:none;opacity:1}
@keyframes hcCoreBreathe{0%,100%{filter:brightness(.88)}50%{filter:brightness(1.30)}}
@keyframes hcHaloBreathe{0%,100%{opacity:.32}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){
 #hcHomeCore,#hcCoreEclipse{animation:none}
 #hcHomeCore{filter:none}
}
