/* Console system: thin rules for structure, one accent for intent. */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --background: 14, 15, 18;
  --background-2: 19, 20, 24;
  --background-3: 28, 30, 36;
  --stroke: 42, 44, 51;
  --text: 244, 245, 249;
  --text-2: 188, 191, 204;
  --text-3: 145, 149, 165;
  --primary: 168, 181, 255;
  --green: 104, 211, 165;
  --red: 255, 132, 155;
  --yellow: 229, 186, 113;
  --amber: var(--yellow);
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(24px, 3vw, 48px);
  --radius: 4px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: rgb(var(--background)); color: rgb(var(--text)); font: 400 14px/1.55 system-ui, sans-serif; }
#app { --statusbar-height: 32px; display: flex; flex-direction: column; height: 100%; min-height: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 2px; }
::selection { background: rgb(var(--primary)); color: rgb(var(--background)); }
* { scrollbar-color: rgb(var(--stroke)) transparent; scrollbar-width: thin; }
.muted { color: rgb(var(--text-3)); }
.nowrap { white-space: nowrap; }
.address { font: 400 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.eyebrow, .field > label, .metric-strip dt, table.grid th {
  margin: 0; color: rgb(var(--text-3)); font: 600 10px/1.45 system-ui, sans-serif;
  letter-spacing: .115em; text-transform: uppercase;
}

/* Persistent workspace rail and top/foot chrome */
.shell { flex: 1; min-height: 0; display: flex; margin-bottom: var(--statusbar-height); }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); display: flex; flex-direction: column;
  border-right: 1px solid rgb(var(--stroke));
}
.main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar {
  min-height: 53px; padding: 0 var(--gutter); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; border-bottom: 1px solid rgb(var(--stroke)); flex: none;
}
.breadcrumb { display: flex; gap: 10px; min-width: 0; align-items: baseline; color: rgb(var(--text-3)); font-size: 12px; }
.breadcrumb b { color: rgb(var(--text-2)); font-weight: 500; }
.topbar .right { flex: none; display: flex; align-items: center; gap: 10px; }
.statusbar {
  position: fixed; inset: auto 0 0; z-index: 10; height: var(--statusbar-height);
  display: grid; align-items: center; grid-template-columns: 28.6% minmax(max-content, 1fr) max-content;
  padding: 0 8px 2px; background: #101114; color: #787a8d;
  font: 400 12px/1 Aeonik, Arial, Helvetica, sans-serif;
  white-space: nowrap; overflow: auto hidden; scrollbar-width: none;
}

