html[data-dash-theme="light"] {
  --bg:        oklch(0.985 0.003 250);
  --bg-2:      oklch(0.965 0.004 250);
  --bg-3:      oklch(0.94  0.005 250);
  --line:      oklch(0.78  0.006 250);
  --line-2:    oklch(0.88  0.005 250);
  --ink:       oklch(0.18  0.008 250);
  --ink-dim:   oklch(0.40  0.008 250);
  --ink-mute:  oklch(0.55  0.008 250);
  --accent:    oklch(0.42 0.012 250);
  --accent-dk: oklch(0.30 0.012 250);
  --metal-hi:  oklch(0.99 0.003 250);
  --metal-lo:  oklch(0.74 0.004 250);
}
html[data-dash-theme="light"] body {
  background: var(--bg) !important;
  background-image:
    linear-gradient(180deg,
      oklch(0.99 0.003 250) 0%,
      oklch(0.96 0.003 250) 40%,
      oklch(0.985 0.003 250) 100%) !important;
  color: var(--ink) !important;
}
html[data-dash-theme="light"] .dash-top {
  background-image: linear-gradient(180deg,
    oklch(0.995 0.003 250 / 0.92) 0%,
    oklch(0.97 0.003 250 / 0.92) 100%) !important;
  background-color: oklch(0.99 0.003 250 / 0.85) !important;
  border-bottom: 1px solid var(--line-2);
  border-color: var(--line-2) !important;
}
html[data-dash-theme="light"] .dash-side {
  background: oklch(0.97 0.003 250 / 0.7);
  border-right: 1px solid var(--line-2);
}
html[data-dash-theme="light"] .dash-nav button:hover {
  background: oklch(0.92 0.005 250 / 0.7);
  color: var(--ink);
}
html[data-dash-theme="light"] .dash-nav button.on {
  background: oklch(0.90 0.006 250 / 0.85);
  color: var(--ink);
}
html[data-dash-theme="light"] .dash-trade-link {
  background: oklch(0.94 0.004 250 / 0.6);
}
html[data-dash-theme="light"] .exch-logo,
html[data-dash-theme="light"] .dt-avatar {
  background: linear-gradient(180deg,
    oklch(0.55 0.005 250) 0%,
    oklch(0.42 0.005 250) 50%,
    oklch(0.30 0.005 250) 100%) !important;
  color: oklch(0.97 0 0) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25),
              inset 0 -1px 0 oklch(0 0 0 / 0.4) !important;
}
html[data-dash-theme="light"] .btn.primary,
html[data-dash-theme="light"] .tag-pill.on,
html[data-dash-theme="light"] .seg-tabs button.on,
html[data-dash-theme="light"] .nsr-mark {
  background: linear-gradient(180deg,
    oklch(0.45 0.006 250) 0%,
    oklch(0.30 0.006 250) 60%,
    oklch(0.20 0.006 250) 100%) !important;
  color: oklch(0.97 0 0) !important;
  border-color: oklch(0.30 0.006 250) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.15),
              inset 0 -1px 0 oklch(0 0 0 / 0.5),
              0 1px 2px oklch(0 0 0 / 0.15) !important;
}
html[data-dash-theme="light"] .kpi,
html[data-dash-theme="light"] .dash-card,
html[data-dash-theme="light"] .dash-search,
html[data-dash-theme="light"] .input,
html[data-dash-theme="light"] .otp-cell,
html[data-dash-theme="light"] .dt-icon,
html[data-dash-theme="light"] .dt-user,
html[data-dash-theme="light"] .news-side-rich,
html[data-dash-theme="light"] .exch-card,
html[data-dash-theme="light"] .exch-conn-card {
  background-image: linear-gradient(180deg,
    oklch(1 0 0 / 0.65) 0%,
    oklch(0.97 0.003 250 / 0.55) 100%) !important;
  background-color: oklch(1 0 0 / 0.4) !important;
  border-color: var(--line-2) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6),
              0 1px 2px oklch(0 0 0 / 0.04) !important;
}
html[data-dash-theme="light"] .kpi.big {
  background-color: oklch(1 0 0 / 0.7) !important;
}
html[data-dash-theme="light"] .popover {
  background: oklch(0.99 0.003 250 / 0.98) !important;
  border-color: var(--line);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.12),
              0 2px 8px oklch(0 0 0 / 0.06);
}
html[data-dash-theme="light"] .um-list a:hover {
  background: oklch(0.93 0.005 250 / 0.7);
}
html[data-dash-theme="light"] .dt-dot {
  background: oklch(0.55 0.18 27) !important;
  box-shadow: 0 0 6px oklch(0.55 0.18 27 / 0.5) !important;
}
html[data-dash-theme="light"] .tr-row:hover,
html[data-dash-theme="light"] .wl-row:hover {
  background: oklch(0.94 0.005 250 / 0.6);
}
html[data-dash-theme="light"] .fee-bar { background: var(--line-2); }
html[data-dash-theme="light"] .onb-loader-bar { background: var(--line-2); }
html[data-dash-theme="light"] .auth-tape {
  background: oklch(0.97 0.003 250 / 0.7);
}

.btn { box-sizing: border-box; }
.btn.full { width: 100%; justify-content: center; }
.btn.big  { padding: 14px 22px; font-size: 12px; }
.btn.sm   { padding: 7px 12px; font-size: 11px; }
.btn.ghost {
  border-color: var(--line-2);
  color: var(--ink-dim);
}
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn.ghost.danger { color: var(--bad); }
.btn.ghost.danger:hover { border-color: var(--bad); }

.btn.is-loading { opacity: 0.7; cursor: wait; }

.dim { color: var(--ink-mute); }
.sm  { font-size: 11px; }

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 100vh;
  background: var(--bg);
}
@media (max-width: 1020px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left  { display: none !important; }
}

.auth-left {
  position: relative;
  background: oklch(from var(--bg-2) l c h / 0.7);
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  padding: 36px 56px 36px;
  overflow: hidden;
}
.auth-left::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(from var(--line-2) l c h / 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(from var(--line-2) l c h / 0.4) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at top left, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top left, black 0%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 2; }

.auth-left-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 64px;
}
.auth-step-indicator {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.auth-left-mid {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px;
  max-width: 580px;
}
.auth-headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 0.96; letter-spacing: -0.025em;
  margin: 0; color: var(--ink);
  word-spacing: 0.02em;
}
  line-height: 0.96; letter-spacing: -0.025em;
  margin: 0; color: var(--ink);
}
.auth-headline em { color: var(--accent); font-style: normal; }
.auth-lede {
  font-size: 16px; line-height: 1.6; color: var(--ink-dim);
  max-width: 44ch; margin: 0;
}
.auth-left-bot {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 16px;
}
.auth-tape {
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg) l c h / 0.4);
  padding: 4px 16px;
}
.auth-tape-row {
  display: grid; grid-template-columns: 110px 1fr 70px 80px;
  gap: 14px; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.6);
  font-family: var(--mono); font-size: 11.5px;
}
.auth-tape-row:last-child { border-bottom: 0; }
.auth-tape-row .t-pair { color: var(--ink); }
.auth-tape-row .t-px { color: var(--ink-dim); }
.auth-tape-row .t-d.up { color: var(--good); }
.auth-tape-row .t-d.dn { color: var(--bad); }
.auth-tape-row .t-vol { color: var(--ink-mute); text-align: right; }
.auth-foot-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-mute); text-transform: uppercase;
}

.auth-right {
  display: flex; flex-direction: column;
  padding: 28px 56px 32px;
  min-height: 100vh;
}
@media (max-width: 700px) { .auth-right { padding: 24px 20px; } }

.auth-right-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.auth-back {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 150ms;
  white-space: nowrap;
}
.auth-toggle { white-space: nowrap; }
.auth-back:hover { color: var(--accent); }
.auth-toggle {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
}
.auth-toggle a { color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.auth-toggle a:hover { border-bottom-color: var(--accent); }

.auth-form-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.auth-form {
  width: 100%; max-width: 460px;
}

.form-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.5);
  margin-bottom: 22px;
  white-space: nowrap;
}
.form-eyebrow > span:not(.dot) { white-space: nowrap; }
.form-eyebrow .dot.live {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: liveBlink 2.4s ease-in-out infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.form-title {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 44px; line-height: 1.0; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.form-sub {
  color: var(--ink-dim); font-size: 15px; line-height: 1.55;
  margin: 0 0 32px;
}

.form-trust {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.trust-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  justify-content: center;
  white-space: nowrap;
}
.trust-row svg { color: var(--ink-dim); }
.trust-row + .trust-row { border-left: 1px dashed oklch(from var(--line-2) l c h / 0.6); }

.oauth-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 8px;
  color: var(--ink-dim);
  background: oklch(from var(--bg-2) l c h / 0.4);
}
.oauth-btn:hover { color: var(--ink); border-color: var(--line); }
.oauth-btn svg { opacity: 0.85; }

.field {
  display: block;
  margin-bottom: 18px;
}
.field-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.field-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  white-space: nowrap;
}
.field-addon {
  font-family: var(--mono); font-size: 11px;
}
.field-addon a { color: var(--accent); }
.field-hint  { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.field-error { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--bad); }

.input {
  position: relative;
  border: 1px solid var(--line);
  background: oklch(from var(--bg-2) l c h / 0.7);
  transition: border-color 120ms, background 120ms;
}
.input:focus-within {
  border-color: var(--accent);
  background: oklch(from var(--bg-2) l c h / 0.9);
}
.input input {
  width: 100%;
  background: transparent;
  border: 0; outline: 0;
  padding: 14px 16px;
  font-family: var(--sans); font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.input.with-icon input { padding-right: 44px; }
.input-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 11px; color: var(--ink-mute);
}
.input-icon:hover { color: var(--accent); }

.form-row-between {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 22px;
}

.checkbox {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 13px; color: var(--ink-dim);
  white-space: nowrap;
}
.checkbox a { color: var(--accent); border-bottom: 1px solid transparent; }
.checkbox a:hover { border-bottom-color: var(--accent); }
.cb {
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all 120ms;
  flex-shrink: 0;
}
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb-check { color: oklch(0.15 0 0); font-size: 10px; font-weight: 700; }

.form-checks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 26px; }

.pwd-meter {
  display: flex; align-items: center; gap: 14px;
  margin: -8px 0 22px;
  font-family: var(--mono); font-size: 11px;
}
.pwd-bars { display: flex; gap: 4px; flex: 1; }
.pwd-bars span { flex: 1; height: 3px; background: var(--line-2); transition: background 200ms; }
.pwd-label { letter-spacing: 0.06em; }

.form-aside {
  margin-top: 22px;
  text-align: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
}
.form-aside a { color: var(--accent); }
.form-aside a:hover { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

.auth-divider {
  margin: 28px 0;
  text-align: center;
  position: relative;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%; height: 1px;
  background: var(--line-2);
  width: calc(50% - 30px);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { background: var(--bg); padding: 0 10px; position: relative; z-index: 2; }

.oauth-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.oauth-row .btn { justify-content: center; padding: 12px 8px; font-size: 11px; }

.auth-foot {
  display: flex; gap: 18px; align-items: center;
  margin-top: 40px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.auth-foot a:hover { color: var(--accent); }

.otp-row {
  display: flex; gap: 10px; justify-content: center;
  margin: 20px 0 26px;
}
.otp-cell {
  width: 56px; height: 64px;
  text-align: center;
  font-family: var(--mono); font-size: 24px; color: var(--ink);
  background: oklch(from var(--bg-2) l c h / 0.7);
  border: 1px solid var(--line);
  outline: none;
  transition: all 120ms;
}
.otp-cell:focus { border-color: var(--accent); background: oklch(from var(--bg-2) l c h / 0.95); }
.otp-cell:not(:placeholder-shown), .otp-cell[value]:not([value=""]) { border-color: var(--line); }

.seg-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.6);
  width: fit-content;
}
.seg-tabs.wide { display: flex; width: 100%; }
.seg-tabs.sm button { padding: 6px 12px; font-size: 11px; }
.seg-tabs button {
  padding: 9px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
  transition: all 120ms;
}
.seg-tabs button:hover { color: var(--ink); }
.seg-tabs button.on {
  color: oklch(0.15 0 0);
  background: var(--accent);
}
.dash-eyebrow.row-between > div:first-child { min-width: 0; flex: 1 1 auto; }
.dash-eyebrow.row-between .seg-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dash-eyebrow.row-between .seg-tabs::-webkit-scrollbar { display: none; }
.dash-eyebrow.row-between .seg-tabs button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}
.seg-i { font-size: 13px; }

.success-glyph {
  color: var(--accent);
  margin-bottom: 24px;
}
.sg-ring { stroke-dasharray: 138; stroke-dashoffset: 138; animation: sgRing 600ms ease-out 100ms forwards; }
.sg-check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: sgCheck 400ms ease-out 500ms forwards; }
@keyframes sgRing  { to { stroke-dashoffset: 0; } }
@keyframes sgCheck { to { stroke-dashoffset: 0; } }

