/* Only the background behind the signed-in dashboard changes. The first
   colour matches the persistent header. Cards retain their own surfaces. */
html[data-account-view="member"] body[data-service-page="mon-compte"] #main {
  background-color: #1a191c;
  background-image:linear-gradient(to bottom,
    #1a191c var(--activity-start,100%),
    #192d38 calc(var(--activity-start,100%) + 16rem),
    #183748 100%);
  background-repeat: no-repeat;
}
html[data-account-view="member"] body[data-service-page="mon-compte"] #main .account-home {
  background: transparent;
}
html[data-account-view="member"] .account-home > .journey-header[data-journey="assets"] {
  background: transparent;
}
html[data-account-view="member"] .account-home > .journey-header .journey-brand h2 { color: #f5f8f8; }
html[data-account-view="member"] .account-home > .journey-header .journey-brand h2 span { color: #77c1ca; }
html[data-account-view="member"] .account-home > .journey-header .journey-brand p,
html[data-account-view="member"] .account-home > .account-context82 a { color: #c5d5d8; }
html[data-account-view="member"] .account-home > .account-context82 a:is(:hover,:focus-visible) { color: #fff; }
@media (forced-colors: active) {
  html[data-account-view="member"] body[data-service-page="mon-compte"] #main {background: Canvas;}
}

/* Use a single gutter between cards, independent of the height of the sidebar. */
html body #main .account60 .dashboard60 {
  --account-gap:clamp(14px,1.5vw,24px);
  gap:var(--account-gap);
}
html body #main .account60 .dashboard60 > .main60,
html body #main .account60 .dashboard60 > .assets-sidebar {
  display:grid; grid-template-columns:minmax(0,1fr); align-content:start;
  align-items:start; gap:var(--account-gap); min-width:0;
}
html body #main .account60 .main60 > :is(.assets-board,.activity60) {
  box-sizing:border-box; width:100%; min-width:0; margin:0; zoom:1;
}
html body #main .account60 .assets-sidebar .account-overview {gap:var(--account-gap);}
@media (max-width:1023px) {
  html body #main .account60 .dashboard60 .assets-sidebar .side60 {
    max-height:none; overflow:visible; padding:0; border:0; box-shadow:none; background:transparent;
  }
}
@media (max-width:680px) {
  html body #main .account60 .assets-sidebar summary {
    writing-mode:horizontal-tb; width:100%; padding:12px 16px; box-sizing:border-box;
  }
  html body #main .account60 .assets-sidebar summary::after {content:"⌄"; margin-inline-start:auto;}
  html body #main .account60 .assets-sidebar details[open] summary::after {transform:rotate(180deg);}
  html body #main .account60 .assets-sidebar details[open] > .side60 {margin-top:8px;}
  html body #main .account60 .account-overview {display:grid; grid-template-columns:minmax(0,1fr);}
  html body #main .account60 .wallet-tabs328 [role=tab] strong {white-space:nowrap;}
  html body #main .account60 .holdings60 .section-head60 {flex-wrap:wrap;}
  html body #main .account60 .holdings60 .asset60 {grid-template-columns:auto minmax(0,1fr) minmax(0,1.25fr);}
  html body #main .account60 .holdings60 .asset60 :is(strong,small) {overflow-wrap:anywhere;white-space:normal;}
}
@container (min-width:820px) {
  html body #main .account60 .assets-board .wallet-tabs328 {
    display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  }
  html body #main .account60 .assets-board .wallet-tabs328 > button:nth-child(n) {
    grid-column:auto; min-width:0;
  }
}

/* In the unavailable state the wallet status is the only content in main. */
html[data-account-view="unavailable"] #main > #wallet-status {
  display:grid; place-content:center; justify-items:center; gap:12px;
  min-height:clamp(280px,60dvh,520px); margin:0 auto; padding:24px;
  box-sizing:border-box; text-align:center;
}

/* Keep the formatted currency within the clear space inside the allocation ring. */
html body #main .account-home .allocation-ring60 > div {
  container-type: inline-size;
  align-items: center !important;
  min-inline-size: 0;
}
html body #main .account-home .allocation-ring60 > div > strong {
  max-inline-size: 84%;
  margin-inline: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  font-size: min(2rem, 16cqi, calc(128cqi / var(--balance-length, 8))) !important;
  line-height: 1.15;
  text-align: center;
}

