/* V48: the v46 dashboard direction, with one restrained scale across the app. */
:root{
 --ui-title:28px;--ui-section:22px;--ui-card-title:18px;--ui-row-title:16px;
 --ui-body:15px;--ui-control:14px;--ui-total:40px;--ui-card-total:34px;
 --panel-radius:24px;--panel-space:24px;
 --ditoc-blue:#c4e6f3;--ditoc-blue-soft:#e0f3fb;--ditoc-rose:#fce6e8;
}
body:has(.shell){background:#f0fafc;font-size:var(--ui-body)}
.shell{min-height:100vh;background:linear-gradient(120deg,#f5fcfd,#eef9fc)}
.app-topbar{background:transparent;padding:20px 28px}
.app-topbar .view-heading h1{font-size:var(--ui-title);line-height:1.25;letter-spacing:-.8px}
.app-topbar .property-switch{font-size:14px;color:#626b7e}
.app-topbar .header-ask{font-size:var(--ui-control);font-weight:600;min-height:46px;padding:5px 14px;gap:10px}
.app-topbar .header-ask>.brand-header-picto{width:36px;height:auto}
.desktop-help-note{font-size:23px}
.page{max-width:1320px;margin-inline:auto;padding:20px 28px 32px}
.home-experience,.assembly-simple,.resolution-detail,.charges-simple,.documents-library,.account-grid,.syndic-workspace,.import-simple,.synthesis-layout,.activity-board{max-width:1240px;margin-inline:auto}
.nav a.active,.bottom-nav a.active,.bottom-nav a[aria-current=page]{background:#def2fa}
.nav a.active:hover,.bottom-nav a.active:hover{background:#cfebf6}
.btn{font-size:var(--ui-control);font-weight:650}

/* Shared hierarchy. Sources keep their approved compact label component. */
.assembly-date h2,.charges-heading h2,.resolution-detail>h2,.selector-title h2,.portfolio-welcome h2,.verification-intro h2,.warm-login .login-card h2{font-size:var(--ui-title);line-height:1.25;letter-spacing:-.8px}
.home-simplified .glance-heading h3,.home-simplified .home-recent h3,.assembly-group-title h3,.collective-core h3,.account-grid h2,.assembly-complete>h3,.import-details h2,.rubrics .card-title h2{font-size:var(--ui-section);line-height:1.3;letter-spacing:-.5px}
.finance-resolution h4,.decision-copy h4,.charges-guide>header h3,.account-grid h3,.dialog-head h2{font-size:var(--ui-card-title);line-height:1.35;letter-spacing:-.4px}
.documents-library .history-list strong,.home-simplified .home-document strong,.syndic-workspace .portfolio-entry strong,.syndic-workspace .lot-copy strong{font-size:var(--ui-row-title);line-height:1.35;font-weight:600}
.finance-resolution p,.collective-explanation p,.charges-guide>p,.account-grid p,.import-overview>p,.dialog-body>p{font-size:var(--ui-body);line-height:1.55}
.collective-hero>div:first-child>strong,.annual-total strong,.import-counts strong{font-size:var(--ui-total);line-height:1.2;letter-spacing:-1px}
.home-simplified .glance-card strong,.collective-resolution .finance-amount,.finance-amount,.charges-detail .phone-sheet .sheet-value{font-size:var(--ui-card-total);line-height:1.2;letter-spacing:-1px}
.card,.assembly-simple,.resolution-detail,.charges-overview,.charges-guide,.resident-context-card,.document-history,.portfolio-welcome,.portfolio-search-card,.activity-board .card{border-radius:var(--panel-radius)}

/* The same blue, rose and white surfaces extend to every reading context. */
.finance-resolution{background:var(--ditoc-rose);border-radius:20px}
.finance-resolution:nth-child(even){background:var(--ditoc-blue-soft)}
.finance-resolution:hover{background:#f8dce0}
.finance-resolution:nth-child(even):hover{background:#d4edf7}
.collective-hero,.activity-board .adoption-hero{background:var(--ditoc-blue)}
.collective-explanation,.annual-insight,.context-banner,.source-panel,.lot-prices,.resolution-detail .mobile-hero,.documents-callout,.mail-reading{background:var(--ditoc-blue-soft)}
.budget-frequency,.rubrics .rubric-0 .card-title,.rubrics .rubric-3 .card-title{background:var(--ditoc-rose)}
.rubrics .card-title,.rubrics .rubric-2 .card-title,.topic-matrix thead,.matrix-title{background:var(--ditoc-blue-soft)}
.documents-library .history-icon{background:var(--ditoc-rose)}
.documents-library .history-icon.blue,.documents-tabs .active,.documents-tabs [aria-selected=true],.filterbar button.active{background:var(--ditoc-blue-soft)}
.documents-tabs button.active,.documents-tabs a.active{background:var(--ditoc-blue-soft)}
.documents-library .history-list>button{border-radius:20px;padding:18px 20px}
.document-tag:not(.unavailable){background:var(--ditoc-blue-soft)}
.upload,.upload-notice{background:var(--ditoc-blue-soft)}
.upload{border-radius:var(--panel-radius)}
.upload.drag{background:var(--ditoc-blue);border-color:#7faabe}
.portfolio-entry[aria-pressed=true],.syndic-workspace .portfolio-entry[aria-pressed=true],.lot-entry[aria-pressed=true]{background:var(--ditoc-blue-soft)}
.setting-icon,.decision-icon{background:#fff0ef}
.chat-message.user>div{background:var(--ditoc-blue);color:#222}
.suggestions>button:hover,.chat-starters .btn:hover{background:var(--ditoc-blue-soft)}
.warm-login .login-card,.mail-preview .activation-step{border-radius:var(--panel-radius)}
.warm-login .login-submit{font-size:var(--ui-body)}
.activity-board .adoption-hero{border-radius:var(--panel-radius)}
.activity-board .adoption-number,.activity-board .impact-number{font-size:var(--ui-total);line-height:1.2}
.activity-board .adoption-number span,.activity-board .adoption-number small{font-size:22px}
.activity-board .adoption-hero h2,.activity-board .card h3{font-size:var(--ui-section);line-height:1.3}

/* Home keeps the v46 composition, without scaling the interface with the viewport. */
.home-experience.home-simplified{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px}
.home-experience>.home-greeting{display:flex;align-items:flex-end;justify-content:flex-start;gap:22px;margin:0}
.home-greeting-copy{min-width:0}
.home-greeting h2{font-size:36px;line-height:1.2;letter-spacing:-1.1px}
.home-greeting .home-signature{margin:3px 0 0;font:500 34px/1.2 Caveat,'Segoe Print',cursive;color:#222}
.home-signature>span{position:relative;white-space:nowrap}
.home-signature svg{position:absolute;left:0;top:calc(100% - 2px);width:100%;height:12px;stroke:#f44832;stroke-width:4;stroke-linecap:round;pointer-events:none}
.home-greeting-brand{position:relative;display:block;flex:none;margin-bottom:2px}
.home-greeting-brand>.mascot{display:block;width:64px;height:auto}
.home-greeting-rays{position:absolute;left:-9px;top:-24px;width:35px;height:26px;stroke:#f44832;stroke-width:4;stroke-linecap:round;pointer-events:none}
.home-simplified .home-ag-feature{align-self:stretch;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:1fr auto auto;gap:18px 10px;padding:24px;border-radius:var(--panel-radius);background:var(--ditoc-blue)}
.home-ag-copy{grid-column:1;grid-row:1;align-self:start}
.home-ag-copy>.pill{display:inline-flex;padding:7px 13px;background:white;font-size:14px;font-weight:500;white-space:nowrap}
.home-simplified .home-ag-feature h2{font-size:36px;line-height:1.08;letter-spacing:-1px;margin:17px 0}
.home-meeting-details{list-style:none;padding:0;margin:0;display:grid;gap:7px;color:#273e5c;font-size:16px;line-height:1.4}
.home-meeting-details li{display:flex;align-items:center;gap:9px;white-space:nowrap}
.home-meeting-details .icon{width:23px;height:23px;flex:none;stroke-width:1.6}
.home-building{display:block;width:100%;max-width:190px;height:auto;grid-column:2;grid-row:1;align-self:center;justify-self:end;pointer-events:none}
.home-ag-feature>.home-ag-intro{grid-column:1/-1;font-size:16px;line-height:1.4;margin:0;color:#273e5c}
.home-simplified .home-ag-feature>.btn{grid-column:1/-1;justify-content:space-between;gap:12px;font-size:15px;font-weight:600;line-height:1.4;padding:14px 20px;margin:0}
.home-ag-feature>.btn>.icon{width:24px;height:24px;flex:none}
.home-simplified .home-glance{gap:12px;margin:0}
.home-simplified .glance-heading{gap:12px;align-items:center}
.home-annotated-heading{position:relative;width:max-content;max-width:100%}
.home-annotated-heading>svg{position:absolute;left:calc(100% + 7px);bottom:8px;width:43px;height:32px;stroke:#222;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.home-simplified .textbtn{font-size:var(--ui-control);font-weight:600;white-space:nowrap;min-height:44px}
.home-simplified .textbtn>.icon{width:19px;height:19px}
.home-simplified .glance-card{padding:18px;border-radius:20px;background:var(--ditoc-rose)}
.home-simplified .glance-card:nth-of-type(even){background:var(--ditoc-blue-soft)}
.home-simplified .glance-card:hover{box-shadow:inset 0 0 0 2px #b3cedb}
.home-simplified .glance-card>span{display:block;font-size:15px;line-height:1.35;color:#273e5c}
.home-simplified .glance-card strong{display:block;font-weight:800;margin:10px 0 6px}
.home-simplified .glance-card small{display:block;font-size:13px;line-height:1.4;color:#36506d}
.home-simplified .home-participation{grid-template-columns:40px minmax(0,1fr) 18px;gap:13px;border-radius:20px;margin:0;padding:13px 16px}
.home-simplified .home-participation>.setting-icon{width:40px;height:40px;background:#fff0ef}
.home-simplified .home-participation strong{font-size:16px;font-weight:600}
.home-simplified .home-participation>.icon:last-child{color:#f44832;width:18px;height:18px}
.home-simplified .home-recent{align-self:start;min-width:0}
.home-simplified .home-recent>.row{gap:12px;margin-bottom:10px;align-items:center}
.home-recent .home-annotated-heading>svg{width:36px;height:30px;bottom:7px;left:calc(100% + 4px)}
.home-simplified .home-document{grid-template-columns:24px minmax(0,1fr) 18px;gap:13px;border-radius:20px;border:0;margin:0 0 9px;padding:13px 16px}
.home-simplified .home-document:last-child{margin-bottom:0}
.home-document>.icon{width:24px;height:24px;stroke-width:1.5}
.home-simplified .home-document>.icon:last-child{width:18px;height:18px}
.home-simplified .home-document small{font-size:13px;line-height:1.4;color:#626b7e;margin-top:3px}

@media(min-width:1051px){
 .sidebar{width:232px;padding:28px 18px 20px}
 .shell{margin-left:232px}
 .sidebar>.logo{width:140px;margin:0 auto 24px}
 .workspace-profile{gap:10px;padding:8px 4px 18px;margin-bottom:18px}
 .workspace-profile .avatar{width:36px;height:36px;font-size:14px;flex:none}
 .app-sidebar .workspace-profile strong{font-size:14px}
 .app-sidebar .workspace-profile small{font-size:13px}
 .app-sidebar .nav a{font-size:16px;font-weight:550;padding:12px;gap:14px}
 .nav a>.icon{width:22px;height:22px;stroke-width:1.6}
 .sidebar-foot .logout{font-size:14px}
 .sidebar-foot>small{font-size:13px}
 .header-help-anchor{margin-left:220px}
}
@media(min-width:681px) and (max-width:1200px){
 .desktop-help-note{display:none}
 .header-help-anchor{margin-left:16px}
}
@media(min-width:681px) and (max-width:1050px){
 .home-simplified .home-ag-feature{padding:22px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
 .home-simplified .home-ag-feature h2{font-size:32px}
 .home-meeting-details{font-size:15px}
 .home-meeting-details li{gap:7px}
 .home-meeting-details .icon{width:21px;height:21px}
 .home-simplified .glance-card{padding:16px}
 .home-annotated-heading>svg{display:none}
 .home-simplified .home-document{padding:13px;gap:10px}
}
@media(max-width:680px){
 :root{--ui-title:23px;--ui-section:20px;--ui-card-title:18px;--ui-total:34px;--ui-card-total:30px;--panel-space:20px}
 .app-topbar,.app-topbar:has(.property-help-note),.app-topbar:has(.view-actions){background:transparent}
 .role-resident .app-topbar[data-view=accueil]{grid-template-areas:'start profile ask' 'heading heading heading';row-gap:24px}
 .role-resident .app-topbar[data-view=accueil] .view-heading{display:block}
 .page,.page.mobile-page{padding:8px 20px 104px}
 .app-topbar .property-switch{font-size:13px}
 .app-topbar .header-ask{padding:3px}
 .home-experience.home-simplified{display:block}
 .home-experience>.home-greeting{display:flex;gap:14px;margin:8px 0 22px}
 .home-greeting h2{font-size:29px;letter-spacing:-1px}
 .home-greeting .home-signature{font-size:29px;margin-top:2px}
 .home-greeting-brand>.mascot{width:48px}
 .home-greeting-rays{width:29px;height:23px;top:-21px;left:-5px}
 .home-simplified .home-ag-feature{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-rows:auto auto auto;padding:22px;gap:17px 6px}
 .home-ag-copy>.pill{font-size:13px;padding:7px 11px}
 .home-simplified .home-ag-feature h2{font-size:32px;line-height:1.08;margin:16px 0}
 .home-meeting-details{font-size:14px}
 .home-meeting-details li{gap:7px}
 .home-meeting-details .icon{width:20px;height:20px}
 .home-building{max-width:180px;align-self:center}
 .home-ag-feature>.home-ag-intro{font-size:15px}
 .home-simplified .home-ag-feature>.btn{font-size:14px;padding:14px 16px}
 .home-simplified .home-glance{margin-top:22px}
 .home-simplified .glance-card{padding:16px 14px}
 .home-simplified .glance-card>span{font-size:14px}
 .home-simplified .glance-card small{font-size:13px}
 .home-simplified .home-participation{padding:13px 14px}
 .home-simplified .home-participation strong{font-size:15px}
 .home-simplified .home-recent{margin-top:22px;padding:0;border:0}
 .home-simplified .home-document{grid-template-columns:22px minmax(0,1fr) 16px;padding:14px;gap:10px}
 .home-document>.icon{width:22px;height:22px}
 .home-simplified .home-document strong{font-size:15px}
 .home-annotated-heading>svg{display:none}
 .documents-library .history-list>button{padding:17px 16px}
 .collective-core h3{font-size:var(--ui-section)}
 .collective-hero>div:first-child>strong{font-size:var(--ui-total)}
}
@media(max-width:380px){
 .home-experience>.home-greeting{gap:10px}
 .home-greeting h2{font-size:27px}
 .home-greeting .home-signature{font-size:26px}
 .home-greeting-brand>.mascot{width:42px}
 .home-simplified .home-ag-feature{padding:18px;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
 .home-simplified .home-ag-feature h2{font-size:30px}
 .home-simplified .home-ag-feature>.btn{font-size:13px;padding:13px 12px}
 .home-meeting-details li{gap:5px}
 .home-meeting-details .icon{width:18px;height:18px}
 .home-simplified .glance-card{padding:15px 12px}
 .home-simplified .home-document strong{font-size:14px}
}
