:root {
  color-scheme: dark;
  --bg: #030613;
  --bg2: #080b24;
  --ink: #f8f5ff;
  --muted: #aca8ca;
  --violet: #7c3cff;
  --violet2: #a96cff;
  --pink: #ff4fe5;
  --blue: #43b8ff;
  --orange: #ff8a1f;
  --orange2: #ffb04b;
  --panel: rgba(10, 11, 42, .78);
  --panel2: rgba(16, 13, 55, .92);
  --line: rgba(191, 144, 255, .35);
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --radius: 28px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(111, 43, 255, .25), transparent 38rem),
    radial-gradient(circle at 10% 35%, rgba(30, 91, 255, .13), transparent 30rem),
    radial-gradient(circle at 88% 52%, rgba(255, 55, 224, .12), transparent 28rem),
    linear-gradient(180deg, #02040f 0%, #05081c 44%, #02040f 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 16% 20%, rgba(255,255,255,.85) 0 1px, transparent 1.3px),
    radial-gradient(circle at 70% 12%, rgba(123,180,255,.75) 0 1px, transparent 1.2px),
    radial-gradient(circle at 35% 74%, rgba(255,113,236,.8) 0 1px, transparent 1.2px),
    radial-gradient(circle at 82% 64%, rgba(255,255,255,.62) 0 1px, transparent 1.2px);
  background-size: 180px 210px, 250px 270px, 210px 240px, 290px 330px;
  z-index: -1;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-shell { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(180deg, rgba(3,6,19,.94), rgba(3,6,19,.72));
  backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brandmark { text-decoration: none; text-align: center; line-height: 1; }
.brandmark strong {
  display: block;
  font-size: clamp(1.1rem, 4vw, 1.85rem);
  letter-spacing: .34em;
  font-weight: 500;
  text-shadow: 0 0 22px rgba(183, 118, 255, .7);
}
.brandmark small { display: block; margin-top: 7px; color: #c9b9ef; letter-spacing: .22em; text-transform: uppercase; font-size: .61rem; }

.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 92, 232, .72);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(155deg, rgba(255,79,229,.82), rgba(91,35,178,.9));
  box-shadow: 0 0 24px rgba(255,79,229,.33), inset 0 1px 0 rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-button svg { width: 25px; height: 25px; }

.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(88vw, 360px);
  padding: max(22px, env(safe-area-inset-top)) 18px 24px;
  transform: translateX(-104%);
  transition: transform .25s ease;
  background: linear-gradient(180deg, rgba(8,7,35,.98), rgba(12,6,33,.98));
  border-right: 1px solid rgba(190,132,255,.28);
  box-shadow: 30px 0 80px rgba(0,0,0,.55);
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 28px));
  touch-action: pan-y;
}
.menu-drawer.open { transform: translateX(0); }
.menu-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.56); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.drawer-head strong { font-size: 1.4rem; letter-spacing: .08em; }
.drawer-nav { display: grid; gap: 7px; }
.drawer-nav a,
.drawer-nav button {
  display:flex;
  align-items:center;
  width:100%;
  min-height:58px;
  text-align:left;
  text-decoration:none;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.035);
  color:#eee8ff;
  font-weight:720;
  cursor:pointer;
}
.drawer-nav a:hover, .drawer-nav a:focus-visible,
.drawer-nav button:hover, .drawer-nav button:focus-visible { border-color:rgba(197,146,255,.4); background:rgba(132,75,255,.12); outline:none; }
[data-wallet-panel] code{display:block;color:#fff;font-size:.92rem;overflow-wrap:anywhere}

.index-page { overflow: hidden; }
.index-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto;
  isolation: isolate;
  transition: min-height .35s ease;
}
.index-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 38%, rgba(154,70,255,.23), transparent 20rem),
    radial-gradient(circle at 28% 36%, rgba(45,133,255,.13), transparent 22rem),
    radial-gradient(circle at 76% 44%, rgba(255,61,214,.12), transparent 18rem);
}
.index-head {
  position: relative;
  z-index: 7;
  padding: max(20px, env(safe-area-inset-top)) 18px 8px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: start;
}
.index-title { text-align: center; padding-top: 8px; }
.index-title h1 {
  margin: 0;
  font-weight: 380;
  font-size: clamp(2.35rem, 10vw, 5rem);
  letter-spacing: .19em;
  text-indent: .19em;
  text-shadow: 0 0 28px rgba(190,132,255,.82);
}
.index-title p { margin: 8px 0 0; color: #d0c5ef; letter-spacing: .22em; font-size: clamp(.77rem, 2.4vw, 1.02rem); }
.index-title small { display: block; margin-top: 14px; color: #9f9ab9; letter-spacing: .2em; text-transform: uppercase; font-size: .62rem; }
.index-spacer { width: 56px; }

.cloud-wrap {
  position: relative;
  min-height: 360px;
  width: min(920px, 100%);
  margin: 0 auto;
  transform-origin: 50% 72%;
  transition: transform .48s cubic-bezier(.2,.8,.2,1), opacity .35s ease, filter .35s ease;
}
.cloud-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 65%;
  height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(120,98,255,.45), rgba(64,86,255,.1) 45%, transparent 72%);
  filter: blur(15px);
  z-index: -1;
}
#omniCloud { display: block; width: 100%; height: 100%; min-height: 360px; touch-action: pan-y; }
.cloud-caption {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #b9b0d9;
  font-size: .65rem;
  white-space: nowrap;
}

