:root {
  color-scheme: dark;
  --background: #050816;
  --background-deep: #03050d;
  --surface: rgba(12, 18, 36, .78);
  --surface-strong: rgba(17, 24, 47, .9);
  --surface-soft: rgba(11, 17, 33, .56);
  --line: rgba(144, 159, 201, .2);
  --line-soft: rgba(144, 159, 201, .11);
  --text: #f7f8fc;
  --muted: #99a6bf;
  --muted-strong: #bec8dc;
  --green: #52e4a0;
  --amber: #ffbd68;
  --blue: #58b7ff;
  --violet: #9c6cff;
  --magenta: #f45ac6;
  --red: #ff6288;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.valki-ui-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(50, 79, 133, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 79, 133, .035) 1px, transparent 1px),
    linear-gradient(180deg, #050816 0%, #070b18 52%, #040711 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.valki-app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  height: 106px;
  padding-top: 12px;
  isolation: isolate;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 13, .99), rgba(4, 7, 18, .98) 72%, rgba(5, 8, 22, .94));
}

.valki-app-header::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -30px;
  left: 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(5, 8, 22, .92), rgba(5, 8, 22, .18) 70%, transparent);
  pointer-events: none;
  content: "";
}

.valki-app-bar {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  pointer-events: auto;
  background: rgba(5, 8, 22, .91);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .025);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

.valki-brand {
  width: fit-content;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.valki-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 24px rgba(156, 108, 255, .16);
  object-fit: cover;
}

.valki-brand strong,
.valki-brand small { display: block; }
.valki-brand strong { font-size: 15px; }
.valki-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.valki-nav {
  height: 68px;
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.valki-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #c8d0df;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.valki-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  transform: scaleX(.5);
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  box-shadow: 0 0 14px rgba(244, 90, 198, .65);
  content: "";
  transition: opacity 180ms ease, transform 180ms ease;
}

.valki-nav a:hover,
.valki-nav a:focus-visible,
.valki-nav a.active { color: #fff; }
.valki-nav a.active::after { opacity: 1; transform: scaleX(1); }
.valki-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.valki-live-state {
  justify-self: end;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(82, 228, 160, .1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  background: rgba(82, 228, 160, .035);
  font-size: 12px;
  white-space: nowrap;
}

.valki-state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 189, 104, .55);
}

.valki-state-dot.live {
  background: var(--green);
  box-shadow: 0 0 14px rgba(82, 228, 160, .82);
  animation: valki-status-breathe 2.8s ease-in-out infinite;
}

.valki-state-dot.error {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 98, 136, .65);
}

.valki-network-pulse {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 3px;
  border-left: 1px solid var(--line-soft);
}

.valki-network-pulse::before,
.valki-network-pulse::after {
  position: absolute;
  content: "";
}

.valki-network-pulse::before {
  top: 8px;
  right: 2px;
  width: 17px;
  height: 10px;
  border-bottom: 1px solid var(--magenta);
  transform: skewY(-35deg);
  filter: drop-shadow(0 0 5px rgba(244, 90, 198, .75));
}

.valki-network-pulse::after {
  top: 13px;
  right: 3px;
  width: 15px;
  border-top: 1px solid rgba(244, 90, 198, .5);
}

.valki-energy {
  --ve-row-height: 62px;
  width: 100%;
  color: var(--text);
}

.ve-livebar {
  min-height: 34px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ve-live-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.ve-live-copy strong {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.ve-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(82, 228, 160, .65);
}

.ve-live-dot.is-stale { background: var(--amber); box-shadow: 0 0 12px rgba(255, 189, 104, .55); }
.ve-live-dot.is-error { background: var(--red); box-shadow: 0 0 12px rgba(255, 98, 136, .55); }

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

.ve-summary-item {
  --accent: var(--magenta);
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 158px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(17, 24, 45, .82), rgba(9, 14, 28, .76));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 14px 38px rgba(0, 0, 0, .15);
}

