/* Common page rhythm. Geometry inside the home board, room map, calendars and
   the independent white water register is deliberately owned by those screens. */
:root{--hc-page-gap:12px;--hc-page-line:#304143;--hc-page-muted:#a9babb;--hc-page-accent:#72dfd1;--hc-footer-clearance:calc(112px + env(safe-area-inset-bottom))}
body.hc-layout-screen #app{display:flex;flex-direction:column;min-height:100dvh;padding-bottom:0}
body.hc-layout-screen #app > .topbar{flex:0 0 auto}
body.hc-layout-screen #app > main{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--hc-footer-clearance)}
body.hc-layout-screen #app > main:has(> .hc-screen.active){padding-bottom:var(--hc-footer-clearance)}
#app > main > .hc-screen.active{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:0}
#app > main > .hc-screen--hub.active{display:flex;flex-direction:column;padding-top:0}
body.hc-layout-hub #app > .topbar{padding:18px 18px 12px}
body.hc-layout-hub #app .brand{gap:16px;align-items:center}
body.hc-layout-hub #app .brand-icon{width:100px;height:auto;aspect-ratio:193/162;object-fit:contain}
body.hc-layout-hub #app .brand-name{font-size:24px}
body.hc-layout-hub #app .brand-sub{font-size:13px}
body.hc-layout-hub #app > main{padding-top:0}
#app .hc-screen > :is(.warehouse-head,.inventory-head,.checklist-head,.maintenance-head,.consumption-head,.incidents-head,.ev-head){gap:12px;align-items:center;margin:8px 0 20px;padding:0;flex-shrink:0;min-width:0}
#app .hc-screen > :is(.warehouse-head,.inventory-head,.checklist-head,.maintenance-head,.consumption-head,.incidents-head,.ev-head) h1{font-size:clamp(25px,6.8vw,34px);line-height:1.12;margin:0 0 6px;overflow-wrap:break-word}
#app .hc-screen > :is(.warehouse-head,.inventory-head,.checklist-head,.maintenance-head,.consumption-head,.incidents-head,.ev-head) .back-button{width:44px;height:44px;min-width:44px;flex:none;border-radius:14px}
#app .hc-screen--hub > :is(.warehouse-head,.inventory-head,.checklist-head,.maintenance-head,.consumption-head,.ev-head) :is(.eyebrow,.ev-kicker){display:none}
#app .hc-screen--hub :is(.warehouse-hotel-name,.ev-hotel){font-size:14px;line-height:1.3}
#app .hc-screen--hub > .hc-hub{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--hc-page-gap);width:100%;flex-shrink:0;margin:auto 0}
#app .hc-screen--hub:has(> :is(.er-clarification,.ev-foot,.warehouse-readonly-note)) > .hc-hub{margin:auto 0 0}
#app .hc-screen--hub > :is(.er-clarification,.warehouse-readonly-note){flex-shrink:0;margin:16px 0 0}
#app .hc-screen--hub > .warehouse-readonly-note{padding:8px 12px}
#app .hc-screen--hub > .ev-foot{flex-shrink:0;margin:8px 0 0}
#app .hc-screen--hub > .maintenance-library-intro{order:2;flex-shrink:0;margin:16px 0 0;font-size:12px;line-height:1.5}
#app #maintenanceLibraryView > .hc-hub{margin:auto 0 0}
#app #maintenanceLibraryView .hc-hub-card--support{min-height:112px}
#app #maintenanceLibraryView .hc-hub-card--secondary{grid-column:span 6}
#app #maintenanceLibraryView .hc-hub-card--primary{grid-column:span 6}
#app .hc-hub--shared > .hc-hub-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;position:relative;min-width:0;width:100%;gap:14px;padding:20px 16px;text-align:left;border:1px solid var(--hc-page-line);border-radius:22px;box-sizing:border-box;transition:transform .15s,border-color .15s,box-shadow .15s}
#app .hc-hub--shared > .hc-hub-card--primary{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}
#app .hc-hub--shared > .hc-hub-card--secondary{grid-column:span 5;min-height:clamp(184px,32dvh,280px)}
#app .hc-hub--shared .hc-hub-copy{display:flex;flex-direction:column;gap:8px;min-width:0;margin-top:auto}
#app .hc-hub--shared strong{font-size:clamp(18px,4.7vw,25px);font-weight:700;line-height:1.14;overflow-wrap:break-word}
#app .hc-hub--shared small{font-size:12px;line-height:1.5;color:var(--hc-page-muted);margin:0}
#app .hc-hub--shared .hc-hub-icon{display:grid;place-items:center;flex:none;width:52px;height:52px;border:0;border-radius:15px;background:#52c5bc0d;color:var(--hc-page-accent)}
#app .hc-hub--shared .hc-hub-icon svg{width:34px;height:34px}
#app .hc-hub--shared .hc-hub-arrow{position:absolute;right:15px;top:18px;font-size:23px;line-height:1;color:var(--hc-page-accent)}
#app .hc-hub--shared > .hc-hub-card--support{grid-column:span var(--hc-support-span,4);min-height:clamp(112px,18dvh,152px);padding:14px 10px;gap:10px;border-radius:17px;background:#111b1e!important;border-color:#293c3f!important}
#app .hc-hub--shared .hc-hub-card--support .hc-hub-copy{margin-top:0}
#app .hc-hub--shared .hc-hub-card--support .hc-hub-icon{width:34px;height:34px;background:none}
#app .hc-hub--shared .hc-hub-card--support svg{width:27px;height:27px}
#app .hc-hub--shared .hc-hub-card--support strong{font-size:clamp(12px,3.3vw,16px);line-height:1.25}
#app .hc-hub--shared .hc-hub-card--support small{font-size:12px;line-height:1.35}
#app .hc-hub--shared .hc-hub-card--support .hc-hub-arrow{display:none}
#app .hc-hub--shared > .hc-hub-card:active{transform:scale(.98);box-shadow:inset 0 0 26px #52c5bc22}
#app .hc-hub--shared > .hc-hub-card:focus-visible{outline:2px solid var(--hc-page-accent);outline-offset:3px}
#app .hc-hub .ev-home-support .ev-folder-icon{width:34px;height:34px}
#app .hc-hub .ev-home-support .ev-folder-icon svg{width:27px;height:27px}
/* Repeated detail-screen chrome; no selector below touches map room controls. */
#app .hc-screen:not(.hc-screen--hub) > :is(.ev-foot,.er-clarification){margin-top:auto;padding-top:16px}
#app .hc-screen.active > *{flex-shrink:0}
#app .hc-screen :is(.hc-op-toolbar,.er-toolbar){gap:12px;margin-block:16px}
#app .hc-screen :is(.hc-op-card,.er-card,.ev-panel){border-radius:18px}
#app .hc-screen > :is(.hc-op-live,.hc-op-paging){line-height:1.5}
#app .hc-screen :is(.hc-op-button,.ev-btn){min-height:44px}
#app .hc-screen :is(.hc-op-content,.er-results){min-width:0}
#app #moreView .hc-more-technical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
#app #moreView .hc-more-technical .nav-item{position:static;display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:18px;min-height:120px;padding:16px;border:1px solid var(--hc-page-line);border-radius:18px;background:#111b1e!important;color:var(--hc-page-accent)}
#app #moreView .hc-more-technical svg{width:30px;height:30px}
#app #moreView .hc-more-technical small{font-size:16px;font-weight:600;color:#eff4f3}
@media(max-width:365px){body.hc-layout-hub #app .brand-icon{width:88px}body.hc-layout-hub #app .brand{gap:12px}body.hc-layout-hub #app .brand-name{font-size:18px}}
@media(max-width:350px){:root{--hc-page-gap:8px}#app .hc-hub--shared > .hc-hub-card{padding:15px 12px}#app .hc-hub--shared > .hc-hub-card--support{padding:12px 8px}}
@media(max-height:650px) and (max-width:600px){
 #app .hc-screen--hub > :is(.warehouse-head,.inventory-head,.checklist-head,.maintenance-head,.consumption-head,.ev-head){margin-bottom:12px}
 #app .hc-hub--shared > :is(.hc-hub-card--primary,.hc-hub-card--secondary){min-height:156px;padding:14px 12px;gap:10px}
 #app .hc-hub--shared .hc-hub-icon{width:40px;height:40px}#app .hc-hub--shared .hc-hub-icon svg{width:28px;height:28px}
 #app .hc-hub--shared > .hc-hub-card--support{min-height:108px;padding:10px 8px;gap:6px}
}
@media(prefers-reduced-motion:reduce){#app .hc-hub--shared > .hc-hub-card{transition:none}}
