/* Proposed account/summary compositions of Lucid overview, information rows and list cards. */
.ld-summary-value{font-size:var(--ld-type-quote);font-weight:500;letter-spacing:-.04em;margin:var(--ld-space-sm) 0 var(--ld-space-md);overflow-wrap:anywhere}
.ld-cash-metrics{display:grid;grid-template-columns:1fr 1fr;gap:var(--ld-space-md)}
.ld-cash-metrics>div{padding:var(--ld-space-md)}
.ld-cash-metrics dt{font-size:var(--ld-type-caption);color:var(--ld-muted);margin-bottom:var(--ld-space-sm)}
.ld-cash-metrics dd{margin:0;font-size:var(--ld-type-body)}
.ld-account-content .ld-section{min-width:0}
.ld-cash-transaction .ld-hub-copy strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ld-summary-gains{padding:0 var(--ld-card-padding)}
.ld-holdings-gain+.ld-holdings-gain,.ld-summary-gains>.ld-information-rows{border-top:1px solid var(--ld-border)}
.ld-holdings-gain summary{cursor:pointer;display:flex;align-items:center;gap:var(--ld-space-sm);min-height:56px;padding:var(--ld-space-md) 0;font-size:var(--ld-type-small)}
.ld-holdings-gain summary:after{content:"";width:16px;height:16px;flex:none;background:var(--ld-muted);mask:url("../assets/icons/black/chevron-down.svg") center/16px 16px no-repeat}
.ld-holdings-gain[open] summary:after{transform:rotate(180deg)}
.ld-holdings-gain summary strong{margin-left:auto;font-size:var(--ld-type-small);font-weight:500;white-space:nowrap}
.ld-holdings-gain .ld-information-rows,.ld-summary-gains>.ld-information-rows{font-size:var(--ld-type-small);line-height:1.4}
.ld-holdings-summary .ld-market-heading{flex-wrap:wrap;gap:var(--ld-space-sm);margin:0}
.ld-holdings-summary .ld-market-heading p{font-size:var(--ld-type-small)}
.lucid .ld-summary-value{line-height:1.15;margin:var(--ld-space-sm) 0 var(--ld-space-md)}
.lucid .ld-account-content>.ld-action-pair>*{flex:1;width:0;min-width:0;min-height:48px;height:auto;display:flex;align-items:center;justify-content:center;padding:8px 16px;text-align:center;text-decoration:none;border-radius:40px;line-height:20px}
.ld-summary-gains>.ld-information-rows{padding-block:var(--ld-space-md)}
.ld-summary-gains>.ld-information-rows dd{flex:0 0 auto;color:var(--ld-gain)}
.ld-holdings-gain>.ld-information-rows{padding-bottom:var(--ld-space-md)}
/* Cash reuses the Activity composition; explicit Regular amounts per Kelly. */
#account .ld-activity-value strong{font-weight:400;font-size:var(--ld-type-body)}
#account .ld-activity-value small,#account .ld-hub-copy small{font-size:var(--ld-type-small)}
.ld-invest-controls{display:grid;gap:var(--ld-space-md);margin-bottom:0}
.ld-invest-controls label{display:grid;gap:var(--ld-space-sm);font-size:var(--ld-type-small)}
.ld-invest-filter-row{display:flex;gap:8px;overflow:auto;padding-bottom:8px}
.ld-holdings-table{overflow:auto;margin-top:0}
.ld-holdings-table table{border-collapse:collapse;min-width:620px;font-size:14px;width:100%}
.ld-holdings-table th,.ld-holdings-table td{padding:16px 12px;text-align:right;border-bottom:1px solid var(--ld-border)}
.ld-holdings-table th:first-child,.ld-holdings-table td:first-child{text-align:left;position:sticky;left:0;background:white}
.ld-holdings-table button{border:0;background:none;font:inherit;color:inherit;cursor:pointer}


