/* NoFee / Brew-inspired presentation. No data, quote, wallet or execution changes.
   Loaded last. Retains original logos, semantic market colours and keyed feeds. */
:root {
  --brew-bg: #171916; --brew-panel: #222421; --brew-raised: #2a2d27;
  --brew-text: #f0eee6; --brew-muted: #a4aa9d; --brew-faint: #969e8e;
  --brew-line: rgba(255,255,255,.13); --brew-cream: #efe3b4; --brew-cream-hi: #fff4cd;
  --ink: var(--brew-bg); --ink-2: #1d201b; --ink-3: var(--brew-panel); --ink-4: var(--brew-raised);
  --paper: var(--brew-text); --muted: var(--brew-muted); --dim: var(--brew-faint);
  --line: var(--brew-line); --line-strong: #dfd2a84f;
  --nf-void: var(--brew-bg); --nf-canvas: var(--brew-bg); --nf-panel: var(--brew-panel);
  --nf-panel-2: #282b25; --nf-panel-3: #30352c; --nf-line: var(--brew-line);
  --nf-text: var(--brew-text); --nf-muted: var(--brew-muted); --nf-faint: var(--brew-faint);
  --header-h: 76px;
}
html, body { background: var(--brew-bg); color: var(--brew-text); }
body::before, #constellation, .page-noise, .cursor-aura { display: none !important; }
body :is(button,input,select,textarea):focus-visible { outline: 2px solid var(--brew-cream); outline-offset: 3px; box-shadow: none; }
body :is(button,input,select,textarea):disabled { cursor: not-allowed; }
body .app-header, body[data-screen="token"] .app-header {
  height: var(--header-h); padding-inline: 30px; background: var(--brew-bg) !important;
  border-bottom-color: transparent !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none; transform: none;
}
body .brand { min-width: 118px; gap: 9px; padding-right: 12px; color: var(--brew-cream); }
body .brand::after { display: none; }
body .brand-mark { width: 32px; height: 32px; color: var(--brew-cream); filter: none; }
body .brand-type { color: var(--brew-text); font-size: 25px; letter-spacing: -.065em; }
body .route-tabs { padding-left: 6px; gap: 4px; }
body .route-link, body[data-screen="token"] .route-link { color: var(--brew-muted); font-size: 14px; font-weight: 450; }
body .route-link.current, body .route-link:hover { color: var(--brew-cream); }
body .route-link.current::after { display: none; }
body .global-search, body[data-screen="token"] .global-search {
  height: 42px; border: 1px solid var(--brew-line); border-radius: 14px;
  background: #292c27; color: var(--brew-muted); font: 400 14px var(--sans); box-shadow: none;
}
body .wallet-trigger, body[data-screen="token"] .wallet-trigger {
  width: auto; min-width: 0; min-height: 42px; padding-inline: 17px; border: 1px solid var(--brew-cream); border-radius: 999px;
  background: var(--brew-cream); color: #25251d; font: 500 14px var(--sans); box-shadow: none;
}
body .wallet-trigger:hover { background: var(--brew-cream-hi); box-shadow: none; }
body .wallet-trigger :is(.wallet-arrow,.wallet-state) { color: inherit; }
body .wallet-dot { background: #67633e; box-shadow: none; }
body .wallet-trigger :is(.wallet-dot,.wallet-arrow) { flex: none; }
body .app-header .wallet-trigger .wallet-state { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-screen="markets"] #markets, body :is(#launchpad,#tools,#portfolio) {
  --nt-void: var(--brew-bg); --nt-panel: var(--brew-panel); --nt-panel-2: #292c26;
  --nt-line: var(--brew-line); --nt-text: var(--brew-text); --nt-muted: var(--brew-muted); --nt-faint: var(--brew-faint);
  --pf-panel: var(--brew-panel); --pf-line: var(--brew-line); --pf-line-soft: #ffffff0b;
}
body[data-screen="token"] {
  --ta-void: var(--brew-bg); --ta-panel: #1d201b; --ta-panel-2: var(--brew-panel); --ta-panel-3: #292c26;
  --ta-hover: #30352c; --ta-line: #383c33; --ta-line-soft: #292d25; --ta-line-strong: #515546;
  --ta-text: var(--brew-text); --ta-text-strong: #fbf7e9; --ta-muted: var(--brew-muted); --ta-dim: var(--brew-faint);
}
body[data-screen="markets"] #markets.active { background: var(--brew-bg); }
body[data-screen="markets"] #markets::before { display: none; }
body[data-screen="markets"] #markets .nt-commandbar,
body[data-screen="markets"] #markets .nt-commandbar.has-official-contract {
  grid-template-columns: minmax(0,1fr) auto; gap: 12px 20px; padding: 14px 30px 12px;
  border: 0; background: transparent;
}
body[data-screen="markets"] #markets .nt-command-title { flex-wrap: wrap; gap: 10px; }
body[data-screen="markets"] #markets .nt-command-title > strong { font-size: 24px; font-weight: 550; letter-spacing: -.035em; }
body[data-screen="markets"] #markets .nt-command-mark { display: none; }
body[data-screen="markets"] #markets .nt-command-title em { color: var(--brew-muted); font: 400 12px var(--sans); }
body[data-screen="markets"] #markets .status-scan { box-shadow: none !important; }
body[data-screen="markets"] #markets .nt-chainrail { grid-column: 1 / -1; min-height: 40px; }
body[data-screen="markets"] #markets .nt-command-actions { grid-column: 1 / -1; justify-content: flex-start; gap: 8px; flex-wrap: wrap; overflow: visible; }
body[data-screen="markets"] #markets .nt-command-actions button,
body[data-screen="markets"] #markets .nt-chainrail .chain-chip {
  min-height: 36px; padding-inline: 11px; color: var(--brew-muted); font: 450 13px var(--sans);
  border: 0; border-radius: 999px; background: transparent; box-shadow: none;
}
body[data-screen="markets"] #markets .nt-command-actions button.selected,
body[data-screen="markets"] #markets .nt-chainrail .chain-chip.selected { background: #ffffff0d; color: var(--brew-text); }
body[data-screen="markets"] #markets .nt-command-actions .nf-launches-trigger,
body[data-screen="markets"] #markets .nt-command-actions .nf-launches-trigger.selected {
  color: #25251d; background: var(--brew-cream); border: 0; border-radius: 999px; box-shadow: none; font-weight: 550;
}
body[data-screen="markets"] #markets .nt-command-actions .nf-launches-trigger:hover { background: var(--brew-cream-hi); filter: none; }
body[data-screen="markets"] #markets .nf-launch-banner { display: none; }
body[data-screen="markets"] #markets .nf-contract-copy { border-color: var(--brew-line); color: var(--brew-text); background: #ffffff03; border-radius: 10px; }
body[data-screen="markets"] #markets .nf-contract-symbol { color: var(--brew-cream); }
body[data-screen="markets"] #markets .nf-contract-icon::after { background: var(--brew-bg); }
body[data-screen="markets"] #markets .nf-contract-manual { background: var(--brew-panel); border-color: var(--brew-cream); }
body[data-screen="markets"] #markets .nf-contract-copy:hover { border-color: #dfd2a84f; background: #ffffff08; }
body[data-screen="markets"] #markets .nt-workspace,
body[data-screen="markets"] #markets .nt-trenches,
body[data-screen="markets"] #markets .nt-sidecar,
body[data-screen="markets"] #markets .nt-lane { background: var(--brew-bg); }
body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-workspace { padding: 0 30px; gap: 18px; }
body[data-screen="markets"] #markets.brew-controls-ready:not(.brew-trackers-open) .nt-workspace { grid-template-columns: minmax(0,1fr); }
body[data-screen="markets"] #markets.brew-controls-ready:not(.brew-trackers-open) .nt-sidecar { display: none; }
body[data-screen="markets"] #markets.brew-trackers-open .nt-sidecar { display: flex; border: 1px solid var(--brew-line); border-radius: 17px; }
body[data-screen="markets"] #markets .nt-feed-head,
body[data-screen="markets"] #markets .nt-feed-row,
body[data-screen="markets"] #markets .nt-feed-panel { background: transparent; border-color: var(--brew-line); }
body[data-screen="markets"] #markets .nt-trenches-head { min-height: 43px; padding: 0 0 9px; border: 0; background: transparent; }
body[data-screen="markets"] #markets .nt-trenches-head strong { color: var(--brew-muted); font-size: 14px; font-weight: 450; }
body[data-screen="markets"] #markets .nt-trenches-head strong i { box-shadow: none; }
body[data-screen="markets"] #markets .nt-trenches-tools { display: flex; flex-wrap: wrap; gap: 4px; }
body[data-screen="markets"] #markets .nt-trenches-tools button { color: var(--brew-muted); font: 400 12px var(--sans); border-radius: 999px; padding: 8px 12px; border: 1px solid var(--brew-line); }
body[data-screen="markets"] #markets .nt-mobile-lanes { display: flex; flex: none; gap: 4px; padding: 0 0 16px; border: 0; background: transparent; }
body[data-screen="markets"] #markets .nt-mobile-lanes button {
  min-height: 36px; min-width: 0; padding: 8px 16px; border: 0; border-radius: 999px;
  color: var(--brew-muted); background: transparent; font: 450 14px var(--sans);
}
body[data-screen="markets"] #markets .nt-mobile-lanes button[data-active="true"] { color: var(--brew-text); background: #ffffff0d; box-shadow: none; }
body[data-screen="markets"] #markets .nt-lanes { display: block; border: 0; }
body[data-screen="markets"] #markets .nt-lane { display: none; height: 100%; grid-template-rows: minmax(0,1fr); border: 0; }
body[data-screen="markets"] #markets .nt-lane[data-mobile-active="true"] { display: grid; }
body[data-screen="markets"] #markets .nt-lane-head { display: none; }
body[data-screen="markets"] #markets .nt-token-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: max-content; gap: 0; padding: 0; }