.index-controls {
  position: relative;
  z-index: 8;
  width: min(900px, calc(100% - 20px));
  margin: -4px auto max(22px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  transition: transform .44s cubic-bezier(.2,.8,.2,1);
}
.mode-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode-button {
  min-height: 52px;
  border-radius: 19px;
  border: 1px solid rgba(144, 116, 255, .38);
  color: #eeeaff;
  background:
    radial-gradient(circle at 18% 15%, rgba(70,126,255,.16), transparent 48%),
    linear-gradient(145deg, rgba(20,27,74,.85), rgba(44,17,83,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.28);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.mode-button:nth-child(2) { background: linear-gradient(145deg, rgba(24,42,85,.82), rgba(35,21,82,.8)); }
.mode-button:nth-child(3) { background: linear-gradient(145deg, rgba(45,21,82,.82), rgba(68,20,78,.76)); }
.mode-button.active {
  border-color: rgba(244,129,255,.8);
  background: linear-gradient(145deg, rgba(89,45,171,.86), rgba(60,20,104,.87));
  box-shadow: 0 0 0 1px rgba(255,112,234,.18), 0 0 25px rgba(190,72,255,.28), inset 0 1px 0 rgba(255,255,255,.13);
}
.mode-button:active { transform: scale(.985); }
.mode-button span { font-family: Georgia, serif; font-size: 1.25em; margin-left: 4px; }

.search-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 30px;
  border: 1px solid rgba(223,165,255,.9);
  background: linear-gradient(180deg, rgba(8,10,42,.94), rgba(9,8,35,.96));
  box-shadow: 0 0 0 1px rgba(111,70,255,.35), 0 0 28px rgba(145,61,255,.35), 0 20px 45px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: box-shadow .2s ease, transform .35s ease, border-color .2s ease;
}
.search-shell:focus-within {
  border-color: rgba(255,202,255,.98);
  box-shadow: 0 0 0 2px rgba(242,126,255,.22), 0 0 40px rgba(198,63,255,.55), 0 24px 65px rgba(0,0,0,.5);
}
.search-menu {
  width: 55px;
  height: 55px;
  border-radius: 20px;
  border: 1px solid rgba(255,115,237,.72);
  color: #fff;
  background: linear-gradient(145deg, rgba(252,77,227,.92), rgba(113,35,190,.94));
  box-shadow: 0 0 20px rgba(255,76,226,.42), inset 0 1px 0 rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-icon { width: 23px; height: 23px; opacity: .9; }
.search-input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  font-weight: 680;
  letter-spacing: .02em;
}
.search-input::placeholder { color: #aaa6c6; }
.search-submit {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(244,206,255,.9);
  color: #fff;
  background: radial-gradient(circle at 35% 25%, #ef86ff 0%, #a02de2 40%, #471178 78%, #1d0a40 100%);
  box-shadow: 0 0 0 3px rgba(183,72,255,.18), 0 0 24px rgba(205,75,255,.56), inset 0 1px 0 rgba(255,255,255,.28);
  font: 2.2rem/1 Georgia, serif;
  cursor: pointer;
}

.index-hero.search-focused .cloud-wrap { transform: scale(1.18) translateY(-8%); opacity: .55; filter: blur(.35px); }
.index-hero.search-focused .index-controls { transform: translateY(-18vh) scale(1.015); }
.index-hero.search-focused .index-title { opacity: .58; transition: opacity .25s ease; }
.index-hero.search-focused .mode-row { opacity: .55; transition: opacity .25s ease; }

.content-page { padding-bottom: 44px; }
.page-hero { padding: 26px 0 14px; }
.page-kicker { color: #bf9fff; text-transform: uppercase; letter-spacing: .23em; font-size: .67rem; font-weight: 800; }
.page-title { margin: 8px 0 8px; font-size: clamp(2rem, 7vw, 4rem); line-height: .98; letter-spacing: -.025em; }
.page-subtitle { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(.98rem, 2.8vw, 1.12rem); line-height: 1.7; }

.query-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 9px;
  border: 1px solid rgba(176,127,255,.34);
  border-radius: 22px;
  background: rgba(11,11,43,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.24);
}
.query-strip input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 1rem; font-weight: 700; }
.query-strip button { border: 0; border-radius: 15px; min-height: 44px; padding: 0 15px; color: white; background: linear-gradient(135deg, #8a39f0, #be46e8); font-weight: 800; cursor: pointer; }

.pill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill-nav a, .pill-nav button {
  text-decoration: none;
  border: 1px solid rgba(183,137,255,.3);
  border-radius: 999px;
  padding: 10px 15px;
  color: #ddd5f8;
  background: rgba(255,255,255,.035);
  font-weight: 760;
  cursor: pointer;
}
.pill-nav .active { border-color: rgba(246,151,255,.65); background: rgba(122,56,219,.22); color: #fff; }

.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel {
  border: 1px solid rgba(178,131,255,.23);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16,14,56,.78), rgba(7,10,34,.84));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
}
.panel-pad { padding: clamp(18px, 4vw, 30px); }
.section-title { margin: 0 0 14px; font-size: clamp(1.25rem, 4vw, 1.7rem); }
.section-copy { color: #c4bfd6; line-height: 1.7; }
.muted { color: var(--muted); }

.overview-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 16px; align-items: stretch; }
.overview-copy { font-size: clamp(1rem, 2.7vw, 1.12rem); line-height: 1.75; color: #e5e0ef; }
.overview-copy p:first-child { margin-top: 0; }
.topic-visual {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,125,213,.23), transparent 23%),
    radial-gradient(circle at 30% 25%, rgba(55,118,255,.18), transparent 30%),
    linear-gradient(145deg, #10082e, #07122d 55%, #090518);
}
.topic-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.topic-orb { position: relative; z-index: 2; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(238,180,255,.6); background: radial-gradient(circle, rgba(177,65,255,.7), rgba(42,16,82,.75) 62%, rgba(0,0,0,.2)); box-shadow: 0 0 45px rgba(189,65,255,.45); font: 4.8rem Georgia, serif; }

.source-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.source-head h2 { margin: 0; }
.profile-meter { min-width: 180px; text-align: right; color: #c9c0df; font-size: .78rem; }
.meter { height: 7px; margin-top: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #774bff, #ff6dde); transition: width .3s ease; }

.sources-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,146,55,.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,179,61,.16), transparent 34%),
    linear-gradient(145deg, rgba(98,38,4,.84), rgba(62,20,5,.9));
  box-shadow: 0 0 24px rgba(255,116,19,.16), inset 0 1px 0 rgba(255,219,169,.08);
  padding: 14px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 13px;
  min-height: 190px;
}
.source-card img { width: 112px; height: 112px; border-radius: 17px; object-fit: cover; border: 1px solid rgba(255,182,85,.5); background: rgba(0,0,0,.25); }
.source-card h3 { margin: 2px 0 5px; font-size: 1.03rem; }
.source-card p { margin: 0; color: #efd7c5; font-size: .88rem; line-height: 1.5; }
.source-domain { color: #ffbc77; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.source-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.source-actions button, .source-actions a { flex: 1; text-align: center; text-decoration: none; border: 1px solid rgba(255,166,72,.48); border-radius: 13px; padding: 9px 10px; color: white; background: rgba(32,7,0,.34); font-weight: 780; cursor: pointer; }
.source-actions .collected { background: rgba(142,67,255,.32); border-color: rgba(208,154,255,.72); }

.loading { padding: 22px; text-align: center; color: #beb6d4; }
.loading::after { content: ""; display: block; width: 42px; height: 42px; margin: 14px auto 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: #c56cff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.structured-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
.data-list { display: grid; gap: 8px; }
.data-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05); }
.data-row strong { overflow-wrap: anywhere; }
.score { font-variant-numeric: tabular-nums; color: #e5b8ff; font-weight: 850; }
.json-box { max-height: 460px; overflow: auto; padding: 16px; border-radius: 18px; background: #050715; border: 1px solid rgba(153,111,255,.22); color: #c9c8ef; font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.action-row button, .action-row a { text-decoration: none; border: 1px solid rgba(191,140,255,.4); border-radius: 14px; padding: 11px 14px; color: white; background: rgba(105,47,192,.22); font-weight: 780; cursor: pointer; }

.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.research-card {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 23px;
  border: 1px solid rgba(213,151,255,.42);
  background:
    radial-gradient(circle at 95% 0%, rgba(222,85,255,.22), transparent 36%),
    radial-gradient(circle at 10% 95%, rgba(50,104,255,.16), transparent 40%),
    linear-gradient(145deg, rgba(42,16,91,.9), rgba(14,12,55,.92));
  box-shadow: 0 0 24px rgba(152,62,255,.16), inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
}
.research-card::after { content: ""; position: absolute; inset: auto -10% -40% 25%; height: 65%; transform: rotate(-8deg); background: radial-gradient(ellipse, rgba(207,91,255,.18), transparent 70%); }
.hash { display: inline-block; color: #ff9ff2; font: 900 1.08rem/1 ui-monospace, monospace; letter-spacing: .06em; text-shadow: 0 0 13px rgba(255,94,227,.45); }
.research-card h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.research-card p { margin: 0; color: #cfc7e8; line-height: 1.55; }
.card-foot { position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 2; display: flex; justify-content: space-between; color: #9e94c2; font-size: .72rem; }
.shell-banner { margin: 20px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shell-banner h2 { margin: 0; }
.shell-banner small { color: #a8a0c0; }

.ecosystem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eco-card { min-height: 220px; padding: 19px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.eco-card:hover { transform: translateY(-2px); border-color: rgba(231,170,255,.52); }
.eco-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, rgba(111,72,255,.34), rgba(250,71,218,.2)); border: 1px solid rgba(213,162,255,.25); font: 1.45rem Georgia, serif; }
.eco-card h2 { margin: 16px 0 6px; font-size: 1.12rem; }
.eco-card p { margin: 0; color: #bdb5d0; line-height: 1.5; font-size: .9rem; }
.eco-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.eco-tools span { padding: 5px 8px; border: 1px solid rgba(188,138,255,.19); border-radius: 999px; color: #d4c9ed; background: rgba(255,255,255,.025); font-size: .68rem; }

.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: 14px; }
.tool-list { display: grid; gap: 8px; }
.tool-item { padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055); }
.repo-link { display: inline-flex; margin-top: 12px; padding: 10px 13px; border-radius: 13px; border: 1px solid rgba(179,130,255,.35); text-decoration: none; font-weight: 780; background: rgba(122,61,218,.16); }

.notice { margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(116,176,255,.2); background: rgba(52,102,180,.08); color: #c7d5ee; line-height: 1.6; }

@media (max-width: 900px) {
  .overview-layout, .structured-grid, .product-hero { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 14px, var(--max)); }
  .index-head { grid-template-columns: 48px 1fr 48px; padding-inline: 9px; }
  .index-title h1 { font-size: clamp(2.15rem, 12vw, 3.6rem); }
  .cloud-wrap { min-height: 350px; }
  #omniCloud { min-height: 350px; }
  .mode-row { gap: 6px; }
  .mode-button { min-height: 48px; padding: 7px 4px; font-size: .79rem; }
  .index-controls { width: calc(100% - 10px); gap: 8px; }
  .search-shell { min-height: 66px; grid-template-columns: auto auto 1fr auto; gap: 6px; padding: 5px; border-radius: 25px; }
  .search-menu { width: 49px; height: 49px; border-radius: 17px; }
  .search-submit { width: 50px; height: 50px; font-size: 1.95rem; }
  .index-hero.search-focused .cloud-wrap { transform: scale(1.26) translateY(-9%); }
  .index-hero.search-focused .index-controls { transform: translateY(-25vh) scale(1.01); }
  .sources-grid, .cards-grid, .grid.two, .grid.three, .ecosystem-grid { grid-template-columns: 1fr; }
  .source-card { grid-template-columns: 92px 1fr; min-height: 175px; }
  .source-card img { width: 92px; height: 92px; }
  .source-head { align-items: start; flex-direction: column; }
  .profile-meter { width: 100%; text-align: left; }
  .topbar { grid-template-columns: auto 1fr auto; padding-inline: 8px; }
  .brandmark strong { letter-spacing: .19em; text-indent: .19em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Page 3 collected stories and page 4 indexed-data flow */
.story-feature {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 157, 58, .42);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(54, 20, 7, .9), rgba(13, 11, 42, .94) 58%);
  box-shadow: 0 26px 70px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,222,183,.08);
}
.story-image { display: block; width: 100%; height: clamp(230px, 42vw, 520px); object-fit: cover; background: #09071e; }
.story-image-fallback { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(220,79,255,.38), transparent 25%), linear-gradient(145deg,#140731,#071534); }
.story-image-fallback span { font: clamp(5rem,18vw,11rem)/1 Georgia,serif; text-shadow: 0 0 38px #bd45ff; }
.story-body { padding: clamp(20px, 5vw, 48px); }
.story-number { color: #ffae62; font-size: .75rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.story-body h2 { max-width: 850px; margin: 10px 0 7px; font-size: clamp(2rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.035em; }
.story-source { margin: 0 0 24px; color: #d7b398; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.story-copy { max-width: 850px; color: #eee8f4; font-size: clamp(1.05rem, 2.7vw, 1.2rem); line-height: 1.82; }
.story-copy p:first-child { font-size: clamp(1.18rem, 3.2vw, 1.5rem); color: white; }
.story-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.story-actions a, .story-next a, .empty-stories a { padding: 12px 16px; border: 1px solid rgba(255,164,76,.48); border-radius: 15px; color: white; background: rgba(135,60,9,.25); text-decoration: none; font-weight: 800; }
.story-next { margin: 26px 0 8px; text-align: center; }
.story-next a { display: inline-flex; border-color: rgba(200,133,255,.5); background: rgba(108,45,198,.25); }
.empty-stories { min-height: 420px; padding: 42px 24px; display: grid; justify-items: center; align-content: center; text-align: center; }
.empty-stories h2 { margin: 22px 0 5px; }
.empty-stories p { max-width: 560px; color: var(--muted); line-height: 1.65; }
.steering-card { width: 100%; color: white; text-align: left; font: inherit; }
.steering-card p { padding-bottom: 34px; }
.steering-card:focus-visible { outline: 2px solid #f3c5ff; outline-offset: 3px; }
@media (max-width:640px) {
  .story-feature { border-radius: 23px; }
  .story-image { height: 240px; }
  .story-body { padding: 22px 18px 26px; }
  .story-body h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .story-copy { font-size: 1.03rem; line-height: 1.72; }
}

.source-actions button[data-share]{border-color:rgba(255,210,96,.72);background:linear-gradient(135deg,rgba(145,65,8,.52),rgba(72,24,3,.5))}


/* Infinity Phi wallet parity: when Omni opens Unified wallet, use the same green
   drawer/card geometry as Infinity Phi rather than a separate gray-button UI. */
.menu-drawer.wallet-mode{
  background:#0b4129;
  border-right-color:rgba(255,255,255,.08);
  box-shadow:30px 0 80px rgba(0,0,0,.45);
}
.menu-drawer.wallet-mode .drawer-head{
  border-bottom:1px solid rgba(255,255,255,.10);
  padding-bottom:16px;
}
.menu-drawer.wallet-mode .drawer-head strong{
  font-family:Georgia,serif;
  font-size:2rem;
  letter-spacing:0;
}
.menu-drawer.wallet-mode .icon-button{
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  box-shadow:none;
}
.omni-infinity-wallet-view{
  padding:26px 0 max(32px,env(safe-area-inset-bottom));
}
.omni-wallet-kicker{
  margin:0 0 28px;
  color:#fff;
  font:900 13px/1.2 system-ui,sans-serif;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.omni-wallet-card{
  margin:0;
  padding:28px 26px 32px;
  border-radius:26px;
  background:rgba(255,255,255,.10);
  color:#fff;
}
.omni-wallet-name{
  display:block;
  margin:0 0 14px;
  font-size:1.35rem;
  line-height:1.2;
}
.omni-wallet-id{
  margin:0;
  font:500 14px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:#f0f4f1;
  overflow-wrap:anywhere;
}
.omni-wallet-count{
  margin:34px 0 30px;
  font-size:3rem;
  line-height:1;
  font-weight:950;
  color:#fff;
}
.omni-wallet-open{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:64px;
  width:100%;
  padding:16px 18px!important;
  border:0!important;
  border-radius:18px!important;
  background:#f0bd55!important;
  color:#071a34!important;
  text-decoration:none!important;
  text-align:center;
  font-size:1.05rem;
  font-weight:950!important;
  box-shadow:none!important;
}
.drawer-back{visibility:hidden}

.drawer-nav[hidden],[data-wallet-panel][hidden]{display:none!important}
