@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Questrial&display=swap');

:root {
  --sky-display: 'Questrial', 'Avenir Next', 'Segoe UI', sans-serif;
  --sky-body: 'Manrope', 'SF Pro Text', 'Segoe UI', sans-serif;
  --sky-bg: #05050c;
  --sky-text: #f7eeff;
  --sky-muted: #c6b0de;
  --sky-border: rgba(203, 148, 255, 0.3);
  --sky-card: rgba(35, 13, 56, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 92%;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: var(--sky-bg);
}

body {
  font-family: var(--sky-body);
  color: var(--sky-text);
  background: var(--sky-bg);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sky-bg);
}

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

img {
  display: block;
  max-width: 100%;
}
.vault-page {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, #090a13 0%, #04050a 100%);
}

.vault-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  border: 0;
  padding: 0 24px;
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(71, 56, 118, 0.24), rgba(71, 56, 118, 0) 48%),
    linear-gradient(180deg, #090a13 0%, #05050c 100%);
  box-shadow: none;
}

.vault-scroll {
  min-height: 100vh;
  overflow: visible;
  scroll-behavior: smooth;
  padding-bottom: 28px;
}

.hero-stage {
  --spot-x: 56%;
  --spot-y: 44%;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tag-shift-x: 0px;
  --tag-shift-y: 0px;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  grid-template-rows: auto minmax(580px, 1fr);
  gap: 22px 28px;
  padding: 26px 28px 34px;
  background:
    radial-gradient(circle at 52% 48%, rgba(136, 111, 207, 0.18), rgba(136, 111, 207, 0) 28%),
    linear-gradient(180deg, rgba(8, 9, 17, 0.96), rgba(7, 8, 16, 0.98));
  transition: background 180ms ease;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(214, 194, 255, 0.18), rgba(214, 194, 255, 0) 18%),
    radial-gradient(circle at calc(var(--spot-x) + 10%) calc(var(--spot-y) - 6%), rgba(138, 110, 214, 0.12), rgba(138, 110, 214, 0) 22%);
  opacity: 1;
}

.hero-brand,
.hero-rail,
.hero-copy,
.hero-visual,
.hero-cta {
  position: relative;
  z-index: 1;
}

.hero-brand {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--sky-display);
  font-size: 1.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 237, 255, 0.92);
}

.hero-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-rail {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  align-self: center;
  justify-self: start;
  padding-right: 130px;
  overflow-x: auto;
}

.hero-rail a {
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 209, 236, 0.72);
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 0 0 24px;
}

.hero-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(213, 203, 238, 0.7);
}

.hero-title {
  margin: 14px 0 0;
  font-family: var(--sky-display);
  font-size: clamp(1.85rem, 3.3vw, 3.1rem);
  line-height: 0.92;
  font-weight: 400;
  color: rgba(244, 240, 252, 0.94);
  text-shadow: 0 0 26px rgba(200, 189, 255, 0.09);
}

.hero-subtitle {
  margin: 16px 0 0;
  max-width: 28ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(205, 198, 225, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-action-primary,
.hero-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: var(--sky-display);
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-action-primary {
  color: #17111f;
  background: linear-gradient(145deg, #f3e8ff, #c8a8ff);
}

.hero-action-secondary {
  color: rgba(244, 239, 252, 0.94);
  border: 1px solid rgba(227, 219, 242, 0.14);
  background: rgba(17, 18, 29, 0.74);
}

.hero-action-primary:hover,
.hero-action-secondary:hover,
.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-signal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-signal-card {
  border-radius: 14px;
  border: 1px solid rgba(227, 219, 242, 0.12);
  background:
    radial-gradient(140% 120% at 12% 0%, rgba(177, 148, 245, 0.18), rgba(177, 148, 245, 0) 48%),
    linear-gradient(180deg, rgba(18, 19, 32, 0.88), rgba(12, 13, 22, 0.92));
  padding: 12px 14px;
  color: rgba(240, 235, 248, 0.9);
  line-height: 1.3;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: translateZ(0);
}

.hero-stat-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-stat {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(230, 223, 244, 0.12);
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(166, 139, 234, 0.18), rgba(166, 139, 234, 0) 44%),
    linear-gradient(180deg, rgba(17, 18, 29, 0.86), rgba(11, 11, 19, 0.96));
  overflow: hidden;
}

.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(236, 227, 255, 0.92), rgba(183, 151, 245, 0.08));
}

.hero-stat strong {
  font-family: var(--sky-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(246, 241, 252, 0.96);
}

.hero-stat span {
  color: rgba(213, 206, 231, 0.8);
  line-height: 1.4;
  font-size: 0.82rem;
}

.hero-visual {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  perspective: 1200px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: 24px;
  gap: 16px;
}

.hero-grid {
  position: absolute;
  inset: 10% 0 0 48%;
  background-image:
    linear-gradient(rgba(214, 203, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 203, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7) 20%, black 70%);
  opacity: 0.42;
  transform: translate3d(calc(var(--parallax-x) * 0.18), calc(var(--parallax-y) * 0.18), 0);
}

.hero-stars {
  position: absolute;
  inset: 0;
  transform: scale(0.5);
  transform-origin: top left;
}

.hero-stars span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: rgba(247, 242, 255, 0.86);
  box-shadow: 0 0 12px rgba(234, 224, 255, 0.5);
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.particle-sculpture {
  position: absolute;
  inset: 44% auto auto 56%;
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) translate(-50%, -50%)
    rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  animation: sculptureDrift 14s ease-in-out infinite;
  transition: transform 180ms ease-out;
}

