:root {
  --bg: #090b14;
  --bg-deep: #06070d;
  --panel: rgba(16, 18, 30, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f2f3f8;
  --muted: #989baa;
  --muted-light: #c4c6d1;
  --acid: #d8ff4d;
  --purple: #a981ff;
  --purple-bright: #c6a9ff;
  --amber: #ffbd69;
  --danger: #ff7188;
  --mono: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 82% 6%, rgba(104, 88, 200, 0.14), transparent 30rem),
    radial-gradient(circle at 6% 40%, rgba(120, 159, 255, 0.06), transparent 32rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: var(--bg);
  background: var(--acid);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  top: 18rem;
  left: -22rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(circle, rgba(96, 64, 188, 0.16), transparent 68%);
}

.ambient-two {
  top: 93rem;
  right: -26rem;
  width: 54rem;
  height: 54rem;
  background: radial-gradient(circle, rgba(61, 153, 179, 0.1), transparent 67%);
}

.grid-fade {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 46rem;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

.section-pad {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  letter-spacing: 0.03em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 25px;
  height: 23px;
  transform: skewX(-17deg);
}

.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--acid), #9bb52a);
}

.brand-mark span:nth-child(1) {
  height: 10px;
  margin-bottom: 2px;
  background: var(--purple);
}

.brand-mark span:nth-child(2) {
  height: 17px;
  background: linear-gradient(180deg, var(--purple-bright), var(--purple));
}

.brand-mark span:nth-child(3) {
  height: 23px;
  background: linear-gradient(180deg, var(--acid), #8d9f2f);
}

.brand-word {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-token {
  padding: 5px 7px;
  border: 1px solid rgba(216, 255, 77, 0.25);
  border-radius: 3px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 52px;
}

.main-nav a {
  position: relative;
  padding: 37px 0 35px;
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--acid);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-dot,
.live-pulse {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 189, 105, 0.11);
}

.connection--live .connection-dot,
.connection--live .live-pulse {
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(216, 255, 77, 0.12), 0 0 14px rgba(216, 255, 77, 0.65);
}

.connection--reconnecting .connection-dot {
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(169, 129, 255, 0.12);
}

.connection-signal {
  position: relative;
  width: 11px;
  height: 9px;
  margin-left: auto;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}

.connection-signal::before,
.connection-signal::after {
  position: absolute;
  bottom: 0;
  width: 2px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  content: "";
}

.connection-signal::before {
  right: 5px;
  height: 5px;
}

.connection-signal::after {
  right: 1px;
  height: 9px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
  min-height: 650px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 76px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 4px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--acid);
  box-shadow: 0 0 9px rgba(216, 255, 77, 0.55);
}

.eyebrow-line-purple {
  background: var(--purple);
  box-shadow: 0 0 9px rgba(169, 129, 255, 0.55);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin: 22px 0 24px;
  font-size: clamp(58px, 7.8vw, 112px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.87;
}

h1 span {
  display: block;
  color: var(--acid);
  text-shadow: 0 0 34px rgba(216, 255, 77, 0.12);
}

.hero-lede {
  max-width: 425px;
  margin-bottom: 31px;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 43px;
  padding: 0 16px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  min-width: 166px;
  background: var(--acid);
  color: #10130a;
  box-shadow: 0 8px 28px rgba(216, 255, 77, 0.12);
}

.button-primary:hover {
  background: #e4ff7b;
}

.button-arrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
}

.button-quiet {
  padding-right: 2px;
  padding-left: 0;
  color: var(--muted-light);
}

.button-quiet:hover {
  color: var(--acid);
}

.button-quiet.is-disabled {
  color: #5f626e;
  pointer-events: none;
}

.contract-card {
  width: min(100%, 425px);
  margin-top: 29px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(169, 129, 255, 0.28);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(34, 29, 57, 0.7), rgba(12, 14, 24, 0.66));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.contract-card-header,
.contract-row,
.contract-actions,
.contract-live {
  display: flex;
  align-items: center;
}

.contract-card-header,
.contract-row {
  justify-content: space-between;
  gap: 12px;
}

.contract-card-header {
  margin-bottom: 10px;
}

.contract-live {
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(169, 129, 255, 0.65);
}