.ve-summary-item::before {
  position: absolute;
  right: -55px;
  bottom: -80px;
  z-index: 0;
  width: 170px;
  height: 150px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  content: "";
}
.ve-summary-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  content: "";
}
.ve-summary-item.is-anchor { --accent: var(--amber); }
.ve-summary-item.is-low { --accent: var(--green); }
.ve-summary-item.is-high { --accent: var(--red); }
.ve-summary-item.is-move { --accent: var(--magenta); }

.ve-summary-label,
.ve-summary-detail,
.ve-summary-value {
  position: relative;
  z-index: 2;
  display: block;
  max-width: calc(100% - 74px);
}
.ve-summary-label { color: var(--muted-strong); font-size: 11px; }
.ve-summary-value {
  min-height: 29px;
  margin-top: 26px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.ve-summary-detail { margin-top: 5px; color: var(--muted); font-size: 10px; }
.ve-summary-flag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  width: 72px;
  height: 72px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, .15));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, rgba(5, 8, 15, .92));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 5%, transparent),
    0 14px 34px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 0 18px rgba(255, 255, 255, .08);
  opacity: .84;
}
.ve-summary-flag::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), transparent 42%, rgba(2, 5, 12, .12));
  content: "";
  pointer-events: none;
}
.ve-summary-flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ve-summary-flag .ve-flag-fallback {
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-size: 13px;
  font-weight: 800;
}
.ve-summary-flag.has-image .ve-flag-fallback { visibility: hidden; }