.particle-sculpture::before {
  content: '';
  position: absolute;
  inset: 18% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 194, 255, 0.26), rgba(212, 194, 255, 0) 70%);
  filter: blur(24px);
}

.particle-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.52) 38%, rgba(213, 191, 255, 0.72) 70%, rgba(188, 159, 241, 0.88) 100%);
  box-shadow: 0 0 calc(20px * var(--glow)) rgba(230, 214, 255, 0.7);
  transform: translate3d(var(--x), var(--y), 0) scale(var(--scale));
  opacity: var(--opacity);
  filter: blur(var(--blur));
  animation: particlePulse 5.6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(238, 234, 248, 0.16);
  background: rgba(19, 20, 34, 0.7);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
  color: rgba(237, 231, 248, 0.84);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: tagDrift 7s ease-in-out infinite;
  transform: translate3d(var(--tag-shift-x), var(--tag-shift-y), 0);
  transition: transform 180ms ease-out;
}

.section-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 202, 233, 0.72);
}

.vision-market {
  margin-top: 18px;
  width: min(360px, 100%);
}

.vision-market .market-card {
  width: 100%;
}

.hero-cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(237, 232, 245, 0.2);
  padding: 12px 18px;
  font-family: var(--sky-display);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 255, 0.9);
  background: rgba(9, 9, 17, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.story-strip {
  padding: 10px 0 8px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--sky-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: rgba(244, 240, 252, 0.95);
}

.section-heading p:last-child {
  margin: 8px 0 0;
  line-height: 1.45;
  max-width: 42ch;
  color: rgba(213, 205, 230, 0.8);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.landing-section {
  padding: 0 0 20px;
}

.landing-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px 32px;
  align-items: start;
  justify-content: start;
  max-width: 100%;
  margin: 0;
}

.landing-row .section-heading {
  max-width: 340px;
  padding-top: 6px;
}

.landing-row .section-canvas {
  width: 100%;
}

.landing-row .story-grid,
.landing-row .feature-row,
.landing-row .cute-grid {
  margin-top: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.landing-row .strategy-row {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.composition-section {
  display: grid;
  gap: 22px;
  max-width: 100%;
  margin: 0;
  padding-top: 12px;
}

/* Scroll reveal (apply .reveal-on-scroll + .is-visible in JS) */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: calc(var(--index, 0) * 90ms);
  will-change: opacity, transform;
  animation: none !important;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.composition-intro {
  max-width: 620px;
}

.composition-intro h2 {
  margin: 10px 0 0;
  font-family: var(--sky-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1;
  font-weight: 400;
  color: rgba(244, 240, 252, 0.96);
}

.composition-intro p:last-child {
  margin: 10px 0 0;
  max-width: 42ch;
  color: rgba(213, 205, 230, 0.8);
  line-height: 1.45;
}

.composition-band {
  display: grid;
  gap: 14px;
}

.composition-band-head {
  max-width: 680px;
}

.composition-band-head h3 {
  margin: 6px 0 0;
  font-family: var(--sky-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.06;
  color: rgba(244, 240, 252, 0.95);
}

.composition-grid {
  display: grid;
  gap: 16px;
}

.composition-grid-three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.composition-card {
  min-height: 0;
}

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

.composition-summary-panel {
  min-height: 100%;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.summary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(227, 219, 242, 0.1);
  background: rgba(27, 28, 45, 0.56);
}

.summary-item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(243, 234, 255, 0.16), rgba(186, 155, 247, 0.14));
  color: rgba(246, 241, 252, 0.94);
  font-family: var(--sky-display);
  font-size: 0.84rem;
}

.summary-item p {
  margin: 1px 0 0;
  color: rgba(214, 206, 231, 0.82);
  line-height: 1.45;
}

.stakeholder-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stakeholder-chip {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(227, 219, 242, 0.1);
  background: rgba(27, 28, 45, 0.56);
}

.stakeholder-chip strong {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 215, 240, 0.78);
}

.stakeholder-chip span {
  color: rgba(214, 206, 231, 0.82);
  line-height: 1.42;
  font-size: 0.88rem;
}

.intro-band {
  padding-top: 10px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading.wide {
  max-width: 920px;
}

.story-card,
.content-panel {
  border: 1px solid rgba(227, 219, 242, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(100% 120% at 15% 0%, rgba(99, 78, 160, 0.18), rgba(99, 78, 160, 0) 54%),
    linear-gradient(180deg, rgba(17, 18, 29, 0.94), rgba(10, 11, 19, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.story-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  min-height: 156px;
  animation: revealUp 0.8s ease both;
  animation-delay: calc(var(--index) * 0.08s);
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(164, 138, 230, 0.22), rgba(164, 138, 230, 0) 46%),
    linear-gradient(180deg, rgba(22, 23, 36, 0.95), rgba(12, 13, 22, 0.98));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card h3,
.content-panel h3 {
  margin: 0;
  font-family: var(--sky-display);
  font-size: 1.12rem;
  font-weight: 400;
  color: rgba(246, 241, 252, 0.96);
}

.story-card-chip {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 226, 245, 0.12);
  background: rgba(239, 233, 255, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 215, 240, 0.76);
}

.story-card p {
  margin: 8px 0 0;
  color: rgba(214, 206, 231, 0.8);
  line-height: 1.42;
  font-size: 0.88rem;
}

.story-card:hover,
.feature-card:hover,
.cute-card:hover,
.strategy-card:hover,
.milestone-card:hover,
.stakeholder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 214, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 40px 28px;
}

.content-panel {
  padding: 20px;
  animation: revealUp 0.85s ease both;
  animation-delay: calc(var(--index) * 0.08s);
}

.content-panel > h3 {
  margin-top: 8px;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.mechanism-section {
  padding-top: 8px;
}

.feature-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 20px;
  border: 1px solid rgba(227, 219, 242, 0.12);
  background:
    radial-gradient(120% 140% at 14% 0%, rgba(115, 90, 184, 0.22), rgba(115, 90, 184, 0) 50%),
    linear-gradient(180deg, rgba(18, 20, 32, 0.96), rgba(12, 13, 22, 0.98));
  padding: 20px;
  min-height: 188px;
  animation: revealUp 0.8s ease both;
  animation-delay: calc(var(--index) * 0.08s);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-step {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(209, 200, 234, 0.62);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--sky-display);
  font-size: 1.34rem;
  font-weight: 400;
  color: rgba(246, 241, 252, 0.96);
}

.feature-card p {
  margin: 10px 0 0;
  color: rgba(214, 206, 231, 0.8);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.cute-card,
.strategy-card,
.milestone-card,
.stakeholder-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cute-card,
.strategy-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(227, 219, 242, 0.12);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(198, 172, 255, 0.28), rgba(198, 172, 255, 0) 42%),
    linear-gradient(180deg, rgba(23, 24, 39, 0.98), rgba(11, 12, 20, 0.99));
  animation: revealUp 0.82s ease both;
  animation-delay: calc(var(--index) * 0.08s);
}

.cute-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 226, 245, 0.12);
  background: rgba(239, 233, 255, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 215, 240, 0.78);
}

.cute-card-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f2e8ff, #b68fff);
  box-shadow: 0 0 12px rgba(214, 194, 255, 0.62);
}