/* Lifecycle columns: desktop only; Brew cards and mobile tabs are retained. */
@media (width > 920px) {
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-mobile-lanes { display: none; }
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-lane { display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; min-height: 0; }
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-lane-head { display: block; border: 0; border-bottom: 1px solid var(--brew-line); box-shadow: none; }
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-token-grid { grid-template-columns: minmax(0,1fr); }
}

/* Compact market rows: original geometry with the current warm palette. */
body[data-screen="markets"] #markets .nt-token-card {
  color: var(--brew-text); background: linear-gradient(160deg,#2a2b29,#222421);
  border-bottom-color: var(--brew-line); box-shadow: none;
  transition: background .16s ease,border-color .16s ease;
  content-visibility: auto; contain-intrinsic-size: auto 140px;
}
body[data-screen="markets"] #markets .nt-token-card:hover,
body[data-screen="markets"] #markets .nt-token-card:focus-within {
  background: #2a2d27; border-color: #dfd2a84f; box-shadow: none; transform: none;
}
body[data-screen="markets"] #markets .nt-token-art,
body[data-screen="markets"] #markets .nt-token-card:hover .nt-token-art {
  background: #292d25; border-color: var(--brew-line); box-shadow: none;
  transform: none; filter: none; transition: none;
}
body[data-screen="markets"] #markets .nt-token-art::after { display: none; }
body[data-screen="markets"] #markets .nt-token-avatar:not(img) { background: #30362a !important; color: #dfd5b0; text-shadow: none; }
body[data-screen="markets"] #markets :is(.nt-chain-mark,.nt-venue-mark),
body[data-screen="markets"] #markets .nt-token-card:hover :is(.nt-chain-mark,.nt-venue-mark) {
  border-color: #222421; background: #1d251c; box-shadow: none; transform: none;
}
body[data-screen="markets"] #markets .nt-token-name strong { color: #dde1d8; }
body[data-screen="markets"] #markets .nt-token-name > span,
body[data-screen="markets"] #markets .nt-token-price small { color: var(--brew-muted); }
body[data-screen="markets"] #markets .nt-token-price small { display: block; font: 400 9px var(--sans); }
body[data-screen="markets"] #markets .nt-token-price { color: var(--brew-text); }
body[data-screen="markets"] #markets .nt-token-meta > b { color: #dbcfaa; }
body[data-screen="markets"] #markets .nt-origin { color: var(--brew-muted); border-color: var(--brew-line); background: #ffffff03; }
body[data-screen="markets"] #markets .nt-token-stats { border-color: var(--brew-line); }
body[data-screen="markets"] #markets .nt-token-stats > span { color: var(--brew-muted); }
body[data-screen="markets"] #markets .nt-token-stats strong { color: #e1e5dc; }
/* The historical CSS has no curve-module placement. Keep real progress below
   the four metrics, full width, instead of auto-placing it into the logo cell. */