html[data-account-view="member"] #main .account60 .main60 > .assets-board {
  background:transparent !important; border:0; box-shadow:none; padding:0;
}
html[data-account-view="member"] #main .account60 .assets-board::before,
html[data-account-view="member"] #main .account60 .assets-board::after {content:none;}
html body #main .wallet-focus328 .balance-dots {gap:0; align-items:center;}
html body #main .wallet-focus328 .balance-dots button {
  position:relative; flex:none; width:19px; height:21px; min-width:0; min-height:0;
  padding:0; margin:0; border:0; border-radius:50%; background:transparent;
}
html body #main .wallet-focus328 .balance-dots button::before {
  content:""; position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%);
  width:5px; height:5px; border-radius:50%; background:currentColor; color:white;
}
html body #main .wallet-focus328 .balance-dots button[aria-pressed=true]::before {width:9px; height:9px;}
html body #main .wallet-focus328 .balance-dots button:focus-visible {outline:2px solid white;outline-offset:0;}
@media (max-width:767px) {
  html body #main .account60 .assets-board .wallet-tabs328 {display:none !important;}
  html body #main .account60 .wallet-focus328 {touch-action:pan-y pinch-zoom;}
  html body #main .wallet-focus328 .balance-dots button {width:24px; height:24px;}
  html body #main [data-wallet-summary328][data-universe="assurances"] :is([data-wallet-balance328],.balance-wallet-rail,.wallet-primary328,[data-wallet-name371],[data-wallet-meta328],#wallet-receive) {display:none;}
}
@media (max-width:767px) {
  html body #main .account-home > .journey-header[data-journey="assets"] {
    --search-width398:35.7px;position:relative;display:grid !important;grid-template-columns:minmax(0,1fr) 35.7px !important;align-items:center !important;gap:12px !important;
  }
  html body #main .account-home .journey-brand {min-width:0;grid-area:1/1 !important;width:auto !important;}
  html body #main .account-home .journey-brand h2 {font-size:clamp(1.25rem,5.25vw,1.65rem) !important;line-height:1.16 !important;}
  html body #main .account-home .journey-brand p {display:none;}
  html body #main .account-home .journey-header[data-journey="assets"] > .journey-search {
    position:relative;grid-area:1/2 !important;justify-self:end;flex:0 0 35.7px; width:35.7px !important;min-width:35.7px !important;max-width:none !important;height:35.7px;margin:0;
  }
  html body #main .account-home .journey-header[data-journey="assets"] .journey-search-field {
    box-sizing:border-box;position:relative;display:grid;place-items:center;
    width:35.7px !important;max-width:none !important;height:35.7px;min-height:0;padding:0;border-radius:50%;background:white;
  }
  html body #main .account-home .journey-header[data-journey="assets"] .journey-search-field input {
    box-sizing:border-box; position:absolute; inset:0; width:100%; min-width:0;height:100%;
    opacity:0;cursor:pointer; border-radius:inherit;
  }
  html body #main .account-home .journey-header[data-journey="assets"]:has(.journey-search-field:focus-within) .journey-search {
    --search-width398:100%;position:absolute !important;grid-area:auto !important;inset-inline:0;width:100% !important;z-index:2;
  }
  html body #main .account-home .journey-header[data-journey="assets"] .journey-search-field:focus-within {
    width:100% !important;display:flex;align-items:center;padding-inline:12px;border-radius:21px;
  }
  html body #main .account-home .journey-header[data-journey="assets"] .journey-search-field:focus-within input {
    position:static;opacity:1;cursor:text;flex:1;padding-inline:8px;
  }
}


@media (max-width:767px) {
  html[data-account-view="member"] body[data-service-page="mon-compte"] #main {
    background:linear-gradient(to bottom,#1a191c var(--mobile-account-start,7rem),#fff var(--mobile-account-start,7rem));
  }
  html body #main .account-home > .journey-header[data-journey="assets"] {margin-block:14px 0 !important;}
  html body #main .account-home > .account-context82 {
    margin:0 0 12px !important; padding-inline-start:34px;
    min-height:0; line-height:1.35;
  }
  html body #main .account-home > .account-context82 a {font-size:.875rem;line-height:1.45;}
  html[data-account-view="member"] body #main .account60 .dashboard60 .main60 > .assets-board {
    padding:0 !important;
  }
}