.cute-card h3,
.strategy-card h3 {
  margin: 16px 0 0;
  font-family: var(--sky-display);
  font-size: 1.14rem;
  font-weight: 400;
  color: rgba(246, 241, 252, 0.96);
}

.cute-card p,
.strategy-card p {
  margin: 8px 0 0;
  color: rgba(214, 206, 231, 0.78);
  line-height: 1.52;
  font-size: 0.88rem;
}

.strategy-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.editorial-panel {
  min-height: 100%;
}

.mechanism-grid,
.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

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

.mini-panel,
.stack-item {
  border-radius: 14px;
  border: 1px solid rgba(227, 219, 242, 0.1);
  background: rgba(28, 28, 46, 0.64);
  padding: 14px;
}

.accent-panel {
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(191, 163, 255, 0.18), rgba(191, 163, 255, 0) 46%),
    linear-gradient(180deg, rgba(17, 18, 29, 0.94), rgba(10, 11, 19, 0.98));
}

.mini-panel h4,
.stack-item h4 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 252, 0.94);
}

.mini-panel p,
.stack-item p,
.cta-copy {
  margin: 8px 0 0;
  color: rgba(212, 205, 229, 0.78);
  line-height: 1.5;
}

.detail-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.detail-list li {
  color: rgba(214, 207, 230, 0.82);
  line-height: 1.5;
}

.end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.milestone-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.milestone-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(227, 219, 242, 0.1);
  background: rgba(28, 28, 46, 0.58);
}

.milestone-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(243, 234, 255, 0.18), rgba(186, 155, 247, 0.14));
  color: rgba(246, 241, 252, 0.94);
  font-family: var(--sky-display);
  font-size: 0.88rem;
}

.milestone-card p {
  margin: 2px 0 0;
  color: rgba(214, 206, 231, 0.82);
  line-height: 1.48;
}

.stakeholder-panel {
  display: flex;
  flex-direction: column;
}

.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stakeholder-card {
  min-height: 138px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(171, 143, 238, 0.22), rgba(171, 143, 238, 0) 44%),
    linear-gradient(180deg, rgba(20, 21, 34, 0.94), rgba(12, 13, 22, 0.98));
}

.stakeholder-card p {
  margin: 14px 0 0;
  color: rgba(214, 206, 231, 0.8);
  line-height: 1.45;
  font-size: 0.9rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.cta-panel a {
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--sky-display);
  font-size: 0.96rem;
  color: #17111f;
  background: linear-gradient(145deg, #f0e8ff, #c6a9ff);
}

@media (max-width: 980px) {
  .vault-shell {
    padding: 0 18px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 22px 18px 28px;
    gap: 18px;
    min-height: unset;
  }

  .hero-brand {
    grid-column: 1;
  }

  .hero-rail {
    grid-column: 1;
    padding-right: 0;
  }
}

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

  .cta-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cta-panel a {
    width: 100%;
    text-align: center;
  }
}

.final-cta {
  padding-bottom: 28px;
}

.market-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(230, 224, 241, 0.12);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(116, 96, 170, 0.24), rgba(116, 96, 170, 0) 46%),
    linear-gradient(180deg, rgba(17, 18, 29, 0.86), rgba(12, 13, 22, 0.96));
  backdrop-filter: blur(14px);
}