body[data-screen="markets"] #markets .nt-curve-module { grid-column: 1 / -1; grid-row: 4; min-width: 0; margin: 0; }
body[data-screen="markets"] #markets .nt-curve-module + .nt-riskbar { grid-row: 5; }
body[data-screen="markets"] #markets .nt-curve-head { display: flex; justify-content: space-between; gap: 8px; color: var(--brew-muted); font: 400 10px var(--sans); }
body[data-screen="markets"] #markets .nt-card-spark { display: none; }
body[data-screen="markets"] #markets .market-live-value { font-variant-numeric: tabular-nums; }
body[data-screen="markets"] #markets .market-live-value:is(.tick-up,.tick-down) { animation: brew-value-in .21s ease-out; }
body[data-screen="markets"] #markets .market-card-enter { animation: brew-card-in .32s ease-out; }
body[data-screen="markets"] #markets .market-foot { border: 0; background: var(--brew-bg); color: var(--brew-faint); font-size: 11px; }
body[data-screen="markets"] #markets .markets-table-wrap { background: var(--brew-bg); }
body[data-screen="markets"] #markets .markets-table :is(th,td) { border-color: var(--brew-line); background-color: transparent; }

/* NoFee-only gallery retains its own registry, artwork and official-token mark. */
body #nofee-launches { color: var(--brew-text); background: var(--brew-bg); }
body #nofee-launches .nf-launches-head { padding: 18px 30px; border: 0; background: transparent; }
body #nofee-launches .nf-launches-head p,
body #nofee-launches .nf-launches-back,
body #nofee-launches [data-launches-status] { color: var(--brew-muted); }
body #nofee-launches .nf-launches-scroll { padding: 12px 30px 26px; }
body #nofee-launches input { color: var(--brew-text); background: #292c27; border: 1px solid var(--brew-line); border-radius: 14px; min-height: 46px; font: 400 14px var(--sans); }
body #nofee-launches button { color: var(--brew-text); background: #292c27; border-color: var(--brew-line); }
body #nofee-launches .nf-launch-sort { background: transparent; border: 0; padding: 0; gap: 3px; }
body #nofee-launches .nf-launch-sort button { font: 450 14px var(--sans); padding-inline: 14px; border-radius: 999px; color: var(--brew-muted); background: transparent; }
body #nofee-launches .nf-launch-sort button.selected { color: var(--brew-text); background: #ffffff0d; }
body #nofee-launches .nf-launch-cta { color: #25251d; background: var(--brew-cream); border-radius: 14px; font-weight: 550; }
body #nofee-launches .nf-launch-cta:hover { background: var(--brew-cream-hi); }
body #nofee-launches .nf-launch-grid { grid-template-columns: repeat(auto-fill,minmax(224px,1fr)); gap: 17px; }
body #nofee-launches .nf-card,
body #nofee-launches .nf-card--official { border: 1px solid var(--brew-line); border-radius: 17px; color: var(--brew-text); background: linear-gradient(160deg,#2a2b29,#222421); box-shadow: 0 8px 21px #0000000a; transition: transform .22s ease,border-color .22s ease; animation: brew-card-in .32s ease-out; animation-delay: 0s; }
body #nofee-launches .nf-card:hover { border-color: #dfd2a84f; box-shadow: 0 8px 21px #0000000a; }
body #nofee-launches .nf-card:focus-visible { outline: 2px solid var(--brew-cream); outline-offset: -2px; box-shadow: none; }
body #nofee-launches .nf-card__cover { background: #292d25; }
body #nofee-launches .nf-card--official .nf-card__cover::after { display: none; }
body #nofee-launches .nf-card__body { padding: 13px 12px 12px; }
body #nofee-launches .nf-card__name b { color: #dde1d8; font-size: 14px; font-weight: 600; }
body #nofee-launches .nf-card__sym { color: var(--brew-muted); font: 400 12px var(--sans); }
body #nofee-launches .nf-card__stats { flex-wrap: wrap; gap: 5px 8px; }
body #nofee-launches .nf-card__mc b { color: #e1e5dc; font: 600 14px/1.5 var(--sans); }
body #nofee-launches .nf-card__mc small,
body #nofee-launches .nf-card__vol { color: var(--brew-muted); font: 400 12px var(--sans); }
body #nofee-launches :is(.nf-card__mc b,.nf-card__vol,.nf-card__chg) { font-variant-numeric: tabular-nums; }
body #nofee-launches .nf-card__foot { color: var(--brew-faint); font: 400 12px var(--mono); flex-wrap: wrap; }
body #nofee-launches .nf-card__foot span { color: #dbcfaa; font: 400 12px var(--sans); }
body #nofee-launches :is(.nf-card__badge,.nf-card__venue) { background: #1d251ccc; color: #f1e9ce; font: 450 12px var(--sans); backdrop-filter: none; }
body #nofee-launches .nf-card__official,
body #nofee-launches .nf-card__official-pill { background: #dcca8f14; color: #ecdaa3; border: 1px solid #dcca8f40; border-radius: 6px; box-shadow: none; font: 500 11px var(--sans); }
body #nofee-launches .nf-card__official { background: #25271feb; }
body #nofee-launches .nf-card__placeholder { background: #171916e6; color: #d6d8cf; }

