[hidden] { display: none !important; }
body.ready .card.in { animation: none; }
.top nav button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--mute); }
.top .av { cursor: pointer; }
.top .ap:disabled { cursor: default; opacity: .65; }
.live-section { margin-top: 14px; }
.live-alert { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); color: var(--text); }
.dashboard-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dashboard-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}
.top .dashboard-account { min-width: 0; max-width: 235px; }
.dashboard-account select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.dashboard-account:focus-within { border-color: var(--lime); }
.dashboard-tools .btn { padding-block: 5px; min-height: 30px; }
.dashboard-freshness { display: flex; gap: 7px; font-size: 10px; text-transform: uppercase; color: var(--mute); }
.dashboard-freshness b { color: var(--text); }
#connections { scroll-margin-top: 110px; }
.conn .dashboard-action { padding-block: 12px; }
.dashboard-action-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.conn .dashboard-action-buttons:not(:empty), .conn .rm { margin-top: 6px; }
.conn .dashboard-action-buttons:not(:has(button:not([hidden]))), .conn .rm:not(:has(button:not([hidden]))) { display: none; }
.conn .btn { padding: 5px 8px; min-height: 32px; font-size: 10px; white-space: normal; }
.conn .wallet-action { color: var(--lime); }
#exchangeManagement {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 18px;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 16px;
}
#exchangeManagement::backdrop { background: #07050cc4; }
.management-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 0 2px 14px; }
.management-heading h2 { font-size: 20px; }
.management-heading p { color: var(--mute); margin-top: 4px; overflow-wrap: anywhere; }
.management-section { border-top: 1px solid var(--line2); padding: 12px 2px 8px; }
.management-section h3 { font-size: 15px; margin-bottom: 5px; }
.management-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 7px 10px; padding: 6px 0; }
.management-row p { flex: 1 1 210px; color: var(--mute); font-size: 11px; }
.management-row .btn { min-height: 40px; }
.management-row .trading-action[data-danger] { color: var(--down); }
.management-row .btn:disabled { opacity: .55; cursor: default; }
.conn .rm button { min-height: 34px; }
.kpi small:empty { display: none; }
.kpi .mini i { flex: 0 1 calc((100% - 39px) / 14); }
.stat-reveal { animation: stat-line-reveal 1.6s var(--ease) both; }
@keyframes stat-line-reveal { from { stroke-dashoffset: var(--draw-length); } to { stroke-dashoffset: 0; } }
@media (min-width: 701px) and (max-width: 1100px) {
  #gaugeCard, #activity { grid-column: span 6; }
}
.network-legend { justify-content: center; margin-top: 4px; }
.network-legend span::before { content: ''; display: inline-block; margin-right: 6px; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--dim); }
.network-legend span:first-child::before { background: var(--gain); }
.network-legend span:nth-child(2)::before { background: var(--down); }
.live-chart-note { margin: 12px 0 0; text-transform: none; letter-spacing: 0; }
#gaugeCard > .k { align-self: flex-start; }
#gauge path { fill: none; stroke: var(--line2); stroke-width: 9; stroke-linecap: round; }
#gauge path + path { stroke: var(--lime); }
#gaugeValue.dn { color: var(--down); }
#activityFilter { margin-left: auto; }
#activity { scroll-margin-top: 110px; }
#sceneActivity { margin-top: 8px; }
[data-live="accountStatus"][hidden] + #sceneActivity { margin-top: 0; }
#sceneActivity a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
#sceneActivity ul { display: grid; gap: 3px; padding: 0; margin: 5px 0 0; list-style: none; }
#sceneActivity li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 9px; justify-content: space-between; font-size: 11px; }
#sceneActivity li .entry { color: var(--lime); }
#sceneActivity time { color: var(--mute); white-space: nowrap; font-size: 10px; }
#perfEmpty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
#perfTip { pointer-events: none; }
#perf svg:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
#perf svg .day-range { fill: var(--lime); fill-opacity: .13; }
.days { grid-template-columns: repeat(17, minmax(0, 1fr)); }
.day { min-width: 0; }
.dstats .num { overflow: hidden; text-overflow: ellipsis; }
.brain-countdown { font-variant-numeric: tabular-nums; }
.bc circle { fill: none; stroke: var(--line2); stroke-width: 2; }
.bc circle + circle { stroke: var(--lime); stroke-linecap: round; }
#positionEmpty, #radarEmpty { padding: 14px; }
#ob .r { min-height: 18px; }
#mchart canvas { display: block; width: 100%; height: 100%; }
.live-table { overflow-x: auto; }
.foot [data-live] { display: block; margin: 6px 0; }
#report iframe { display: block; width: 100%; height: 78dvh; border: 0; }
.account-dropdown { position: relative; flex: none; }
#accountActions {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(300px, calc(100vw - 28px));
  max-height: min(560px, calc(100dvh - 62px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 12px 32px #07050cb3;
}
.profile-heading { padding: 8px 10px 10px; }
.profile-heading strong { font: 700 16px var(--ws); }
#profileIdentity { margin: 3px 0 0; color: var(--mute); overflow-wrap: anywhere; }
.profile-group { border-top: 1px solid var(--line2); padding: 5px 0; }
.profile-group > h2, .profile-group-heading { padding: 4px 10px; }
.profile-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.profile-group :is(a, button) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  text-align: left;
  font-size: 12px;
  border: 0;
  border-radius: 8px;
  background: none;
}
.profile-group :is(a,button):hover { background: var(--line); }
.profile-group :is(a,button):focus-visible, #accountMenu:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
@media (max-width: 700px) {
  .top .wrap { flex-wrap: wrap; gap: 6px 8px; height: auto; min-height: 62px; padding-block: 8px; }
  .top .dashboard-account { display: flex; order: 1; flex-basis: 100%; max-width: none; }
  .dashboard-tools { gap: 6px 10px; }
  .profile-group :is(a,button) { min-height: 44px; }
  .live-table table { min-width: 480px; }
}