.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(227, 220, 242, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 252, 0.86);
}

.market-source {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 203, 229, 0.64);
}

.market-price {
  margin: 12px 0 10px;
  font-family: var(--sky-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: rgba(247, 243, 252, 0.97);
}

.market-chart-wrap {
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(223, 215, 240, 0.08);
  background: rgba(8, 8, 14, 0.46);
}

.market-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.market-warning {
  margin: 8px 0 0;
  color: rgba(212, 205, 229, 0.64);
  line-height: 1.4;
  font-size: 0.76rem;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@keyframes sculptureDrift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -48%) rotate(6deg);
  }
}

@keyframes particlePulse {
  0%,
  100% {
    opacity: var(--opacity);
  }

  50% {
    opacity: calc(var(--opacity) + 0.08);
  }
}

@keyframes tagDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .composition-intro,
  .composition-band-head {
    max-width: 760px;
  }

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

  .landing-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .landing-row .section-heading {
    max-width: 760px;
    padding-top: 0;
  }

  .hero-stage {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  }

  .hero-rail {
    padding-right: 120px;
  }

  .particle-sculpture {
    width: min(58vw, 520px);
    height: min(58vw, 520px);
  }

  .hero-signal-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-stat-list,
  .cute-grid,
  .strategy-row,
  .end-grid {
    grid-template-columns: 1fr;
  }

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

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

  .feature-row,
  .split-section,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 1380px) {
  .composition-grid-three {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

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

  .landing-row {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 18px 24px;
  }

  .story-grid,
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .story-card,
  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .landing-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-row .section-heading,
  .landing-row .section-canvas,
  .vision-market {
    max-width: 100%;
    width: 100%;
  }

  .landing-row .story-grid,
  .story-grid,
  .feature-row,
  .cute-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 0;
  }

  .composition-intro h2 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .composition-grid-three,
  .composition-summary-row,
  .stakeholder-chip-grid {
    grid-template-columns: 1fr;
  }

  .composition-section {
    gap: 18px;
  }

  .composition-band-head h3 {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .composition-card {
    min-height: 0;
  }

  .vault-page {
    padding: 0;
  }

  .hero-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 16px;
    padding: 18px;
  }

  .hero-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-rail {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 0;
    padding-right: 0;
    overflow-x: auto;
  }

  .hero-rail a {
    white-space: nowrap;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 3;
    justify-items: start;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .hero-subtitle {
    max-height: none;
    margin-top: 10px;
  }

  .hero-stat-list {
    margin-top: 12px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 4;
    min-height: 520px;
    perspective: none;
  }

  .particle-sculpture {
    width: min(86vw, 460px);
    height: min(86vw, 460px);
    inset: 44% auto auto 50%;
  }

  .hero-note,
  .hero-market {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 16px;
  }

  .hero-market {
    margin-top: 12px;
    transform: none;
  }

  .hero-cta {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    padding: 12px 16px;
  }

  .hero-stage::after {
    background: radial-gradient(circle at 50% 36%, rgba(214, 194, 255, 0.16), rgba(214, 194, 255, 0) 24%);
  }

  .story-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat-list,
  .story-grid,
  .cute-grid,
  .strategy-row,
  .end-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-card,
  .story-card,
  .cute-card,
  .strategy-card,
  .stakeholder-card {
    min-height: 0;
  }

  .story-strip,
  .content-grid,
  .landing-section {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
.dashboard-page {
  --bg: #0a0f1f;
  --panel: #1a2136;
  --panel-soft: #212a42;
  --text: #f2f5ff;
  --muted: #9ca7c2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #b8a5ff;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(98, 86, 175, 0.32), rgba(98, 86, 175, 0) 36%),
    linear-gradient(180deg, #0a0f1f 0%, #0b1122 100%);
  color: var(--text);
  font-family: var(--sky-body);
  overflow-x: hidden;
}

.dashboard-shell {
  width: min(1180px, calc(100vw - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-back-link,
.dashboard-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-family: var(--sky-display);
}

.dashboard-back-link {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-actions {
  display: flex;
  gap: 8px;
}

.dashboard-button {
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text);
}

.dashboard-button-primary {
  color: #1f1730;
  background: linear-gradient(145deg, #ece1ff, #bfa4ff);
}

.dashboard-button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.wallet-status {
  margin: 0 0 10px;
  color: #b9c4e6;
  font-size: 0.82rem;
}

.dashboard-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.82rem;
}

.dashboard-status-neutral {
  background: rgba(255, 255, 255, 0.04);
  color: #d8def1;
}

.dashboard-status-success {
  background: rgba(42, 117, 82, 0.16);
  border-color: rgba(89, 191, 138, 0.3);
  color: #b9f0cf;
}

.dashboard-status-warning {
  background: rgba(146, 95, 26, 0.16);
  border-color: rgba(221, 170, 87, 0.28);
  color: #f3d2a1;
}

.dashboard-mini-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 10, 22, 0.72);
  backdrop-filter: blur(6px);
}

.dashboard-mini-modal {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(143, 154, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(102, 88, 191, 0.16), rgba(102, 88, 191, 0) 38%),
    linear-gradient(180deg, #151c32 0%, #101626 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.dashboard-action-modal {
  width: min(500px, calc(100vw - 32px));
  border: 1px solid rgba(143, 154, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(102, 88, 191, 0.16), rgba(102, 88, 191, 0) 38%),
    linear-gradient(180deg, #151c32 0%, #101626 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.dashboard-mini-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mini-modal-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-mini-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--sky-display);
  font-weight: 600;
}

.dashboard-mini-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-mini-modal-body {
  padding: 10px 18px 18px;
}

.dashboard-action-modal-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.dashboard-action-balance-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(184, 165, 255, 0.12), rgba(184, 165, 255, 0) 42%),
    rgba(255, 255, 255, 0.03);
}

.dashboard-action-balance-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-action-balance-card strong {
  font-family: var(--sky-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.dashboard-action-input-wrap {
  display: grid;
  gap: 8px;
}

.dashboard-action-input-wrap span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-action-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-action-input {
  width: 100%;
  flex: 1;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(8, 12, 24, 0.66);
  color: var(--text);
  font: inherit;
  font-family: var(--sky-display);
  font-size: 1.4rem;
}

.dashboard-action-input::placeholder {
  color: rgba(197, 203, 226, 0.34);
}

.dashboard-action-inline {
  min-height: 40px;
  min-width: 74px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #dde4f7;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-action-hint {
  margin: -4px 0 0;
  color: #c8d2ef;
  font-size: 0.78rem;
}

.dashboard-action-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-mini-modal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-mini-modal-row:last-child {
  border-bottom: 0;
}

.dashboard-mini-modal-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-mini-modal-row strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

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

.lending-grid > * {
  min-width: 0;
}

.dashboard-link-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(120, 130, 255, 0.2);
  border-radius: 20px;
  padding: 14px 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(164, 138, 230, 0.14), rgba(164, 138, 230, 0) 34%),
    linear-gradient(135deg, #16234c 0%, #13265d 46%, #10204b 100%);
  min-width: 0;
}

.dashboard-link-card-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-link-card-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 238, 255, 0.9), rgba(245, 238, 255, 0) 38%),
    linear-gradient(145deg, rgba(214, 196, 255, 0.3), rgba(132, 112, 210, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dashboard-link-card-mark span {
  color: #f6f0ff;
  font-size: 1rem;
}

.dashboard-link-card h2 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.18;
  font-family: var(--sky-display);
  font-weight: 600;
}

.dashboard-link-card-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  background: #f4f0fb;
  color: #151a2b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-link-card-button-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #151a2b;
  color: #f4f0fb;
  font-size: 0.8rem;
  line-height: 1;
}

.lending-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  padding: 18px;
  min-width: 0;
}

.lending-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lending-card h2,
.lending-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--sky-display);
  font-weight: 600;
}

