[data-jelly-surface] {
  --jelly-line: var(--line, var(--border, #d8b9c9));
  --jelly-accent: var(--accent, var(--signal, var(--pink, #9c2b60)));
  --jelly-panel: var(--surface, var(--panel, #fffafc));
  --jelly-mono: var(--font-mono, var(--mono, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace));
  --jelly-cut: 4px;
}

.jelly-mesh {
  --mesh-wire: #632647;
  --mesh-lattice: #a7658b;
  --mesh-trace: #8d194f;
  position: relative;
  min-width: 0;
  min-height: 172px;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--jelly-line);
  border-radius: var(--jelly-cut);
  background:
    repeating-linear-gradient(0deg, transparent 0 20px, color-mix(in srgb, var(--mesh-lattice) 12%, transparent) 20px 21px),
    repeating-linear-gradient(90deg, transparent 0 20px, color-mix(in srgb, var(--mesh-lattice) 12%, transparent) 20px 21px),
    color-mix(in srgb, var(--jelly-accent) 3%, var(--jelly-panel));
}
html[data-theme="dark"] .jelly-mesh {
  --mesh-wire: #ffe1ee;
  --mesh-lattice: #bb7fa4;
  --mesh-trace: #ff90c0;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .jelly-mesh {
    --mesh-wire: #ffe1ee;
    --mesh-lattice: #bb7fa4;
    --mesh-trace: #ff90c0;
  }
}
.jelly-mesh canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
[data-jelly-surface] .jelly-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(14px, 3vw, 38px);
  min-width: 0;
}
.jelly-side { display: grid; min-width: 0; gap: 10px; }
.jelly-side > .session { justify-self: end; }

[data-jelly-surface] :is(.topbar, .top-inner, .docs-header-inner, .changelog-header-inner, .breadcrumb, .venue, .eyebrow, .network, .section-head .tag) {
  font-family: var(--jelly-mono);
}
[data-jelly-surface] :is(table, .metrics-strip, .metric, .metric-card, .facts) {
  font-variant-numeric: tabular-nums;
}
[data-jelly-surface] :is(th, .metric > strong, .metric-card > strong, .metrics-strip strong, .amount, .changelog-entry time) {
  font-family: var(--jelly-mono);
}
[data-jelly-surface]:not([data-jelly-surface="landing"]) :is(.panel, .card, .market-section, .market, .metric-card, .metrics-strip, .claim-action, .code-panel) {
  border-radius: var(--jelly-cut);
  box-shadow: none;
}
[data-jelly-surface]:not([data-jelly-surface="landing"]) :is(.nav-link, .sidebar nav a, .button, .wallet-button, .quiet, .claim-action button, .filters .search, .filters .select, dialog) {
  border-radius: var(--jelly-cut);
}
[data-jelly-surface]:not([data-jelly-surface="landing"]) :is(.topbar, .sidebar nav, .nav-link, .market-head, .hero-buttons, .breadcrumb) {
  font-family: var(--jelly-mono);
}
[data-jelly-surface] :is(.topbar, .market-head, .section-heading) {
  border-color: var(--jelly-line);
}
[data-jelly-surface] :is(.topbar, .section-heading, .section-head, .market-head) :is(h2, h3) {
  letter-spacing: -.02em;
}
[data-jelly-surface] :is(.surface-hero, .overview-heading, .explore-intro, .changelog-intro, .page-heading.jelly-split) {
  border-radius: var(--jelly-cut);
}
[data-jelly-surface] .surface-hero {
  padding: clamp(15px, 3vw, 30px);
  border: 1px solid var(--jelly-line);
  background: color-mix(in srgb, var(--jelly-accent) 5%, var(--jelly-panel));
}
[data-jelly-surface] :is(.docs-nav, .docs-breadcrumb, .changelog-controls, .product-nav) {
  font-family: var(--jelly-mono);
}
[data-jelly-surface] :is(.workspace-nav, .anchor-nav, .docs-tabs) a,
[data-jelly-surface] :is(.workspace-nav, .anchor-nav, .docs-tabs) button {
  font-family: var(--jelly-mono);
  border-radius: 5px;
}
[data-jelly-surface="landing"] :is(.nav-links, .suite-capabilities, .docs-product-custody) {
  font-family: var(--jelly-mono);
}
[data-jelly-surface] :is(.docs-cover, .changelog-intro, .surface-hero, .overview-heading, .explore-intro, .intro.jelly-split, .hero.jelly-split) {
  background: var(--jelly-panel);
  border-radius: var(--jelly-cut);
  box-shadow: none;
}
[data-jelly-surface] :is(.hero.jelly-split, .changelog-intro)::before,
[data-jelly-surface] .hero.jelly-split::after {
  content: none;
}
[data-jelly-surface] :is(.docs-cover, .changelog-intro, .surface-hero, .overview-heading, .explore-intro, .intro.jelly-split, .hero.jelly-split, .page-heading) h1 {
  font-family: var(--jelly-mono);
  letter-spacing: -.065em;
}
[data-jelly-surface] :is(.docs-cover, .overview-heading, .surface-hero, .hero.jelly-split) h1 em {
  color: var(--jelly-accent);
  font-family: inherit;
  font-style: normal;
}
[data-jelly-surface] :is(.overview-heading, .explore-intro) {
  border: 1px solid var(--jelly-line);
  padding: clamp(14px, 2.3vw, 29px);
}
[data-jelly-surface="landing"] .docs-mesh {
  position: absolute;
  right: 14px;
  top: 70px;
  width: min(34%, 320px);
  min-height: 150px;
}
[data-jelly-surface="landing"] .docs-cover { border-radius: var(--jelly-cut); }
[data-jelly-surface="landing"] :is(.docs-product-card, .docs-card, .changelog-entry) {
  border-radius: var(--jelly-cut);
  box-shadow: none;
}
[data-jelly-surface="landing"] .changelog-mesh { min-height: 156px; }
[data-jelly-surface="desk"] .desk-mesh { min-height: 114px; }
[data-jelly-surface="desk"] .page-heading.jelly-split { padding: 15px clamp(12px, 2vw, 22px); border: 1px solid var(--jelly-line); background: var(--surface); }
[data-jelly-surface="liquidity"] .liquidity-mesh { min-height: clamp(155px, 25vw, 300px); }
[data-jelly-surface="radar"] .radar-mesh { min-height: clamp(158px, 23vw, 290px); }
[data-jelly-surface="hedge"] .hedge-mesh,
[data-jelly-surface="forge"] .forge-mesh { min-height: 148px; }
[data-jelly-surface="terminal"] .terminal-mesh { min-height: 147px; }
[data-jelly-surface="terminal"] .hero-text .source { margin-top: 12px; width: fit-content; }
[data-jelly-surface="terminal"] :is(.top, .filters) { font-family: var(--jelly-mono); }
[data-jelly-surface="rewards"] .rewards-mesh { min-height: 215px; }
[data-jelly-surface="rewards"] :is(h1, .amount, .label, .network) { font-family: var(--jelly-mono); }
[data-jelly-surface="rewards"] h1 { font-size: clamp(2.35rem, 6vw, 4.85rem); }
[data-jelly-surface="rewards"] .hero { margin-bottom: 12px; }

@media (max-width: 700px) {
  [data-jelly-surface] .jelly-split { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .jelly-mesh { min-height: 135px; }
  [data-jelly-surface="landing"] .docs-mesh {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 124px;
    margin: 14px 0 0;
  }
  [data-jelly-surface="landing"] .changelog-mesh,
  [data-jelly-surface="rewards"] .rewards-mesh { min-height: 143px; }
  .jelly-side > .session { justify-self: start; }
}

@media (1024px <= width < 1220px) {
  [data-jelly-surface="landing"] .nav-links { gap: clamp(9px, 1.25vw, 15px); font-size: 11px; }
}

@media (max-width: 480px) {
  [data-jelly-surface="radar"] .overview-heading h1 { font-size: clamp(33px, 10.2vw, 49px); }
}