.statusbar :is(.status-group, .status-market, .chip, .service) { display: flex; align-items: center; }
.statusbar .sep { height: 16px; flex: 0 0 1px; background: #22242a; }
.statusbar .service { gap: 10px; padding-right: 2px; min-width: 180px; font-variant-numeric: tabular-nums; }
.statusbar .service i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.statusbar .service.live { color: #25d29b; }
.statusbar .service.offline { color: rgb(var(--red)); }
.statusbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 22px; padding: 0 8px; border: 0; border-radius: 4px; background-color: transparent;
  transition: background-color 140ms ease, color 140ms ease;
}
.statusbar button svg { width: 14px; height: 14px; flex: none; }
.statusbar button:is(:hover, :focus-visible) { background-color: #22242e; color: #fcfcfc; }
.statusbar button:focus-visible { outline-offset: -2px; }
.statusbar > .status-group:first-child { gap: 6px; }
.statusbar > .status-group:first-child button { width: 58px; }
.status-market { gap: 16px; }
.statusbar .market-overview { width: 154px; height: 24px; gap: 8px; border: 1px solid #22242a; border-radius: 100px; color: #c7c8d1; }
.market-mark { display: flex; flex: none; align-items: center; padding-left: 1px; }
.market-mark i { position: relative; display: grid; place-items: center; width: 17px; height: 17px; margin-left: -5px; border: 1px solid #282931; border-radius: 50%; background: #17191f; }
.market-mark i:first-child { z-index: 2; }
.market-mark i:first-child::before { content: ''; width: 7px; height: 12px; border-radius: 8px; transform: rotate(40deg); background: linear-gradient(#eaffef 50%, #42cc8c 50%); }
.market-mark i:nth-child(2) { z-index: 1; background: radial-gradient(ellipse at 54% 59%, #fff0b8 0 16%, transparent 18%), radial-gradient(ellipse at 52% 61%, #e99743 0 43%, transparent 45%), #d15326; }
.market-mark i:last-child::before { content: ''; width: 9px; height: 11px; border: 3px solid #18d467; border-radius: 60% 40% 55% 45%; transform: rotate(-25deg); }
.statusbar .chip { gap: 6px; min-width: 66px; color: #fcfcfc; font-variant-numeric: tabular-nums; }
.statusbar .chip b { font-weight: 500; }
.status-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.statusbar .ticker-icon { width: 14px; height: 14px; flex: none; }
.statusbar .ticker-icon.sol { height: 12px; background: linear-gradient(145deg, #60f3c9, #a44df0); clip-path: polygon(15% 0,100% 0,85% 22%,0 22%,15% 0,0 39%,85% 39%,100% 61%,15% 61%,0 39%,15% 78%,100% 78%,85% 100%,0 100%,15% 78%); }
.ticker-icon.bnb { background: #f4b927; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%,50% 0,50% 16%,15% 34%,15% 66%,43% 81%,43% 54%,23% 43%,30% 31%,50% 43%,70% 31%,77% 43%,57% 54%,57% 81%,85% 66%,85% 34%,50% 16%); }
.ticker-icon.eth { background: linear-gradient(90deg, #8b97b8 50%, #515b78 50%); clip-path: polygon(50% 0,84% 58%,50% 74%,16% 58%,50% 0,16% 64%,50% 81%,84% 64%,50% 100%,16% 64%); }
.ticker-trend { width: 7px; height: 7px; flex: none; background: currentColor; clip-path: polygon(17% 6%,94% 6%,94% 83%,74% 83%,74% 40%,14% 100%,0 86%,60% 26%,17% 26%); }
.ticker-trend.up { color: #25d29b; }
.ticker-trend.down { color: #ff608d; transform: scaleY(-1); }
.status-links { gap: 5px; }
.status-links button { padding-inline: 8.5px; }
.status-links button[aria-label] { width: 25px; padding: 0; }
.statusbar .status-settings { margin-left: 7px; background-color: #18191e; }
.statusbar .status-settings:is(:hover, :focus-visible) { background-color: #22242e; }
.status-settings svg { order: 1; }
@media (max-width: 1240px) {
  .statusbar { grid-template-columns: max-content max-content max-content; justify-content: space-between; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .statusbar button { transition: none; }
}
.grow { flex: 1; }

/* Work areas, steps and contextual panels */
.page-head { padding: 28px var(--gutter) 22px; }
.page-head h1 { margin: 6px 0 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.05em; font-weight: 550; overflow-wrap: anywhere; }
.page-summary { color: rgb(var(--text-2)); margin: 9px 0 0; max-width: 64ch; text-wrap: pretty; }
.toolbar {
  min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 8px var(--gutter); border-block: 1px solid rgb(var(--stroke));
}
.toolbar .address { max-width: 100%; }
.toolbar input, .toolbar select { max-width: 100%; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 24px var(--gutter) 40px; }
.content.flush { padding: 0; overflow: hidden; }
.content.center { display: grid; place-items: center; }
.tabs { flex: none; display: flex; overflow-x: auto; padding-inline: var(--gutter); gap: 24px; border-bottom: 1px solid rgb(var(--stroke)); }
.tab {
  display: inline-flex; gap: 9px; align-items: center; min-height: 47px; padding: 0 2px;
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: rgb(var(--text-3));
  white-space: nowrap; font-size: 12px; font-weight: 600;
}
.tab:hover { color: rgb(var(--text)); }
.tab.on { border-color: rgb(var(--primary)); color: rgb(var(--text)); }
.tab:focus-visible { outline-offset: -3px; }
.step-num { font: 400 10px var(--mono); }
.tab.on .step-num { color: rgb(var(--primary)); }
.panel-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(275px, 25vw, 360px);
  height: 100%; min-height: 0;
}
.panel-main, .panel-side { min-width: 0; min-height: 0; overflow: auto; }
.panel-main { padding: 30px var(--gutter) 32px; }
.panel-side {
  padding: 30px 22px; display: flex; flex-direction: column; gap: 18px;
  background: rgb(var(--background-2)); border-left: 1px solid rgb(var(--stroke));
}
.panel-side > * { flex: none; }
.wizard-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.wizard-body { flex: 1; min-height: 0; overflow: auto; padding: 30px var(--gutter) 24px; }
.wizard-body > .page-head { padding: 0; margin-bottom: 26px; }

.panel-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid rgb(var(--stroke));
  display: flex; gap: 8px; justify-content: flex-end; background: rgb(var(--background));
}
.wizard-panel > .panel-foot { flex: none; margin: 0; padding: 12px var(--gutter); }
.wizard-section { margin-bottom: 27px; }
.wizard-section > .eyebrow { margin-bottom: 10px; }
.context-metrics { margin: 0; }
.context-metrics > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgb(var(--stroke)); padding: 11px 0; }
.context-metrics dt { color: rgb(var(--text-3)); font-size: 12px; }
.context-metrics dd { text-align: right; min-width: 0; overflow-wrap: anywhere; font-size: 13px; margin: 0; }
.context-metrics small { color: rgb(var(--text-3)); font-size: 10px; }
.context-img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.context-caption { font-size: 13px; margin: 0; }
.settings-layout { align-items: start; gap: 30px; }

/* Reusable controls and content */
.btn, .act, .iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 12px; border-radius: var(--radius); border: 1px solid rgb(var(--stroke));
  background: transparent; color: rgb(var(--text-2)); font-size: 13px; font-weight: 550; white-space: nowrap;
}
.btn:hover, .act:hover, .iconbtn:hover { background: rgb(var(--background-3)); color: rgb(var(--text)); }
.btn.primary { color: rgb(var(--background)); background: rgb(var(--primary)); border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: #c1caff; }
.btn.danger { color: rgb(var(--red)); }
.btn.sm { min-height: 31px; padding: 0 9px; font-size: 12px; }
.btn.wide { width: 100%; }
.act, .iconbtn { border-color: transparent; }
.act { min-height: 31px; color: rgb(var(--primary)); padding-inline: 8px; font-size: 12px; }
.act.dim, .iconbtn { color: rgb(var(--text-3)); }
.iconbtn { width: 34px; min-height: 34px; padding: 0; }
.iconbtn svg { width: 17px; height: 17px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; color: rgb(var(--text-3));
  font: 400 10px/1.2 var(--mono); white-space: nowrap; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 6px; border-radius: 3px; background: rgba(var(--text-3), .09);
}
.tag.new { color: rgb(var(--primary)); background: rgba(var(--primary), .1); }
.tag.ok { color: rgb(var(--green)); background: rgba(var(--green), .08); }
.tag.err { color: rgb(var(--red)); background: rgba(var(--red), .09); }
.tag.warn { color: rgb(var(--yellow)); background: rgba(var(--yellow), .09); }
.card { min-width: 0; border-top: 1px solid rgb(var(--stroke)); }
.card-h, .section-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-b { padding: 0 0 8px; overflow-wrap: anywhere; }
.card-b .card-b { padding-top: 12px; }
.split2, .split3 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.rowflex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile {
  min-width: 0; padding: 13px 12px; border: 0; border-bottom: 1px solid rgb(var(--stroke));
  background: transparent; text-align: left; font-size: 13px;
}
.tile:hover { background: rgb(var(--background-3)); }
.tile.on { border-color: rgba(var(--primary), .55); background: rgba(var(--primary), .08); color: rgb(var(--primary)); }
.tile .t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tile .m { color: rgb(var(--text-3)); margin-top: 3px; font-size: 11px; }
.tile .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tile:not(.on) .dot { color: rgb(var(--text-3)); }
.empty { text-align: center; padding: clamp(48px, 10vh, 104px) 16px; border-top: 1px solid rgb(var(--stroke)); }
.empty h3 { margin: 0 0 8px; font-weight: 550; font-size: 22px; letter-spacing: -.035em; }
.empty p { margin: 0 auto; max-width: 52ch; color: rgb(var(--text-3)); }
.empty .rowflex { justify-content: center; }
.empty > .rowflex, .empty > .btn, .empty > .tag { margin-top: 16px; }
.sectionHead { display: flex; gap: 8px; align-items: baseline; margin-bottom: 14px; }
.sectionHead h2 { margin: 0; font-size: 16px; }
.sectionHead .count { font-size: 12px; color: rgb(var(--text-3)); }

/* Tables and stats */
.table-scroll { overflow-x: auto; max-width: 100%; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 9px 10px; border-bottom: 1px solid rgb(var(--stroke)); text-align: left; white-space: nowrap; }
table.grid :is(th, td):first-child { padding-left: 0; }
table.grid :is(th, td):last-child { padding-right: 0; }
table.grid th { border-top: 1px solid rgb(var(--stroke)); }
table.grid td { height: 41px; }
table.grid tbody tr:hover { background: rgba(var(--background-3), .55); }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tr.total td { font-weight: 600; border-bottom: 0; }
.panel-side table.grid th, .panel-side table.grid td { padding-inline: 4px; }
.panel-side [data-leg-amt] { max-width: 68px; min-height: 30px; }
.metric-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 0 28px; border-block: 1px solid rgb(var(--stroke)); }
.metric-strip > div { min-width: 0; padding: 14px 16px; }
.metric-strip > div + div { border-left: 1px solid rgb(var(--stroke)); }
.metric-strip dd { font-size: clamp(19px, 2.5vw, 33px); font-weight: 550; letter-spacing: -.045em; margin: 3px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-strip small { font-size: 12px; letter-spacing: 0; color: rgb(var(--text-3)); }
.metric-strip .metric-note { font-size: 12px; font-weight: 400; letter-spacing: 0; color: rgb(var(--text-3)); }
.wallet-metrics { max-width: 500px; }
.bars { display: flex; align-items: flex-end; gap: 10px; min-height: 120px; height: 160px; border-bottom: 1px solid rgb(var(--stroke)); overflow-x: auto; }
.bar { flex: 0 0 42px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: center; }
.bar span { display: block; background: rgba(var(--primary), .55); min-height: 2px; max-height: calc(100% - 24px); }
.bar:hover span { background: rgb(var(--primary)); }
.bar em { font: 400 10px/1.5 var(--mono); font-style: normal; color: rgb(var(--text-3)); margin-bottom: 4px; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 10px 0; border-bottom: 1px solid rgb(var(--stroke)); overflow-wrap: anywhere; }
.event-list time { color: rgb(var(--text-3)); font: 400 10px var(--mono); }
.event-list strong { display: block; font-size: 13px; font-weight: 550; }
.event-list p { margin: 2px 0 0; color: rgb(var(--text-3)); font-size: 11px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.field .hint { font-size: 11px; color: rgb(var(--text-3)); }
input:not([type=range], [type=checkbox], [type=radio]), select, textarea {
  min-height: 37px; padding: 0 10px; border-radius: var(--radius); min-width: 0; width: 100%;
  background: rgb(var(--background-2)); border: 1px solid rgb(var(--stroke)); font-size: 13px;
}
.searchbox input { border: 0; background: transparent; padding: 0; min-height: 30px; font-size: 12px; }
input:not([type=range]):focus, select:focus, textarea:focus { border-color: rgba(var(--primary), .85); }
input::placeholder { color: rgb(var(--text-3)); }
textarea { padding-block: 8px; resize: vertical; }
input[type=file] { padding: 5px 7px; color: rgb(var(--text-3)); }
input[type=file]::file-selector-button { font: inherit; margin-right: 8px; padding: 2px 6px; cursor: pointer; border: 0; border-radius: 3px; background: rgb(var(--background-3)); color: rgb(var(--text)); }
input[type=range] { width: 100%; accent-color: rgb(var(--primary)); margin-inline: 0; }
.segmented { display: flex; gap: 0; border-bottom: 1px solid rgb(var(--stroke)); }
.segmented button { flex: 1; min-width: 0; min-height: 38px; padding: 5px 7px; border: 0; border-bottom: 2px solid transparent; background: none; color: rgb(var(--text-3)); font-size: 12px; }
.segmented button:hover { color: rgb(var(--text)); background: rgba(var(--primary), .06); }
.segmented button.on { color: rgb(var(--primary)); border-color: rgb(var(--primary)); }
.callout { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; background: rgba(var(--primary), .06); font-size: 12px; color: rgb(var(--text-2)); }
.callout > span { color: rgb(var(--primary)); font: 400 12px var(--mono); }
.callout b { color: rgb(var(--text)); font-weight: 600; }

/* Auth and overlays */
.authwrap { flex: 1; display: grid; place-items: center; padding: 24px; overflow: auto; }
.auth { width: min(100%, 390px); display: flex; flex-direction: column; gap: 12px; }
.auth .logo { color: rgb(var(--primary)); font: 400 16px/1.5 var(--mono); }
.auth h1 { margin: 0; font-weight: 550; font-size: 34px; line-height: 1.1; letter-spacing: -.05em; }
.auth p { margin: 0 0 12px; color: rgb(var(--text-3)); }
.auth .divider, .auth .foot { color: rgb(var(--text-3)); font-size: 11px; }
.auth .divider { letter-spacing: .1em; margin-top: 6px; }
.auth .err { color: rgb(var(--red)); font-size: 12px; min-height: 1em; }
.auth .foot a:hover { color: rgb(var(--primary)); }
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 7, 9, .78); }
.modal { width: 440px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid rgb(var(--stroke)); border-radius: var(--radius); background: rgb(var(--background-2)); }
.modal-h, .modal-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--stroke)); font-weight: 600; }
.modal-b { padding: 16px; }
.modal-f { justify-content: flex-end; border: 0; border-top: 1px solid rgb(var(--stroke)); }
.toasts { position: fixed; bottom: 44px; right: 14px; z-index: 40; display: grid; gap: 8px; }
.toast { max-width: min(380px, calc(100vw - 28px)); padding: 9px 13px; border: 1px solid rgb(var(--stroke)); border-radius: var(--radius); background: rgb(var(--background-3)); font-size: 12px; overflow-wrap: anywhere; }
.toast.ok { border-color: rgba(var(--green), .45); }
.toast.err { border-color: rgba(var(--red), .5); }

@media (max-width: 1000px) {
  :root { --gutter: 22px; }
}
@media (max-width: 740px) {
  :root { --gutter: 16px; }
  .main { overflow: auto; }
  .content { flex: 1 0 auto; overflow: visible; }
  .content.flush { overflow: visible; }
  .panel-grid { display: block; height: auto; }
  .panel-main, .panel-side { overflow: visible; padding: 22px var(--gutter); }
  .panel-side { border: 0; border-top: 1px solid rgb(var(--stroke)); }
  .wizard-panel { padding: 0; }
  .wizard-body { overflow: visible; padding-top: 22px; }
  .tabs { gap: 15px; }
  .step-num { display: none; }
  .page-head { padding-top: 20px; }
  .topbar .breadcrumb span { display: none; }
  .split3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .split2 { grid-template-columns: minmax(0, 1fr); }
  .tile { padding-inline: 4px; }
  .tile .t { font-size: 12px; }
  .metric-strip > div { padding-inline: 7px; }
}

/* /app dashboard (rendered by viewDashboard in app.js). */
.dashboard {
  --dash-surface: #18181f;
  --dash-raised: #22242d;
  --dash-rule: #22242d;
  --dash-control-height: 30px;
  padding: 22px 35px 32px 45px;
  line-height: 1.25;
}
.dash-banner {
  height: 188px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 142% at 72% 17%, #9964d7 0%, #7254c05e 50%, transparent 82%),
    radial-gradient(ellipse 52% 145% at 34% 88%, #3679c1 0%, #3875b548 59%, transparent 87%),
    linear-gradient(163deg, #2b226c 4%, #3e4893 56%, #1f4c87 98%);
}
.dash-banner svg { position: absolute; width: 160px; height: 160px; right: 73px; top: 13px; opacity: .12; transform: rotate(-4deg); }
.dash-profile { display: flex; align-items: center; gap: 14px; padding-left: 12px; height: 65px; }
.dash-avatar {
  display: grid; place-items: center; flex: none; position: relative;
  width: 76px; height: 76px; margin-top: -12px; border-radius: 50%;
  border: 3px solid rgb(var(--background));
  background: radial-gradient(ellipse at 70% 12%, #9761d5, transparent 61%), linear-gradient(155deg, #342579, #245dae);
}
.dash-avatar svg { width: 36px; height: 36px; }
.dash-identity { min-width: 0; color: rgb(var(--text-3)); overflow-wrap: anywhere; }
.dash-identity h1 { color: rgb(var(--text-2)); font-size: 16px; margin: 0; font-weight: 500; }
.dash-profile-actions { margin-left: auto; display: flex; gap: 10px; }
.dashboard button {
  min-height: var(--dash-control-height); border-radius: var(--radius);
  font-weight: 500;
}
.dashboard button:not(.btn, .iconbtn) {
  border: 0; background-color: transparent; color: rgb(var(--text-3));
}
.dashboard button:not(.btn):is([aria-pressed=true], :hover),
.dashboard .dash-launch-link:not(.btn) { color: rgb(var(--text)); }
.dashboard .btn {
  gap: 6px; color: rgb(var(--text)); background-color: var(--dash-surface);
  border-color: var(--dash-rule); font-size: 12px; padding-inline: 12px;
}
.dashboard .btn.primary { background-color: rgb(var(--primary)); color: rgb(var(--background)); border-color: transparent; font-weight: 500; }
.dashboard .btn:hover, .dashboard .iconbtn:hover { background-color: var(--dash-raised); }
.dashboard .btn.primary:hover { background-color: #9aabff; }
.dashboard .btn svg, .dashboard .iconbtn svg { width: 14px; height: 14px; }
.dashboard .iconbtn { width: 30px; }
.dash-pnl { min-height: 112px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-label { font-size: 12px; color: rgb(var(--text-2)); }
.dash-label span, .dash-sub { color: rgb(var(--text-3)); font-size: 12px; }
.dash-amount {
  margin-block: 6px 9px; color: rgb(var(--primary));
  font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.dash-amount small, .dash-stats dd small { font-size: 14px; letter-spacing: 0; }
.dash-pnl-actions, .dash-ranges { display: flex; gap: 8px; align-items: center; }
.dash-pnl-actions .btn { min-width: 123px; }
.dash-ranges { gap: 2px; background: var(--dash-surface); border-radius: 8px; padding: 2px; }
.dashboard .dash-ranges button {
  min-height: calc(var(--dash-control-height) - 6px);
  padding-inline: 7.5px; font-size: 12px; white-space: nowrap;
}
.dashboard :is(.dash-ranges, .dash-chart-tools) button:is([aria-pressed=true], :hover) { background-color: var(--dash-raised); }
.dashboard :is(.dash-ranges, .dash-chart-tools) button[aria-pressed=true]:hover { background-color: #2b2e39; }
.dash-chart { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; height: 338px; }
.dash-chart-tools {
  align-self: center; transform: translateY(-24px);
  display: grid; gap: 3px; padding: 3px; border: 1px solid var(--dash-rule); border-radius: 99px;
}
.dashboard .dash-chart-tools button { width: 30px; min-height: 29px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.dash-chart-tools svg { width: 13px; height: 13px; }
.dash-chart-data { position: relative; height: 72%; display: grid; place-items: center; min-width: 0; }
.dash-plot { color: rgb(var(--primary)); position: absolute; inset: 0; width: 100%; height: 100%; }
.dash-plot polyline { stroke-opacity: .7; }
.dash-plot stop:first-child { stop-color: rgb(var(--primary)); stop-opacity: .24; }
.dash-chart-note { align-self: end; color: rgb(var(--text-3)); font-size: 11px; }
.dash-breakdown { width: min(100%, 460px); max-height: 100%; overflow: auto; }
.dash-breakdown > div { display: grid; grid-template-columns: 100px 1fr 32px; align-items: center; gap: 12px; margin-block: 7px; }
.dash-breakdown meter { width: 100%; }
.dash-stats {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr; text-align: center;
  place-items: center stretch; min-height: 122px; border-block: 1px solid var(--dash-rule);
}
.dash-stats div + div { border-left: 1px solid var(--dash-rule); }
.dash-stats dt { color: rgb(var(--text-3)); font-size: 12px; }
.dash-stats dd { margin: 4px 0 0; font-weight: 600; font-size: 36px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dash-table-tabs { display: flex; gap: 8px; align-items: center; margin-top: 36px; margin-bottom: 7px; }
.dash-table-tabs button { padding: 0 4px; }
.dash-table-tabs button:first-child { margin-left: -4px; }
.dashboard .dash-table-tabs button:hover { background-color: var(--dash-surface); }
.dash-table-tabs span { width: 1px; height: 12px; background: var(--dash-rule); }
.dash-table-tabs #refresh { margin-left: auto; }
.dash-table { border: 1px solid var(--dash-rule); border-radius: 19px; }
.dash-table table.grid th {
  height: 45px; border-top: 0; background: var(--dash-surface);
  font: 500 11px Aeonik, Arial, Helvetica, sans-serif; letter-spacing: 0;
}
.dash-table table.grid td { height: 49px; }
.dash-table table.grid :is(th, td):first-child { padding-left: 12px; width: 23%; }
.dash-table table.grid :is(th, td):last-child { padding-right: 18px; }
.dash-table table.grid th:nth-child(2) { width: 17%; }
.dash-table table.grid tr:last-child td { border-bottom: 0; }
.dash-table table.grid tr:has([data-open]):is(:hover, :focus-within) { background-color: var(--dash-surface); }
.dash-table table.grid tr:not(:has([data-open])):hover { background-color: transparent; }
.dash-launch-link, .dash-launchpad { display: inline-flex; align-items: center; gap: 8px; }
.dashboard .dash-launch-link:not(.btn) { min-height: 30px; padding: 0 3px 0 0; }
.dash-launch-link small { color: rgb(var(--text-3)); }

@media (max-width: 1120px) {
  .dashboard { padding-inline: 22px; }
}
@media (max-width: 850px) {
  .dash-pnl, .dash-profile-actions { flex-wrap: wrap; }
  .dash-chart { height: 260px; }
}
@media (max-width: 620px) {
  .dashboard { padding-inline: 10px; }
  .dash-banner { height: 110px; }
  .dash-banner svg { width: 110px; height: 110px; right: 8px; }
  .dash-profile { height: auto; min-height: 65px; padding-left: 2px; gap: 6px; flex-wrap: wrap; }
  .dash-avatar { width: 50px; height: 50px; }
  .dash-avatar svg { width: 26px; height: 26px; }
  .dash-profile-actions { margin-left: 0; gap: 3px; }
  .dash-pnl-actions, .dash-ranges { flex-wrap: wrap; }
  .dash-amount, .dash-stats dd { font-size: 25px; }
}
