/* Evidence-led spacing, display geography and shared action treatment. */
body.ux-shell{--ep-scene:url('../assets/images/qira_skyline_day.webp');background-image:linear-gradient(125deg,#f9f8efc7,#edf2e4cf),var(--ep-scene);background-size:cover;background-position:center;background-attachment:fixed}
body[data-ui-role=super_admin]{--ep-scene:url('../assets/images/qira_house_dusk.webp')}
body[data-ui-role=staff]{--ep-scene:url('../assets/images/qira_skyline_day.webp')}
body[data-ui-role=family]{--ep-scene:url('../assets/images/qira_house_day.webp')}
.comfort-readable .workflow-content{background:transparent}
.comfort-readable .app-shell{background:linear-gradient(110deg,#fffef9f0,#fffdf5e8)}
.comfort-readable .q-page{position:relative;isolation:isolate}
.comfort-readable .q-page:after{display:none}
.comfort-readable .jp-soft-panel{background-image:linear-gradient(115deg,#fffef9f2,#fffef9dc),var(--ep-scene)!important;background-size:cover!important;background-position:center!important}
.comfort-readable .platform-grid>.q-card{background-image:linear-gradient(115deg,#fffef9fa,#fffef9ed),var(--ep-scene);background-size:cover;background-position:center}
.platform-page[data-ui-page]:not([data-ui-page=operations]){display:flex;flex-direction:column;gap:22px}
.platform-page[data-ui-page]:not([data-ui-page=operations])>:is(.q-card,.platform-grid,.platform-chips,.platform-search,.ux-page-intro,.platform-inline,.platform-heading){margin-block:0!important}
.comfort-readable .platform-grid{gap:20px}
.comfort-readable .platform-grid>.q-card{margin:0!important;min-width:0}
.comfort-readable :is(.q-btn,.button,.platform-chips a,.ux-record-drawer-trigger>summary){display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.5;min-height:44px;box-sizing:border-box;max-width:100%}
.comfort-readable :is(.q-btn,.button,.platform-chips a,.ux-record-drawer-trigger>summary)>svg{width:19px;height:19px;flex:0 0 19px}
.ep-back-icon{transform:rotate(180deg)}
.ep-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:8px}
.ep-form-actions>.q-btn{margin:0!important}
.ep-form-actions>.workflow-form-cancel{display:contents}
.ep-form-actions .button-secondary{border:1px solid #b9cbb0;background:#fffef9;color:#315f4c;padding:11px 17px;border-radius:12px;font:650 14px/1.5 var(--sans,Arial,sans-serif);cursor:pointer}
.ep-form-actions .button-secondary:hover{background:#eef4e8;border-color:#8ba77c}
.ep-record-card{display:flex;flex-direction:column;align-items:flex-start}
.ep-record-card>h2{margin-top:2px!important}
.ep-record-card>p{margin-block:7px}
.ep-record-card>.platform-status{align-self:flex-start;margin-block:7px 0}
.ep-record-actions{display:grid;gap:10px;width:100%;margin-top:auto;padding-top:16px}
.ep-record-actions>details.ux-record-drawer-trigger{display:block;width:100%;margin:0!important;padding:0!important;align-self:stretch}
.ep-record-actions>details>summary{display:flex!important;width:100%;padding:11px 15px!important;min-height:46px!important;font:650 14px/1.5 var(--sans,Arial,sans-serif)!important;border:1px solid #bdd0b0!important;background:#edf4e6!important;color:#17483b;border-radius:12px!important}
.ep-record-actions>details>summary:hover{background:#e0edd7!important;border-color:#81a36e!important;transform:none!important;box-shadow:0 4px 12px #17483b0c}
.ep-profile-links{align-self:center;justify-content:center;width:100%;max-width:980px;padding:12px;border:1px solid #d8e2cb;border-radius:17px;background:#f4f7ebde}
.comfort-readable .ep-profile-links>a{flex:1 1 150px;border-color:#ccd9bd;background:#fffef9;font-size:14px;min-height:46px}
.comfort-readable [data-ui-page=profile]>.q-card{width:100%;max-width:980px;margin-inline:auto!important}
.uv-tooltip{width:max-content;white-space:normal;overflow-wrap:anywhere;pointer-events:none;z-index:1500;box-sizing:border-box}
.jp-tour{box-sizing:border-box;overflow-x:hidden;overscroll-behavior:contain}
.jp-tour *{box-sizing:border-box;min-width:0}
.jp-tour footer>.q-btn{white-space:normal;transform:none!important}
.jp-tour[data-welcome=true]{inset:0;margin:auto;transform:none;height:fit-content}
.lp-nav-actions>.qaudio-root{order:10}.lp-nav-actions>[data-public-preferences]{order:20}.lp-nav-actions>.lp-menu{order:30}.lp-nav-actions>.lp-login{order:40;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 15px;border-radius:12px;background:#17483b;color:#fff8df}
.lp-nav-actions>.lp-login:hover{background:#28664e;box-shadow:0 5px 16px #17483b1c}
.lp-nav-actions>.lp-login>svg{width:18px;height:18px}
.jp-small-grid>div:first-child{grid-column:2;grid-row:1}.jp-small-grid>.jp-small-art{grid-column:1;grid-row:1}
/* Maps have actual state/district polygons, with labels inside and one optional focus control. */
.ep-map{container-type:inline-size;position:relative;isolation:isolate;width:100%;min-width:0;font-family:var(--sans,Arial,sans-serif);color:#17483b}
.ep-map-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
.ep-map-toolbar>label{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;max-width:360px;font-size:12px;font-weight:650}
.ep-map-toolbar select{width:100%;min-width:0;min-height:44px;border:1px solid #bacfb5;border-radius:12px;background:#fffef9;color:#17483b;padding:10px 12px;font:600 14px/1.4 var(--sans,Arial,sans-serif)}
.ep-map-toolbar .q-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #bdcdb0;border-radius:12px;background:#fffef9;color:#17483b;font:650 13px/1.5 var(--sans,Arial,sans-serif);cursor:pointer}
.ep-map-toolbar .q-btn>svg{width:18px!important;height:18px!important}
.ep-map-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:stretch}
.ep-map-focus{grid-template-columns:minmax(0,1fr)}
.ep-map-region{min-width:0;border:1px solid #d4dfc9;border-radius:20px;padding:15px;background:radial-gradient(ellipse at 50% 65%,#faf2d0a6,transparent 65%),#f2f5eb;overflow:hidden}
.ep-map-region>h3{font:700 15px/1.5 var(--sans,Arial,sans-serif)!important;letter-spacing:.04em;margin:0 0 8px!important;color:#365e4b}
.ep-map svg{display:block!important;position:static!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;opacity:1;overflow:visible}
.ep-map .ep-map-state{stroke:#fffdf0;stroke-width:1.8;stroke-linejoin:round;cursor:pointer;transition:filter .18s,stroke .18s;vector-effect:non-scaling-stroke}
.ep-map .ep-map-state:hover,.ep-map .ep-map-state:focus-visible{filter:brightness(1.07);stroke:#a48232;outline:none;stroke-width:3}
.ep-map .ep-map-state[role=img]{cursor:default}
.ep-map .ep-map-district{fill:none;stroke:#467562;stroke-width:.6;opacity:.47;pointer-events:none;vector-effect:non-scaling-stroke}
.ep-map .ep-map-names{pointer-events:none}
.ep-map .ep-map-name{fill:#143e32;font-weight:800;paint-order:stroke;stroke:#fffae4;stroke-width:2.2px;stroke-linejoin:round}
.ep-map .ep-map-district-name{fill:#214f3f;font-weight:650;paint-order:stroke;stroke:#fffbed;stroke-width:2px}
.ep-map .ep-map-territory{fill:#ad8130;stroke:#fff4c8;stroke-width:1.2}
.ep-map-credit{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:13px;font-size:12px;line-height:1.6}
.ep-map-credit>a{color:inherit;text-underline-offset:3px;opacity:.85}
.ep-map-regions{display:none;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.ep-map-regions>button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;min-height:44px;border:1px solid #c5d3b9;border-radius:11px;background:#fffef6;color:#315c48;font:650 13px/1.45 var(--sans,Arial,sans-serif);cursor:pointer}
.ep-map-regions>button[aria-pressed=true]{background:#17483b;color:#fff6d9;border-color:#17483b}
.ep-map-regions>button>svg{width:17px!important;height:17px!important}
.ep-map-lights{pointer-events:none}
.ep-map-pulse{animation:epMapPulse var(--ep-speed) ease-in-out var(--ep-phase) infinite;transform-box:fill-box;transform-origin:center}
.ep-map-halo{fill:#e9b95d;opacity:.3;filter:drop-shadow(0 0 7px #d2a449)}
.ep-map-star{fill:#fff3b5;stroke:#a77b25;stroke-width:.6;filter:drop-shadow(0 0 3px #f9cb62)}
.ep-map-live>circle{fill:#d3a73e;stroke:#fff4bd;stroke-width:1.5}
.ep-map[data-ep-paused=true] .ep-map-pulse{animation-play-state:paused}
@keyframes epMapPulse{0%,100%{opacity:0;transform:scale(.3)}35%,60%{opacity:1;transform:scale(1)}}
.lp-cahaya-map.ep-map{margin-top:28px;padding:0}
.lp-cahaya-map .ep-map-toolbar{color:#f5e4b4}
.lp-cahaya-map .ep-map-region{background:linear-gradient(140deg,#e6f1df14,#e9cf831a);border-color:#91af804d}
.lp-cahaya-map .ep-map-region>h3{color:#f5e5ad}
.lp-cahaya-map .ep-map-credit{color:#eaddb5}
.comfort-readable .jp-inline-map{background:#fffef9ed!important;padding:24px!important;overflow:hidden!important;border-radius:23px}
.jp-inline-map .jp-map-stage{margin-top:18px}
.jp-inline-map .ep-map-region{padding:14px}
.comfort-readable .ux-cockpit-bottom:has(>.jp-inline-map:last-child:first-child){grid-template-columns:minmax(0,1fr)}
@container(max-width:680px){.ep-map-grid{grid-template-columns:minmax(0,1fr)}.ep-map-regions{display:grid}.ep-map[data-ep-region=west] .ep-map-grid:not(.ep-map-focus)>.ep-map-region[data-ep-part=east],.ep-map[data-ep-region=east] .ep-map-grid:not(.ep-map-focus)>.ep-map-region[data-ep-part=west]{display:none}.ep-map-region{padding:10px}.ep-map-region>h3{font-size:13px!important}.ep-map-credit{font-size:11px}.ep-map-toolbar{gap:8px}.ep-map-toolbar>label{max-width:none}.ep-map-toolbar .q-btn{font-size:12px}}
@media(min-width:700px){body[data-ui-role=family]>.app-shell,body[data-ui-role=family] #root>.app-shell{width:calc(100% - 48px)!important;max-width:1440px!important;margin:24px auto!important;border-radius:25px;border:1px solid #d9e2ce}body[data-ui-role=family] .app-nav{width:calc(100% - 48px)!important;max-width:1440px!important;left:50%;transform:translateX(-50%);border-radius:18px 18px 0 0}}
@media(max-width:900px){.jp-small-grid>div:first-child,.jp-small-grid>.jp-small-art{grid-column:auto;grid-row:auto}}
@media(max-width:767px){.lp-nav-actions>.lp-login{display:none}.jp-tour[data-welcome=true]{inset:0;margin:auto}.platform-page[data-ui-page]:not([data-ui-page=operations]){gap:18px}.comfort-readable .platform-grid{gap:16px}.ep-profile-links{padding:10px;gap:8px}.comfort-readable .ep-profile-links>a{flex:1 1 42%;font-size:13px}.ep-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ep-form-actions>:is(.q-btn,.button){width:100%}.ep-form-actions .button-secondary{width:100%;font-size:13px;padding:11px 8px}.comfort-readable .jp-inline-map{padding:18px!important}.jp-inline-map .jp-inline-heading h2{font-size:26px}.ep-map-toolbar>label>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.ep-map-pulse{animation:none!important;opacity:.8;transform:none}}.motion-off .ep-map-pulse{animation:none!important;opacity:.8;transform:none}

body.ux-shell .platform-page[data-ui-page=profile]>.q-card,body.ux-shell .platform-page[data-ui-page=profile]>.ep-profile-links{max-width:980px!important;width:100%!important;margin-inline:auto!important}.jp-inline-map:before,.jp-inline-map:after{display:none!important}

/* Keep the scene on the full workspace canvas, including the readable column gutters. */
body:is([data-ui-role=staff],[data-ui-role=super_admin]) .ops-main{background-image:linear-gradient(125deg,#fffdf5e8,#faf9efdc),var(--ep-scene);background-size:cover;background-position:center;background-attachment:fixed}
body:is([data-ui-role=staff],[data-ui-role=super_admin]) .workflow-content{background-image:none}
body:is([data-ui-role=staff],[data-ui-role=super_admin]) .ops-main:before{display:none}body:has(.app-nav.comfort-five-nav) .px-whatsapp{bottom:calc(100px + env(safe-area-inset-bottom))}

.lp-story .lp-nav-actions>.qaudio-root{order:10}.lp-story .lp-nav-actions>.uv-display-trigger{order:20}.lp-story .lp-nav-actions>.lp-menu{order:30}.lp-story .lp-nav-actions>.lp-login{order:40}

body[data-ui-role=family],body[data-ui-role=staff],body[data-ui-role=super_admin]{background-image:linear-gradient(125deg,#f9f8efc7,#edf2e4cf),var(--ep-scene)!important;background-size:cover;background-position:center;background-attachment:fixed}.comfort-readable .app-shell{background-image:linear-gradient(115deg,#fffef9ef,#fffdf5e8),var(--ep-scene);background-size:cover;background-position:center;background-attachment:fixed}

.ep-form-actions{align-items:stretch}.ep-form-actions>.workflow-form-cancel{display:contents!important}.ep-form-actions button{align-self:stretch;margin:0!important;min-height:46px!important}.ep-form-actions>.q-btn{padding-inline:12px}.ep-form-actions .button-secondary{min-height:46px}

html[data-text=large] .ep-form-actions .button-secondary,html[data-text=extra] .ep-form-actions .button-secondary{font-size:16px}html[data-text=large] .ep-map-toolbar select,html[data-text=extra] .ep-map-toolbar select{font-size:17px}

.jp-tour .q-icon-btn{width:44px;height:44px;min-width:44px}

.ep-form-actions button{white-space:nowrap}.ep-form-actions>.q-btn{gap:8px}

/* State audit: native account stack and actions use the same rhythm as platform pages. */
[data-screen=workspace-account]>.uv-photo-card{margin:0 0 22px!important}[data-screen=workspace-account]>.uv-photo-card>.q-btn{margin-top:14px}.ux-create-toolbar summary[aria-haspopup=dialog]:after{display:none!important}
.comfort-readable .platform-page summary>svg{width:19px;height:19px;vertical-align:middle;margin-right:8px;flex:0 0 19px}.comfort-readable .uv-agenda-selection .q-btn{min-height:44px;display:inline-flex;align-items:center;gap:7px}.uv-agenda-selection .q-btn>svg{width:17px;height:17px;flex:0 0 17px}.comfort-readable .ux-data-table>summary{display:flex;align-items:center;gap:8px;min-height:44px}.comfort-readable .ux-data-table>summary>svg{margin-right:0}
.ux-wizard-nav>.q-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}.ux-wizard-nav>.q-btn>svg{width:18px;height:18px;flex:0 0 18px}.uv-photo-card label[role=button]:focus-visible{outline:3px solid #ad8531;outline-offset:3px}
@media(max-width:767px){[data-screen=workspace-account]>.uv-photo-card{margin-bottom:18px!important}}

.ux-drawer form[data-ui-wizard]>.ux-wizard-error:empty{display:none}.ux-drawer form[data-ui-wizard]>.ux-wizard-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;margin-top:0;gap:10px}.ux-drawer form[data-ui-wizard]>.ux-wizard-nav[data-ui-back=false]{grid-template-columns:1fr}.ux-wizard-nav>button{width:100%;margin:0!important}.ux-drawer form[data-ui-wizard]>.workflow-form-cancel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0;padding-top:0}.ux-wizard-nav>button[type=submit]{font-size:14px!important;padding-inline:10px}

/* Align the support shortcut with the dock breakpoint and keep map credits clickable. */
@media(min-width:1001px){body:has(.ops-mobile-nav.comfort-five-nav) .px-whatsapp{bottom:24px}}
@media(max-width:1000px){body:has(.comfort-five-nav) .jp-inline-map .ep-map-credit{padding-inline-end:64px}}

/* An open overlay owns the user's attention and its action area. */
body:has(.comfort-popover:not([hidden]),.qaudio-panel:not([hidden]),dialog[open]) .px-whatsapp{visibility:hidden;pointer-events:none}
