:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --line: #d8e0e8;
  --line-strong: #bfd0dc;
  --text: #102033;
  --muted: #607081;
  --soft: #eaf0f5;
  --accent: #118f5a;
  --accent-strong: #0e6f46;
  --accent-soft: #dff3ea;
  --blue: #1f6feb;
  --blue-soft: #e8f1ff;
  --amber: #b67b00;
  --amber-soft: #fff1d6;
  --danger: #c03a32;
  --danger-soft: #fde8e6;
  --shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.12) 0%, rgba(31, 111, 235, 0) 34%),
    radial-gradient(circle at bottom right, rgba(17, 143, 90, 0.12) 0%, rgba(17, 143, 90, 0) 30%),
    linear-gradient(180deg, #f3f6f9 0%, #eaf0f5 100%);
}

.login-panel {
  width: min(460px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  border: 1px solid #d7e1eb;
  border-radius: 20px;
  box-shadow: 0 24px 50px rgba(16, 32, 51, 0.12);
  padding: 30px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid #cadcff;
  background: #edf4ff;
  color: #154ea8;
  font-size: 12px;
  font-weight: 700;
}

.login-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-subtitle {
  margin: 10px 0 18px;
  color: #576b7f;
  font-size: 14px;
  line-height: 1.6;
}

.login-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.login-grid {
  display: grid;
  gap: 14px;
}

.login-error {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f4;
  border: 1px solid #f0c5c1;
  color: #a03b3b;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row.one {
  grid-template-columns: minmax(0, 1fr);
}

.field-row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-row.with-top-gap {
  margin-top: 12px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  border-color: #9eb0bf;
  background: #f8fbfd;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  color: var(--danger);
  border-color: #e3b4b1;
  background: var(--danger-soft);
}

.btn.danger:hover {
  border-color: var(--danger);
}

.btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.status-line {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

.status-line.success {
  color: #0b6a43;
}

.status-line.error {
  color: var(--danger);
}

.status-line.full-span {
  grid-column: 1 / -1;
}

.sync-all-status {
  margin: -4px 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sync-all-status.running {
  color: #8a5d00;
  background: var(--amber-soft);
  border-color: #ffe0a6;
}

.sync-all-status.success {
  color: #0b6a43;
  background: var(--accent-soft);
  border-color: #bde5cf;
}

.sync-all-status.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #e3b4b1;
}

.sync-all-failures {
  margin: -6px 0 16px;
  border: 1px solid #e3b4b1;
  border-radius: var(--radius);
  background: #fff8f7;
}

.sync-all-failures summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #8f3434;
}

.sync-all-failures-body {
  padding: 0 14px 12px;
}

.sync-all-failure-item {
  font-size: 13px;
  line-height: 1.5;
  color: #8f3434;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px;
}

.shell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shell-heading {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.shell-eyebrow {
  color: #58708a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.shell-note {
  color: var(--muted);
  font-size: 14px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-heading {
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.pill.green {
  background: var(--accent-soft);
  border-color: #bde5cf;
  color: #0b6a43;
}

.pill.blue {
  background: var(--blue-soft);
  border-color: #cadcff;
  color: #154ea8;
}

.pill.amber {
  background: var(--amber-soft);
  border-color: #ffe0a6;
  color: #8a5d00;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.history-summary-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.9) 100%);
  border: 1px solid #dde6ee;
  border-radius: 16px;
  padding: 11px 14px;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.03);
  min-width: 0;
  opacity: 0.88;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.metric .value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.metric .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.metric-primary {
  border-color: #d4e1f2;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  opacity: 0.96;
}

.history-metric {
  position: relative;
}

.history-metric.featured {
  border-color: #d5e0ea;
  border-radius: 16px;
  padding: 16px;
}

.history-metric.featured .label {
  font-size: 13px;
  font-weight: 700;
}

.history-metric.featured .value {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.history-metric.featured.tone-primary {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  border-color: #cfe0f5;
}

.history-metric.featured.tone-positive {
  background: linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 100%);
  border-color: #cae8d6;
}

.history-metric.featured.tone-amber {
  background: linear-gradient(180deg, #fffaf0 0%, #fff5df 100%);
  border-color: #f0ddaa;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.view-tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.view-tab:hover {
  background: var(--panel-alt);
}

.view-tab.active {
  background: var(--text);
  color: #fff;
}

.page-view {
  display: grid;
  gap: 16px;
}

.history-chart-wrap {
  display: grid;
  gap: 12px;
}

.history-chart {
  width: 100%;
  height: 320px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.history-chart-grid {
  stroke: #d7e2ec;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.history-chart-axis {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: end;
}

.history-chart-area {
  fill: rgba(31, 111, 235, 0.12);
}

.history-chart-line {
  fill: none;
  stroke: #1f6feb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px rgba(31, 111, 235, 0.14));
}

.history-chart-dot {
  fill: #1f6feb;
  stroke: #ffffff;
  stroke-width: 2;
}

.history-chart-dot.subtle {
  fill: #8ab4f8;
}

.history-chart-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


.dashboard-board {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.07);
}

.dashboard-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-board-head .note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: #f5f9fc;
  color: #4f6478;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-board-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-board-subtitle {
  margin-top: 8px;
  color: #62778b;
  font-size: 14px;
}

.dashboard-divider {
  margin: 18px 0 16px;
  border-top: 1px dashed #d6e2ec;
  opacity: 1;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(180px, 0.85fr)) auto;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-toolbar .field {
  gap: 0;
}

.dashboard-toolbar input,
.dashboard-toolbar select {
  min-height: 40px;
  border: 1px solid #cfdae5;
  border-radius: 10px;
  background: #fcfdff;
  font-size: 14px;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-toolbar input:focus,
.dashboard-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.dashboard-reset-btn {
  min-height: 40px;
  align-self: stretch;
  justify-self: end;
  padding: 0 16px;
}

.dashboard-surface {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.dashboard-list-panel,
.dashboard-detail-panel {
  min-width: 0;
  border: 1px solid #d8e3ed;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 18px;
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.04);
}

.dashboard-list-panel {
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  border-color: #d9e5ee;
}

.dashboard-detail-panel {
  background:
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.08) 0%, rgba(31, 111, 235, 0) 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #bfd3e5;
  box-shadow:
    0 24px 46px rgba(16, 32, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.dashboard-detail-panel::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f6feb 0%, #46a6ff 100%);
  opacity: 0.95;
}

.dashboard-detail-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dashboard-panel-head-detail {
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 0 0 14px 12px;
  border-bottom: 1px solid #dbe6f0;
}

.dashboard-panel-eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.dashboard-panel-meta {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #16324c;
}

.dashboard-panel-head-detail .dashboard-panel-meta {
  font-size: 22px;
}

.dashboard-panel-note {
  max-width: 260px;
  color: #607487;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.dashboard-sort {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.dashboard-sort label {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-sort select {
  min-width: 180px;
  min-height: 36px;
  border: 1px solid #cfdae5;
  border-radius: 10px;
  background: #fcfdff;
  padding: 0 12px;
  box-shadow: none;
}

.account-list {
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.account-list-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  padding: 14px 14px;
  background: #fbfcfe;
  line-height: 1.6;
}

.account-list-group {
  display: grid;
  gap: 6px;
}

.account-list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e1eaf2;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fafd 0%, #f1f6fa 100%);
  color: #5d7388;
  font-size: 12px;
  font-weight: 700;
}

.account-list-group-head-single {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #edf2f6;
}

.account-list-group-head-single:hover {
  background: #f8fbfe;
}

.account-list-group-head-single.active {
  border-color: rgba(31, 111, 235, 0.18);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  box-shadow: inset 3px 0 0 #1f6feb;
}

.account-list-group-head-single .account-list-group-value {
  font-size: 13px;
}

.account-list-group-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-list-group-toggle {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  position: relative;
}

.account-list-group-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.account-list-group-toggle.collapsed::before {
  transform: translate(-58%, -50%) rotate(-45deg);
}

.account-list-group-toggle:hover {
  background: rgba(96, 112, 129, 0.1);
}

.account-list-group-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.account-row {
  width: 100%;
  border: 0;
  min-height: 40px;
  border-radius: 12px;
  background: transparent;
  padding: 6px 12px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.account-row:hover {
  background: #f7fbfe;
}

.account-row.running {
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d8 100%);
}

.account-row.active {
  background: linear-gradient(180deg, #f7fbff 0%, #e9f3fe 100%);
  color: var(--text);
  box-shadow:
    inset 5px 0 0 #1f6feb,
    0 14px 28px rgba(31, 111, 235, 0.12);
  transform: translateX(2px);
}

.account-row.active .account-row-exchange {
  color: #53687d;
}

.account-row.active .account-row-value {
  color: #123452;
}

.account-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.account-row-title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-row-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
}

.account-row-exchange {
  min-width: 0;
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-row-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.account-row-status.ok {
  border-color: rgba(16, 117, 78, 0.2);
  background: rgba(219, 243, 232, 0.92);
  color: #0f6746;
}

.account-row-status.pending {
  border-color: rgba(147, 114, 26, 0.18);
  background: rgba(255, 243, 212, 0.92);
  color: #8a5d00;
}

.account-row-status.running {
  border-color: rgba(201, 138, 26, 0.24);
  background: rgba(255, 238, 194, 0.9);
  color: #8a5d00;
}

.account-row-status.error {
  border-color: rgba(152, 46, 46, 0.18);
  background: rgba(253, 231, 231, 0.92);
  color: #972f2f;
}

.account-row.active .account-row-status {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.account-row.active .account-row-status.ok {
  border-color: rgba(16, 117, 78, 0.2);
  background: rgba(219, 243, 232, 0.92);
  color: #0f6746;
}

.account-row.active .account-row-status.pending {
  border-color: rgba(147, 114, 26, 0.18);
  background: rgba(255, 243, 212, 0.92);
  color: #8a5d00;
}

.account-row.active .account-row-status.error {
  border-color: rgba(152, 46, 46, 0.18);
  background: rgba(253, 231, 231, 0.92);
  color: #972f2f;
}

.account-row-value {
  color: var(--text);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  text-align: right;
}

.account-row.active .account-row-title {
  color: #0f2742;
}

.detail-card {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-card-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: #fbfcfe;
  text-align: center;
  padding: 20px;
}

.detail-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 143, 90, 0.45);
  color: var(--accent);
  background: linear-gradient(180deg, #edf9f3 0%, #e3f5eb 100%);
  font-size: 13px;
  font-weight: 700;
}

.detail-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-card-title-wrap {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.detail-card-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-card-subtitle {
  color: #617487;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.detail-card-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #e3ebf2;
  border-radius: 14px;
  background: #f7fafd;
}

.detail-card-title-inline {
  font-size: 22px;
  line-height: 1.1;
}

.detail-card-name-edit input {
  width: min(260px, 100%);
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d8e2eb;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.detail-side-stack {
  display: grid;
  gap: 12px;
}

.detail-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-status-card {
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  padding: 12px 14px;
  min-width: 0;
}

.detail-status-label {
  color: #6b7d90;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-status-value {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-status-value.ok {
  color: #0b6a43;
}

.detail-status-value.pending {
  color: #8a5d00;
}

.detail-status-value.error {
  color: var(--danger);
}

.detail-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-card-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d4dfeb;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.05);
  font-weight: 700;
}

.detail-card-actions .btn.primary {
  background: linear-gradient(180deg, #123452 0%, #0f2742 100%);
  border-color: #163a59;
  color: #fff;
}

.detail-card-actions .btn.danger {
  background: #fff7f6;
  border-color: #edc3bf;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.detail-value-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9fe 56%, #eef5fc 100%);
  padding: 18px;
  min-width: 0;
  display: grid;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(31, 111, 235, 0.08);
}

.detail-value-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f6feb 0%, #46a6ff 62%, rgba(70, 166, 255, 0) 100%);
}

.detail-value-panel::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -30px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 166, 255, 0.2) 0%, rgba(70, 166, 255, 0.08) 42%, rgba(70, 166, 255, 0) 72%);
  pointer-events: none;
}

.detail-value-label {
  position: relative;
  z-index: 1;
  color: #58708a;
  font-size: 13px;
  font-weight: 600;
}

.detail-value-number {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.detail-value-number .unit {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.detail-value-caption {
  position: relative;
  z-index: 1;
  color: #5f7488;
  font-size: 13px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric {
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: #fcfdff;
  padding: 12px 14px;
  min-width: 0;
}

.detail-metric-label {
  color: #6b7d90;
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-metric-value {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  overflow-wrap: anywhere;
}

.detail-metric-value.ok {
  color: #0b6a43;
}

.detail-metric-value.pending {
  color: #8a5d00;
}

.detail-metric-value.error {
  color: var(--danger);
}

.detail-asset-box {
  border: 1px solid #d7e2ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  padding: 16px;
}

.detail-asset-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-asset-box-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.detail-asset-box-head span {
  color: var(--muted);
  font-size: 12px;
}

.detail-asset-list {
  display: grid;
  gap: 8px;
}

.detail-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #ffffff;
}

.detail-asset-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-asset-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}

.detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 16px;
}

.aside-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compose-section {
  border-color: #d5e0ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.section-head .note {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.section-body {
  padding: 16px;
}

.section-body + .section-body {
  border-top: 1px solid var(--soft);
}

.compose-form {
  display: grid;
  gap: 0;
}

.compose-form .field label {
  font-size: 12px;
  font-weight: 600;
  color: #627487;
}

.compose-form .field input,
.compose-form .field select {
  min-height: 42px;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  background: #fcfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.compose-form .field input::placeholder {
  color: #94a3b4;
}

.compose-form .field-row {
  gap: 14px;
}

.compose-form .field-row.with-top-gap {
  margin-top: 14px;
}

.asset-side-actions {
  align-content: start;
}

.asset-side-actions .checkbox {
  min-height: 20px;
}

.sync-price-btn {
  margin-top: 10px;
  min-height: 38px;
  justify-content: center;
  border-radius: 12px;
  border-color: #d6e0ea;
  background: #f7fbfe;
}

.compose-form .form-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef3f7;
}

.compose-form .form-foot .btn.primary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
}

.form-foot-actions {
  justify-content: flex-end;
}

.compose-form .status-line {
  color: #5f7488;
}

.asset-list-section {
  border-color: #d5e0ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.list {
  display: grid;
  gap: 12px;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.asset-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.asset-list-toolbar .field {
  flex: 1;
  gap: 0;
}

.asset-list-toolbar input {
  min-height: 40px;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  background: #fcfdff;
  padding: 0 12px;
}

.list-item {
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.035);
}

.list-item main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.list-title {
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.record-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d5e0ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 22px rgba(16, 32, 51, 0.035);
}

.record-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.record-group-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.record-group-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.record-group-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d9e3ec;
  border-radius: 999px;
  background: #f7fbfe;
  color: #5f7488;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.history-refresh-status {
  margin-bottom: 12px;
  font-size: 12px;
  color: #607487;
}