.contract-live.is-ready .contract-live-dot {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(216, 255, 77, 0.75);
}

.contract-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-actions {
  gap: 9px;
  flex: 0 0 auto;
}

.contract-copy {
  padding: 5px 7px;
  border: 1px solid rgba(216, 255, 77, 0.28);
  border-radius: 2px;
  background: transparent;
  color: var(--acid);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease;
}

.contract-copy:hover {
  border-color: var(--acid);
  background: rgba(216, 255, 77, 0.1);
}

.contract-link {
  color: var(--purple-bright);
  font-family: var(--mono);
  font-size: 13px;
}

.contract-link:hover {
  color: var(--acid);
}

.contract-link.is-disabled {
  color: #5f626e;
  pointer-events: none;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footnote-separator {
  color: rgba(255, 255, 255, 0.23);
}

.hero-art {
  position: relative;
  width: min(620px, 100%);
  min-height: 520px;
  margin-left: auto;
}

.hero-image-wrap {
  position: absolute;
  top: 0;
  right: -2%;
  width: min(570px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #0c1220;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 80px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.hero-image-wrap::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(5, 7, 14, 0.22), transparent 44%),
    linear-gradient(to bottom, transparent 65%, rgba(5, 6, 13, 0.25));
  content: "";
  pointer-events: none;
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.07);
}

.art-glow {
  position: absolute;
  top: 16%;
  right: 4%;
  width: 78%;
  height: 72%;
  border-radius: 50%;
  background: rgba(179, 154, 255, 0.15);
  filter: blur(65px);
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(216, 255, 77, 0.22);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.orbit-one {
  top: 14%;
  right: -2%;
  width: 87%;
  height: 54%;
}

.orbit-two {
  top: 37%;
  right: 4%;
  width: 84%;
  height: 46%;
  border-color: rgba(169, 129, 255, 0.25);
  transform: rotate(29deg);
}

.art-label {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 116px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(9, 11, 20, 0.68);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.21);
  backdrop-filter: blur(13px);
}

.art-label-top {
  top: 13%;
  left: 0;
}

.art-label-bottom {
  right: 2%;
  bottom: 11%;
}

.label-kicker,
.panel-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.art-label strong {
  max-width: 160px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-label-bottom strong {
  color: var(--purple-bright);
}

.art-label-bottom span:last-child {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.art-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 9px 2px rgba(255, 255, 255, 0.52);
}

.star-one {
  top: 3%;
  right: 29%;
}

.star-two {
  top: 54%;
  right: -1%;
  background: var(--acid);
}

.star-three {
  bottom: 17%;
  left: 15%;
  background: var(--purple-bright);
}

.signal-strip {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}

.signal-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 28px;
  min-width: 860px;
  height: 50px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-track i {
  display: block;
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}

.section-block {
  padding-top: 116px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 39px;
}

.section-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4vw, 53px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading h2 em {
  color: var(--acid);
  font-style: normal;
}

.section-heading-copy {
  max-width: 340px;
  margin: 0 2px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.metric-card {
  min-height: 168px;
  padding: 18px 19px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(25, 26, 43, 0.84), rgba(12, 14, 24, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.metric-card-position {
  border-color: rgba(216, 255, 77, 0.24);
  background: linear-gradient(145deg, rgba(38, 44, 33, 0.7), rgba(12, 15, 23, 0.92));
}

.metric-card-pnl {
  border-color: rgba(169, 129, 255, 0.24);
}

.metric-card-fees {
  border-color: rgba(169, 129, 255, 0.23);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.metric-icon-orbit {
  position: relative;
  border-color: rgba(216, 255, 77, 0.4);
}

.metric-icon-orbit::before {
  position: absolute;
  width: 9px;
  height: 5px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg);
}

.metric-icon-orbit span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--acid);
}

.metric-icon-flame {
  border-color: rgba(169, 129, 255, 0.4);
}

.metric-icon-flame::before {
  width: 7px;
  height: 10px;
  border-radius: 60% 40% 60% 40%;
  background: var(--purple);
  content: "";
  transform: rotate(24deg);
}

.metric-value {
  margin-top: 28px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(21px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.metric-value-position {
  color: var(--acid);
  font-size: clamp(18px, 1.8vw, 25px);
  letter-spacing: -0.05em;
}

.metric-value-pnl,
.metric-value-return {
  color: var(--purple-bright);
}

.metric-value-pnl.is-positive,
.metric-value-return.is-positive {
  color: var(--acid);
}

.metric-value-pnl.is-negative,
.metric-value-return.is-negative {
  color: var(--danger);
}

.metric-value-fees {
  color: var(--purple-bright);
}

.metric-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.metric-accent {
  color: var(--acid);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.metric-accent-violet {
  color: var(--purple-bright);
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 61px;
  padding: 0 3px;
  border-bottom: 1px solid var(--line);
}

.telemetry-line {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.telemetry-line strong {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.telemetry-divider {
  width: 1px;
  height: 13px;
  margin: 0 2px;
  background: var(--line);
}

.telemetry-key {
  color: #6c6f81;
  letter-spacing: 0.09em;
}

.wallet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  transition: color 180ms ease;
}

.wallet-link:hover {
  color: var(--acid);
}

.wallet-link.is-disabled {
  pointer-events: none;
}

.wallet-link-dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--acid);
  border-radius: 50%;
}

.position-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 12px;
  margin-top: 12px;
}

.positions-history-panel {
  margin-top: 12px;
  padding: 23px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(150deg, rgba(22, 24, 40, 0.87), rgba(10, 12, 21, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.chart-panel {
  margin-top: 12px;
  padding: 23px 23px 12px;
  border-color: rgba(96, 230, 192, 0.2);
  background: #0b1013;
}

.chart-header,
.chart-heading,
.chart-price-card,
.chart-price-card > div,
.chart-toolbar,
.chart-timeframes,
.chart-footer,
.chart-legend {
  display: flex;
  align-items: center;
}

.chart-header {
  justify-content: space-between;
  gap: 20px;
}

.chart-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.chart-heading h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.chart-leverage {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.chart-status {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.chart-status-live {
  border-color: rgba(96, 230, 192, 0.3);
  color: #60e6c0;
}

.chart-status-reconnecting,
.chart-status-connecting {
  border-color: rgba(255, 189, 105, 0.28);
  color: var(--amber);
}

.chart-status-error {
  border-color: rgba(255, 113, 136, 0.34);
  color: var(--danger);
}

.chart-price-card {
  min-width: 207px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 15px;
  border-radius: 5px;
  background: rgba(22, 29, 32, 0.92);
}

.chart-price-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.chart-price-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #60e6c0;
  box-shadow: 0 0 8px rgba(96, 230, 192, 0.7);
}

.chart-price-card > div {
  gap: 10px;
}

.chart-price-card strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.chart-price-card > div > span {
  color: #60e6c0;
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.chart-price-card > div > span.is-negative {
  color: var(--danger);
}

.chart-toolbar {
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding: 12px 0 9px;
  border-top: 1px solid var(--line);
}

.chart-timeframes {
  gap: 4px;
}

.chart-timeframes button {
  min-width: 39px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(22, 29, 32, 0.88);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.chart-timeframes button:hover,
.chart-timeframes button.is-active {
  border-color: rgba(216, 255, 77, 0.22);
  background: rgba(216, 255, 77, 0.1);
  color: var(--acid);
}

.chart-data-status {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sol-chart {
  width: 100%;
  height: 420px;
  min-height: 300px;
  overflow: hidden;
}

.chart-footer {
  justify-content: space-between;
  gap: 15px;
  min-height: 34px;
  padding-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.chart-legend {
  flex-wrap: wrap;
  gap: 14px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chart-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chart-legend-entry {
  background: #60e6c0;
}

.chart-legend-close {
  background: #72e0be;
}

.chart-legend-liquidated {
  background: var(--danger);
}

.chart-footer > a {
  color: var(--muted);
  white-space: nowrap;
}

.chart-footer > a:hover {
  color: var(--acid);
}

.position-panel {
  position: relative;
  min-height: 472px;
  padding: 25px;
  overflow: hidden;
  border-color: rgba(169, 129, 255, 0.22);
  background:
    radial-gradient(circle at 88% 29%, rgba(162, 124, 255, 0.12), transparent 14rem),
    linear-gradient(150deg, rgba(26, 24, 47, 0.93), rgba(10, 12, 21, 0.95));
}

.position-panel::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(169, 129, 255, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 22px rgba(169, 129, 255, 0.025), 0 0 0 44px rgba(169, 129, 255, 0.02);
  pointer-events: none;
}

.panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.panel-header h3 {
  margin: 9px 0 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.panel-header h3 span,
.fees-panel h3 em {
  color: var(--purple-bright);
  font-style: normal;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(216, 255, 77, 0.26);
  border-radius: 3px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mode-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(216, 255, 77, 0.8);
}

.position-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 156px;
  margin: 12px -2px 5px;
  padding: 0 4px;
}

.position-rays {
  position: absolute;
  top: 25px;
  left: 0;
  width: 149px;
  height: 105px;
  border: 1px solid rgba(169, 129, 255, 0.15);
  border-radius: 50%;
  transform: rotate(-21deg);
}

.position-rays::before,
.position-rays::after {
  position: absolute;
  top: 50%;
  right: -24px;
  width: 53px;
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 129, 255, 0.7), transparent);
  content: "";
  transform-origin: left;
}

.position-rays::before {
  transform: rotate(-20deg);
}

.position-rays::after {
  transform: rotate(20deg);
}

.position-direction {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(169, 129, 255, 0.28);
  border-radius: 50%;
  background: rgba(11, 11, 23, 0.7);
  color: var(--purple-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.direction-arrow {
  display: block;
  margin-bottom: 3px;
  color: var(--acid);
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 500;
  line-height: 0.8;
}

.position-asset {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin-left: auto;
  padding-right: 4px;
}

.asset-symbol {
  color: var(--text);
  font-family: var(--mono);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.asset-name {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-state {
  position: absolute;
  right: 4px;
  bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.position-state.is-open {
  color: var(--acid);
}

.position-state.is-closed {
  color: var(--amber);
}

.position-state.is-failed {
  color: var(--danger);
}

.position-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.position-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.position-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-stat strong {
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-pnl-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 12px;
  padding: 15px 0 2px;
}

.position-pnl-row > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.position-pnl-row strong {
  color: var(--purple-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.position-pnl-row strong.is-positive {
  color: var(--acid);
}

.position-pnl-row strong.is-negative {
  color: var(--danger);
}

.position-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}

.position-footer > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.position-footer > div > span:last-child {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
}

.positions-list {
  max-height: 430px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.positions-list .empty-state {
  margin-top: 15px;
}

.position-history-item {
  display: grid;
  grid-template-columns: minmax(145px, 1.25fr) auto repeat(4, minmax(75px, 0.8fr)) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  border-bottom: 1px solid var(--line-soft);
}

.position-history-item:last-child {
  border-bottom: 0;
}

.position-history-identity,
.position-history-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.position-history-identity strong {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-history-identity span,
.position-history-stat span,
.position-history-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.position-history-stat strong {
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-history-stat strong.is-positive {
  color: var(--acid);
}

.position-history-stat strong.is-negative {
  color: var(--danger);
}

.position-history-status {
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.position-history-status-open,
.position-history-status-closing {
  border-color: rgba(216, 255, 77, 0.3);
  color: var(--acid);
}

.position-history-status-liquidated {
  border-color: rgba(255, 113, 136, 0.34);
  color: var(--danger);
}

.position-history-link {
  color: var(--purple-bright);
}

.position-history-link:hover {
  color: var(--acid);
}

.position-history-link.is-pending {
  color: #5f626e;
}

.small-link {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.small-link:hover {
  color: #edff9a;
}

.small-link.is-disabled {
  color: #5f626e;
  pointer-events: none;
}

.fees-panel {
  min-height: 472px;
  padding: 25px;
  border-color: rgba(216, 255, 77, 0.19);
}

.fees-panel .panel-header h3 {
  color: var(--text);
}

.phase-pill {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.phase-pill.is-active {
  border-color: rgba(216, 255, 77, 0.34);
  color: var(--acid);
}

.phase-pill.is-warning {
  border-color: rgba(255, 189, 105, 0.32);
  color: var(--amber);
}

.fee-flow-visual {
  display: grid;
  grid-template-columns: 96px minmax(50px, 1fr) 96px;
  align-items: center;
  gap: 11px;
  min-height: 182px;
  padding: 12px 0 4px;
}

.fee-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.fee-node strong {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.fee-node-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(216, 255, 77, 0.38);
  border-radius: 50%;
  background: rgba(216, 255, 77, 0.08);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 19px;
  box-shadow: 0 0 26px rgba(216, 255, 77, 0.08);
}

.fee-node-long .fee-node-icon {
  border-color: rgba(169, 129, 255, 0.42);
  background: rgba(169, 129, 255, 0.09);
  color: var(--purple-bright);
  box-shadow: 0 0 26px rgba(169, 129, 255, 0.1);
}

.fee-flow-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), var(--purple));
}

.fee-flow-line::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--purple);
  content: "";
}

.fee-flow-line span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
}

.fee-flow-line span:nth-child(2) {
  background: #d3c27a;
}

.fee-flow-line span:nth-child(3) {
  background: var(--purple);
  box-shadow: 0 0 9px var(--purple);
}

.fee-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.fee-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 49px;
  border-bottom: 1px solid var(--line-soft);
}

.fee-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.fee-stat strong {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

.fee-stat-highlight strong {
  color: var(--acid);
}

.fee-stat:nth-child(3) strong {
  color: var(--purple-bright);
}

.fee-note {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 17px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.log-pip {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(169, 129, 255, 0.8);
}

.activity-block {
  padding-top: 128px;
  padding-bottom: 112px;
}

.activity-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 12px;
}

.feed-panel,
.contract-panel {
  min-height: 421px;
  padding: 23px 23px 13px;
}

.contract-panel {
  border-color: rgba(169, 129, 255, 0.2);
}

.panel-header-feed {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.feed-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-list {
  max-height: 337px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.feed-list .empty-state {
  margin-top: 15px;
}

.feed-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  border-bottom: 1px solid var(--line-soft);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(216, 255, 77, 0.2);
  border-radius: 50%;
  background: rgba(216, 255, 77, 0.08);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
}

.feed-icon-purple {
  border-color: rgba(169, 129, 255, 0.24);
  background: rgba(169, 129, 255, 0.08);
  color: var(--purple-bright);
}

.feed-icon-amber {
  border-color: rgba(255, 189, 105, 0.24);
  background: rgba(255, 189, 105, 0.08);
  color: var(--amber);
}

.feed-main {
  min-width: 0;
}

.feed-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-title {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-subtitle a {
  color: var(--purple-bright);
}

.feed-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.feed-amount {
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
}

.feed-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-status-success,
.feed-status-confirmed {
  color: var(--acid);
}

.feed-status-failed {
  color: var(--danger);
}

.feed-status-pending {
  color: var(--amber);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 106px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.empty-signal {
  position: relative;
  width: 16px;
  height: 12px;
  border-bottom: 1px solid var(--purple);
}

.empty-signal::before,
.empty-signal::after {
  position: absolute;
  bottom: 0;
  width: 2px;
  background: var(--purple);
  content: "";
}

.empty-signal::before {
  left: 4px;
  height: 7px;
}

.empty-signal::after {
  left: 10px;
  height: 12px;
}

.contract-mini-badge {
  padding: 6px 7px;
  border: 1px solid rgba(216, 255, 77, 0.24);
  border-radius: 3px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.contract-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 229px;
  padding-top: 30px;
}

.contract-panel-body code {
  display: block;
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-panel-body .small-link {
  margin-top: auto;
}

.contract-panel-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.contract-panel-footer > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-panel-footer strong {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-light);
  letter-spacing: 0.1em;
}

.footer-brand .brand-mark {
  width: 20px;
  height: 18px;
}

.footer-brand .brand-mark span {
  width: 5px;
}

.footer-brand .brand-mark span:nth-child(1) {
  height: 8px;
}

.footer-brand .brand-mark span:nth-child(2) {
  height: 13px;
}

.footer-brand .brand-mark span:nth-child(3) {
  height: 18px;
}

.footer-copy {
  color: #696c7d;
}

.footer-links a {
  color: var(--acid);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 113, 136, 0.3);
  border-radius: 4px;
  background: rgba(23, 13, 24, 0.94);
  color: var(--muted-light);
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  animation: toast-in 240ms ease both;
}

.toast[hidden] {
  display: none;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 113, 136, 0.7);
}

.noscript-message {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  text-align: center;
}

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

@media (max-width: 1020px) {
  .topbar {
    width: min(1180px, calc(100% - 40px));
  }

  .main-nav {
    gap: 22px;
    margin-right: 24px;
  }

  .section-pad {
    width: min(1180px, calc(100% - 40px));
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    min-height: 560px;
  }

  .hero-art {
    min-height: 440px;
  }

  .hero-image-wrap {
    width: 520px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .section-pad {
    width: min(100% - 32px, 560px);
  }

  .topbar {
    width: calc(100% - 32px);
    min-height: 72px;
    flex-wrap: wrap;
    gap: 14px;
    padding: 15px 0;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .main-nav a {
    padding: 8px 0 7px;
    font-size: 10px;
  }

  .connection-pill {
    margin-left: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 69px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: clamp(56px, 17vw, 90px);
  }

  .hero-art {
    width: 100%;
    min-height: 390px;
    margin-top: 37px;
  }

  .hero-image-wrap {
    top: 0;
    right: -5%;
    width: 108%;
  }

  .art-label-top {
    top: 8%;
    left: 0;
  }

  .art-label-bottom {
    right: -1%;
    bottom: 7%;
  }

  .section-block {
    padding-top: 83px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading-copy {
    max-width: 380px;
    margin-top: 17px;
    text-align: left;
  }

  .telemetry-row {
    display: block;
    padding: 17px 3px;
  }

  .telemetry-line {
    flex-wrap: wrap;
    gap: 8px;
  }

  .telemetry-divider {
    display: none;
  }

  .chart-panel {
    padding: 18px 18px 10px;
  }

  .chart-header,
  .chart-toolbar,
  .chart-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-header {
    gap: 16px;
  }

  .chart-price-card {
    width: 100%;
    min-width: 0;
  }

  .chart-toolbar {
    gap: 12px;
  }

  .chart-timeframes {
    width: 100%;
  }

  .chart-timeframes button {
    flex: 1;
  }

  .sol-chart {
    height: 360px;
  }

  .wallet-link {
    margin-top: 14px;
  }

  .position-layout,
  .activity-layout {
    grid-template-columns: 1fr;
  }

  .position-panel,
  .fees-panel,
  .positions-history-panel {
    min-height: 0;
  }

  .activity-block {
    padding-top: 83px;
    padding-bottom: 73px;
  }

  .feed-panel,
  .contract-panel {
    min-height: 0;
  }

  .footer {
    display: grid;
    gap: 14px;
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .footer-copy {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-footnote {
    flex-wrap: wrap;
  }

  .contract-card {
    margin-top: 25px;
  }

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

  .position-panel,
  .fees-panel,
  .positions-history-panel,
  .chart-panel {
    padding: 18px;
  }

  .chart-panel {
    padding-bottom: 10px;
  }

  .chart-heading h3 {
    font-size: 18px;
  }

  .chart-price-card strong {
    font-size: 20px;
  }

  .sol-chart {
    height: 320px;
  }

  .position-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 10px;
  }

  .position-pnl-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
  }

  .position-pnl-row > div:last-child {
    grid-column: 1 / -1;
  }

  .position-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .position-history-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 0;
  }

  .position-history-item > .position-history-stat {
    min-width: 0;
  }

  .position-history-status {
    justify-self: end;
  }

  .position-history-link {
    justify-self: start;
  }

  .fee-flow-visual {
    grid-template-columns: 80px minmax(30px, 1fr) 80px;
    gap: 7px;
  }

  .fee-node-icon {
    width: 52px;
    height: 52px;
  }

  .fee-stats {
    grid-template-columns: 1fr;
  }

  .feed-item {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 11px 0;
  }

  .feed-side {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }

  .feed-status {
    margin-top: 1px;
  }

  .contract-panel {
    padding: 18px;
  }
}