.onb-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column;
}
.onb-list li {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.onb-list li:first-child { border-top: 1px solid var(--line-2); }
.onb-list li > b {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.14em; padding-top: 4px;
}
.onb-list li > span { display: flex; flex-direction: column; gap: 4px; }
.onb-list li > span b { font-family: var(--serif); font-style: normal; font-size: 22px; color: var(--ink); }
.onb-list li > span i { font-style: normal; color: var(--ink-dim); font-size: 13px; }

.onb-actions {
  display: flex; justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.exch-connect {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.exch-conn-card {
  border: 1px solid var(--line);
  background: oklch(from var(--bg-2) l c h / 0.6);
  transition: border-color 150ms, background 150ms;
}
.exch-conn-card:hover { border-color: var(--line); background: oklch(from var(--bg-2) l c h / 0.85); }
.exch-conn-card.on { border-color: var(--accent); }
.exch-conn-card.open { border-color: var(--accent); }

.exch-conn-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  cursor: pointer;
}
.exch-conn-l { display: flex; align-items: center; gap: 14px; }
.exch-conn-r { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.exch-conn-n { font-family: var(--serif); font-style: normal; font-size: 22px; color: var(--ink); line-height: 1; }
.exch-conn-h { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; }

.exch-logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  color: oklch(0.15 0 0);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.exch-logo.sm { width: 26px; height: 26px; font-size: 11px; }

.tr-venue-logo { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.exch-conn-status { display: inline-flex; align-items: center; gap: 8px; }
.exch-conn-status.ok { color: var(--accent); }
.exch-conn-status.ok i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.exch-conn-form {
  border-top: 1px solid var(--line-2);
  padding: 20px 20px 18px;
  background: oklch(from var(--bg) l c h / 0.4);
}
.exch-conn-perms {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  margin: 6px 0 18px;
}
.exch-conn-perms span { display: inline-flex; align-items: center; gap: 6px; }
.exch-conn-perms i {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ink-mute);
}
.exch-conn-perms i.ok { background: var(--accent); }
.exch-conn-perms i.off { background: var(--ink-mute); }
.exch-conn-actions { display: flex; justify-content: flex-end; gap: 8px; }

.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.7);
}
.alert-row:last-child { border-bottom: 0; }
.alert-row > div { min-width: 0; }
.alert-t { font-size: 14px; color: var(--ink); }
.alert-s { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; overflow-wrap: anywhere; }

.toggle {
  width: 38px; height: 22px;
  background: var(--line-2);
  border-radius: 999px;
  position: relative;
  transition: background 180ms;
  flex-shrink: 0;
}
.toggle i {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--ink); border-radius: 999px;
  transition: left 180ms, background 180ms;
}
.toggle.on { background: var(--accent); }
.toggle.on i { left: 19px; background: oklch(0.15 0 0); }
.alert-row-soon .alert-t, .alert-row-soon .alert-s { opacity: 0.55; }
.toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.alert-soon {
  display: inline-block; margin-left: 8px; vertical-align: middle; white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute); border: 1px solid oklch(from var(--line-2) l c h / 0.8);
  border-radius: 5px; padding: 1px 6px;
}

.onb-loader {
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.6);
}
.onb-loader-bar { height: 3px; background: var(--line-2); overflow: hidden; }
.onb-loader-bar i {
  display: block; height: 100%; width: 30%;
  background: var(--accent);
  animation: loaderGo 1.4s ease-in-out infinite;
}
@keyframes loaderGo {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}
.onb-loader-rows {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}

.dash {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--bg);
  max-width: 2200px;
  margin-inline: auto;
}
.dash-side {
  border-right: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.5);
  display: flex; flex-direction: column;
  padding: 24px 20px;
}
.dash-side .brand { margin-bottom: 32px; }

@media (max-width: 1020px) {
  .dash { grid-template-columns: 1fr !important; }
  .dash-side {
    display: flex !important; position: fixed; top: 0; left: 0; bottom: 0;
    width: 264px; max-width: 84vw; z-index: 200;
    transform: translateX(-100%); transition: transform 240ms ease, box-shadow 240ms ease;
    box-shadow: none; overflow-y: auto;
  }
  body[data-dash-drawer="open"] .dash-side { transform: translateX(0); box-shadow: 0 0 60px oklch(0 0 0 / 0.6); }
  .dash-burger { display: inline-flex !important; }
  .dash-collapse { display: none !important; }
}

.dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dash-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: all 120ms;
  position: relative;
  text-align: left;
}
.dash-nav button:hover { color: var(--ink); background: oklch(from var(--bg-3) l c h / 0.5); }
.dash-nav button.on {
  color: var(--ink);
  background: oklch(from var(--bg-3) l c h / 0.8);
}
.dash-nav button.on .dn-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
}
.dn-i {
  width: 18px; text-align: center;
  color: var(--accent);
  font-size: 12px;
}
.dash-nav button:not(.on) .dn-i { color: var(--ink-mute); }
.dash-nav button[data-view="support"] .dn-i { position: relative; }
.sup-page { height: calc(100vh - 260px); min-height: 360px; }
.sup-off { margin: 0; padding: 22px 24px; color: var(--ink-dim); }
.dash-body:has(.sup-page) { padding-bottom: 24px; }
@media (max-width: 1020px) { .dash-body:has(.sup-page) { padding-bottom: 16px; } }