.lending-empty {
  margin: 18px 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.position-stack {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}

.position-value {
  font-family: var(--sky-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.position-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.position-value-with-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.position-action-button {
  min-height: 34px;
  padding: 0 12px;
}

.position-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.position-meta-inline {
  white-space: nowrap;
}

.position-meta-subtle {
  color: #b6c0df;
  font-size: 0.8rem;
}

.pending-borrow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 207, 198, 0.28);
  background: rgba(28, 108, 102, 0.18);
  color: #9cd9d4;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.position-meta-pairs {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  row-gap: 2px;
  width: fit-content;
}

.position-meta-label {
  min-width: 6.3rem;
  font-weight: 600;
}

.position-meta-value {
  font-variant-numeric: tabular-nums;
}

.litvm-network-card {
  grid-column: 1 / -1;
  display: grid;
  align-content: space-between;
  min-height: 118px;
}

.network-networth {
  width: fit-content;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.network-metrics {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.network-networth span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.network-networth strong {
  display: block;
  margin-top: 7px;
  font-family: var(--sky-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.health-factor-widget {
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 130, 255, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(164, 138, 230, 0.14), rgba(164, 138, 230, 0) 40%),
    rgba(255, 255, 255, 0.03);
}

.health-factor-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.health-factor-widget-head span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.health-factor-widget-head strong {
  font-family: var(--sky-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.health-factor-track {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.health-factor-fill {
  display: block;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f7eff 0%, #b8a5ff 100%);
}

.health-factor-widget p {
  margin: 10px 0 0;
  color: rgba(214, 222, 244, 0.72);
  font-size: 0.82rem;
}

.emode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.emode-pill strong {
  color: #d8ddef;
  font-weight: 700;
}

.lending-card-table {
  padding-top: 12px;
}

.table-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pill {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #dde3f5;
  font: inherit;
  font-size: 0.8rem;
}

.table-text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
}

.checkbox-row {
  margin: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd6ec;
  font-size: 0.82rem;
}

.borrow-notice {
  margin: 12px 0;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(40, 170, 160, 0.28);
  background: rgba(26, 94, 90, 0.18);
  color: #9cd9d4;
  padding: 8px 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.asset-table {
  border-top: 1px solid var(--line);
  width: 100%;
  overflow-x: auto;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) 0.9fr 0.9fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

/* Keep table header/body column alignment consistent */
.asset-row > :nth-child(2),
.asset-row > :nth-child(3),
.asset-row > :nth-child(4) {
  display: block;
  width: 100%;
  text-align: center;
  justify-self: stretch;
  min-width: 0;
}

.asset-row > :nth-child(5) {
  justify-self: end;
}

.asset-row-head {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.asset-row-head > :nth-child(2),
.asset-row-head > :nth-child(3),
.asset-row-head > :nth-child(4) {
  display: block;
  width: 100%;
  text-align: center;
  justify-self: stretch;
  min-width: 0;
}

.asset-row-head > :nth-child(5) {
  justify-self: end;
}


.asset-cell-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asset-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.asset-orb {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, #efefff, #959fc9);
  color: #1d2540;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.asset-action {
  min-height: 32px;
  min-width: 86px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #eceff8;
  color: #252a3a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.asset-action:disabled,
.dashboard-button:disabled,
.table-pill:disabled,
.table-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.asset-action-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #dce2f4;
}

.asset-head-action {
  display: block;
  width: 86px;
}

@media (max-width: 960px) {
  .lending-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-link-card-copy {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    width: calc(100vw - 20px);
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-link-card-copy {
    flex-direction: column;
  }

  .dashboard-link-card-button {
    width: 100%;
  }

  .asset-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .asset-row-head {
    display: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wzkltc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(14px);
}

.wzkltc-modal {
  width: min(608px, calc(100vw - 24px));
  max-height: min(92vh, 960px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(184, 165, 255, 0.16), rgba(184, 165, 255, 0) 32%),
    linear-gradient(180deg, rgba(33, 42, 66, 0.98), rgba(26, 33, 54, 0.98));
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.wzkltc-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wzkltc-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(12, 16, 30, 0.7);
  color: var(--text);
}

.wzkltc-mode-pill p,
.wzkltc-mode-pill h2 {
  margin: 0;
}

.wzkltc-mode-pill p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 245, 255, 0.68);
}

.wzkltc-mode-pill h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  font-family: var(--sky-display);
  font-weight: 600;
}

.wzkltc-mode-icon,
.wzkltc-toolbar-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.wzkltc-mode-icon {
  background: linear-gradient(145deg, rgba(236, 225, 255, 0.96), rgba(191, 164, 255, 0.9));
  color: #1f1730;
}

.wzkltc-mode-icon svg,
.wzkltc-toolbar-button svg,
.wzkltc-route-center svg {
  width: 22px;
  height: 22px;
}

.wzkltc-toolbar-button {
  cursor: pointer;
  background: rgba(10, 15, 31, 0.86);
  color: rgba(242, 245, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wzkltc-close-button {
  flex: 0 0 auto;
}

.wzkltc-connect-card,
.wzkltc-settings-panel,
.wzkltc-flow-card {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(184, 165, 255, 0.12), rgba(184, 165, 255, 0) 42%),
    rgba(9, 14, 28, 0.82);
}

.wzkltc-connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.wzkltc-connect-copy span,
.wzkltc-settings-panel span,
.wzkltc-rate-row span,
.wzkltc-receive-copy small,
.wzkltc-section-head small {
  color: var(--muted);
  font-size: 0.82rem;
}

.wzkltc-connect-copy h3 {
  margin: 6px 0 8px;
  font-family: var(--sky-display);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  font-weight: 600;
  line-height: 1.15;
}

.wzkltc-connect-copy p {
  margin: 0;
  max-width: 48ch;
  color: rgba(242, 245, 255, 0.78);
  line-height: 1.5;
}

.wzkltc-connect-button,
.wzkltc-presets button,
.wzkltc-balance-pill,
.wzkltc-submit {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-family: var(--sky-display);
  font-weight: 600;
}

.wzkltc-connect-button,
.wzkltc-submit {
  padding: 0 20px;
  background: linear-gradient(145deg, #ece1ff, #bfa4ff);
  color: #1f1730;
  cursor: pointer;
}

.wzkltc-connect-button:disabled,
.wzkltc-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.wzkltc-settings-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}

.wzkltc-settings-panel strong,
.wzkltc-rate-row strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.wzkltc-flow-card {
  padding: 15px 14px 14px;
}

.wzkltc-section-head,
.wzkltc-input-row,
.wzkltc-helper-row,
.wzkltc-receive-row,
.wzkltc-rate-row,
.wzkltc-route-row {
  display: flex;
  align-items: center;
}

.wzkltc-section-head,
.wzkltc-helper-row,
.wzkltc-rate-row {
  justify-content: space-between;
}

.wzkltc-section-head span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.wzkltc-input-row,
.wzkltc-receive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}

.wzkltc-amount-field {
  flex: 1 1 auto;
}

.wzkltc-amount-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.wzkltc-amount-field input::placeholder {
  color: rgba(242, 245, 255, 0.26);
}

.wzkltc-amount-field input:focus,
.wzkltc-submit:focus,
.wzkltc-connect-button:focus,
.wzkltc-balance-pill:focus,
.wzkltc-presets button:focus,
.wzkltc-toolbar-button:focus {
  outline: 2px solid rgba(184, 165, 255, 0.5);
  outline-offset: 2px;
}

.wzkltc-token-pill {
  min-width: 184px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  color: #fff;
  align-self: start;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.wzkltc-token-pill-source {
  background: rgba(10, 15, 31, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wzkltc-token-pill-destination {
  background: rgba(10, 15, 31, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wzkltc-token-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.wzkltc-token-mark-source {
  background: rgba(191, 164, 255, 0.18);
}

.wzkltc-token-mark-destination {
  background: linear-gradient(180deg, #3b86ff, #2277ff);
}

.wzkltc-token-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.wzkltc-token-copy strong {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.wzkltc-token-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
}

.wzkltc-helper-row {
  gap: 10px;
  margin-top: 16px;
}

.wzkltc-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wzkltc-presets button,
.wzkltc-balance-pill {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wzkltc-balance-pill {
  min-width: 146px;
  margin-left: auto;
}

.wzkltc-route-row {
  gap: 12px;
  margin: 14px 0;
}

.wzkltc-route-label {
  flex: 1 1 0;
  min-height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 245, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wzkltc-route-center {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ece1ff, #bfa4ff);
  color: #1f1730;
  box-shadow: 0 12px 26px rgba(143, 116, 214, 0.28);
}

.wzkltc-receive-copy {
  display: grid;
  gap: 4px;
}

.wzkltc-receive-copy strong {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--text);
}

.wzkltc-receive-copy span {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(242, 245, 255, 0.82);
}

.wzkltc-receive-copy small {
  max-width: 30ch;
  line-height: 1.45;
}

.wzkltc-rate-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.wzkltc-rate-row span:first-child {
  max-width: 30ch;
  line-height: 1.45;
}

.wzkltc-rate-row strong {
  text-align: right;
}

.wzkltc-panel-message {
  margin: 12px 4px 0;
  font-size: 0.8rem;
}

.wzkltc-panel-message.is-success {
  color: #9df1cc;
}

.wzkltc-panel-message.is-warning {
  color: rgba(242, 245, 255, 0.74);
}

.wzkltc-submit {
  width: 100%;
  margin-top: 14px;
  padding: 0 18px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.wzkltc-submit:hover:not(:disabled),
.wzkltc-connect-button:hover:not(:disabled),
.wzkltc-toolbar-button:hover,
.wzkltc-presets button:hover,
.wzkltc-balance-pill:hover {
  transform: translateY(-1px);
}

.wzkltc-connect-button {
  min-width: 220px;
}

@media (max-width: 760px) {
  .wzkltc-modal {
    padding: 18px;
  }

  .wzkltc-modal-top,
  .wzkltc-helper-row,
  .wzkltc-rate-row,
  .wzkltc-connect-card {
    flex-direction: column;
    align-items: stretch;
  }

  .wzkltc-input-row,
  .wzkltc-receive-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .wzkltc-token-pill,
  .wzkltc-balance-pill,
  .wzkltc-connect-button {
    width: 100%;
  }

  .wzkltc-rate-row strong {
    text-align: left;
  }

  .wzkltc-settings-panel {
    grid-template-columns: 1fr;
  }

  .wzkltc-route-row {
    flex-direction: column;
  }

  .wzkltc-route-label,
  .wzkltc-route-center {
    width: 100%;
  }
}
.dashboard-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(98, 86, 175, 0.32), rgba(98, 86, 175, 0) 36%),
    linear-gradient(180deg, #0a0f1f 0%, #0b1122 100%);
  color: #f2f5ff;
}

.dashboard-login-shell {
  width: min(1180px, calc(100vw - 32px));
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px 0;
}

.dashboard-login-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #212a42, #1a2136);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.dashboard-login-head,
.dashboard-login-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-login-badge,
.dashboard-login-close,
.dashboard-login-submit,
.dashboard-login-summary,
.dashboard-login-note {
  border-radius: 999px;
}

.dashboard-login-badge,
.dashboard-login-close {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #f2f5ff;
  text-decoration: none;
  font-family: var(--sky-display);
}

.dashboard-login-badge span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ece1ff, #bfa4ff);
  color: #1f1730;
  font-size: 0.76rem;
}

.dashboard-login-badge p {
  margin: 0;
  font-size: 0.9rem;
}

.dashboard-login-close {
  justify-content: center;
}

.dashboard-login-hero {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(164, 138, 230, 0.12), rgba(164, 138, 230, 0) 40%),
    rgba(255, 255, 255, 0.03);
}

.dashboard-login-copy {
  min-width: 0;
}

.dashboard-login-kicker {
  margin: 0 0 8px;
  color: #9ca7c2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-login-copy h1 {
  margin: 0;
  font-family: var(--sky-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.96;
  font-weight: 600;
  max-width: 12ch;
}

.dashboard-login-copy p:last-child {
  margin: 10px 0 0;
  max-width: 42ch;
  color: #cfd6ec;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-login-summary {
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 130, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  align-content: center;
  gap: 4px;
}

.dashboard-login-summary span,
.dashboard-login-field span {
  color: #9ca7c2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-login-summary strong {
  font-family: var(--sky-display);
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-login-summary small {
  color: #b6c0df;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.dashboard-login-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.dashboard-login-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr);
  gap: 12px;
}

.dashboard-login-field {
  display: grid;
  gap: 8px;
}

.dashboard-login-field input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(8, 12, 24, 0.66);
  color: #f2f5ff;
  font: inherit;
  font-size: 0.96rem;
}

.dashboard-login-field-primary input {
  font-family: var(--sky-display);
  font-size: 1.02rem;
}

.dashboard-login-field input::placeholder {
  color: rgba(197, 203, 226, 0.38);
}

.dashboard-login-note {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(40, 170, 160, 0.28);
  border-radius: 8px;
  background: rgba(26, 94, 90, 0.18);
  color: #9cd9d4;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
}

.dashboard-login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(221, 170, 87, 0.28);
  border-radius: 8px;
  background: rgba(146, 95, 26, 0.16);
  color: #f3d2a1;
  font-size: 0.82rem;
}

.dashboard-login-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-login-submit {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: linear-gradient(145deg, #ece1ff, #bfa4ff);
  color: #1f1730;
  font: inherit;
  font-family: var(--sky-display);
  cursor: pointer;
}

.dashboard-login-submit:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .dashboard-login-hero,
  .dashboard-login-head,
  .dashboard-login-field-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-login-summary {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-login-shell {
    width: calc(100vw - 20px);
  }

  .dashboard-login-card {
    padding: 14px;
  }

  .dashboard-login-close,
  .dashboard-login-submit,
  .dashboard-login-badge {
    width: 100%;
    justify-content: center;
  }

  .dashboard-login-copy h1 {
    max-width: none;
  }
}
.solver-page .dashboard-shell {
  width: min(1120px, calc(100vw - 28px));
  padding: 12px 0 18px;
}

.solver-page .dashboard-header {
  margin-bottom: 8px;
}

.solver-page .dashboard-back-link,
.solver-page .dashboard-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.solver-page .dashboard-button {
  border-radius: 10px;
  font-family: var(--sky-display);
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.solver-panel .dashboard-button-primary {
  border: 1px solid rgba(166, 150, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(152, 136, 233, 0.18), rgba(123, 108, 203, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.solver-panel .dashboard-button-primary:hover:not(:disabled) {
  border-color: rgba(182, 167, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(160, 145, 242, 0.24), rgba(130, 114, 212, 0.18)),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.solver-page .dashboard-button-ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe3f7;
}

.solver-page .dashboard-button-ghost:hover:not(:disabled) {
  border-color: rgba(173, 185, 232, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.solver-page .lending-card {
  border-radius: 12px;
  padding: 11px 12px;
}

.solver-page .lending-card h2,
.solver-page .lending-card h3 {
  font-size: 0.9rem;
  line-height: 1.2;
}

.solver-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 132px;
}

.solver-hero-copy {
  min-width: 0;
}

.solver-hero h1 {
  margin: 1px 0 5px;
  font-family: var(--sky-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 16ch;
}

.solver-hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.solver-hero-metrics {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
}

.solver-hero-metrics span,
.solver-metric-card span,
.solver-position-list span,
.solver-config-list span,
.solver-input-wrap > span {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.solver-hero-metrics strong {
  font-size: clamp(1rem, 1.75vw, 1.2rem);
}

.solver-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.solver-grid-wide {
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  align-items: start;
}

.solver-left-stack {
  display: grid;
  gap: 9px;
  align-content: start;
}

.solver-metric-card {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.solver-metric-card strong {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1;
}

.solver-metric-card p,
.solver-panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.solver-panel {
  min-height: 0;
}

.solver-position-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.solver-position-list div {
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7px 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.solver-position-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.solver-position-list strong {
  font-size: 0.86rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.solver-panel-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.07);
}

.solver-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.solver-config-grid div {
  min-height: 36px;
  display: grid;
  gap: 2px;
  align-content: center;
}

.solver-config-grid strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.solver-orders-inline {
  display: grid;
  gap: 8px;
}

.solver-orders-panel {
  min-height: 0;
}

.solver-orders-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.solver-orders-inline-head h3 {
  margin: 0;
}

.solver-orders-inline-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.solver-orders-inline-head .dashboard-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
}

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

.solver-order-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #edf1ff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  text-align: left;
  cursor: pointer;
}

.solver-order-card span,
.solver-orders-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.solver-order-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.solver-orders-empty {
  margin: 0;
  padding: 10px 0 2px;
}

.solver-input-wrap {
  margin-top: 7px;
}

.solver-input-wrap .dashboard-action-input-row {
  gap: 7px;
  min-width: 0;
  align-items: center;
}

.solver-input-wrap .dashboard-action-input {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.88rem;
  min-width: 0;
}

.solver-input-wrap .dashboard-action-inline {
  min-height: 28px;
  min-width: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(158, 170, 217, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #d8dff4;
  font-size: 0.78rem;
  font-weight: 600;
}

.solver-wide-button {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  border-radius: 10px;
  letter-spacing: 0;
}

.solver-action-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.solver-action-split .dashboard-button {
  min-height: 36px;
  padding: 0 14px;
}

.solver-panel .lending-card-head h2 {
  margin-bottom: 2px;
}

.solver-panel .solver-panel-copy + .solver-input-wrap {
  margin-top: 10px;
}

.solver-order-input {
  font-size: 0.82rem;
  min-height: 34px;
}

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

@media (max-width: 760px) {
  .solver-hero,
  .solver-grid,
  .solver-grid-wide,
  .solver-action-split {
    grid-template-columns: 1fr;
  }

  .solver-left-stack {
    grid-template-columns: 1fr;
  }

  .solver-hero {
    display: grid;
  }

  .solver-hero-metrics {
    min-width: 0;
  }

  .solver-position-list,
  .solver-config-grid,
  .solver-order-card {
    grid-template-columns: 1fr;
  }

  .solver-position-list div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .solver-position-list div:last-child {
    border-bottom: 0;
  }
}
