.account-shell { max-width: 1240px; }

.assets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}
.assets-header h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: 0; }
.assets-wallet { display: flex; align-items: center; gap: 7px; color: var(--mut2); font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.assets-wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #22c55e18; }
.assets-header-actions, .assets-quick-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.assets-icon-btn, .assets-text-btn, .assets-primary-action, .assets-secondary-action {
  min-height: 34px; border: 1px solid var(--border2); border-radius: 6px; padding: 0 13px;
  color: var(--txt); background: transparent; font: inherit; cursor: pointer;
}
.assets-icon-btn { width: 34px; padding: 0; font-size: 19px; line-height: 1; }
.assets-icon-btn:hover, .assets-text-btn:hover, .assets-secondary-action:hover { border-color: #687386; background: #ffffff08; }
.assets-primary-action { border-color: #16a34a; background: #16a34a; color: white; font-weight: 700; }
.assets-primary-action:hover { background: #15803d; }
.assets-primary-action span, .assets-secondary-action span { margin-right: 5px; font-size: 16px; }

.assets-overview {
  display: grid; grid-template-columns: minmax(310px, .9fr) minmax(460px, 1.45fr);
  border: 1px solid var(--border); background: var(--panel); border-radius: 8px; overflow: hidden;
}
.assets-total { padding: 25px 27px; border-right: 1px solid var(--border); }
.assets-label { display: block; color: var(--mut2); font-size: 12px; margin-bottom: 9px; }
.assets-total strong { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.assets-total strong small { color: var(--mut2); font-size: 13px; font-weight: 600; }
.assets-subvalue { display: block; color: var(--mut2); font-size: 12px; margin-top: 7px; }
.assets-quick-actions { margin-top: 23px; }
.assets-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.assets-metrics > div { min-width: 0; padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assets-metrics > div:nth-child(2n) { border-right: 0; }
.assets-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
.assets-metrics span { display: block; color: var(--mut2); font-size: 11px; margin-bottom: 8px; }
.assets-metrics b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assets-metrics b span { display: inline; margin: 0; color: inherit; font-size: inherit; }

.assets-distribution, .assets-main, .assets-funding {
  margin-top: 14px; border: 1px solid var(--border); background: var(--panel); border-radius: 8px;
}
.assets-funding[hidden] { display: none; }
.assets-distribution { padding: 20px 22px; }
.assets-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assets-section-heading h3, .assets-record-block h3 { margin: 0; font-size: 14px; letter-spacing: 0; }
.assets-section-heading p { margin: 5px 0 0; color: var(--mut2); font-size: 11px; }
.assets-section-heading > span { color: var(--mut2); font-size: 10px; }
.assets-allocation { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 19px; }
.assets-allocation-item { min-width: 0; }
.assets-allocation-name { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--mut2); font-size: 11px; }
.assets-allocation-name b { color: var(--txt); font-weight: 600; }
.assets-allocation-track { height: 4px; border-radius: 2px; background: #ffffff10; overflow: hidden; }
.assets-allocation-fill { height: 100%; min-width: 0; border-radius: inherit; background: #22c55e; }
.assets-allocation-item:nth-child(2) .assets-allocation-fill { background: #3b82f6; }
.assets-allocation-item:nth-child(3) .assets-allocation-fill { background: #f59e0b; }
.assets-allocation-item:nth-child(4) .assets-allocation-fill { background: #a78bfa; }
.assets-allocation-item:nth-child(5) .assets-allocation-fill { background: #06b6d4; }
.assets-risk-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--mut2); font-size: 10px; }

.assets-tabs { display: flex; gap: 24px; height: 48px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.assets-tabs button { position: relative; border: 0; background: none; color: var(--mut2); font: 600 13px/48px inherit; cursor: pointer; }
.assets-tabs button.active { color: var(--txt); }
.assets-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #22c55e; }
.assets-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; }
.assets-search { display: flex; align-items: center; gap: 7px; width: 210px; height: 32px; padding: 0 9px; border: 1px solid var(--border2); border-radius: 5px; color: var(--mut2); background: var(--bg2); }
.assets-search input { min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; }
.assets-zero-filter { display: flex; align-items: center; gap: 7px; color: var(--mut2); font-size: 11px; cursor: pointer; }
.assets-zero-filter input { width: 14px; height: 14px; margin: 0; accent-color: #22c55e; }
.assets-table-wrap { overflow-x: auto; }
.assets-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.assets-table th { padding: 11px 22px; color: var(--mut2); background: #ffffff03; font-size: 10px; font-weight: 600; text-align: right; }
.assets-table th:first-child, .assets-table td:first-child { text-align: left; }
.assets-table td { padding: 15px 22px; border-top: 1px solid var(--border); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.assets-coin { display: flex; align-items: center; gap: 10px; }
.assets-coin-icon { position:relative; display: grid; place-items: center; width: 30px; height: 30px; flex:0 0 30px; overflow:hidden; border-radius: 50%; color: #fff; background: #384152; font-size: 10px; font-weight: 800; }
.assets-coin-icon img { position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover; background:var(--panel); }
.assets-coin-fallback { line-height:1; }
.assets-coin-icon.usdt { background: #168f72; }
.assets-coin-icon.btc { background: #e98b1b; }
.assets-coin-icon.eth { background: #5368d5; }
.assets-coin b { display: block; font-size: 12px; }
.assets-coin small { display: block; margin-top: 2px; color: var(--mut2); font-size: 9px; }
.assets-row-actions { white-space: nowrap; }
.assets-row-actions button { border: 0; padding: 3px 5px; color: #60a5fa; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.assets-row-actions button:hover { color: #93c5fd; }
.assets-record-block { padding: 20px 22px; }
.assets-record-block + .assets-record-block { border-top: 1px solid var(--border); }
.assets-record-block h3 { margin-bottom: 13px; }

.assets-funding { min-height: 560px; }
.assets-funding-page-header { display:flex; align-items:center; gap:13px; min-height:72px; padding:14px 22px; border-bottom:1px solid var(--border); }
.assets-funding-page-header h2 { margin:0; font-size:18px; letter-spacing:0; }
.assets-funding-page-header p { margin:4px 0 0; color:var(--mut2); font-size:10px; }
.assets-back-button { width:34px; height:34px; border:1px solid var(--border2); border-radius:5px; color:var(--txt); background:transparent; font-size:18px; cursor:pointer; }
.assets-back-button:hover { border-color:#687386; background:#ffffff08; }
.assets-funding-pane { min-width: 0; max-width:760px; padding: 28px 22px; }
.assets-funding-pane .account-form-row { margin-top: 16px; }
.assets-funding-pane .btn { width: auto; min-width: 150px; margin: 0; }

@media (max-width: 900px) {
  .assets-overview { grid-template-columns: 1fr; }
  .assets-total { border-right: 0; border-bottom: 1px solid var(--border); }
  .assets-allocation { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .assets-header { align-items: flex-start; }
  .assets-wallet { max-width: 230px; }
  .assets-overview { border-radius: 6px; }
  .assets-total { padding: 20px 17px; }
  .assets-total strong { font-size: 26px; }
  .assets-metrics > div { padding: 16px; }
  .assets-metrics b { font-size: 13px; }
  .assets-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .assets-primary-action, .assets-secondary-action { padding: 0 7px; }
  .assets-distribution { padding: 18px 16px; }
  .assets-allocation { grid-template-columns: 1fr 1fr; gap: 15px; }
  .assets-list-tools { padding: 12px 14px; }
  .assets-search { width: 165px; }
  .assets-table { min-width: 100%; table-layout: fixed; }
  .assets-table th, .assets-table td { padding: 13px 10px; }
  .assets-table th:nth-child(4), .assets-table td:nth-child(4),
  .assets-table th:nth-child(5), .assets-table td:nth-child(5) { display: none; }
  .assets-table th:first-child { width: 30%; }
  .assets-table th:nth-child(2), .assets-table th:nth-child(3) { width: 18%; }
  .assets-table th:last-child { width: 34%; }
  .assets-row-actions { white-space: normal; }
  .assets-row-actions button { padding: 8px 12px; min-height: 38px; min-width: 52px; font-size: 12px; }
  .assets-tabs { padding: 0 16px; }
  .assets-funding-pane { padding: 18px 16px; }
  .assets-funding-page-header { padding:12px 16px; }
  .assets-funding-pane .account-form-row { grid-template-columns: 1fr; }
  .assets-record-block { padding: 18px 14px; }
}