.sup-page .krsw-panel.krsw-page {
  border: 1px solid var(--line-2); border-radius: 0;
  background: oklch(from var(--bg-2) l c h / 0.5);
  color: var(--ink); font-family: var(--sans);
}
.sup-page .krsw-panel .krsw-hd { padding: 16px 20px; background: transparent; border-bottom: 1px solid var(--line-2); }
.sup-page .krsw-hd .krsw-logo { display: none; }
.sup-page .krsw-hd .krsw-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.sup-page .krsw-hd .krsw-lang, .sup-page .krsw-hd .krsw-end {
  border: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--ink-dim);
  font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px;
}
.sup-page .krsw-hd .krsw-lang:hover, .sup-page .krsw-hd .krsw-end:hover { color: var(--accent); border-color: var(--accent); }
.sup-page .krsw-panel .krsw-body { padding: 24px 28px; }
.sup-page .krsw-panel .krsw-hello { padding: 0 0 12px; }
.sup-page .krsw-hello .krsw-greet {
  font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 34px; letter-spacing: 0; margin-bottom: 12px; color: var(--ink);
}
.sup-page .krsw-hello .krsw-greet-sub { font-size: 15px; line-height: 1.6; color: var(--ink-dim); max-width: 60ch; }
.sup-page .krsw-hello .krsw-hello-hint { font-size: 13px; color: var(--ink-mute); max-width: 60ch; }
.sup-page .krsw-panel .krsw-link, .sup-page .krsw-hello .krsw-link {
  border: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--ink-dim);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 18px;
}
.sup-page .krsw-panel .krsw-link:hover, .sup-page .krsw-hello .krsw-link:hover { color: var(--accent); border-color: var(--accent); }
.sup-page .krsw-panel .krsw-back { color: var(--ink-dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.sup-page .krsw-panel .krsw-back:hover { color: var(--ink); }
.sup-page .krsw-panel .krsw-sec, .sup-page .krsw-panel .krsw-topic {
  font-family: var(--mono); letter-spacing: 0.14em; color: var(--ink-mute);
}
.sup-page .krsw-panel .krsw-topic::before, .sup-page .krsw-panel .krsw-topic::after { background: var(--line-2); }
.sup-page .krsw-panel .krsw-faq-list, .sup-page .krsw-panel .krsw-answer, .sup-page .krsw-panel .krsw-tk,
.sup-page .krsw-panel .krsw-chip, .sup-page .krsw-panel .krsw-datesep {
  border: 1px solid var(--line-2); border-radius: 0; background: oklch(from var(--bg-3) l c h / 0.35); color: var(--ink);
}
.sup-page .krsw-panel .krsw-faq-q { border-top-color: var(--line-2); color: var(--ink); }
.sup-page .krsw-panel .krsw-faq-q:hover, .sup-page .krsw-panel .krsw-tk:hover, .sup-page .krsw-panel .krsw-chip:hover {
  background: oklch(from var(--bg-3) l c h / 0.7); border-color: var(--line); color: var(--ink);
}
.sup-page .krsw-panel .krsw-faq-q:hover .q-c { color: var(--accent); }
.sup-page .krsw-panel .krsw-answer-q { color: var(--ink); font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 20px; }
.sup-page .krsw-panel .krsw-tk-m, .sup-page .krsw-panel .krsw-help, .sup-page .krsw-panel .krsw-closednote,
.sup-page .krsw-panel .krsw-sysline, .sup-page .krsw-panel .krsw-empty, .sup-page .krsw-panel .krsw-datesep { color: var(--ink-mute); }
.sup-page .krsw-panel .krsw-st { border-radius: 0; font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.sup-page .krsw-panel .krsw-msg { border-radius: 0; font-size: 14px; line-height: 1.5; max-width: min(82%, 680px); }
.sup-page .krsw-panel .krsw-row .krsw-msg { max-width: min(calc(84% - 30px), 680px); }
.sup-page .krsw-panel .krsw-msg.u { background: oklch(from var(--bg-3) l c h / 0.6); border: 1px solid var(--line-2); color: var(--ink); }
.sup-page .krsw-panel .krsw-msg.a, .sup-page .krsw-panel .krsw-typing {
  background: oklch(from var(--bg-3) l c h / 0.25); border: 1px solid var(--line); color: var(--ink); border-radius: 0;
}
.sup-page .krsw-panel .krsw-typing i { background: var(--ink); }
.sup-page .krsw-panel .krsw-msg-b, .sup-page .krsw-panel .krsw-msg.a .krsw-msg-b {
  color: var(--ink-mute); font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
}
.sup-page .krsw-panel .krsw-av { background: oklch(from var(--bg-3) l c h / 0.6); border-color: var(--line-2); color: var(--ink-dim); }
.sup-page .krsw-panel .krsw-av.bot { color: var(--accent); }
.sup-page .krsw-panel .krsw-foot { padding: 14px 16px; background: transparent; border-top: 1px solid var(--line-2); gap: 10px; }
.sup-page .krsw-panel .krsw-ta, .sup-page .krsw-panel .krsw-inp {
  border: 1px solid var(--line-2); border-radius: 0; background: oklch(from var(--bg) l c h / 0.6); color: var(--ink);
  font-family: var(--sans); font-size: 14px;
}
.sup-page .krsw-panel .krsw-ta:focus, .sup-page .krsw-panel .krsw-inp:focus { border-color: var(--line); }
.sup-page .krsw-panel .krsw-send, .sup-page .krsw-panel .krsw-btn:not(.krsw-ghost), .sup-page .krsw-panel .krsw-newq {
  border-radius: 0; border: 1px solid oklch(0.85 0.003 250); color: oklch(0.15 0 0);
  background: linear-gradient(180deg, var(--metal-hi, oklch(0.97 0.002 250)) 0%, oklch(0.85 0.003 250) 45%, oklch(0.66 0.004 250) 100%);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.7), inset 0 -1px 0 oklch(0 0 0 / 0.35);
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
}
.sup-page .krsw-panel .krsw-send { width: 46px; height: 42px; }
.sup-page .krsw-panel .krsw-btn.krsw-ghost {
  border-radius: 0; border: 1px solid var(--line-2); background: transparent; color: var(--ink-dim); box-shadow: none;
  font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
}
.sup-page .krsw-panel .krsw-btn.krsw-ghost:hover { color: var(--accent); border-color: var(--accent); }
.dn-dot {
  position: absolute; top: -3px; right: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: #e5484d; box-shadow: 0 0 0 2px var(--bg);
}

.dash-side-foot {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.dash-trade-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: oklch(from var(--bg-3) l c h / 0.7);
  transition: all 150ms;
}
.dash-trade-link:hover { border-color: var(--accent); background: oklch(from var(--accent) l c h / 0.06); }
.dtl-t { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.dtl-s { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-top: 2px; letter-spacing: 0.04em; }
.dash-trade-link .arr { color: var(--accent); }

.dash-pulse {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}
.dash-pulse i {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--good); box-shadow: 0 0 10px var(--good);
  margin-right: 8px;
  animation: pulse 1.8s ease-in-out infinite;
}

.dash-main { display: flex; flex-direction: column; min-width: 0; }

.dash-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 28px;
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.dash-top-l { flex: 0 0 auto; min-width: 160px; }
.dash-top-c { flex: 1 1 auto; min-width: 0; }
.dash-top-r {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.dash-crumb {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.dash-crumb b { color: var(--ink); font-weight: 500; }
.dash-crumb .sep { color: var(--ink-mute); }

.dash-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2);
  padding: 0 12px;
  height: 36px;
  box-sizing: border-box;
  background: oklch(from var(--bg-2) l c h / 0.6);
  transition: border-color 120ms;
  width: 100%;
  max-width: 460px;
}
.dash-search:focus-within { border-color: var(--accent); }
.dash-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
}
.dash-search input::placeholder { color: var(--ink-mute); }
.ds-i { color: var(--ink-mute); display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.ds-i svg { display: block; }
.ds-k { font-size: 11px; color: var(--ink-mute); padding: 2px 6px; border: 1px solid var(--line-2); flex-shrink: 0; white-space: nowrap; }

.dash-top-r {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
}
.trade-btn {
  font-size: 11px !important;
  padding: 0 14px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}
.trade-btn .arr { font-size: 14px; line-height: 1; }
.trade-btn .arr { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.trade-btn .arr svg { display: block; }
.trade-btn-test {
  border-color: oklch(0.82 0.13 75 / 0.55) !important;
  color: oklch(0.92 0.10 75) !important;
  background: oklch(0.82 0.13 75 / 0.06) !important;
}
.trade-btn-test:hover {
  background: oklch(0.82 0.13 75 / 0.12) !important;
  border-color: oklch(0.82 0.13 75 / 0.85) !important;
}

.dt-icon {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
  transition: all 120ms;
  flex-shrink: 0;
  box-sizing: border-box;
}
.dt-icon svg { display: block; }
.dt-icon:hover { color: var(--ink); border-color: var(--line); }

.dt-icon.dt-help {
  color: #ffd400;
  border-color: rgba(255, 208, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.28), 0 0 10px rgba(255, 196, 0, 0.34);
  animation: dt-help-pulse 2.6s ease-in-out infinite;
}
.dt-icon.dt-help:hover {
  color: #ffe45c;
  border-color: rgba(255, 208, 0, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.62), 0 0 14px rgba(255, 196, 0, 0.55);
}
html[data-dash-theme="light"] .dt-icon.dt-help { color: #b8860b; border-color: rgba(184, 134, 11, 0.5); }
html[data-dash-theme="light"] .dt-icon.dt-help:hover { color: #9a6f00; }
@keyframes dt-help-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.26), 0 0 7px rgba(255, 196, 0, 0.30); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.5),  0 0 14px rgba(255, 196, 0, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .dt-icon.dt-help { animation: none; } }
.dt-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.dt-pop-wrap { position: relative; }

.dt-user {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 10px 0 4px;
  height: 36px;
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.6);
  cursor: pointer;
  transition: border-color 120ms;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 1;
}
.dt-user:hover { border-color: var(--line); }
.dt-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: oklch(0.15 0 0);
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.dt-avatar.big { width: 40px; height: 40px; font-size: 16px; }
.dt-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-u { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.dt-u b { font-size: 12px; color: var(--ink); font-weight: 500; }
.dt-u i { font-style: normal; font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; }
.dt-chev {
  color: var(--ink-mute);
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
}
.dt-chev svg { display: block; }
@media (max-width: 1280px) {
  .dt-u { display: none; }
  .dt-user { padding: 0 8px 0 4px; gap: 6px; }
  .trade-btn { padding: 0 10px; }
}
@media (max-width: 1080px) {
  .dash-top { padding: 12px 18px; gap: 10px; }
  .dash-top-l { min-width: 0; }
  .dash-crumb span:not(.sep) { display: none; }
  .dash-crumb .sep { display: none; }
  .dash-crumb { min-width: 0; }
  .dash-crumb b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trade-btn { display: none; }
}

.popover {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 320px;
  background: oklch(from var(--bg-2) l c h / 0.98);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 50;
  box-shadow: 0 24px 60px oklch(0.05 0 0 / 0.5);
  animation: popIn 180ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.pop-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.pop-hd b { color: var(--ink); font-weight: 500; }
.pop-hd a { color: var(--accent); font-size: 10px; text-transform: none; letter-spacing: 0.04em; }
.pop-body { display: flex; flex-direction: column; }
.pop-foot {
  padding: 12px 16px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px;
}
.pop-foot a { color: var(--accent); }

.notif-pop { width: 360px; }
.notif-item {
  display: grid; grid-template-columns: 14px 1fr auto;
  gap: 12px; align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.notif-item:last-child { border-bottom: 0; }
button.notif-item { width: 100%; text-align: left; background: none; font: inherit; color: inherit; cursor: pointer; }
button.notif-item:hover { background: oklch(from var(--bg-3) l c h / 0.5); }
button.notif-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.notif-item.unread { box-shadow: inset 2px 0 0 var(--accent); }
.notif-item.unread .ni-t { font-weight: 600; }
.pop-body { max-height: 360px; overflow-y: auto; }
.nt-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; margin-left: 7px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
}
.ni-mark {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-mute);
  margin-top: 6px;
}
.notif-item.k-alert .ni-mark { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.notif-item.k-warn  .ni-mark { background: var(--warn); }
.notif-item.k-ok    .ni-mark { background: var(--good); }
.notif-item.k-info  .ni-mark { background: var(--ink-mute); }
.ni-t { font-size: 13px; color: var(--ink); }
.ni-s { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 3px; }
.ni-time { font-size: 10px; color: var(--ink-mute); white-space: nowrap; }

.user-pop { width: 280px; }
.um-hd {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line-2);
}
.um-hd b { color: var(--ink); font-weight: 500; font-size: 14px; display: block; }
.um-hd i { font-style: normal; color: var(--ink-mute); font-size: 11px; }
.um-list { display: flex; flex-direction: column; padding: 8px 0; }
.um-list a {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-dim);
  transition: all 120ms;
}
.um-list a:hover { background: oklch(from var(--bg-3) l c h / 0.6); color: var(--ink); }
.um-sep { height: 1px; background: var(--line-2); margin: 6px 0; }

.dash-body { padding: 32px 28px 64px; }
.dash-grid { display: flex; flex-direction: column; gap: 28px; }

.dash-eyebrow.row-between {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  flex-wrap: wrap;
}
.dash-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 12px 0 8px; color: var(--ink);
}
.dash-h1 em { color: var(--accent); font-style: normal; }
.dash-lede { color: var(--ink-dim); margin: 0; font-size: 15px; }

.kpi-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2);
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
.kpi {
  background: oklch(from var(--bg-2) l c h / 0.5);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 170px;
  position: relative; overflow: hidden;
}
.kpi.big { background: oklch(from var(--bg-2) l c h / 0.8); }
.kpi-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-mute); text-transform: uppercase; }
.kpi-v {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink);
}
.kpi.big .kpi-v { font-size: 56px; }
.kpi-row { display: flex; align-items: baseline; gap: 12px; margin-top: auto; }
.kpi-d { font-family: var(--mono); font-size: 12px; }
.kpi-d.up { color: var(--accent); }
.kpi-d.dn { color: var(--bad); }
.kpi-s { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.kpi .spark { width: 100%; height: 36px; margin-top: 4px; }

.dash-cols {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}
@media (max-width: 1280px) { .dash-cols { grid-template-columns: 1fr; } }
.dash-card {
  border: 1px solid var(--line-2);
  background: oklch(from var(--bg-2) l c h / 0.5);
  min-width: 0;
}
.dash-card.big { grid-column: span 1; }
.dash-card.big:nth-of-type(odd) { grid-column: 1 / 2; }
.dash-card-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.dash-card-hd h3 {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 22px; margin: 0; color: var(--ink);
}
.dash-card-body { padding: 18px 20px; }
.dash-card-body.p0 { padding: 0; }

.alloc {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 16px;
  padding: 10px 0;
}
.alloc-l { display: flex; align-items: center; gap: 10px; }
.alloc-dot { width: 8px; height: 8px; }
.alloc-l b { font-size: 13px; color: var(--ink); }
.alloc-r { font-size: 13px; color: var(--ink); }
.alloc-bar {
  grid-column: 1 / -1;
  height: 3px; background: var(--line-2); position: relative;
}
.alloc-bar i { position: absolute; inset: 0 auto 0 0; }

.conn-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
}
.conn-row:last-child { border-bottom: 0; }
.conn-l { display: flex; align-items: center; gap: 12px; }
.conn-n { font-size: 14px; color: var(--ink); font-weight: 500; }
.conn-s { font-size: 11px; margin-top: 3px; }
.conn-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conn-bal { font-size: 13px; color: var(--ink); }
.pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 6px;
}
.pill.ok { color: var(--good); border-color: oklch(from var(--good) l c h / 0.4); }
.pill.ok i { width: 5px; height: 5px; border-radius: 999px; background: var(--good) !important; box-shadow: 0 0 6px var(--good) !important; }
.pill.warn { color: var(--warn); border-color: oklch(from var(--warn) l c h / 0.4); }
.ov-trades-hd-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.ov-trades-hd-r .seg-tabs { padding: 3px; }
.ov-trades-hd-r .seg-tabs button { flex: 0 0 auto; padding: 5px 11px; font-size: 10.5px; }
.fee-ex + .fee-ex { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.fee-ex-h { font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px; }
.pill.off { color: var(--ink-mute); border-color: var(--line-2); }
.pill.off i { background: var(--ink-mute) !important; box-shadow: none !important; }
.exch-stat .es-v.ok { color: var(--good); }

.ob.mini { font-size: 11.5px; }
.ob.mini .ob-col { padding: 12px 16px; }

.sig-item {
  display: grid; grid-template-columns: 14px 1fr auto;
  gap: 12px; align-items: start;
  padding: 11px 0;
  border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.6);
}
.sig-item:last-child { border-bottom: 0; }
.sig-mark { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-mute); margin-top: 6px; }
.sig-item.k-alert .sig-mark { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sig-item.k-warn  .sig-mark { background: var(--warn); }
.sig-item.k-info  .sig-mark { background: var(--ink-mute); }
.sig-pair { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.sig-msg  { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }

.fee-row { padding: 10px 0; border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.5); }
.fee-row:last-of-type { border-bottom: 0; }
.fee-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fee-hd b { font-size: 13px; color: var(--ink); }
.fee-bar { height: 4px; background: var(--line-2); position: relative; }
.fee-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.fee-foot { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: 6px; }

.trades-table {
  display: flex; flex-direction: column;
  overflow-x: auto;
}
.tr-head, .tr-row {
  display: grid;
  grid-template-columns:
    minmax(76px, 0.8fr)
    minmax(120px, 1.4fr)
    minmax(96px, 1.2fr)
    minmax(70px, 0.7fr)
    minmax(84px, 0.9fr)
    minmax(104px, 1.3fr)
    minmax(76px, 0.8fr)
    minmax(72px, 0.8fr);
  gap: 16px; align-items: center;
  padding: 12px 20px;
  font-size: 12.5px;
  min-width: 860px;
}
.tr-head {
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.tr-row {
  border-bottom: 1px solid var(--line-2);
  transition: background 120ms;
}
.tr-row:hover { background: oklch(from var(--bg-3) l c h / 0.5); }
.tr-row:last-child { border-bottom: 0; }
.tr-row .side {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px;
  display: inline-block; width: fit-content;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.tr-row .side.buy  { color: var(--good); border: 1px solid oklch(from var(--good) l c h / 0.4); }
.tr-row .side.sell { color: var(--bad);  border: 1px solid oklch(from var(--bad) l c h / 0.4); }
.tr-row .up { color: var(--accent); }
.tr-row .dn { color: var(--bad); }

.trades-table.compact .tr-head, .trades-table.compact .tr-row {
  grid-template-columns:
    minmax(60px, 0.8fr)
    minmax(92px, 1.4fr)
    minmax(78px, 1.2fr)
    minmax(56px, 0.7fr)
    minmax(70px, 0.9fr)
    minmax(88px, 1.3fr)
    minmax(62px, 0.8fr)
    minmax(56px, 0.8fr);
  font-size: 11.5px;
  padding: 10px 20px;
  min-width: 720px;
}

.trades-table.alerts .tr-head,
.trades-table.alerts .tr-row {
  grid-template-columns:
    minmax(96px, 1.3fr)
    minmax(88px, 0.9fr)
    minmax(96px, 1.1fr)
    minmax(96px, 1.1fr)
    minmax(86px, 0.9fr)
    minmax(108px, 1.2fr)
    minmax(86px, 0.6fr);
  min-width: 720px;
}
.trades-table.alerts .tr-row .al-del-cell { justify-content: flex-end; }

@media (max-width: 860px) {
  .trades-table.alerts { overflow-x: visible; }
  .trades-table.alerts .tr-head { display: none; }
  .trades-table.alerts .tr-row {
    display: flex; flex-direction: column; align-items: stretch;
    grid-template-columns: none; gap: 6px; min-width: 0;
    padding: 14px 18px; font-size: 12.5px;
  }
  .trades-table.alerts .tr-row > span {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; min-width: 0; word-break: break-word; overflow-wrap: anywhere;
  }
  .trades-table.alerts .tr-row > span::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; flex: 0 0 auto;
  }
  .trades-table.alerts .tr-row .al-del-cell { justify-content: stretch; margin-top: 4px; }
  .trades-table.alerts .tr-row .al-del-cell::before { content: none; }
  .trades-table.alerts .tr-row .al-del-cell .btn { width: 100%; padding: 9px 12px !important; font-size: 12px !important; }
  .trades-table.alerts .tr-row > span:empty { display: none; }
}

@media (max-width: 560px) {
  .trades-table,
  .trades-table.compact { overflow-x: visible; }

  .trades-table .tr-head,
  .trades-table.compact .tr-head { display: none; }

  .trades-table .tr-row,
  .trades-table.compact .tr-row {
    display: flex; flex-direction: column; align-items: stretch;
    grid-template-columns: none;
    gap: 6px; min-width: 0;
    padding: 14px 18px; font-size: 12.5px;
  }
  .trades-table .tr-row:last-child,
  .trades-table.compact .tr-row:last-child { border-bottom: 0; }

  .trades-table .tr-row > span,
  .trades-table.compact .tr-row > span {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; min-width: 0; word-break: break-word; overflow-wrap: anywhere;
  }
  .trades-table .tr-row > span::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
  }

  .trades-table .tr-row .tr-venue-cell { justify-content: flex-start; gap: 8px; }
  .trades-table .tr-row .tr-venue-cell::before { margin-right: auto; }
  .trades-table .tr-venue-logo { width: 22px; height: 22px; }

  .trades-table .tr-row > span.side { border: 0; padding: 0; width: auto; font-size: 12px; }

  .news-pager.sm { margin: 16px 0 0; padding-bottom: 16px; }

  .trades-table.alerts .tr-head,
  .trades-table.alerts .tr-row { min-width: 0; }
  .trades-table.alerts .tr-row .al-del-cell { justify-content: stretch; margin-top: 4px; }
  .trades-table.alerts .tr-row .al-del-cell::before { content: none; }
  .trades-table.alerts .tr-row .al-del-cell .btn { width: 100%; padding: 9px 12px; font-size: 12px; }
  .trades-table.alerts .tr-row > span:empty { display: none; }
}

.exch-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
@media (max-width: 1280px) { .exch-cards { grid-template-columns: 1fr; } }
.exch-card {
  border: 1px solid var(--line);
  background: oklch(from var(--bg-2) l c h / 0.7);
  display: flex; flex-direction: column;
  min-width: 0;
}
.exch-card-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
}
.exch-card-l { display: flex; align-items: center; gap: 14px; }
.exch-card-n { font-family: var(--serif); font-style: normal; font-size: 26px; color: var(--ink); line-height: 1; }
.exch-card-body {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-2);
}
.exch-stat {
  background: oklch(from var(--bg-2) l c h / 0.5);
  padding: 14px 18px;
}
.es-k { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; }
.es-v { font-size: 18px; color: var(--ink); margin-top: 6px; }
.es-v.serif { font-family: var(--serif); font-style: normal; font-size: 24px; }
.exch-tradfi-desc { grid-column: span 2; }
.exch-tradfi-row .tf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.exch-tradfi-row .tf-save {
  flex: 0 0 auto;
  padding: 4px 12px; font-size: 10px; letter-spacing: 0.1em; line-height: 1.6;
}
.exch-tradfi-row .tf-hint {
  margin-top: 7px; font-size: 11px; line-height: 1.45; color: var(--ink-mute);
}
.exch-tradfi-row .tf-cell { display: flex; flex-direction: column; justify-content: center; }
.exch-tradfi-row .tf-val { display: flex; align-items: center; gap: 6px; font-size: 14px; }
@media (max-width: 380px) {
  .exch-tradfi-desc { grid-column: auto; }
  .exch-tradfi-row .tf-cell { justify-content: flex-start; }
}
.exch-card-perms { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-2); }