.history-refresh-status.running {
  color: #8a5d00;
}

.record-group-list {
  display: grid;
  gap: 12px;
}

.list-load-more {
  display: flex;
  justify-content: center;
}

.list-load-more .btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border-color: #d6e0ea;
  background: #f7fbfe;
  color: #4f6478;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(215, 226, 236, 0.8);
}

.tag.green {
  background: var(--accent-soft);
  color: #0b6a43;
}

.tag.blue {
  background: var(--blue-soft);
  color: #154ea8;
}

.tag.amber {
  background: var(--amber-soft);
  color: #8a5d00;
}

.tag.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.exchange-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe 0%, #f7fafc 100%);
  padding: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
  box-shadow: var(--shadow);
}

.exchange-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exchange-card-title-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.exchange-card-kicker {
  color: var(--muted);
  font-size: 12px;
}

.exchange-card-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.exchange-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.exchange-card-value-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.exchange-card-label {
  color: var(--muted);
  font-size: 12px;
}

.exchange-card-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.exchange-card-value-unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.exchange-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 10px;
}

.exchange-card-metric {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.exchange-card-metric-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.exchange-card-metric-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.exchange-card-metric-value.ok {
  color: #0b6a43;
}

.exchange-card-metric-value.pending {
  color: #8a5d00;
}

.exchange-card-metric-value.error {
  color: var(--danger);
}

.exchange-card-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.exchange-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.exchange-card-status.ok {
  background: var(--accent-soft);
  color: #0b6a43;
}

.exchange-card-status.pending {
  background: var(--amber-soft);
  color: #8a5d00;
}

.exchange-card-status.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.exchange-card-detail-text {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.exchange-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
  background: #fbfdff;
  color: #647688;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.exchange-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--soft);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  min-width: 0;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #fbfcfe;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  overflow-wrap: anywhere;
}

.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ebeff3;
  overflow: hidden;
  margin-top: 6px;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #58b98f);
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 18px 16px;
  text-align: center;
  background: #fbfcfe;
}

