/* MMHVAULT Accounts P4.0 — Premium Liquid Glass
 * Visual-only. Accounts state, CRUD, currencies, wallet data, auth and calculations unchanged.
 * Loaded after all legacy inline/linked styles. Scoped to real Accounts elements. */
:root{--ac40-edge:rgba(153,211,251,.30);--ac40-faint:rgba(140,198,237,.16);--ac40-gold:#f3d181;--ac40-muted:#a7c2d7;--ac40-panel:linear-gradient(143deg,rgba(28,62,86,.76) 0%,rgba(9,32,53,.84) 48%,rgba(4,20,37,.91) 100%);--ac40-tile:linear-gradient(140deg,rgba(39,78,103,.51),rgba(10,37,60,.69));--ac40-elev:inset 0 1px 0 rgba(255,255,255,.16),0 18px 48px rgba(0,0,0,.27)}
html body.mmh-workspace-active:not(.light) #accounts-page{width:100%!important;max-width:1320px!important;margin-inline:auto!important;box-sizing:border-box!important;min-width:0!important;color:#f1f8fd!important}
/* Hero: real DOM remains interactive and live; city is an independent image resource */
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
 position:relative!important;isolation:isolate!important;min-height:176px!important;
 margin:0 0 15px!important;padding:30px clamp(18px,2.6vw,35px)!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;
 border:1px solid var(--ac40-edge)!important;border-radius:24px!important;overflow:hidden!important;
 background:linear-gradient(90deg,rgba(2,15,29,.84),rgba(4,21,37,.38) 55%,rgba(2,13,26,.66)),url('../images/mmhvault-city-glass-v2.webp') center 44%/cover no-repeat!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 18px 42px rgba(0,0,0,.26)!important;
 backdrop-filter:blur(10px) saturate(135%)!important;-webkit-backdrop-filter:blur(10px) saturate(135%)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.07),transparent 40%),radial-gradient(circle at 88% 4%,rgba(242,195,97,.18),transparent 28%)}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading>div{max-width:68%;min-width:0;position:relative;z-index:1}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{margin:0!important;font:500 clamp(30px,3.2vw,51px)/1.09 Georgia,'Times New Roman',serif!important;letter-spacing:-.035em!important;color:#fafcff!important;text-shadow:0 3px 26px rgba(0,0,0,.55)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading p{margin:11px 0 0!important;font-size:clamp(12px,1.05vw,15px)!important;line-height:1.5!important;color:#c2d9ed!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{position:relative;z-index:1;flex:0 0 auto;color:#b8cede!important;font-weight:650!important;font-size:11px!important;letter-spacing:.03em!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{min-width:170px!important}
/* Account command-center shell */
html body.mmh-workspace-active:not(.light) #accounts-page .am-shell{
 position:relative!important;isolation:isolate!important;width:100%!important;max-width:none!important;
 padding:clamp(12px,1.7vw,22px)!important;border:1px solid var(--ac40-edge)!important;border-radius:23px!important;
 background:var(--ac40-panel)!important;box-shadow:var(--ac40-elev)!important;
 backdrop-filter:blur(24px) saturate(155%)!important;-webkit-backdrop-filter:blur(24px) saturate(155%)!important;overflow:visible!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-shell::before{
 content:'';position:absolute;inset:1px;z-index:-1;pointer-events:none;border-radius:inherit;
 background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 36%),radial-gradient(circle at 94% 0%,rgba(245,194,95,.11),transparent 27%),radial-gradient(circle at 0% 100%,rgba(80,173,231,.12),transparent 40%);
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-page[hidden]{display:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:11px!important;margin-bottom:14px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-top :is(b,strong){color:#f4f9ff!important;font-weight:720!important;font-size:16px!important}
html body.mmh-workspace-active:not(.light) #accounts-page :is(.am-top button,.am-top select,.am-find input,.am-find select,.ap-heading select,.am-fields input:not([type=checkbox]),.am-fields select,.am-fields textarea,.am-actions .btn){
 min-height:44px!important;box-sizing:border-box!important;border:1px solid rgba(164,211,243,.31)!important;border-radius:13px!important;
 background:linear-gradient(145deg,rgba(29,67,94,.67),rgba(7,30,51,.81))!important;
 color:#e6f4ff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09)!important;
 backdrop-filter:blur(12px) saturate(130%)!important;-webkit-backdrop-filter:blur(12px) saturate(130%)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page :is(button,input,select):focus-visible{outline:2px solid #f5d183!important;outline-offset:2px!important}
html body.mmh-workspace-active:not(.light) #accounts-page #amAdd,
html body.mmh-workspace-active:not(.light) #accounts-page .am-actions .btn.primary{
 color:#251a0a!important;font-weight:800!important;border:1px solid rgba(255,227,165,.67)!important;
 background:linear-gradient(135deg,#f8dfa0,#ddaa54)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.47),0 8px 22px rgba(225,176,83,.15)!important;
}
/* Financial overview. No replacement or formatting of values. */
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary{
 position:relative!important;overflow:hidden!important;margin:0 0 14px!important;padding:clamp(16px,2vw,26px)!important;
 border-radius:20px!important;border:1px solid rgba(243,208,130,.38)!important;
 background:radial-gradient(circle at 95% 4%,rgba(241,191,90,.20),transparent 38%),linear-gradient(133deg,rgba(39,62,76,.76),rgba(7,34,56,.87) 58%,rgba(3,22,40,.96))!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 15px 34px rgba(0,0,0,.19),0 0 24px rgba(238,180,75,.06)!important;
 backdrop-filter:blur(20px) saturate(140%)!important;-webkit-backdrop-filter:blur(20px) saturate(140%)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 34%)}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary>.am-top{position:relative;z-index:1;gap:12px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary>.am-top span{color:#d9eaf5!important;font-size:13px!important;font-weight:720!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary>strong{display:block!important;position:relative;z-index:1;font-size:clamp(27px,3.5vw,47px)!important;line-height:1.1!important;font-weight:650!important;color:#fdf5de!important;letter-spacing:-.03em!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid>div{min-height:80px!important;border:1px solid var(--ac40-faint)!important;border-radius:15px!important;padding:15px 17px!important;background:var(--ac40-tile)!important;box-shadow:inset 0 1px rgba(255,255,255,.07)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid b{display:block;color:#f1f8ff!important;font-size:clamp(17px,1.8vw,24px)!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums!important}
html body.mmh-workspace-active:not(.light) #accounts-page :is(.am-help,.am-count){font-size:11px!important;line-height:1.5!important;color:var(--ac40-muted)!important}
/* Account search and list: clear rows, glass edge on hover, original button semantics */
html body.mmh-workspace-active:not(.light) #accounts-page .am-find{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,210px)!important;gap:12px!important;margin-top:12px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-search-wrap{min-width:0!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-list{display:grid!important;gap:7px!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row{
 display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;min-height:72px!important;
 padding:11px 15px!important;border-radius:15px!important;border:1px solid rgba(148,206,245,.19)!important;
 background:linear-gradient(138deg,rgba(28,65,89,.53),rgba(7,32,52,.75))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.055)!important;color:#eaf5fc!important;
 transition:border-color .18s ease,background-color .18s ease,transform .18s ease!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row:hover{border-color:rgba(245,203,121,.48)!important;background:linear-gradient(138deg,rgba(39,78,100,.73),rgba(12,43,67,.87))!important;transform:translateY(-1px)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-logo{flex:0 0 44px!important;width:44px!important;height:44px!important;border-radius:13px!important;border:1px solid rgba(177,220,247,.27)!important;box-shadow:inset 0 1px rgba(255,255,255,.20),0 5px 14px rgba(0,0,0,.18)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row-copy{min-width:0!important;flex:1 1 auto!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row-copy b{font-size:14px!important;font-weight:740!important;color:#eff9ff!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row-copy small{font-size:10px!important;color:#9fbcd0!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-row-value{flex:0 1 auto!important;min-width:0!important;max-width:46%!important;color:#f5d58a!important;text-align:right!important;font-size:clamp(14px,1.42vw,21px)!important;font-weight:740!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums!important}
/* Add / edit in-page states. Keep existing controls / file upload actions. */
html body.mmh-workspace-active:not(.light) #accounts-page .am-types{display:grid!important;gap:10px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-types h3{color:#f3d181!important;margin:16px 0 5px!important;font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
html body.mmh-workspace-active:not(.light) #accounts-page :is(.am-fields,.am-picker){border:1px solid rgba(162,210,241,.21)!important;border-radius:17px!important;background:linear-gradient(140deg,rgba(21,53,78,.60),rgba(7,28,48,.80))!important;box-shadow:inset 0 1px rgba(255,255,255,.07)!important;padding:15px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-fields label{color:#c1d8e7!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-logo-row{align-items:center!important;gap:15px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-upload{display:flex!important;align-items:center!important;gap:12px!important;border:1px dashed rgba(157,209,242,.31)!important;border-radius:15px!important;padding:13px!important;background:rgba(20,61,88,.27)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-icons button{background:rgba(23,64,92,.44)!important;border:1px solid rgba(161,210,241,.17)!important;border-radius:12px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-hide{display:flex!important;align-items:center!important;gap:12px!important}
/* Modal / details on Accounts: scoped via dynamic classes so Transaction/Invest visuals remain unchanged. */
html body:not(.light) #mmhVaultDialogV449.show:has(.mmh-account-dialog-v148),
html body:not(.light) #mmhVaultDialogV449.show:has(.am-dialog-editor-v136){align-items:center!important;justify-content:center!important;background:rgba(2,10,21,.77)!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148,
html body:not(.light) #mmhVaultDialogV449 .mmh-v449-dialog:has(.am-dialog-editor-v136){
 width:min(900px,calc(100vw - 26px))!important;max-width:900px!important;max-height:calc(100dvh - 28px)!important;
 border:1px solid rgba(171,219,247,.37)!important;border-radius:23px!important;
 background:linear-gradient(142deg,rgba(27,63,88,.92),rgba(7,31,51,.95) 65%,rgba(2,18,35,.97))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.17),0 28px 80px rgba(0,0,0,.48)!important;
 backdrop-filter:blur(23px) saturate(145%)!important;-webkit-backdrop-filter:blur(23px) saturate(145%)!important;
 overflow:hidden!important;
}
html body:not(.light) #mmhVaultDialogV449 :is(.mmh-account-dialog-v148,.mmh-v449-dialog:has(.am-dialog-editor-v136)) .mmh-v449-dialog-head{padding:17px 21px!important;border-bottom:1px solid rgba(163,213,244,.20)!important;background:linear-gradient(180deg,rgba(240,248,255,.09),rgba(240,248,255,.01))!important}
html body:not(.light) #mmhVaultDialogV449 :is(.mmh-account-dialog-v148,.mmh-v449-dialog:has(.am-dialog-editor-v136)) .mmh-v449-dialog-head h3{font:500 clamp(21px,2.15vw,27px)/1.23 Georgia,'Times New Roman',serif!important;color:#fbfcff!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-v449-dialog-body,
html body:not(.light) #mmhVaultDialogV449 .mmh-v449-dialog:has(.am-dialog-editor-v136) .mmh-v449-dialog-body{overflow:auto!important;min-height:0!important;max-height:calc(100dvh - 205px)!important;padding:17px 20px!important;overscroll-behavior:contain!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 :is(.mmh-tx-detail-hero-v800,.mmh-tx-detail-item-v800,.mmh-account-kpi-v148,.mmh-account-balance-card-v149,.mmh-account-section-v830,.mmh-account-wallet-token-v176,.mmh-account-actions-v148 button,.mmh-account-flow-v830>div){
 min-width:0!important;border:1px solid rgba(160,208,240,.21)!important;border-radius:16px!important;background:var(--ac40-tile)!important;box-shadow:inset 0 1px rgba(255,255,255,.07)!important;
}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-tx-detail-hero-v800{background:radial-gradient(circle at 90% 0%,rgba(241,194,100,.14),transparent 45%),var(--ac40-tile)!important;border-color:rgba(241,204,130,.30)!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-tx-detail-amount-v800{color:#f4d38d!important;overflow-wrap:anywhere!important;white-space:normal!important;text-overflow:clip!important;font-variant-numeric:tabular-nums!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-topgrid-v148,
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-balance-grid-v149{gap:10px!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-balance-card-v149{overflow:visible!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-balance-card-v149 b{color:#f7fbff!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-actions-v148 button{min-height:67px!important;transition:border-color .16s ease!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 .mmh-account-actions-v148 button:hover{border-color:rgba(244,206,125,.55)!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-detail-v148 :is(.mmh-account-recent-list-v830,.mmh-account-wallet-token-list-v176){border-radius:14px!important;border-color:rgba(160,208,240,.17)!important;background:rgba(6,26,45,.28)!important}
html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-v449-dialog-actions,
html body:not(.light) #mmhVaultDialogV449 .mmh-v449-dialog:has(.am-dialog-editor-v136) .mmh-v449-dialog-actions{position:relative!important;border-top:1px solid rgba(170,218,248,.18)!important;background:linear-gradient(180deg,rgba(37,79,103,.74),rgba(7,31,53,.97))!important;padding:13px 20px!important}
html body:not(.light) #mmhVaultDialogV449 :is(.mmh-account-dialog-v148,.mmh-v449-dialog:has(.am-dialog-editor-v136)) .mmh-v449-dialog-actions button{border-radius:12px!important;min-height:43px!important;box-shadow:inset 0 1px rgba(255,255,255,.11)!important}
html body:not(.light) #mmhVaultDialogV449 :is(.mmh-account-dialog-v148,.mmh-v449-dialog:has(.am-dialog-editor-v136)) .mmh-v449-dialog-actions button.primary{background:linear-gradient(135deg,#f7dfa0,#dfa955)!important;color:#21180b!important;border-color:rgba(255,220,151,.67)!important}
html body:not(.light) #mmhVaultDialogV449 .am-dialog-editor-v136 :is(.am-fields,.am-picker){background:linear-gradient(145deg,rgba(17,49,75,.75),rgba(5,23,43,.89))!important;border:1px solid rgba(163,211,243,.21)!important;border-radius:17px!important}
html body:not(.light) #mmhVaultDialogV449 .am-dialog-editor-v136 .am-upload{background:rgba(25,66,93,.55)!important;border:1px dashed rgba(169,213,243,.31)!important;border-radius:14px!important}
/* Manage Accounts stand-alone overlay retains native app behavior but takes same material. */
html body:not(.light) #mmhManageOverlayV1.open .mmh-manager-window-v1{border:1px solid rgba(171,219,247,.35)!important;border-radius:23px!important;background:linear-gradient(142deg,rgba(27,63,88,.94),rgba(7,31,51,.97) 65%)!important;box-shadow:inset 0 1px rgba(255,255,255,.16),0 28px 80px rgba(0,0,0,.48)!important;backdrop-filter:blur(20px) saturate(140%)!important;-webkit-backdrop-filter:blur(20px) saturate(140%)!important}
html body:not(.light) #mmhManageOverlayV1 .mmh-manager-window-head-v1{background:linear-gradient(180deg,rgba(241,249,255,.09),transparent)!important;border-bottom:1px solid rgba(160,210,243,.17)!important}
/* Compact laptop and touch-first mobile. */
@media(max-width:920px){
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{min-height:146px!important;padding:21px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid>div{min-height:67px!important}
}
@media(max-width:620px){
 html body.mmh-workspace-active:not(.light) #accounts-page{padding-bottom:max(110px,calc(80px + env(safe-area-inset-bottom)))!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-height:0!important;gap:13px!important;padding:19px 16px!important;border-radius:18px!important;margin-bottom:11px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading>div{max-width:none!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{font-size:clamp(29px,8vw,39px)!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{width:100%!important;min-width:0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{width:100%!important;min-width:0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-shell{padding:12px!important;border-radius:18px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-top{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-top :is(button,select){width:100%!important;min-width:0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary{padding:15px!important;border-radius:17px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary>.am-top{display:flex!important;justify-content:space-between!important;flex-wrap:wrap!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary>.am-top button{width:auto!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid{gap:8px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid>div{padding:12px!important;min-height:60px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-summary-grid b{font-size:16px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-find{grid-template-columns:1fr!important;gap:8px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-row{padding:10px!important;min-height:67px!important;gap:9px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-logo{flex-basis:39px!important;width:39px!important;height:39px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-row-value{max-width:44%!important;font-size:clamp(13px,3.8vw,17px)!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148,
 html body:not(.light) #mmhVaultDialogV449 .mmh-v449-dialog:has(.am-dialog-editor-v136){width:calc(100vw - 18px)!important;max-height:calc(100dvh - 18px)!important;border-radius:19px!important}
 html body:not(.light) #mmhVaultDialogV449 :is(.mmh-account-dialog-v148,.mmh-v449-dialog:has(.am-dialog-editor-v136)) .mmh-v449-dialog-body{max-height:calc(100dvh - 185px)!important;padding:13px!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-account-topgrid-v148{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-account-balance-grid-v149{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-account-actions-v148{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-account-actions-v148 button{padding:9px 5px!important;min-height:60px!important}
 html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-v449-dialog-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}
@media(max-width:350px){html body.mmh-workspace-active:not(.light) #accounts-page .am-top{grid-template-columns:1fr!important}html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148 .mmh-account-balance-grid-v149{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){html body.mmh-workspace-active:not(.light) #accounts-page .am-row{transition:none!important;transform:none!important}}
@supports not ((backdrop-filter:blur(8px)) or (-webkit-backdrop-filter:blur(8px))){html body.mmh-workspace-active:not(.light) #accounts-page .am-shell,html body:not(.light) #mmhVaultDialogV449 .mmh-account-dialog-v148{background:#0a2640!important}}


/* QA ISOLATED STYLING: accounts directory V1 */

/* Accounts P4.1 compact hero — visual-only, scoped to Accounts. */
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
  min-height:124px!important;
  height:auto!important;
  margin:0 0 12px!important;
  padding:18px clamp(17px,2vw,28px)!important;
  border-radius:20px!important;
  gap:14px!important;
  background-position:center 54%!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{
  font-size:clamp(27px,2.55vw,40px)!important;
  line-height:1.12!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{
  display:flex!important;align-items:center!important;gap:9px!important;
  font-size:11px!important;line-height:1.25!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{
  min-width:140px!important;min-height:43px!important;
}
@media(max-width:920px){
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
    min-height:112px!important;padding:16px 20px!important;
  }
}
@media(max-width:620px){
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
    min-height:0!important;gap:10px!important;margin:0 0 10px!important;
    padding:15px!important;border-radius:17px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{font-size:clamp(25px,7.8vw,34px)!important}
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{
    display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:9px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{
    width:100%!important;min-width:0!important;
  }
}


/* QA ISOLATED STYLING: accounts directory V1 */

/* MMHVAULT Accounts Premium Directory V1
 * Responsive presentation only. The source account buttons and original amounts remain intact.
 * Loaded AFTER p40 / p41; scoped to Accounts. No unrelated page or dialog styling. */
html body.mmh-workspace-active:not(.light) #accounts-page{
  --dir-gold:#f2cb7b;--dir-line:rgba(154,196,228,.17);--dir-muted:#9bb3c5;
  max-width:1500px!important;
  color:#eaf2f9!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
  min-height:94px!important;margin:0 0 12px!important;padding:18px clamp(17px,2.1vw,27px)!important;
  border-radius:19px!important;border:1px solid rgba(169,206,232,.21)!important;
  background:radial-gradient(ellipse at 84% -30%,rgba(217,165,78,.15),transparent 46%),linear-gradient(120deg,rgba(8,29,48,.94),rgba(5,19,34,.93))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.095),0 13px 28px rgba(0,0,0,.17)!important;
  align-items:center!important;gap:17px!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading::before{background:linear-gradient(90deg,rgba(234,186,101,.07),transparent 33%)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading>div:first-child{flex:1 1 auto;max-width:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{
  font:500 clamp(29px,2.35vw,37px)/1.07 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.034em!important;text-shadow:none!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading p{margin-top:6px!important;font-size:12px!important;color:var(--dir-muted)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:5px!important;white-space:nowrap}
html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{min-width:153px!important;min-height:39px!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1{max-width:none!important;flex:0 0 auto;display:flex;align-items:center}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1 #amAdd{
  min-height:46px!important;padding:0 23px!important;border-radius:13px!important;
  background:linear-gradient(135deg,#ffe2a0,#dfab55)!important;
  border:1px solid rgba(255,228,160,.83)!important;color:#211b15!important;
  font-weight:800!important;letter-spacing:.015em!important;
  box-shadow:inset 0 1px rgba(255,255,255,.55),0 9px 22px rgba(185,126,47,.12)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page:has(#amHome[hidden]) .am-directory-heading-actions-v1{display:none}
html body.mmh-workspace-active:not(.light) #accounts-page .am-shell.am-directory-ready-v1{
  padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-shell.am-directory-ready-v1::before{display:none}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-original-top-v1{display:none!important}
/* Five-part financial strip: only the two counts are new; all money is displayed by the original code. */
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
  display:grid!important;grid-template-columns:minmax(245px,1.45fr) minmax(175px,.8fr) minmax(210px,1fr)!important;
  grid-template-rows:auto auto auto!important;column-gap:19px!important;row-gap:5px!important;
  margin:0 0 14px!important;padding:18px 21px 13px!important;
  border:1px solid rgba(201,168,107,.26)!important;border-radius:19px!important;
  background:radial-gradient(circle at 91% -29%,rgba(217,162,69,.13),transparent 42%),linear-gradient(135deg,rgba(15,48,72,.87),rgba(8,27,45,.95) 58%,rgba(4,19,35,.98))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 14px 31px rgba(0,0,0,.16)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
  grid-column:1;grid-row:1;margin:0!important;display:flex!important;justify-content:space-between!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top span{
  font-size:11px!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#b2c7d8!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amHideAll{
  min-height:31px!important;border-radius:9px!important;padding:4px 9px!important;font-size:11px!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
  grid-column:1;grid-row:2;font:600 clamp(27px,2.5vw,38px)/1.14 ui-sans-serif,system-ui,sans-serif!important;
  color:#fcf9ef!important;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stats-v1{
  grid-column:2;grid-row:1 / span 2;display:grid;grid-template-columns:1fr 1fr;gap:7px;
  border-inline:1px solid var(--dir-line);padding:4px 15px;align-self:stretch;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stat-v1{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:3px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stat-v1 strong{color:var(--dir-gold);font-size:26px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stat-v1 small{color:var(--dir-muted);font-size:11px;line-height:1.4}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
  grid-column:3;grid-row:1 / span 2;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;align-self:stretch;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{
  padding:12px!important;min-height:66px!important;border:1px solid rgba(153,195,223,.15)!important;border-radius:12px!important;
  background:rgba(7,27,45,.52)!important;display:flex;flex-direction:column;justify-content:center;gap:5px;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid small{
  font-size:11px!important;color:var(--dir-muted)!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid b{
  font-size:clamp(15px,1.55vw,21px)!important;font-weight:760!important;line-height:1.2!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div:first-child b{color:#65dfb2!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div:last-child b{color:#ee91a3!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
  grid-column:1 / -1;grid-row:3;margin:7px 0 0!important;color:#87a0b3!important;font-size:10px!important
}
/* Quiet two-column directory. Currency is a filter, never an exchange-rate operation. */
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-layout-v1{
  display:grid;grid-template-columns:minmax(196px,225px) minmax(0,1fr);align-items:start;gap:14px;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-sidebar-v1,
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-main-v1{
  min-width:0;border:1px solid rgba(154,198,225,.20);border-radius:18px;
  background:linear-gradient(144deg,rgba(11,40,63,.89),rgba(4,21,38,.96));
  box-shadow:inset 0 1px rgba(255,255,255,.085),0 13px 29px rgba(0,0,0,.13);
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-sidebar-v1{padding:17px 11px 14px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-sidebar-title-v1{
  margin:0 8px 12px;color:var(--dir-gold);font-size:11px;font-weight:780;letter-spacing:.095em;text-transform:uppercase;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-menu-v1{display:grid;gap:5px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1{
  display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:51px;padding:8px 10px;
  text-align:left;border:1px solid transparent;border-radius:11px;
  background:transparent;color:#eaf4fd;cursor:pointer;transition:background .17s,border-color .17s;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1:hover{
  border-color:rgba(195,211,223,.18);background:rgba(49,98,126,.20);
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1[aria-pressed="true"]{
  border-color:rgba(255,217,140,.55);background:linear-gradient(110deg,rgba(231,178,86,.26),rgba(145,110,62,.10));
  box-shadow:inset 2px 0 0 #edc071;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-flag-v1{font-size:23px;width:31px;flex:0 0 31px;text-align:center;line-height:1}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-copy-v1{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:2px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-copy-v1 strong{font-weight:680;font-size:13px;color:#f5f9fc}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-copy-v1 small{font-size:10px;color:#92adc2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-count-v1{
  min-width:28px;text-align:center;font-size:11px;padding:4px 6px;border:1px solid rgba(142,192,222,.22);
  border-radius:8px;color:#d3e4f0;font-variant-numeric:tabular-nums
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1[aria-pressed="true"] .am-directory-currency-count-v1{
  color:var(--dir-gold);border-color:rgba(246,209,135,.4)
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-note-v1{
  margin:24px 5px 1px;padding:12px;border:1px solid rgba(141,189,219,.13);border-radius:12px;
  background:rgba(49,101,123,.13);font-size:10px;line-height:1.65;color:#8fa9bd
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-main-v1{padding:18px 17px 15px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-head-v1{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 2px 11px
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-title-v1{
  margin:0;color:#f7f9fd;font:500 clamp(19px,1.8vw,25px)/1.18 Georgia,'Times New Roman',serif;letter-spacing:-.025em
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-visible-v1{margin:5px 0 0;color:#92abc0;font-size:11px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-toolbar-v1{display:flex;align-items:center;gap:7px}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-toolbar-v1 #amFilter{
  min-width:126px;max-width:180px;min-height:37px!important;border-radius:10px!important;
  border:1px solid rgba(148,193,222,.24)!important;background:rgba(13,43,66,.88)!important;
  color:#dfeefa!important;padding:6px 26px 6px 10px!important;font-size:11px
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-find{
  margin:0 0 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(130px,158px)!important;gap:9px!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-find :is(input,select){
  min-height:40px!important;border-radius:10px!important;background:rgba(21,56,79,.54)!important;
  border:1px solid rgba(158,207,237,.24)!important;font-size:12px!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-columns-v1{
  display:grid;grid-template-columns:minmax(145px,1.8fr) minmax(85px,.72fr) minmax(85px,.75fr) minmax(134px,1fr);
  gap:10px;margin-bottom:5px;padding:11px 14px 11px 60px;border-radius:9px;background:rgba(53,91,118,.25);
  color:#8daabe;font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-columns-v1 span:last-child{text-align:right}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-count{display:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list{
  display:grid!important;gap:3px!important;background:transparent!important;border:0!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row{
  display:grid!important;grid-template-columns:40px minmax(145px,1.8fr) minmax(85px,.72fr) minmax(85px,.75fr) minmax(134px,1fr)!important;
  align-items:center!important;gap:10px!important;min-width:0!important;min-height:55px!important;
  padding:7px 14px!important;border:1px solid transparent!important;border-radius:10px!important;
  text-align:left;background:rgba(42,88,118,.18)!important;box-shadow:none!important;transform:none!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row:nth-of-type(even){background:rgba(39,82,113,.31)!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row:hover{
  background:rgba(52,100,128,.41)!important;border-color:rgba(221,184,111,.31)!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row[hidden]{display:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-logo{
  width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:10px!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-row-copy{display:block;min-width:0!important;overflow:hidden}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-row-copy b{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#f1f7fb!important;font-size:13px!important;font-weight:720!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row-copy small{display:none!important}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-type-v1{color:#a1bacb;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-cell-v1{color:#dbeaf2;font-weight:620;font-size:12px;white-space:nowrap}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-row-value{
  max-width:none!important;min-width:0!important;overflow-wrap:anywhere;
  font-size:clamp(12px,1.16vw,15px)!important;font-weight:770!important;
  color:#f5ce7e!important;font-variant-numeric:tabular-nums!important
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-empty-v1{
  margin:18px 3px;color:#afc5d3;font-size:13px;text-align:center
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1:focus-visible{
  outline:2px solid #f0c67b!important;outline-offset:2px!important
}
@media(max-width:1110px){
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-layout-v1{grid-template-columns:182px minmax(0,1fr);gap:10px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-main-v1{padding:14px 11px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row{grid-template-columns:34px minmax(100px,1.45fr) minmax(69px,.65fr) minmax(69px,.65fr) minmax(94px,1fr)!important;gap:7px!important;padding:7px 9px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-columns-v1{grid-template-columns:minmax(100px,1.45fr) minmax(69px,.65fr) minmax(69px,.65fr) minmax(94px,1fr);gap:7px;padding-left:50px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-logo{width:33px!important;height:33px!important;flex-basis:33px!important}
}
@media(max-width:760px){
 html body.mmh-workspace-active:not(.light) #accounts-page{padding-bottom:max(95px,calc(80px + env(safe-area-inset-bottom)))!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
   min-height:0!important;flex-wrap:wrap!important;padding:15px!important;gap:10px!important;border-radius:16px!important
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading>div:first-child{flex-basis:100%}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{font-size:30px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{flex:1 1 0!important;min-width:0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{width:100%!important;min-width:0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1{flex:0 0 auto}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1 #amAdd{min-height:42px!important;padding:0 14px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
   grid-template-columns:minmax(0,1.6fr) minmax(90px,1fr)!important;grid-template-rows:auto auto auto auto!important;
   padding:14px!important;column-gap:9px!important;row-gap:8px!important;border-radius:16px!important
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{grid-column:1;grid-row:1}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{grid-column:1;grid-row:2;font-size:clamp(24px,6.8vw,34px)!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stats-v1{grid-column:2;grid-row:1 / span 2;padding:0 0 0 9px;border-left:1px solid var(--dir-line);border-right:0;gap:2px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-stat-v1 strong{font-size:23px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{grid-column:1/-1;grid-row:3;grid-template-columns:1fr 1fr!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{min-height:57px!important;padding:9px 11px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{grid-row:4;margin:1px 0 0!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-layout-v1{display:block}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-sidebar-v1{padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;margin-bottom:11px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-sidebar-title-v1{margin:0 0 7px 3px;font-size:10px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-menu-v1{
   display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 1px 6px;
   scrollbar-width:thin;-webkit-overflow-scrolling:touch
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1{
   flex:0 0 auto;width:auto;min-height:43px;padding:7px 11px;gap:7px;white-space:nowrap;
   background:rgba(15,44,67,.92);border-color:rgba(141,196,228,.18)
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-flag-v1{font-size:20px;width:23px;flex-basis:23px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-copy-v1 small{display:none}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-count-v1{font-size:10px;min-width:20px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-note-v1{display:none}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-main-v1{padding:13px 10px;border-radius:16px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-head-v1{flex-wrap:wrap}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-title-v1{font-size:21px}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-find{grid-template-columns:minmax(0,1fr) minmax(106px,125px)!important;gap:6px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-columns-v1{display:none!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list{gap:5px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row{
   grid-template-columns:37px minmax(0,1fr) minmax(0,auto)!important;
   min-height:61px!important;gap:8px!important;padding:8px 9px!important
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-logo{width:36px!important;height:36px!important;flex-basis:36px!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list .am-row-copy small{
   display:block!important;color:#8faabd!important;font-size:10px!important;margin-top:3px!important
 }
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-type-v1,
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-cell-v1{display:none!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-row-value{
   max-width:46vw!important;font-size:clamp(11px,3.45vw,15px)!important;line-height:1.25!important
 }
}
@media(max-width:390px){
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-find{grid-template-columns:1fr!important}
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{display:block!important}
 html body.mmh-workspace-active:not(.light) #accounts-page #amHideAll{margin-top:5px}
}
@media(prefers-reduced-motion:reduce){
 html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-currency-v1{transition:none}
}
/* Light-mode structural fallback without imposing dark palette on other app pages. */
html body.mmh-workspace-active.light #accounts-page .am-directory-layout-v1{display:grid;grid-template-columns:215px minmax(0,1fr);gap:12px}
html body.mmh-workspace-active.light #accounts-page .am-directory-sidebar-v1,
html body.mmh-workspace-active.light #accounts-page .am-directory-main-v1{padding:15px;border:1px solid #b5cada;border-radius:15px;background:#f7faff;color:#173147}
html body.mmh-workspace-active.light #accounts-page .am-directory-currency-v1{display:flex;gap:8px;align-items:center;width:100%;padding:10px;background:transparent;color:#173147;border:1px solid transparent;text-align:left}
html body.mmh-workspace-active.light #accounts-page .am-directory-currency-v1[aria-pressed=true]{background:#f4e5c0;border-color:#c29951}
html body.mmh-workspace-active.light #accounts-page .am-directory-currency-copy-v1{display:flex;flex:1;flex-direction:column}
html body.mmh-workspace-active.light #accounts-page .am-directory-currency-copy-v1 small{font-size:11px}
html body.mmh-workspace-active.light #accounts-page .am-directory-head-v1{display:flex;justify-content:space-between;align-items:center;gap:12px}
html body.mmh-workspace-active.light #accounts-page .am-directory-columns-v1{display:none}
html body.mmh-workspace-active.light #accounts-page .am-list .am-row[hidden]{display:none!important}
@media(max-width:760px){html body.mmh-workspace-active.light #accounts-page .am-directory-layout-v1{display:block}html body.mmh-workspace-active.light #accounts-page .am-directory-menu-v1{display:flex;overflow-x:auto;gap:5px}html body.mmh-workspace-active.light #accounts-page .am-directory-currency-v1{width:auto;white-space:nowrap}}


/* Accounts Safari contrast + compact phone header QA patch (no financial changes).
   WebKit paints its default white select even when the gradient background is present. */
html body.mmh-workspace-active:not(.light) #accounts-page :is(
  .ap-heading select,
  .am-directory-toolbar-v1 select,
  .am-directory-ready-v1 .am-find select
){
  -webkit-appearance:none!important;
  appearance:none!important;
  color-scheme:dark!important;
  background-color:#0c2c46!important;
  background-image:
    linear-gradient(45deg,transparent 50%,#b5cfe0 50%),
    linear-gradient(135deg,#b5cfe0 50%,transparent 50%),
    linear-gradient(145deg,#143951,#09263e)!important;
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%,0 0!important;
  background-size:5px 5px,5px 5px,100% 100%!important;
  background-repeat:no-repeat!important;
  color:#ecf7ff!important;
  padding-right:29px!important;
  border:1px solid rgba(157,206,236,.3)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page :is(
  .ap-heading select,
  .am-directory-toolbar-v1 select,
  .am-directory-ready-v1 .am-find select
):focus-visible{
  outline:2px solid #f4cd80!important;
  outline-offset:2px!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page :is(
 .ap-heading select,
 .am-directory-toolbar-v1 select,
 .am-directory-ready-v1 .am-find select
) option {
  background:#0c2c46!important;
  color:#edf7ff!important;
}
@media(max-width:760px){
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:"title action" "currency currency"!important;
    align-items:center!important;
    gap:8px 12px!important;
    padding:13px 14px!important;
    text-align:left!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading>div:first-child{
    grid-area:title;min-width:0;max-width:none!important;flex:none!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{
    font-size:clamp(27px,7.2vw,32px)!important;
    text-align:left!important;
    margin:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading p{
    text-align:left!important;font-size:11px!important;line-height:1.3!important;margin-top:4px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading label{
    grid-area:currency;display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;
    gap:9px!important;width:100%!important;margin:0!important;
    font-size:10px!important;min-width:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading select{
    min-height:39px!important;
    width:100%!important;max-width:none!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1{
    grid-area:action;min-width:0;justify-self:end;align-self:center;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1 #amAdd{
    min-height:39px!important;padding:0 11px!important;
    border-radius:10px!important;font-size:11px!important;
    max-width:145px!important;white-space:nowrap!important;
  }
}
@media(max-width:350px){
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading{
    grid-template-columns:minmax(0,1fr) auto!important;column-gap:7px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .ap-heading h1{font-size:26px!important}
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-heading-actions-v1 #amAdd{
    padding:0 7px!important;font-size:10px!important;
  }
}


/* Accounts integrated-shell grid safety patch — preserve summary readability under real APP CSS. */
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
  min-width:0!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;min-width:0!important;
  max-width:100%!important;justify-self:stretch!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
  grid-column:2!important;grid-row:1 / span 2!important;
  min-width:0!important;max-width:100%!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
  grid-column:3!important;grid-row:1 / span 2!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  justify-self:stretch!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{
  width:100%!important;min-width:0!important;max-width:100%!important;
  overflow:hidden!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid b{
  display:block!important;max-width:100%!important;min-width:0!important;
  font-variant-numeric:tabular-nums!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
  line-height:1.25!important;
}
html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
  grid-column:1 / -1!important;grid-row:3!important;
  width:100%!important;max-width:100%!important;
}
@media(max-width:760px){
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
    grid-template-columns:minmax(0,1.6fr) minmax(90px,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
    grid-column:2!important;grid-row:1 / span 2!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
    grid-column:1 / -1!important;grid-row:3!important;
    width:100%!important;max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-self:stretch!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{
    padding:9px 11px!important;min-width:0!important;
    overflow:hidden!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid b{
    font-size:clamp(12px,3.6vw,16px)!important;
    overflow-wrap:anywhere!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
    grid-column:1 / -1!important;grid-row:4!important;
  }
}


/* Mobile full-shell: use a deterministic flex stack, avoiding legacy grid-column
   overrides that constrained the asset tiles to the first net-assets column. */
@media(max-width:760px){
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
    display:flex!important;flex-flow:column nowrap!important;
    align-items:stretch!important;justify-content:flex-start!important;
    gap:9px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
    display:flex!important;order:1!important;
    width:100%!important;align-self:stretch!important;
    flex-flow:row wrap!important;align-items:center!important;
    margin:0!important;gap:8px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
    display:block!important;order:2!important;
    align-self:stretch!important;width:100%!important;
    margin:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
    order:3!important;align-self:stretch!important;
    display:grid!important;grid-template-columns:1fr 1fr!important;
    width:100%!important;max-width:none!important;
    padding:8px 0!important;border-inline:0!important;
    border-top:1px solid rgba(154,196,228,.15)!important;
    border-bottom:1px solid rgba(154,196,228,.15)!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
    order:4!important;align-self:stretch!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    margin:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
    order:5!important;align-self:stretch!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;
  }
}


/* Last-resort cascade isolation for very specific historical inline Accounts
   selectors (including body:not(#mmh-card-*) selectors). Layered !important
   properties beat old unlayered !important without changing legacy CSS. */
@layer mmhAccountsDirectoryShellOverride {
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
    display:grid!important;
    grid-template-columns:minmax(245px,1.45fr) minmax(175px,.8fr) minmax(210px,1fr)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:19px!important;
    row-gap:5px!important;
    padding:18px 21px 13px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
    grid-column:1!important;grid-row:1!important;
    display:flex!important;flex-flow:row wrap!important;
    justify-content:space-between!important;align-items:center!important;
    max-width:100%!important;min-width:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
    grid-column:1!important;grid-row:2!important;
    min-width:0!important;max-width:100%!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
    grid-column:2!important;grid-row:1 / span 2!important;
    min-width:0!important;max-width:100%!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
    grid-column:3!important;grid-row:1 / span 2!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;max-width:none!important;min-width:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{
    width:100%!important;min-width:0!important;max-width:100%!important;
    overflow:hidden!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid b{
    font-size:clamp(14px,1.45vw,21px)!important;overflow-wrap:anywhere!important;
    max-width:100%!important;min-width:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
    grid-column:1 / -1!important;grid-row:3!important;
    width:100%!important;max-width:100%!important;
  }
  @media(max-width:760px){
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
      display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
      align-items:stretch!important;justify-content:flex-start!important;
      gap:9px!important;padding:14px!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
      order:1!important;display:flex!important;flex-flow:row wrap!important;
      margin:0!important;max-width:100%!important;min-width:0!important;
      width:100%!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
      order:2!important;display:block!important;margin:0!important;width:100%!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
      order:3!important;display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      width:100%!important;max-width:100%!important;
      border-inline:0!important;
      border-top:1px solid rgba(154,196,228,.15)!important;
      border-bottom:1px solid rgba(154,196,228,.15)!important;
      padding:8px 0!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
      order:4!important;display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      align-self:stretch!important;
      width:100%!important;max-width:100%!important;min-width:0!important;
      margin:0!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid>div{
      min-width:0!important;width:100%!important;max-width:100%!important;
      padding:9px 11px!important;overflow:hidden!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid b{
      font-size:clamp(12px,3.6vw,16px)!important;
      line-height:1.25!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
      order:5!important;width:100%!important;max-width:100%!important;margin:0!important;
    }
  }
}


/* Integrated tablet grid: two-stage summary leaves enough real text width for FX amounts. */
@layer mmhAccountsDirectoryShellOverride {
  @media(min-width:761px) and (max-width:1180px){
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary{
      display:grid!important;
      grid-template-columns:minmax(0,1fr) minmax(154px,.65fr)!important;
      grid-template-rows:auto auto auto auto!important;
      column-gap:14px!important;row-gap:7px!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-top{
      grid-column:1!important;grid-row:1!important;
      max-width:100%!important;min-width:0!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 #amNet{
      grid-column:1!important;grid-row:2!important;max-width:100%!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-directory-stats-v1{
      grid-column:2!important;grid-row:1 / span 2!important;
      width:100%!important;max-width:100%!important;
      padding:3px 6px!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary-grid{
      grid-column:1 / -1!important;grid-row:3!important;
      display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
      width:100%!important;max-width:100%!important;justify-self:stretch!important;
      min-width:0!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-summary>.am-help{
      grid-column:1 / -1!important;grid-row:4!important;
    }
  }
}


/* Directory row-density safeguard against original APP list sizing.
 * Keeps the original buttons and native balance text, reduces only presentation height. */
@layer mmhAccountsDirectoryShellOverride {
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list{
    display:grid!important;gap:4px!important;
    padding:0!important;margin:0!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row{
    display:grid!important;align-items:center!important;
    grid-template-columns:38px minmax(145px,1.8fr) minmax(85px,.72fr) minmax(85px,.75fr) minmax(134px,1fr)!important;
    height:auto!important;min-height:56px!important;
    margin:0!important;padding:7px 12px!important;
    border-radius:10px!important;
    line-height:1.25!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row .am-logo{
    width:36px!important;height:36px!important;flex-basis:36px!important;
  }
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row .am-row-copy{
    min-height:0!important;min-width:0!important;
    line-height:1.3!important;
  }
  @media(min-width:761px) and (max-width:1110px){
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row{
      grid-template-columns:34px minmax(100px,1.45fr) minmax(69px,.65fr) minmax(69px,.65fr) minmax(94px,1fr)!important;
      padding:7px 9px!important;gap:7px!important;
      min-height:54px!important;
    }
  }
  @media(max-width:760px){
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row{
      grid-template-columns:36px minmax(0,1fr) minmax(0,auto)!important;
      height:auto!important;min-height:62px!important;
      margin:0!important;padding:9px!important;
      gap:8px!important;
    }
    html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row .am-logo{
      width:36px!important;height:36px!important;flex-basis:36px!important;
    }
  }
}


/* Hidden state must share the stronger layer, otherwise display:grid overrides [hidden]. */
@layer mmhAccountsDirectoryShellOverride {
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row[hidden]{
    display:none!important;
  }
}


/* The legacy amount span can stretch to 70px even when its text is one line.
   Let the amount size to content so the whole row can shrink. */
@layer mmhAccountsDirectoryShellOverride {
  html body.mmh-workspace-active:not(.light) #accounts-page .am-directory-ready-v1 .am-list>.am-row .am-row-value{
    display:block!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    align-self:center!important;justify-self:end!important;
    line-height:1.35!important;white-space:normal!important;
    margin:0!important;padding:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
}
