/* Accounts overview and accounting setup */
.accounts-page,.account-setup-page{display:grid;gap:1rem;padding-bottom:2rem}.accounts-heading,.account-setup-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.accounts-heading h1,.account-setup-heading h1{margin:.15rem 0 .25rem;color:#111111;font-size:clamp(2rem,3.3vw,2.8rem);line-height:1}.accounts-heading p,.account-setup-heading p{margin:0;color:#6F6F6F}.accounts-heading>.button{flex:0 0 auto}.accounts-heading>.button svg{width:1.1rem;height:1.1rem}.accounts-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem;color:#6F6F6F;font-size:.72rem}.accounts-breadcrumbs a,.accounts-back-link{color:#15803D;text-decoration:none}.accounts-breadcrumbs b{color:#6F6F6F;font-size:1rem;font-weight:400}.accounts-eyebrow{margin:0 0 .55rem!important;color:#15803D!important;font-size:.72rem;font-weight:850;letter-spacing:.15em}.accounts-kpi-grid{display:grid;gap:.8rem;grid-template-columns:repeat(4,minmax(0,1fr))}.accounts-kpi{display:grid;min-width:0;min-height:6.4rem;align-items:center;gap:.8rem;padding:1rem;border:1px solid #D4D4D4;border-radius:.8rem;background:#fff;box-shadow:0 5px 18px rgb(17 17 17/5%);grid-template-columns:3rem minmax(0,1fr)}.accounts-kpi-icon{display:grid;width:3rem;height:3rem;place-items:center;color:#15803D;background:#E8F6ED;border-radius:50%}.accounts-kpi-icon.tone-blue{color:#4F7DB5;background:#EEF3F8}.accounts-kpi-icon.tone-purple{color:#355C8A;background:#EEF3F8}.accounts-kpi-icon svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.accounts-kpi>div{display:grid;min-width:0}.accounts-kpi span:not(.accounts-kpi-icon){color:#4B4B4B;font-size:.72rem}.accounts-kpi strong{overflow:hidden;color:#111111;font-size:1.35rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.accounts-kpi small{overflow:hidden;margin-top:.18rem;color:#6F6F6F;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}.accounts-hierarchy-note{display:grid;align-items:center;gap:.85rem;padding:.9rem 1rem;color:#4B4B4B;border:1px solid #BFE3CC;border-radius:.75rem;background:#F5F6F7;grid-template-columns:2.5rem minmax(0,1fr) auto}.accounts-hierarchy-note>svg{width:2rem;height:2rem;color:#15803D;fill:none;stroke:currentColor;stroke-width:1.8}.accounts-hierarchy-note>div{display:grid;gap:.12rem}.accounts-hierarchy-note strong{color:#111111;font-size:.8rem}.accounts-hierarchy-note span{color:#6F6F6F;font-size:.7rem;line-height:1.45}.accounts-hierarchy-note>a{color:#15803D;font-size:.72rem;font-weight:750;text-decoration:none;white-space:nowrap}.accounts-chart-card{min-width:0;overflow:hidden;border:1px solid #D4D4D4;border-radius:.9rem;background:#fff;box-shadow:0 6px 20px rgb(17 17 17/5%)}.accounts-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem .7rem}.accounts-chart-heading h2{margin:0;color:#111111;font-size:1.05rem}.accounts-chart-heading p{margin:.18rem 0 0;color:#6F6F6F;font-size:.68rem}.accounts-chart-search{width:min(100%,22rem)}.accounts-chart-search input{width:100%;min-height:2.4rem;font-size:.72rem}.accounts-chart-filters{display:flex;flex-wrap:wrap;align-items:end;gap:.55rem;padding:0 1rem .75rem}.accounts-chart-filters label{display:grid;gap:.2rem;color:#6F6F6F;font-size:.58rem;font-weight:750;text-transform:uppercase}.accounts-chart-filters select{min-width:8rem;min-height:2.2rem;padding:.35rem .5rem;font-size:.69rem;text-transform:none}.accounts-chart-filters .button{min-height:2.2rem;padding:.35rem .65rem;font-size:.68rem}.accounts-chart-filters>span{margin-left:auto;color:#6F6F6F;font-size:.68rem}.accounts-table-wrap{max-width:100%;overflow-x:auto;border-top:1px solid #D4D4D4}.accounts-table{width:100%;min-width:56rem;table-layout:fixed;border-collapse:collapse;font-size:.7rem}.accounts-tree-table th:nth-child(1){width:8%}.accounts-tree-table th:nth-child(2){width:29%}.accounts-tree-table th:nth-child(3){width:22%}.accounts-tree-table th:nth-child(4){width:15%}.accounts-tree-table th:nth-child(5){width:8%}.accounts-tree-table th:nth-child(6){width:11%}.accounts-tree-table th:nth-child(7){width:7%}.accounts-table th{padding:.55rem .65rem;color:#6F6F6F;background:#F5F6F7;font-size:.58rem;text-align:left;text-transform:uppercase;white-space:nowrap}.accounts-table td{padding:.5rem .65rem;color:#4B4B4B;border-top:1px solid #D4D4D4;vertical-align:middle}.accounts-table td:first-child strong{color:#4B4B4B}.accounts-tree-name{display:flex;min-width:0;align-items:center;gap:.28rem;padding-inline-start:calc(var(--tree-depth)*1.25rem);color:#4B4B4B;font-weight:700}.accounts-tree-name>button,.accounts-tree-leaf{display:grid;width:1.15rem;height:1.15rem;flex:0 0 1.15rem;place-items:center}.accounts-tree-name>button{padding:0;color:#4B4B4B;background:transparent;border:0;border-radius:.2rem}.accounts-tree-name>button:hover{color:#15803D;background:#E8F6ED;transform:none}.accounts-tree-name>button svg{width:.72rem;height:.72rem;fill:none;stroke:currentColor;stroke-width:2;transition:transform .15s}.accounts-tree-name>button[aria-expanded=false] svg{transform:rotate(-90deg)}.accounts-tree-leaf::before{width:.35rem;height:.35rem;background:#BFE3CC;border-radius:50%;content:""}.accounts-tree-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounts-tree-table td:nth-child(3){display:grid;gap:.18rem}.accounts-tree-table td:nth-child(3) small{overflow:hidden;max-width:17rem;color:#6F6F6F;font-size:.6rem;text-overflow:ellipsis;white-space:nowrap}.accounts-level-badge{width:max-content;padding:.12rem .35rem;color:#4B4B4B;background:#F5F6F7;border-radius:999px;font-size:.55rem;font-weight:750}.accounts-account-type{display:block;color:#4B4B4B;font-size:.67rem}.accounts-tree-table td:nth-child(4) small{color:#6F6F6F;font-size:.58rem}.accounts-status{display:inline-flex;align-items:center;justify-content:center;padding:.2rem .5rem;color:#6F6F6F;background:#F5F6F7;border-radius:999px;font-size:.6rem;font-weight:750;white-space:nowrap}.accounts-status.is-success{color:#15803D;background:#E8F6ED}.accounts-status.is-warning{color:#92400E;background:#F6D79A}.accounts-row-action{display:grid;width:1.8rem;height:1.8rem;place-items:center;color:#4B4B4B;border-radius:.35rem;text-decoration:none;letter-spacing:.05em}.accounts-row-action:hover{color:#15803D;background:#F5F6F7}.accounts-filter-empty{padding:2rem;color:#6F6F6F;text-align:center}
/* Focused accounting setup */
.account-setup-page{gap:1.05rem}.account-setup-heading{align-items:flex-start}.accounts-back-link{display:inline-block;margin-bottom:.7rem;font-size:.72rem;font-weight:700}.account-setup-layout{display:grid;align-items:start;gap:1rem;grid-template-columns:minmax(0,1fr) 18rem}.account-setup-main{display:grid;min-width:0;gap:1rem}.account-setup-foundations{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.account-setup-card,.account-custom-card,.account-progress-card,.account-setup-tip{position:relative;border:1px solid #D4D4D4;border-radius:.85rem;background:#fff;box-shadow:0 6px 20px rgb(17 17 17/5%)}.account-setup-card{display:grid;min-height:11.5rem;align-items:start;gap:.8rem;padding:1rem;grid-template-columns:auto minmax(0,1fr) 5rem}.account-setup-number{display:grid;width:1.45rem;height:1.45rem;place-items:center;color:#fff;background:#15803D;border-radius:50%;font-size:.68rem;font-weight:850}.account-setup-card h2,.account-custom-card h2,.account-progress-card h2{margin:0;color:#111111;font-size:.92rem}.account-setup-card p,.account-custom-card header p{margin:.25rem 0 .6rem;color:#6F6F6F;font-size:.68rem;line-height:1.45}.account-setup-illustration{display:grid;width:4.7rem;height:4.7rem;place-items:center;color:#15803D;background:radial-gradient(circle,#F5F6F7 20%,#E8F6ED);border-radius:50%}.account-setup-illustration svg{width:2.3rem;height:2.3rem;fill:none;stroke:currentColor;stroke-width:1.6}.account-setup-card>form,.account-setup-card>details{grid-column:2/-1}.account-setup-card .button{min-height:2.2rem;font-size:.67rem}.account-setup-periods>summary{color:#15803D;cursor:pointer;font-size:.7rem;font-weight:750}.accounts-period-list{display:grid;gap:.35rem;margin-top:.6rem}.accounts-period-list>div{display:grid;align-items:center;gap:.4rem;padding:.48rem .55rem;border:1px solid #D4D4D4;border-radius:.45rem;grid-template-columns:auto minmax(0,1fr) auto}.accounts-period-list strong{font-size:.68rem}.accounts-period-list small{overflow:hidden;color:#6F6F6F;font-size:.6rem;text-overflow:ellipsis;white-space:nowrap}.account-period-form{display:grid;gap:.45rem;margin-top:.55rem;padding:.65rem;background:#F5F6F7;border-radius:.5rem;grid-template-columns:repeat(3,minmax(0,1fr))}.account-period-form label,.account-custom-form label{display:grid;min-width:0;gap:.22rem;color:#4B4B4B;font-size:.64rem;font-weight:750}.account-period-form input,.account-custom-form input,.account-custom-form select,.account-custom-form textarea{width:100%;min-height:2.25rem;padding:.4rem .55rem;font-size:.68rem}.account-period-form .button{grid-column:1/-1}.account-custom-card{padding:1rem}.account-custom-card>header{display:flex;align-items:flex-start;gap:.65rem;padding-bottom:.75rem;border-bottom:1px solid #D4D4D4}.account-custom-form{margin-top:.8rem}.account-form-columns{display:grid;gap:.8rem;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(13rem,.7fr)}.account-form-columns fieldset{display:grid;align-content:start;gap:.48rem;min-width:0;margin:0;padding:.75rem;border:1px solid #D4D4D4;border-radius:.65rem}.account-form-columns legend{padding:0 .3rem;color:#4B4B4B;font-size:.7rem;font-weight:800}.account-custom-form label>span{color:#DC2626}.account-settings-fieldset label{display:flex;min-height:2.15rem;align-items:center;justify-content:space-between;gap:.65rem;padding:.35rem .4rem;border-bottom:1px solid #D4D4D4}.account-settings-fieldset label:last-child{border-bottom:0}.account-settings-fieldset label>span{color:#4B4B4B}.account-settings-fieldset input[type=checkbox]{width:2rem;height:1.1rem;min-height:1.1rem;appearance:none;background:#D4D4D4;border:0;border-radius:999px;cursor:pointer}.account-settings-fieldset input[type=checkbox]::before{display:block;width:.85rem;height:.85rem;margin:.125rem;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgb(0 0 0/25%);content:"";transition:transform .15s}.account-settings-fieldset input[type=checkbox]:checked{background:#15803D}.account-settings-fieldset input[type=checkbox]:checked::before{transform:translateX(.9rem)}.account-advanced-fields{margin-top:.75rem;border:1px solid #D4D4D4;border-radius:.6rem}.account-advanced-fields>summary{padding:.65rem .75rem;color:#15803D;cursor:pointer;font-size:.68rem;font-weight:750}.account-advanced-fields>div{display:grid;gap:.55rem;padding:.7rem;border-top:1px solid #D4D4D4;grid-template-columns:repeat(5,minmax(0,1fr))}.account-custom-form>footer{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid #D4D4D4}.account-custom-form>footer .button{min-height:2.3rem;font-size:.68rem}.account-setup-sidebar{display:grid;gap:1rem}.account-progress-card{padding:1rem}.account-progress-ring{display:grid;width:4.4rem;height:4.4rem;margin:1rem auto .55rem;place-items:center;background:conic-gradient(#15803D var(--setup-progress),#F5F6F7 0);border-radius:50%}.account-progress-ring::before{position:absolute;width:3.25rem;height:3.25rem;background:#fff;border-radius:50%;content:""}.account-progress-ring strong{position:relative;color:#111111;font-size:.9rem}.account-progress-card h3{margin:.3rem 0 0;text-align:center;font-size:.82rem}.account-progress-card>p{margin:.25rem 0 .8rem;color:#6F6F6F;font-size:.66rem;line-height:1.45;text-align:center}.account-progress-card ol{display:grid;gap:.35rem;margin:0 0 .8rem;padding:0;list-style:none}.account-progress-card li{display:grid;align-items:center;gap:.55rem;padding:.5rem;border:1px solid #D4D4D4;border-radius:.5rem;grid-template-columns:1.35rem minmax(0,1fr)}.account-progress-card li>span{display:grid;width:1.3rem;height:1.3rem;place-items:center;color:#6F6F6F;border:1px solid #D4D4D4;border-radius:50%;font-size:.6rem;font-weight:800}.account-progress-card li.is-complete>span{color:#fff;background:#15803D;border-color:#15803D}.account-progress-card li>div{display:grid}.account-progress-card li strong{font-size:.66rem}.account-progress-card li small{color:#6F6F6F;font-size:.58rem}.account-progress-card .button{font-size:.68rem}.account-setup-tip{display:grid;align-items:start;gap:.65rem;padding:.8rem;color:#111111;background:#F5F6F7;grid-template-columns:1.8rem minmax(0,1fr)}.account-setup-tip svg{width:1.5rem;height:1.5rem;fill:none;stroke:#15803D;stroke-width:1.8}.account-setup-tip strong{font-size:.7rem}.account-setup-tip p{margin:.2rem 0 0;color:#6F6F6F;font-size:.62rem;line-height:1.5}
@media(max-width:78rem){.accounts-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-setup-layout{grid-template-columns:1fr}.account-setup-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.account-form-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.account-settings-fieldset{grid-column:1/-1}.account-advanced-fields>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:52rem){.accounts-heading,.accounts-chart-heading{align-items:stretch;flex-direction:column}.accounts-heading>.button{width:100%}.accounts-kpi-grid,.account-setup-foundations,.account-setup-sidebar,.account-form-columns{grid-template-columns:1fr}.accounts-hierarchy-note{grid-template-columns:2.5rem minmax(0,1fr)}.accounts-hierarchy-note>a{grid-column:2}.accounts-chart-search{width:100%}.accounts-chart-filters>span{width:100%;margin-left:0}.account-advanced-fields>div,.account-period-form{grid-template-columns:1fr}.account-setup-card{grid-template-columns:auto minmax(0,1fr)}.account-setup-illustration{display:none}.account-setup-card>form,.account-setup-card>details{grid-column:2}.account-settings-fieldset{grid-column:auto}}
.account-settings-fieldset label>span{display:grid;gap:.15rem}
.account-settings-fieldset label>span small{color:#6F6F6F;font-size:.56rem;font-weight:500;line-height:1.35}
.account-settings-fieldset input[type=checkbox]{flex:0 0 2rem}
.accounts-fx-note{display:grid;align-items:center;gap:.75rem;padding:.75rem 1rem;color:#4B4B4B;background:#F5F6F7;border-top:1px solid #D4D4D4;grid-template-columns:2.25rem minmax(0,1fr) auto}.accounts-fx-note-icon{display:grid;width:2.25rem;height:2.25rem;place-items:center;color:#15803D;background:#E8F6ED;border-radius:50%;font-size:.65rem;font-weight:850}.accounts-fx-note>div{display:grid;gap:.12rem}.accounts-fx-note strong{color:#111111;font-size:.72rem}.accounts-fx-note span:not(.accounts-fx-note-icon){font-size:.64rem;line-height:1.4}.accounts-fx-note>a{color:#15803D;font-size:.68rem;font-weight:750;text-decoration:none;white-space:nowrap}.accounts-tree-table{min-width:68rem}.accounts-tree-table th:nth-child(1){width:8%}.accounts-tree-table th:nth-child(2){width:21%}.accounts-tree-table th:nth-child(3){width:10%}.accounts-tree-table th:nth-child(4){width:10%}.accounts-tree-table th:nth-child(5){width:19%}.accounts-tree-table th:nth-child(6){width:8%}.accounts-tree-table th:nth-child(7){width:15%}.accounts-tree-table th:nth-child(8){width:9%}.accounts-balance-cell{display:grid!important;gap:.08rem}.accounts-balance-cell strong{color:#111111;font-size:.7rem}.accounts-balance-cell span{color:#6F6F6F;font-size:.65rem}.accounts-balance-cell small{color:#6F6F6F!important;font-size:.54rem!important;line-height:1.25;text-transform:uppercase}.accounts-balance-cell small+span{margin-top:.16rem}@media(max-width:52rem){.accounts-fx-note{align-items:start;grid-template-columns:2.25rem minmax(0,1fr)}.accounts-fx-note>a{grid-column:2;white-space:normal}}
/* 2026-07-31 compact chart browser and account editor */
.accounts-tree-table{min-width:58rem}.accounts-tree-table th:nth-child(1){width:17%}.accounts-tree-table th:nth-child(2){width:20%}.accounts-tree-table th:nth-child(3){width:10%}.accounts-tree-table th:nth-child(4){width:10%}.accounts-tree-table th:nth-child(5){width:10%}.accounts-tree-table th:nth-child(6){width:21%}.accounts-tree-table th:nth-child(7){width:12%}.accounts-tree-code{position:relative;display:flex;min-width:0;align-items:center;gap:.3rem;padding-inline-start:calc(var(--tree-depth)*1rem);color:#4B4B4B}.accounts-tree-code>button,.accounts-tree-code>.accounts-tree-leaf{display:grid;width:1.1rem;height:1.1rem;flex:0 0 1.1rem;place-items:center}.accounts-tree-code>button{padding:0;color:#4B4B4B;background:transparent;border:0;border-radius:.2rem}.accounts-tree-code>button:hover{color:#15803D;background:#E8F6ED;transform:none}.accounts-tree-code>button svg{width:.68rem;height:.68rem;fill:none;stroke:currentColor;stroke-width:2;transition:transform .15s}.accounts-tree-code>button[aria-expanded=false] svg{transform:rotate(-90deg)}.accounts-tree-code>.accounts-tree-leaf::before{width:.28rem;height:.28rem;background:#BFE3CC;border-radius:50%;content:""}.accounts-tree-code strong,.accounts-account-name,.accounts-statement-section{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounts-account-name{color:#4B4B4B}.accounts-type-badge{display:inline-flex;padding:.16rem .42rem;color:#4B4B4B;background:#F5F6F7;border:1px solid #D4D4D4;border-radius:.32rem;font-size:.58rem;font-weight:750}.accounts-type-badge.is-posting{color:#15803D;background:#E8F6ED;border-color:#BFE3CC}.accounts-quick-actions{display:flex;align-items:center;gap:.2rem}.accounts-quick-actions>a{display:grid;width:1.72rem;height:1.72rem;place-items:center;color:#4B4B4B;border:1px solid #D4D4D4;border-radius:.36rem;text-decoration:none}.accounts-quick-actions>a:hover{color:#15803D;background:#F5F6F7;border-color:#BFE3CC}.accounts-quick-actions svg{width:.82rem;height:.82rem;fill:none;stroke:currentColor;stroke-width:1.8}.accounts-statement-section{color:#6F6F6F}.accounts-tree-table td:nth-child(3){display:table-cell}.accounts-tree-table td:nth-child(4) small{display:none}.account-edit-page{max-width:88rem;margin:0 auto}.account-edit-page .account-setup-heading{align-items:center}.account-edit-summary{display:grid;align-items:center;gap:.9rem;padding:1rem;border:1px solid #D4D4D4;border-radius:.85rem;background:#fff;box-shadow:0 6px 20px rgb(17 17 17/5%);grid-template-columns:1.35fr 1.1fr .65fr auto}.account-edit-summary>div{display:grid;min-width:0;gap:.1rem;padding-right:.8rem;border-right:1px solid #D4D4D4}.account-edit-summary>div:nth-child(3){border-right:0}.account-edit-summary span{color:#6F6F6F;font-size:.62rem}.account-edit-summary strong{overflow:hidden;color:#111111;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.account-edit-summary small{overflow:hidden;color:#6F6F6F;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.account-edit-summary .button{min-height:2.35rem;font-size:.67rem}.account-edit-summary .button svg{width:.9rem;height:.9rem}.account-edit-card{padding:1rem}.account-edit-card .account-custom-form label small{color:#6F6F6F;font-size:.56rem;font-weight:500;line-height:1.35}.account-edit-card input:disabled{color:#6F6F6F;background:#F5F6F7;cursor:not-allowed}.account-edit-card .account-settings-fieldset{grid-auto-rows:minmax(2.15rem,auto)}
@media(max-width:72rem){.account-edit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.account-edit-summary>div:nth-child(2){border-right:0}.account-edit-summary .button{width:100%}}
@media(max-width:52rem){.account-edit-summary{grid-template-columns:1fr}.account-edit-summary>div{padding:0 0 .65rem;border-right:0;border-bottom:1px solid #D4D4D4}.account-edit-summary .button{grid-column:1}}
/* Contextual FX adds a posted-balance column to the chart browser. Keep these final in the cascade. */
.accounts-tree-table{min-width:68rem}.accounts-tree-table th:nth-child(1){width:8%}.accounts-tree-table th:nth-child(2){width:21%}.accounts-tree-table th:nth-child(3){width:10%}.accounts-tree-table th:nth-child(4){width:10%}.accounts-tree-table th:nth-child(5){width:19%}.accounts-tree-table th:nth-child(6){width:8%}.accounts-tree-table th:nth-child(7){width:15%}.accounts-tree-table th:nth-child(8){width:9%}
/* Wuaci Finance product accent. */
.accounts-kpi-icon.tone-finance{color:#355C8A;background:#EEF3F8}

/* Shared account opening and service groups. */
.account-opening-page .account-form-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.account-opening-page fieldset p{font-size:.85rem;line-height:1.6;color:var(--muted,#6F6F6F);margin:0 0 1rem}
.account-opening-page header>svg,.account-edit-card header>svg{flex-shrink:0;fill:none;stroke:var(--product);stroke-width:1.8}
.account-opening-page .errorlist{color:#B91C1C;font-size:.85rem;padding-left:1.1rem}
.account-related-groups>details{margin:.75rem 1rem}
.account-related-groups summary{min-height:2.75rem;display:flex;align-items:center;color:var(--product);font-size:.85rem}
.account-related-groups .accounts-period-list>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
@media(max-width:52rem){.account-opening-page .account-form-columns{grid-template-columns:1fr}.account-related-groups .accounts-period-list>div{grid-template-columns:1fr}.account-opening-page footer{flex-wrap:wrap}.account-opening-page footer>.button{flex:1;justify-content:center}}

/* Compact hierarchy with an independent service organization view. */
.accounts-browser-toolbar{display:flex;align-items:center;gap:.8rem;padding:1rem;flex-wrap:wrap}
.accounts-redesign .accounts-chart-search{position:relative;flex:1 1 22rem;width:auto}
.accounts-redesign .accounts-chart-search>svg{position:absolute;width:1.15rem;height:1.15rem;left:.7rem;top:50%;transform:translateY(-50%);fill:none;stroke:var(--product);stroke-width:1.8}
.accounts-redesign .accounts-chart-search input{padding-left:2.3rem;min-height:2.75rem;font-size:.8rem}
.accounts-class-tabs,.accounts-view-toolbar>div{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.accounts-class-tabs button,.accounts-view-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.75rem;padding:.55rem .8rem;border:1px solid #D4D4D4;border-radius:.5rem;background:#F5F6F7;color:#4B4B4B;font-size:.8rem;box-shadow:none}
.accounts-class-tabs button[aria-pressed=true],.accounts-view-toolbar button[aria-pressed=true]{background:var(--product);color:#fff;border-color:var(--product)}
.accounts-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:0 1rem 1rem;flex-wrap:wrap}
.accounts-view-toolbar svg,.accounts-filter-disclosure svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.8}
.accounts-view-toolbar>span{font-size:.75rem;color:#6F6F6F}
.accounts-filter-disclosure{flex:0 0 auto}
.accounts-filter-disclosure>summary{display:flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:.5rem .8rem;border:1px solid #D4D4D4;border-radius:.5rem;color:var(--product);cursor:pointer;font-size:.8rem}
.accounts-filter-disclosure[open]{flex-basis:100%}.accounts-filter-disclosure[open]>summary{width:max-content;margin-bottom:.75rem}
.accounts-redesign .accounts-tree-table{min-width:66rem;font-size:.8rem}
.accounts-redesign .accounts-tree-table th{font-size:.72rem;text-transform:none;padding:.7rem}
.accounts-redesign .accounts-tree-table th:nth-child(1){width:36%}.accounts-redesign .accounts-tree-table th:nth-child(2){width:8%}.accounts-redesign .accounts-tree-table th:nth-child(3){width:8%}.accounts-redesign .accounts-tree-table th:nth-child(4){width:17%}.accounts-redesign .accounts-tree-table th:nth-child(5){width:8%}.accounts-redesign .accounts-tree-table th:nth-child(6){width:15%}.accounts-redesign .accounts-tree-table th:nth-child(7){width:8%}
.accounts-redesign .accounts-tree-table td{padding:.55rem .7rem;display:table-cell}
.accounts-redesign .accounts-tree-table tr[data-posting=no]{background:#F5F6F7}
.accounts-redesign .accounts-identity{display:flex;align-items:center;gap:.5rem;padding-left:calc(var(--tree-depth)*1.15rem);min-width:0}
.accounts-redesign .accounts-identity>strong{flex-shrink:0;font-size:.75rem}
.accounts-redesign .accounts-identity .accounts-account-name{white-space:normal;overflow-wrap:anywhere;line-height:1.4;color:#4B4B4B;text-decoration:none;font-size:.8rem}
.accounts-redesign .accounts-identity>button{width:1.8rem;height:1.8rem;flex:0 0 1.8rem;padding:.3rem;border:0;background:transparent;color:var(--product);display:grid;place-items:center}
.accounts-redesign .accounts-identity>button svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2}
.accounts-redesign .accounts-identity>button[aria-expanded=false] svg{transform:rotate(-90deg)}
.accounts-redesign .accounts-kind-icon{width:1.15rem;height:1.15rem;flex:0 0 1.15rem;fill:none;stroke:var(--product);stroke-width:1.8}
.accounts-redesign .accounts-balance-cell{text-align:right;font-variant-numeric:tabular-nums}
.accounts-redesign .accounts-group-only{font-size:.7rem;color:#6F6F6F}
.accounts-redesign .accounts-quick-actions{display:flex;gap:.3rem}
.accounts-redesign .accounts-quick-actions>a{width:2rem;height:2rem;display:grid;place-items:center;border:1px solid #D4D4D4;border-radius:.4rem}
.accounts-service-help{margin:0;padding:1rem;color:#6F6F6F;font-size:.8rem;line-height:1.6}
.account-service-group{margin:0 1rem .75rem;border:1px solid #D4D4D4;border-radius:.6rem;overflow:hidden}
.account-service-group>summary{display:flex;align-items:center;gap:.65rem;min-height:3rem;padding:.7rem;cursor:pointer;color:var(--product);background:#F5F6F7}
.account-service-group>summary:after{content:'+';margin-left:auto}.account-service-group[open]>summary:after{content:'−'}
.account-service-group svg{width:1.25rem;height:1.25rem;fill:none;stroke:var(--product);stroke-width:1.8;flex-shrink:0}
.account-service-count{font-size:.7rem;color:#6F6F6F}
.account-service-row{display:grid;grid-template-columns:1.3rem minmax(0,1fr) auto auto 2.5rem 2.5rem;align-items:center;gap:.8rem;padding:.8rem;border-top:1px solid #D4D4D4;font-size:.8rem}
.account-service-row small{display:block;font-size:.7rem;color:#6F6F6F;margin-top:.2rem}.account-service-balance{text-align:right;font-variant-numeric:tabular-nums}
.accounts-service-action{display:grid;place-items:center;min-height:2.5rem;border:1px solid #D4D4D4;border-radius:.4rem}
.account-service-add{display:inline-flex;margin:.65rem .8rem;padding:.45rem .7rem;border:1px solid #D4E1EE;border-radius:.4rem;color:var(--product);font-size:.72rem;font-weight:700;text-decoration:none}
.account-service-add:hover,.accounts-service-action:hover{background:var(--product-wash)}
.account-context-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.7rem 0}
.account-context-note{padding:.55rem .7rem;border-left:3px solid var(--product);background:var(--product-wash);color:#4B4B4B}
.accounts-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem;min-width:0}
@media(max-width:640px){.accounts-heading-actions{justify-content:flex-start;width:100%}}
.account-settings-fieldset .account-transfer-home-field{display:grid;align-items:start;gap:.3rem;padding:.55rem .4rem}
.account-transfer-home-field select{width:100%;min-width:0}
.account-transfer-home-field small{color:#6F6F6F;font-size:.6rem;font-weight:500;line-height:1.4}
.account-service-row .accounts-service-action svg{width:1rem;height:1rem}
.account-service-row.is-linked{position:relative;margin-left:1.65rem;padding-left:1.05rem;border-left:2px solid var(--product-soft);background:var(--product-wash)}
.account-service-row.is-linked:before{position:absolute;top:50%;left:0;width:.7rem;border-top:2px solid var(--product-soft);content:""}
.accounts-linked-note{display:block;margin-top:.2rem;color:var(--product);font-size:.62rem;line-height:1.3}
.accounts-redesign [hidden]{display:none!important}
@media(max-width:52rem){.accounts-browser-toolbar{gap:.65rem}.accounts-class-tabs{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:.25rem}.accounts-view-toolbar>div{width:100%}.accounts-view-toolbar button{flex:1;font-size:.75rem}.account-service-row{grid-template-columns:1.3rem minmax(0,1fr) 2.5rem 2.5rem;gap:.5rem}.account-service-row>div:nth-child(2){grid-column:2}.account-service-balance{grid-column:2;text-align:left}.account-service-row>.accounts-status{grid-column:2;grid-row:3;width:max-content}.account-service-row>.accounts-service-action:nth-last-child(2){grid-column:3;grid-row:1;width:2.5rem}.account-service-row>.accounts-service-action:last-child{grid-column:4;grid-row:1;width:2.5rem}.account-service-count{margin-left:auto}.account-service-group>summary{flex-wrap:wrap;font-size:.85rem}}

@media(max-width:52rem){.accounts-page .accounts-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.accounts-page .accounts-kpi{grid-template-columns:2rem minmax(0,1fr);gap:.5rem;padding:.75rem;min-height:6rem}.accounts-page .accounts-kpi-icon{width:2rem;height:2rem}.accounts-page .accounts-kpi-icon svg{width:1.2rem;height:1.2rem}.accounts-page .accounts-kpi small{white-space:normal}.accounts-page .accounts-kpi strong{font-size:1.15rem}}
@media(max-width:52rem){.account-service-row.is-linked{margin-left:.65rem;padding-left:.55rem}}

/* Tree structure must work under the production CSP without inline styles. */
.accounts-redesign .accounts-identity{padding:0;gap:.45rem;min-height:2.5rem;position:relative}
.accounts-redesign .accounts-tree-table td{padding:.2rem .7rem;height:2.9rem}
.accounts-redesign .accounts-tree-table td.accounts-balance-cell{display:table-cell!important}
.accounts-redesign .accounts-tree-guides{display:flex;align-self:stretch;flex-shrink:0;gap:0;margin-right:-.45rem}
.accounts-redesign .accounts-tree-guide{position:relative;width:1.65rem;flex:0 0 1.65rem}
.accounts-redesign .accounts-tree-guide.is-continuation:before,.accounts-redesign .accounts-tree-guide.is-branch:before{content:"";position:absolute;left:.9rem;top:-.25rem;bottom:-.25rem;border-left:1px solid #D4D4D4}
.accounts-redesign .accounts-tree-guide.is-branch:after{content:"";position:absolute;left:.9rem;right:0;top:50%;border-top:1px solid #D4D4D4}
.accounts-redesign .accounts-tree-guide.is-last:before{bottom:50%;border-bottom-left-radius:.3rem}
.accounts-redesign .accounts-folder-icon{fill:var(--product);stroke:var(--product);stroke-width:1;opacity:.9}
.accounts-redesign tr[data-posting=no] .accounts-account-name{font-weight:750}
.accounts-redesign tr[data-posting=no]{background:#FFFFFF}
.accounts-redesign tr[data-posting=no]:has(.accounts-identity[data-depth="0"]){background:#F5F6F7}
.accounts-redesign .accounts-identity[data-depth="0"] .accounts-account-name{font-weight:850}
.accounts-redesign .accounts-type-badge{color:var(--product);background:#EEF3F8;border-color:#D4E1EE}
.accounts-redesign .accounts-type-badge.is-posting{color:#15803D;background:#E8F6ED;border-color:#BFE3CC}
.accounts-redesign .accounts-tree-leaf{width:1.8rem;flex:0 0 1.8rem}
.accounts-redesign tr[data-posting=yes] .accounts-account-name{font-weight:500}
.accounts-legacy-section{border-top:1px solid #D4D4D4;margin-top:.75rem}
.accounts-legacy-section>summary{display:flex;align-items:center;gap:.65rem;padding:1rem;color:var(--product);cursor:pointer;background:#F5F6F7}
.accounts-legacy-section>summary:after{content:'+';margin-left:auto}.accounts-legacy-section[open]>summary:after{content:'\2212'}
.accounts-legacy-section>summary svg{width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:1.8}
.accounts-legacy-section>summary span{font-size:.75rem;color:#6F6F6F}.accounts-legacy-section>p{padding:.75rem 1rem;margin:0;font-size:.8rem;color:#6F6F6F}

@media (max-width: 620px) {
  .accounts-class-tabs { flex-wrap: wrap; overflow-x: visible; }
  .accounts-class-tabs button { flex: 0 0 auto; white-space: nowrap; }
}
