/* Ponteggi Minnella Home UX v3 — designed mobile-first.
   Other operational pages deliberately retain their detailed interfaces. */
body[data-area="home"] #page{max-width:1550px;margin:0 auto;min-width:0}
body[data-area="home"] aside .brand img{filter:none!important;background:transparent!important;image-rendering:auto!important}
#home-dashboard.pm-home-v3{
 --h3-text:#202c3a;--h3-muted:#485b70;--h3-card:#b7c1cc;
 --h3-line:#8d99a8;--h3-brand:#bf2e42;--h3-ink:#eef1f5;
 display:grid;gap:14px;min-width:0;padding-bottom:17px;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#home-dashboard *,#home-dashboard *::before,#home-dashboard *::after{box-sizing:border-box}
#home-dashboard a{text-decoration:none}
#home-dashboard .pm-h3-hero{
 display:flex;align-items:center;min-width:0;
 padding:12px 20px;border:1px solid #596674;border-radius:16px;
 background:radial-gradient(circle at 95% -75%,rgba(218,104,119,.18),transparent 48%),
 linear-gradient(110deg,#2d3641,#3d4855 73%,#343e4b);
 color:var(--h3-ink);box-shadow:0 9px 24px rgba(22,31,41,.17);position:relative;overflow:hidden;
}
#home-dashboard .pm-h3-hero:before{
 content:"";position:absolute;left:0;top:9px;bottom:9px;width:4px;
 border-radius:0 4px 4px 0;background:var(--h3-brand);
}
#home-dashboard .pm-h3-title{min-width:0}
#home-dashboard .pm-h3-overline{
 display:flex;align-items:center;gap:7px;min-height:15px;color:#d7dfe7;
 font-weight:750;font-size:10px;letter-spacing:1.55px;
}
#home-dashboard .pm-h3-overline i{width:5px;height:5px;background:#ef596b;border-radius:50%;display:inline-block}
#home-dashboard .pm-h3-date{text-transform:capitalize;letter-spacing:.1px;font-size:11px;font-weight:500;color:#bfcbd8;margin-left:9px}
#home-dashboard .pm-h3-hero h1{margin:4px 0 0;color:#f7f7fa;font-size:clamp(24px,3vw,32px);line-height:1.15;letter-spacing:-.9px;font-weight:780}
#home-dashboard .pm-h3-redpoint{color:#ed6b78}
#home-dashboard .pm-h3-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#home-dashboard .pm-h3-kpi{
 display:grid;grid-template-columns:1fr 20px;grid-template-rows:auto 1fr auto;
 position:relative;min-width:0;min-height:112px;padding:13px 15px 12px;border:1px solid var(--h3-line);
 border-radius:14px;color:var(--h3-text);background:linear-gradient(140deg,#c2cbd4,#b2bdc9);
 box-shadow:0 5px 14px rgba(24,31,43,.12);transition:transform .14s ease,box-shadow .14s ease;
}
#home-dashboard .pm-h3-kpi:before{content:"";position:absolute;left:13px;top:0;width:31px;height:3px;background:#728295;border-radius:0 0 4px 4px}
#home-dashboard .pm-h3-kpi-primary:before{background:#c72e43}
#home-dashboard .pm-h3-kpi:hover{transform:translateY(-2px);box-shadow:0 7px 22px rgba(24,31,43,.2)}
#home-dashboard .pm-h3-kpi:focus-visible{outline:2px solid #e05466;outline-offset:3px}
#home-dashboard .pm-h3-kpi-title{grid-column:1;font-size:11px;line-height:1.2;font-weight:750;color:#3e4c5c}
#home-dashboard .pm-h3-kpi strong{grid-column:1;align-self:center;color:#202b3a;font-size:35px;line-height:1.02;letter-spacing:-1.1px;font-weight:780}
#home-dashboard .pm-h3-kpi small{grid-column:1;font-size:10px;color:#46576a;line-height:1.2}
#home-dashboard .pm-h3-kpi-arrow{grid-column:2;grid-row:1/4;justify-self:end;align-self:start;font-size:13px;color:#7b3847}
#home-dashboard .pm-h3-main-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:12px;align-items:start;min-width:0}
#home-dashboard .pm-h3-card{
 margin:0!important;border-radius:15px;min-width:0;overflow:hidden;border:1px solid #8797a7;
 background:var(--h3-card);box-shadow:0 5px 16px rgba(27,34,44,.14);
}
#home-dashboard .pm-h3-card-head{
 display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;
 margin:0;padding:14px 16px 11px;border:0;border-bottom:1px solid #93a1af;
 background:linear-gradient(180deg,#bec8d2,#b4c0cb);
}
#home-dashboard .pm-h3-section-kicker{display:block;margin:0 0 4px;font-size:9px;line-height:1.15;font-weight:800;letter-spacing:1.6px;color:#8e2e43}
#home-dashboard .pm-h3-card-head h2,#home-dashboard .pm-h3-attention-head h2{
 font-size:18px;letter-spacing:-.45px;color:#1e2c39;line-height:1.2;font-weight:780;margin:0;
}
#home-dashboard .pm-h3-text-link{display:inline-flex;align-items:center;gap:.25rem;min-height:44px;font-size:11px;color:#90334a;font-weight:800;white-space:nowrap}
#home-dashboard .pm-h3-text-link:hover{text-decoration:underline}
#home-dashboard .pm-h3-agenda-body.panelbody{padding:7px 13px 9px!important;margin:0;background:var(--h3-card);color:#263343}
#home-dashboard .pm-h3-day{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid #98a5b3}
#home-dashboard .pm-h3-day:last-of-type{border-bottom:0}
#home-dashboard .pm-h3-day-label{display:flex;flex-direction:column;gap:3px;min-width:0;padding:5px 4px;color:#243143}
#home-dashboard .pm-h3-day-label>span{font-size:12px;font-weight:800}
#home-dashboard .pm-h3-day-label>small{font-size:10px;color:#596a7d;text-transform:capitalize}
#home-dashboard .pm-h3-day-feed{display:grid;gap:4px;min-width:0;position:relative}
#home-dashboard .pm-h3-day-feed:empty:before{content:"—";color:#708094;font-size:12px;padding:8px 3px}
#home-dashboard .pm-h3-event.transport-card,
#home-dashboard .pm-h3-day-feed .google-event.transport-card{
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;
 margin:0!important;min-height:44px;padding:7px 10px!important;
 border-radius:9px;background:#cdd4dc;border:1px solid #a5b0bd;box-shadow:none;
 color:#263240;overflow:hidden;
}
#home-dashboard .pm-h3-event time{align-self:center;color:#a1293d;font-size:11px;font-weight:800;white-space:nowrap}
#home-dashboard .pm-h3-event-text{min-width:0;display:flex;flex-direction:column;gap:3px}
#home-dashboard .pm-h3-event-text strong{font-size:12px;line-height:1.3;font-weight:770;color:#253243;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#home-dashboard .pm-h3-event-text small{font-size:10px;line-height:1.2;color:#59697b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home-dashboard .pm-h3-event-marker{width:5px;height:17px;background:#bd4052;border-radius:4px}
#home-dashboard .pm-h3-day-feed [data-google-slot]{display:grid;gap:4px;min-width:0}
#home-dashboard .pm-h3-day-feed .google-event.transport-card{
 display:block;min-height:44px;padding:0!important;border-left:3px solid #c03c50;
}
#home-dashboard .pm-h3-day-feed .google-event .calendar-source{display:none}
#home-dashboard .pm-h3-day-feed .google-event .google-event-title{
 display:block;min-height:44px;padding:5px 9px;margin:0;width:100%;font-size:12px;line-height:1.3;
 font-weight:760;color:#243345;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
}
#home-dashboard .pm-h3-day-feed .google-event p,
#home-dashboard .pm-h3-day-feed .google-event a{display:none}
#home-dashboard .pm-h3-day-feed:not(.is-calendar-expanded) .calendar-extra-card{display:none!important}
/* Keep the toggle in its own row after the events, never on top of an event. */
#home-dashboard .pm-h3-agenda .calendar-more-button{
 position:static;grid-column:1;justify-self:start;width:max-content!important;min-width:0;max-width:100%;
 display:inline-flex!important;min-height:44px!important;white-space:nowrap;word-break:normal;overflow-wrap:normal;
 padding:4px!important;margin:0!important;align-items:center;justify-content:center;text-align:center;
 background:#c9acb5;border:1px solid #a65b6b;color:#5f2735;font-weight:800;font-size:11px;line-height:1.2;border-radius:8px;
}
#home-dashboard .pm-h3-upcoming{margin:0;border-top:1px solid #98a5b3}
#home-dashboard .pm-h3-upcoming summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 2px;cursor:pointer;font-size:11px;font-weight:800;color:#853345;list-style:none;min-height:44px}
#home-dashboard .pm-h3-upcoming summary:after{content:"⌄";font-size:14px;color:#903749}
#home-dashboard .pm-h3-upcoming[open] summary:after{content:"⌃"}
#home-dashboard .pm-h3-upcoming summary::-webkit-details-marker{display:none}
#home-dashboard .pm-h3-upcoming .pm-h3-day{border:0;padding:4px 0 9px}
#home-dashboard .pm-h3-no-events{font-size:11px;color:#69798b;margin:8px 0}
#home-dashboard .pm-h3-no-events:empty{display:none}
#home-dashboard .pm-h3-sites-body{padding:6px 10px 8px}
#home-dashboard .pm-h3-site{
 display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;padding:10px 7px;
 color:#253244;border-bottom:1px solid #99a6b3;transition:background .15s ease;
}
#home-dashboard .pm-h3-site:last-child{border-bottom:0}
#home-dashboard .pm-h3-site:hover{background:#cad2da;border-radius:8px}
#home-dashboard .pm-h3-site-dot{display:block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#70849a}
#home-dashboard .pm-h3-site-dot-active{background:#b83046}
#home-dashboard .pm-h3-site-dot-paused{background:#c48f4b}
#home-dashboard .pm-h3-site-main{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:4px}
#home-dashboard .pm-h3-site-main strong{color:#1d2c3a;font-size:12px;font-weight:780;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home-dashboard .pm-h3-site-main small{color:#526477;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home-dashboard .pm-h3-site-side{display:flex;flex:0 0 auto;flex-direction:column;gap:4px;align-items:flex-end;text-align:right}
#home-dashboard .pm-h3-site-side span{font-size:10px;font-weight:790;color:#913b4c}
#home-dashboard .pm-h3-site-side small{font-size:9px;color:#5e6d7d}
#home-dashboard .pm-h3-site-chevron{font-size:22px;font-weight:300;color:#67798c}
#home-dashboard .pm-h3-attention{
 display:grid;gap:9px;min-width:0;padding:13px 16px;
 border:1px solid #626e7d;border-radius:14px;
 background:linear-gradient(110deg,#323d49,#3b4653);box-shadow:0 4px 17px rgba(25,31,41,.13);color:#f0f2f6;
}
#home-dashboard .pm-h3-attention-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#home-dashboard .pm-h3-attention-head h2{color:#f0f3f7;font-size:15px}
#home-dashboard .pm-h3-attention .pm-h3-section-kicker{color:#f18998}
#home-dashboard .pm-h3-attention .pm-h3-text-link{color:#f1aab3}
#home-dashboard .pm-h3-attention-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
#home-dashboard .pm-h3-alert{
 display:flex;gap:9px;align-items:center;min-width:0;
 border:1px solid #657382;border-radius:9px;padding:8px 10px;background:#465260;
 color:#eff3f8;transition:background .15s ease;
}
#home-dashboard .pm-h3-alert:hover{background:#536171}
#home-dashboard .pm-h3-alert-symbol{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border-radius:6px;background:#72404f;color:#ffc8cf;font-weight:800}
#home-dashboard .pm-h3-alert-main{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}
#home-dashboard .pm-h3-alert strong{font-size:11px;color:#f5f5f7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home-dashboard .pm-h3-alert small{font-size:10px;color:#d0d9e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home-dashboard .pm-h3-clear,#home-dashboard .pm-h3-loading,#home-dashboard .pm-h3-info,
#home-dashboard .pm-h3-empty{font-size:12px;line-height:1.45;margin:6px 0;color:inherit}
#home-dashboard .pm-h3-clear{color:#d7e4ea}
#home-dashboard .pm-h3-mail{min-width:0;background:rgba(38,48,58,.45);border:1px solid #7f8b99;border-radius:11px;overflow:hidden;color:#e8edf2}
#home-dashboard .pm-h3-mail summary{padding:11px 15px;min-height:40px;cursor:pointer;font-size:12px;font-weight:700;list-style:none;display:flex;justify-content:space-between}
#home-dashboard .pm-h3-mail summary::-webkit-details-marker{display:none}
#home-dashboard .pm-h3-mail[open] summary{border-bottom:1px solid #768392}
#home-dashboard #gmail-placeholder{padding:8px}
#home-dashboard #gmail-panel{margin:0}
#home-dashboard #gmail-panel .panelbody{padding:10px!important}
#home-dashboard #gmail-panel .transport-card{padding:9px!important}
@media(max-width:900px){
 #home-dashboard .pm-h3-main-grid{grid-template-columns:1fr;gap:10px}
 #home-dashboard .pm-h3-sites-body{padding:4px 10px}
}
@media(max-width:700px){
 body[data-area="home"] aside{padding:22px 13px 5px!important;min-height:74px!important;max-height:82px!important;overflow:hidden;justify-content:flex-end!important;align-items:center!important}
 body[data-area="home"] aside .brand{max-width:202px!important;width:58%!important;margin:0 auto!important;padding:0!important}
 body[data-area="home"] aside .brand img{max-width:202px!important;width:100%!important;filter:none!important;image-rendering:auto!important;opacity:1!important}
 body[data-area="home"] .shell header{min-height:43px!important;padding:5px 10px!important;gap:7px}
 body[data-area="home"] .shell header>span{font-size:10px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-area="home"] main{padding:8px 10px calc(18px + env(safe-area-inset-bottom))!important}
 #home-dashboard.pm-home-v3{gap:9px;padding:0 0 14px}
 #home-dashboard .pm-h3-hero{padding:7px 12px 8px 14px;border-radius:12px}
 #home-dashboard .pm-h3-overline{font-size:9px;letter-spacing:.95px;gap:5px;flex-wrap:wrap;line-height:1.15}
 #home-dashboard .pm-h3-date{font-size:10px;margin-left:0;letter-spacing:0;white-space:nowrap}
 #home-dashboard .pm-h3-hero h1{font-size:22px;letter-spacing:-.55px;margin:4px 0 0;line-height:1.12}
 #home-dashboard .pm-h3-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #home-dashboard .pm-h3-kpi{min-height:85px;padding:9px 11px 8px;border-radius:11px;grid-template-columns:1fr 14px}
 #home-dashboard .pm-h3-kpi:before{left:11px;width:24px;height:3px}
 #home-dashboard .pm-h3-kpi-title{font-size:11px}
 #home-dashboard .pm-h3-kpi strong{font-size:27px;line-height:1.05}
 #home-dashboard .pm-h3-kpi small{font-size:9px;line-height:1.12}
 #home-dashboard .pm-h3-kpi-arrow{font-size:12px}
 #home-dashboard .pm-h3-card{border-radius:12px}
 #home-dashboard .pm-h3-card-head{padding:3px 11px}
 #home-dashboard .pm-h3-sites .pm-h3-card-head{min-height:44px}
 #home-dashboard .pm-h3-card-head h2{font-size:16px}
 #home-dashboard .pm-h3-section-kicker{font-size:8px;letter-spacing:1.3px;margin-bottom:3px}
 #home-dashboard .pm-h3-text-link{font-size:10px}
 #home-dashboard .pm-h3-agenda-body.panelbody{padding:4px 9px 7px!important}
 #home-dashboard .pm-h3-day{grid-template-columns:57px minmax(0,1fr);gap:6px;padding:5px 0}
 #home-dashboard .pm-h3-day-label{padding:5px 0}
 #home-dashboard .pm-h3-day-label span{font-size:11px}
 #home-dashboard .pm-h3-day-label small{font-size:9px;margin:0}
 #home-dashboard .pm-h3-day:not(:has(.transport-card)){padding:0}
 #home-dashboard .pm-h3-day:not(:has(.transport-card)) .pm-h3-day-label{grid-column:1/-1;flex-direction:row;align-items:center;gap:.5rem;padding:7px 0}
 #home-dashboard .pm-h3-day:not(:has(.transport-card)) .pm-h3-day-feed{display:none}
 #home-dashboard .pm-h3-day-feed{gap:3px}
 #home-dashboard .pm-h3-event.transport-card{grid-template-columns:auto minmax(0,1fr) 4px;gap:7px;min-height:44px;padding:5px 7px!important;border-radius:7px}
 #home-dashboard .pm-h3-event time{font-size:10px}
 #home-dashboard .pm-h3-event-text strong{font-size:11px}
 #home-dashboard .pm-h3-event-text small{font-size:9px}
 #home-dashboard .pm-h3-day-feed .google-event.transport-card{min-height:44px;padding:0!important}
 #home-dashboard .pm-h3-day-feed .google-event .google-event-title{font-size:11px}
 #home-dashboard .pm-h3-site{padding:8px 3px;gap:7px}
 #home-dashboard .pm-h3-site-main strong{font-size:11px}
 #home-dashboard .pm-h3-site-main small{font-size:9px}
 #home-dashboard .pm-h3-site-side span{font-size:9px}
 #home-dashboard .pm-h3-site-side small{font-size:8px}
 #home-dashboard .pm-h3-site-chevron{font-size:18px}
 #home-dashboard .pm-h3-attention{padding:10px 12px;gap:8px;border-radius:11px}
 #home-dashboard .pm-h3-attention-head h2{font-size:14px}
 #home-dashboard .pm-h3-attention-items{grid-template-columns:1fr;gap:5px}
 #home-dashboard .pm-h3-alert{padding:6px 8px;min-height:38px}
 #home-dashboard .pm-h3-mail summary{padding:9px 11px;font-size:11px}
}
@media(max-width:460px){
 /* Same four existing actions. Compact only Home so Agenda is not pushed by a second toolbar line. */
 body[data-area="home"]:has(#home-dashboard) .shell>header{justify-content:space-between;gap:4px;padding-inline:8px!important}
 body[data-area="home"]:has(#home-dashboard) .shell>header :is(#menutoggle,#quickadd,.pm-notification-bell,.pm-nav-back){
  min-width:0;min-height:44px;margin:0;font-size:clamp(11px,3.1vw,13px);padding-inline:6px
 }
}
@media(max-width:360px){
 #home-dashboard .pm-h3-hero h1{font-size:20px}
 #home-dashboard .pm-h3-date{font-size:9px}
 #home-dashboard .pm-h3-kpi{min-height:81px}
}
@media(prefers-reduced-motion:reduce){
 #home-dashboard .pm-h3-kpi,#home-dashboard .pm-h3-alert{transition:none}
}