.form-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mini-help {
  color: var(--muted);
  font-size: 12px;
}

.sync-price-btn {
  margin-top: 16px;
}

.asset-side-actions .mini-help {
  margin-top: -2px;
}

.asset-price-inline-status {
  min-height: 0;
  max-width: 220px;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.history-controls-panel {
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.history-controls-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #16324c;
}

.history-controls-panel summary::-webkit-details-marker {
  display: none;
}

.history-controls-body {
  padding: 0 16px 16px;
}

.stats-label {
  font-weight: 600;
}

.stats-list {
  display: grid;
  gap: 8px;
}

.stats-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 10px 14px;
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.03);
}

.stats-card.top-rank {
  border-width: 1px;
  box-shadow: 0 16px 28px rgba(16, 32, 51, 0.06);
}

.stats-card.top-rank-1 {
  border-color: #d9c37d;
  background: linear-gradient(180deg, #fffdf7 0%, #fbf5de 100%);
}

.stats-card.top-rank-2 {
  border-color: #cfd8e4;
  background: linear-gradient(180deg, #fbfcfe 0%, #eef3f8 100%);
}

.stats-card.top-rank-3 {
  border-color: #dbc8b6;
  background: linear-gradient(180deg, #fffaf7 0%, #f8ede4 100%);
}

.stats-rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef5fc 0%, #e5eef8 100%);
  color: #5f7387;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stats-card.top-rank-1 .stats-rank {
  background: linear-gradient(180deg, #fff4c9 0%, #efd482 100%);
  color: #6c4d00;
}

.stats-card.top-rank-2 .stats-rank {
  background: linear-gradient(180deg, #f3f6fa 0%, #dce5ef 100%);
  color: #526476;
}

.stats-card.top-rank-3 .stats-rank {
  background: linear-gradient(180deg, #f8e7d8 0%, #e3b892 100%);
  color: #734521;
}

.stats-card-main {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(120px, auto) minmax(180px, 0.85fr) minmax(220px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
}

.stats-card-main .stats-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stats-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.stats-card-value-wrap {
  min-width: 0;
}

.stats-card-value {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.02em;
  text-align: right;
  overflow-wrap: anywhere;
}

.stats-card-unit {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stats-card-share {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stats-card-share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-card-share-label {
  color: #6a7b8d;
  font-size: 11px;
  font-weight: 600;
}

.stats-card-share-value {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stats-card-foot {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar,
  .dashboard-surface,
  .detail-card-grid,
  .stats-card-main {
    grid-template-columns: 1fr;
  }

  .detail-card-title {
    font-size: 28px;
  }

  .exchange-card-main {
    grid-template-columns: 1fr;
  }

  .exchange-card-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .shell-top {
    flex-direction: column;
  }

  .view-switch {
    width: calc(100vw - 28px);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .view-switch::-webkit-scrollbar {
    display: none;
  }

  .view-tab {
    flex: 0 0 auto;
  }

  .topbar-secondary-pill {
    display: none;
  }

  .topbar-actions .pill {
    min-height: 30px;
  }

  .topbar-actions .btn {
    flex: 1 1 auto;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .history-summary-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .field-row.three,
  .field-row.four {
    grid-template-columns: 1fr;
  }

  .dashboard-board {
    padding: 18px;
    border-radius: 14px;
  }

  .dashboard-board-head {
    flex-direction: column;
  }

  .dashboard-board-head h2 {
    font-size: 22px;
  }

  .dashboard-panel-head,
  .detail-card-top,
  .stats-card-main {
    flex-direction: column;
  }

  .dashboard-panel-head-detail {
    padding-left: 10px;
  }

  .dashboard-panel-note {
    max-width: none;
    text-align: left;
  }

  .dashboard-sort {
    justify-items: stretch;
  }

  .stats-tags {
    justify-content: flex-start;
  }

  .stats-card-foot {
    justify-self: start;
  }

  .asset-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .record-group-head {
    flex-direction: column;
  }

  .dashboard-sort select {
    min-width: 0;
    width: 100%;
  }

  .account-row {
    min-height: 32px;
    padding: 2px 10px;
  }

  .account-row-main {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 3px;
  }

  .account-row-meta {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .account-row-value {
    font-size: 12px;
  }

  .detail-card-title {
    font-size: 24px;
  }

  .detail-card-grid {
    display: flex;
    flex-direction: column;
  }

  .detail-side-stack {
    order: -1;
  }

  .detail-status-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-tags {
    order: 10;
  }

  .detail-card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .detail-card-actions .btn {
    flex: 1 1 auto;
  }

  .history-controls-panel {
    border-radius: 12px;
  }

  .history-controls-panel:not([open]) .history-controls-body {
    display: none;
  }

  .detail-value-number {
    font-size: 28px;
  }

  .detail-metric-grid {
    grid-template-columns: 1fr;
  }

  .exchange-card-head {
    flex-direction: column;
  }

  .exchange-card-actions {
    justify-content: flex-start;
  }

  .exchange-card-value {
    font-size: 28px;
  }

  .exchange-card-metrics {
    grid-template-columns: 1fr;
  }
}
