:root {
  color-scheme: light;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  --ink: #24131f;
  --muted: #765d69;
  --line: rgba(102, 76, 91, 0.14);
  --panel: rgba(255, 255, 255, 0.9);
  --soft: #f8eef3;
  --accent: #209b7a;
  --pink: #b24783;
  --danger: #8a1f45;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 89, 151, 0.18), transparent 34rem),
    radial-gradient(circle at 94% 14%, rgba(32, 155, 122, 0.08), transparent 30rem),
    linear-gradient(145deg, #fff9fb, #f6eaf0);
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 34px;
  padding: 7px 16px;
  background: #ffcf4a;
  color: #24131f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
}

.environment-banner[hidden] { display: none; }
.environment-banner span { font-family: "Courier New", monospace; font-weight: 700; }
body.is-staging .site-header { top: 34px; }

button,
.button-link,
.file-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover,
.file-button:hover { background: #3d2034; }
button:disabled { cursor: wait; opacity: 0.55; }
.secondary-button { background: #ded3d9; color: var(--ink); }
.danger-button { background: var(--danger); }

input,
select {
  border: 1px solid #dacbd3;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus { outline: 3px solid rgba(32, 155, 122, 0.16); border-color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 251, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header-inner {
  width: 100%;
  max-width: 1240px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  min-width: 0;
}

.wordmark {
  color: #171015;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  text-decoration: none;
}

.wordmark strong {
  color: #ff2f8a;
  font: inherit;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.primary-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover { background: rgba(255, 47, 138, 0.07); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

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

.header-usage-metric {
  position: relative;
  min-width: 96px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: #171015;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.header-usage-metric[hidden] { display: none; }

.header-usage-metric::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: max-content;
  max-width: min(340px, calc(100vw - 24px));
  padding: 9px 11px;
  border-radius: 9px;
  background: #171015;
  color: #fff;
  box-shadow: 0 10px 30px rgba(23, 16, 21, 0.22);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.header-usage-metric:not([data-tooltip=""]):hover::after,
.header-usage-metric:not([data-tooltip=""]):focus::after,
.header-usage-metric:not([data-tooltip=""]).is-tooltip-open::after {
  opacity: 1;
  transform: translateY(0);
}

.header-usage-metric svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.logout-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.logout-button:hover { background: var(--ink); color: #fff; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 470px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(76, 29, 57, 0.14);
}

.auth-card form { display: grid; gap: 18px; margin-top: 28px; }
.auth-card label { display: grid; gap: 8px; color: var(--muted); }

.page-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-width: 0;
}

.dashboard-page {
  display: grid;
  gap: 20px;
  min-width: 0;
  animation: page-in 220ms ease-out both;
}

.dashboard-page[hidden] { display: none !important; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(79, 40, 60, 0.07);
  min-width: 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 24px; }
h3 { margin-bottom: 12px; }
.section-title { font-size: 26px; line-height: 1.15; }
.hero-copy { margin: 18px 0 0; color: var(--muted); }
.hero-copy strong { color: var(--accent); }

.hero-actions { display: flex; align-items: end; gap: 16px; }
.hero-stat { min-width: 190px; text-align: right; }
.hero-stat span { display: block; color: var(--muted); font-size: 13px; }
.hero-stat strong { color: var(--accent); font-size: 48px; line-height: 1; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.status[data-error="true"] { color: #b72d4e; }
.result-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.trade-panel { padding: 24px; }
.trade-panel-head { align-items: flex-end; margin-bottom: 6px; }
.trade-panel-head .hint { max-width: 760px; }
.trade-status { margin: 0 0 8px; }
.wallet-placeholder {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.wallet-placeholder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8b9c1;
  box-shadow: 0 0 0 4px rgba(118, 93, 105, 0.08);
}
.trade-table-shell {
  margin: 0 -24px -24px;
  padding: 0 24px 18px;
  scrollbar-color: #ccb9c4 transparent;
}
.portfolio-table {
  min-width: 1810px;
  font-variant-numeric: tabular-nums;
}
.portfolio-table th,
.portfolio-table td { white-space: nowrap; }
.portfolio-table th { padding-top: 14px; padding-bottom: 14px; font-size: 12px; }
.portfolio-table .pg-green { color: #128366; font-weight: 850; }
.portfolio-main-row { cursor: pointer; }
.portfolio-main-row td { height: 74px; transition: background 140ms ease; }
.portfolio-main-row:hover td,
.portfolio-main-row.is-expanded td { background: rgba(255, 79, 216, 0.035); }
.portfolio-date-wrap { display: flex; align-items: center; gap: 7px; }
.portfolio-expand {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  transition: transform 150ms ease, background 150ms ease;
}
.portfolio-expand:hover { background: var(--soft); color: var(--ink); }
.portfolio-main-row.is-expanded .portfolio-expand { transform: rotate(90deg); }
.portfolio-date { color: var(--muted); font-size: 12px; line-height: 1.35; }
.portfolio-token-image {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 7px 18px rgba(36, 19, 31, 0.13);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.portfolio-token-image[data-tone="gold"] { background: linear-gradient(145deg, #d7a53b, #5f3e17); }
.portfolio-token-image[data-tone="pink"] { background: linear-gradient(145deg, #ff66a7, #8e245b); }
.portfolio-token-image[data-tone="green"] { background: linear-gradient(145deg, #54c9a7, #155f4d); }
.portfolio-name { display: flex; align-items: center; gap: 6px; }
.portfolio-name strong { font-size: 14px; }
.portfolio-copy {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
}
.portfolio-copy:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.cluster-badges { display: flex; align-items: center; gap: 4px; }
.cluster-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f4e8ee;
  color: #793450;
  font-size: 11px;
  font-weight: 850;
}
.metric-stack { display: grid; gap: 3px; line-height: 1.2; }
.metric-stack strong { font-size: 13px; }
.metric-stack span { color: var(--muted); font-size: 12px; }
.metric-positive strong,
.metric-positive span { color: #128366; }
.metric-negative strong,
.metric-negative span { color: #c43f5e; }
.metric-neutral strong { color: var(--muted); }
.metric-hodl { color: #128366; font-size: 12px; font-weight: 850; }
.position-meter { display: grid; gap: 6px; min-width: 82px; }
.position-meter > span { color: var(--muted); font-size: 12px; }
.position-track { width: 70px; height: 4px; overflow: hidden; border-radius: 999px; background: #e6dce1; }
.position-track span { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.pg-value { color: #128366; font-size: 13px; font-weight: 900; }
.tx-counts { font-weight: 850; }
.tx-counts .buy-count { color: #128366; }
.tx-counts .sell-count { color: #c43f5e; }
.portfolio-sell {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #b72d4e;
  font-size: 12px;
  font-weight: 850;
}
.portfolio-sell:hover { background: #911f3c; }
.portfolio-orders-row:hover { background: transparent; }
.portfolio-orders-row td { padding: 0 10px 14px 42px; background: rgba(248, 238, 243, 0.62); }
.orders-card {
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}
.orders-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.orders-card-head strong { font-size: 13px; }
.order-count { color: var(--muted); font-size: 11px; }
.orders-table { min-width: 760px; }
.orders-table th,
.orders-table td { height: auto; padding: 9px 10px; background: transparent; font-size: 12px; }
.order-type { display: inline-flex; min-width: 44px; justify-content: center; padding: 4px 7px; border-radius: 8px; font-weight: 900; }
.order-type[data-type="Buy"] { background: rgba(32, 155, 122, 0.1); color: #128366; }
.order-type[data-type="Sell"] { background: rgba(196, 63, 94, 0.1); color: #b72d4e; }
.order-actions { display: flex; justify-content: flex-end; gap: 6px; }
.order-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
}
.order-icon-button:hover { background: var(--soft); color: var(--ink); }
.order-icon-button[data-order-action="cancel"]:hover { color: var(--danger); }
.orders-empty { margin: 0; padding: 9px 0 3px; color: var(--muted); font-size: 12px; }

.period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.period-tabs button {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.period-tabs button:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.period-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(36, 19, 31, 0.16); }
.pnl-table { min-width: 1040px; font-variant-numeric: tabular-nums; }
.pnl-table th,
.pnl-table td { min-width: 82px; text-align: center; white-space: nowrap; }
.pnl-table th:first-child,
.pnl-table td:first-child { min-width: 150px; position: sticky; left: 0; z-index: 2; text-align: left; background: rgba(255, 252, 253, 0.98); }
.pnl-table thead th:first-child { z-index: 4; }
.pnl-table thead tr:first-child th { border-bottom: 0; padding-bottom: 6px; color: var(--ink); text-align: center; }
.pnl-table thead tr:first-child th:first-child { text-align: left; }
.pnl-table tbody tr[data-current="true"] td { background-color: rgba(32, 155, 122, 0.045); }
.pnl-table tbody tr[data-current="true"] td:first-child { background-color: #f6fbf9; }
.pnl-table tbody tr[data-weekend="true"] td,
.pnl-table tbody tr[data-weekend="true"] td:first-child { background-color: #f1f1f1; }
.pnl-period-label { display: grid; gap: 2px; }
.pnl-period-label strong { font-size: 12px; }
.pnl-period-label span { color: var(--accent); font-size: 10px; font-weight: 850; }
.pnl-zero { color: #b9aab2; }
.pnl-table td.metric-positive { color: #128366; }
.pnl-table td.metric-negative { color: #c43f5e; }
.pnl-total-column { background: rgba(248, 238, 243, 0.72); font-weight: 850; }
.pnl-table tbody tr[data-current="true"] .pnl-total-column { background: rgba(32, 155, 122, 0.08); }
.pnl-group-total { background: rgba(248, 238, 243, 0.72); }
.order-dialog { width: min(calc(100% - 32px), 650px); }
.dialog-kicker { margin: 0 0 3px; color: var(--pink); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.order-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order-form-grid .dialog-field:first-child { grid-column: 1 / -1; }
.order-form-grid input,
.order-form-grid select { width: 100%; }

.clusters-table { min-width: 920px; }
.cluster-link { color: var(--ink); font-weight: 800; text-decoration-color: rgba(255, 47, 138, 0.35); }
.cluster-link:hover { color: var(--pink); }
.cluster-refresh-input { width: 86px; }
.cluster-sync-meta { max-width: 220px; color: var(--muted); font-size: 12px; }
.cluster-sync-meta[data-error="true"] { color: #b72d4e; }
.migration-yes { color: var(--accent); font-weight: 800; }
.migrate-control { display: flex; align-items: center; gap: 9px; }
.help-tip {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
}
.help-tip:hover, .help-tip:focus-visible {
  border-color: var(--pink);
  color: var(--pink);
  outline: none;
}
.help-tooltip-popup {
  position: fixed;
  z-index: 1000;
  width: min(390px, calc(100vw - 20px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #2b1523;
  color: #fff;
  box-shadow: 0 14px 36px rgba(45, 20, 34, 0.28);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  pointer-events: none;
}
.help-tooltip-popup[hidden] { display: none; }
.switch-control { display: inline-flex; align-items: center; cursor: pointer; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-control span {
  width: 44px;
  height: 25px;
  position: relative;
  display: block;
  border: 1px solid #cdbfc7;
  border-radius: 999px;
  background: #d8cfd4;
  transition: background 150ms ease, border-color 150ms ease;
}
.switch-control span::after {
  content: "";
  width: 19px;
  height: 19px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(36, 19, 31, 0.24);
  transition: transform 150ms ease;
}
.switch-control input:checked + span { border-color: var(--accent); background: var(--accent); }
.switch-control input:checked + span::after { transform: translateX(19px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(32, 155, 122, 0.2); }
.switch-control input:disabled + span { opacity: 0.55; cursor: wait; }
.cluster-detail-panel { padding: 24px; }
.cluster-detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cluster-back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.cluster-back-link:hover { color: var(--pink); }
.cluster-bundle-control { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.cluster-bundle-control select { min-width: 120px; }
.cluster-control { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 13px; font-weight: 800; }
.cluster-control[hidden] { display: none !important; }
.cluster-exception-control { display: flex; align-items: center; gap: 9px; width: min(100%, 920px); margin-top: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.cluster-exception-control label { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 800; }
.cluster-exception-control textarea { flex: 1 1 420px; width: auto; min-width: 220px; height: 38px; min-height: 38px; max-height: 110px; padding: 9px 11px; resize: vertical; border-radius: 10px; background: #fff; font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cluster-exception-control textarea::placeholder { color: var(--muted); font-family: inherit; font-weight: 550; opacity: 0.8; }
.cluster-exception-control button { flex: 0 0 auto; min-height: 38px; padding: 8px 15px; border-radius: 10px; }
.cluster-token-table-shell { margin-top: 12px; }
.cluster-token-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.cluster-token-bulk-actions { display: flex; align-items: center; gap: 12px; }
.cluster-token-bulk-actions span { color: var(--muted); font-size: 13px; }
.cluster-token-filter-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.cluster-token-filter-tabs button { min-height: 34px; padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.cluster-token-filter-tabs button:hover { background: rgba(255, 255, 255, 0.72); color: var(--ink); }
.cluster-token-filter-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(36, 19, 31, 0.14); }
.cluster-token-table { min-width: 1540px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cluster-token-table th, .cluster-token-table td { white-space: nowrap; }
.cluster-token-table .pg-green { color: #128366; font-weight: 850; }
.cluster-token-table .pg-yellow { color: #a27d00; font-weight: 850; }
.market-cap-m { color: #128366; font-weight: 900; }
.cluster-token-date { max-width: 142px; white-space: normal !important; color: var(--muted); }
.cluster-token-image { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--pink); object-fit: cover; font-weight: 850; }
.cluster-token-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.contract-cell { display: flex; align-items: center; gap: 5px; }
.contract-copy { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); line-height: 1; }
.contract-copy:hover { background: var(--soft); color: var(--ink); }
.token-pg-chart-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.token-pg-chart-button:hover { background: var(--soft); color: var(--ink); }
.token-pg-chart-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.token-median-pg-used { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(32, 155, 122, .12); color: #128366; font-size: 13px; font-weight: 950; }
.token-median-pg-used[hidden] { display: none; }
.key-dialog.pg-chart-dialog { box-sizing: border-box; width: min(calc(100% - 32px), 1120px); max-width: 1120px; max-height: calc(100vh - 36px); padding: 24px; overflow: auto; }
.key-dialog.pg-chart-dialog .dialog-head { align-items: flex-start; }
.key-dialog.pg-chart-dialog .dialog-head > div { min-width: 0; padding-top: 2px; }
.key-dialog.pg-chart-dialog .dialog-kicker { margin-bottom: 6px; }
.key-dialog.pg-chart-dialog .dialog-close { flex: 0 0 auto; }
.key-dialog.pg-chart-dialog .status { margin: 8px 0 12px; }
.key-dialog.pg-chart-dialog .dialog-actions { margin-top: 18px; }
.pg-dialog-head-actions { display: flex; align-items: center; gap: 10px; }
.pg-dialog-head-actions #toggle-token-median-pg { min-width: 82px; }
.pg-chart-section { margin-top: 16px; }
.pg-chart-section h3 { margin: 0 0 8px; font-size: 15px; }
.pg-chart-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.pg-chart-section-head h3 { margin: 0; }
.pg-chart-accuracy-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; user-select: none; }
.pg-chart-accuracy-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #128366; }
.pg-chart { min-height: 280px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pg-chart svg { display: block; width: 100%; min-width: 760px; height: auto; }
.pg-chart-empty { min-height: 280px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.pg-chart-grid { stroke: rgba(118, 93, 105, .13); stroke-width: 1; }
.pg-chart-axis-label { fill: var(--muted); font-size: 10px; font-weight: 700; }
.pg-chart-axis-title { fill: var(--muted); font-size: 10px; font-weight: 850; }
.pg-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-chart-mc-line { stroke: #b24783; }
.pg-chart-pg-line { stroke: #128366; }
.pg-chart-point { fill: #128366; stroke: #fff; stroke-width: 1.5; cursor: help; }
.pg-chart-point.is-ath { fill: #b24783; }
.pg-chart-point.is-dump { fill: #d17c00; }
.pg-chart-point-label { fill: #24453c; font-size: 9px; font-weight: 850; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pg-chart-hover-tooltip { position: fixed; z-index: 10000; max-width: 250px; padding: 9px 11px; border: 1px solid rgba(118, 93, 105, .2); border-radius: 10px; background: rgba(36, 19, 31, .94); color: #fff; box-shadow: 0 8px 28px rgba(36, 19, 31, .24); font-size: 12px; font-weight: 650; line-height: 1.45; white-space: pre-line; pointer-events: none; }
.pg-chart-hover-tooltip[hidden] { display: none; }

@media (max-width: 700px) {
  .key-dialog.pg-chart-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); padding: 16px; border-radius: 16px; }
  .key-dialog.pg-chart-dialog .dialog-head h2 { font-size: 24px; line-height: 1.1; }
  .pg-chart-section h3 { font-size: 14px; line-height: 1.25; }
  .pg-chart-section-head { align-items: flex-start; }
}
.cluster-token-table [data-field="status"] { font-weight: 850; }
.cluster-token-table [data-field="status"][data-status="active"] { color: var(--accent); }
.cluster-token-table [data-field="status"][data-status="dump"] { color: #d17c00; }
.cluster-token-table [data-field="status"][data-status="end"] { color: var(--danger); }
.cluster-pnl-input { width: 82px; padding: 7px 8px; border-radius: 9px; text-align: right; }
.empty-table-cell { padding: 34px 18px !important; color: var(--muted); text-align: center; }

@media (max-width: 700px) {
  .cluster-detail-head { align-items: flex-start; flex-direction: column; }
  .cluster-exception-control { align-items: stretch; flex-direction: column; }
  .cluster-exception-control textarea { flex-basis: auto; width: 100%; min-width: 0; }
  .cluster-exception-control button { align-self: flex-start; }
  .cluster-token-actions { align-items: flex-start; flex-direction: column; }
  .cluster-token-filter-tabs { max-width: 100%; overflow-x: auto; }
}

.settings-form { display: grid; gap: 16px; }
.settings-page-grid { grid-template-columns: minmax(0, 1fr); }
.settings-panel-wide { grid-column: 1 / -1; }
.label-color-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.label-color-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.label-color-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.label-color-row:first-child { border-top: 0; }
.label-count { justify-self: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.label-color-row input[type="color"] { width: 74px; height: 34px; min-height: 34px; justify-self: end; padding: 2px; cursor: pointer; }
.settings-action-grid { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 12px; }
.settings-action-grid label,
.local-settings-grid label,
.pg-settings-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.local-api-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.local-settings-grid,
.pg-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.local-settings-grid input,
.pg-settings-grid input { width: 100%; }
.settings-submit-row { display: flex; justify-content: flex-end; margin-top: 14px; }

.secret-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(32, 155, 122, 0.3);
  border-radius: 14px;
  background: rgba(32, 155, 122, 0.07);
}
.secret-output[hidden] { display: none; }
.secret-output code { overflow: auto; align-self: center; color: #146d56; font-size: 12px; }
.key-list { display: grid; gap: 8px; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.key-meta { color: var(--muted); font-size: 12px; }

.key-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffafb;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(55, 22, 43, 0.3);
}
.key-dialog::backdrop { background: rgba(36, 19, 31, 0.42); backdrop-filter: blur(3px); }
.key-dialog form { display: grid; gap: 18px; padding: 22px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-head h2 { margin: 0; }
.dialog-close { min-width: 34px; min-height: 34px; padding: 0 8px; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; }
.dialog-close:hover { background: var(--soft); color: var(--ink); }
.dialog-field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.dialog-field input { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.key-dialog .status { margin: -6px 0 0; }

.audit-toolbar,
.toolbar,
.transfer-bar,
.transfer-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.audit-toolbar select { width: 180px; }
.audit-toolbar .wallet-reason-multiselect[data-disabled="true"] { opacity: 0.6; pointer-events: none; }
.audit-toolbar [hidden] { display: none !important; }
#wallet-audit-results { display: grid; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.audit-loader { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; color: var(--muted); font-weight: 700; }
.audit-loader-spinner { width: 28px; height: 28px; border: 3px solid #eadce3; border-top-color: var(--pink); border-radius: 50%; animation: audit-loader-spin 0.8s linear infinite; }
@keyframes audit-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .audit-loader-spinner { animation-duration: 1.8s; } }
.toolbar input[type="search"] { flex: 1 1 280px; }
#wallet-search { flex: 0 1 280px; width: 280px; max-width: 100%; }
.toolbar select { width: 150px; }
.wallet-reason-filter-row { display: flex; flex: 0 0 100%; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; }
.wallet-reason-multiselect { position: relative; width: min(520px, 100%); }
.wallet-found-token-input { width: min(390px, 100%); min-height: 42px; box-sizing: border-box; }
.wallet-reason-multiselect > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; box-sizing: border-box; padding: 9px 12px; border: 1px solid #dacbd3; border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; list-style: none; }
.wallet-reason-multiselect > summary::-webkit-details-marker { display: none; }
.wallet-reason-multiselect > summary::after { content: "⌄"; margin-left: 12px; color: var(--muted); font-size: 18px; line-height: 1; }
.wallet-reason-multiselect[open] > summary { outline: 3px solid rgba(32, 155, 122, 0.16); border-color: var(--accent); }
.wallet-reason-options { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; display: grid; width: min(720px, calc(100vw - 48px)); max-height: 420px; overflow: auto; padding: 8px; border: 1px solid #dacbd3; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(36, 19, 31, 0.2); }
.wallet-reason-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); cursor: pointer; line-height: 1.3; }
.wallet-reason-option:hover { background: var(--soft); }
.wallet-reason-option input { flex: 0 0 auto; width: auto; margin: 2px 0 0; }
.selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.selection-actions[hidden] { display: none; }
.selection-count { min-width: 92px; color: var(--muted); font-size: 13px; font-weight: 700; }
.selection-actions button { min-height: 34px; padding: 7px 12px; }
.table-selectors { display: inline-flex; align-items: center; gap: 9px; }
.filtered-select-checkbox { accent-color: #d92f52; outline: 2px solid rgba(217, 47, 82, 0.65); outline-offset: 1px; border-radius: 2px; }
.date-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.date-filter input[type="date"] { width: 142px; min-width: 142px; padding: 9px 10px; }
.date-filter input.date-input-empty:not(:focus) { color: transparent; }
.date-filter input.date-input-empty:not(:focus)::-webkit-datetime-edit,
.date-filter input.date-input-empty:not(:focus)::-webkit-datetime-edit-text,
.date-filter input.date-input-empty:not(:focus)::-webkit-datetime-edit-day-field,
.date-filter input.date-input-empty:not(:focus)::-webkit-datetime-edit-month-field,
.date-filter input.date-input-empty:not(:focus)::-webkit-datetime-edit-year-field { color: transparent; }
.transfer-section + .transfer-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.transfer-bar { gap: clamp(30px, 5vw, 80px); }
.file-button { display: inline-flex; align-items: center; background: #ded3d9; color: var(--ink); }
.file-button input { display: none; }
.file-name { max-width: 250px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.conflict-list { display: grid; gap: 10px; }
.conflict-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 79, 216, 0.04); }
.conflict-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.conflict-kind { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #f3dbe6; color: #6d304a; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.conflict-address { overflow-wrap: anywhere; color: #8f3568; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-decoration: none; }
.conflict-address:hover { color: var(--pink); text-decoration: underline; }
.conflict-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.conflict-actions button { min-height: 34px; padding: 7px 10px; background: #f3dbe6; color: #4f2235; }
.audit-result-row { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.audit-result-actions { justify-content: flex-start; }

.table-shell { min-width: 0; max-width: 100%; margin-top: 8px; overflow: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
th { color: var(--muted); font-weight: 700; }
tbody tr:hover { background: rgba(255, 79, 216, 0.035); }
.address-link { color: var(--ink); text-decoration-color: #ceb9c4; }
.wallet-reason { min-width: 230px; max-width: 340px; color: var(--muted); line-height: 1.35; white-space: normal; }
.wallet-status-source { min-width: 145px; color: var(--ink); font-weight: 400; }
.labels { color: var(--pink); font-weight: 700; }
.inline-delete { min-height: 34px; padding: 7px 10px; background: #f1dce5; color: #4f2235; }
.wallet-actions { display: flex; min-width: 330px; flex-wrap: wrap; gap: 6px; }
.wallet-actions button { min-height: 34px; padding: 7px 10px; }
.wallet-table { min-width: 1430px; }
.tokens-table { min-width: 1540px; }
.tokens-table th, .tokens-table td { white-space: nowrap; }
.token-row-action { min-height: 34px; padding: 7px 10px; }
.token-classification-status { font-weight: 800; }
.token-classification-new { color: var(--muted); }
.token-classification-trust { color: var(--accent); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; color: var(--muted); font-size: 13px; }

.backup-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.backup-panel .hint { max-width: 720px; }

.system-page { display: grid; gap: 18px; }
.system-page[hidden] { display: none; }
.system-page .panel { margin: 0; }
.system-page-head, .system-chart-head { align-items: flex-start; }
.system-subtitle, .system-panel-note { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.system-live-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.system-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(32, 155, 122, .1); animation: system-pulse 2s ease-in-out infinite; }
@keyframes system-pulse { 50% { box-shadow: 0 0 0 9px rgba(32, 155, 122, 0); } }
.system-summary-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.system-metric-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: grid; gap: 5px; }
.system-metric-card > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.system-metric-card-title { display: flex; align-items: center; gap: 6px; }
.system-metric-card-title .help-tip { width: 16px; height: 16px; flex: 0 0 16px; font-size: 10px; letter-spacing: normal; text-transform: none; }
.system-metric-card strong { overflow: hidden; font-size: clamp(20px, 2vw, 29px); line-height: 1.05; text-overflow: ellipsis; }
.system-metric-card small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.system-metric-card.is-good { border-color: rgba(32, 155, 122, .24); background: rgba(32, 155, 122, .04); }
.system-metric-card.is-warning { border-color: rgba(193, 141, 0, .3); background: rgba(255, 202, 53, .08); }
.system-metric-card.is-critical { border-color: rgba(138, 31, 69, .3); background: rgba(138, 31, 69, .06); }
.system-two-column { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; }
.system-table-shell { margin: 0 -4px; }
.system-process-table { min-width: 900px; }
.system-process-name > span:first-child { vertical-align: middle; }
.system-process-name .help-tip { width: 17px; height: 17px; margin-left: 7px; vertical-align: middle; font-size: 10px; }
.system-cluster-table { min-width: 1120px; }
.system-status-badge { display: inline-flex; align-items: center; min-width: 53px; justify-content: center; padding: 4px 8px; border-radius: 999px; background: #eee7eb; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.system-status-badge.is-ok, .system-status-badge.is-running, .system-status-badge.is-completed, .system-status-badge.is-applied { background: rgba(32, 155, 122, .12); color: #117459; }
.system-status-badge.is-warning, .system-status-badge.is-paused { background: rgba(255, 202, 53, .2); color: #8a6500; }
.system-status-badge.is-critical, .system-status-badge.is-failed { background: rgba(138, 31, 69, .12); color: var(--danger); }
.system-status-badge.is-off, .system-status-badge.is-idle, .system-status-badge.is-unknown { background: #eee8eb; color: #806d76; }
.system-trend-chart { width: 100%; min-height: 270px; margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.system-trend-chart svg { display: block; width: 100%; height: 270px; }
.system-chart-grid { stroke: rgba(118, 93, 105, .12); stroke-width: 1; }
.system-chart-axis-tick { stroke: rgba(118, 93, 105, .5); stroke-width: 1; }
.system-chart-axis-label { fill: var(--muted); font-size: 10px; font-weight: 700; }
.system-chart-axis-title { fill: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .03em; }
.system-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.system-chart-line.is-cpu { stroke: #b24783; }
.system-chart-line.is-memory { stroke: #209b7a; }
.system-chart-line.is-queue { stroke: #e5a800; }
.system-chart-line.is-errors { stroke: #8a1f45; stroke-dasharray: 5 6; }
.system-chart-legend { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.system-chart-legend span::before { content: ""; display: inline-block; width: 15px; height: 3px; margin: 0 6px 3px 0; border-radius: 9px; background: currentColor; }
.system-chart-legend .cpu { color: #b24783; } .system-chart-legend .memory { color: #209b7a; } .system-chart-legend .queue { color: #b48400; } .system-chart-legend .errors { color: #8a1f45; }
.system-provider-list { display: grid; gap: 13px; }
.system-provider-row { display: grid; grid-template-columns: 78px minmax(80px, 1fr); gap: 5px 12px; align-items: center; }
.system-provider-row strong { font-size: 12px; }
.system-provider-row > span { grid-column: 2; color: var(--muted); font-size: 11px; }
.system-provider-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #eee6ea; }
.system-provider-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.system-provider-credit { margin-top: 4px; padding: 11px 13px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.system-incident-list { display: grid; gap: 10px; }
.system-incident { padding: 12px 14px; border-left: 4px solid #d5c8cf; border-radius: 10px; background: #faf6f8; display: grid; gap: 5px; }
.system-incident.is-warning { border-color: #d4a000; } .system-incident.is-critical { border-color: var(--danger); }
.system-incident > div { color: var(--muted); font-size: 11px; font-weight: 800; }
.system-incident strong { font-size: 13px; }
.system-incident p { margin: 0; color: var(--muted); font-size: 11px; }
.system-incident-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.system-incident-actions .button-link,
.system-incident-actions button { width: auto; padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.system-detail-list { display: grid; gap: 0; }
.system-detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.system-detail-list > div:last-child { border-bottom: 0; }
.system-detail-list span { color: var(--muted); }
.system-detail-list strong { text-align: right; }
.system-empty-state { min-height: 110px; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 0;
    padding: 12px 20px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 14px;
  }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 1px;
  }
  .header-metrics { grid-column: 2; grid-row: 1; }
  .logout-button { grid-column: 3; grid-row: 1; }
  .settings-page-grid, .label-color-columns { grid-template-columns: 1fr; }
  .system-summary-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-two-column { grid-template-columns: 1fr; }
  .settings-panel-wide { grid-column: auto; }
  .hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { width: 100%; justify-content: space-between; }
  .hero-stat { text-align: left; }
  .trade-panel-head { align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header-inner {
    padding: 12px;
  }
  .wordmark { font-size: 22px; }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 1px;
  }
  .primary-nav a { flex: 1 0 auto; text-align: center; }
  .header-usage-metric { min-width: 76px; height: 42px; padding: 0 9px; font-size: 17px; }
  .header-usage-metric svg { width: 21px; height: 21px; }
  .page-shell { width: 100%; padding: 16px 12px 32px; }
  .panel, .hero, .auth-card { padding: 20px; border-radius: 18px; }
  .panel-head, .hero-actions { align-items: stretch; flex-direction: column; }
  .trade-panel { padding: 18px; }
  .trade-table-shell { margin: 0 -18px -18px; padding: 0 18px 14px; }
  .period-tabs { width: 100%; overflow-x: auto; }
  .period-tabs button { flex: 1 0 auto; }
  .order-form-grid { grid-template-columns: 1fr; }
  .order-form-grid .dialog-field:first-child { grid-column: auto; }
  .settings-action-grid,
  .local-settings-grid,
  .pg-settings-grid { grid-template-columns: 1fr; }
  .settings-submit-row button { width: 100%; }
  .transfer-group > * { flex: 1 1 100%; }
  .conflict-row, .key-row { grid-template-columns: 1fr; }
  .conflict-actions { justify-content: flex-start; }
  .backup-panel { align-items: stretch; flex-direction: column; }
  .system-summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-chart-head { gap: 14px; }
}