.exch-webuid { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.exch-webuid-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.exch-webuid-n { font-weight: 600; }
.exch-webuid-hint { line-height: 1.5; }
.exch-webuid-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.exch-webuid-row > :first-child { flex: 1 1 220px; min-width: 0; }
.perm {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 3px 8px; border: 1px solid var(--line-2);
}
.exch-card-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line-2);
  display: flex; gap: 8px;
}

.exch-card.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  border: 1px dashed var(--line);
  background: transparent;
  min-height: 290px;
  transition: border-color 150ms, background 150ms;
  cursor: pointer;
}
.exch-card.add:hover { border-color: var(--accent); background: oklch(from var(--accent) l c h / 0.04); }
.exch-add-glyph {
  font-family: var(--serif); font-style: normal;
  font-size: 64px; color: var(--accent); line-height: 1;
}
.exch-add-t { font-family: var(--serif); font-style: normal; font-size: 22px; color: var(--ink); }
.exch-add-s { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; }

.markets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.mk-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; justify-content: space-between; }
.markets-grid > .dash-card.big { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .markets-grid { grid-template-columns: 1fr; align-items: start; }
  .mk-side { justify-content: flex-start; }
  .markets-grid > .dash-card:first-child { order: 1; }
  .markets-grid > .dash-card.big        { order: 2; }
  .markets-grid > .mk-side              { order: 3; }
}

@media (min-width: 1600px) {
  .markets-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.5fr); }
  .markets-grid > .dash-card.big { grid-column: auto; }
}

.depth { width: 100%; height: clamp(170px, 20vw, 300px); display: block; }

.venue-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.5);
  font-size: 13px;
}
.venue-row:last-child { border-bottom: 0; }
.venue-l { display: flex; align-items: center; gap: 10px; }
.venue-l b { color: var(--ink); }

.route-row {
  display: grid; grid-template-columns: 60px 80px 1fr 110px 70px;
  gap: 10px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed oklch(from var(--line-2) l c h / 0.5);
  font-size: 13px;
  color: var(--ink-dim);
}
.route-row:last-child { border-bottom: 0; }
.route-row b { color: var(--ink); }
.route-side {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 3px 6px; text-transform: uppercase; width: fit-content;
}
.route-side.buy  { color: var(--good); border: 1px solid oklch(from var(--good) l c h / 0.4); }
.route-side.sell { color: var(--bad); border: 1px solid oklch(from var(--bad) l c h / 0.4); }

.wl-table { display: flex; flex-direction: column; overflow-x: auto; }
.wl-head, .wl-row {
  display: grid;
  grid-template-columns: 30px 130px 130px 90px 110px 90px 110px 30px;
  gap: 14px; align-items: center;
  padding: 14px 22px;
  min-width: 880px;
}
.wl-head {
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.wl-row { border-bottom: 1px solid var(--line-2); transition: background 120ms; cursor: pointer; }
.wl-row:hover { background: oklch(from var(--bg-3) l c h / 0.5); }
.wl-row:last-child { border-bottom: 0; }
.wl-star { color: var(--accent); }
.wl-row .up { color: var(--accent); }
.wl-row .dn { color: var(--bad); }
.hover-arr { color: var(--ink-mute); transition: color 120ms; }
.wl-row:hover .hover-arr { color: var(--accent); }

.settings-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px;
}
@media (max-width: 1280px) { .settings-grid { grid-template-columns: 1fr; } }

.av-uploader { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.av-preview {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent); color: oklch(0.15 0 0);
  font-family: var(--serif); font-size: 26px; line-height: 1;
  border: 1px solid var(--line-2);
}
.av-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.av-actions .av-hint { margin: 4px 0 0; flex-basis: 100%; }
.pw-form { display: flex; flex-direction: column; gap: 12px; }
.brand-mark { gap: 12px; }
.brand-mark .krytes-mark {
  filter: drop-shadow(0 1px 1px oklch(0 0 0 / 0.5));
  transition: transform 200ms ease;
}
.brand-mark:hover .krytes-mark { transform: scale(1.04) rotate(-3deg); }
.krytes-mark { display: block; }

:root {
  --metal-grad: linear-gradient(180deg,
    var(--metal-hi, oklch(0.97 0.003 250)) 0%,
    oklch(0.84 0.003 250) 35%,
    oklch(0.70 0.003 250) 60%,
    oklch(0.50 0.004 250) 100%);
  --metal-grad-soft: linear-gradient(180deg,
    oklch(0.92 0.003 250) 0%,
    oklch(0.78 0.003 250) 50%,
    oklch(0.58 0.004 250) 100%);
  --metal-grad-dark: linear-gradient(180deg,
    oklch(0.34 0.004 250) 0%,
    oklch(0.26 0.004 250) 50%,
    oklch(0.20 0.004 250) 100%);
  --metal-emboss: inset 0 1px 0 oklch(1 0 0 / 0.55), inset 0 -1px 0 oklch(0 0 0 / 0.35);
  --metal-shadow: 0 1px 2px oklch(0 0 0 / 0.5), 0 4px 14px oklch(0 0 0 / 0.35);
}

.exch-logo,
.dt-avatar {
  background: var(--metal-grad) !important;
  color: oklch(0.15 0 0) !important;
  box-shadow: var(--metal-emboss), 0 1px 2px oklch(0 0 0 / 0.5);
  position: relative;
  overflow: hidden;
}
.exch-logo::after,
.dt-avatar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.18) 0%, transparent 40%);
  pointer-events: none;
}

.cb.on {
  background: var(--metal-grad) !important;
  border-color: oklch(0.78 0.003 250) !important;
  box-shadow: var(--metal-emboss);
}
.cb-check { color: oklch(0.15 0 0); }

.toggle.on {
  background: var(--metal-grad) !important;
  box-shadow: var(--metal-emboss);
}
.toggle.on i { background: oklch(0.15 0 0); }

.seg-tabs button.on {
  background: var(--metal-grad) !important;
  color: oklch(0.15 0 0);
  box-shadow: var(--metal-emboss);
}

.dash-nav button.on .dn-bar { background: var(--metal-grad) !important; }
.dash-nav button.on .dn-i,
.dn-i { color: oklch(0.86 0.003 250) !important; }
.dash-nav button[data-view="contacts"] .dn-i, .dash-nav button[data-view="support"] .dn-i { color: #ffd400 !important; }
.dash-nav button[data-view="contacts"].on .dn-bar, .dash-nav button[data-view="support"].on .dn-bar { background: #ffd400 !important; }
html[data-dash-theme="light"] .dash-nav button[data-view="contacts"] .dn-i, html[data-dash-theme="light"] .dash-nav button[data-view="support"] .dn-i { color: #b8860b !important; }
html[data-dash-theme="light"] .dash-nav button[data-view="contacts"].on .dn-bar, html[data-dash-theme="light"] .dash-nav button[data-view="support"].on .dn-bar { background: #b8860b !important; }
.dash-nav button[data-view="author"] .dn-i { color: #3b9cff !important; }
.dash-nav button[data-view="author"].on .dn-bar { background: #3b9cff !important; }
html[data-dash-theme="light"] .dash-nav button[data-view="author"] .dn-i { color: #1f6fd1 !important; }
html[data-dash-theme="light"] .dash-nav button[data-view="author"].on .dn-bar { background: #1f6fd1 !important; }

.onb-loader-bar i,
.fee-bar i,
.alloc-bar i,
.kload-bar i {
  background: var(--metal-grad) !important;
  box-shadow: var(--metal-emboss), 0 0 10px oklch(0.85 0.003 250 / 0.3);
}

.exch-conn-status.ok i,
.exch-conn-perms i.ok,
.notif-item.k-alert .ni-mark,
.sig-item.k-alert .sig-mark,
.dt-dot,
.dash-pulse i {
  background: var(--metal-grad) !important;
  box-shadow: 0 0 8px oklch(0.85 0.003 250 / 0.5), inset 0 1px 0 oklch(1 0 0 / 0.6) !important;
}

.exch-add-glyph {
  background: var(--metal-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 oklch(1 0 0 / 0.2));
}

.auth-form .btn.primary,
.exch-conn-form .btn.primary,
.onb-actions .btn.primary,
.settings-grid .btn.primary,
.exch-card .btn.primary,
.um-list .btn.primary,
.dash-card .btn.primary {
  background: var(--metal-grad) !important;
  color: oklch(0.13 0 0) !important;
  border-color: oklch(0.82 0.003 250) !important;
  box-shadow: var(--metal-emboss), 0 2px 6px oklch(0 0 0 / 0.35) !important;
}

.dash-card,
.exch-card,
.kpi,
.dash-side,
.dash-top {
  background-image: linear-gradient(180deg,
    oklch(0.27 0.004 250 / 0.55) 0%,
    oklch(0.21 0.004 250 / 0.55) 100%) !important;
  background-color: transparent !important;
  border-color: oklch(0.34 0.004 250) !important;
}

.dash-card-hd,
.conn-row,
.tr-head,
.wl-head,
.exch-card-hd {
  border-bottom-color: oklch(0.34 0.004 250) !important;
}

.input,
.dash-search,
.otp-cell {
  background: linear-gradient(180deg,
    oklch(0.22 0.004 250 / 0.85) 0%,
    oklch(0.27 0.004 250 / 0.85) 100%) !important;
  border-color: oklch(0.40 0.005 250) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05), inset 0 -1px 0 oklch(0 0 0 / 0.4);
}
.input:focus-within,
.dash-search:focus-within {
  border-color: oklch(0.78 0.003 250) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), inset 0 -1px 0 oklch(0 0 0 / 0.4),
              0 0 0 1px oklch(0.78 0.003 250 / 0.25) !important;
}

.exch-conn-card { background: linear-gradient(180deg, oklch(0.27 0.004 250 / 0.55), oklch(0.21 0.004 250 / 0.55)) !important; }
.exch-conn-card.on,
.exch-conn-card.open { border-color: oklch(0.78 0.003 250) !important; }

.kpi-v {
  background: linear-gradient(180deg, oklch(1 0 0) 0%, oklch(0.86 0.003 250) 60%, oklch(0.62 0.003 250) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 oklch(0 0 0 / 0.3));
}

.eyebrow .dot,
.kload-pulse,
.kload-bar i::after {
  background: var(--metal-grad) !important;
  box-shadow: var(--metal-emboss), 0 0 12px oklch(0.85 0.003 250 / 0.5) !important;
}

.kload-glyph {
  background: var(--metal-grad) !important;
  color: oklch(0.13 0 0) !important;
  box-shadow: var(--metal-emboss), 0 2px 6px oklch(0 0 0 / 0.4);
  position: relative; overflow: hidden;
}
.kload-glyph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.25) 0%, transparent 45%);
}

.kload-headline h1,
.dash-h1 em,
.auth-headline em,
.form-title {
  background: linear-gradient(180deg, oklch(1 0 0) 0%, oklch(0.88 0.003 250) 50%, oklch(0.62 0.003 250) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 oklch(0 0 0 / 0.4));
}
.kload-eye::before,
.kload-eye::after { background: var(--metal-grad-soft) !important; opacity: 0.7; }
.kload-eye { color: oklch(0.86 0.003 250) !important; }

html[data-dash-theme="light"] .dash-side {
  background-image: linear-gradient(180deg,
    oklch(0.97 0.003 250) 0%,
    oklch(0.94 0.004 250) 100%) !important;
  background-color: transparent !important;
  border-right: 1px solid var(--line-2) !important;
  border-color: var(--line-2) !important;
}

html[data-dash-theme="light"] .dash-nav button {
  color: oklch(0.45 0.005 250);
}
html[data-dash-theme="light"] .dash-nav button.on {
  color: oklch(0.18 0.005 250);
}
html[data-dash-theme="light"] .dn-i {
  color: oklch(0.40 0.005 250) !important;
}
html[data-dash-theme="light"] .dash-nav button.on .dn-bar {
  background: linear-gradient(180deg,
    oklch(0.40 0.006 250),
    oklch(0.20 0.006 250)) !important;
}

html[data-dash-theme="light"] .kpi-v {
  background-image: linear-gradient(180deg,
    oklch(0.32 0.005 250) 0%,
    oklch(0.18 0.005 250) 60%,
    oklch(0.10 0.005 250) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 oklch(1 0 0 / 0.6));
}

html[data-dash-theme="light"] .alloc-bar i,
html[data-dash-theme="light"] .kload-bar i,
html[data-dash-theme="light"] .fee-bar i {
  background: linear-gradient(180deg,
    oklch(0.40 0.006 250),
    oklch(0.22 0.006 250)) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2),
              inset 0 -1px 0 oklch(0 0 0 / 0.3) !important;
}

html[data-dash-theme="light"] .sig-item.k-alert .sig-mark,
html[data-dash-theme="light"] .dash-pulse i {
  background: oklch(0.40 0.005 250) !important;
  box-shadow: 0 0 6px oklch(0.40 0.005 250 / 0.4),
              inset 0 1px 0 oklch(1 0 0 / 0.3) !important;
}

html[data-dash-theme="light"] .cb.on,
html[data-dash-theme="light"] .toggle.on {
  background: linear-gradient(180deg,
    oklch(0.40 0.006 250),
    oklch(0.22 0.006 250)) !important;
  border-color: oklch(0.22 0.006 250) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.18),
              inset 0 -1px 0 oklch(0 0 0 / 0.4) !important;
}
html[data-dash-theme="light"] .cb-check {
  color: oklch(0.97 0 0);
}
html[data-dash-theme="light"] .toggle.on i {
  background: oklch(0.97 0 0);
}
html[data-dash-theme="light"] .seg-tabs button.on {
  color: oklch(0.97 0 0) !important;
}
html[data-dash-theme="light"] .seg-tabs {
  background: oklch(0.96 0.004 250 / 0.8);
}

html[data-dash-theme="light"] .exch-add-glyph,
html[data-dash-theme="light"] .form-title {
  background-image: linear-gradient(180deg,
    oklch(0.32 0.006 250) 0%,
    oklch(0.18 0.006 250) 50%,
    oklch(0.08 0.006 250) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 1px 0 oklch(1 0 0 / 0.5));
}

html[data-dash-theme="light"] .dash-h1 em,
html[data-dash-theme="light"] .news-h1-wide em,
html[data-dash-theme="light"] .auth-headline em {
  color: oklch(0.45 0.012 250);
}

html[data-dash-theme="light"] .kpi svg path,
html[data-dash-theme="light"] .kpi svg polyline,
html[data-dash-theme="light"] .dash-card svg path:not([stroke="currentColor"]),
html[data-dash-theme="light"] .dash-card svg polyline {
  stroke: oklch(0.40 0.005 250);
}

html[data-dash-theme="light"] .kpi-d.up { color: oklch(0.50 0.13 150); }
html[data-dash-theme="light"] .kpi-d.dn { color: oklch(0.55 0.18 27); }
html[data-dash-theme="light"] .tr-row .up,
html[data-dash-theme="light"] .wl-row .up { color: oklch(0.50 0.13 150); }

html[data-dash-theme="light"] .dash-side .brand,
html[data-dash-theme="light"] .dash-side .brand-mark {
  filter: invert(0.92) hue-rotate(180deg);
}

html[data-dash-theme="light"] .pill {
  background: oklch(1 0 0 / 0.5);
}

.popover {
  background: linear-gradient(180deg, oklch(0.26 0.004 250 / 0.98), oklch(0.20 0.004 250 / 0.98)) !important;
  border-color: oklch(0.40 0.005 250) !important;
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.6), inset 0 1px 0 oklch(1 0 0 / 0.08);
}