.ve-toolbar {
  margin: 18px 0 12px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ve-search {
  position: relative;
  min-width: 0;
  height: 42px;
  display: block;
}

.ve-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: rgba(10, 15, 30, .72);
  font: inherit;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.ve-search input::placeholder { color: #76839d; }
.ve-search input:focus { border-color: rgba(88, 183, 255, .56); background: rgba(13, 20, 39, .88); }
.ve-search-icon {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 15px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.ve-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  background: var(--muted);
  content: "";
}

.ve-segments {
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  background: rgba(10, 15, 30, .72);
}

.ve-segment {
  min-width: 104px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}
.ve-segment:hover { color: var(--text); }
.ve-segment[aria-pressed="true"] { color: var(--text); background: rgba(156, 108, 255, .13); }
.ve-segment:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.ve-table-shell {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 26, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}
.ve-mode-terminal .ve-table-shell { margin-top: 0; }

.ve-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.ve-table th,
.ve-table td {
  height: var(--ve-row-height);
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.ve-table th {
  height: 48px;
  color: var(--muted);
  background: rgba(7, 11, 24, .78);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ve-table th:first-child,
.ve-table td:first-child,
.ve-table .ve-col-market { text-align: left; }
.ve-table tbody tr:last-child td { border-bottom: 0; }
.ve-market-row { transition: background 150ms ease; }
.ve-market-row:hover,
.ve-market-row.is-selected { background: rgba(88, 183, 255, .045); }

.ve-col-rank { width: 46px; color: #73809a; }
.ve-col-market { width: 218px; }
.ve-col-spot { width: 134px; color: #eef2f9; font-weight: 700; }
.ve-col-trend { width: 174px; }
.ve-col-signal { width: 142px; }
.ve-col-valki { width: 146px; color: #f3d7ed; font-weight: 650; }
.ve-col-updated { width: 112px; color: var(--muted); font-size: 10px; }
.ve-col-updated.is-stale { color: var(--amber); }
.ve-energy-only .ve-col-market { width: 248px; }
.ve-energy-only .ve-col-spot { width: 154px; }
.ve-energy-only .ve-col-trend { width: 220px; }
.ve-energy-only .ve-col-signal { width: 160px; }
.ve-energy-only .ve-col-updated { width: 140px; }

.ve-market-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.ve-market-link:hover .ve-market-names strong { color: var(--green); }
.ve-market-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.ve-market-names { min-width: 0; }
.ve-market-names strong,
.ve-market-names small { display: block; }
.ve-market-names strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ve-market-names small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.ve-flag {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .055);
}
.ve-flag.is-large { width: 42px; height: 42px; flex-basis: 42px; }
.ve-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ve-flag-fallback { color: var(--muted); font-size: 8px; font-weight: 800; }
.ve-flag.has-image .ve-flag-fallback { visibility: hidden; }

.ve-trend-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ve-spark {
  width: 104px;
  height: 34px;
  flex: 0 0 104px;
  overflow: hidden;
}
.ve-spark svg { width: 100%; height: 100%; display: block; }
.ve-spark path { stroke: #8490a6; stroke-width: 1.7; }
.ve-spark.cheap path { stroke: var(--green); filter: drop-shadow(0 0 3px rgba(82, 228, 160, .26)); }
.ve-spark.expensive path { stroke: var(--red); filter: drop-shadow(0 0 3px rgba(255, 98, 136, .24)); }
.ve-spark.is-empty::after { display: block; padding-top: 10px; color: var(--muted); text-align: center; content: "--"; }
.ve-change { min-width: 48px; color: var(--muted); font-size: 9px; }
.ve-change.is-up { color: var(--red); }
.ve-change.is-down { color: var(--green); }

.ve-signal {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .025);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.ve-signal.is-good { color: var(--green); border-color: rgba(82, 228, 160, .22); background: rgba(82, 228, 160, .065); }
.ve-signal.is-warning { color: var(--amber); border-color: rgba(255, 189, 104, .2); background: rgba(255, 189, 104, .06); }
.ve-signal.is-bad { color: var(--red); border-color: rgba(255, 98, 136, .22); background: rgba(255, 98, 136, .065); }

.ve-sort {
  width: 100%;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.ve-col-market .ve-sort { justify-content: flex-start; }
.ve-sort:hover,
.ve-sort.is-active { color: var(--text); }
.ve-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ve-sort-indicator { min-width: 8px; color: var(--magenta); }

.ve-expand {
  min-height: 38px;
  margin: 14px auto 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  color: var(--muted-strong);
  background: rgba(17, 24, 47, .72);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}
.ve-expand:hover { color: var(--text); border-color: rgba(156, 108, 255, .42); }
.ve-expand:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.ve-disclosure {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.ve-empty {
  margin: 18px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.ve-skeleton {
  width: 72%;
  height: 9px;
  margin-left: auto;
  border-radius: 4px;
  display: block;
  background: linear-gradient(90deg, rgba(144, 159, 201, .07), rgba(144, 159, 201, .16), rgba(144, 159, 201, .07));
  background-size: 200% 100%;
  animation: ve-loading 1.5s linear infinite;
}
.ve-loading-row td:nth-child(2) .ve-skeleton { width: 84%; margin-left: 0; }

.ve-detail-row > td { height: auto; padding: 0; text-align: left; background: rgba(9, 15, 31, .94); }
.ve-detail {
  padding: 24px;
  border-top: 1px solid rgba(156, 108, 255, .28);
  border-bottom: 1px solid var(--line-soft);
}
.ve-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ve-detail-identity { display: flex; align-items: center; gap: 12px; }
.ve-detail h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.ve-detail p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ve-detail-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}
.ve-detail-close:hover { color: var(--text); border-color: rgba(255, 98, 136, .38); }
.ve-detail-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ve-detail-body { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); align-items: stretch; gap: 28px; }
.ve-detail-chart { min-width: 0; min-height: 170px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ve-spark.is-large { width: 100%; height: 150px; }
.ve-spark.is-large path { stroke-width: 2.5; }
.ve-detail-metrics { margin: 0; border-top: 1px solid var(--line); }
.ve-detail-metrics > div { min-height: 43px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ve-detail-metrics dt { color: var(--muted); font-size: 10px; }
.ve-detail-metrics dd { margin: 0; color: var(--text); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ve-detail-source { margin-top: 14px !important; }

@keyframes valki-status-breathe {
  0%, 100% { opacity: .72; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes ve-loading {
  to { background-position: -200% 0; }
}

@media (max-width: 1080px) {
  .valki-app-bar { grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); }
  .valki-nav { gap: 20px; }
  .ve-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .valki-app-header { height: 138px; padding-top: 8px; }
  .valki-app-bar {
    width: calc(100% - 20px);
    min-height: 112px;
    padding: 8px 12px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 50px;
    gap: 0 16px;
  }
  .valki-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .valki-nav {
    height: 50px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 10px;
  }
  .valki-nav a { min-width: 58px; font-size: 11px; }
  .valki-live-state { max-width: 180px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
  .valki-network-pulse { display: none; }
  .ve-toolbar { grid-template-columns: 1fr; }
  .ve-segments { width: 100%; }
  .ve-segment { min-width: 0; flex: 1 1 0; }
  .ve-detail-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ve-live-copy { align-items: flex-start; flex-wrap: wrap; }
  .ve-live-copy strong { margin-right: 6px; }
  .ve-summary { gap: 12px; }
  .ve-summary-item { min-height: 136px; padding: 16px; }
  .ve-summary-value { font-size: 18px; }
  .ve-summary-flag { right: 12px; bottom: 12px; width: 62px; height: 62px; }
  .ve-table-shell { overflow: hidden; }
  .ve-table { min-width: 0; display: block; }
  .ve-table thead { display: none; }
  .ve-table tbody { display: block; }
  .ve-market-row {
    min-height: 132px;
    padding: 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "market spot"
      "trend signal"
      "valki updated";
    align-items: center;
    gap: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .ve-energy-only .ve-market-row {
    min-height: 118px;
    grid-template-areas:
      "market spot"
      "trend signal"
      "updated updated";
  }
  .ve-table td { width: auto; height: auto; padding: 0; border: 0; }
  .ve-col-rank { display: none; }
  .ve-col-market { grid-area: market; }
  .ve-col-spot { grid-area: spot; text-align: right; }
  .ve-col-trend { grid-area: trend; text-align: left; }
  .ve-col-signal { grid-area: signal; text-align: right; }
  .ve-col-valki { grid-area: valki; text-align: left; }
  .ve-col-updated { grid-area: updated; text-align: right; }
  .ve-trend-cell { justify-content: flex-start; }
  .ve-detail-row,
  .ve-detail-row > td { display: block; }
  .ve-detail { padding: 18px 15px; }
  .ve-detail-chart { min-height: 140px; }
  .ve-spark.is-large { height: 120px; }
  .ve-loading-row {
    min-height: 92px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
  }
  .ve-loading-row td { display: block; width: auto; height: auto; padding: 0; border: 0; }
  .ve-loading-row td:nth-child(n+5) { display: none; }
}

@media (max-width: 460px) {
  .valki-brand { gap: 9px; }
  .valki-brand small { display: none; }
  .valki-live-state { max-width: 150px; padding: 0 8px; }
  .valki-nav a { min-width: 0; }
  .ve-summary { gap: 8px; }
  .ve-summary-item { min-height: 128px; padding: 14px; }
  .ve-summary-label { font-size: 10px; }
  .ve-summary-value { max-width: calc(100% - 58px); margin-top: 20px; font-size: 16px; }
  .ve-summary-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ve-summary-flag { right: 10px; bottom: 10px; width: 54px; height: 54px; }
  .ve-market-row { gap: 10px 12px; }
  .ve-spark { width: 86px; flex-basis: 86px; }
  .ve-change { min-width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .valki-state-dot.live,
  .ve-skeleton { animation: none; }
  .valki-nav a,
  .ve-market-row,
  .ve-search input { transition: none; }
}