/* Shared forms and secondary routes: presentation, never trading semantics. */
body :is(.search-panel,.wallet-popover,.deposit-sheet,.qt-float,.slip-pop,.toast) { background: var(--brew-panel); border-color: var(--brew-line); border-radius: 17px; }
body :is(#launchpad,#tools,#portfolio,#funds) { background: var(--brew-bg); }
body :is(.nt-lp-consolebar,.nt-tools-bar,.nt-pf-bar,.nt-lp-composer,.nt-tools-main,.nt-tools-body,.nt-pf-body,.nt-lp-steps,.nt-lp-review,.nt-lp-deploybox) { background: var(--brew-bg); border-color: var(--brew-line); }
body :is(.nt-tool-card,.nt-pf-hero,.nt-pf-summary,.nt-pf-panel,.nt-lp-preview-card,.nt-lp-chain,.nt-lp-venue,.nt-lp-engine,.nt-lp-field,.nt-lp-preset) { background: var(--brew-panel); border-color: var(--brew-line); border-radius: 17px; box-shadow: none; }
body :is(.nt-lp-deploy,.nt-pf-cta,.auth-submit,.cta-primary),
body[data-screen="login"] .auth-submit { background: var(--brew-cream); color: #25251d; border-color: var(--brew-cream); border-radius: 14px; box-shadow: none; }
body :is(.nt-lp-deploy,.nt-pf-cta,.auth-submit,.cta-primary):hover { background: var(--brew-cream-hi); box-shadow: none; }
body :is(.nt-lp-deploy,.nt-pf-cta,.auth-submit,.cta-primary):disabled { opacity: .5; }
body :is(.nt-lp-field input,.nt-lp-field textarea,.nt-tools-search input,.nt-pf-table th,.nt-pf-wallet,.nt-pf-periods,.nt-pf-chain-pill) { background: #262a23; border-color: var(--brew-line); color: var(--brew-text); }
body :is(.nt-lp-console-actions button,.nt-lp-step[data-active="true"],.nt-lp-chain[data-active="true"],.nt-lp-venue[data-active="true"],.nt-pf-periods button[data-active="true"],.nt-pf-filters button[data-active="true"]) { color: var(--brew-cream); border-color: #dfd2a84f; background: #efe3b40c; box-shadow: none; }
body :is(.nt-lp-step-head strong,.nt-lp-review-head strong,.nt-tools-bar strong,.nt-pf-panel-head strong) { font-size: 14px; }
body :is(.nt-lp-step-head span,.nt-lp-authority-note,.nt-lp-cost-row,.nt-lp-cost-row strong,.nt-lp-preview-copy p,.nt-lp-preview-stats span,.nt-lp-preview-stats b,.nt-lp-console-title span) { font-size: 12px; }
body :is(.nt-lp-field input,.nt-lp-field textarea) { font-size: 16px; }
body :is(.nt-lp-route-node::before,.nt-lp-route-node::after) { animation: none; }
body #landing, body #landing::before, body #landing::after { background: var(--brew-bg); }
body :is(.landing-scene,.landing-grid-line,.login-ambient) { display: none; }
body #landing .hero-copy h1 em { color: var(--brew-cream); -webkit-text-stroke: 0; text-shadow: none; }
body #landing :is(.hero-aside,.ticker-stage) { background: var(--brew-panel); border-color: var(--brew-line); }
body #landing .cta-primary i { background: transparent; color: inherit; }
body[data-screen="login"] #login { background: var(--brew-bg); }
body[data-screen="login"] :is(.auth-stage,.auth-panel) { background: transparent; }
body[data-screen="login"] .auth-input-shell,
body[data-screen="login"] .otp-row input { border-color: var(--brew-line); background: var(--brew-panel); border-radius: 14px; color: var(--brew-text); }
body[data-screen="login"] :is(.auth-copy,.auth-input-shell > span,.auth-security,.auth-resend) { color: var(--brew-muted); }
body[data-screen="login"] :is(.auth-brandline,.auth-step,.auth-panel h2 em,.auth-wallet-link) { color: var(--brew-cream); }
body[data-screen="login"] .auth-input-shell input { font-size: 16px; }
body[data-screen="login"] #email-send-error { min-height: 21px; }
body[data-screen="token"] #token :is(.terminal-topbar,.terminal-left,.terminal-center,.terminal-right,.chart-toolbar,.chart-canvas-wrap,.trade-card,.funding-details) { background: var(--ta-panel); border-color: var(--ta-line); }
body[data-screen="token"] #token :is(.trade-input,.slippage-row) { border-color: var(--ta-line); background: var(--ta-panel-2); border-radius: 12px; }

/* Enhancements are optional: original controls remain if the module fails. */
#markets .brew-searchbar { display: flex; align-items: stretch; flex: none; gap: 12px; padding: 14px 30px 0; }
#markets .brew-search-open { display: flex; align-items: center; justify-content: flex-start; gap: 13px; flex: 1; min-width: 0; width: auto; height: 48px; padding: 0 18px; color: var(--brew-muted); border: 1px solid #ffffff26; border-radius: 15px; background: linear-gradient(#2c2f2b,#252824); font: 400 14px var(--sans); text-align: left; }
#markets .brew-search-open > span:nth-of-type(2) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#markets .brew-create { flex: none; padding: 0 22px; border-radius: 15px; background: var(--brew-cream-hi); color: #25251d; font: 500 14px var(--sans); }
#markets .brew-network-select { min-height: 40px; min-width: 158px; max-width: 100%; padding: 8px 32px 8px 12px; border: 1px solid var(--brew-line); border-radius: 999px; color: var(--brew-text); background: var(--brew-panel); font: 450 14px var(--sans); }
body[data-screen="markets"] #markets.brew-controls-ready .nt-chainrail { display: none; }
body[data-screen="markets"] .brew-global-search-ready .global-search-wrap { display: none; }
@keyframes brew-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes brew-value-in { from { opacity: .35; } to { opacity: 1; } }
@media(max-width:1100px) {
  body .app-header { padding-inline: 20px; }
  body .global-search { width: 160px; }
  body .route-link { padding-inline: 8px; }
}
@media(max-width:850px) {
  :root { --header-h: 72px; }
  body .app-header, body[data-screen="token"] .app-header { padding-inline: 16px; filter: none !important; transform: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body .brand { min-width: 0; padding-right: 0; }
  body .brand-type { font-size: 25px; }
  body .wallet-trigger { min-height: 40px; padding-inline: 13px; font-size: 12px; }
  body .route-tabs { display: flex; overflow-x: auto; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom,0px)); top: auto; width: auto; min-height: 58px; padding: 6px; gap: 0; border: 1px solid #dfd2a82e; border-radius: 23px; background: #22251fee; box-shadow: 0 8px 24px #00000026; }
  body .route-tabs .route-link { flex: 1 0 auto; width: auto; min-width: max-content; min-height: 44px; padding: 0 7px; margin: 0; font-size: 12px; border-radius: 17px; color: var(--brew-muted); }
  body .route-tabs .route-link.current { color: var(--brew-cream); background: #efe3b408; }
  body[data-screen="markets"] #markets.active { padding-bottom: calc(84px + env(safe-area-inset-bottom,0px)); }
  body[data-screen="markets"] #markets .nt-commandbar,
  body[data-screen="markets"] #markets .nt-commandbar.has-official-contract { padding: 14px 16px 8px; gap: 12px 8px; }
  body[data-screen="markets"] #markets .nt-command-title { gap: 7px; }
  body[data-screen="markets"] #markets .nt-command-title > strong { font-size: 22px; }
  body[data-screen="markets"] #markets .nf-official-contract { margin-left: 0; }
  body[data-screen="markets"] #markets .nf-contract-copy { min-height: 34px; gap: 5px; padding-inline: 7px; }
  body[data-screen="markets"] #markets .nf-contract-symbol { min-width: 0; font-size: 11px; }
  body[data-screen="markets"] #markets .nf-contract-address code { font-size: 11px; }
  body[data-screen="markets"] #markets .nt-command-actions { gap: 5px; }
  body[data-screen="markets"] #markets .nt-command-actions button { min-height: 36px; padding-inline: 9px; font-size: 12px; }
  body[data-screen="markets"] #markets .nt-command-actions .nf-launches-trigger { min-height: 38px; }
  body[data-screen="markets"] #markets[data-market-view="trenches"] .nt-workspace { padding: 0 16px; }
  body[data-screen="markets"] #markets .nt-trenches-head { min-height: 38px; }
  body[data-screen="markets"] #markets .nt-mobile-lanes { padding-bottom: 13px; }
  body[data-screen="markets"] #markets .nt-mobile-lanes button { padding-inline: 15px; font-size: 13px; }

  body[data-screen="markets"] #markets[data-market-view="trenches"].brew-trackers-open .nt-workspace { grid-template-columns: minmax(0,1fr); overflow-y: auto; display: flex; flex-direction: column; }
  body[data-screen="markets"] #markets.brew-trackers-open .nt-sidecar { display: flex; min-height: 210px; flex: none; max-height: 260px; }
  body[data-screen="markets"] #markets.brew-trackers-open .nt-trenches { min-height: 450px; flex: 1; }
  body #nofee-launches .nf-launches-head { padding: 14px 16px; gap: 12px; }
  body #nofee-launches { overflow-y: auto; overscroll-behavior: contain; }
  body #nofee-launches .nf-launches-head { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  body #nofee-launches .nf-launches-head > div:first-of-type { flex: 1 1 100%; min-width: 0; }
  body #nofee-launches .nf-launches-filters { flex: 1 1 100%; flex-wrap: wrap; width: 100%; min-width: 0; }
  body #nofee-launches .nf-launches-filters input { flex: 1 1 100%; width: 100%; min-width: 0; }
  body #nofee-launches .nf-launches-scroll { flex: none; overflow: visible; padding: 8px 16px 24px; }
  body #nofee-launches .nf-launch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  body #nofee-launches .nf-card__body { padding: 11px 10px; }
  body #nofee-launches .nf-card__name { flex-wrap: wrap; gap: 4px; }
  body #nofee-launches .nf-card__badge, body #nofee-launches .nf-card__venue { padding: 4px 6px; font-size: 11px; }
  body #nofee-launches .nf-card__venue { top: 40px; right: auto; left: 10px; }
  body #nofee-launches .nf-launch-sort { width: auto; flex-wrap: wrap; }
  body #nofee-launches .nf-launch-cta { flex: none; min-height: 44px; padding-inline: 14px; }
  #markets .brew-searchbar { padding: 10px 16px 0; gap: 9px; }
  #markets .brew-search-open { padding-inline: 13px; font-size: 14px; }
  #markets .brew-search-open kbd { display: none; }
  #markets .brew-create { padding-inline: 14px; }
  #markets .brew-network-select { min-width: 0; width: 138px; font-size: 12px; padding-right: 16px; }
  body :is(#launchpad,#tools,#portfolio,#funds) { padding-bottom: calc(100px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:390px) {
  body[data-screen="markets"] #markets .nt-commandbar.has-official-contract { grid-template-columns: minmax(0,1fr); }
  #markets .brew-network-select { width: 100%; }
  body[data-screen="markets"] #markets .nt-command-title { justify-content: space-between; }
  body .route-tabs { left: 7px; right: 7px; padding-inline: 3px; overflow-x: auto; }
  body .route-tabs .route-link { padding-inline: 5px; }
}
@media(max-width:360px) {
  body .route-tabs .route-link { font-size: 11px; padding-inline: 4px; }
}
@media(prefers-reduced-motion:reduce) {
  body #markets .nt-token-card, body #markets .market-card-enter, body #markets .market-live-value,
  body #nofee-launches .nf-card { animation: none !important; transition: none !important; }
  body #markets .nt-token-card:hover, body #nofee-launches .nf-card:hover { transform: none; }
}

@media (max-width: 850px) {
  body .route-tabs {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