.kpi.big::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.15), transparent);
  pointer-events: none;
}

.auth-tape {
  background: linear-gradient(180deg, oklch(0.22 0.004 250 / 0.6), oklch(0.18 0.004 250 / 0.6)) !important;
  border-color: oklch(0.34 0.004 250) !important;
}

.hero { position: relative; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-bg-fade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 30%, transparent 0%, transparent 30%, oklch(from var(--bg) l c h / 0.55) 75%),
    linear-gradient(180deg, oklch(from var(--bg) l c h / 0.0) 0%, oklch(from var(--bg) l c h / 0.0) 60%, oklch(from var(--bg) l c h / 0.7) 100%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-h1 .hw { display: inline-block; }
.hero-h1.is-revealing .hw { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hero-h1.is-revealing .hw { animation: heroWordIn 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.hero-h1.is-revealing .hw:nth-child(1) { animation-delay: 0.20s; }
.hero-h1.is-revealing br + em.hw { animation-delay: 0.55s; }
.hero-h1.is-revealing br + em.hw + br + em.hw { animation-delay: 0.85s; }
@keyframes heroWordIn {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.nav-theme {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-theme:hover {
  color: var(--ink);
  background: oklch(1 0 0 / 0.08);
  border-color: var(--line);
}
html[data-dash-theme="light"] .nav-theme {
  background: oklch(1 0 0 / 0.5);
  border-color: var(--line-2);
  color: oklch(0.40 0.005 250);
}
html[data-dash-theme="light"] .nav-theme:hover {
  background: oklch(1 0 0 / 0.8);
  color: oklch(0.18 0.005 250);
}

html:not([data-dash-theme="light"]) .kpi-d.up,
html:not([data-dash-theme="light"]) .tr-row .up,
html:not([data-dash-theme="light"]) .wl-row .up,
html:not([data-dash-theme="light"]) .up { color: oklch(0.92 0.07 150) !important; }

html[data-dash-theme="light"] .kpi-d.up,
html[data-dash-theme="light"] .tr-row .up,
html[data-dash-theme="light"] .wl-row .up,
html[data-dash-theme="light"] .up { color: oklch(0.46 0.13 150) !important; }
html[data-dash-theme="light"] .kpi-d.dn,
html[data-dash-theme="light"] .tr-row .dn,
html[data-dash-theme="light"] .wl-row .dn,
html[data-dash-theme="light"] .dn { color: oklch(0.50 0.18 27) !important; }
html[data-dash-theme="light"] .kpi-s { color: var(--ink-mute) !important; }

.dash-search { cursor: pointer; text-align: left; font-family: var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.dash-search:hover { border-color: var(--line); }
.dash-search:focus-visible { border-color: var(--accent); outline: none; }
.ds-ph { flex: 1 1 auto; min-width: 0; color: var(--ink-mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cmdk-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
  background: oklch(from var(--bg) l c h / 0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: cmdk-fade 120ms ease;
}
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
.cmdk {
  width: 100%; max-width: 560px; max-height: 70vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.98), oklch(from var(--bg) l c h / 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px oklch(from var(--bg) l c h / 0.7), inset 0 0 0 1px oklch(from var(--metal-hi) l c h / 0.06);
  border-radius: 3px; overflow: hidden;
  animation: cmdk-pop 140ms cubic-bezier(.2,.8,.2,1);
}
@keyframes cmdk-pop { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--line-2); flex-shrink: 0; }
.cmdk-i { color: var(--ink-mute); display: inline-flex; flex-shrink: 0; }
.cmdk-i svg { display: block; }
.cmdk-input input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.cmdk-input input::placeholder { color: var(--ink-mute); }
.cmdk-esc { font-size: 10px; color: var(--ink-mute); padding: 3px 7px; border: 1px solid var(--line-2); flex-shrink: 0; letter-spacing: .08em; }
.cmdk-list { overflow-y: auto; padding: 6px; flex: 1 1 auto; }
.cmdk-empty { padding: 28px 10px; text-align: center; color: var(--ink-mute); font-size: 12px; }
.cmdk-group { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); padding: 12px 10px 6px; }
.cmdk-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-dim); text-align: left; border-radius: 2px;
}
.cmdk-row.on { background: oklch(from var(--bg-3) l c h / 0.9); color: var(--ink); }
.cmdk-row-i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; color: var(--ink-mute); border: 1px solid var(--line-2); background: oklch(from var(--bg) l c h / 0.5); }
.cmdk-row.on .cmdk-row-i { color: var(--ink); border-color: var(--line); }
.cmdk-row-i svg { display: block; }
.cmdk-tick { font-size: 9px; font-weight: 600; letter-spacing: .01em; color: inherit; }
.cmdk-row-l { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-row-s { color: var(--ink-mute); font-size: 11px; font-style: normal; }
.cmdk-row-go { color: var(--ink-mute); font-size: 12px; flex-shrink: 0; opacity: .7; }
.cmdk-row.danger .cmdk-row-l { color: var(--bad); }
.cmdk-row.danger.on { background: oklch(from var(--bad) l c h / 0.16); }
.cmdk-row.danger.on .cmdk-row-i { color: var(--bad); border-color: oklch(from var(--bad) l c h / 0.5); }
.cmdk-foot { display: flex; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--line-2); flex-shrink: 0; color: var(--ink-mute); font-size: 10.5px; }
.cmdk-foot b { color: var(--ink-dim); font-weight: 600; }
@media (max-width: 560px) { .cmdk-overlay { padding: 8vh 10px 10px; } .cmdk-foot { display: none; } }

.kpi-grid { border-radius: 5px; overflow: hidden; }
.kpi {
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.60), oklch(from var(--bg) l c h / 0.42));
  padding: 20px 22px 14px;
  transition: background 170ms ease, box-shadow 170ms ease;
}
.kpi.big {
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.95), oklch(from var(--bg-2) l c h / 0.62));
}
.kpi:hover {
  background: linear-gradient(180deg, oklch(from var(--bg-3) l c h / 0.62), oklch(from var(--bg-2) l c h / 0.40));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
}
.kpi::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.05), transparent);
  transition: background 170ms ease;
}
.kpi:hover::after { background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.13), transparent); }
.kpi-k { display: flex; align-items: center; gap: 7px; }
.kpi-k::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto;
  background: oklch(0.92 0.07 150); box-shadow: 0 0 7px oklch(0.92 0.07 150 / 0.5);
}
.kpi.dn .kpi-k::before { background: var(--bad); box-shadow: 0 0 7px oklch(from var(--bad) l c h / 0.55); }
.kpi-v { letter-spacing: -0.02em; }
.kpi-row { gap: 10px; align-items: baseline; padding-top: 4px; }
.kpi .spark { height: 40px; margin-top: 10px; opacity: 0.95; }
html[data-dash-theme="light"] .kpi-k::before { box-shadow: 0 0 6px oklch(0.46 0.13 150 / 0.4); background: oklch(0.46 0.13 150); }

.dt-lang { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-mute); }
.dt-lang:hover { color: var(--ink); }
.dt-lang span { line-height: 1; }

.ov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ov-head-l { min-width: 0; }
.exch-switch { position: relative; flex: 0 0 auto; margin-top: 6px; }
.exch-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px 0 8px;
  background: oklch(from var(--bg-2) l c h / 0.6); border: 1px solid var(--line-2);
  color: var(--ink); cursor: pointer; transition: border-color 140ms ease, background 140ms ease;
}
.exch-chip:hover { border-color: var(--line); background: oklch(from var(--bg-3) l c h / 0.5); }
.exch-mk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 auto; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: oklch(0.15 0 0);
  background: linear-gradient(180deg, var(--metal-hi), oklch(0.78 0.003 250) 50%, var(--metal-lo));
}
.exch-mk.sm { width: 20px; height: 20px; font-size: 10px; }
.exch-nm { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.exch-chev { display: inline-flex; color: var(--ink-mute); }
.exch-pop {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; z-index: 60; padding: 5px;
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.98), oklch(from var(--bg) l c h / 0.98));
  border: 1px solid var(--line); box-shadow: 0 18px 50px oklch(from var(--bg) l c h / 0.65);
}
.exch-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 13px;
}
.exch-opt:not(.off):hover { background: oklch(from var(--bg-3) l c h / 0.7); color: var(--ink); }
.exch-opt.on { color: var(--ink); }
.exch-opt.off { cursor: not-allowed; opacity: 0.45; }
.exch-opt.off .exch-mk { filter: grayscale(1) brightness(0.72); }
.exch-opt .exch-nm { flex: 1 1 auto; }
.exch-tick { color: oklch(0.92 0.07 150); font-size: 13px; flex: 0 0 auto; }
.exch-soon { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; flex: 0 0 auto; }

.dash-grid { gap: 18px; }
.dash-h1 { font-size: clamp(22px, 5.2vw, 42px); line-height: 1.04; margin: 6px 0 6px; overflow-wrap: anywhere; }
.dash-lede { font-size: clamp(12px, 1.05vw, 14px); }
.kpi { min-height: 120px; padding: 15px 18px 11px; gap: 7px; min-width: 0; }
.kpi-v { font-size: clamp(22px, 4.2vw, 31px); min-width: 0; overflow-wrap: anywhere; }
.kpi.big .kpi-v { font-size: clamp(28px, 5.4vw, 42px); }
.kpi .spark { height: 28px; margin-top: 5px; }
.kpi-k { font-size: 9.5px; }
.kpi-row { padding-top: 0; }
.dash-cols { gap: 16px; }
.dash-card {
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.55), oklch(from var(--bg) l c h / 0.36));
  border-radius: 4px; transition: border-color 160ms ease, background 160ms ease;
}
.dash-card:hover { border-color: var(--line); }
.dash-card-hd { padding: 12px 18px; }
.dash-card-hd h3 { font-size: 18px; }
.dash-card-body { padding: 12px 18px; }
.dash-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px 10px; min-height: 60px; color: var(--ink-mute); text-align: center; }
.dash-empty-i { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-mute); background: oklch(from var(--bg) l c h / 0.4); }
.dash-empty-i svg { display: block; }
.dash-empty-t { font-size: 11.5px; letter-spacing: 0.02em; }
.fee-row { padding: 8px 0; }
.fee-foot { padding-top: 11px; margin-top: 4px; }
.conn-logo { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: block; }
.conn-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exch-mk { border-radius: 5px; }
.exch-mk.img { background: none; overflow: hidden; }
.exch-mk.img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dash-side { transition: padding 180ms ease; }
.dash-side-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.dash-side-hd .brand { margin: 0; flex: 1 1 auto; min-width: 0; }
.dash-collapse {
  flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: oklch(from var(--bg-3) l c h / 0.5);
  color: var(--ink-mute); cursor: pointer; border-radius: 5px;
  transition: color 140ms ease, border-color 140ms ease;
}
.dash-collapse:hover { color: var(--ink); border-color: var(--line); }
.dash-collapse svg { display: block; transition: transform 200ms ease; }
.dash-pulse { justify-content: flex-start; }
.dp-pct { margin-left: auto; }
@media (min-width: 1021px) {
  .dash[data-collapsed="1"] { grid-template-columns: 72px 1fr; }
  .dash[data-collapsed="1"] .dash-side { padding: 24px 0; align-items: center; }
  .dash[data-collapsed="1"] .dash-side-hd { flex-direction: column; gap: 14px; margin-bottom: 24px; width: 100%; }
  .dash[data-collapsed="1"] .dash-side-hd .brand { flex: 0 0 auto; justify-content: center; }
  .dash[data-collapsed="1"] .brand-txt { display: none; }
  .dash[data-collapsed="1"] .dash-collapse svg { transform: rotate(180deg); }
  .dash[data-collapsed="1"] .dash-nav { width: 100%; padding: 0 12px; }
  .dash[data-collapsed="1"] .dash-nav button { justify-content: center; padding: 11px 0; gap: 0; }
  .dash[data-collapsed="1"] .dn-l { display: none; }
  .dash[data-collapsed="1"] .dash-side-foot { width: 100%; }
  .dash[data-collapsed="1"] .dash-pulse { justify-content: center; }
  .dash[data-collapsed="1"] .dp-t, .dash[data-collapsed="1"] .dp-pct { display: none; }
  .dash[data-collapsed="1"] .dash-pulse .dp-i { margin-right: 0; }
}

