/* GESTMANU baseline: institutional blue, touch-first module cards and wide map/detail. */
.platform-home{max-width:1100px;margin:auto}.platform-heading .brand{justify-content:flex-start;margin:6px 0}.platform-heading .brand img,#login .brand img{width:42px;height:56px}.platform-heading .brand strong,#login .brand strong{font-size:30px;letter-spacing:-1px}.platform-heading .brand small{font-size:11px;text-align:left}.platform-heading .municipality{text-align:left;margin:8px 0 18px}.welcome{margin:16px 0;color:#173d60}.welcome p{font-size:14px;margin:7px 0;color:#536678}.module-grid{display:grid;grid-template-columns:1fr;gap:12px}.module-tile{display:flex;justify-content:flex-start;align-items:center;gap:14px;background:var(--module-color);color:white;min-height:88px;padding:14px 18px;text-align:left;border-radius:7px;border:1px solid #ffffff30;box-shadow:0 2px 4px #173d6010}.module-tile strong{display:block;font-size:18px}.module-tile small{display:block;font-size:12px;line-height:1.5;font-weight:400}.module-symbol{background:#ffffff20;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;flex-shrink:0}.module-symbol svg{width:31px;height:31px}.future-tile{opacity:.8}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.quick-action{display:flex;flex-direction:column;background:#edf2f7;color:#005cb8;border:1px solid #dfe8f0;font-size:12px;min-height:85px;padding:10px 4px}.quick-action .icon{width:26px;height:26px}.platform-caption{color:#365371;text-align:center;font-style:italic;font-size:13px;margin:22px 0}.module-option{background:white;border:1px solid #ccdcec;color:#163751;box-shadow:none}.module-option .module-symbol,.module-prepared .module-symbol{background:var(--module-color);color:white}.module-option .chevron{margin-left:auto;color:#0067bf}.activity-choice{max-width:750px;margin:auto}.activity-choice #new-back{margin-top:18px}.bottom-nav [data-view=new] .icon{background:#006bc9;color:white;border-radius:50%;padding:6px;box-sizing:content-box;margin-top:-5px}.module-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e0e7ef;padding:14px 0}.module-admin-row p{font-size:13px}.map-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.map-search{margin-top:0}.map-master-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.map-master-detail #map{height:55dvh;min-height:320px}.map-master-detail #map-detail{display:none}.module-marker span{display:grid;place-items:center;width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid white;box-shadow:0 2px 5px #0005;color:white}.module-marker svg{width:22px;height:22px;transform:rotate(45deg)}.popup-card img,#map-detail img{max-width:100%;height:160px;object-fit:cover;border-radius:5px;margin:12px 0}.popup-card strong{display:block}.popup-card p{margin:7px 0;overflow-wrap:anywhere}#map-detail strong{display:block}#map-detail p{overflow-wrap:anywhere}#platform-sidebar{display:none}.module-prepared{max-width:750px;margin:auto}.app-shell .home .brand img{width:50px;height:64px}.app-shell .home .brand strong{font-size:36px}#grant-form fieldset{border:1px solid #d2dce6;margin-bottom:18px}button[hidden]{display:none!important}.map-panel form[data-dirty]{border:0}
@media(min-width:768px){.app-shell{max-width:1600px}.bottom-nav{width:min(100%,1600px)}.platform-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.platform-heading .brand strong{font-size:36px}.module-grid{grid-template-columns:1fr 1fr}.selector-grid{grid-template-columns:1fr}.module-tile{min-height:104px}.quick-action{min-height:96px}.platform-home .welcome{margin:28px 0 20px}.map-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.app-shell{position:relative}.app-shell:has(#workspace:not([hidden])) main{width:calc(100% - 208px);margin-left:208px;margin-bottom:0;padding:24px}.app-shell:has(#workspace:not([hidden])) #platform-sidebar:not([hidden]){display:flex;flex-direction:column;position:absolute;top:60px;bottom:0;left:0;width:208px;background:#f7faff;border-right:1px solid #d9e4ed;padding:18px 12px;overflow-y:auto;gap:4px}.app-shell:has(#workspace:not([hidden])) .bottom-nav{display:none}.sidebar-brand{display:flex;align-items:center;gap:6px;margin-bottom:24px;color:#073f68}.sidebar-brand img{width:28px;height:40px}.sidebar-brand strong{font-size:20px}.sidebar-brand small{display:block;font-size:8px}.sidebar-brand+button{margin-top:8px}#platform-sidebar button{justify-content:flex-start;background:none;color:#173d60;font-size:14px;padding:12px 8px;min-height:46px}#platform-sidebar button:hover{background:#dcebfa}.map-master-detail{grid-template-columns:minmax(0,1fr) minmax(230px,.65fr)}.map-master-detail #map-detail{display:block;overflow-y:auto;max-height:65dvh;padding:16px}.map-master-detail #map{height:65dvh;min-height:400px}.map-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.platform-home{padding:8px 16px}.platform-home .module-tile{min-height:115px}.topbar h1{font-size:20px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:16px}}
@media(min-width:1280px){.map-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.map-master-detail{grid-template-columns:minmax(0,1fr) 310px}.platform-home .module-tile strong{font-size:22px}}
@media print{#platform-sidebar{display:none!important}}
.module-marker *{pointer-events:none}
.recent-activities{display:none}.recent-activities .card{justify-content:space-between;gap:14px}.recent-activities h2{font-size:17px;margin:24px 0 10px}.recent-activities .card>span:last-child{text-align:right;flex-shrink:0}.map-master-detail #map-detail img{display:block;width:100%;height:190px}.popup-card img{float:none;width:100%;height:100px;margin:8px 0}.popup-card strong{font-size:13px}.map-master-detail #map-detail{border-radius:7px}
@media(min-width:768px){.recent-activities:not(:empty){display:block}}
@media(min-width:1024px){#map-filters{display:grid;grid-template-columns:minmax(200px,1.4fr) minmax(280px,1.6fr) auto;gap:0 14px;align-items:end}#map-filters>.map-search{margin:0 0 8px}#map-filters>.map-filter-grid{grid-template-columns:1fr 1fr;grid-column:2;grid-row:1}#map-filters>.map-filter-grid label{margin:0 0 8px}#map-filters>button{grid-column:3;grid-row:1;margin-bottom:8px}#map-filters>details{grid-column:1/-1;margin:4px 0}#map-count{margin:8px 0}.map-master-detail #map{height:calc(100dvh - 270px);min-height:320px}.map-master-detail #map-detail{max-height:calc(100dvh - 270px)}}

/* G1.1: Home shortcuts complement the sidebar; recent activity stays in rows. */
.recent-activities .recent-activity-row{display:flex;align-items:center;gap:14px;text-align:left}
.recent-activity-row .recent-module{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 62px;color:var(--module-color)}
.recent-module-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--module-color);color:#fff}
.recent-module-icon svg{width:23px;height:23px}
.recent-activity-row .recent-module small{font-size:10px;font-weight:700;color:var(--module-color)}
.recent-activity-info{flex:1;min-width:0;overflow-wrap:anywhere}
.recent-activity-info small{display:block;line-height:1.5}
.recent-activity-status{max-width:30%;overflow-wrap:anywhere}
@media(min-width:1024px){.platform-home #home-settings,.platform-home #home-profile{display:none}.platform-home .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.platform-home .quick-grid>.quick-action{margin:0}
.module-badge{display:inline-flex;align-items:center;gap:8px;color:var(--module-color);font-weight:700;max-width:100%}.module-badge svg{width:24px;height:24px;flex-shrink:0}.maintenance-screen dl{overflow-wrap:anywhere}.maintenance-screen dd{margin-bottom:10px}#report-form section[hidden]{display:none}#report-form .photo-grid label{min-width:0}#report-form input[type=file]{max-width:100%;width:100%}#report-form .photo-grid img{max-height:240px;object-fit:cover}#activity-results .module-badge{font-size:12px}#intervention-form fieldset{border:0;padding:0;min-width:0}.calendar-event[data-module]{border-left:5px solid var(--module-color)}
@media(max-width:767px){#report-form .photo-grid{grid-template-columns:1fr}.maintenance-screen .actions{display:flex;flex-direction:column}.maintenance-screen button{min-height:44px}}
