/* The water remains a single continuous stage behind every route. */
:root {
  color-scheme: dark;
  --ink: #f4f8fa;
  --muted: #a8bbc8;
  --dim: #738a9b;
  --water: #03101e;
  --panel: rgba(8, 28, 46, .77);
  --panel-solid: #0b2032;
  --line: rgba(192, 221, 238, .13);
  --line-bright: rgba(217, 238, 248, .27);
  --cyan: #a8e3f2;
  --mint: #a9e9d4;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2, .75, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #294557 #051220; }
body { margin: 0; min-width: 320px; background: var(--water); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 70% 4%, #184c67 0, #061c2f 38%, #020b15 80%); pointer-events: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button::-moz-focus-inner { border: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 650; }
p { margin-bottom: 1.2em; }
::selection { color: #03101e; background: #c6ecf5; }
[hidden] { display: none !important; }
.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; }

#water-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; touch-action: pan-y; }
#app { position: relative; z-index: 2; min-height: 100svh; }
body:not([data-view='water']) #app { padding: 0 30px 100px; }
body:not([data-view='water']) #app::before { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(2, 12, 22, .12), rgba(2, 12, 22, .56)); z-index: -1; pointer-events: none; }

/* Compact, glass navigation; the scene remains visible around it. */
.topbar { position: fixed; top: 26px; left: 30px; right: 30px; z-index: 30; display: flex; align-items: center; gap: 28px; min-height: 50px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 27px; font-weight: 750; letter-spacing: -1.5px; line-height: 1; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.brand svg, .brand .brand-icon { width: 35px; height: 35px; }
.brand span { white-space: nowrap; }
.nav-pills { display: flex; align-items: center; gap: 3px; margin: 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 99px; background: rgba(5, 23, 39, .5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.nav-pills a, .nav-pills button { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 8px 17px; border: 0; border-radius: 99px; background: transparent; color: #b7c8d2; font-size: 12px; font-weight: 550; line-height: 1.2; white-space: nowrap; }
.nav-pills a:hover, .nav-pills button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-pills a.active, .nav-pills button.active, .nav-pills a.is-active, .nav-pills [aria-current='page'], .nav-pills [aria-selected='true'] { background: rgba(240, 248, 252, .94); color: #102637; }
.wallet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 11px 20px; border: 1px solid var(--line-bright); border-radius: 99px; background: rgba(15, 43, 63, .46); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff; font-size: 12px; font-weight: 550; white-space: nowrap; }
.wallet-btn:hover { background: #fff; color: #082032; border-color: #fff; }
.wallet-btn svg { width: 15px; height: 15px; }
.mobile-menu { display: none; width: 43px; height: 43px; align-items: center; justify-content: center; border: 1px solid var(--line-bright); border-radius: 50%; background: rgba(5, 23, 39, .7); }

.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; color: #aac9d9; font-family: var(--mono); font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow .dot, .status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(169, 233, 212, .45); }
.lede { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.pill { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 14px 25px; border: 1px solid var(--line-bright); border-radius: 99px; background: rgba(11, 37, 57, .5); color: #e9f4f9; font-size: 12px; font-weight: 550; line-height: 1.2; white-space: nowrap; }
.pill:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .5); }
.pill.primary, .primary { border: 1px solid #e7f5fb; background: #e7f5fb; color: #082234; box-shadow: 0 4px 24px rgba(172, 221, 240, .06); }
.pill.primary:hover, button.primary:hover, a.primary:hover { background: #fff; border-color: #fff; box-shadow: 0 5px 32px rgba(172, 221, 240, .17); }
.pill.secondary, .secondary { background: rgba(14, 42, 62, .4); color: #dbeaf3; border: 1px solid var(--line-bright); }
.pill svg { width: 15px; height: 15px; }
.text-link { color: #d8ebf4; border-bottom: 1px solid rgba(216, 235, 244, .3); padding-bottom: 3px; }
.text-link:hover { color: #fff; border-color: #fff; }

/* Scroll narrative. Copy stays on one side of the animated subject. */
.water-story { min-height: 300svh; }
.hero-stage { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 760px; height: 100svh; padding: 170px max(5vw, 30px) 100px; }
.hero-stage .eyebrow { margin-bottom: 27px; }
.hero-title { max-width: 660px; margin: 0 0 29px; font-size: clamp(64px, 7.35vw, 104px); font-weight: 750; letter-spacing: -.072em; line-height: .98; text-wrap: balance; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: #a5d0e2; }
.hero-copy { max-width: 435px; margin: 0 0 30px; color: #b6cbd7; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-note { margin-top: 24px; color: #6d92a7; font: 10px/1.6 var(--mono); letter-spacing: .035em; }
.depth-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 700px; height: 100svh; padding: 140px max(5vw, 30px) 120px; }
.depth-stage:nth-child(even) { padding-left: 54%; padding-right: 7%; }
.depth-stage h2 { max-width: 620px; margin-bottom: 27px; font-size: clamp(46px, 5.8vw, 82px); font-weight: 650; letter-spacing: -.065em; line-height: 1.04; text-wrap: balance; }
.depth-stage p:not(.eyebrow) { max-width: 430px; color: #b4c9d6; font-size: 15px; line-height: 1.85; }
.depth-stage .pill { margin-top: 16px; }
.depth-stats { display: flex; gap: 36px; margin-top: 35px; }
.depth-stats strong { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1.2; }
.depth-stats span { display: block; margin-top: 8px; color: #8aa8bb; font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.depth-nav { position: fixed; z-index: 15; top: 50%; right: 29px; display: flex; flex-direction: column; align-items: center; gap: 15px; transform: translateY(-50%); }
.depth-btn { display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8ca8ba; font: 8px/1 var(--mono); }
.depth-btn::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: box-shadow .3s ease, background .3s ease; }
.depth-btn.active, .depth-btn.is-active, .depth-btn[aria-current='step'] { color: #e9f8ff; }
.depth-btn.active::before, .depth-btn.is-active::before, .depth-btn[aria-current='step']::before { box-shadow: 0 0 0 5px rgba(207, 237, 251, .1), 0 0 0 6px rgba(207, 237, 251, .15); }
.depth-btn:hover { color: #fff; }
.water-footer { position: fixed; left: 30px; right: 30px; bottom: 22px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; }
.water-footer > * { pointer-events: auto; }
.bottom-dock { display: flex; align-items: center; gap: 18px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(3, 17, 30, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bottom-dock a, .bottom-dock button { display: flex; align-items: center; gap: 7px; border: 0; padding: 0; background: none; color: #9cb3c1; font: 9px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.bottom-dock a:hover, .bottom-dock button:hover { color: #fff; }
.bottom-dock svg { width: 13px; height: 13px; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: #a7bfcc; font: 9px/1.5 var(--mono); letter-spacing: .025em; }
.connection::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(169, 233, 212, .35); }
.water-hint { color: #7a9aaa; font: 9px/1.6 var(--mono); letter-spacing: .05em; }

/* Market routes: restrained instruments on the same water stage. */
.view-shell { width: min(100%, 1180px); margin: 0 auto; padding-top: 142px; }
.page-title { max-width: 900px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); font-weight: 650; letter-spacing: -.06em; line-height: 1.06; }
.view-shell > .eyebrow { margin-bottom: 18px; }
.view-shell > .lede { margin-bottom: 38px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 36px 0 24px; }
.search-input { width: min(100%, 320px); min-height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 11px 18px; background: rgba(6, 23, 38, .6); color: var(--ink); font-size: 12px; }
.search-input::placeholder { color: #6f8c9f; }
.search-input:focus { border-color: #77adca; background: rgba(12, 36, 54, .82); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 15px; border: 1px solid transparent; border-radius: 99px; color: #a0b6c4; background: transparent; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.chip:hover { color: #f8fcff; background: rgba(255, 255, 255, .06); }
.chip.active, .chip.is-active, .chip[aria-pressed='true'], .chip[aria-selected='true'] { color: #eff8fc; border-color: var(--line-bright); background: rgba(166, 207, 228, .11); }
.market-table { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 22, 36, .65); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.market-row { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(4, minmax(95px, 1fr)) minmax(100px, .8fr); align-items: center; column-gap: 20px; min-height: 83px; padding: 19px 25px; border-bottom: 1px solid rgba(192, 221, 238, .09); color: #c7d7e1; font-size: 12px; }
.market-row:last-child { border-bottom: 0; }
a.market-row:hover, button.market-row:hover, .market-row[data-token]:hover { background: rgba(157, 210, 235, .045); }
.market-row > * { min-width: 0; }
.market-row.header, .market-row.table-head, .market-row.market-head, .market-row[role='row']:first-child:has([role='columnheader']) { min-height: 48px; padding-top: 14px; padding-bottom: 14px; color: #718c9f; font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.market-row .token-name, .token-cell { display: flex; align-items: center; gap: 12px; }
.market-row img, .token-cell img { width: 36px; height: 36px; flex-shrink: 0; object-fit: cover; border-radius: 50%; }
.market-row strong { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 550; color: #f1f7fa; }
.market-row small { display: block; margin-top: 2px; color: #6e8c9f; font: 9px/1.5 var(--mono); }
.market-row .pill { min-height: 31px; padding: 7px 13px; font-size: 10px; justify-self: end; }
.positive, .is-positive { color: #9edfc8; }
.negative, .is-negative { color: #e2a2ac; }
.empty-state { padding: 70px 24px; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); font-size: 20px; letter-spacing: -.035em; }
.empty-state p { max-width: 440px; margin: 0 auto 24px; font-size: 13px; }

/* Builder: the character occupies the left, the form is an anchored glass pane. */
.creation-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: 5%; width: min(100%, 1180px); min-height: 100svh; margin: 0 auto; padding: 112px 0 80px; }
.creation-layout > :first-child:not(.form-panel) { min-width: 0; }
.creation-intro { align-self: end; max-width: 360px; padding-bottom: 28px; }
.creation-intro h1 { margin-bottom: 20px; font-size: 50px; line-height: 1.06; letter-spacing: -.06em; }
.creation-intro p { color: var(--muted); font-size: 13px; }
.form-panel { width: 100%; max-width: 520px; max-height: min(78svh, 820px); margin-left: auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 23px; background: rgba(7, 25, 42, .83); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 24px 80px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .03); }
.form-head { padding: 26px 30px 23px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.form-head .eyebrow { margin-bottom: 12px; font-size: 9px; }
.form-head h1, .form-head h2 { margin: 0; font-size: 27px; letter-spacing: -.055em; font-weight: 600; line-height: 1.15; }
.form-head p:not(.eyebrow) { margin: 10px 0 0; color: #89a5b7; font-size: 12px; }
.step-dots { display: flex; align-items: center; gap: 5px; margin: 20px 0 0; }
.step-dots > * { width: 24px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: #294454; }
.step-dots .active, .step-dots .is-active, .step-dots [aria-current='step'], .step-dots .done { background: #b6e4f3; }
.form-body { min-height: 0; padding: 25px 30px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.form-body > :last-child { margin-bottom: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 30px; margin-top: auto; border-top: 1px solid var(--line); background: rgba(7, 24, 39, .4); flex-shrink: 0; }
.form-footer .pill { min-height: 43px; padding: 12px 22px; font-size: 11px; }
.form-footer .pill:only-child { width: 100%; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 20px; gap: 9px; }
.field label, label.field > span:first-child, .field-label { color: #c2d3dd; font-size: 11px; font-weight: 500; line-height: 1.5; }
.field label small, .field-label small { margin-left: 5px; color: #68869a; font-size: 9px; font-weight: 400; }
.field input:not([type='file']):not([type='checkbox']):not([type='radio']):not([type='range']), .field textarea, .field select { display: block; width: 100%; min-width: 0; min-height: 45px; border: 1px solid rgba(191, 221, 239, .16); border-radius: 10px; padding: 12px 14px; background: rgba(1, 12, 23, .3); color: #e7f3f9; font-size: 12px; line-height: 1.5; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #607e92; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #78aec7; box-shadow: 0 0 0 3px rgba(117, 173, 200, .08); background: rgba(12, 34, 51, .6); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #ce8290; }
.field select { appearance: auto; }
.field select option { color: #e7f3f9; background: #0a2133; }
.field input[type='checkbox'], .field input[type='radio'] { accent-color: #a8dceb; }
.field input[type='range'] { width: 100%; accent-color: #a8dceb; }
.field small, .field-help { color: #7796a9; font-size: 10px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-square { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 112px; aspect-ratio: 1; overflow: hidden; padding: 12px; border: 1px dashed rgba(179, 214, 233, .3); border-radius: 14px; background: rgba(125, 179, 209, .04); color: #8facbf; font: 9px/1.5 var(--mono); text-align: center; cursor: pointer; }
.upload-square:hover { background: rgba(125, 179, 209, .1); border-color: #9cc9e0; }
.upload-square input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-square img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-square svg { width: 22px; height: 22px; }
.upload-square:focus-within { outline: 2px solid var(--cyan); outline-offset: 4px; }
.error { margin: 10px 0; color: #f0a8b3; font-size: 11px; line-height: 1.6; }
.error:empty { display: none; }
.form-note { margin: 18px 0 0; padding: 13px 15px; border: 1px solid rgba(165, 208, 230, .1); border-radius: 10px; background: rgba(165, 208, 230, .035); color: #88a4b6; font-size: 10px; line-height: 1.7; }
.review-list, .detail-list { margin: 0; }
.review-list > div, .detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-list dt, .detail-list dt { color: #82a0b4; }
.review-list dd, .detail-list dd { max-width: 65%; margin: 0; text-align: right; overflow-wrap: anywhere; }

.link-layout { display: grid; grid-template-columns: 1fr minmax(0, 510px); align-items: center; gap: 70px; min-height: 76svh; }
.link-intro { max-width: 460px; }
.link-intro h1 { font-size: clamp(40px, 4.8vw, 65px); line-height: 1.04; letter-spacing: -.06em; }
.link-panel { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.link-panel h2 { margin-bottom: 24px; font-size: 23px; letter-spacing: -.04em; }
.link-panel .pill { width: 100%; }

/* Token detail and the agent conversation. */
.token-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-bottom: 30px; }
.token-heading > img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.token-heading h1 { margin: 0; font-size: 35px; line-height: 1.1; letter-spacing: -.055em; }
.token-heading p { margin: 7px 0 0; color: #86a4b7; font: 10px/1.5 var(--mono); }
.token-heading .pill { margin-left: auto; min-height: 38px; font-size: 10px; }
.token-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; gap: 22px; }
.token-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(6, 23, 38, .65); }
.metric { min-width: 0; padding: 22px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span, .metric dt, .metric label { display: block; margin: 0 0 9px; color: #7e9eb2; font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.metric strong, .metric dd { display: block; margin: 0; color: #e9f5fa; font-size: 24px; font-weight: 500; letter-spacing: -.04em; line-height: 1.25; overflow-wrap: anywhere; }
.metric small { display: block; margin-top: 7px; color: #7898ad; font-size: 10px; line-height: 1.5; }
.chart-panel { position: relative; min-height: 310px; margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(5, 22, 36, .6); }
.chart-panel iframe { display: block; width: 100%; min-height: 340px; border: 0; border-radius: 12px; }
.chart-panel svg { width: 100%; height: auto; }
.token-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.token-links a, .token-links button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(5, 22, 36, .6); font: 9px/1.4 var(--mono); color: #a3c0d0; }
.token-links a:hover, .token-links button:hover { color: #fff; border-color: var(--line-bright); }
.token-address, code.address { overflow-wrap: anywhere; color: #9cbace; font: 10px/1.7 var(--mono); }
.agent-panel { display: flex; flex-direction: column; min-width: 0; min-height: 500px; max-height: 700px; border: 1px solid var(--line-bright); border-radius: 19px; overflow: hidden; background: rgba(8, 28, 45, .83); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.agent-panel > header, .agent-head { display: flex; align-items: center; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.agent-panel > header img, .agent-head img { width: 32px; height: 32px; object-fit: contain; }
.agent-panel h2 { margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.agent-panel header p { margin: 3px 0 0; color: #83a3b5; font: 9px/1.5 var(--mono); }
.chat-log { display: flex; flex-direction: column; flex: 1; min-height: 200px; gap: 18px; padding: 23px; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.chat-line { align-self: flex-start; max-width: 95%; font-size: 12px; line-height: 1.8; color: #b9cedc; overflow-wrap: anywhere; }
.chat-line p:last-child { margin-bottom: 0; }
.chat-line .chat-label, .chat-line > small { display: block; margin-bottom: 7px; color: #6d94ac; font: 8px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chat-line.user, .chat-line[data-role='user'] { align-self: flex-end; padding: 11px 15px; border: 1px solid rgba(168, 217, 239, .12); border-radius: 14px 14px 3px 14px; background: rgba(115, 180, 212, .1); color: #e0eff7; }
.chat-line.agent, .chat-line.assistant { padding-right: 10px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 15px; }
.chat-suggestions button { border: 1px solid var(--line); border-radius: 99px; padding: 7px 10px; background: transparent; color: #9bb9cc; font-size: 9px; }
.chat-suggestions button:hover { background: rgba(171, 218, 241, .09); color: #fff; }
.chat-form { display: flex; align-items: center; gap: 8px; padding: 15px; border-top: 1px solid var(--line); }
.chat-form input, .chat-form textarea { width: 100%; min-width: 0; min-height: 42px; max-height: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 10, 22, .3); color: var(--ink); font-size: 11px; resize: vertical; }
.chat-form input::placeholder, .chat-form textarea::placeholder { color: #64859b; }
.chat-form button { flex-shrink: 0; min-height: 42px; padding: 10px 15px; border: 1px solid #d7edf7; border-radius: 11px; background: #d7edf7; color: #0b2638; font-size: 11px; font-weight: 550; }
.chat-form button:hover { background: #fff; }

/* Documentation shares the quiet surface language, without dense dashboard cards. */
.info-page { width: min(100%, 1030px); margin: 0 auto; padding: 145px 0 50px; }
.info-page > header { max-width: 780px; margin-bottom: 65px; }
.info-page h1 { margin-bottom: 24px; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.065em; }
.info-page h2 { margin-bottom: 22px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.045em; }
.info-page h3 { margin-bottom: 14px; font-size: 19px; letter-spacing: -.025em; }
.info-section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.info-section p, .info-section li { color: #9db7c8; font-size: 14px; line-height: 1.85; }
.info-section p { max-width: 760px; }
.info-section ul, .info-section ol { padding-left: 21px; margin: 20px 0; }
.info-section li + li { margin-top: 10px; }
.info-section strong { color: #dfedf5; font-weight: 550; }
.info-section a:not(.pill) { color: #c7e8f5; text-decoration: underline; text-decoration-color: rgba(199, 232, 245, .3); text-underline-offset: 4px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.info-grid > article, .info-card { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7, 27, 44, .6); }
.info-grid p { margin-bottom: 0; font-size: 12px; }
.info-grid .metric { border: 1px solid var(--line); border-radius: 15px; background: rgba(7, 27, 44, .6); }
.info-grid .metric strong { font-size: 35px; }
.info-callout { padding: 24px 28px; margin: 28px 0; border-left: 2px solid #87bbd1; border-radius: 0 13px 13px 0; background: rgba(120, 178, 207, .07); }
.info-callout p:last-child { margin-bottom: 0; }
.info-page code { padding: 2px 5px; border-radius: 4px; background: rgba(180, 220, 240, .08); color: #c2dfed; font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
.info-page pre { max-width: 100%; overflow-x: auto; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: rgba(2, 14, 26, .7); }
.info-page pre code { background: none; padding: 0; }
.info-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 40px; }
.info-nav a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; color: #9fbbce; font-size: 11px; }
.info-nav a:hover { color: #fff; border-color: var(--line-bright); }

/* Overlays deliberately leave room for the surrounding scene. */
dialog { max-width: calc(100vw - 32px); max-height: calc(100svh - 48px); padding: 0; color: var(--ink); border: 1px solid var(--line-bright); border-radius: 24px; background: rgba(7, 25, 42, .94); box-shadow: 0 30px 120px rgba(0, 0, 0, .4); overflow-y: auto; scrollbar-width: thin; }
dialog::backdrop { background: rgba(0, 9, 19, .57); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog[open] { animation: modal-in .35s var(--ease) both; }
.modal-card { position: relative; width: min(480px, calc(100vw - 34px)); padding: 35px; }
.modal-card h1, .modal-card h2 { margin: 0 0 16px; font-size: 30px; letter-spacing: -.05em; line-height: 1.15; }
.modal-card p { color: #94b1c4; font-size: 13px; line-height: 1.8; }
.modal-card .eyebrow { font-size: 9px; margin-bottom: 16px; }
.modal-close, dialog [data-close], dialog .close-btn { position: absolute; top: 17px; right: 17px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #9cb8ca; font-size: 20px; line-height: 1; }
.modal-close:hover, dialog [data-close]:hover, dialog .close-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.welcome-orb { display: flex; align-items: center; justify-content: center; width: 130px; height: 130px; margin: 10px auto 30px; border: 1px solid rgba(156, 214, 240, .14); border-radius: 50%; background: radial-gradient(circle at 36% 26%, rgba(154, 220, 242, .35), rgba(37, 103, 138, .12) 40%, rgba(3, 19, 35, .5) 72%); box-shadow: inset 0 0 30px rgba(130, 206, 239, .07), 0 0 50px rgba(79, 163, 201, .08); }
.welcome-orb img { width: 88px; height: 88px; object-fit: contain; }
.welcome-progress { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 0 24px; }
.welcome-progress > * { width: 5px; height: 5px; border: 0; padding: 0; border-radius: 50%; background: #355568; }
.welcome-progress .active, .welcome-progress .is-active { background: #c2e7f5; }
.welcome-content { text-align: center; }
.welcome-content .eyebrow { justify-content: center; }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.modal-actions .pill { min-height: 43px; font-size: 11px; }
.modal-actions .pill:only-child { width: 100%; }
.wallet-list { display: grid; gap: 9px; margin-top: 25px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 55px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(126, 180, 211, .045); color: #dbeaf3; text-align: left; font-size: 12px; }
.wallet-list button:hover { border-color: var(--line-bright); background: rgba(126, 180, 211, .12); }
.wallet-list img { width: 25px; height: 25px; border-radius: 7px; }

#loading { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #03111e; transition: opacity .7s ease, visibility .7s ease; }
#loading.done, #loading.is-done, #loading.loaded, #loading.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-orb { position: relative; width: 54px; height: 54px; border: 1px solid rgba(165, 220, 245, .3); border-radius: 50%; background: radial-gradient(circle at 33% 24%, #c8f1ff 0, #6ba6c1 12%, #1a4a68 43%, #071b30 73%); box-shadow: inset 0 0 12px rgba(197, 237, 255, .2), 0 0 38px rgba(116, 198, 234, .12); animation: orb-breathe 2.3s ease-in-out infinite; }
.load-label { margin-top: 27px; color: #92b5c9; font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .2em; }
.load-line { position: relative; width: 100px; height: 1px; margin-top: 18px; overflow: hidden; background: #17374e; }
.load-line::after { content: ''; position: absolute; inset: 0; width: 40%; background: #bedfed; animation: load-slide 1.7s ease-in-out infinite; }
.toast, #toast { position: fixed; left: 50%; bottom: 80px; z-index: 110; max-width: min(480px, calc(100vw - 32px)); padding: 13px 20px; border: 1px solid var(--line-bright); border-radius: 13px; background: rgba(12, 35, 53, .96); box-shadow: 0 12px 50px rgba(0, 0, 0, .25); color: #dfedf5; font-size: 12px; line-height: 1.6; text-align: center; transform: translateX(-50%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.toast:empty, #toast:empty { display: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible, .reveal.is-visible { opacity: 1; transform: none; }
@keyframes orb-breathe { 50% { transform: translateY(-4px); box-shadow: inset 0 0 12px rgba(197, 237, 255, .2), 0 0 48px rgba(116, 198, 234, .2); } }
@keyframes load-slide { from { transform: translateX(-120%); } to { transform: translateX(350%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (min-width: 1600px) {
  .hero-stage, .depth-stage { padding-left: max(7vw, calc((100vw - 1500px) / 2)); }
  .hero-title { max-width: 720px; font-size: 110px; }
  .hero-copy { font-size: 16px; }
}
@media (max-width: 1100px) {
  .topbar { gap: 18px; }
  .nav-pills a, .nav-pills button { padding: 8px 12px; font-size: 11px; }
  .hero-title { max-width: 570px; }
  .market-row { grid-template-columns: minmax(170px, 1.7fr) repeat(4, minmax(75px, 1fr)) 80px; column-gap: 12px; padding-left: 20px; padding-right: 20px; }
  .token-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
  .token-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-stats .metric:nth-child(3) { border-left: 0; }
  .token-stats .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .topbar { left: 22px; right: 22px; top: 20px; gap: 14px; }
  .brand { font-size: 25px; }
  .brand img, .brand svg, .brand .brand-icon { width: 31px; height: 31px; }
  .nav-pills { gap: 0; overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 320px); margin-left: auto; margin-right: 0; }
  .nav-pills::-webkit-scrollbar { display: none; }
  .nav-pills a, .nav-pills button { min-height: 33px; padding: 8px 12px; }
  .wallet-btn { min-height: 43px; padding: 10px 15px; font-size: 11px; }
  .hero-stage { min-height: 680px; padding-left: 6vw; padding-right: 6vw; }
  .hero-title { max-width: 530px; font-size: clamp(60px, 8.7vw, 78px); }
  .hero-copy { max-width: 380px; font-size: 14px; }
  .depth-stage { padding-left: 6vw; padding-right: 10vw; }
  .depth-stage:nth-child(even) { padding-left: 40%; padding-right: 7%; }
  .depth-stage h2 { font-size: 55px; }
  .depth-nav { right: 13px; }
  .water-footer { left: 22px; right: 22px; }
  body:not([data-view='water']) #app { padding-left: 24px; padding-right: 24px; }
  .view-shell, .info-page { padding-top: 125px; }
  .creation-layout { gap: 24px; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); }
  .form-panel { max-height: 80svh; }
  .form-head, .form-body { padding-left: 24px; padding-right: 24px; }
  .form-footer { padding-left: 24px; padding-right: 24px; }
  .creation-intro h1 { font-size: 38px; }
  .market-row { grid-template-columns: minmax(160px, 1.8fr) repeat(3, minmax(70px, 1fr)) 75px; }
  .market-row > :nth-child(5) { display: none; }
  .link-layout { gap: 35px; grid-template-columns: 1fr 1fr; }
  .link-panel { padding: 25px; }
  .token-layout { grid-template-columns: 1fr; }
  .token-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .token-stats .metric:nth-child(n+3) { border-top: 0; }
  .token-stats .metric:nth-child(3) { border-left: 1px solid var(--line); }
  .agent-panel { min-height: 450px; max-height: 600px; }
  .info-grid { gap: 14px; }
  .info-grid > article, .info-card { padding: 21px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { top: 16px; left: 17px; right: 17px; gap: 9px; min-height: 40px; }
  .brand { gap: 8px; font-size: 25px; }
  .brand img, .brand svg, .brand .brand-icon { width: 29px; height: 29px; }
  .wallet-btn { margin-left: auto; min-height: 38px; padding: 9px 13px; font-size: 10px; }
  .mobile-menu { display: inline-flex; flex-shrink: 0; width: 38px; height: 38px; }
  .nav-pills { position: fixed; top: 68px; left: 17px; right: 17px; width: auto; max-width: none; margin: 0; padding: 4px; justify-content: flex-start; border-radius: 16px; background: rgba(5, 22, 38, .88); }
  .nav-pills a, .nav-pills button { flex: 1 0 auto; min-height: 34px; padding: 8px 12px; font-size: 10px; }
  .topbar.is-collapsed .nav-pills, .nav-pills.is-collapsed { display: none; }
  .topbar.is-open .nav-pills, .nav-pills.is-open { display: flex; }
  .hero-stage { min-height: 680px; height: 100svh; padding: 176px 24px 100px; justify-content: flex-start; }
  .hero-stage .eyebrow { font-size: 8px; margin-bottom: 22px; letter-spacing: .13em; }
  .hero-title { max-width: 390px; font-size: clamp(49px, 12vw, 68px); line-height: 1; letter-spacing: -.065em; margin-bottom: 22px; }
  .hero-copy { max-width: 310px; font-size: 13px; line-height: 1.75; margin-bottom: 26px; }
  .hero-actions { gap: 8px; }
  .pill { min-height: 43px; padding: 12px 20px; font-size: 11px; }
  .hero-note { font-size: 8px; }
  .depth-stage { min-height: 680px; height: 100svh; padding: 150px 32px 120px 24px; justify-content: flex-end; }
  .depth-stage:nth-child(even) { padding-left: 24px; padding-right: 32px; }
  .depth-stage h2 { max-width: 360px; margin-bottom: 22px; font-size: clamp(41px, 10vw, 54px); }
  .depth-stage p:not(.eyebrow) { max-width: 320px; font-size: 13px; line-height: 1.8; }
  .depth-stage .eyebrow { font-size: 8px; margin-bottom: 20px; }
  .depth-stats { gap: 28px; margin-top: 22px; }
  .depth-stats strong { font-size: 29px; }
  .depth-nav { right: 5px; gap: 10px; }
  .depth-btn { width: 20px; height: 22px; }
  .water-footer { left: 17px; right: 17px; bottom: 16px; gap: 10px; }
  .bottom-dock { gap: 11px; padding: 10px 12px; }
  .bottom-dock a, .bottom-dock button { font-size: 8px; }
  .connection { font-size: 8px; gap: 6px; }
  .water-hint { display: none; }
  body:not([data-view='water']) #app { padding: 0 18px 100px; }
  .view-shell { padding-top: 140px; }
  .view-shell > .eyebrow { font-size: 8px; }
  .page-title { font-size: 41px; margin-bottom: 17px; }
  .lede { font-size: 13px; line-height: 1.8; }
  .view-shell > .lede { margin-bottom: 28px; }
  .toolbar { gap: 15px; margin-top: 25px; }
  .search-input { width: 100%; max-width: none; min-height: 42px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; width: 100%; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .chip { min-height: 33px; padding: 8px 13px; font-size: 10px; }
  .market-table { border-radius: 13px; }
  .market-row { grid-template-columns: minmax(130px, 1.5fr) minmax(70px, 1fr) minmax(55px, .7fr); column-gap: 7px; padding: 16px 14px; min-height: 75px; font-size: 10px; }
  .market-row > :nth-child(4), .market-row > :nth-child(5), .market-row > :nth-child(6) { display: none; }
  .market-row.header, .market-row.table-head, .market-row.market-head { font-size: 8px; }
  .market-row img, .token-cell img { width: 29px; height: 29px; }
  .market-row .token-name, .token-cell { gap: 8px; }
  .market-row small { font-size: 8px; }
  .creation-layout { display: flex; flex-direction: column; gap: 0; justify-content: flex-start; min-height: 100svh; padding: 132px 0 20px; }
  .creation-layout > :first-child:not(.form-panel) { display: none; }
  .form-panel { max-width: 100%; max-height: none; margin: 0; border-radius: 19px; }
  .form-head { padding: 23px 22px 20px; }
  .form-head h1, .form-head h2 { font-size: 25px; }
  .form-head .eyebrow { font-size: 8px; }
  .form-body { padding: 22px; max-height: none; overflow: visible; }
  .form-footer { padding: 18px 22px; }
  .field-row { gap: 12px; }
  .field input:not([type='file']):not([type='checkbox']):not([type='radio']):not([type='range']), .field textarea, .field select { font-size: 16px; padding: 11px 12px; }
  .field label, label.field > span:first-child { font-size: 10px; }
  .form-note { font-size: 10px; }
  .link-layout { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-bottom: 20px; }
  .link-intro h1 { font-size: 42px; }
  .link-panel { padding: 24px 22px; border-radius: 18px; }
  .token-heading { gap: 13px; margin-bottom: 24px; }
  .token-heading h1 { font-size: 29px; }
  .token-heading > img { width: 46px; height: 46px; }
  .token-heading .pill { min-height: 34px; padding: 8px 12px; }
  .token-layout { gap: 18px; }
  .token-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-stats .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .token-stats .metric:nth-child(3) { border-left: 0; }
  .metric { padding: 18px; }
  .metric strong, .metric dd { font-size: 23px; }
  .metric span, .metric dt, .metric label { font-size: 8px; }
  .chart-panel { min-height: 245px; padding: 17px; margin-top: 16px; }
  .chart-panel iframe { min-height: 300px; }
  .agent-panel { min-height: 440px; max-height: 650px; border-radius: 16px; }
  .agent-panel > header, .agent-head { padding: 18px; }
  .chat-log { padding: 20px 18px; }
  .chat-line { font-size: 12px; }
  .chat-form { padding: 12px; }
  .chat-form input, .chat-form textarea { font-size: 16px; }
  .chat-suggestions { padding: 0 18px 15px; }
  .info-page { padding-top: 145px; }
  .info-page > header { margin-bottom: 40px; }
  .info-page h1 { font-size: 44px; }
  .info-page h2 { font-size: 29px; }
  .info-section { padding: 32px 0; scroll-margin-top: 130px; }
  .info-section p, .info-section li { font-size: 13px; }
  .info-grid { grid-template-columns: 1fr; gap: 13px; }
  .info-grid > article, .info-card { padding: 23px; }
  .info-callout { padding: 20px; }
  .modal-card { padding: 30px 25px; }
  .modal-card h1, .modal-card h2 { font-size: 27px; }
  .welcome-orb { width: 105px; height: 105px; margin-bottom: 25px; }
  .welcome-orb img { width: 70px; height: 70px; }
  .toast, #toast { bottom: 70px; font-size: 11px; }
}
@media (max-width: 380px) {
  .hero-stage { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 47px; }
  .nav-pills a, .nav-pills button { padding: 8px 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .market-row { grid-template-columns: minmax(110px, 1.5fr) 74px 48px; padding: 14px 11px; }
  .connection { max-width: 100px; font-size: 7px; }
}
/* Field-guide routes break into pale water, with the bubble scene on the right. */
body[data-view='page'] { color-scheme: light; --ink: #05090f; --muted: #516772; --dim: #748a95; --line: rgba(25, 56, 70, .14); --line-bright: rgba(25, 56, 70, .27); background: #eaf3f5; color: #05090f; }
body[data-view='page']::before { background: #eaf3f5; }
body[data-view='page'] #app::before { background: none; }
body[data-view='page'] .brand { color: #07131c; }
body[data-view='page'] .nav-pills { border-color: rgba(35, 65, 78, .12); background: rgba(237, 246, 248, .72); box-shadow: none; }
body[data-view='page'] .nav-pills a, body[data-view='page'] .nav-pills button { color: #566b76; }
body[data-view='page'] .nav-pills a:hover, body[data-view='page'] .nav-pills button:hover { color: #07151f; background: rgba(32, 74, 94, .07); }
body[data-view='page'] .nav-pills a.active, body[data-view='page'] .nav-pills button.active, body[data-view='page'] .nav-pills a.is-active, body[data-view='page'] .nav-pills [aria-current='page'], body[data-view='page'] .nav-pills [aria-selected='true'] { color: #f2f9fb; background: #0a2537; }
body[data-view='page'] .wallet-btn, body[data-view='page'] .mobile-menu { color: #152f3e; border-color: rgba(35, 65, 78, .23); background: rgba(237, 246, 248, .72); }
body[data-view='page'] .wallet-btn:hover { background: #0a2537; border-color: #0a2537; color: #fff; }
body[data-view='page'] .info-page { width: min(680px, 62vw); margin: 0 0 0 clamp(12px, 4vw, 72px); padding-top: 160px; }
body[data-view='page'] .info-header { margin-bottom: 42px; }
body[data-view='page'] .info-page h1 { max-width: 650px; font-size: clamp(42px, 4.6vw, 65px); font-weight: 700; letter-spacing: -.064em; }
body[data-view='page'] .eyebrow { color: #607d8a; }
body[data-view='page'] .info-page .lede { max-width: 590px; color: #4f6571; font-size: 15px; }
body[data-view='page'] .info-section { padding: 35px 0; border-color: rgba(25, 56, 70, .15); }
body[data-view='page'] .info-section h2 { max-width: 580px; color: #09131b; font-size: clamp(28px, 3.1vw, 39px); font-weight: 650; }
body[data-view='page'] .info-section p, body[data-view='page'] .info-section li { color: #526873; font-size: 13px; line-height: 1.85; }
body[data-view='page'] .info-section strong { color: #172f3c; }
body[data-view='page'] .info-section a:not(.pill), body[data-view='page'] .text-link { color: #143c50; border-color: #7197a9; text-decoration-color: #8caeba; }
body[data-view='page'] .info-section a:not(.pill):hover, body[data-view='page'] .text-link:hover { color: #000; border-color: #000; }
.info-diagram { margin: 24px 0 38px; color: #83b0c8; font-family: var(--mono); }
.info-diagram svg { width: 100%; height: auto; }
.info-diagram figcaption { margin-top: 4px; color: #708e9f; font: 9px/1.7 var(--mono); text-align: center; }
.info-diagram-small { margin-bottom: 0; }
body[data-view='page'] .info-diagram { color: #305566; }
body[data-view='page'] .info-diagram figcaption { color: #6b8590; }
.info-steps { list-style: none; padding: 0 !important; margin: 28px 0 !important; }
.info-steps li { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 16px; padding: 24px 0; margin: 0 !important; border-bottom: 1px solid var(--line); }
.info-steps li:last-child { border-bottom: 0; }
.step-number { padding-top: 4px; color: #7ea3b9; font: 10px/1.5 var(--mono); }
.info-steps h3 { margin-bottom: 11px; }
.info-steps p { margin-bottom: 13px; }
.info-steps .text-link { font-size: 11px; }
body[data-view='page'] .step-number { color: #6a8795; }
.info-facts { margin: 25px 0; }
.info-facts > div { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(0, 1.5fr); gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.info-facts dt { color: var(--ink); font-size: 12px; font-weight: 550; }
.info-facts dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.info-note { padding-bottom: 20px; }
.info-page .info-source { margin-top: 22px; color: #6e8da1; font: 9px/1.8 var(--mono); }
body[data-view='page'] .info-page .info-source { color: #69828e; }
body[data-view='page'] .info-grid { gap: 0; margin: 25px 0 0; }
body[data-view='page'] .info-grid .metric { padding: 18px 20px 18px 0; border: 0; border-radius: 0; background: none; }
body[data-view='page'] .info-grid .metric + .metric { padding-left: 22px; border-left: 1px solid var(--line); }
body[data-view='page'] .info-grid .metric .metric-value { margin: 0 0 14px; color: #0d293a; font: 500 52px/1 var(--sans); letter-spacing: -.06em; }
body[data-view='page'] .info-grid .metric h2 { margin-bottom: 9px; font-size: 15px; letter-spacing: -.02em; }
body[data-view='page'] .info-grid .metric p { font-size: 11px; line-height: 1.7; }
.info-section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.info-section-heading .eyebrow { margin-bottom: 12px; }
.info-section-heading h2 { margin-bottom: 0; }
.info-section-heading > a { margin-bottom: 4px; font-size: 11px; }
.info-record { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-record h3 { margin: 0; font-size: 15px; }
.info-record p { margin: 3px 0 0; font: 9px/1.7 var(--mono); }
.record-index, .record-state { color: #6d8c9e; font: 9px/1.5 var(--mono); }
.info-empty { padding: 35px 0; }
.info-empty .eyebrow { margin-bottom: 15px; }
.info-empty h3 { margin-bottom: 12px; }
.info-empty .text-link { font-size: 11px; }
body[data-view='page'] .info-page code { color: #284e62; background: rgba(25, 65, 85, .06); }
body[data-view='page'] .info-page pre { background: rgba(255, 255, 255, .3); }
body[data-view='page'] .bottom-dock { border-color: rgba(35, 65, 78, .14); background: rgba(237, 246, 248, .76); }
body[data-view='page'] .bottom-dock a, body[data-view='page'] .bottom-dock button, body[data-view='page'] .connection, body[data-view='page'] .water-hint { color: #587381; }
body[data-view='page'] .bottom-dock a:hover, body[data-view='page'] .bottom-dock button:hover { color: #091c28; }
body[data-view='page'] .connection::before { background: #45866f; box-shadow: none; }
body[data-view='page'] dialog { color-scheme: dark; --ink: #f4f8fa; --muted: #a8bbc8; --line: rgba(192, 221, 238, .13); --line-bright: rgba(217, 238, 248, .27); color: #f4f8fa; }
body[data-view='page'] ::selection { color: #fff; background: #20485e; }
@media (max-width: 900px) {
  body[data-view='page'] .info-page { width: min(660px, 75vw); margin-left: 2vw; padding-top: 145px; }
  body[data-view='page'] .info-page h1 { font-size: 53px; }
}
@media (max-width: 640px) {
  body[data-view='page'] .info-page { width: 100%; margin: 0; padding-top: 146px; }
  body[data-view='page'] #app::before { background: rgba(234, 243, 245, .76); }
  body[data-view='page'] .info-header { margin-bottom: 30px; }
  body[data-view='page'] .info-page h1 { font-size: 43px; }
  body[data-view='page'] .info-page .lede { font-size: 13px; }
  body[data-view='page'] .info-section h2 { font-size: 29px; }
  body[data-view='page'] .info-section { padding: 29px 0; }
  .info-diagram { margin: 20px 0 30px; }
  .info-diagram figcaption { font-size: 8px; }
  .info-steps li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .info-facts > div { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; }
  .info-facts dd { font-size: 12px; }
  body[data-view='page'] .info-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-view='page'] .info-grid .metric { padding: 12px 12px 12px 0; }
  body[data-view='page'] .info-grid .metric + .metric { padding-left: 12px; }
  body[data-view='page'] .info-grid .metric .metric-value { font-size: 39px; margin-bottom: 12px; }
  body[data-view='page'] .info-grid .metric h2 { font-size: 12px; }
  body[data-view='page'] .info-grid .metric p { font-size: 10px; }
  .info-record { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
  .record-state { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