.dash-grid { max-width: 1680px; margin-inline: auto; }
.dash-burger {
  display: none; flex: 0 0 auto; width: 34px; height: 34px;
  align-items: center; justify-content: center; border-radius: 5px;
  border: 1px solid var(--line-2); background: oklch(from var(--bg-2) l c h / 0.5);
  color: var(--ink-dim); cursor: pointer;
}
.dash-burger:hover { color: var(--ink); border-color: var(--line); }
.dash-burger svg { display: block; }
.dash-scrim { display: none; }
body[data-dash-drawer="open"] { overflow: hidden; }
@media (max-width: 1020px) {
  body[data-dash-drawer="open"] .dash-scrim {
    display: block; position: fixed; inset: 0; z-index: 190;
    background: oklch(0 0 0 / 0.5);
  }
}
@media (max-width: 768px) {
  .dash-body { padding: 22px 16px 48px; }
  .dash-grid { gap: 14px; }
  .ov-head { gap: 12px; }
  .exch-switch { margin-top: 0; }
  .dash-eyebrow.row-between { flex-direction: column; align-items: stretch; gap: 14px; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi.big { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi.big { grid-column: 1 / -1; }
  .jr-kpis .kpi:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .dash-body { padding: 16px 12px 36px; }
  .dash-card-hd h3 { font-size: 16px; }
}

.exch-card {
  background: linear-gradient(180deg, oklch(from var(--bg-2) l c h / 0.7), oklch(from var(--bg) l c h / 0.42));
  border-radius: 4px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.exch-card:hover { border-color: var(--line); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05); }
.conn-logo.lg { width: 42px; height: 42px; border-radius: 9px; }
.exch-msg { padding: 12px 16px; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line-2); }
.exch-msg.ok  { color: oklch(0.92 0.07 150); border-color: oklch(0.55 0.10 150 / 0.45); background: oklch(0.55 0.10 150 / 0.08); }
.exch-msg.err { color: var(--bad); border-color: oklch(from var(--bad) l c h / 0.45); background: oklch(from var(--bad) l c h / 0.08); }
.exch-card-foot { align-items: center; flex-wrap: wrap; }
.exch-confirm-q { color: var(--ink-dim); font-size: 12px; }
.exch-confirm-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.exch-add-logos { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.exch-add-logo { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; opacity: 0.5; filter: grayscale(1); }
.exch-add-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exch-add-mk { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 11px; font-weight: 700; color: oklch(0.15 0 0); background: linear-gradient(180deg, var(--metal-hi), var(--metal-lo)); }
@media (max-width: 560px) { .exch-card-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) {
  .exch-card-body { grid-template-columns: 1fr; }
  .totp-actions { flex-wrap: wrap; }
  .ex-form-sel-lbl { width: 100%; }
  .exch-empty { padding: 38px 16px; min-height: 200px; }
  .exch-empty-t { font-size: 20px; }
}

.dash-nav button.locked { opacity: 0.4; cursor: not-allowed; }
.dash-nav button.locked:hover { background: transparent; color: var(--ink-mute); }
.dn-lock { margin-left: auto; display: inline-flex; color: var(--ink-mute); }
.dn-lock svg { display: block; }
.dash[data-collapsed="1"] .dn-lock { display: none; }
.um-list a.um-locked { opacity: 0.42; cursor: not-allowed; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.um-list a.um-locked:hover { background: transparent; color: var(--ink-dim); }
.um-lock { display: inline-flex; color: var(--ink-mute); flex: 0 0 auto; }
.um-lock svg { display: block; }
.exch-card-r { display: flex; align-items: center; gap: 8px; }
.exch-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 54px 24px; min-height: 280px;
  border: 1px dashed var(--line); border-radius: 4px;
  background: oklch(from var(--bg-2) l c h / 0.3);
}
.exch-empty-i { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-mute); }
.exch-empty-t { font-family: var(--serif); font-style: normal; font-size: 24px; color: var(--ink); }
.exch-empty-s { font-size: 12px; color: var(--ink-mute); max-width: 360px; line-height: 1.5; }
.exch-empty .btn.primary { margin-top: 8px; }
.ex-form-sel-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ex-form-sel-lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); flex: 0 0 auto; }
.ex-form-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-sel-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px;
  border: 1px solid var(--line-2); background: oklch(from var(--bg-2) l c h / 0.5);
  color: var(--ink-dim); cursor: pointer; border-radius: 6px; font-size: 13px;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.ex-sel-chip:not(.off):hover { color: var(--ink); border-color: var(--line); }
