/* Personal account: wallet context, holdings first, advanced tools below. */
.account-page{max-width:1120px;margin-inline:auto;padding:24px 0 32px}
.account-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:12px 0 24px}
.account-header>div{min-width:0}
.account-header h1{margin:0 0 12px}
.account-wallet{display:flex;align-items:center;gap:12px;min-width:0}
.account-network{display:inline-flex;align-items:center;gap:6px;font:500 11px var(--data-font);color:var(--tx2);flex:none}
.account-network img{width:20px;height:20px}
.account-address{font:400 12px/1.7 var(--data-font);color:var(--tx3);overflow-wrap:anywhere;min-width:0}
.account-page .account-copy{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;color:var(--tx3)}
.account-page .account-copy:hover{background:var(--hover);color:var(--tx)}
.account-copy .ic{width:15px;height:15px}
.account-explorer{display:inline-flex;align-items:center;gap:6px;color:var(--tx3);font-size:11px;line-height:1.7;min-height:40px;white-space:nowrap}
.account-explorer:hover{color:var(--goldtx)}
.account-intro{font-size:13px;color:var(--tx3);line-height:1.8;margin:0}
.account-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 24px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.account-overview>div{padding:0 24px;border-left:1px solid var(--line);min-width:0}
.account-overview>div:first-child{padding-left:0;border-left:0}
.account-overview dt{font-size:11px;line-height:1.7;color:var(--tx3)}
.account-overview dd{font:500 24px/1.5 var(--data-font);margin:8px 0 0;color:var(--tx);white-space:nowrap}
.account-overview dd small{font:400 11px var(--ui-font);margin-left:8px;color:var(--tx3)}
.account-overview>div>span{font:400 10px/1.7 var(--data-font);color:var(--tx3);display:block;margin-top:4px}
.account-page #mytabs{align-items:stretch;gap:28px;margin:0 0 24px;border-bottom:1px solid var(--line)}
.account-page #mytabs>button{height:auto;min-height:48px;line-height:1.6;font-size:13px;font-weight:500;padding:12px 0;white-space:normal;min-width:0;text-align:left}
.account-tools{display:grid;grid-template-columns:auto 160px minmax(180px,1fr);gap:12px;align-items:center;margin-bottom:16px}
.account-page .seg{height:auto;min-height:44px;padding:4px}
.account-page .seg>button{height:auto;min-height:36px;padding:8px 16px;line-height:1.5;font-size:12px}
.account-tools select,.account-history-tools select{background:var(--bg);border:1px solid var(--line2);color:var(--tx);border-radius:6px;height:44px;min-width:0;width:100%;padding:0 12px;font:400 12px var(--ui-font)}
.account-search{height:44px;display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line2);border-radius:6px;padding:0 12px;min-width:0}
.account-search:focus-within{border-color:var(--goldtx);outline:2px solid var(--goldbg);outline-offset:2px}
.account-search>.ic{width:16px;height:16px;flex:none;color:var(--tx3)}
.account-page .account-search input{padding:0;width:100%;min-width:0;height:100%;border:0;outline:0;box-shadow:none!important;background:transparent;font-size:12px;color:var(--tx)}
.account-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;min-height:40px}
.account-selection>span{font-size:11px;line-height:1.8;color:var(--tx3)}
.account-selection>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.account-selection .lk{font-size:11px;min-height:40px}
.account-page .account-selection .btn{min-height:40px;padding:8px 14px;font-size:12px;line-height:1.5}
.account-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.account-asset{border-radius:8px;min-width:0;background:var(--card)}
.account-asset.sel{border-color:var(--goldtx)}
.asset-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 0;min-height:60px}
.asset-project{display:inline-flex;align-items:center;gap:8px;min-width:0;font:500 13px var(--data-font)}
.asset-project b{font-weight:500}
.asset-avatar{display:inline-flex;flex:none}
.asset-project .lav.sm{width:28px;height:28px;margin:0;border-radius:6px;font-size:11px}
.asset-project .vb{flex:none}
.account-asset .ck{position:static;display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:6px;border:1px solid var(--line2);color:var(--tx3);background:transparent}
.account-asset .ck:hover,.account-asset.sel .ck{background:var(--goldbg);color:var(--goldtx);border-color:var(--goldtx)}
.account-asset .ck .ic{width:16px;height:16px}
.asset-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--tx3);line-height:1.6;white-space:nowrap}
.asset-status:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--tx3)}
.asset-status.listed{color:var(--goldtx)}
.asset-status.listed:before{background:var(--goldtx)}
.asset-core{padding:16px}
.asset-number{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;min-height:20px}
.asset-number>.mono{font:400 12px var(--data-font);color:var(--tx3)}
.account-asset .asset-number .stag{position:static;inset:auto;font-size:9px;height:18px;border-radius:3px}
.asset-quantity{display:flex;align-items:baseline;gap:10px}
.asset-quantity b{font:500 28px/1.5 var(--data-font);letter-spacing:-.02em}
.asset-quantity>span{font:400 11px var(--data-font);color:var(--tx3)}
.asset-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;font-size:10px;color:var(--tx3)}
.asset-quote{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border-top:1px solid var(--line);margin-top:auto}
.asset-quote>span{font-size:11px;color:var(--tx3)}
.asset-quote>div{display:flex;flex-direction:column;gap:4px;text-align:right;min-width:0}
.asset-quote b{font:500 15px/1.5 var(--data-font)}
.asset-quote b small{font-size:10px;color:var(--tx2)}
.asset-quote>div>small{font:400 10px/1.5 var(--data-font);color:var(--tx3)}
.asset-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 16px}
.asset-actions>a{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:11px;color:var(--tx3)}
.asset-actions>a:hover{color:var(--goldtx)}
.account-page .asset-actions .btn{min-width:88px;min-height:40px;font-size:12px;padding:8px 16px;line-height:1.5}
.account-convert{margin-top:32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.account-convert>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;cursor:pointer;list-style:none}
.account-convert>summary::-webkit-details-marker{display:none}
.account-convert>summary>span:first-child{display:flex;flex-direction:column;gap:6px;min-width:0}
.account-convert summary b{font-size:14px;font-weight:500}
.account-convert summary small{font-size:11px;color:var(--tx3);line-height:1.7}
.convert-chevron{color:var(--tx3);transform:rotate(180deg);transition:transform 180ms var(--motion-ease)}
.convert-chevron .ic{width:20px;height:20px}
.account-convert[open] .convert-chevron{transform:none}
.account-convert-body{padding-bottom:24px}
.account-convert .split{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.account-convert .sp-h{margin-bottom:20px}
.account-convert .sp-h h3{font-size:13px;font-weight:500}
.account-convert .sp-h>.muted{font-size:11px}
.account-convert .sp-rule{padding:16px;margin:0 0 24px;background:var(--sunk);font-size:12px;line-height:1.8}
.account-convert .sp-rule li{margin:6px 0}
.account-convert .sp-cols{gap:24px}
.account-convert .sp-cols h4{font-size:13px;font-weight:500;line-height:1.8}
.account-convert .sp-cols h4 small{font-size:10px}
.account-convert .chips{flex-wrap:wrap;overflow:visible;margin:12px 0 16px}
.account-convert .chips button{min-height:40px;font-size:11px;padding:8px 12px}
.account-page .account-convert .btn{min-height:44px;max-width:100%;font-size:12px;line-height:1.5;white-space:normal;padding:10px 14px}
.account-history-tools{display:grid;grid-template-columns:180px 180px minmax(0,1fr) auto auto;gap:12px;align-items:end;margin-bottom:20px}
.account-history-tools label{display:block;min-width:0}
.account-history-tools label>span{display:block;font-size:11px;color:var(--tx3);margin-bottom:8px}
.account-result{display:flex;align-items:center;min-height:44px;font-size:11px;color:var(--tx3)}
.account-page .account-history-tools .btn{min-height:44px;white-space:normal;font-size:11px;line-height:1.5;padding:8px 12px}
.account-page .account-history{border-radius:8px;overflow:hidden;background:transparent}
.account-page .account-history .hrw{grid-template-columns:minmax(160px,1.4fr) minmax(104px,1fr) 80px minmax(120px,1.1fr) minmax(96px,.9fr) minmax(128px,1.1fr);gap:16px;padding:16px;font-size:12px;min-width:0;background:transparent}
.account-page .account-history .hrw.th{padding-top:12px;padding-bottom:12px;font-size:10px;background:var(--sunk)}
.account-page .account-history .hrw:not(.th):hover{background:var(--hover)}
.account-history .hrw>*{min-width:0}
.history-identity{display:flex;flex-direction:column;gap:8px}
.history-identity>span:last-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px}
.history-identity .tag,.history-identity .ht{font-size:9px;height:18px}
.history-identity b{font-weight:500}
.account-history .num{font:500 12px/1.7 var(--data-font)}
.account-history .num small{font-size:9px}
.history-counterparty,.history-hash{display:flex;align-items:center;gap:4px;font:400 10px/1.7 var(--data-font)}
.account-history .cpy{width:28px;height:32px;display:inline-grid;place-items:center;flex:none}
.account-history .cpy .ic{width:12px;height:12px}
.account-history-cards{display:none}
.account-empty{padding:48px 24px;background:transparent;border-radius:8px}
.account-empty h2{font-size:16px;font-weight:500;line-height:1.7;margin:0 0 12px;color:var(--tx)}
.account-empty p{font-size:12px;margin:0 0 20px;color:var(--tx3)}
.account-empty .btn{margin-inline:4px}
.account-page .pager{margin:24px 0 0;gap:16px}
.account-page .pager button{min-height:40px;font-size:12px}
@media(max-width:999px){
 .account-tools{grid-template-columns:minmax(140px,1fr) minmax(0,1.6fr)}
 .account-tools #ownFilters{grid-column:1/-1}.account-tools #ownFilters button{flex:1}
 .account-assets{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-page .account-history{display:none}
 .account-history-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-history-tools .account-result{grid-row:3;grid-column:1/-1;min-height:0}
 .account-history-tools #htime,.account-history-tools #hcsv{grid-row:2}
 .account-history-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .account-history-cards .hcd{background:var(--card);border-radius:8px;padding:16px;min-width:0}
 .history-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;margin-bottom:20px}
 .history-card-top .ht{font-size:10px}.history-card-top>span{color:var(--tx3);text-align:right}
 .history-card-main{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
 .history-card-main>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font:400 12px/1.7 var(--data-font);min-width:0}
 .history-card-main b{font-weight:500}.history-card-main .num{font:500 14px/1.6 var(--data-font);text-align:right;white-space:nowrap}
 .history-card-main .num small{font-size:10px;font-weight:400}
 .history-card-details{margin:0;display:flex;flex-direction:column;gap:12px}
 .history-card-details>div{display:flex;align-items:center;justify-content:space-between;gap:16px}
 .history-card-details dt{font-size:10px;color:var(--tx3)}
 .history-card-details dd{display:flex;align-items:center;gap:6px;margin:0;font:400 11px/1.6 var(--data-font);text-align:right}
 .history-card-details dd small{display:none}
 .history-card-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;color:var(--tx3)}
 .history-card-link>div{display:flex;align-items:center;gap:6px;font:400 10px var(--data-font)}
 .account-history-cards .cpy{display:grid;place-items:center;width:32px;height:32px;flex:none}
 .account-history-cards .cpy .ic{width:13px;height:13px}
}
@media(max-width:599px){
 .account-page{padding-top:20px}.account-header{display:grid;grid-template-columns:auto minmax(0,1fr) 44px;gap:4px 8px;padding-top:0;padding-bottom:20px}.account-header>div{display:contents}
 .account-header h1{grid-column:1/-1;grid-row:1;margin-bottom:12px}.account-wallet{display:contents}
 .account-network{grid-column:1;grid-row:2}.account-address{grid-column:1/-1;grid-row:3;font-size:11px}.account-copy{grid-column:3;grid-row:2;justify-self:end}
 .account-explorer{grid-column:2;grid-row:2;justify-self:end;align-self:center;min-height:32px;font-size:10px}.account-intro{grid-column:1/-1}
 .account-overview{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 0;row-gap:12px}
 .account-overview>div{padding:0 16px}.account-overview>div:nth-child(odd){padding-left:0;border-left:0}
 .account-overview>div:nth-child(n+3){display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:12px}
 .account-overview dd{font-size:22px;line-height:1.3;margin-top:4px}.account-overview dd small{font-size:10px;margin-left:6px}
 .account-overview>div:nth-child(n+3) dd{font-size:20px;margin:0}
 .account-page #mytabs{gap:20px;margin-bottom:20px}.account-page #mytabs>button{font-size:12px}
 .account-tools{grid-template-columns:minmax(104px,.8fr) minmax(0,1.2fr);gap:12px}
 .account-page #ownFilters>button{padding:8px;font-size:12px;white-space:normal}
 .account-tools select{padding-inline:8px}.account-search{padding-inline:10px;gap:6px}
 .account-selection{margin-bottom:16px}.account-selection>div{margin-left:auto;gap:8px}
 .account-selection>span{font-size:10px}.account-page .account-selection .btn{font-size:11px;padding:8px 12px;min-height:44px}
 .account-assets{grid-template-columns:1fr;gap:16px}.account-asset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .asset-top{grid-column:1/-1}.asset-core{grid-column:1;grid-row:2;padding-top:12px;padding-bottom:12px}.asset-number{margin-bottom:12px;flex-wrap:wrap}
 .asset-quantity{flex-wrap:wrap;gap:4px 8px}.asset-quantity b{font-size:26px;max-width:100%;overflow-wrap:anywhere;min-width:0}
 .asset-quote{grid-column:2;grid-row:2;flex-direction:column;align-items:flex-end;justify-content:center;border-top:0;margin-top:0;padding:12px 16px 12px 8px;gap:8px}
 .asset-caption{align-items:flex-start;flex-direction:column;gap:6px}.asset-actions{grid-column:1/-1;padding:8px 16px;border-top:1px solid var(--line)}
 .account-asset .ck{width:44px;height:44px}.asset-top{min-height:60px}
 .account-page .asset-actions .btn{min-height:44px}.asset-actions>a{min-height:44px}
 .account-convert{margin-top:24px}.account-convert>summary{padding:20px 0}.account-convert .sp-cols{grid-template-columns:1fr;gap:24px}
 .account-convert .sp-h>.muted{width:100%;margin-left:0}.account-convert .sp-rule{padding:12px;font-size:11px}
 .account-history-cards{grid-template-columns:1fr;gap:12px}.account-history-tools{gap:12px}
 .account-history-cards .cpy{width:44px;height:44px}
 .account-empty{padding:40px 16px}
}
@media(max-width:359px){.account-tools{grid-template-columns:1fr}.account-tools #ownFilters{grid-column:auto}.account-overview dd{font-size:20px}.account-selection>div{max-width:100%;justify-content:flex-end}}

/* Keep long values and wallet actions inside narrow account layouts. */
.account-overview dd,.asset-quote b{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.account-header-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px;min-width:0}
@media(max-width:599px){
 .account-page .account-header{display:flex;flex-direction:column;align-items:stretch;gap:16px}
 .account-header>div{display:block}
 .account-header .account-wallet{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
 .account-wallet .account-network{grid-column:1;grid-row:1}
 .account-wallet .account-copy{grid-column:2;grid-row:1}
 .account-wallet .account-address{grid-column:1/-1;grid-row:2}
 .account-header>.account-header-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
 .account-header-actions>.btn{max-width:100%;min-height:40px;white-space:normal}
 .account-header-actions .account-explorer{white-space:normal;min-height:40px}
}
