/* Budget en main L2.3: desktop workbench, responsive native inputs, FEM visual language. */
.bem-l1-shell{--bem-blue:#174e5c;--bem-blue-dark:#113d49;--bem-green:#3b806e;--bem-ochre:#c49b5b;--bem-border:#dce7e4;--bem-bg:#f6f9f8;--bem-ink:#243c43;--bem-muted:#647a7d;box-sizing:border-box;position:relative;left:50%;transform:translateX(-50%);width:min(1400px,calc(100vw - 56px));max-width:none!important;margin:22px 0 56px;padding:0;font-family:inherit;color:var(--bem-ink)}
.bem-l2-app,.bem-l2-app *{box-sizing:border-box}
.bem-l2-app{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;color:var(--bem-ink);min-width:0}
.bem-l2-app h2{font-size:clamp(27px,2.5vw,36px);line-height:1.18;letter-spacing:-.035em;color:var(--bem-blue);margin:3px 0 0;font-weight:760}
.bem-l2-app h3{font-size:clamp(22px,2vw,28px);line-height:1.3;letter-spacing:-.025em;color:var(--bem-blue);font-weight:740;margin:5px 0 0}
.bem-l2-app h4{font-size:19px;color:var(--bem-blue);margin:0 0 8px}
.bem-l2-kicker{font-size:11px!important;letter-spacing:.1em;font-weight:750;color:#8d713f;margin:0 0 7px!important}
.bem-l2-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;position:relative;margin:0 0 24px}
.bem-l2-topactions{display:flex;align-items:center;gap:12px;position:relative}
.bem-l2-app button{cursor:pointer;font-family:inherit;font-weight:650;transition:background-color .15s,border-color .15s,color .15s}
.bem-l2-app button:focus-visible,.bem-l2-app a:focus-visible,.bem-l2-app input:focus-visible,.bem-l2-app select:focus-visible{outline:3px solid rgba(196,155,91,.75);outline-offset:2px}
.bem-l2-app button:disabled{opacity:.55;cursor:not-allowed}
.bem-l2-text-btn{border:0!important;background:transparent!important;color:var(--bem-blue)!important;text-decoration:underline;text-underline-offset:3px;padding:8px 4px!important;font-size:13px}
.bem-l2-more{border:1px solid var(--bem-border);background:white;color:var(--bem-blue);width:38px;height:38px;border-radius:10px;font-size:22px;line-height:1}
.bem-l2-more-menu{position:absolute;right:0;top:42px;z-index:7;background:white;border:1px solid var(--bem-border);border-radius:10px;padding:6px;box-shadow:0 10px 32px rgba(20,65,71,.12);min-width:192px}
.bem-l2-more-menu button{background:transparent;border:0;text-align:left;padding:9px 11px;width:100%;font-size:13px;color:var(--bem-ink)}
.bem-l2-more-menu button:hover{background:var(--bem-bg)}
.bem-l2-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 32px;padding:0}
.bem-l2-step{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--bem-border)!important;background:white!important;color:#647a7d!important;border-radius:12px!important;padding:13px 9px;min-height:52px;text-align:center;font-size:13px;white-space:normal;min-width:0}
.bem-l2-step:hover:not(:disabled){background:#eff6f5!important;border-color:#9cbdb6!important}
.bem-l2-step.is-current{border-color:var(--bem-blue)!important;background:#eaf3f1!important;color:var(--bem-blue-dark)!important;box-shadow:inset 0 -3px 0 var(--bem-green)}
.bem-l2-step.is-past{color:#315d58!important;border-color:#bad3cb!important}
.bem-l2-stepnum{border:1px solid #cbd8d5;border-radius:50%;display:inline-flex;flex:none;align-items:center;justify-content:center;width:23px;height:23px;font-size:12px;background:#f8faf9;font-weight:750}
.bem-l2-step.is-current .bem-l2-stepnum{background:var(--bem-blue);border-color:var(--bem-blue);color:#fff}
.bem-l2-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:38px;align-items:start}
.bem-l2-main{display:block;min-width:0}
.bem-l2-section-heading{margin:0 0 21px;padding:0 0 16px;border-bottom:1px solid #e3ece8}
.bem-l2-section-overline{font-size:11px;letter-spacing:.075em;text-transform:uppercase;font-weight:750;color:var(--bem-green);margin:0}
.bem-l2-muted{font-size:13px;color:var(--bem-muted);line-height:1.6;margin:0 0 18px}
.bem-l2-section>.bem-l2-muted{max-width:710px}
.bem-l2-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:#31535a;min-width:0;margin:0}
.bem-l2-field>span:first-child{line-height:1.2}
.bem-l2-field input,.bem-l2-field select{height:48px;max-width:100%;min-width:0;border-radius:10px!important;border:1px solid #bdcfcd!important;background:white!important;color:#223d45!important;padding:10px 12px!important;font:inherit!important;font-size:15px!important;line-height:1.3!important;width:100%;box-shadow:none!important;margin:0!important}
.bem-l2-field input:focus,.bem-l2-field select:focus{outline:3px solid rgba(23,78,92,.13)!important;border-color:var(--bem-blue)!important}
.bem-l2-field input::placeholder{color:#8a9b9b}
.bem-l2-control,.bem-l2-date-wrap,.bem-l2-select-wrap{display:block;position:relative;min-width:0}
.bem-l2-field input[type=date]{color-scheme:light;font-variant-numeric:tabular-nums;letter-spacing:0!important;padding-right:12px!important;font-size:16px!important;min-width:0;box-sizing:border-box!important}
.bem-l2-field input[type=date]::-webkit-calendar-picker-indicator{opacity:1;cursor:pointer;position:static;width:22px;height:24px;min-width:22px;margin:0 0 0 2px}
.bem-l2-select-wrap select{appearance:none;padding-left:13px!important;padding-right:30px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23174e5c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:calc(100% - 9px) center!important;cursor:pointer}
.bem-l2-choice-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:19px;z-index:1}
.bem-l2-label-choice{min-width:0;display:flex;flex-direction:column;gap:7px}
.bem-l2-label-choice select option{font-size:15px;color:#1d4145}
.bem-l2-custom input{background:#fafffd!important;padding-left:42px!important;padding-right:66px!important}
.bem-l2-custom-choice{position:relative}
.bem-l2-custom-return{position:absolute;right:7px;bottom:9px;background:#edf6f3!important;color:var(--bem-blue)!important;border:1px solid var(--bem-border)!important;border-radius:6px!important;font-size:11px!important;padding:6px 7px!important;line-height:1.1!important}
.bem-l2-budget-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 25px;max-width:850px}
.bem-l2-budget-fields>.bem-l2-field:first-child{grid-column:1/-1}
.bem-l2-budget-help{grid-column:1/-1}
.bem-l2-month{grid-column:2;justify-self:start;align-self:end}
.bem-l2-table{margin:15px 0 18px;width:100%}
.bem-l2-table-heading,.bem-l2-entry{display:grid;grid-template-columns:minmax(220px,1fr) minmax(125px,.55fr) 38px;align-items:start;gap:13px;min-width:0}
.bem-l2-table-long .bem-l2-table-heading,.bem-l2-table-long .bem-l2-entry{grid-template-columns:minmax(210px,1.5fr) minmax(107px,.65fr) minmax(141px,.83fr) minmax(140px,1fr) 38px;gap:10px}
.bem-l2-table-heading{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#63807d;font-weight:750;padding:0 3px 9px;border-bottom:1px solid var(--bem-border)}
.bem-l2-entry{padding:12px 2px;border-bottom:1px solid #e6efed;align-items:center}
.bem-l2-entry .bem-l2-field>span:first-child{display:none}
.bem-l2-entry .bem-l2-field{margin:0;min-width:0}
.bem-l2-entry .bem-l2-check{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:560;line-height:1.3;color:#31535a;margin:0;min-width:0;cursor:pointer}
.bem-l2-entry .bem-l2-check input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--bem-green)}
.bem-l2-entry .bem-l2-check span{max-width:125px}
.bem-l2-remove{background:transparent!important;border:1px solid transparent!important;border-radius:9px!important;color:#a04642!important;font-size:24px!important;font-weight:400!important;min-height:43px;width:38px;padding:2px!important;line-height:1!important}
.bem-l2-remove:hover{background:#fff1ef!important;border-color:#eed3d0!important}
.bem-l2-add{background:#edf6f3!important;color:var(--bem-blue)!important;border:1px dashed #8dbbb0!important;border-radius:10px!important;padding:11px 17px!important;font-size:14px;min-height:45px;display:inline-flex;align-items:center;gap:9px}
.bem-l2-add:hover:not(:disabled){background:#dfefe9!important}
.bem-l2-add>span{font-size:21px;line-height:1}
.bem-l2-primary,.bem-l2-secondary{min-height:47px;border-radius:10px!important;padding:12px 21px!important;font-size:14px}
.bem-l2-primary{background:var(--bem-blue)!important;color:white!important;border:1px solid var(--bem-blue)!important}
.bem-l2-primary:hover:not(:disabled){background:#22677a!important}
.bem-l2-secondary{background:white!important;color:var(--bem-blue)!important;border:1px solid #a9c4bf!important}
.bem-l2-secondary:hover:not(:disabled){background:#edf5f2!important}
.bem-l2-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:31px 0 0}
.bem-l2-aside{border:1px solid #dde9e5;background:#f4f9f7;border-radius:17px;padding:22px;position:sticky;top:24px;box-shadow:0 4px 20px rgba(20,60,60,.025)}
.bem-l2-aside-title{display:flex;align-items:center;gap:9px;margin:0 0 8px}
.bem-l2-side-mark{background:var(--bem-ochre);height:25px;width:4px;border-radius:2px;flex:none}
.bem-l2-aside h3{font-size:18px;margin:0}
.bem-l2-side-totals{display:grid;grid-template-columns:1fr auto;gap:12px 5px;border-top:1px solid #dce9e4;padding-top:17px;font-size:13px}
.bem-l2-side-totals dt{color:#54716c}
.bem-l2-side-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:var(--bem-blue)}
.bem-l2-margin{border-top:1px solid #dce9e4;margin-top:14px;padding-top:15px;display:flex;flex-direction:column;gap:8px;color:var(--bem-blue)}
.bem-l2-margin span{font-size:13px;font-weight:700}
.bem-l2-margin strong{font-size:25px;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.bem-l2-margin strong.bem-l2-negative{color:#a34937}
.bem-l2-aside>.bem-l2-muted:last-child{font-size:11px;margin:14px 0 0}
.bem-l2-recap{max-width:710px}
.bem-l2-recap-top{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--bem-border)}
.bem-l2-recap-top p{margin:0;color:var(--bem-muted);font-size:13px}
.bem-l2-recap-top strong{font-size:14px;color:var(--bem-blue)}
.bem-l2-recap dl{display:grid;grid-template-columns:1fr auto;gap:13px 20px;padding:18px 0;border-bottom:1px solid var(--bem-border);margin:0 0 15px}
.bem-l2-recap dt{font-size:14px;color:#53726d}
.bem-l2-recap dd{margin:0;font-size:15px;font-variant-numeric:tabular-nums;font-weight:750;color:var(--bem-blue);text-align:right}
.bem-l2-recap-edit{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 28px}
.bem-l2-recap-edit button{background:#f1f6f5;border:1px solid var(--bem-border);border-radius:7px;padding:7px 10px;font-size:12px;color:var(--bem-blue)}
.bem-l2-account{border-top:2px solid #bcd3ca;padding-top:25px;max-width:710px;margin-top:24px}
.bem-l2-account>p{font-size:14px}
.bem-l2-account form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:20px}
.bem-l2-account form>.bem-l2-primary{justify-self:start;grid-column:1/-1}
.bem-l2-auth-links{color:var(--bem-muted);font-size:13px;margin:17px 0 0}
.bem-l2-app a{color:var(--bem-blue);text-decoration:underline;text-underline-offset:2px}
.bem-l2-password{display:flex;gap:7px}
.bem-l2-password input{flex:1;min-width:0}
.bem-l2-password button{border-radius:9px;background:#fff;border:1px solid var(--bem-border);color:var(--bem-blue);font-size:12px;padding:5px 9px}
.bem-l2-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.bem-l2-alert,.bem-l2-warning{border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.5;margin:16px 0}
.bem-l2-alert{color:#8e3e30;background:#fff3ef;border:1px solid #edc5bb}
.bem-l2-warning{color:#71581f;background:#fff8e8;border:1px solid #dfcb9c}
.bem-l2-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}
.bem-l2-summary-card{display:flex;flex-direction:column;gap:11px;background:white;border:1px solid var(--bem-border);border-radius:14px;padding:19px}
.bem-l2-summary-card>span{font-size:12px;color:var(--bem-muted)}
.bem-l2-summary-card>strong{font-size:22px;color:var(--bem-blue);font-variant-numeric:tabular-nums}
.bem-l2-budget-link{display:block;background:#f2f8f5;border:1px solid #cde1db;border-radius:12px;padding:15px 20px;color:var(--bem-blue);margin:12px 0}
@media(max-width:1220px){.bem-l2-layout{grid-template-columns:1fr;gap:25px}.bem-l2-aside{position:static;max-width:none;display:none}.bem-l2-table-long .bem-l2-table-heading,.bem-l2-table-long .bem-l2-entry{grid-template-columns:minmax(220px,1.6fr) minmax(115px,.7fr) minmax(160px,1fr) minmax(165px,1fr) 38px}}
@media(max-width:850px){.bem-l1-shell{width:calc(100vw - 30px)}.bem-l2-steps{gap:4px}.bem-l2-step{flex-direction:column;gap:5px;font-size:11px;padding:9px 3px}.bem-l2-table-long .bem-l2-table-heading{display:none}.bem-l2-table-long .bem-l2-entry{grid-template-columns:repeat(2,minmax(0,1fr)) 38px;gap:12px;background:#fff;border:1px solid var(--bem-border);border-radius:12px;margin:12px 0;padding:14px}.bem-l2-entry .bem-l2-field>span:first-child{display:block}.bem-l2-table-long .bem-l2-entry>.bem-l2-label-choice{grid-column:1/-1}.bem-l2-table-long .bem-l2-entry>.bem-l2-check{grid-column:1/3}.bem-l2-table-long .bem-l2-entry>.bem-l2-remove{grid-column:3;grid-row:2/4;align-self:center}.bem-l2-table:not(.bem-l2-table-long) .bem-l2-table-heading{display:none}.bem-l2-table:not(.bem-l2-table-long) .bem-l2-entry{grid-template-columns:minmax(0,1fr) minmax(140px,1fr) 38px;background:#fff;border:1px solid var(--bem-border);border-radius:12px;margin:12px 0;padding:13px}}
@media(max-width:620px){.bem-l1-shell{width:calc(100vw - 24px);margin:16px 0 36px}.bem-l2-heading{align-items:flex-start}.bem-l2-heading h2{font-size:27px}.bem-l2-topactions{gap:5px}.bem-l2-stepname{font-size:10px;line-height:1.15}.bem-l2-stepnum{width:21px;height:21px;font-size:11px}.bem-l2-steps{margin-bottom:24px}.bem-l2-budget-fields,.bem-l2-account form{grid-template-columns:1fr;gap:16px}.bem-l2-budget-fields>.bem-l2-field:first-child,.bem-l2-month,.bem-l2-budget-help{grid-column:1}.bem-l2-table-long .bem-l2-entry{grid-template-columns:1fr 1fr;gap:11px}.bem-l2-table-long .bem-l2-entry>.bem-l2-label-choice{grid-column:1/-1}.bem-l2-table-long .bem-l2-entry>.bem-l2-check{grid-column:1/2}.bem-l2-table-long .bem-l2-entry>.bem-l2-remove{grid-column:2;grid-row:3;justify-self:end}.bem-l2-table:not(.bem-l2-table-long) .bem-l2-entry{grid-template-columns:1fr 1fr 33px;gap:7px}.bem-l2-table:not(.bem-l2-table-long) .bem-l2-entry .bem-l2-field input{font-size:14px!important;padding:9px!important}.bem-l2-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.bem-l2-summary-card{padding:13px}.bem-l2-summary-card>strong{font-size:17px}.bem-l2-account form>.bem-l2-primary{grid-column:1}.bem-l2-actions button{min-width:130px}.bem-l2-steps .bem-l2-step{min-height:58px}.bem-l2-recap-top{flex-direction:column;gap:3px}}
@media(prefers-reduced-motion:reduce){.bem-l2-app button{transition:none}}

/* L2.3 UI corrections: one icon per select, explicit custom-label icon, unified reset action. */
.bem-l2-custom-icon{position:absolute;left:12px;bottom:13px;font-size:18px;line-height:1.2;z-index:1;pointer-events:none}
.bem-l2-restart{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 10px!important;background:transparent!important;border:1px solid var(--bem-border)!important;border-radius:9px!important;color:var(--bem-blue)!important;font-size:13px!important;text-decoration:none!important;white-space:nowrap}
.bem-l2-restart:hover:not(:disabled){background:var(--bem-bg)!important;border-color:#b5d0c9!important}
.bem-l2-restart-icon{font-size:21px;line-height:1;font-weight:400}
@media(max-width:620px){.bem-l2-topactions{flex-wrap:wrap;justify-content:flex-end}.bem-l2-restart{font-size:12px!important;padding:6px 8px!important}}

/* L2.4 - ergonomic refinements; scope limited to onboarding presentation. */
.bem-l2-kicker-mobile,.bem-l2-title-mobile{display:none}
.bem-l2-layout.is-bilan{grid-template-columns:minmax(0,1fr);gap:0}
.bem-l2-layout.is-bilan .bem-l2-main{max-width:none}
.bem-l2-layout.is-bilan .bem-l2-section-heading{max-width:none}
.bem-l2-layout.is-bilan .bem-l2-recap{max-width:none}
.bem-l2-recap-panels{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:clamp(20px,3.5vw,52px);align-items:stretch;margin:21px 0 14px}
.bem-l2-recap .bem-l2-recap-totals{margin:0;align-content:start;gap:18px 26px;padding:20px 0;border-bottom:0}
.bem-l2-recap-highlight{background:#f4f9f7;border:1px solid #dce9e4;border-radius:16px;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:12px;color:var(--bem-blue)}
.bem-l2-recap-highlight>span{font-size:15px;font-weight:750}
.bem-l2-recap-highlight>strong{font-size:clamp(25px,3vw,40px);font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:-.035em}
.bem-l2-recap-highlight>strong.bem-l2-negative{color:#a34937}
.bem-l2-recap-highlight>p{font-size:12px;color:var(--bem-muted);line-height:1.45;margin:0}
.bem-l2-savings-note{margin:10px 0 4px}
.bem-l2-layout.is-bilan .bem-l2-account{max-width:950px;margin-top:28px}
.bem-l2-layout.is-bilan .bem-l2-recap-edit{margin-bottom:18px}
.bem-l2-layout.is-bilan .bem-l2-recap-top{justify-content:flex-start;gap:28px}
@media(max-width:850px){.bem-l2-recap-panels{grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:18px}}
@media(max-width:620px){
 .bem-l1-shell{margin-top:12px}
 .bem-l2-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:10px;row-gap:4px;margin-bottom:17px}
 .bem-l2-brand-heading{min-width:0}
 .bem-l2-heading h2{font-size:clamp(22px,5.9vw,25px);line-height:1.2;letter-spacing:-.025em;margin-top:5px}
 .bem-l2-kicker{font-size:10px!important;line-height:1.25;letter-spacing:.08em;margin:0!important}
 .bem-l2-kicker-desktop,.bem-l2-title-desktop{display:none}
 .bem-l2-kicker-mobile,.bem-l2-title-mobile{display:inline}
 .bem-l2-topactions{align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:6px}
 .bem-l2-text-btn{font-size:12px;padding:6px 4px!important}
 .bem-l2-restart{height:37px;min-height:37px;width:40px;justify-content:center;padding:5px!important}
 .bem-l2-restart-label{display:none}
 .bem-l2-restart-icon{font-size:22px}
 .bem-l2-steps{gap:5px;margin-bottom:20px}
 .bem-l2-step{padding:8px 2px!important;min-height:43px!important;border-radius:10px!important}
 .bem-l2-stepnum{width:24px;height:24px;font-size:12px}
 .bem-l2-stepname{display:none}
 .bem-l2-section-heading{margin-bottom:18px;padding-bottom:12px}
 .bem-l2-recap-panels{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:15px}
 .bem-l2-recap .bem-l2-recap-totals{padding:4px 0 10px;gap:15px 10px}
 .bem-l2-recap-highlight{padding:18px;gap:9px}
 .bem-l2-recap-highlight>strong{font-size:28px}
 .bem-l2-layout.is-bilan .bem-l2-account{max-width:none}
}
@media(max-width:360px){.bem-l2-heading h2{font-size:21px}.bem-l2-steps{gap:3px}.bem-l2-step{padding:7px 0!important}}
/* L3-A D10 technical preview; rendered only on the canonical TEST page when explicitly enabled. */
.bem-application-template{margin:0;background:#f7f9f8;min-height:100vh;display:flex;flex-direction:column}
.bem-app-top{background:#fff;border-bottom:1px solid #e4e9e8}
.bem-app-top-inner{max-width:1440px;margin:0 auto;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.bem-app-brand{font-weight:800;color:#194956;font-size:1.1rem;letter-spacing:-.02em}.bem-app-brand span{color:#3a806d}
.bem-app-back{font-size:.88rem;color:#235b65;text-decoration:underline;text-underline-offset:3px}
.bem-app-main{flex:1;min-width:0;width:100%}
.bem-app-skip{position:absolute;left:-10000px;top:auto;height:1px;width:1px;overflow:hidden}
.bem-app-skip:focus{left:12px;top:12px;height:auto;width:auto;z-index:999999;padding:10px 16px;background:#fff;color:#194956}
@media(max-width:600px){.bem-app-top-inner{padding:10px 14px}.bem-app-brand{font-size:.95rem}.bem-app-back{font-size:.77rem}}
.bem-l3a-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px auto 10px}
.bem-l3a-actions button{min-height:44px}
@media(max-width:480px){.bem-l3a-actions{flex-direction:column}.bem-l3a-actions button{width:100%}}

/* L3-B1: simple inline period-plan editing; small screens stack rows. */
.bem-l3b-editor-area{margin-top:1.75rem;border-top:1px solid #d4e3e1;padding-top:1.25rem}
.bem-l3b-editor-area h3{margin:0 0 .5rem;color:#134c59}
.bem-l3b-editor-area h4{margin:1.2rem 0 .4rem;color:#134c59}
.bem-l3b-list{margin-top:1rem}
.bem-l3b-row{display:flex;align-items:center;gap:.85rem;padding:.7rem 0;border-bottom:1px solid #dbe7e5}
.bem-l3b-row-label{flex:1;min-width:0;overflow-wrap:anywhere}
.bem-l3b-mini{padding:.45rem .7rem!important;min-height:40px}
.bem-l3b-form{margin:1.25rem 0;border:1px solid #b9d4d1;background:#f6faf9;border-radius:14px;padding:1rem;display:grid;gap:.85rem;max-width:600px}
.bem-l3b-form .bem-l2-field{min-width:0}
.bem-l3b-form-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
@media(max-width:540px){.bem-l3b-row{flex-wrap:wrap}.bem-l3b-row-label{flex-basis:100%}.bem-l3b-row strong{margin-right:auto}.bem-l3b-form{padding:.8rem}}
/* L3-B2: period editor controls remain touch-friendly and do not overflow on mobile. */
.bem-l3b-form select{display:block;width:100%;max-width:100%;border:1px solid #bbd1cf;border-radius:10px;min-height:44px;padding:.55rem .75rem;background:#fff;color:#174e59;font:inherit}
.bem-l3b-row>.bem-l2-text-btn{min-height:40px;padding:.4rem .55rem;white-space:normal;text-align:center}
.bem-l3b-row>span:not(.bem-l3b-row-label){font-size:.9rem;overflow-wrap:anywhere}
@media(max-width:540px){.bem-l3b-row{gap:.5rem}.bem-l3b-row>.bem-l2-text-btn,.bem-l3b-row>.bem-l3b-mini{flex:0 1 auto}.bem-l3b-editor-area{min-width:0}}

/* L3-C1: simulation d’ancrage uniquement, aucune action de confirmation. */
.bem-l3c-preview{margin:1.4rem 0;padding:1rem;border:1px solid #d2e1de;border-radius:14px;background:#f8fbfa}
.bem-l3c-preview h3{margin:0 0 .4rem;color:#154d5b}
.bem-l3c-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem}
.bem-l3c-controls label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}
.bem-l3c-controls select{border:1px solid #b9ccc9;border-radius:8px;background:#fff;padding:.55rem;min-width:7rem}
.bem-l3c-result{margin-top:1rem;border-top:1px solid #d2e1de;padding-top:.8rem}
.bem-l3c-periods{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.55rem;margin:.8rem 0}
.bem-l3c-period{display:flex;flex-direction:column;gap:.2rem;padding:.6rem;border:1px solid #d2e1de;border-radius:9px;background:#fff}
.bem-l3c-period small{color:#5c777b}
.bem-l3c-issues{margin:.8rem 0}
@media(max-width:480px){.bem-l3c-preview{padding:.7rem}.bem-l3c-periods{grid-template-columns:1fr}}
/* L3-C2 explicit date resolution and confirmation. */
.bem-l3c-issue{border-bottom:1px solid rgba(26,74,81,.13);padding:10px 0;}
.bem-l3c-issue label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:.88rem;max-width:390px;}
.bem-l3c-issue input[type=date]{width:100%;min-height:42px;border:1px solid #aac1c5;border-radius:7px;padding:9px;background:#fff;}
.bem-l3c-warning-confirm{display:flex;align-items:flex-start;gap:10px;margin:12px 0;font-weight:600;}
.bem-l3c-warning-confirm input{width:18px;height:18px;flex:none;margin-top:2px;}
.bem-l3c-result>.bem-l2-primary{margin-top:12px;min-height:44px;}

/* L3-D UX1: one consistent exit. In the immersive shell it lives in the top bar;
   Astra fallback displays it above the app. No lower navigation/footer. */
.bem-app-exit-fallback{box-sizing:border-box;width:min(1400px,calc(100vw - 56px));margin:16px auto 0;display:flex;justify-content:flex-end}
.bem-app-exit-fallback a{color:#174e5c;text-decoration:underline;text-underline-offset:3px;font-weight:650;min-height:44px;display:inline-flex;align-items:center}
body.bem-application-template .bem-app-exit-fallback{display:none}
.bem-app-back{display:inline-flex;align-items:center;min-height:44px;font-weight:700;white-space:nowrap}
.bem-app-back:focus-visible,.bem-app-exit-fallback a:focus-visible{outline:3px solid #c49b5b;outline-offset:3px}
@media(max-width:620px){.bem-app-exit-fallback{width:calc(100vw - 24px);margin-top:12px}}

.bem-l2-privacy-note a{color:#174e5c;text-decoration:underline;text-underline-offset:3px}

/* L3-D2 — existing L3 sections only; no placeholders for future L4/L5 pages. */
.bem-d2-nav{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 12px;padding:10px;background:#fff;border:1px solid #dce7e4;border-radius:14px}
.bem-d2-nav-item{flex:0 1 auto;padding:11px 17px!important;min-height:44px;line-height:1.25;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#315e64!important;font-size:14px!important}
.bem-d2-nav-item:hover:not(:disabled){background:#f1f7f5!important}
.bem-d2-nav-item.is-active{background:#e9f3f0!important;color:#164b58!important;border-color:#b6d1ca!important;box-shadow:inset 0 -3px 0 #3b806e;font-weight:750!important}
.bem-d2-nav-item:focus-visible,.bem-d2-panel:focus-visible{outline:3px solid #c49b5b;outline-offset:3px}
.bem-d2-panel{outline:none;min-width:0}
.bem-d2-panel h2{margin:14px 0 17px}
.bem-d2-quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px}
.bem-d2-session-warning{padding:15px 18px;border-radius:12px;border:1px solid #dfbd8a;background:#fff9ed;color:#58461e;line-height:1.5;margin:16px 0}
.bem-d2-session-warning p{margin:6px 0}
.bem-d2-session-warning a{display:inline-block;margin-top:6px;font-weight:700;text-decoration:underline;color:#174e5c}
/* Date fields: Android native picker owns its own icon. Never overlay a second icon. */
.bem-l2-date-wrap{width:100%;max-width:100%;overflow:visible}
.bem-l2-date-wrap input[type=date],.bem-l3b-form input[type=date],.bem-l3c-issue input[type=date]{display:block;box-sizing:border-box!important;width:100%!important;max-width:100%;min-width:0;font-size:16px!important;font-variant-numeric:tabular-nums;letter-spacing:0!important;padding-right:10px!important}
@media(max-width:620px){
  .bem-d2-nav{gap:5px;padding:6px}
  .bem-d2-nav-item{flex:1 1 0;min-width:0;padding:10px 6px!important;font-size:13px!important}
  .bem-d2-quick-actions{flex-direction:column}
  .bem-d2-quick-actions button{width:100%}
  /* Onboarding income/fixed cards: full-width date removes native value truncation at 320–390px. */
  .bem-l2-table-long .bem-l2-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0}
  .bem-l2-table-long .bem-l2-entry>.bem-l2-amount,
  .bem-l2-table-long .bem-l2-entry>.bem-l2-date{grid-column:1/-1;min-width:0;width:100%}
  .bem-l2-table-long .bem-l2-entry>.bem-l2-check{grid-column:1;grid-row:auto;align-self:center}
  .bem-l2-table-long .bem-l2-entry>.bem-l2-remove{grid-column:2;grid-row:auto;align-self:center;justify-self:end}
}
@media(max-width:350px){.bem-d2-nav-item{font-size:12px!important;padding-inline:3px!important}}

/* L3-D UX2: defensive suppression of the WordPress toolbar in the immersive BEM shell only. */
body.bem-application-template #wpadminbar{display:none!important}
body.bem-application-template{margin-top:0!important}
html:has(> body.bem-application-template){margin-top:0!important}

/* L4-A1 — actual income / fixed payment status, mobile-first. */
.bem-l4a-area{min-width:0}
.bem-l4a-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.bem-l4a-totals>div{display:flex;flex-direction:column;gap:6px;padding:15px;border:1px solid #cdded8;border-radius:12px;background:#f7fbfa}
.bem-l4a-totals span{font-size:13px;color:#315f63}
.bem-l4a-totals strong{font-size:21px;font-variant-numeric:tabular-nums}
.bem-l4a-section{margin:20px 0}
.bem-l4a-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #dce7e4;min-width:0}
.bem-l4a-description{flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:4px}
.bem-l4a-description small{color:#637975}
.bem-l4a-result{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:95px;font-variant-numeric:tabular-nums}
.bem-l4a-status{display:inline-block;padding:4px 8px;border:1px solid #d8d9cb;border-radius:8px;background:#fbf8f1;color:#69573d;font-size:12px}
.bem-l4a-status.is-confirmed{border-color:#c2dad1;background:#ecf7f2;color:#285746}
.bem-l4a-line-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.bem-l4a-line-actions button{min-height:44px!important}
.bem-l4a-form{margin:24px 0;padding:18px;border:1px solid #c2d7d0;border-radius:12px;background:white;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bem-l4a-form h3,.bem-l4a-form p,.bem-l4a-form .bem-l3b-form-actions{grid-column:1/-1}
.bem-l4a-form .bem-l2-field{min-width:0}
@media(max-width:650px){.bem-l4a-line-actions{width:100%}.bem-l4a-form{grid-template-columns:1fr}.bem-l4a-totals strong{font-size:18px}}
@media(max-width:370px){.bem-l4a-totals{grid-template-columns:1fr}.bem-d2-nav-item{flex:1 1 42%!important}}

/* L4-A2 — exception N-1, read-only history with one-shot confirmation. */
.bem-l4a2-previous{min-width:0;margin:26px 0;padding:18px;border:1px solid #d3dfdb;border-radius:13px;background:#f8fbfa}
.bem-l4a2-previous h3{color:#164d58;margin:0 0 12px}
.bem-l4a2-previous .bem-l4a-form{background:#fff}
.bem-l4a2-previous .bem-l2-text-btn{margin-top:12px;min-height:44px}
@media(max-width:650px){.bem-l4a2-previous{padding:12px}}

/* L4-B — individual variable expense movements, aligned with FEM mobile-first UI. */
.bem-l4b-area{min-width:0}
.bem-l4b-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 22px}
.bem-l4b-overview>div{padding:14px;border-radius:12px;background:#f2f8f6;border:1px solid #cbded6;display:flex;flex-direction:column;gap:6px;min-width:0}
.bem-l4b-overview span{font-size:13px;color:#416c6b}
.bem-l4b-overview strong{font-size:clamp(16px,2vw,22px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bem-l4b-envelope{border:1px solid #d1e0da;border-radius:13px;padding:16px;margin:18px 0;background:white;min-width:0}
.bem-l4b-envelope-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.bem-l4b-envelope-head h3{margin:0;color:#164d58}
.bem-l4b-envelope-head button{min-height:44px!important}
.bem-l4b-numbers{display:flex;flex-wrap:wrap;gap:8px 17px;margin:12px 0;font-size:14px}
.bem-l4b-overrun{color:#9b3b20}
.bem-l4b-movements{list-style:none!important;padding:0!important;margin:6px 0 0!important}
.bem-l4b-movements li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0;border-top:1px solid #e4ede8}
.bem-l4b-movement-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 140px}
.bem-l4b-movement-info small{color:#627c75;overflow-wrap:anywhere}
.bem-l4b-actions{display:flex;gap:10px;flex-wrap:wrap}
.bem-l4b-actions button{min-height:44px!important}
.bem-l4b-form{padding:15px;margin-top:12px;border:1px solid #bdd5cb;border-radius:11px;background:#f7fbfa;display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.bem-l4b-form h4,.bem-l4b-form .bem-l4b-form-actions{grid-column:1/-1;margin:0}
.bem-l4b-form .bem-l2-field{min-width:0}
.bem-l4b-form-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:720px){.bem-l4b-overview{grid-template-columns:1fr}.bem-l4b-form{grid-template-columns:1fr}.bem-l4b-envelope{padding:12px}.bem-l4b-envelope-head button{width:100%}}

/* L4-C v1.0 — Synthèse du réel. All selectors scoped to the BEM application. */
.bem-l2-app .bem-l4c-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 22px}
.bem-l2-app .bem-l4c-tab{appearance:none;border:1px solid var(--bem-border);border-radius:10px;background:#fff;color:var(--bem-blue);padding:10px 22px;min-height:44px}
.bem-l2-app .bem-l4c-tab.is-active{background:var(--bem-blue);border-color:var(--bem-blue);color:#fff}
.bem-l2-app .bem-l4c-dashboard{min-width:0;display:grid;gap:22px}
.bem-l2-app .bem-l4c-lead{display:grid;grid-template-columns:minmax(0,2fr) minmax(155px,1fr);gap:20px;background:#fff;border:1px solid var(--bem-border);border-radius:18px;padding:clamp(18px,3vw,30px);align-items:center}
.bem-l2-app .bem-l4c-mainmetric{min-width:0}
.bem-l2-app .bem-l4c-mainmetric h3{font-size:clamp(22px,2vw,29px);margin:0 0 10px}
.bem-l2-app .bem-l4c-mainmetric>strong{display:block;color:var(--bem-blue);font-size:clamp(36px,5vw,62px);line-height:1.12;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bem-l2-app .bem-l4c-mainmetric>strong.is-over{color:#9a3c30}
.bem-l2-app .bem-l4c-mainmetric p:last-child{margin:12px 0 0;color:var(--bem-muted)}
.bem-l2-app .bem-l4c-ring-area{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.bem-l2-app .bem-l4c-ring{width:clamp(122px,15vw,160px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--bem-green) var(--bem-l4c-progress),#e5efed 0);position:relative}
.bem-l2-app .bem-l4c-ring:before{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff}
.bem-l2-app .bem-l4c-ring span{position:relative;z-index:1;font-size:clamp(23px,2.5vw,30px);font-weight:750;font-variant-numeric:tabular-nums;color:var(--bem-blue)}
.bem-l2-app .bem-l4c-ring-area small{font-size:12px;color:var(--bem-muted)}
.bem-l2-app .bem-l4c-progress{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.bem-l2-app .bem-l4c-progress-row{min-width:0;border:1px solid var(--bem-border);background:#fff;border-radius:14px;padding:18px}
.bem-l2-app .bem-l4c-progress-top{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;font-size:14px}
.bem-l2-app .bem-l4c-progress-top span{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bem-l2-app .bem-l4c-progress-track{height:10px;border-radius:30px;background:#e8eeec;overflow:hidden}
.bem-l2-app .bem-l4c-progress-track span{display:block;height:100%;background:var(--bem-green);border-radius:30px}
.bem-l2-app .bem-l4c-progress-row small{display:block;margin-top:10px;color:var(--bem-muted);font-size:12px}
.bem-l2-app .bem-l4c-alert-envelopes{background:#fff;padding:22px;border-radius:14px;border:1px solid var(--bem-border);min-width:0}
.bem-l2-app .bem-l4c-envelope-list{display:grid;gap:8px;margin-top:14px}
.bem-l2-app .bem-l4c-envelope{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--bem-border);font-size:14px}
.bem-l2-app .bem-l4c-envelope span{font-variant-numeric:tabular-nums;white-space:nowrap}
.bem-l2-app .bem-l4c-envelope span.is-over{color:#9a3c30;font-weight:750}
.bem-l2-app .bem-l4c-notice,.bem-l2-app .bem-l4c-empty{padding:14px 18px;background:#eff6f4;border-left:3px solid var(--bem-green);border-radius:7px;color:var(--bem-ink);margin:0}
.bem-l2-app .bem-l4c-empty p{margin:12px 0}
@media(max-width:760px){.bem-l2-app .bem-l4c-progress{grid-template-columns:1fr}.bem-l2-app .bem-l4c-lead{grid-template-columns:minmax(0,1fr) 140px}.bem-l2-app .bem-l4c-ring{width:120px}}
@media(max-width:490px){.bem-l2-app .bem-l4c-lead{grid-template-columns:minmax(0,1fr)}.bem-l2-app .bem-l4c-ring-area{flex-direction:row;justify-content:flex-start;text-align:left}.bem-l2-app .bem-l4c-ring{width:105px}.bem-l2-app .bem-l4c-envelope{flex-wrap:wrap}.bem-l2-app .bem-l4c-envelope span{white-space:normal}.bem-l2-app .bem-l4c-tab{flex:1}}
.bem-l2-app .bem-l4c-ring{flex-shrink:0}

/* L5-A1 — reserve real ledger and goal progression, mobile-first and scoped to BEM. */
.bem-l2-app .bem-l5a-area{min-width:0}
.bem-l2-app .bem-l5a-reserve{min-width:0;margin:18px 0;padding:18px;border:1px solid var(--bem-border);border-radius:15px;background:#fff}
.bem-l2-app .bem-l5a-head{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.bem-l2-app .bem-l5a-head h3{margin:0 0 6px;color:var(--bem-blue)}
.bem-l2-app .bem-l5a-balance{font-size:clamp(24px,3vw,36px);font-variant-numeric:tabular-nums;color:var(--bem-green);overflow-wrap:anywhere}
.bem-l2-app .bem-l5a-actions{display:flex;flex-wrap:wrap;gap:10px}
.bem-l2-app .bem-l5a-actions button,.bem-l2-app .bem-l5a-form-actions button{min-height:44px}
.bem-l2-app .bem-l5a-goal{margin-top:14px}
.bem-l2-app .bem-l5a-goal-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:14px}
.bem-l2-app .bem-l5a-track{height:10px;border-radius:20px;background:#e5efec;overflow:hidden;margin-top:9px}
.bem-l2-app .bem-l5a-track span{height:100%;display:block;border-radius:20px;background:var(--bem-green)}
.bem-l2-app .bem-l5a-planned{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.bem-l2-app .bem-l5a-planned>div{min-width:0;display:flex;flex-direction:column;gap:5px;padding:13px;background:#f0f7f4;border-radius:10px}
.bem-l2-app .bem-l5a-planned small{color:var(--bem-muted)}
.bem-l2-app .bem-l5a-planned strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bem-l2-app .bem-l5a-movements{list-style:none!important;margin:8px 0 0!important;padding:0!important}
.bem-l2-app .bem-l5a-movements li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:12px 0;border-top:1px solid #e6eeea}
.bem-l2-app .bem-l5a-movements li span{display:flex;flex-direction:column;min-width:0;gap:3px}
.bem-l2-app .bem-l5a-movements li small{overflow-wrap:anywhere;color:var(--bem-muted)}
.bem-l2-app .bem-l5a-movements li>strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--bem-green)}
.bem-l2-app .bem-l5a-movements li>strong.is-out{color:#9b3b20}
.bem-l2-app .bem-l5a-form{border:1px solid #cbded6;background:#f7fbfa;padding:15px;border-radius:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bem-l2-app .bem-l5a-form h4,.bem-l2-app .bem-l5a-form p,.bem-l2-app .bem-l5a-form-actions{grid-column:1/-1;margin:0}
.bem-l2-app .bem-l5a-form-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:650px){.bem-l2-app .bem-l5a-reserve{padding:12px}.bem-l2-app .bem-l5a-form{grid-template-columns:1fr}.bem-l2-app .bem-l5a-planned{grid-template-columns:1fr}.bem-l2-app .bem-l5a-actions{width:100%}.bem-l2-app .bem-l5a-actions button{flex:1 1 145px}}

/* L5-A2 — accessible correction actions, including narrow screens. */
.bem-l5a-edit-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.bem-l5a-edit-actions button{min-height:38px;max-width:100%;white-space:normal}
.bem-l4c-reserves{margin:14px 0;padding:16px;border:1px solid #d8e6df;border-radius:12px}
@media(max-width:440px){.bem-l5a-edit-actions{width:100%}.bem-l5a-edit-actions button{flex:1 1 auto}}


/* L6-A1 — connected self-account, scoped to Budget en main. */
.bem-l2-app .bem-l6a1-account{display:grid;gap:18px;max-width:860px;margin:0 auto;padding:8px 0 20px;min-width:0}
.bem-l2-app .bem-l6a1-intro h2{margin:3px 0 8px;font-size:clamp(25px,3vw,34px)}
.bem-l2-app .bem-l6a1-card{background:#fff;border:1px solid var(--bem-border,#dce7e4);border-radius:15px;padding:clamp(16px,3vw,26px);min-width:0}
.bem-l2-app .bem-l6a1-card h3{font-size:21px;margin:0 0 14px;color:#164b58}
.bem-l2-app .bem-l6a1-details{margin:0;display:grid;gap:0}
.bem-l2-app .bem-l6a1-details>div{display:grid;grid-template-columns:minmax(115px,33%) minmax(0,1fr);gap:12px;padding:13px 0;border-top:1px solid #e6efea}
.bem-l2-app .bem-l6a1-details dt{font-weight:650;color:#4b676a}
.bem-l2-app .bem-l6a1-details dd{margin:0;overflow-wrap:anywhere}
.bem-l2-app .bem-l6a1-note{font-size:13px;line-height:1.5;color:#557173;margin:16px 0 0}
.bem-l2-app .bem-l6a1-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}
.bem-l2-app .bem-l6a1-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 17px;border-radius:9px;text-align:center;text-decoration:none!important;font-weight:700}
.bem-l2-app .bem-l6a1-link:focus-visible{outline:3px solid #c49b5b;outline-offset:3px}
.bem-l2-app .bem-l6a1-onboarding-account{display:flex;justify-content:flex-end;margin:12px 0}
@media(max-width:520px){.bem-l2-app .bem-l6a1-details>div{grid-template-columns:minmax(0,1fr);gap:3px}.bem-l2-app .bem-l6a1-actions{flex-direction:column;align-items:stretch}.bem-l2-app .bem-l6a1-link{width:100%;box-sizing:border-box}}
/* Native anchor actions need their own colors: legacy BEM buttons were styled with button selectors. */
.bem-l2-app a.bem-l6a1-link.bem-l2-primary{background:#174e5c!important;border:1px solid #174e5c!important;color:#fff!important}
.bem-l2-app a.bem-l6a1-link.bem-l2-primary:hover{background:#0d3944!important;color:#fff!important}
.bem-l2-app a.bem-l6a1-link.bem-l2-secondary{background:#fff!important;border:1px solid #a7c9bf!important;color:#174e5c!important}
.bem-l2-app a.bem-l6a1-link.bem-l2-secondary:hover{background:#edf5f2!important}
@media(max-width:760px){
 .bem-l2-app .bem-d2-nav{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin;justify-content:flex-start}
 .bem-l2-app .bem-d2-nav-item{flex:0 0 auto!important;min-width:90px!important;white-space:nowrap;padding-inline:12px!important}
}

/* L6-A2: discreet and accessible current-period export in Mon compte. */
.bem-l6a2-card{overflow-wrap:anywhere}
.bem-l6a2-export-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;margin-top:1rem}
.bem-l6a2-export-button{max-width:100%;min-height:44px;white-space:normal;text-align:center}
.bem-l6a2-success{color:#246848;font-weight:600;margin:.5rem 0 0}
@media(max-width:620px){.bem-l6a2-export-actions,.bem-l6a2-export-button{width:100%}}

/* L7-A1: informational subscription status, no checkout or trial CTA. */
.bem-l2-app .bem-l7a1-plan{font-weight:750;color:#174e5c;font-size:1.2rem;margin:0;}

/* L7-A2.2 — Stripe TEST checkout (no live payment or Premium entitlement). */
.bem-l2-app .bem-l7a22-test{display:grid;gap:13px;margin-top:18px;padding:16px;border:1px solid #ccdcd5;border-radius:13px;background:#f6faf8}
.bem-l2-app .bem-l7a22-test>p{margin:0;overflow-wrap:anywhere}
.bem-l2-app .bem-l7a22-marker{font-size:13px;font-weight:800;letter-spacing:.03em;color:#164b58}
.bem-l2-app .bem-l7a22-check{display:flex;align-items:flex-start;gap:10px;min-width:0;font-size:14px;line-height:1.5}
.bem-l2-app .bem-l7a22-check input{flex-shrink:0;margin:4px 0 0;width:19px;height:19px}
.bem-l2-app .bem-l7a22-check span{min-width:0;overflow-wrap:anywhere}
.bem-l2-app .bem-l7a22-test .bem-l6a1-actions{margin:4px 0 0}
.bem-l2-app .bem-l7a22-test button{min-height:44px;white-space:normal;text-align:center}
@media(max-width:550px){.bem-l2-app .bem-l7a22-test{padding:12px}.bem-l2-app .bem-l7a22-test button{width:100%}}
/* L7-B2.1 – budget list and readonly downgrade clarity; mobile-first. */
.bem-l7b2-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;align-items:center}
.bem-l7b2-budget{border:1px solid #d7dedb;border-radius:12px;padding:14px;margin:12px 0;background:#fff;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.bem-l7b2-budget>strong{font-weight:700;flex:1 1 200px;color:#234e4e}
.bem-l7b2-budget .bem-l7b2-actions{margin:0;flex:1 1 100%;}
.bem-l7b2-marker{display:inline-block;background:#f1f4f3;border-radius:20px;padding:4px 9px;font-size:12px;color:#45635b}
@media(max-width:390px){.bem-l7b2-actions>button{width:100%}.bem-l7b2-budget{padding:12px}}

/* L7-B2.2 — selection of retained future-period items, accessible on mobile. */
.bem-l2-app .bem-l7b22-selector{padding:clamp(14px,2vw,23px);margin:17px 0;border:1px solid #b5d4c9;background:#f5faf8;border-radius:14px;min-width:0}
.bem-l2-app .bem-l7b22-selector h2{font-size:clamp(19px,2.3vw,24px);margin:0 0 9px;color:#174d55}
.bem-l2-app .bem-l7b22-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:17px 0}
.bem-l2-app .bem-l7b22-columns fieldset{margin:0;padding:12px;border:1px solid #d0e0d8;border-radius:10px;min-width:0;background:#fff}
.bem-l2-app .bem-l7b22-columns legend{font-weight:700;color:#174d55;padding:0 6px}
.bem-l2-app .bem-l7b22-choice{display:flex;gap:10px;align-items:start;padding:11px 4px;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.bem-l2-app .bem-l7b22-choice input{flex:0 0 19px;width:19px;height:19px;margin:1px 0 0}
.bem-l2-app .bem-l7b22-selector button{min-height:44px;white-space:normal}
.bem-l2-app .bem-l7b22-note,.bem-l2-app .bem-l7b22-retained{margin:14px 0;padding:14px;border:1px solid #d6e5dc;border-radius:12px;background:#f7faf8}
.bem-l2-app .bem-l7b22-note p,.bem-l2-app .bem-l7b22-retained p{font-size:14px;margin:8px 0}
@media(max-width:650px){.bem-l2-app .bem-l7b22-columns{grid-template-columns:1fr}.bem-l2-app .bem-l7b22-selector button{width:100%}}

/* L7-B2.3 — consultation historique sans affordance de modification. */
.bem-l7b23-history{max-width:100%;min-width:0}
.bem-l7b23-periods{display:grid;gap:10px;margin:16px 0 24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr))}
.bem-l7b23-period{min-height:44px;background:#f5f9f7;border:1px solid #d1e2dd;border-radius:9px;padding:10px 12px;text-align:center;color:#174d55;cursor:pointer}
.bem-l7b23-period.is-selected{border:2px solid #397c69;background:#e8f3f0;font-weight:700}
.bem-l7b23-pagination{display:flex;gap:12px;grid-column:1/-1;align-items:center;justify-content:center;flex-wrap:wrap}
.bem-l7b23-detail{border-top:1px solid #d1e2dd;padding-top:14px}
.bem-l7b23-readonly{border:1px solid #dfc99d;background:#faf5e8;border-radius:8px;padding:10px;color:#674c26;font-weight:650}
.bem-l7b23-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr));gap:10px;margin:15px 0 25px}
.bem-l7b23-kpi{background:#f1f7f5;border:1px solid #deebe5;border-radius:12px;padding:13px;min-width:0;display:flex;flex-direction:column;gap:8px}
.bem-l7b23-kpi span{font-size:13px;color:#4e6568}
.bem-l7b23-kpi strong{font-size:19px;color:#164953;overflow-wrap:anywhere}
.bem-l7b23-group{margin:8px 0;padding:8px 12px;border-left:3px solid #d1e3dd;background:#f9fbfa}
.bem-l7b23-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:7px 0}
.bem-l7b23-line span:last-child{text-align:right;white-space:nowrap}
@media(max-width:380px){.bem-l7b23-kpi strong{font-size:17px}.bem-l7b23-line{flex-wrap:wrap}.bem-l7b23-line span:last-child{white-space:normal}}

/* L7-B2.4: historical CSV action is a native browser download, not an edit action. */
.bem-l7b24-export{margin:12px 0 8px;max-width:100%;white-space:normal;text-align:center}

/* REF-MOIS-02 — Navigation mensuelle commune et mois non préparé */
.bem-ref-month-nav{display:flex;align-items:center;justify-content:center;gap:1rem;padding:.85rem 1rem;margin:1rem 0;background:#f2f7f5;border:1px solid #d3e2df;border-radius:14px;color:#174e5c}
.bem-ref-month-arrow{display:inline-flex;align-items:center;justify-content:center;width:42px;min-height:42px;border:1px solid #b7ceca;border-radius:10px;background:#fff;color:#174e5c;font-size:1.65rem;cursor:pointer}
.bem-ref-month-arrow:disabled{opacity:.35;cursor:not-allowed}
.bem-ref-month-center{display:flex;align-items:center;flex-direction:column;gap:.25rem;min-width:0;text-align:center}
.bem-ref-month-center strong{font-size:1.12rem}
.bem-ref-month-picker{display:flex;gap:.4rem;align-items:center;justify-content:center;font-size:.78rem;color:#315964}
.bem-ref-month-picker input{box-sizing:border-box;width:150px;max-width:100%;min-height:34px;border:1px solid #c1d4d0;border-radius:8px;background:#fff;color:#174e5c;padding:.25rem .4rem}
.bem-ref-month-empty{padding:1.4rem;border:1px solid #d3e2df;background:#f7faf9;border-radius:12px}
@media(max-width:440px){.bem-ref-month-nav{gap:.35rem;padding:.65rem .3rem}.bem-ref-month-arrow{width:38px;min-height:38px}.bem-ref-month-picker{flex-direction:column;gap:.1rem}.bem-ref-month-picker input{width:135px}.bem-ref-month-center strong{font-size:1rem}}

/* L7-C1.1 — comparaison factuelle Premium, sans nouvel écran principal. */
.bem-l7c11-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px}
.bem-l7c11-tabs button{min-width:120px;min-height:42px}
.bem-l7c11-tabs button.is-current{background:#e8f3f0;border-color:#397c69;color:#174d55;font-weight:700}
.bem-l7c11{border:1px solid #cfe0dc;border-radius:12px;background:#fff;padding:clamp(12px,2.5vw,22px);min-width:0}
.bem-l7c11-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:18px 0}
.bem-l7c11-controls label{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1;font-size:.9rem;font-weight:600;color:#174d55}
.bem-l7c11-select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #b8d0cb;border-radius:9px;background:#fff;color:#174d55}
.bem-l7c11-controls>button{min-height:44px}
.bem-l7c11-section{margin:20px 0}
.bem-l7c11-scroll{max-width:100%;overflow-x:auto;border:1px solid #d7e5e1;border-radius:10px;scrollbar-width:thin}
.bem-l7c11-scroll:focus-visible{outline:2px solid #277f78;outline-offset:2px}
.bem-l7c11-table{width:100%;min-width:820px;border-collapse:collapse;font-size:.87rem}
.bem-l7c11-table th,.bem-l7c11-table td{padding:11px 10px;vertical-align:top;text-align:left;border-bottom:1px solid #e5eeeb}
.bem-l7c11-table thead th{background:#eff6f3;color:#164b52;font-weight:700;white-space:nowrap}
.bem-l7c11-table tbody th{font-weight:600;color:#174d55;min-width:140px}
.bem-l7c11-table tbody tr:nth-child(even){background:#fafcfb}
.bem-l7c11-table td{min-width:100px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.bem-l7c11-controls{flex-direction:column;align-items:stretch}.bem-l7c11-controls label{min-width:0;width:100%}.bem-l7c11-controls button{width:100%}}

/* L7-C1.2 — factual Premium references, compact and mobile-first. */
.bem-l7c12{margin:1.25rem 0;padding:1.1rem;border:1px solid #d6e3df;border-radius:14px;background:#f7faf9}
.bem-l7c12 h3{margin:.15rem 0 .5rem;color:#114d5b;font-size:1.15rem}
.bem-l7c12-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.85rem;margin:.9rem 0}
.bem-l7c12-month{min-width:0;padding:.85rem;border:1px solid #d7e4e0;border-radius:11px;background:white}
.bem-l7c12-month summary{cursor:pointer;font-weight:700;color:#104d5a}
.bem-l7c12-month summary:focus-visible{outline:2px solid #155d67;outline-offset:4px}
.bem-l7c12-subtitle{font-size:.82rem;font-weight:400;color:#50747b}
.bem-l7c12-totals{font-size:.85rem;line-height:1.5;border-bottom:1px solid #e1ece8;padding-bottom:.65rem}
.bem-l7c12-group{padding:.45rem 0;border-bottom:1px solid #ecf0ed}
.bem-l7c12-group:last-child{border-bottom:0}
.bem-l7c12-group h4{font-size:.92rem;color:#205968;margin:.25rem 0 .5rem}
.bem-l7c12-line{display:flex;justify-content:space-between;align-items:start;gap:.6rem;padding:.4rem 0;font-size:.85rem;line-height:1.4}
.bem-l7c12-label{overflow-wrap:anywhere;flex:1;min-width:0}
.bem-l7c12-values{text-align:right;color:#415e61;flex:1.2;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:600px){.bem-l7c12{padding:.8rem}.bem-l7c12-grid{display:block}.bem-l7c12-month{margin-bottom:.65rem}.bem-l7c12-line{flex-direction:column;gap:.1rem}.bem-l7c12-values{text-align:left}}
/* BEM-CONTACT-01: mobile-first, native app form, no modal or extra navigation bar. */
.bem-l2-app.bem-contact-view{max-width:800px;margin:0 auto;padding:clamp(14px,3vw,30px);}
.bem-contact-view>.bem-l2-secondary{margin-bottom:18px;}
.bem-contact-form,.bem-contact-success{background:var(--bem-surface,#fff);border:1px solid #d8e5df;border-radius:15px;padding:clamp(16px,3vw,28px);display:grid;gap:15px;min-width:0;}
.bem-contact-form h2,.bem-contact-success h2{margin:0;color:#174d55;font-size:clamp(22px,3vw,28px);}
.bem-contact-form p,.bem-contact-success p{margin:0;line-height:1.6;}
.bem-contact-form>label{font-weight:700;color:#174d55;display:grid;gap:7px;}
.bem-contact-form input[type=email],.bem-contact-form select,.bem-contact-form textarea{width:100%;box-sizing:border-box;border:1px solid #98b7ae;border-radius:9px;padding:12px 13px;background:#fff;color:#193944;font:inherit;font-weight:400;min-height:46px;}
.bem-contact-form textarea{resize:vertical;min-height:145px;}
.bem-contact-form input:focus-visible,.bem-contact-form select:focus-visible,.bem-contact-form textarea:focus-visible{outline:3px solid #d5a74e;outline-offset:2px;}
.bem-contact-form .bem-l2-primary{justify-self:start;min-height:46px;min-width:180px;}
.bem-contact-trap{position:absolute!important;left:-9999px!important;height:1px;width:1px;overflow:hidden;}
.bem-contact-onboarding-link{display:flex;justify-content:flex-end;}
@media(max-width:600px){.bem-contact-form .bem-l2-primary{width:100%;}.bem-contact-onboarding-link{justify-content:stretch}.bem-contact-onboarding-link>button{width:100%;}}

/* BEM-CONTACT-01 extension: private screenshot attachments (enabled only with FEM Admin capability). */
.bem-contact-attachments{display:grid;gap:8px;border:1px solid #d8e5df;border-radius:10px;padding:14px;min-width:0}
.bem-contact-attachments>label{font-weight:700;color:#174d55}
.bem-contact-attachments input[type=file]{display:block;max-width:100%;font:inherit}
.bem-contact-attachments input[type=file]:focus-visible{outline:3px solid #d5a74e;outline-offset:3px}
.bem-contact-files-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bem-contact-files-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:.88rem}
.bem-contact-files-list li span{overflow-wrap:anywhere;min-width:0;flex:1 1 140px}
.bem-contact-files-list button{min-height:42px}
@media(max-width:600px){.bem-contact-files-list li{align-items:stretch}.bem-contact-files-list button{width:100%}}

/* UX-M02 — Budget en main monthly navigation: five-month timeline on desktop,
   compact month switcher and full-width year chooser on phones. */
.bem-month-nav{display:grid;gap:12px;margin:16px 0 22px;padding:17px 20px;border:1px solid #d3e2df;border-radius:15px;background:#f2f8f6;color:#174e5c;min-width:0}
.bem-month-top{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px auto;grid-template-areas:'heading prev next select';gap:9px;align-items:center}
.bem-month-heading{grid-area:heading;display:grid;gap:3px;min-width:0}
.bem-month-eyebrow{text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:700;color:#55736e}
.bem-month-heading strong{font-size:clamp(19px,2.1vw,25px);line-height:1.25;color:#164e5b}
.bem-month-current-state{font-size:12px;color:#416d67;display:inline-flex;gap:7px;align-items:center}
.bem-month-current-state>span{color:#327c6a;font-size:15px;font-weight:700}
.bem-month-control{min-height:44px;min-width:44px;padding:6px 10px;border:1px solid #a8c5be!important;border-radius:10px!important;background:#fff!important;color:#174e5c!important;font-weight:750!important;line-height:1.25}
.bem-month-control:hover:not(:disabled){background:#e4f1eb!important;border-color:#5c9c8c!important}
.bem-month-prev{grid-area:prev;font-size:27px!important;padding:1px 10px!important}
.bem-month-next{grid-area:next;font-size:27px!important;padding:1px 10px!important}
.bem-month-calendar{grid-area:select;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 15px!important;font-size:13px}
.bem-month-calendar>span[aria-hidden]{font-size:21px;line-height:1}
.bem-month-calendar-mobile{display:none}
.bem-month-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;min-width:0}
.bem-month-tile{min-width:0;min-height:90px;border:1px solid #d3e2df!important;border-radius:11px!important;background:#fff!important;color:#174e5c!important;padding:10px 7px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;font-size:13px!important;line-height:1.2}
.bem-month-tile:hover:not(:disabled){border-color:#75a89d!important;background:#f4fbf8!important}
.bem-month-tile.is-selected{background:#e4f2ee!important;border:2px solid #216b70!important;box-shadow:inset 0 -3px 0 #39836f}
.bem-month-tile.is-locked{background:#f7f9f8!important;color:#738c88!important}
.bem-month-tile.is-error{color:#96543f!important}
.bem-month-tile-name{font-weight:750;font-size:13px}
.bem-month-tile-year,.bem-month-tile-caption{font-size:11px;color:#607c78;font-weight:500}
.bem-month-tile-symbol{font-weight:800;color:#39816e;font-size:16px;line-height:1.2}
.bem-month-tile.is-locked .bem-month-tile-symbol{font-size:12px;filter:grayscale(1);opacity:.7}
.bem-month-tile.is-to_prepare .bem-month-tile-symbol{color:#a67731}
.bem-month-origin{margin:0;font-size:12px;color:#587772}
.bem-month-year-panel{background:#fff;border:1px solid #cadfd8;border-radius:12px;padding:15px;display:grid;gap:14px;max-width:100%}
.bem-month-year-header,.bem-month-year-controls{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bem-month-year-header>strong{font-size:16px;color:#164e5b}
.bem-month-close{width:42px;min-height:42px;background:#fff!important;border:1px solid #d7e5e0!important;border-radius:9px!important;color:#285a65!important}
.bem-month-year-controls{max-width:300px;margin:auto;width:100%}
.bem-month-year-controls strong{font-size:19px;color:#164e5b}
.bem-month-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bem-month-year-grid .bem-month-tile{min-height:66px;padding:7px 4px!important;gap:4px}
.bem-month-year-grid .bem-month-tile-name{font-weight:650;overflow-wrap:anywhere;font-size:12px}
.bem-month-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#55726d}
.bem-month-feedback{padding:11px 13px;border-radius:9px;border:1px solid #ead7b3;background:#fffcf5;color:#775522;font-size:13px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.bem-month-retry{border:1px solid #baac85!important;background:#fff!important;border-radius:6px!important;padding:7px 10px!important;color:#5a4b2b!important}
@media(min-width:641px) and (max-width:899px){
 .bem-month-top{grid-template-columns:minmax(0,1fr) 44px 44px auto}
 .bem-month-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bem-month-strip>.bem-month-tile:first-child,.bem-month-strip>.bem-month-tile:last-child{display:none}
}
@media(max-width:640px){
 .bem-month-nav{padding:13px;gap:11px;margin:13px 0 18px}
 .bem-month-top{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:'prev heading next' 'select select select';gap:10px 8px}
 .bem-month-eyebrow{display:none}
 .bem-month-heading{text-align:center;justify-items:center;gap:4px}
 .bem-month-heading strong{font-size:clamp(17px,4.5vw,21px)}
 .bem-month-current-state{font-size:11px}
 .bem-month-control{min-width:44px;min-height:44px}
 .bem-month-calendar{width:100%;min-height:46px}
 .bem-month-calendar-desktop{display:none}
 .bem-month-calendar-mobile{display:inline}
 .bem-month-strip{display:none}
 .bem-month-origin{text-align:center;font-size:11px}
 .bem-month-year-panel{padding:11px;gap:11px}
 .bem-month-year-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .bem-month-year-grid .bem-month-tile{min-height:67px}
 .bem-month-legend{gap:8px 15px}
}
@media(prefers-reduced-motion:reduce){.bem-month-nav button{transition:none!important}}

/* BEM-CRE-01 CRE-B — quick creation reuses the established FEM form components. */
.bem-creb-quick{max-width:900px;margin-inline:auto;padding:clamp(14px,3vw,30px)}
.bem-creb-quick>.bem-l2-secondary{margin-bottom:16px}
.bem-creb-card{border:1px solid #d6e4de;border-radius:16px;background:#fff;padding:clamp(18px,3vw,30px);display:grid;gap:16px;min-width:0}
.bem-creb-card h2{margin:0;color:#174e5b;font-size:clamp(22px,3vw,30px)}
.bem-creb-card p{margin:0;line-height:1.55}
.bem-creb-card form{display:grid;gap:16px;max-width:680px;min-width:0}
.bem-creb-card input[type=text]{width:100%;box-sizing:border-box;min-height:46px;font:inherit;padding:11px 13px;border:1px solid #9cb8b0;border-radius:9px;color:#183f49;background:#fff}
.bem-creb-card input[type=text]:focus-visible{outline:3px solid #cba158;outline-offset:2px}
.bem-creb-month,.bem-creb-onboarding-month{padding:13px 16px;border:1px solid #d5e5df;border-radius:10px;background:#f2f8f6;color:#174e5b;display:grid;gap:5px}
.bem-creb-month>p,.bem-creb-onboarding-month>p{font-size:13px;color:#53746d;margin:0;line-height:1.5}
.bem-creb-actions{display:flex;flex-wrap:wrap;gap:10px}
.bem-creb-actions .bem-l2-primary{min-height:46px}
.bem-creb-empty{border:1px solid #d5e5df;border-left:4px solid #358371;border-radius:10px;padding:15px 18px;margin:16px 0;background:#f2f8f6;color:#174e5b}
.bem-creb-empty p{margin:8px 0 0;line-height:1.55}
@media(max-width:640px){.bem-creb-actions{flex-direction:column}.bem-creb-actions button{width:100%}.bem-creb-card{padding:17px}}

.bem-creb-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
@media(max-width:640px){.bem-creb-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bem-creb-shortcuts button{min-width:0}}

/* BEM UX-FIX-01: reversible budget trash, distinct from permanent deletion. */

/* MSL-B — « Mes solutions »: editorial sections and accessible cards, independent of budget state. */
.bem-msl-host{max-width:1120px;min-width:0;margin-inline:auto}
.bem-msl-root{--msl-blue:var(--bem-blue,#174e5c);--msl-green:var(--bem-green,#3b806e);--msl-ochre:var(--bem-ochre,#c49b5b);color:var(--bem-ink,#243c43);min-width:0}
.bem-msl-root *{box-sizing:border-box}
.bem-msl-root h1,.bem-msl-root h2,.bem-msl-root h3,.bem-msl-root h4{font-family:inherit;color:var(--msl-blue);line-height:1.27;letter-spacing:-.02em}
.bem-msl-root h1{margin:0;font-size:clamp(29px,3.3vw,41px);font-weight:800}
.bem-msl-root h2{font-size:clamp(21px,2.3vw,27px);font-weight:750;margin:0}
.bem-msl-root h3{font-size:clamp(17px,1.7vw,21px);font-weight:750;margin:0}
.bem-msl-root h4{font-size:16px;margin:0}
.bem-msl-root p{line-height:1.65;overflow-wrap:break-word}
.bem-msl-intro{padding:4px 0 23px;border-bottom:1px solid #e0eae6;margin-bottom:28px}
.bem-msl-intro>p{max-width:760px;font-size:16px;color:#516b6f;margin:12px 0 0}
.bem-msl-section{margin:0 0 34px;min-width:0}
.bem-msl-section-heading{display:flex;gap:15px;align-items:center;margin-bottom:16px;min-width:0}
.bem-msl-section-heading h2{font-size:clamp(21px,2.2vw,26px)!important}
.bem-msl-section-heading p{font-size:14px;line-height:1.5;color:#547373;margin:4px 0 0}
.bem-msl-icon{flex:0 0 51px;height:51px;width:51px;background:#e8f2ed;color:#2b7868;border:1px solid #c5ded4;border-radius:14px;display:grid;place-items:center;font-size:24px;font-weight:800}
.bem-msl-section:nth-of-type(3) .bem-msl-icon{background:#eef4f6;color:#20586a;border-color:#d3e3e8}
.bem-msl-section:nth-of-type(4) .bem-msl-icon{background:#fcf5e9;color:#8f6c32;border-color:#eddfc2}
.bem-msl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.bem-msl-card{width:100%;min-width:0;min-height:148px;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;padding:19px 20px!important;border:1px solid #d4e3dd!important;border-radius:14px!important;background:#fff!important;color:#28464b!important;box-shadow:0 3px 12px rgba(22,78,85,.04);white-space:normal;line-height:1.45;transition:box-shadow .16s,border-color .16s,transform .16s}
.bem-msl-card:hover{border-color:#82b2a5!important;box-shadow:0 7px 23px rgba(24,83,82,.11);transform:translateY(-2px)}
.bem-msl-card:focus-visible,.bem-msl-back:focus-visible,.bem-msl-resource:focus-visible{outline:3px solid #c49b5b;outline-offset:3px}
.bem-msl-card-title{display:block;font-size:17px;font-weight:760;color:var(--msl-blue);line-height:1.35;overflow-wrap:break-word}
.bem-msl-card-summary{display:block;font-size:14px;color:#516a6b;line-height:1.6;overflow-wrap:break-word}
.bem-msl-card-bottom{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:13px;border-top:1px solid #eef2f0;color:#627b78;font-size:12px;font-weight:600}
.bem-msl-card-meta:empty{display:none}
.bem-msl-premium-hint{font-size:11px;background:#f9f1e1;color:#795a29;border:1px solid #ead9b4;border-radius:100px;padding:5px 8px}
.bem-msl-card-arrow{margin-left:auto;font-size:20px;color:#388274;line-height:1}
.bem-msl-card.is-compact{min-height:105px}
.bem-msl-status,.bem-msl-empty,.bem-msl-error{padding:20px;border:1px solid #d6e6df;border-radius:12px;background:#f6faf8;color:#345963;margin:15px 0}
.bem-msl-empty h2{font-size:20px!important;margin:0 0 6px!important}
.bem-msl-empty p,.bem-msl-error p{margin:0 0 12px}
.bem-msl-error{border-color:#e5c5bd;background:#fff7f5;color:#813f3c}
.bem-msl-more{display:flex;justify-content:center;padding:8px 0 30px}
.bem-msl-detail{max-width:860px;margin-inline:auto;min-width:0}
.bem-msl-back{display:inline-flex;align-items:center;gap:8px;border:0!important;background:transparent!important;color:#216a70!important;text-decoration:none;font-weight:700;padding:9px 1px!important;margin-bottom:17px}
.bem-msl-back:hover{text-decoration:underline}
.bem-msl-detail-header{margin:0 0 27px;padding-bottom:25px;border-bottom:1px solid #dae6e0}
.bem-msl-overline{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#598075;font-weight:800;margin:0 0 9px!important}
.bem-msl-deck{font-size:17px;color:#536e71;margin:11px 0 8px;line-height:1.65}
.bem-msl-read-time{color:#6b7c79;font-size:13px;margin:10px 0 0}
.bem-msl-block{margin:0 0 23px;min-width:0}
.bem-msl-block h2{font-size:22px!important;margin:0 0 9px!important}
.bem-msl-block>p{margin:5px 0 0}
.bem-msl-key-action{border-left:4px solid #428b74;background:#eff7f3;border-radius:11px;padding:20px 22px;margin:22px 0 25px}
.bem-msl-key-action h2{font-size:21px!important;margin:0 0 9px!important}
.bem-msl-article-html{line-height:1.75;min-width:0;overflow-wrap:anywhere}
.bem-msl-article-html> :first-child{margin-top:0}
.bem-msl-article-html> :last-child{margin-bottom:0}
.bem-msl-article-html h2{font-size:21px!important;margin:20px 0 9px!important}
.bem-msl-article-html h3{font-size:18px!important;margin:17px 0 8px!important}
.bem-msl-article-html ul,.bem-msl-article-html ol{margin:12px 0 17px;padding-left:25px}
.bem-msl-article-html li{margin:5px 0}
.bem-msl-article-html a{color:#1e6774;text-decoration:underline;overflow-wrap:anywhere}
.bem-msl-article-html table{display:block;overflow:auto;max-width:100%;border-collapse:collapse;margin:15px 0}
.bem-msl-article-html td,.bem-msl-article-html th{border:1px solid #d5e3dc;padding:9px 11px;white-space:normal;min-width:90px}
.bem-msl-article-html img{max-width:100%;height:auto}
.bem-msl-outline{margin:20px 0 27px;background:#f7f9f8;padding:17px 20px;border-radius:11px;border:1px solid #e0e7e3}
.bem-msl-outline ul{padding-left:20px;margin:9px 0 0;line-height:1.65}
.bem-msl-resources{background:#f3f8f6;border:1px solid #d7e8e1;padding:19px;border-radius:13px}
.bem-msl-resource-list{display:grid;gap:10px;margin-top:13px}
.bem-msl-resource{display:flex;align-items:center;gap:12px;padding:13px 14px;background:#fff;border:1px solid #d5e5df;border-radius:10px;text-decoration:none!important;color:var(--msl-blue)!important;min-width:0}
.bem-msl-resource:hover{border-color:#80b5a3;background:#fdfffd}
.bem-msl-resource-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;flex:0 0 37px;background:#e7f3ed;font-weight:900;font-size:21px;color:#307c6a}
.bem-msl-resource-body{display:grid;gap:2px;flex:1;min-width:0;overflow-wrap:anywhere}
.bem-msl-resource-body strong{font-size:14px}
.bem-msl-resource-body>span{font-size:12px;color:#607776}
.bem-msl-resource-trail{font-size:18px;color:#628a80}
.bem-msl-premium-panel{padding:21px 22px;margin:25px 0 31px;border:1px solid #e8d7b5;border-radius:14px;background:#fffbf4}
.bem-msl-premium-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.bem-msl-premium-mark{color:#937133;font-size:25px}
.bem-msl-premium-head h2{font-size:22px!important;margin:0!important}
.bem-msl-premium-panel>div>p{margin:10px 0}
.bem-msl-step{padding:18px 0;border-top:1px solid #e8d9bb;margin-top:15px}
.bem-msl-step:first-child{margin-top:6px}
.bem-msl-step h3{margin:0 0 12px}
.bem-msl-step .bem-msl-resources{background:#fff;margin-top:18px}
.bem-msl-step .bem-msl-resources h4{font-size:16px}
.bem-msl-related{margin:28px 0 45px;padding-top:22px;border-top:1px solid #e2ebe7}
.bem-msl-related h2{font-size:23px!important;margin:0 0 15px!important}
@media(max-width:700px){
 .bem-msl-host{padding:0!important}.bem-msl-section{margin-bottom:27px}
 .bem-msl-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .bem-msl-section-heading{gap:12px;align-items:flex-start}
 .bem-msl-icon{width:44px;height:44px;flex-basis:44px;font-size:21px}
 .bem-msl-intro{margin-bottom:24px}.bem-msl-intro p{font-size:14px}
 .bem-msl-card{padding:16px!important;min-height:120px}
 .bem-msl-card-title{font-size:16px}
 .bem-msl-key-action,.bem-msl-premium-panel{padding:17px 16px}
 .bem-msl-resource{padding:11px}
 .bem-msl-detail-header{padding-bottom:20px}
}
@media(prefers-reduced-motion:reduce){.bem-msl-card{transition:none}.bem-msl-card:hover{transform:none}}

/* BEM-DELETE-01 — Two deliberate confirmations, without any user trash or restore. */
.bem-budget-delete-action{color:#8a352c;border-color:#d1aca6}
.bem-budget-delete-action:hover,.bem-budget-delete-action:focus-visible{background:#fff0ed;border-color:#a84538}
.bem-budget-delete-dialog{margin:20px 0;padding:clamp(16px,3vw,26px);border:2px solid #c46b58;border-radius:14px;background:#fffaf9;max-width:720px;box-shadow:0 2px 12px rgba(60,38,30,.07)}
.bem-budget-delete-dialog h3{margin:0 0 10px;color:#743328}
.bem-budget-delete-dialog p{max-width:65ch}
.bem-budget-delete-dialog input{display:block;width:100%;max-width:480px;min-height:44px;margin:8px 0 12px;padding:10px 12px;border:1px solid #9dbab5;border-radius:9px;background:#fff;color:#143b45}
.bem-budget-delete-dialog input:focus-visible{outline:3px solid #1b6a73;outline-offset:2px}
.bem-budget-delete-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.bem-budget-delete-danger{min-height:44px;padding:11px 17px;border:1px solid #a53b30;border-radius:9px;background:#9b3c32;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.bem-budget-delete-danger:hover:not(:disabled){background:#7e2d25}
.bem-budget-delete-danger:focus-visible{outline:3px solid #1b6a73;outline-offset:2px}
.bem-budget-delete-danger:disabled{opacity:.55;cursor:not-allowed}

/* BEM SHARE-01 SHR-B — standalone owner/reader space, mobile first */
.bem-share-shell{max-width:1050px;margin:0 auto;padding:12px 0 36px;color:#194653}
.bem-share-intro{margin-bottom:22px}
.bem-share-intro h2{font-size:clamp(1.6rem,3vw,2.1rem);margin:0 0 6px;color:#155262}
.bem-share-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}
.bem-share-card{border:1px solid #d2e3e0;background:#fff;border-radius:14px;padding:18px;margin:14px 0}
.bem-share-card-title{display:flex;align-items:start;justify-content:space-between;gap:15px;flex-wrap:wrap}
.bem-share-card-title h3{margin:0;font-size:1.15rem}
.bem-share-card-title span{background:#f0f7f5;border-radius:20px;padding:4px 10px;font-size:.84rem}
.bem-share-person{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #e4edeb;padding:12px 0;overflow-wrap:anywhere}
.bem-share-form{display:grid;gap:12px;max-width:470px;padding:12px 0}
.bem-share-form label{display:grid;gap:6px;font-weight:600}
.bem-share-form input{border:1px solid #b4cfc9;background:#fff;border-radius:8px;width:100%;min-height:45px;padding:10px;font:inherit;color:#103e49}
.bem-share-only{display:inline-block;font-weight:650;color:#155c52;background:#e9f5ef;border-radius:10px;padding:9px 13px}
.bem-share-tab{border:1px solid #abc9c2;background:#fff;padding:9px 12px;border-radius:8px;color:#195464;cursor:pointer;font:inherit}
.bem-share-tab.is-active{background:#e2f2ee;border-color:#205d56;box-shadow:inset 0 -2px #276f65;font-weight:700}
.bem-share-tab:focus-visible{outline:3px solid #c29c42;outline-offset:2px}
.bem-share-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.bem-share-stat{background:#fff;border:1px solid #d4e3e0;padding:15px;border-radius:10px;display:grid;gap:5px}
.bem-share-stat span{font-size:.86rem;color:#496d73}
.bem-share-stat strong{font-size:1.12rem;overflow-wrap:anywhere}
.bem-share-group{margin:16px 0 20px;border-bottom:1px solid #d4e3e0;padding-bottom:14px}
.bem-share-group h3{font-size:1.08rem;margin-bottom:8px}
.bem-share-lines{list-style:none;margin:0;padding:0}
.bem-share-lines li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf2f0;overflow-wrap:anywhere}
.bem-share-lines li span:last-child{text-align:right;white-space:nowrap}
.bem-share-success{padding:12px;border:1px solid #8dbca6;background:#ecf8f1;border-radius:9px}
.bem-share-compare label{display:grid;gap:6px;font-weight:600}
.bem-share-compare select{min-width:145px;padding:10px;border:1px solid #adc7c0;background:#fff;border-radius:8px}
@media(max-width:700px){.bem-share-card{padding:14px}.bem-share-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bem-share-lines li{font-size:.9rem}.bem-share-actions{gap:6px}}
@media(max-width:380px){.bem-share-stats{grid-template-columns:1fr}}

/* BEM UX LOT 1 — 2026-11-12. Overlays previous presentation rules; no shared WordPress theme rules. */
.bem-l1-shell{
 --bem-blue:#164B55; --bem-blue-dark:#123B43; --bem-green:#285F4E;
 --bem-ochre:#AD7729; --bem-border:#CCD8D1; --bem-bg:#F7F7F1;
 --bem-ink:#203431; --bem-muted:#475C55;
 color:var(--bem-ink);font-size:16px;
}
.bem-l1-shell :is(.bem-l2-app,.bem-l2-field,.bem-l2-app button){font-family:inherit}
.bem-l2-app :is(h2,h3,h4){color:var(--bem-blue)}
.bem-l2-app h2{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.bem-l2-app :is(.bem-l2-primary){background:var(--bem-green)!important;border-color:var(--bem-green)!important}
.bem-l2-app :is(.bem-l2-primary):hover:not(:disabled){background:#1C4A3C!important}
.bem-l2-app :is(a:not([class]),.bem-l2-text-btn){color:var(--bem-green)!important}
.bem-l2-app :is(a,button,input,select,textarea):focus-visible{outline:3px solid #AD7729!important;outline-offset:3px}
.bem-l2-app :is(.bem-l2-summary-card,.bem-l2-recap-highlight){background:#fff}
.bem-l2-app :is(.bem-l2-summary-card strong,.bem-l2-recap-highlight strong,.bem-l2-margin strong){font-variant-numeric:tabular-nums}
.bem-ux1-onboarding{max-width:1240px;margin:0 auto}
.bem-ux1-onboarding-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--bem-border);padding:12px 0 18px;margin-bottom:18px}
.bem-ux1-onboarding-head>strong{font-size:20px;color:var(--bem-blue);font-weight:800;letter-spacing:-.02em}
.bem-ux1-onboarding-head>strong span{color:var(--bem-green)}
.bem-ux1-onboarding-head>div{display:flex;align-items:center;gap:16px}
.bem-ux1-quit{font-size:14px;font-weight:650;color:var(--bem-green);text-decoration:underline!important;text-underline-offset:3px}
.bem-ux1-onboarding .bem-l2-steps{margin-bottom:22px;gap:3px;border-bottom:1px solid var(--bem-border)}
.bem-ux1-onboarding .bem-l2-step{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none;min-height:48px;padding:9px 5px}
.bem-ux1-onboarding .bem-l2-step.is-current{background:transparent!important;border-bottom:3px solid var(--bem-green)!important;box-shadow:none;color:var(--bem-green)!important}
.bem-ux1-onboarding .bem-l2-step.is-current .bem-l2-stepnum{background:var(--bem-green);border-color:var(--bem-green)}
.bem-ux1-onboarding .bem-l2-section-heading{margin-bottom:22px;border-bottom:none;padding-bottom:0}
.bem-ux1-onboarding .bem-l2-section-heading h2{font-family:Georgia, 'Times New Roman', serif;font-size:28px;font-weight:700;margin:0 0 9px;max-width:940px}
.bem-ux1-intro{font-size:16px;line-height:1.55;color:var(--bem-muted);margin:0!important;max-width:830px}
.bem-ux1-onboarding .bem-l2-layout.is-first{grid-template-columns:minmax(0,680px)}
.bem-ux1-onboarding .bem-l2-layout.is-first .bem-l2-budget-fields{display:flex;flex-direction:column;gap:13px;max-width:660px}
.bem-ux1-onboarding .bem-l2-budget-fields .bem-creb-onboarding-month{order:-1}
.bem-ux1-onboarding .bem-l2-entry{background:#fff}
.bem-ux1-onboarding .bem-l2-entry .bem-l2-field>span:first-child{display:block;font-size:12px;font-weight:650;color:var(--bem-muted);margin-bottom:5px}
.bem-ux1-onboarding .bem-l2-table-heading{display:none}
.bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry{grid-template-columns:minmax(180px,1.5fr) minmax(100px,.8fr) minmax(130px,1fr) minmax(140px,1.2fr) 35px}
.bem-ux1-onboarding .bem-l2-table:not(.bem-l2-table-long) .bem-l2-entry{grid-template-columns:minmax(180px,1fr) minmax(130px,.7fr) 35px}
.bem-ux1-onboarding .bem-l2-entry .bem-l2-check{font-size:12px}
.bem-ux1-examples-help{font-size:14px;color:var(--bem-muted);margin:4px 0 12px}
.bem-ux1-section-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--bem-border);padding:15px 0;margin:12px 0 5px;font-size:15px}
.bem-ux1-section-total strong{font-size:18px;font-variant-numeric:tabular-nums;color:var(--bem-blue)}
.bem-ux1-list-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.bem-ux1-counter{color:var(--bem-muted);font-size:13px}
.bem-ux1-help{padding:12px 0;color:var(--bem-muted);font-size:14px}
.bem-ux1-help summary{cursor:pointer;color:var(--bem-green);text-decoration:underline}
.bem-ux1-registration-help{font-size:13px;color:var(--bem-muted);max-width:630px;margin:10px 0}
.bem-ux1-onboarding .bem-l2-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:22px}
.bem-ux1-onboarding .bem-l2-aside{position:sticky;top:20px}
.bem-ux1-onboarding .bem-l2-recap-highlight{background:#E6EFE9;border-color:#CCD8D1}
.bem-ux1-empty-recap{padding:18px;border:1px solid var(--bem-border);border-radius:14px;background:#fff}
.bem-ux1-onboarding .bem-l2-account{border-top:1px solid var(--bem-border)}
.bem-ux1-mobile-progress{display:none}
/* Application navigation: a drawer in grid flow, never a modal overlay. */
.bem-ux1-connected{display:grid;grid-template-columns:minmax(0,1fr);gap:0 14px;align-items:start;transition:grid-template-columns .2s ease}
.bem-ux1-connected.is-drawer-open{grid-template-columns:minmax(0,1fr) minmax(230px,280px)}
.bem-ux1-appbar{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:14px;background:#fff;border:1px solid var(--bem-border);border-radius:12px}
.bem-ux1-app-brand{white-space:nowrap;font-size:17px;font-weight:800;color:var(--bem-blue)}
.bem-ux1-app-brand span{color:var(--bem-green)}
.bem-ux1-appbar .bem-d2-nav{padding:0;margin:0;border:0;background:transparent;flex:1;gap:4px}
.bem-ux1-appbar .bem-d2-nav-item{padding:9px 11px!important;font-size:13px!important;min-height:42px}
.bem-ux1-appbar .bem-d2-nav-item.is-active{background:#E6EFE9!important;color:var(--bem-green)!important;box-shadow:inset 0 -3px var(--bem-green)}
.bem-ux1-solutions-link,.bem-ux1-menu-button{white-space:nowrap;min-height:42px;border:1px solid var(--bem-border)!important;border-radius:9px!important;background:#fff!important;padding:8px 12px!important;color:var(--bem-green)!important;font-size:13px!important}
.bem-ux1-menu-button{background:#E6EFE9!important;border-color:#B3D0C1!important}
.bem-ux1-workspace{grid-column:1;grid-row:2;min-width:0}
.bem-ux1-drawer{grid-column:2;grid-row:2;background:#fff;border:1px solid var(--bem-border);border-radius:12px;padding:14px;min-width:0;max-width:100%;align-self:start}
.bem-ux1-drawer h2{font-size:20px;margin:5px 0 12px;font-family:Georgia,'Times New Roman',serif}
.bem-ux1-drawer nav{display:grid;gap:3px}
.bem-ux1-drawer nav button{padding:10px 12px!important;text-align:left;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--bem-blue)!important;font-size:14px!important}
.bem-ux1-drawer nav button:hover:not(:disabled){background:#E6EFE9!important}
.bem-ux1-menu-footer{display:grid;gap:10px;border-top:1px solid var(--bem-border);margin-top:18px;padding-top:13px}
.bem-ux1-menu-footer a{font-size:13px;color:var(--bem-green);text-decoration:underline}
.bem-ux1-operation-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--bem-border);margin:12px 0 20px}
.bem-ux1-operation-tabs button{border:0!important;background:transparent!important;color:var(--bem-muted)!important;padding:12px 18px!important;border-bottom:3px solid transparent!important}
.bem-ux1-operation-tabs button.is-active{color:var(--bem-green)!important;border-bottom-color:var(--bem-green)!important}
.bem-ux1-operations :is(.bem-l4a-area,.bem-l4b-area)>h2{display:none}
body.bem-application-template:has(.bem-ux1-onboarding) .bem-app-top,
body.bem-application-template:has(.bem-ux1-connected) .bem-app-top{display:none}
@media(max-width:1150px){.bem-ux1-appbar .bem-d2-nav-item{padding:8px!important}}
@media(max-width:950px){
 .bem-ux1-onboarding .bem-l2-layout{grid-template-columns:1fr}
 .bem-ux1-onboarding .bem-l2-aside{display:block;position:static;order:2;max-width:800px}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry{grid-template-columns:repeat(2,minmax(0,1fr)) 35px}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-label-choice{grid-column:1 / -1}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-check{grid-column:1 / -1}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-remove{grid-column:3;grid-row:2;align-self:center}
 .bem-ux1-appbar .bem-ux1-primary-links{display:none}
 .bem-ux1-appbar .bem-ux1-solutions-link{margin-left:auto}
}
@media(max-width:620px){
 .bem-l2-app h2{font-size:24px}
 .bem-ux1-onboarding .bem-l2-section-heading h2{font-size:24px}
 .bem-ux1-onboarding .bem-l2-steps{display:none}
 .bem-ux1-mobile-progress{display:flex;align-items:center;gap:12px;color:var(--bem-muted);font-size:13px;margin:0 0 20px}
 .bem-ux1-progress-bar{height:6px;background:var(--bem-border);flex:1;border-radius:9px;overflow:hidden}
 .bem-ux1-progress-bar>span{height:100%;display:block;background:var(--bem-green)}
 .bem-ux1-onboarding-head{padding:6px 0 12px;margin-bottom:15px}
 .bem-ux1-onboarding-head>strong{font-size:16px}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-label-choice{grid-column:1 / -1}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-amount{grid-column:1}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-date{grid-column:2;min-width:0}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-check{grid-column:1 / -1}
 .bem-ux1-onboarding .bem-l2-table-long .bem-l2-entry>.bem-l2-remove{grid-column:2;grid-row:auto;justify-self:end}
 .bem-ux1-onboarding .bem-l2-table:not(.bem-l2-table-long) .bem-l2-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}
 .bem-ux1-onboarding .bem-l2-actions .bem-l2-primary{flex:1 1 100%}
 .bem-ux1-appbar{padding:9px;gap:6px}
 .bem-ux1-app-brand{font-size:13px}
 .bem-ux1-solutions-link,.bem-ux1-menu-button{padding:7px!important;font-size:12px!important}
 .bem-ux1-connected.is-drawer-open{grid-template-columns:minmax(0,1fr) minmax(230px,78%)}
 .bem-ux1-operation-tabs button{padding:10px 8px!important;font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.bem-ux1-connected{transition:none}}
.bem-ux1-budget-toolbar{margin:0 0 12px;display:flex;justify-content:flex-start}
.bem-ux1-budget-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--bem-muted);font-weight:700;min-width:min(340px,100%)}
.bem-ux1-budget-toolbar select{min-height:44px;max-width:100%;width:340px;background:#fff;border:1px solid var(--bem-border);border-radius:9px;color:var(--bem-blue);font-size:15px;padding:8px 12px}
@media(max-width:620px){.bem-ux1-budget-toolbar select{width:100%}}

/* BEM Lot 1 — UX visual polish rc2 (12/11/2026)
 * Presentation-only except for the itemised opening balance in the sidebar.
 * Scoped to the onboarding to protect the connected application screens.
 */
body.bem-application-template:has(.bem-ux1-onboarding){background:#F7F7F1}
.bem-l1-shell:has(.bem-ux1-onboarding){--bem-blue:#164B55;--bem-blue-dark:#123B43;--bem-green:#285F4E;--bem-border:#CCD8D1;--bem-bg:#F7F7F1;--bem-ink:#203431;--bem-muted:#475C55;margin-top:18px}
.bem-ux1-onboarding{--ux2-surface:#FFFFFF;--ux2-muted-surface:#F9FBF9;--ux2-border:#D5E1DB;--ux2-soft:#E6EFE9;--ux2-ink:#203431}

/* White, visually discrete header and progress zone on the ivory canvas. */
.bem-ux1-onboarding .bem-ux1-onboarding-head{background:var(--ux2-surface);padding:19px 24px 16px;margin:0;border:1px solid var(--ux2-border);border-bottom:0;border-radius:16px 16px 0 0}
.bem-ux1-onboarding .bem-ux1-onboarding-head>strong{font-size:19px;line-height:1.25}
.bem-ux1-onboarding .bem-l2-steps{background:var(--ux2-surface);padding:0 16px 5px;margin:0 0 31px;border:1px solid var(--ux2-border);border-top:0;border-bottom:1px solid var(--ux2-border);border-radius:0 0 16px 16px;gap:4px}
.bem-ux1-onboarding .bem-l2-step{min-height:58px;padding:12px 7px!important;border-radius:0!important;color:#475C55!important;font-size:13px;font-weight:650}
.bem-ux1-onboarding .bem-l2-step:hover:not(:disabled){background:#F2F7F3!important}
.bem-ux1-onboarding .bem-l2-step.is-current{color:#285F4E!important;background:#F1F7F3!important;border-bottom:3px solid #285F4E!important}
.bem-ux1-onboarding .bem-l2-step.is-past .bem-l2-stepnum{background:#E6EFE9;border-color:#BED2C5;color:#285F4E}
.bem-ux1-onboarding .bem-l2-section-heading{margin-bottom:23px}
.bem-ux1-onboarding .bem-l2-section-heading h2{color:#164B55;margin-bottom:10px}
.bem-ux1-onboarding .bem-ux1-intro{color:#475C55;line-height:1.6;max-width:780px}

/* A single light card for form rows, avoiding nested heavy cards. */
.bem-ux1-onboarding .bem-l2-section{background:var(--ux2-surface);border:1px solid var(--ux2-border);border-radius:16px;padding:22px 24px 24px;box-shadow:0 5px 18px rgba(22,75,85,.025)}
.bem-ux1-onboarding .bem-l2-section>.bem-l2-muted{margin:0 0 9px;font-weight:650;color:#285F4E}
.bem-ux1-onboarding .bem-ux1-examples-help{font-size:13px;line-height:1.5;margin:2px 0 17px;color:#475C55}
.bem-ux1-onboarding .bem-l2-table{border:1px solid #DDE8E2;border-radius:12px;background:#fff;overflow:visible;margin:10px 0 17px}
.bem-ux1-onboarding .bem-l2-entry{background:#fff!important;border-bottom:1px solid #E4ECE7;margin:0;padding:16px 13px;gap:11px;transition:background-color .15s ease}
.bem-ux1-onboarding .bem-l2-entry:first-of-type{border-radius:12px 12px 0 0}
.bem-ux1-onboarding .bem-l2-entry:last-child{border-bottom:0;border-radius:0 0 12px 12px}
.bem-ux1-onboarding .bem-l2-entry:nth-child(2n+1){background:#FBFCFA!important}
.bem-ux1-onboarding .bem-l2-entry:focus-within{background:#F1F7F3!important;box-shadow:inset 3px 0 #285F4E}
.bem-ux1-onboarding .bem-l2-entry .bem-l2-field>span:first-child{color:#475C55;font-size:12px;font-weight:700;line-height:1.35}
.bem-ux1-onboarding .bem-l2-field input,.bem-ux1-onboarding .bem-l2-field select{background:#F9FBF9!important;border:1px solid #BFCFC7!important;border-radius:9px!important;min-height:46px;box-shadow:0 1px 0 rgba(20,60,50,.018)!important;color:#203431!important}
.bem-ux1-onboarding .bem-l2-field input:focus,.bem-ux1-onboarding .bem-l2-field select:focus{background:#fff!important;border-color:#285F4E!important;outline:3px solid rgba(40,95,78,.14)!important;outline-offset:1px}
.bem-ux1-onboarding .bem-l2-field input::placeholder{color:#677D74}
.bem-ux1-onboarding .bem-l2-check{color:#203431!important}
.bem-ux1-onboarding .bem-l2-check input{accent-color:#285F4E}
.bem-ux1-onboarding .bem-l2-remove{background:#fff!important;border:1px solid #E1E9E3!important;color:#983E34!important;border-radius:9px!important;min-width:40px;width:40px;height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:24px!important}
.bem-ux1-onboarding .bem-l2-remove:hover:not(:disabled){background:#FFF2EF!important;border-color:#DAB1AA!important}
.bem-ux1-onboarding .bem-l2-add{background:#F3F8F4!important;color:#285F4E!important;border:1px dashed #8CB4A1!important}
.bem-ux1-onboarding .bem-l2-add:hover:not(:disabled){background:#E6EFE9!important}
.bem-ux1-onboarding .bem-ux1-list-bottom{margin-top:6px}
.bem-ux1-onboarding .bem-ux1-counter{font-size:12px;color:#475C55;padding:4px 0}
.bem-ux1-onboarding .bem-ux1-section-total{background:#F3F7F3;border:1px solid #E0EAE2;border-radius:9px;padding:14px 15px;margin:16px 0 7px;align-items:center}
.bem-ux1-onboarding .bem-ux1-section-total strong{color:#164B55;font-size:20px}
.bem-ux1-onboarding .bem-ux1-help{border-top:1px solid #E3ECE6;margin-top:15px;padding-top:14px}
.bem-ux1-onboarding .bem-l2-actions{margin-top:20px}
.bem-ux1-onboarding .bem-l2-actions .bem-l2-primary,.bem-ux1-onboarding .bem-l2-account .bem-l2-primary{background:#285F4E!important;border-color:#285F4E!important;min-height:48px}
.bem-ux1-onboarding .bem-l2-actions .bem-l2-primary:hover:not(:disabled),.bem-ux1-onboarding .bem-l2-account .bem-l2-primary:hover:not(:disabled){background:#194A39!important}
.bem-ux1-onboarding .bem-l2-actions .bem-l2-secondary{min-height:48px}

/* First-step single form card. */
.bem-ux1-onboarding .bem-l2-layout.is-first .bem-l2-budget-fields{max-width:690px;border:1px solid var(--ux2-border);border-radius:16px;background:#fff;padding:23px 25px 25px;gap:17px;box-shadow:0 5px 18px rgba(22,75,85,.025)}
.bem-ux1-onboarding .bem-creb-onboarding-month{background:#F1F6F2!important;border:1px solid #DDE8E1!important;border-radius:10px!important;padding:13px 15px!important;color:#164B55}
.bem-ux1-onboarding .bem-creb-onboarding-month p{margin:4px 0 0!important;font-size:12px}
.bem-ux1-onboarding .bem-l2-budget-help{font-size:13px;line-height:1.6;margin:0}
.bem-ux1-onboarding .bem-ux1-registration-help{font-size:13px;margin-top:11px;max-width:670px}

/* Sidebar: stronger contrast, transparent arithmetic including the opening balance. */
.bem-ux1-onboarding .bem-l2-aside{background:#E9F1EB;border:1px solid #C5D7CB;border-radius:16px;padding:22px 23px;box-shadow:none}
.bem-ux1-onboarding .bem-l2-aside h3{font-family:Georgia,'Times New Roman',serif;font-size:19px;color:#164B55}
.bem-ux1-onboarding .bem-l2-side-totals{border-top-color:#C5D7CB;row-gap:13px}
.bem-ux1-onboarding .bem-l2-side-totals dt{color:#3B5950;font-size:13px}
.bem-ux1-onboarding .bem-l2-side-totals dd{font-size:14px;color:#164B55}
.bem-ux1-onboarding .bem-l2-margin{border-top-color:#C5D7CB;margin-top:17px;padding-top:16px}
.bem-ux1-onboarding .bem-l2-margin strong{font-size:clamp(26px,2.1vw,33px);letter-spacing:-.025em}
.bem-ux1-onboarding .bem-l2-margin .bem-ux2-calculation-note{color:#475C55;font-size:11px;font-weight:400;line-height:1.45;max-width:245px}
.bem-ux1-onboarding .bem-l2-aside>.bem-l2-muted:last-child{color:#475C55;font-size:11px;line-height:1.45}

/* End-of-journey financial result and clearly separate registration area. */
.bem-ux1-onboarding .bem-l2-recap-top{margin:0 0 12px;padding:12px 0 17px}
.bem-ux1-onboarding .bem-l2-recap-panels{grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:18px;margin:17px 0 13px}
.bem-ux1-onboarding .bem-l2-recap-totals{border:1px solid var(--ux2-border)!important;border-radius:14px;background:#fff;padding:20px 22px!important;gap:16px 18px!important;align-content:center!important}
.bem-ux1-onboarding .bem-l2-recap-totals dt{color:#475C55;font-size:14px}
.bem-ux1-onboarding .bem-l2-recap-totals dd{color:#164B55;font-size:16px}
.bem-ux1-onboarding .bem-l2-recap-highlight{background:#E6EFE9;border:1px solid #BDD1C3;border-radius:14px;padding:24px}
.bem-ux1-onboarding .bem-l2-recap-highlight>strong{color:#164B55;font-size:clamp(28px,3.4vw,42px)}
.bem-ux1-onboarding .bem-l2-recap-highlight>p{font-size:13px}
.bem-ux1-onboarding .bem-ux2-recap-actions{margin:20px 0 8px}
.bem-ux1-onboarding .bem-ux2-edit-title{font-family:inherit;font-size:15px;color:#164B55;margin:0 0 10px;font-weight:750}
.bem-ux1-onboarding .bem-l2-recap-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 13px}
.bem-ux1-onboarding .bem-l2-recap-edit button{display:flex;justify-content:space-between;align-items:center;gap:9px;text-align:left;background:#fff!important;border:1px solid #D5E1DB!important;border-radius:10px!important;padding:11px 13px!important;min-height:46px;color:#164B55!important;font-size:13px}
.bem-ux1-onboarding .bem-l2-recap-edit button:hover:not(:disabled){background:#F1F7F3!important;border-color:#8CB4A1!important}
.bem-ux1-onboarding .bem-ux2-edit-label{font-weight:700;min-width:0}
.bem-ux1-onboarding .bem-ux2-edit-action{color:#285F4E;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;font-weight:700}
.bem-ux1-onboarding .bem-l2-account{max-width:990px;background:#fff;border:1px solid #CFDDD4;border-radius:16px;padding:25px 28px 27px;margin:28px 0 0;box-shadow:0 5px 18px rgba(22,75,85,.03)}
.bem-ux1-onboarding .bem-l2-account h4{font-family:Georgia,'Times New Roman',serif;font-size:23px;margin:0 0 9px;color:#164B55}
.bem-ux1-onboarding .bem-l2-account>.bem-l2-muted{font-size:14px;margin:0 0 5px;line-height:1.5}
.bem-ux1-onboarding .bem-l2-account form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 17px;margin:17px 0 0}
.bem-ux1-onboarding .bem-l2-account form>.bem-l2-primary{font-size:14px;margin-top:4px}
.bem-ux1-onboarding .bem-l2-password button{min-height:46px;min-width:75px;padding:8px 10px;border:1px solid #BFCFC7;background:#fff;color:#285F4E}
.bem-ux1-onboarding .bem-l2-privacy-note,.bem-ux1-onboarding .bem-l2-auth-links{margin:14px 0 0;font-size:12px}
.bem-ux1-onboarding .bem-ux1-empty-recap{border-radius:14px;border-color:#CFDDD4;padding:21px 24px;background:#fff}

@media(max-width:1050px){
 .bem-ux1-onboarding .bem-l2-recap-panels{grid-template-columns:minmax(0,1fr) minmax(220px,.9fr)}
 .bem-ux1-onboarding .bem-l2-layout:not(.is-bilan) .bem-l2-aside{max-width:none}
}
@media(max-width:850px){
 .bem-ux1-onboarding .bem-l2-section{padding:18px}
 .bem-ux1-onboarding .bem-l2-table{border:0;background:transparent}
 .bem-ux1-onboarding .bem-l2-entry{border:1px solid #DDE8E2!important;border-radius:11px!important;margin:9px 0!important;padding:14px!important;background:#F9FBF9!important}
 .bem-ux1-onboarding .bem-l2-entry:focus-within{background:#F1F7F3!important}
 .bem-ux1-onboarding .bem-l2-recap-panels{gap:11px}
}
@media(max-width:620px){
 .bem-l1-shell:has(.bem-ux1-onboarding){margin-top:10px}
 .bem-ux1-onboarding .bem-ux1-onboarding-head{padding:12px 13px;border-radius:12px 12px 0 0}
 .bem-ux1-onboarding .bem-l2-steps{display:none}
 .bem-ux1-onboarding .bem-ux1-mobile-progress{display:flex;background:#fff;padding:0 13px 14px;margin:0 0 22px;border:1px solid var(--ux2-border);border-top:0;border-radius:0 0 12px 12px}
 .bem-ux1-onboarding .bem-l2-section-heading h2{font-size:24px}
 .bem-ux1-onboarding .bem-l2-section{padding:16px 14px}
 .bem-ux1-onboarding .bem-l2-budget-fields{max-width:100%}
 .bem-ux1-onboarding .bem-l2-layout.is-first .bem-l2-budget-fields{padding:17px 15px;gap:13px}
 .bem-ux1-onboarding .bem-l2-entry{gap:10px!important;padding:12px!important}
 .bem-ux1-onboarding .bem-l2-entry .bem-l2-field>span:first-child{font-size:12px}
 .bem-ux1-onboarding .bem-l2-field input,.bem-ux1-onboarding .bem-l2-field select{min-height:46px}
 .bem-ux1-onboarding .bem-ux1-section-total{padding:13px;font-size:13px}
 .bem-ux1-onboarding .bem-ux1-section-total strong{font-size:17px}
 .bem-ux1-onboarding .bem-l2-recap-panels{grid-template-columns:1fr;gap:10px}
 .bem-ux1-onboarding .bem-l2-recap-totals{padding:16px 15px!important}
 .bem-ux1-onboarding .bem-l2-recap-highlight{padding:20px}
 .bem-ux1-onboarding .bem-l2-recap-edit{grid-template-columns:1fr}
 .bem-ux1-onboarding .bem-l2-account{padding:19px 16px;margin-top:20px}
 .bem-ux1-onboarding .bem-l2-account h4{font-size:21px}
 .bem-ux1-onboarding .bem-l2-account form{grid-template-columns:1fr;gap:14px}
 .bem-ux1-onboarding .bem-l2-account form>.bem-l2-primary{width:100%;justify-self:stretch;grid-column:1}
 .bem-ux1-onboarding .bem-l2-aside{padding:17px}
}
@media(prefers-reduced-motion:reduce){.bem-ux1-onboarding .bem-l2-entry{transition:none}}

/* BEM UX2 rc1 — Screens of daily management. Based on the validated UX1 palette. */
.bem-ux1-connected{--ux2-bg:#F7F7F1;--ux2-surface:#fff;--ux2-highlight:#E6EFE9;--ux2-border:#CCD8D1;--ux2-petrol:#164B55;--ux2-green:#285F4E;--ux2-ink:#203431;--ux2-muted:#475C55}
.bem-ux1-connected .bem-d2-panel{color:var(--ux2-ink)}
.bem-ux1-connected :is(.bem-l3b-list,.bem-l4a-section,.bem-l4b-envelope,.bem-l5a-reserve,.bem-ux2-calculation,.bem-ux2-goals){background:var(--ux2-surface);border:1px solid var(--ux2-border);border-radius:14px;box-shadow:none}
.bem-ux1-connected :is(.bem-l3b-row,.bem-l4a-line,.bem-l4b-movement-info,.bem-l5a-movements li){border-color:#E1EAE4}
.bem-ux1-connected :is(.bem-l3b-form,.bem-l4a-form,.bem-l4b-form,.bem-l5a-form){background:#F5F9F6;border:1px solid #D3E3D9;border-radius:13px}
.bem-ux1-connected :is(button,input,select,textarea):focus-visible,.bem-ux1-connected summary:focus-visible{outline:3px solid #AD7729!important;outline-offset:3px}
.bem-ux1-connected .bem-ux2-section-intro{font-size:15px;line-height:1.55;color:var(--ux2-muted);margin:4px 0 19px}
.bem-ux1-connected .bem-ux2-summary{display:grid;gap:19px}
.bem-ux1-connected .bem-ux2-summary-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.85fr);gap:18px;align-items:stretch}
.bem-ux1-connected .bem-ux2-margin{background:var(--ux2-highlight);border:1px solid #C4D7CB;border-radius:15px;padding:clamp(20px,3vw,31px);min-width:0}
.bem-ux1-connected .bem-ux2-margin.is-deficit{background:#FCF1ED;border-color:#E3B9AD}
.bem-ux1-connected .bem-ux2-eyebrow{font-size:12px;letter-spacing:.025em;color:var(--ux2-muted);font-weight:650}
.bem-ux1-connected .bem-ux2-margin h3{font-size:clamp(20px,2.2vw,29px);line-height:1.2;margin:12px 0 9px;color:var(--ux2-petrol)}
.bem-ux1-connected .bem-ux2-amount{display:block;color:var(--ux2-petrol);font-size:clamp(34px,4.1vw,51px);letter-spacing:-.035em;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bem-ux1-connected .bem-ux2-margin.is-deficit .bem-ux2-amount,.bem-ux1-connected .bem-ux2-deficit-label{color:#983E34}
.bem-ux1-connected .bem-ux2-not-calculated{font-size:17px;font-weight:650;color:var(--ux2-petrol)}
.bem-ux1-connected .bem-ux2-margin>p{margin:11px 0 15px;font-size:13px;line-height:1.55}
.bem-ux1-connected .bem-ux2-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}
.bem-ux1-connected .bem-ux2-calculation{padding:20px 23px}
.bem-ux1-connected .bem-ux2-calculation summary{cursor:pointer;font-weight:750;color:var(--ux2-petrol);font-size:16px}
.bem-ux1-connected .bem-ux2-calculation dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 17px;margin:19px 0 13px;font-size:14px}
.bem-ux1-connected .bem-ux2-calculation dt{color:var(--ux2-muted)}
.bem-ux1-connected .bem-ux2-calculation dd{margin:0;font-weight:750;color:var(--ux2-petrol);text-align:right;font-variant-numeric:tabular-nums}
.bem-ux1-connected .bem-ux2-calculation p{font-size:12px;line-height:1.5}
.bem-ux1-connected .bem-ux2-goals{padding:20px 23px}
.bem-ux1-connected .bem-ux2-goals h3{margin:0 0 8px;font-size:18px}
.bem-ux1-connected .bem-ux2-goal-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #DDE7DF;font-size:14px}
.bem-ux1-connected .bem-ux2-goal-line span{font-variant-numeric:tabular-nums;color:var(--ux2-petrol)}
.bem-ux1-connected .bem-ux2-inline-actions{display:flex;gap:10px}
.bem-ux1-connected .bem-ux2-plan-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;flex-wrap:wrap;padding:3px 0 8px}
.bem-ux1-connected .bem-ux2-plan-heading h4{margin:0}
.bem-ux1-connected .bem-ux2-plan-heading strong{font-size:18px;color:var(--ux2-petrol);font-variant-numeric:tabular-nums}
.bem-ux1-connected .bem-ux2-choice-editor{min-width:0;display:grid;grid-template-columns:1fr;gap:11px}
.bem-ux1-connected .bem-ux2-choice-editor select{min-height:46px;border:1px solid #B9CDC1;border-radius:10px;padding:9px 12px;background:#fff;max-width:100%;color:var(--ux2-ink)}
.bem-ux1-connected .bem-ux2-preview{padding:11px 14px;margin:2px 0;border:1px solid #C4D8C9;border-radius:10px;background:var(--ux2-highlight);color:var(--ux2-ink);font-size:13px}
.bem-ux1-connected .bem-ux2-preview strong{font-variant-numeric:tabular-nums;color:var(--ux2-petrol)}
.bem-ux1-connected .bem-ux2-empty{padding:17px;background:#fff;border:1px solid var(--ux2-border);border-radius:12px}
.bem-ux1-connected .bem-ux2-movements{border-top:1px solid var(--ux2-border);margin:13px 0 0;padding:12px 0 0}
.bem-ux1-connected .bem-ux2-movements summary{cursor:pointer;font-size:14px;font-weight:700;color:var(--ux2-green);padding:4px 0}
.bem-ux1-connected .bem-l4c-tabs{margin-top:8px}
.bem-ux1-connected .bem-l4c-tab{background:#fff;border-color:var(--ux2-border);border-radius:9px;color:var(--ux2-muted)}
.bem-ux1-connected .bem-l4c-tab.is-active{background:var(--ux2-highlight);color:var(--ux2-green);border-color:var(--ux2-green);box-shadow:inset 0 -3px 0 var(--ux2-green)}
.bem-ux1-connected .bem-l4c-lead{background:var(--ux2-highlight);border-color:#C4D7CB}
.bem-ux1-connected .bem-l4c-ring:before{background:var(--ux2-highlight)}
.bem-ux1-connected .bem-l4c-mainmetric>strong{font-size:clamp(32px,4vw,49px)}
.bem-ux1-connected .bem-l4c-progress-row{padding:16px}
.bem-ux1-connected .bem-l4c-envelope-list .bem-l4c-envelope{align-items:center}
.bem-ux1-connected .bem-l4c-envelope.is-over{color:#983E34}
.bem-ux1-connected .bem-l5a-balance{font-size:clamp(19px,2.5vw,28px)}
@media(max-width:850px){
 .bem-ux1-connected .bem-ux2-summary-layout{grid-template-columns:minmax(0,1fr)}
 .bem-ux1-connected .bem-ux2-calculation{padding:17px}
}
@media(max-width:540px){
 .bem-ux1-connected .bem-ux2-margin{padding:20px 17px}
 .bem-ux1-connected .bem-ux2-goals{padding:16px}
 .bem-ux1-connected .bem-ux2-goal-line{flex-wrap:wrap}
 .bem-ux1-connected .bem-ux2-actions>*{width:100%}
 .bem-ux1-connected .bem-l4c-progress{grid-template-columns:1fr}
}

/* BEM UX3 — Premium page, single primary budget action, accessible compact actions. */
.bem-ux3-premium-shell{max-width:1160px;margin:auto}
.bem-ux3-premium-page{display:grid;gap:22px;margin:12px auto 42px;max-width:860px;color:#203431}
.bem-ux3-premium-page>.bem-l2-secondary{justify-self:start}
.bem-ux3-premium-hero{background:#fff;border:1px solid #ccd8d1;border-radius:18px;padding:30px 34px;position:relative;overflow:hidden}
.bem-ux3-premium-hero::before{content:"";position:absolute;left:0;top:25px;bottom:25px;width:5px;background:#ad7729;border-radius:0 4px 4px 0}
.bem-ux3-kicker{font-size:12px;font-weight:750;letter-spacing:.1em;color:#ad7729;margin:0 0 10px}
.bem-ux3-premium-hero h2{font-family:Georgia,serif;line-height:1.17;color:#164b55;font-size:clamp(25px,3.5vw,35px);margin:0 0 13px}
.bem-ux3-premium-hero>p:not(.bem-ux3-kicker){color:#475c55;line-height:1.6;margin:0 0 22px}
.bem-ux3-premium-price{background:#e6efe9;border-radius:14px;padding:19px 22px;display:grid;gap:6px}
.bem-ux3-premium-price strong{font-size:clamp(24px,3.5vw,34px);font-weight:800;color:#164b55}
.bem-ux3-premium-price span{color:#285f4e;line-height:1.5;font-weight:650}
.bem-ux3-premium-benefits{background:#fff;border:1px solid #ccd8d1;border-radius:16px;padding:22px 25px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bem-ux3-premium-benefits p{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:15px;line-height:1.45}
.bem-ux3-premium-benefits p span{color:#285f4e;font-weight:900}
.bem-ux3-premium-checkout{border:1px solid #ccd8d1;background:#fff;border-radius:16px;padding:24px;display:grid;gap:13px}
.bem-ux3-premium-checkout p{margin:0;line-height:1.6}
.bem-ux3-premium-checkout button{justify-self:start}
.bem-ux3-premium-actions{display:grid;gap:14px;max-width:690px}
.bem-ux3-premium-actions .bem-l7a22-check{padding:13px;border:1px solid #ccd8d1;border-radius:9px;background:#f7f7f1}
.bem-ux3-premium-contract{font-weight:600;color:#164b55}
.bem-ux3-budget-row{padding:0!important;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff!important;border:1px solid #ccd8d1!important;border-radius:13px;margin:10px 0}
.bem-ux3-budget-open{appearance:none;text-align:left;border:0!important;background:transparent!important;display:flex;align-items:center;justify-content:space-between;gap:14px;flex:1;min-width:220px;min-height:66px;padding:16px 19px!important;color:#164b55!important;cursor:pointer}
.bem-ux3-budget-open>span:first-child{display:grid;gap:5px}
.bem-ux3-budget-open>span:last-child{font-size:28px;font-weight:400}
.bem-ux3-budget-open:hover,.bem-ux3-budget-open:focus-visible{background:#e6efe9!important}
.bem-ux3-budget-more{position:relative;margin:0 13px 0 auto;flex-shrink:0}
.bem-ux3-budget-more summary{cursor:pointer;color:#285f4e;font-weight:700;border:1px solid #ccd8d1;border-radius:8px;padding:10px 13px;list-style:none;user-select:none}
.bem-ux3-budget-more summary::after{content:'⌄';margin-left:9px}
.bem-ux3-budget-more[open] summary{background:#e6efe9}
.bem-ux3-budget-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:15;display:grid;gap:4px;min-width:245px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #ccd8d1;border-radius:11px;box-shadow:0 12px 30px #164b5524;padding:8px}
.bem-ux3-budget-menu button{background:transparent!important;color:#203431!important;border:0!important;border-radius:6px;padding:10px 11px!important;text-align:left;cursor:pointer;white-space:normal;font:inherit}
.bem-ux3-budget-menu button:hover{background:#e6efe9!important}
.bem-ux3-budget-menu .bem-budget-delete-action{color:#983e34!important}
.bem-ux3-budget-open:focus-visible,.bem-ux3-budget-more summary:focus-visible,.bem-ux3-budget-menu button:focus-visible,.bem-ux3-premium-page :focus-visible{outline:3px solid #ad7729;outline-offset:3px}
.bem-ux3-msl-unified .bem-msl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:750px){.bem-ux3-premium-hero{padding:23px}.bem-ux3-premium-benefits{grid-template-columns:1fr;padding:18px}.bem-ux3-premium-checkout{padding:18px}.bem-ux3-msl-unified .bem-msl-grid{grid-template-columns:1fr}.bem-ux3-budget-row{align-items:stretch}.bem-ux3-budget-open{min-width:0;flex-basis:100%}.bem-ux3-budget-more{margin:0 12px 12px auto}}

.bem-ux3-context-link{background:transparent!important;border:0!important;padding:4px 0!important;margin:7px 0 0;color:#285f4e!important;text-decoration:underline;text-underline-offset:3px;text-align:left;font-size:13px;font-weight:650;cursor:pointer}
.bem-ux3-context-link:hover{color:#164b55!important}
.bem-ux3-context-link:focus-visible{outline:3px solid #ad7729;outline-offset:3px}