.ex-sel-chip.on { color: var(--ink); border-color: var(--accent); background: oklch(from var(--accent) l c h / 0.07); }
.ex-sel-chip.off { cursor: not-allowed; }
.ex-sel-mk { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px; overflow: hidden; }
.ex-sel-mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-sel-mk .mono { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 10px; font-weight: 700; color: oklch(0.15 0 0); background: linear-gradient(180deg, var(--metal-hi), var(--metal-lo)); }
.ex-sel-chip.off .ex-sel-mk { filter: grayscale(1); opacity: 0.6; }
.ex-sel-nm { font-weight: 500; }
.ex-sel-soon { font-size: 9.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.ex-check-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ex-check-t { font-family: var(--serif); font-style: normal; font-size: 22px; color: var(--ink); line-height: 1.1; }
.ex-check-steps { display: flex; flex-direction: column; gap: 2px; }
.ex-check-step { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-size: 14px; color: var(--ink-mute); transition: color 220ms ease; }
.ex-check-step.is-active { color: var(--ink); }
.ex-check-step.is-done { color: var(--ink-dim); }
.ex-check-step.is-fail { color: var(--bad); }
.ex-ck-i { width: 18px; height: 18px; flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; }
.ex-ck-i.pending { border: 1.5px solid var(--line-2); }
.ex-ck-i.active { border: 1.5px solid var(--line-2); border-top-color: var(--accent); animation: exspin 700ms linear infinite; }
.ex-ck-i.done { background: oklch(0.92 0.07 150); color: oklch(0.20 0.05 150); }
.ex-ck-i.fail { background: var(--bad); color: oklch(0.99 0 0); }
@keyframes exspin { to { transform: rotate(360deg); } }

@media (max-width: 440px) {
  .seg-tabs.wide button { padding: 9px 7px; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .seg-tabs.wide button { padding: 9px 4px; font-size: 11px; }
}
@media (max-width: 520px) {
  .kpi-v { font-size: clamp(17px, 4.4vw, 31px); }
}

.cv { padding: 4px 2px 28px; display: flex; flex-direction: column; gap: 14px; }
.cv-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.4px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245,197,66,0.35); color: #b98900; margin-top: 10px; }
.cv-note-dot { width: 6px; height: 6px; border-radius: 50%; background: #f5c542; box-shadow: 0 0 8px rgba(245,197,66,0.8); flex: none; }
.cv-note-live { border-color: rgba(53,208,127,0.4); color: #1f9d5f; }
.cv-note-live .cv-note-dot { background: #35d07f; box-shadow: 0 0 8px rgba(53,208,127,0.9); }
.cv-card { padding: 22px 24px; }
.cv-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(128,128,128,0.14); }
.cv-card-hd h3 { font-family: var(--sans); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.65; margin: 0; font-weight: 600; }
.cv-count { font-family: var(--sans); font-size: 11px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(53,208,127,0.35); color: #35d07f; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cv-count i { width: 6px; height: 6px; border-radius: 50%; background: #35d07f; font-style: normal; }
.cv-cols { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cv-sub { font-size: 13px; opacity: 0.75; margin: 0 0 12px; }
.cv-btn { border: 1px solid rgba(128,128,128,0.35); background: transparent; color: inherit; border-radius: 9px; padding: 8px 15px; font-size: 13px; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.cv-btn:hover { background: rgba(128,128,128,0.10); border-color: rgba(128,128,128,0.55); }
.cv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-btn:disabled { opacity: 0.5; cursor: default; }
.cv-primary { background: var(--accent,#1e6bea); border-color: var(--accent,#1e6bea); color: var(--bg,#fff); font-weight: 600; }
.cv-primary:hover { background: var(--accent,#1e6bea); filter: brightness(1.06); }
.cv-dirty { box-shadow: 0 0 0 2px rgba(240,185,11,.55); }
@keyframes cvDirtyPulse { 0%,100% { box-shadow: 0 0 0 2px rgba(240,185,11,.55); } 50% { box-shadow: 0 0 0 4px rgba(240,185,11,.28); } }
@media (prefers-reduced-motion: no-preference) { .cv-dirty { animation: cvDirtyPulse 1.8s ease-in-out infinite; } }
.cv-wide { width: 100%; max-width: 480px; display: block; padding: 11px 15px; font-size: 14px; }
.cv-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.cv-submit .cv-consent { margin: 0; flex: 1 1 340px; }
.cv-submit .cv-wide { width: auto; max-width: none; flex: 0 0 auto; padding: 11px 34px; }
.cv-sm { padding: 5px 10px; font-size: 12px; }
.cv-warn { border-color: rgba(220,80,60,0.6); color: #d9583f; }
.cv-kick { border-color: #d9583f; background: rgba(220,80,60,0.14); color: #d9583f; font-weight: 600; }
.cv-ok { border-color: rgba(53,208,127,0.5); color: #35d07f; }
.cv-code-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cv-code { font-family: var(--sans); font-size: 15px; padding: 7px 14px; border-radius: 8px; background: rgba(128,128,128,0.12); border: 1px dashed rgba(128,128,128,0.35); letter-spacing: 1.5px; }
.cv-share { font-size: 12px; opacity: 0.55; }
p.cv-share { margin: 0 0 10px; }
.cv-code-row .cv-btn { line-height: 1.2; }
.cv-strip { display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; padding: 12px 0 2px 0; }
.cv-avbtn { border: 0; background: transparent; padding: 0; margin-left: -9px; cursor: pointer; border-radius: 50%; position: relative; transition: transform 0.15s ease; }
.cv-avbtn:first-child { margin-left: 0; }
.cv-avbtn:hover, .cv-avbtn.on { transform: translateY(-3px); z-index: 2; }
.cv-avbtn.on .cv-av { box-shadow: 0 0 0 2px var(--accent,#1e6bea); }
.cv-avbtn:focus-visible { outline: 2px solid var(--accent,#1e6bea); outline-offset: 2px; }
.cv-av { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; overflow: hidden; border: 2px solid rgba(128,128,128,0.45); background: rgba(128,128,128,0.15); box-sizing: border-box; flex: none; }
.cv-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-av i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.92); font-family: var(--sans); }
.cv-av.lg { width: 52px; height: 52px; }
.cv-av.lg i { font-size: 19px; }
.cv-av-active { border-color: #35d07f; }
.cv-av-paused { border-color: #f5c542; }
.cv-av-stopped { border-color: rgba(128,128,128,0.4); filter: grayscale(0.7); opacity: 0.75; }
.cv-more { margin-left: -9px; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed rgba(128,128,128,0.4); display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 11px; opacity: 0.7; box-sizing: border-box; background: rgba(128,128,128,0.08); }
.cv-member { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(128,128,128,0.22); border-radius: 12px; background: rgba(128,128,128,0.06); animation: cvIn 0.18s ease; flex-wrap: wrap; }
@keyframes cvIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cv-member-i { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 3px; }
.cv-member-i b { font-size: 14.5px; }
.cv-member-meta { font-family: var(--sans); font-size: 11.5px; opacity: 0.6; letter-spacing: 0.3px; }
.cv-inp { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; border: 1px solid rgba(128,128,128,0.35); background: rgba(128,128,128,0.06); color: inherit; font-size: 14px; margin-bottom: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.cv-inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent); }
.cv-code-inp { font-family: var(--sans); letter-spacing: 0.8px; }
.cv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px 14px; margin-bottom: 12px; }
.cv-field { display: flex; flex-direction: column; gap: 5px; }
.cv-field .cv-inp { margin-bottom: 0; }
.cv-field > span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.55; }
.cv-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; opacity: 0.9; margin: 4px 0 12px; cursor: pointer; }
.cv-consent input { margin-top: 3px; }
.cv-msg { font-size: 12.5px; color: #d9583f; margin-top: 10px; }
.cv-msg-ok { color: #1f9d5f; }
.cv-gear { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 9px; }
.cv-gear svg { display: block; }
.cv-gear:hover { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.cv-editor { margin: 2px 0 12px 52px; padding: 12px 14px 10px; border: 1px solid rgba(128,128,128,0.2); border-radius: 10px; background: rgba(128,128,128,0.05); animation: cvIn 0.18s ease; }
.cv-editor .cv-grid { grid-template-columns: repeat(3,1fr); }
.cv-editor .cv-consent { margin: 2px 0 10px; }
.cv-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(128,128,128,0.12); font-size: 13.5px; }
.cv-srow:last-of-type { border-bottom: none; }
.cv-srow-i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-srow-i b { display: flex; align-items: center; font-size: 14px; }
.cv-srow-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cv-badge { display: inline-block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 999px; margin: 0 6px; text-transform: uppercase; white-space: nowrap; }
.cv-st-active,.cv-act-placed { background: rgba(53,208,127,0.18); color: #1f9d5f; }
.cv-st-paused,.cv-act-skipped { background: rgba(245,197,66,0.20); color: #b98900; }
.cv-st-stopped,.cv-act-error { background: rgba(234,57,67,0.18); color: #d9583f; }
.cv-dim { opacity: 0.55; }
.cv-arow { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,0.09); }
.cv-arow:last-child { border-bottom: none; }
.cv-atext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-adot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: rgba(128,128,128,0.5); }
.cv-adot.placed { background: #35d07f; }
.cv-adot.skipped { background: #f5c542; }
.cv-adot.error { background: #ea3943; }
.cv-atime { margin-left: auto; font-family: var(--sans); font-size: 10.5px; opacity: 0.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-load { opacity: 0.55; }
.cv-hint { font-size: 11.5px; opacity: 0.55; margin: 2px 0 10px; }
.cv-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 2px 0 14px; }
.cv-step { display: flex; flex-direction: column; gap: 5px; border: 1px solid rgba(128,128,128,0.16); border-radius: 12px; padding: 14px 16px; background: rgba(128,128,128,0.04); }
.cv-step i { font-style: normal; font-family: var(--sans); font-size: 10px; letter-spacing: 1.2px; color: var(--accent); }
.cv-step b { font-size: 13.5px; }
.cv-step span { font-size: 12px; opacity: 0.6; line-height: 1.45; }
.cv-arow-dim { opacity: 0.55; }
.cv-anum { font-family: var(--mono); font-size: 10px; color: rgba(160,170,185,0.55); width: 20px; flex-shrink: 0; text-align: right; }
.cv-acnt { font-family: var(--mono); font-size: 10.5px; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: rgba(200,210,225,0.85); flex-shrink: 0; cursor: default; }
.cv-amore { display: block; margin: 10px auto 0; background: none; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: rgba(200,210,225,0.8); font-size: 12px; padding: 6px 14px; cursor: pointer; transition: border-color .15s, color .15s; }
.cv-amore:hover { border-color: var(--accent, #d9b45b); color: var(--accent, #d9b45b); }
.cv-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.cv-page { min-width: 26px; height: 26px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; line-height: 1; color: rgba(160,170,185,0.7); background: transparent; border: 1px solid rgba(128,128,128,0.30); border-radius: 7px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.cv-page:hover { color: var(--ink, #f4f7fc); border-color: rgba(128,128,128,0.55); }
.cv-page.on { color: var(--ink, #f4f7fc); background: rgba(128,128,128,0.16); border-color: rgba(128,128,128,0.5); font-weight: 600; }
.cv-page-nav { font-size: 15px; }
.cv-page-gap { color: rgba(160,170,185,0.5); padding: 0 2px; user-select: none; }
.cv-arole { opacity: 0.65; margin-right: 6px; }
.cv-cols > .cv-card { container-type: inline-size; }
@container (max-width: 460px) { .cv-arole { display: none; } }
.cv-areason { opacity: 0.6; }
.cv-adot.closed { background: #4a9eff; }
.cv-adot.reduced,.cv-adot.auto_pause { background: #f5c542; }
.cv-adot.kicked { background: #ea3943; }
.cv-act-closed { background: rgba(74,158,255,0.16); color: #3c8de0; }
.cv-act-reduced,.cv-act-auto_pause { background: rgba(245,197,66,0.20); color: #b98900; }
.cv-act-kicked { background: rgba(234,57,67,0.18); color: #d9583f; }
.cv-act-dry_run { background: rgba(128,128,128,0.16); color: inherit; opacity: 0.75; }
.cv-adot.added { background: #35d07f; }
.cv-adot.detached { background: #f5c542; }
.cv-adot.protected { background: #4a9eff; }
.cv-adot.signal { background: #b284f6; }
.cv-act-added { background: rgba(53,208,127,0.12); color: #2aa465; }
.cv-act-detached { background: rgba(245,197,66,0.20); color: #b98900; }
.cv-act-protected { background: rgba(74,158,255,0.12); color: #3c8de0; }
.cv-act-signal { background: rgba(178,132,246,0.16); color: #8f5fd6; }
.cv-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 10px 0 12px; }
@media (max-width:960px){ .cv-modes { grid-template-columns: 1fr; } }
.cv-mode { display: block; position: relative; border: 1px solid rgba(128,128,128,0.22); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: rgba(128,128,128,0.04); transition: border-color 0.15s, background 0.15s; }
.cv-mode:hover { border-color: rgba(128,128,128,0.4); background: rgba(128,128,128,0.08); }
.cv-mode.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 7%, transparent); }
.cv-mode input { position: absolute; opacity: 0; pointer-events: none; }
.cv-mode-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cv-mode-t::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(128,128,128,0.5); flex: 0 0 auto; box-sizing: border-box; }
.cv-mode.on .cv-mode-t::before { border: 4px solid var(--accent); }
.cv-mode-rec { font-style: normal; font-family: var(--sans); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); border-radius: 999px; padding: 1px 7px; }
.cv-mode-d { display: block; margin: 5px 0 0 20px; font-size: 12px; opacity: 0.65; line-height: 1.45; }
.cv-adv { margin: 2px 0 12px; border: 1px solid rgba(128,128,128,0.18); border-radius: 10px; padding: 0 12px; background: rgba(128,128,128,0.04); }
.cv-adv summary { cursor: pointer; font-family: var(--sans); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.6; padding: 11px 0; list-style: none; user-select: none; transition: opacity 0.15s; }
.cv-adv summary:hover { opacity: 0.9; }
.cv-adv summary::-webkit-details-marker { display: none; }
.cv-adv summary::before { content: "▸ "; }
.cv-adv[open] summary::before { content: "▾ "; }
.cv-adv[open] { padding-bottom: 12px; }
.cv-adv[open] summary { border-bottom: 1px solid rgba(128,128,128,0.14); margin-bottom: 12px; }
.cv-adv .cv-grid { grid-template-columns: repeat(4,1fr); }
@media (max-width:960px){ .cv-adv .cv-grid { grid-template-columns: repeat(2,1fr); } }
.cv-adv .cv-hint { margin: 8px 0 6px; }
.cv-adv .cv-consent { margin: 2px 0 8px; }
@media (max-width:960px){ .cv-cols { grid-template-columns: 1fr; } }
@media (max-width:640px){ .cv-grid { grid-template-columns: repeat(2,1fr); } .cv-card { padding: 16px 14px; } .cv-editor { margin-left: 0; } .cv-editor .cv-grid { grid-template-columns: repeat(2,1fr); } .cv-steps { grid-template-columns: 1fr; } .cv-srow { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce){ .cv-avbtn { transition: none; } .cv-member { animation: none; } }

.jr-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 4px; }
.jr-tabs-l { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.jr-tab { appearance: none; background: transparent; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 6px; opacity: 0.55; transition: opacity .15s, background .15s; }
.jr-tab:hover { opacity: 0.85; }
.jr-tab.on { opacity: 1; background: rgba(128,128,128,0.14); font-weight: 600; }
.jr-ghost { appearance: none; background: transparent; border: 1px solid var(--line); color: inherit;
  cursor: pointer; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 7px; opacity: 0.7; transition: opacity .15s, border-color .15s; }
.jr-ghost:hover:not(:disabled) { opacity: 1; border-color: rgba(128,128,128,0.4); }
.jr-ghost:disabled { opacity: 0.3; cursor: default; }

.jr-cov { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 2px; line-height: 1.6; }
.jr-cov-sep { opacity: 0.35; }
.jr-warn { color: var(--bad); opacity: 0.9; }

.jr-substats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.jr-sub { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(128,128,128,0.03); }
.jr-sub-k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; }
.jr-sub-v { font-size: 22px; line-height: 1.25; margin: 6px 0 3px; font-family: var(--sans); }
.jr-sub-s { font-size: 10.5px; }

.jr-cal-months { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 34px; }
.jr-cal-m { flex: 1 1 230px; min-width: 200px; max-width: 340px; }
.jr-cal-m-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.jr-cal-m-t { font-family: var(--sans); font-size: 15px; letter-spacing: 0.01em;
 }
.jr-cal-dow2 { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 5px;
  font-size: 9px; opacity: 0.38; text-align: center; }
.jr-cal-g { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.jr-cd { position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 5px; background: rgba(128,128,128,0.10); font-style: normal; }
.jr-cd > b { font-family: var(--sans); font-size: 9.5px; font-weight: 400;
  opacity: 0.42; line-height: 1; }
.jr-cd.empty { background: transparent; }
.jr-cd.out { opacity: 0.28; }
.jr-cd.up { background: color-mix(in srgb, var(--good) calc(var(--a,1) * 78%), transparent); cursor: pointer; }
.jr-cd.dn { background: color-mix(in srgb, var(--bad) calc(var(--a,1) * 78%), transparent); cursor: pointer; }
.jr-cd.up > b, .jr-cd.dn > b { opacity: 0.9; }
.jr-cd.up:hover, .jr-cd.dn:hover { outline: 1px solid rgba(255,255,255,0.45); outline-offset: 1px; }
.jr-cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 10px; }
.jr-cal-legend .jr-cd { width: 13px; height: 13px; flex: 0 0 auto; }

.jr-seg { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 14px; }
.jr-seg.sm { margin-bottom: 0; }
.jr-seg-b { appearance: none; background: transparent; border: 1px solid var(--line); color: inherit;
  cursor: pointer; font-family: var(--sans); font-size: 10px; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; opacity: 0.6; transition: opacity .15s, background .15s; }
.jr-seg-b:hover { opacity: 0.9; }
.jr-seg-b.on { opacity: 1; background: rgba(128,128,128,0.14); border-color: rgba(128,128,128,0.32); font-weight: 600; }

.jr-split { display: flex; flex-direction: column; }
.jr-split-h, .jr-split-r { display: grid; grid-template-columns: 2fr 0.7fr 1.1fr 0.8fr 1.1fr 1.4fr; gap: 10px; align-items: center; padding: 9px 2px; }
.jr-split-h { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.45; border-bottom: 1px solid var(--line); }
.jr-split-r { border-bottom: 1px solid rgba(128,128,128,0.08); font-size: 13px; }
.jr-split-r:last-child { border-bottom: 0; }
.jr-split-r.thin { opacity: 0.42; }
.jr-thin { font-style: normal; font-size: 9px; letter-spacing: 0.06em; opacity: 0.75; margin-left: 7px; }
.jr-bar-cell { display: block; height: 5px; border-radius: 999px; background: rgba(128,128,128,0.12); overflow: hidden; }
.jr-bar { display: block; height: 100%; background: var(--bad); opacity: 0.75; border-radius: 999px; }
.jr-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); opacity: 0.7; }

.jr-table { display: flex; flex-direction: column; }
.jr-tr { display: grid; grid-template-columns: 1.05fr 1.15fr 0.85fr 0.6fr 0.95fr 1fr 1fr 0.7fr 1fr 0.85fr;
  gap: 10px; align-items: center; padding: 11px 20px; border-bottom: 1px solid rgba(128,128,128,0.08);
  font-size: 12.5px; cursor: pointer; transition: background .12s; }
.jr-tr:hover { background: rgba(128,128,128,0.045); }
.jr-tr.open { background: rgba(128,128,128,0.06); }
.jr-tr-h { position: sticky; top: 0; z-index: 2; cursor: default; background: var(--bg-card, rgba(20,20,22,0.92));
  backdrop-filter: blur(6px); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; }
.jr-tr-h:hover { background: var(--bg-card, rgba(20,20,22,0.92)); }
.jr-th { cursor: pointer; user-select: none; white-space: nowrap; }
.jr-th.on { opacity: 1; font-weight: 700; }
.jr-tr .num, .jr-th.num { text-align: right; }
.jr-side { font-style: normal; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.85; }
.jr-detail { padding: 4px 20px 18px; border-bottom: 1px solid rgba(128,128,128,0.08); background: rgba(128,128,128,0.03); }
.jr-detail-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 22px; }
.jr-detail-g span { opacity: 0.5; }
.jr-detail-g b { font-weight: 500; margin-left: 8px; }

.jr-hero .dash-card-body { padding-top: 6px; }
.jr-hero-b { text-align: center; padding: 22px 0 26px; }
.jr-hero-v { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-family: var(--sans); }
.jr-pat .dash-card-hd { cursor: pointer; }
.jr-pat-why { font-size: 13.5px; line-height: 1.55; opacity: 0.8; }
.jr-pat-meta { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.jr-link { appearance: none; background: transparent; border: 0; padding: 0; color: var(--accent);
  cursor: pointer; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.05em; opacity: 0.85; }
.jr-link:hover { opacity: 1; text-decoration: underline; }
.jr-pat-formula { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.jr-pat-f { opacity: 0.65; line-height: 1.6; margin-bottom: 12px; }
.jr-pat-list { display: flex; flex-direction: column; gap: 2px; }
.jr-pat-row { display: grid; grid-template-columns: 1fr 1.2fr 0.8fr 1fr; gap: 10px; padding: 5px 0;
  border-bottom: 1px solid rgba(128,128,128,0.07); cursor: pointer; }
.jr-pat-row:hover { background: rgba(128,128,128,0.05); }

@media (max-width: 900px) {
  .jr-substats { grid-template-columns: 1fr; }
  .jr-split-h { display: none; }
  .jr-split-r { grid-template-columns: 1.4fr 0.6fr 1fr; grid-auto-rows: min-content; }
  .jr-split-r > :nth-child(n+4) { display: none; }
  .jr-tr { grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 12px 16px; }
  .jr-tr-h { display: none; }
  .jr-tr > span { display: flex; justify-content: space-between; }
  .jr-tr > span::before { content: attr(data-label); opacity: 0.45; font-size: 9.5px;
    text-transform: uppercase; letter-spacing: 0.08em; }
  .jr-tr .num { text-align: left; }
  .jr-hero-v { font-size: 30px; }
}

@media print {
  .dash-side, .dash-topbar, .jr-tabs, .jr-seg, .news-pager, .support-bubble { display: none !important; }
  .dash-main, .dash-grid { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .dash-card, .jr-sub, .kpi { border-color: rgba(0,0,0,0.25) !important; box-shadow: none !important;
    background: transparent !important; break-inside: avoid; }
  .jr-tr-h { position: static !important; backdrop-filter: none !important; }
  .jr-tr { break-inside: avoid; }
}
@media (max-width: 900px) {
  .jr-tcard .dash-card-hd { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.jr-pf { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.jr-pf-hd { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; margin-bottom: 8px; }
.jr-pf-desc { font-size: 12.5px; line-height: 1.55; opacity: 0.75; max-width: 620px; }
.jr-pf-chk { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 6px; cursor: pointer; font-size: 11.5px; }
.jr-pf-chk input { margin-top: 2px; accent-color: var(--accent); }
.jr-pf-warn { margin: 8px 0 12px; font-size: 11px; line-height: 1.55; opacity: 0.5; max-width: 620px; }
.jr-pf-err { margin-top: 8px; color: var(--bad); font-size: 11.5px; }
.jr-pf-url { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(128,128,128,0.05); cursor: pointer; font-size: 12px;
  word-break: break-all; transition: border-color .15s; }
.jr-pf-url:hover { border-color: rgba(128,128,128,0.35); }
.jr-pf-url em { font-style: normal; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.5; white-space: nowrap; }
.jr-pf-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.jr-ghost.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.jr-ghost.danger:hover:not(:disabled) { border-color: var(--bad); }

.jr-jp { position: relative; }
.jr-ghost.on { border-color: color-mix(in srgb, var(--good) 45%, transparent); color: var(--good); opacity: 1; }
.jr-jp-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(420px, 88vw);
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card, #16181d);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
.jr-jp-desc { font-size: 12.5px; line-height: 1.55; opacity: 0.8; }
.jr-jp-pop .jr-pf-warn { margin: 10px 0 12px; }
@media (max-width: 640px) { .jr-jp-pop { right: auto; left: 0; } }

.tg-unlink { margin-top: 12px; }
.tg-unlink-b { appearance: none; background: transparent; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em;
  color: var(--bad); opacity: 0.72; transition: opacity .15s; }
.tg-unlink-b:hover:not(:disabled) { opacity: 1; text-decoration: underline; }
.tg-unlink-b:disabled { opacity: 0.35; cursor: default; }
.tg-unlink-arm { margin-top: 8px; padding: 14px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--bad) 34%, transparent);
  background: color-mix(in srgb, var(--bad) 7%, transparent); }
.tg-unlink-arm .totp-sub { line-height: 1.55; opacity: 0.85; }
.tg-unlink-row { display: flex; gap: 8px; margin-top: 12px; }
.tg-unlink-row .btn { flex: 1; }
.btn.ghost.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.ghost.danger:hover:not(:disabled) { border-color: var(--bad); }

.jr-excs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; margin-right: 8px; }
.jr-exc { appearance: none; cursor: pointer; text-align: left; min-width: 104px;
  padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(128,128,128,0.03); color: inherit; transition: border-color .15s, background .15s; }
.jr-exc:hover { border-color: rgba(128,128,128,0.34); }
.jr-exc.on { background: rgba(128,128,128,0.12); border-color: rgba(255,255,255,0.30); }
.jr-exc-h { display: flex; align-items: center; gap: 6px; }
.jr-exc-h img { width: 13px; height: 13px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; }
.jr-exc-all { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.18)); }
.jr-exc-n { font-size: 11px; letter-spacing: 0.02em; opacity: 0.8; white-space: nowrap; }
.jr-exc.on .jr-exc-n { opacity: 1; font-weight: 600; }
.jr-exc-v { display: block; margin-top: 3px; font-size: 13.5px; }
.jr-exc-v.dim { opacity: 0.4; }
@media (max-width: 900px) {
  .jr-excs { margin-left: 0; width: 100%; }
  .jr-exc { flex: 1 1 92px; min-width: 92px; }
}

.cv-team {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(208, 141, 18, 0.55);
  background: rgba(208, 141, 18, 0.14);
  color: #d08d12;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.cv-team-dev {
  border-color: rgba(255, 130, 136, 0.5);
  background: rgba(255, 130, 136, 0.14);
  color: #ff8288;
}

.cv-team-mini {
  margin-left: 5px;
  padding: 1px 5px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.dn-live {
  margin-left: auto;
  min-width: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--red, #ea3943); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}
@media (min-width: 1021px) {
  .dash[data-collapsed="1"] .dash-nav button { position: relative; }
  .dash[data-collapsed="1"] .dn-live {
    position: absolute; top: 5px; right: 10px; margin: 0;
    min-width: 15px; padding: 0 3px; font-size: 9px; line-height: 15px;
  }
}
.cl-lead { margin-top: 8px; max-width: 64ch; color: var(--ink-mute); }
.cl-limits { margin-top: 6px; font-size: 13px; opacity: .8; }
body .call-panel { bottom: 88px; }
body #call-dock { bottom: 88px; }
.dash-card .call-inline .call-start {
  background: var(--metal-grad) !important;
  color: oklch(0.13 0 0) !important;
  border-color: oklch(0.82 0.003 250) !important;
  box-shadow: var(--metal-emboss), 0 2px 6px oklch(0 0 0 / 0.35) !important;
}
.dash-card .call-inline .call-join { background: oklch(from var(--bg-3) l c h / 0.45); }
.dash-card .call-inline .call-join:hover { background: oklch(from var(--bg-3) l c h / 0.75); }

html[data-dash-theme="light"] .cv-team {
  border-color: rgba(146, 94, 8, 0.6);
  background: rgba(146, 94, 8, 0.12);
  color: #7a4e06;
}
html[data-dash-theme="light"] .cv-team-dev {
  border-color: rgba(190, 40, 50, 0.55);
  background: rgba(190, 40, 50, 0.12);
  color: #b02330;
}

.ct-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; padding: 16px; }
.ct-item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s; }
.ct-item:hover { border-color: var(--ink-mute); }
.ct-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.ct-txt { display: flex; flex-direction: column; min-width: 0; }
.ct-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.ct-v { margin-top: 3px; font-weight: 600; overflow-wrap: anywhere; }
.ct-s { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-mute); }

.pg-vb { display: inline-flex; align-items: center; color: #3b9cff; flex: none; vertical-align: -2px; margin-left: 4px; }
.pg-vis { flex: none; }
.pg-tabs button { white-space: nowrap; }
.pg-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 12px 7px 9px; border: 1px solid var(--line-2); background: none; color: var(--ink-dim); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .15s, border-color .15s; }
.pg-back:hover { color: var(--ink); border-color: var(--ink-mute); }
.pg-ex { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border: 1px solid var(--line-2); background: none; color: var(--ink-mute); font-size: 12.5px; font-weight: 500; line-height: 1; font-family: inherit; }
button.pg-ex { cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pg-ex .pg-ex-logo { width: 18px; height: 18px; border-radius: 4px; flex: none; filter: grayscale(1); opacity: .5; transition: filter .15s, opacity .15s; }
.pg-ex.on { color: var(--ink); border-color: color-mix(in oklab, var(--ex) 70%, transparent); background: color-mix(in oklab, var(--ex) 14%, transparent); }
.pg-ex.on .pg-ex-logo { filter: none; opacity: 1; }
button.pg-ex:hover { color: var(--ink); border-color: color-mix(in oklab, var(--ex) 55%, var(--line-2)); }
.pg-ex-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.pg-ex-name .pg-ex-logo { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.pg-vis-tag { flex: none; margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); background: none; border: 1px solid var(--line-2); padding: 4px 8px; cursor: pointer; }
.pg-vis-tag:hover { color: var(--ink); border-color: var(--ink-mute); }
.pg-stack { display: flex; flex-direction: column; gap: 16px; }
.pg-stack:empty { display: none; }
.pg-st-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-st-top .pg-period { margin-bottom: 0; }
.pg-st-pnl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-st-pnl b { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.pg-st-pnl b small { font-size: 13px; color: var(--ink-mute); font-weight: 400; }
.pg-st-pnl b.up { color: var(--good); }
.pg-st-pnl b.down { color: var(--bad); }
.pg-st-pnl span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.pg-kpi-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-st-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 16px; }
.pg-st-lists > div:only-child { grid-column: 1 / -1; }
.pg-set { display: flex; flex-direction: column; gap: 10px; }
.pg-set-note { align-self: flex-end; }
.pg-set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pg-set-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pg-set .seg-tabs.wide { box-sizing: border-box; max-width: 100%; }
.pg-who-lead { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.pg-who-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink); }
@media (max-width: 1100px) {
  .pg-set-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dash-eyebrow.row-between .seg-tabs.pg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; box-sizing: border-box; overflow: visible; }
  .dash-eyebrow.row-between .seg-tabs.pg-tabs button { width: 100%; }
  .pg-who-row .pg-vis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
  .pg-kpi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-st-lists { grid-template-columns: minmax(0, 1fr); }
  .pg-who-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pg-st-pnl b { font-size: 24px; }
}
.pg-vis button, .pg-period button { white-space: nowrap; padding: 6px 10px; flex: none; }
.pg-card .dash-card-hd { align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-grid, .au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pg-hero { display: flex; gap: 22px; padding: 22px; align-items: flex-start; }
.pg-hero-av { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.pg-hero-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pg-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--bg-3); color: var(--accent); font-family: var(--mono); font-weight: 600; border: 1px solid var(--line-2); }
.pg-av.big { width: 96px; height: 96px; font-size: 34px; }
.pg-av img { width: 100%; height: 100%; object-fit: cover; }
.pg-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pg-name h2 { margin: 0; font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 30px; color: var(--ink); overflow-wrap: anywhere; }
.pg-name-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pg-edit { color: var(--ink-mute); padding: 4px; border-radius: 4px; display: inline-flex; }
.pg-edit:hover { color: var(--accent); }
.pg-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #3b9cff; }
html[data-dash-theme="light"] .pg-vb, html[data-dash-theme="light"] .pg-tag { color: #1f6fd1; }
.pg-meta { font-size: 13px; }
.pg-input { width: 100%; box-sizing: border-box; padding: 9px 11px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); font: inherit; font-size: 13px; border-radius: 0; }
.pg-input:focus { outline: none; border-color: var(--accent); }
.pg-input:disabled { opacity: .6; }
.pg-name-edit .pg-input { width: min(320px, 100%); }
.pg-textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-dim); }
.pg-chip.on { background: var(--metal-grad); color: oklch(0.15 0 0); border-color: transparent; box-shadow: var(--metal-emboss); }
html[data-dash-theme="light"] .pg-chip.on { background: linear-gradient(180deg, oklch(0.45 0.006 250) 0%, oklch(0.30 0.006 250) 60%, oklch(0.20 0.006 250) 100%); color: oklch(0.97 0 0); }
.pg-chip.off { opacity: .55; }
.pg-chip-btn { cursor: pointer; background: transparent; }
.pg-chip-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-dim); }
.pg-chip-btn:disabled { cursor: default; }
.pg-about { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pg-about-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-about-t { margin: 0; white-space: pre-wrap; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pg-author-btn { color: #3b9cff; border-color: rgba(59,156,255,.5); }
.pg-flash { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.pg-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 12px 0 6px; }
.pg-sub:first-child { margin-top: 0; }
.pg-empty { margin: 4px 0; font-size: 13px; }
.pg-empty-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pg-empty-box p { margin: 0; color: var(--ink-dim); line-height: 1.5; }
.pg-period { margin-bottom: 14px; }
.pg-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pg-kpi > div { border: 1px solid var(--line-2); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-kpi b { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pg-kpi b.sm { font-size: 14px; }
.pg-kpi b small { font-size: 11px; color: var(--ink-mute); font-weight: 400; }
.pg-kpi b.up { color: var(--good); } .pg-kpi b.down { color: var(--bad); }
.pg-kpi span { font-size: 11px; color: var(--ink-mute); }
.pg-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; align-items: baseline; }
.pg-line:first-of-type { border-top: 0; }
.pg-line a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pg-line a:hover { color: var(--accent); }
.pg-line .dim { flex: none; text-align: right; }
.pg-note { font-size: 11px; margin: 12px 0 0; }
.pg-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 14px; }
.pg-bars span { flex: 1; background: var(--line-2); min-height: 2px; }
.pg-bars span.on { background: var(--accent); opacity: .85; }
.pg-fr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.pg-fr-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; background: none; color: inherit; cursor: pointer; padding: 0; }
.pg-fr-av { position: relative; display: inline-flex; }
.pg-fr-av.on::after { content: ''; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg-2); }
.pg-fr-t { display: flex; flex-direction: column; min-width: 0; }
.pg-fr-t b { font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.pg-fr-t i { font-style: normal; font-size: 11px; color: var(--ink-mute); }
.pg-fr-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.pg-fr-call { position: relative; }
.pg-fr-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; min-width: 190px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.pg-fr-menu button { text-align: left; padding: 9px 12px; font-size: 12px; color: var(--ink); background: none; cursor: pointer; }
.pg-fr-menu button:hover { background: var(--bg-3); color: var(--accent); }
.au-status { border-left: 3px solid var(--line-2); }
.au-status.is-pending { border-left-color: var(--accent); }
.au-status.is-info, .au-status.is-revoked { border-left-color: #ffa629; }
.au-status.is-approved { border-left-color: var(--good); }
.au-status.is-rejected { border-left-color: var(--bad); }
.au-status p { margin: 6px 0 0; color: var(--ink-dim); line-height: 1.5; }
.au-status-t { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); }
.au-status .btn { margin-top: 12px; }
.au-note { color: var(--ink) !important; }
.au-warn { color: #ffa629 !important; }
.au-form { display: flex; flex-direction: column; gap: 14px; }
.au-f { display: flex; flex-direction: column; gap: 6px; }
.au-f > span { font-size: 12px; color: var(--ink-mute); }
.au-f > i { font-style: normal; font-size: 11px; align-self: flex-end; }
.au-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; cursor: pointer; }
.au-agree input { margin-top: 3px; accent-color: var(--accent); }
.au-perks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.au-perks-list li { display: flex; gap: 12px; align-items: flex-start; }
.au-perks-list li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.au-perks-list b { font-weight: 500; color: var(--ink); font-size: 14px; }
.au-perks-list .dim { font-size: 12.5px; line-height: 1.5; }
.au-perks-list li > :first-child { flex: none; margin-top: 2px; }
.au-perks-list li.is-soon { opacity: .75; }
.au-soon { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--ink-mute); }
.au-link-row { display: flex; gap: 8px; align-items: center; }
.au-link-row .pg-input { flex: 1 1 auto; min-width: 0; }
.au-link-del { flex: none; width: 36px; padding: 0; display: inline-flex; justify-content: center; align-items: center; }
.au-link-add { align-self: flex-start; }
.pg-logo-lead { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.pg-logo-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0e14; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; color: #9aa4b2; font-size: 12px; }
.pg-logo-frame img { position: absolute; height: 9%; width: auto; max-width: 22%; object-fit: contain; opacity: .92; }
.pg-logo-frame.is-tl img { top: 3%; left: 1.7%; }
.pg-logo-frame.is-tr img { top: 3%; right: 1.7%; }
.pg-logo-frame.is-bl img { bottom: 3%; left: 1.7%; }
.pg-logo-frame.is-br img { bottom: 3%; right: 1.7%; }
.seg-tabs.wide.pg-logo-pos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.pg-logo-act { display: flex; gap: 8px; flex-wrap: wrap; }
.au-submit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .pg-grid, .au-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-hero { flex-direction: column; align-items: stretch; padding: 16px; }
  .pg-hero-av { flex-direction: row; justify-content: flex-start; }
  .pg-av.big { width: 72px; height: 72px; font-size: 26px; }
  .pg-name h2 { font-size: 24px; }
  .pg-fr { flex-wrap: wrap; }
}