/* Retain the Home APY treatment on an interactive button and align disclosure icons. */
#account .ld-balance-label{display:flex;align-items:center;gap:var(--ld-space-sm)}
#account .ld-info{display:inline-flex;width:32px;height:32px;justify-content:center}
#account .ld-info img{width:16px;height:16px}
/* Audit: scoped financial text roles; do not inherit browser bold th/strong defaults. */
.ld-cash-metrics dd{font-weight:400;line-height:1.2}
.lucid .ld-apy-control{display:inline-flex;align-items:center;min-height:32px}
.ld-apy-control .ld-account-detail{font-weight:500}
.ld-cash-metrics{margin:0}
.ld-holdings-table table{font-size:var(--ld-type-small);font-weight:400}
.ld-holdings-table th{font-weight:500;color:var(--ld-muted)}
.ld-holdings-table td{font-weight:400}
.ld-holdings-table td strong{font-weight:500}
.ld-holdings-table th,.ld-holdings-table td{padding:var(--ld-space-md);line-height:1.4}
.ld-invest-controls .ld-activity-filters{padding-bottom:0}
.lucid .ld-invest-controls .ld-activity-filters button{font-size:var(--ld-type-small);font-weight:400;min-height:44px;padding:var(--ld-space-sm) var(--ld-space-md);background:transparent;color:var(--ld-muted)}
.lucid .ld-invest-controls .ld-activity-filters button[aria-pressed=true]{background:var(--ld-surface);color:var(--ld-text);box-shadow:var(--ld-shadow-control),inset 0 0 0 1px var(--ld-border)}
.ld-holdings-summary .ld-summary-gains{font-weight:400}
.ld-holdings-gain summary strong{font-weight:400}

.ld-holdings-table td:first-child button{display:flex;align-items:center;min-height:44px}

/* YOS-10307: shared push headers and current-source holdings styling.
   Retain shared cards, tokens and global chat; these headers keep their titles. */
#account[data-view=cash]>.ld-scroll-header,
#invest[data-view=holdings]>.ld-scroll-header{padding-bottom:0}
#account[data-view=cash] .ld-scroll-title,
#invest[data-view=holdings] .ld-scroll-title{opacity:1}
#invest[data-view=holdings]>.ld-scroll-header .ld-invest-toolbar{padding:16px;min-height:80px;gap:16px}
#invest[data-view=holdings] .ld-invest-content{padding-top:var(--ld-top-occlusion)}
#invest[data-view=holdings] .ld-invest-toolbar>.ld-choice{flex:1;min-width:0}
#invest[data-view=holdings] #holdings-account{display:flex;width:100%;min-height:48px;padding:0;gap:6px;border:0;box-shadow:none;background:transparent;border-radius:0;font-size:32px;line-height:1.2;font-weight:500;letter-spacing:-.02em;text-align:left}
#holdings-account>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#holdings-account>.ld-choice-chevron{flex-shrink:0}
#invest[data-view=holdings] .ld-holdings-table th:first-child,
#invest[data-view=holdings] .ld-holdings-table td:first-child{width:128px;min-width:128px;z-index:1}
#invest[data-view=holdings] .ld-holdings-table th,
#invest[data-view=holdings] .ld-holdings-table td{height:76px;white-space:nowrap}
#invest[data-view=holdings] .ld-holdings-table td small{display:block;font-size:12px;line-height:1.4}
#invest[data-view=holdings] .ld-holdings-table th button{min-height:44px}
#invest[data-view=holdings] .ld-holdings-summary .ld-market-heading{min-height:44px}

/* Shared account identity and value rhythm for Cash and investment accounts. */
.lucid .ld-account-heading-title{position:relative;display:flex;align-items:center;gap:var(--ld-space-sm);min-height:32px}
.lucid .ld-account-heading-title h1{margin:0;min-width:0;font-size:var(--ld-type-title);font-weight:500;line-height:1.2;letter-spacing:-.02em;overflow-wrap:anywhere}
#account[data-view=cash] .ld-summary-value,#invest[data-view=holdings] .ld-summary-value{font-size:var(--ld-type-heading);font-weight:500;line-height:1.15;letter-spacing:-.02em;margin:0}
