/* ==========================================================================
   Role-Authentic Multi-World RWA Ecosystem Design System (v3)
   Worlds:
     1. Wealth Storefront & Screener   (body[data-world="wealth"])
     2. Experiential Asset Showroom    (body[data-world="showroom"])
     3. Single-Company Issuer OS       (body[data-world="issuer"])
     4. Platform Governance Control    (body[data-world="system"])
   Dual-Theme ([data-theme="light"] & [data-theme="dark"]) · WCAG AA Parity
   Craft Floor Enforced · Zero Ghost Cards · Zero Horizontal Overflow (390px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. World Tokens & Dual-Theme Parity
   -------------------------------------------------------------------------- */

:root:not([data-theme="dark"]),
html[data-theme="light"],
[data-theme="light"],
html[data-theme="light"] body[data-world="wealth"],
html:not([data-theme="dark"]) body[data-world="wealth"] {
  --eco-bg: #f8fafc;
  --eco-panel: #ffffff;
  --eco-panel-2: #f1f5f9;
  --eco-ink: #0f172a;
  --eco-ink-2: #334155;
  --eco-label: #475569;
  --eco-hairline: rgba(15, 23, 42, 0.10);
  --eco-hairline-2: rgba(15, 23, 42, 0.18);
  --eco-accent: #0f52ba;
  --eco-accent-soft: rgba(15, 82, 186, 0.09);
  --eco-accent-ink: #ffffff;
  --eco-bid: #047857;
  --eco-bid-soft: rgba(4, 120, 87, 0.10);
  --eco-warn: #b45309;
  --eco-warn-soft: rgba(180, 83, 9, 0.10);
  --eco-ask: #be123c;
  --eco-ask-soft: rgba(190, 18, 60, 0.10);
  --eco-shadow-float: 0 14px 36px -6px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);

  --eco-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --eco-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --eco-r-lg: 16px;
  --eco-r-card: 14px;
  --eco-r: 12px;
  --eco-r-sm: 8px;
  --eco-r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Semantic aliases */
  --bg-canvas: var(--eco-bg);
  --bg-panel: var(--eco-panel);
  --bg-elevated: var(--eco-panel-2);
  --text: var(--eco-ink);
  --muted: var(--eco-label);
  --border: var(--eco-hairline);
  --border-strong: var(--eco-hairline-2);
  --emerald: var(--eco-bid);
  --emerald-dim: var(--eco-bid-soft);
  --crimson: var(--eco-ask);
  --crimson-dim: var(--eco-ask-soft);
  --cobalt: var(--eco-accent);
  --cobalt-dim: var(--eco-accent-soft);
  --amber: var(--eco-warn);
  --amber-dim: var(--eco-warn-soft);
}

html[data-theme="dark"],
[data-theme="dark"],
html[data-theme="dark"] body[data-world="wealth"],
body[data-world="wealth"][data-theme="dark"] {
  --eco-bg: #0b1018;
  --eco-panel: #111824;
  --eco-panel-2: #172131;
  --eco-ink: #f1f5f9;
  --eco-ink-2: #cbd5e1;
  --eco-label: #94a3b8;
  --eco-hairline: rgba(241, 245, 249, 0.10);
  --eco-hairline-2: rgba(241, 245, 249, 0.19);
  --eco-accent: #38bdf8;
  --eco-accent-soft: rgba(56, 189, 248, 0.14);
  --eco-accent-ink: #082032;
  --eco-bid: #34d399;
  --eco-bid-soft: rgba(52, 211, 153, 0.13);
  --eco-warn: #fbbf24;
  --eco-warn-soft: rgba(251, 191, 36, 0.14);
  --eco-ask: #fb7185;
  --eco-ask-soft: rgba(251, 113, 133, 0.14);
  --eco-shadow-float: 0 18px 42px -4px rgba(0, 0, 0, 0.58), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* World 2 — Experiential Showroom (Limestone Light / Night Gallery Dark) */
html[data-theme="light"] body[data-world="showroom"],
html:not([data-theme="dark"]) body[data-world="showroom"] {
  --eco-bg: #faf8f5;
  --eco-panel: #ffffff;
  --eco-panel-2: #f3efe7;
  --eco-ink: #1c1917;
  --eco-ink-2: #44403c;
  --eco-label: #57534e;
  --eco-hairline: #e6e1d6;
  --eco-hairline-2: #cfc7b6;
  --eco-accent: #0f5132;
  --eco-accent-soft: rgba(15, 81, 50, 0.09);
  --eco-accent-ink: #ffffff;
  --eco-bid: #0f5132;
  --eco-bid-soft: rgba(15, 81, 50, 0.10);
  --eco-warn: #9a3412;
  --eco-warn-soft: rgba(154, 52, 18, 0.10);
  --eco-ask: #9f1239;
  --eco-ask-soft: rgba(159, 18, 57, 0.10);
  --eco-shadow-float: 0 16px 36px -6px rgba(28, 25, 23, 0.14), 0 4px 10px -2px rgba(28, 25, 23, 0.07);
}

html[data-theme="dark"] body[data-world="showroom"],
body[data-world="showroom"][data-theme="dark"] {
  --eco-bg: #121214;
  --eco-panel: #1b1a1f;
  --eco-panel-2: #24222a;
  --eco-ink: #f5f2eb;
  --eco-ink-2: #d6d0c4;
  --eco-label: #a8a29e;
  --eco-hairline: #32303a;
  --eco-hairline-2: #484554;
  --eco-accent: #4ade80;
  --eco-accent-soft: rgba(74, 222, 128, 0.13);
  --eco-accent-ink: #072613;
  --eco-bid: #4ade80;
  --eco-bid-soft: rgba(74, 222, 128, 0.13);
  --eco-warn: #fbbf24;
  --eco-warn-soft: rgba(251, 191, 36, 0.14);
  --eco-ask: #fb7185;
  --eco-ask-soft: rgba(251, 113, 133, 0.14);
  --eco-shadow-float: 0 18px 42px -4px rgba(0, 0, 0, 0.62), 0 4px 12px rgba(0, 0, 0, 0.36);
}

/* World 3 — Single-Company Issuer OS */
html[data-theme="light"] body[data-world="issuer"],
html:not([data-theme="dark"]) body[data-world="issuer"] {
  --eco-bg: #f4f6f9;
  --eco-panel: #ffffff;
  --eco-panel-2: #eaeef4;
  --eco-ink: #0f172a;
  --eco-ink-2: #334155;
  --eco-label: #475569;
  --eco-hairline: rgba(15, 23, 42, 0.10);
  --eco-hairline-2: rgba(15, 23, 42, 0.19);
  --eco-accent: #1d4ed8;
  --eco-accent-soft: rgba(29, 78, 216, 0.09);
  --eco-accent-ink: #ffffff;
  --eco-bid: #047857;
  --eco-bid-soft: rgba(4, 120, 87, 0.10);
  --eco-warn: #b45309;
  --eco-warn-soft: rgba(180, 83, 9, 0.10);
  --eco-ask: #be123c;
  --eco-ask-soft: rgba(190, 18, 60, 0.10);
  --eco-shadow-float: 0 14px 34px -6px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] body[data-world="issuer"],
body[data-world="issuer"][data-theme="dark"] {
  --eco-bg: #0d1117;
  --eco-panel: #161b22;
  --eco-panel-2: #1f2630;
  --eco-ink: #f0f6fc;
  --eco-ink-2: #cbd5e1;
  --eco-label: #9ca6b2;
  --eco-hairline: rgba(240, 246, 252, 0.10);
  --eco-hairline-2: rgba(240, 246, 252, 0.20);
  --eco-accent: #60a5fa;
  --eco-accent-soft: rgba(96, 165, 250, 0.14);
  --eco-accent-ink: #081931;
  --eco-bid: #34d399;
  --eco-bid-soft: rgba(52, 211, 153, 0.13);
  --eco-warn: #fbbf24;
  --eco-warn-soft: rgba(251, 191, 36, 0.14);
  --eco-ask: #fb7185;
  --eco-ask-soft: rgba(251, 113, 133, 0.14);
  --eco-shadow-float: 0 18px 42px -4px rgba(0, 0, 0, 0.60), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* World 4 — Platform Governance / System Admin */
html[data-theme="light"] body[data-world="system"],
html:not([data-theme="dark"]) body[data-world="system"] {
  --eco-bg: #f4f6f9;
  --eco-panel: #ffffff;
  --eco-panel-2: #e9edf3;
  --eco-ink: #0f172a;
  --eco-ink-2: #334155;
  --eco-label: #475569;
  --eco-hairline: rgba(15, 23, 42, 0.11);
  --eco-hairline-2: rgba(15, 23, 42, 0.20);
  --eco-accent: #0f766e;
  --eco-accent-soft: rgba(15, 118, 110, 0.10);
  --eco-accent-ink: #ffffff;
  --eco-bid: #047857;
  --eco-bid-soft: rgba(4, 120, 87, 0.10);
  --eco-warn: #b45309;
  --eco-warn-soft: rgba(180, 83, 9, 0.10);
  --eco-ask: #be123c;
  --eco-ask-soft: rgba(190, 18, 60, 0.10);
  --eco-shadow-float: 0 14px 34px -6px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] body[data-world="system"],
body[data-world="system"][data-theme="dark"] {
  --eco-bg: #0d1117;
  --eco-panel: #161b22;
  --eco-panel-2: #1e2530;
  --eco-ink: #f0f6fc;
  --eco-ink-2: #cbd5e1;
  --eco-label: #9ca6b2;
  --eco-hairline: rgba(240, 246, 252, 0.10);
  --eco-hairline-2: rgba(240, 246, 252, 0.20);
  --eco-accent: #2dd4bf;
  --eco-accent-soft: rgba(45, 212, 191, 0.13);
  --eco-accent-ink: #042420;
  --eco-bid: #34d399;
  --eco-bid-soft: rgba(52, 211, 153, 0.13);
  --eco-warn: #fbbf24;
  --eco-warn-soft: rgba(251, 191, 36, 0.14);
  --eco-ask: #fb7185;
  --eco-ask-soft: rgba(251, 113, 133, 0.14);
  --eco-shadow-float: 0 18px 42px -4px rgba(0, 0, 0, 0.60), 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   2. Base Reset, Browser Surface Polish & Typography
   -------------------------------------------------------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--eco-bg);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 14px;
  line-height: 1.5;
  caret-color: var(--eco-accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.rwa-theme-switching *,
html.rwa-theme-switching *::before,
html.rwa-theme-switching *::after {
  transition: none !important;
}

::selection {
  background: var(--eco-accent-soft);
  color: var(--eco-ink);
}

:focus-visible {
  outline: 2px solid var(--eco-accent);
  outline-offset: 2px;
}

/* Slim themed scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--eco-hairline-2) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--eco-hairline-2);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--eco-label);
}

a {
  color: var(--eco-accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  color: var(--eco-ink);
}

p {
  max-width: 72ch;
}

.mono {
  font-family: var(--eco-font-mono);
  font-variant-numeric: tabular-nums;
}

.num,
.stat-val,
.pulse-val {
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--eco-font-mono);
  text-align: right;
}

.tone-ok { color: var(--eco-bid); }
.tone-info { color: var(--eco-accent); }
.tone-warn { color: var(--eco-warn); }
.tone-danger { color: var(--eco-ask); }
.eco-muted { color: var(--eco-label); }

.ui-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -2px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   3. Shared Shell & Clean 60px Top Navigation (.eco-topbar)
   -------------------------------------------------------------------------- */

.eco-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background: var(--eco-bg);
  color: var(--eco-ink);
}

.eco-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 60px;
  background: var(--eco-panel);
  border-bottom: 1px solid var(--eco-hairline);
  padding: 8px clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.eco-topbar-left,
.eco-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.eco-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--eco-ink);
  min-width: 0;
  max-width: 100%;
}

.eco-brand > .ui-icon,
.eco-brand-mark > .ui-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-accent);
  flex-shrink: 0;
}

.eco-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eco-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--eco-ink);
  white-space: nowrap;
}

.eco-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--eco-label);
  line-height: 1.25;
}

.eco-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.eco-nav-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--eco-r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--eco-ink-2);
  font-family: var(--eco-font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-nav-link:hover {
  color: var(--eco-ink);
  background: var(--eco-panel-2);
}

.eco-nav-link.is-active,
.eco-nav-link.active {
  color: var(--eco-accent);
  background: var(--eco-accent-soft);
  border-color: var(--eco-accent);
}

.eco-ctrl-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out), background 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-ctrl-btn:hover {
  color: var(--eco-ink);
  border-color: var(--eco-accent);
}

.eco-ctrl-btn:active,
.eco-nav-link:active {
  transform: scale(0.97);
  transition: transform 140ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   4. World 1 — Investor Storefront & Screener (body[data-world="wealth"])
   -------------------------------------------------------------------------- */

.eco-main,
.wealth-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px clamp(14px, 3vw, 24px) 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.eco-section-head,
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.eco-section-title,
.section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--eco-ink);
  text-wrap: balance;
}

.eco-section-sub,
.section-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--eco-label);
}

/* Discover `/` Editorial Split Hero (Zero hero-metric strip) */
.wealth-hero {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 24px 32px;
  align-items: center;
  min-width: 0;
}

.wealth-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.wealth-hero-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--eco-ink);
  text-wrap: balance;
}

.wealth-hero-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--eco-ink-2);
  max-width: 60ch;
}

.wealth-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.wealth-hero-proof {
  background: var(--eco-panel-2);
  border: none;
  border-radius: var(--eco-r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-pill.is-alert {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ask);
}

.trust-proof-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.trust-proof-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--eco-hairline);
  font-size: 12.5px;
  color: var(--eco-ink-2);
}

/* Discover `/` Featured Opportunity Spotlights */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.spotlight-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.spotlight-card:hover {
  border-color: var(--eco-hairline-2);
}

.spotlight-card.is-featured {
  border-color: var(--eco-accent);
}

.spotlight-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.spotlight-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--eco-ink);
  overflow-wrap: anywhere;
}

.spotlight-card-sub {
  margin: 0;
  font-size: 13px;
  color: var(--eco-label);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--eco-panel-2);
  border-radius: var(--eco-r);
  min-width: 0;
}

.spotlight-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--eco-hairline);
}

/* Discover `/` CORE-INDEX Basket Banner & Reserve Proof Strip */
.basket-banner {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.basket-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.basket-constituents {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.basket-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  font-weight: 600;
}

.basket-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px;
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  min-width: 0;
}

.trust-strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.trust-strip-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-ink);
}

.trust-strip-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--eco-label);
}

/* Markets Screener `/markets` */
.pulse-bar {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.pulse-group {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.pulse-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.pulse-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--eco-label);
}

.pulse-val {
  font-family: var(--eco-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-ink);
}

.screener-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.eco-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 380px;
  min-width: 0;
}

.eco-search-wrap > .ui-icon {
  position: absolute;
  left: 13px;
  color: var(--eco-label);
  pointer-events: none;
}

.eco-search-wrap > .eco-search-input {
  padding-left: 36px;
}

.eco-search-input {
  width: 100%;
  min-width: 0;
  padding: 9px 14px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 13px;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.eco-search-input::placeholder {
  color: var(--eco-label);
  opacity: 1;
}

.eco-search-input:focus {
  outline: none;
  border-color: var(--eco-accent);
  box-shadow: 0 0 0 3px var(--eco-accent-soft);
}

.eco-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.eco-filter-btn {
  appearance: none;
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel);
  color: var(--eco-ink-2);
  padding: 7px 14px;
  border-radius: var(--eco-r-pill);
  font-family: var(--eco-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-filter-btn:hover {
  color: var(--eco-ink);
  border-color: var(--eco-hairline-2);
}

.eco-filter-btn:active {
  transform: scale(0.97);
}

.eco-filter-btn.is-active,
.eco-filter-btn.active {
  background: var(--eco-accent);
  color: var(--eco-accent-ink);
  border-color: var(--eco-accent);
}

.screener-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.screener-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eco-label);
  background: var(--eco-panel-2);
  border-bottom: 1px solid var(--eco-hairline);
  white-space: nowrap;
}

.screener-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--eco-hairline);
  color: var(--eco-ink);
  vertical-align: middle;
}

.screener-table th.num,
.screener-table td.num {
  text-align: right;
}

.screener-table tbody tr {
  transition: background 120ms var(--ease-out);
}

.screener-table tbody tr:hover {
  background: var(--eco-panel-2);
}

.screener-table tbody tr:last-child td {
  border-bottom: none;
}

.screener-asset {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}

.screener-symbol {
  font-family: var(--eco-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-ink);
}

.screener-name {
  font-size: 12px;
  color: var(--eco-label);
}

.spread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--eco-r-pill);
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
}

.spread-pill.discount {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

.spread-pill.premium {
  border-color: var(--eco-warn);
  background: var(--eco-warn-soft);
  color: var(--eco-warn);
}

.spread-pill.par {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.screener-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--eco-label);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Launchpad `/launchpad` */
.offering-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.offering-row {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.offering-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.offering-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.offering-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.offering-trust-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.escrow-badge,
.skin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--eco-r-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.escrow-badge {
  border: 1px solid var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

.skin-badge {
  border: 1px solid var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.offering-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.offering-ticket {
  background: var(--eco-panel-2);
  border: none;
  border-radius: var(--eco-r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.pipeline-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Portfolio `/portfolio` */
.portfolio-header {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.portfolio-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portfolio-wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--eco-hairline);
}

.add-cash-inline,
details.add-cash-drawer {
  background: var(--eco-panel-2);
  border: none;
  border-radius: var(--eco-r);
  padding: 10px 14px;
  min-width: 0;
}

details.add-cash-drawer summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--eco-accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

details.add-cash-drawer summary::-webkit-details-marker {
  display: none;
}

.passport-banner {
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.passport-items {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   5. World 2 — Experiential Showroom (body[data-world="showroom"])
   -------------------------------------------------------------------------- */

.showroom-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  min-height: 60px;
  background: var(--eco-bg);
  border-bottom: 1px solid var(--eco-hairline);
  padding: 10px clamp(14px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.showroom-nav-left,
.showroom-nav-right {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.showroom-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--eco-ink);
  font-weight: 750;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.showroom-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.showroom-switch-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel);
  color: var(--eco-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.showroom-switch-pill:hover {
  border-color: var(--eco-hairline-2);
  color: var(--eco-ink);
}

.showroom-switch-pill:active {
  transform: scale(0.97);
}

.showroom-switch-pill.is-active,
.showroom-switch-pill.active {
  border-color: var(--eco-accent);
  background: var(--eco-accent);
  color: var(--eco-accent-ink);
}

.member-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.showroom-stage {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px clamp(14px, 3vw, 24px) 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.showroom-hero {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.showroom-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--eco-ink);
  text-wrap: balance;
}

.showroom-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--eco-ink-2);
  max-width: 64ch;
}

/* Hospitality Suite Package Cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.package-card {
  appearance: none;
  width: 100%;
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  cursor: pointer;
  min-width: 0;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.package-card:hover {
  border-color: var(--eco-hairline-2);
}

.package-card:active {
  transform: scale(0.985);
}

.package-card.is-selected,
.package-card.selected {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

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

.package-price {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--eco-ink);
}

.package-tier-preview {
  padding: 8px 10px;
  border-radius: var(--eco-r-sm);
  background: var(--eco-panel-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--eco-accent);
  font-variant-numeric: tabular-nums;
}

.booking-panel {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.booking-price-preview {
  padding: 12px 14px;
  border-radius: var(--eco-r);
  background: var(--eco-panel-2);
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--eco-ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Fine Art Provenance & Attestation Cards */
.provenance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.attestation-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

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

.attestation-hash {
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  color: var(--eco-label);
  overflow-wrap: anywhere;
}

/* Game IP 4-Stage Milestone Rail */
.milestone-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.milestone-step {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.milestone-step.is-complete,
.milestone-step.is-released {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.milestone-step.is-current {
  border-color: var(--eco-hairline-2);
}

.milestone-step.is-upcoming {
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
}

.milestone-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--eco-ink);
}

.milestone-unlock {
  font-family: var(--eco-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--eco-accent);
  font-variant-numeric: tabular-nums;
}

/* Tactile VIP Pass / Key Claim Card */
.perk-pass-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-accent);
  border-radius: var(--eco-r-lg);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.perk-pass-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 300px;
}

.perk-claim-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   6. Worlds 3 & 4 — Issuer OS (body[data-world="issuer"]) & System Admin (body[data-world="system"])
   -------------------------------------------------------------------------- */

.workspace-layout {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 24px) 92px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.workspace-sidebar {
  position: sticky;
  top: 76px;
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.workspace-brand {
  padding: 6px 10px 12px;
  border-bottom: 1px solid var(--eco-hairline);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.workspace-brand-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--eco-ink);
  overflow-wrap: anywhere;
}

.workspace-brand-sub {
  font-size: 11.5px;
  color: var(--eco-label);
  font-family: var(--eco-font-mono);
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.workspace-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--eco-r-sm);
  border: 1px solid transparent;
  color: var(--eco-ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.workspace-nav-link:hover {
  background: var(--eco-panel-2);
  color: var(--eco-ink);
}

.workspace-nav-link:active {
  transform: scale(0.98);
}

.workspace-nav-link.is-active,
.workspace-nav-link.active {
  background: var(--eco-accent-soft);
  border-color: var(--eco-accent);
  color: var(--eco-accent);
}

.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.workspace-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--eco-ink);
  text-wrap: balance;
}

.workspace-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--eco-label);
  max-width: 68ch;
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

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

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

.stat-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eco-label);
}

.stat-val {
  font-family: var(--eco-font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--eco-ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-sub {
  font-size: 12px;
  color: var(--eco-label);
  overflow-wrap: anywhere;
}

.section-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.section-card-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--eco-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--eco-ink);
}

.section-card-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--eco-label);
}

.section-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.empty-state {
  padding: 36px 24px;
  text-align: center;
  background: var(--eco-panel-2);
  border: 1px dashed var(--eco-hairline-2);
  border-radius: var(--eco-r-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--eco-ink-2);
  min-width: 0;
}

.empty-state-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--eco-ink);
}

.empty-state-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--eco-label);
  max-width: 48ch;
}

.empty-state-action {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   7. Shared Panels, Tables, Forms, Buttons & Badges
   -------------------------------------------------------------------------- */

.eco-panel {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.eco-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--eco-hairline);
  flex-wrap: wrap;
  min-width: 0;
}

.eco-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--eco-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.eco-panel-sub {
  font-size: 12.5px;
  color: var(--eco-label);
  overflow-wrap: anywhere;
}

.eco-panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.eco-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.eco-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eco-label);
  background: var(--eco-panel-2);
  border-bottom: 1px solid var(--eco-hairline);
  white-space: nowrap;
}

.eco-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--eco-hairline);
  color: var(--eco-ink);
  vertical-align: middle;
}

.eco-table th.num,
.eco-table td.num {
  text-align: right;
}

.eco-table tbody tr:hover {
  background: var(--eco-panel-2);
}

.eco-table tbody tr:last-child td {
  border-bottom: none;
}

.eco-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.eco-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.eco-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.eco-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.eco-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.eco-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.eco-field label,
.eco-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--eco-label);
}

.eco-input,
.eco-select,
.eco-textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-bg);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.eco-input.mono,
.eco-select.mono {
  font-family: var(--eco-font-mono);
}

.eco-input::placeholder,
.eco-textarea::placeholder {
  color: var(--eco-label);
  opacity: 1;
}

.eco-textarea {
  min-height: 84px;
  resize: vertical;
}

.eco-input:focus,
.eco-select:focus,
.eco-textarea:focus {
  outline: none;
  border-color: var(--eco-accent);
  box-shadow: 0 0 0 3px var(--eco-accent-soft);
}

.eco-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--eco-ink-2);
  cursor: pointer;
}

.eco-checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--eco-accent);
}

.eco-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-btn:hover {
  border-color: var(--eco-accent);
}

.eco-btn:active {
  transform: scale(0.97);
  transition: transform 140ms var(--ease-out);
}

.eco-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.eco-btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.eco-btn-pill {
  border-radius: var(--eco-r-pill);
}

.eco-btn-primary {
  background: var(--eco-accent);
  border-color: var(--eco-accent);
  color: var(--eco-accent-ink);
}

.eco-btn-primary:hover {
  filter: brightness(1.06);
}

.eco-btn-ok {
  background: var(--eco-bid);
  border-color: var(--eco-bid);
  color: #ffffff;
}

.eco-btn-danger {
  background: var(--eco-ask);
  border-color: var(--eco-ask);
  color: #ffffff;
}

.eco-btn-ghost {
  background: transparent;
  border-color: var(--eco-hairline);
  color: var(--eco-ink-2);
}

.eco-btn-ghost:hover {
  color: var(--eco-ink);
  background: var(--eco-panel-2);
  border-color: var(--eco-hairline-2);
}

.eco-badge,
.eco-archetype-badge,
.eco-shell .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

.eco-archetype-badge {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.eco-badge.ok,
.eco-shell .badge.ok {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

.eco-badge.warn,
.eco-shell .badge.warn {
  border-color: var(--eco-warn);
  background: var(--eco-warn-soft);
  color: var(--eco-warn);
}

.eco-badge.info,
.eco-shell .badge.info {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.eco-badge.danger,
.eco-shell .badge.danger {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ask);
}

.eco-badge.muted,
.eco-shell .badge.muted {
  border-color: var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-label);
}

.eco-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  overflow: hidden;
}

.eco-progress-fill {
  height: 100%;
  background: var(--eco-accent);
  border-radius: var(--eco-r-pill);
  transition: width 260ms var(--ease-out);
}

.eco-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  color: var(--eco-label);
  font-variant-numeric: tabular-nums;
}

.eco-alert {
  padding: 12px 14px;
  border-radius: var(--eco-r);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  font-size: 13px;
  color: var(--eco-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.eco-alert.ok {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-ink);
}

.eco-alert.warn {
  border-color: var(--eco-warn);
  background: var(--eco-warn-soft);
  color: var(--eco-ink);
}

.eco-alert.danger {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ink);
}

.eco-alert.info {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-ink);
}

/* Layer-2 Progressive Disclosure */
details.layer2-panel {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

details.layer2-panel[open] {
  border-color: var(--eco-hairline-2);
}

summary.layer2-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--eco-ink);
  background: var(--eco-panel);
}

summary.layer2-summary::-webkit-details-marker,
summary.layer2-summary::marker {
  display: none;
}

summary.layer2-summary:hover {
  background: var(--eco-panel-2);
}

details.layer2-panel[open] > summary.layer2-summary {
  border-bottom: 1px solid var(--eco-hairline);
}

.layer2-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.layer2-count-pill {
  font-family: var(--eco-font-mono);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  color: var(--eco-label);
}

.layer2-chevron {
  display: inline-flex;
  color: var(--eco-label);
  transition: transform 180ms var(--ease-out);
}

details.layer2-panel[open] .layer2-chevron {
  transform: rotate(180deg);
}

.layer2-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--eco-bg);
  min-width: 0;
}

/* Utility layout helpers */
.eco-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.eco-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.eco-kv-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.eco-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--eco-hairline);
  font-size: 13px;
  min-width: 0;
}

.eco-kv-row:last-child {
  border-bottom: none;
}

.eco-card-metrics,
.eco-sto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--eco-panel-2);
  border: none;
  border-radius: var(--eco-r);
  min-width: 0;
}

.eco-sto-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eco-layer2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.eco-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.eco-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eco-label);
}

.eco-metric-val {
  font-family: var(--eco-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--eco-ink);
  overflow-wrap: anywhere;
}

.eco-notional-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--eco-panel-2);
  border: none;
  border-radius: var(--eco-r-sm);
  font-family: var(--eco-font-mono);
  font-size: 12.5px;
  color: var(--eco-ink);
  font-variant-numeric: tabular-nums;
}

.eco-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--eco-label);
}

.eco-wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eco-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eco-pill-btn {
  appearance: none;
  padding: 4px 10px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out), background 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-pill-btn:hover {
  color: var(--eco-ink);
  border-color: var(--eco-hairline-2);
}

.eco-pill-btn:active {
  transform: scale(0.97);
}

.eco-pill-btn.active,
.eco-pill-btn.is-active {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

/* --------------------------------------------------------------------------
   8. Workspace Top Toast Banner (.eco-toast) & RBAC 403 Card
   -------------------------------------------------------------------------- */

@keyframes eco-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eco-toast {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--eco-r);
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--eco-ink);
  animation: eco-toast-in 200ms var(--ease-out) both;
}

.eco-toast.ok,
.eco-toast.success {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-ink);
}

.eco-toast.error {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ink);
}

.eco-toast-close {
  appearance: none;
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel);
  color: var(--eco-ink-2);
  border-radius: var(--eco-r-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.eco-toast-close:active {
  transform: scale(0.97);
}

.eco-forbidden-card {
  width: 100%;
  max-width: 560px;
  margin: 40px auto;
  background: var(--eco-panel);
  border: 1px solid var(--eco-ask);
  border-radius: var(--eco-r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.eco-forbidden-code {
  font-family: var(--eco-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--eco-ask);
}

.eco-forbidden-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--eco-ink);
}

.eco-forbidden-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--eco-ink-2);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. Floating Dev Mode Profile Switcher (#dev-profile-switcher)
   -------------------------------------------------------------------------- */

.dev-switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
}

.dev-pill-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--eco-r-pill);
  border: none;
  background: var(--eco-panel-2);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--eco-shadow-float);
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.dev-pill-btn:hover {
  background: var(--eco-panel-2);
}

.dev-pill-btn:active {
  transform: scale(0.97);
  transition: transform 140ms var(--ease-out);
}

.dev-kbd {
  font-family: var(--eco-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--eco-panel-2);
  color: var(--eco-label);
}

.dev-popover {
  position: fixed;
  left: 16px;
  bottom: 64px;
  width: min(400px, calc(100vw - 24px));
  max-height: 75vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--eco-panel);
  color: var(--eco-ink);
  border: none;
  border-radius: var(--eco-r-lg);
  box-shadow: var(--eco-shadow-float);
  padding: 16px;
  z-index: 9991;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 180ms;
}

.dev-popover.is-open,
.dev-popover[data-open="true"],
.dev-popover[data-show]:not([style*="display: none"]):not([style*="display:none"]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dev-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--eco-hairline);
}

.dev-popover-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dev-close-btn {
  appearance: none;
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  border-radius: var(--eco-r-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.dev-close-btn:active {
  transform: scale(0.97);
}

.dev-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.dev-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eco-label);
}

.dev-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dev-role-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.dev-role-pill:hover {
  color: var(--eco-ink);
  border-color: var(--eco-accent);
}

.dev-role-pill:active {
  transform: scale(0.97);
}

.dev-role-pill.is-active,
.dev-role-pill.active {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

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

.dev-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-bg);
  color: var(--eco-ink);
  font-family: var(--eco-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dev-select:focus {
  outline: none;
  border-color: var(--eco-accent);
  box-shadow: 0 0 0 3px var(--eco-accent-soft);
}

.dev-meta-line {
  font-family: var(--eco-font-mono);
  font-size: 11px;
  color: var(--eco-label);
  font-variant-numeric: tabular-nums;
}

.dev-sim-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--eco-r);
  background: var(--eco-panel-2);
  border: none;
  min-width: 0;
  max-width: 100%;
}

.dev-sim-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.dev-sim-controls .eco-btn {
  width: 100%;
  padding: 6px 8px;
  font-size: 11.5px;
}

.dev-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.dev-scenario-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.dev-scenario-btn:hover {
  border-color: var(--eco-accent);
}

.dev-scenario-btn:active {
  transform: scale(0.97);
}

.dev-scenario-btn.is-active,
.dev-scenario-btn.active {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.dev-sim-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: var(--eco-r-sm);
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  font-family: var(--eco-font-mono);
  font-size: 11px;
  color: var(--eco-ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  max-width: 100%;
}

.dev-step-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 148px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: var(--eco-r-sm);
  background: var(--eco-bg);
  border: 1px solid var(--eco-hairline);
  font-family: var(--eco-font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--eco-ink-2);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

.dev-step-log-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--eco-hairline);
  min-width: 0;
}

.dev-step-log-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   9b. Phase 6 Ecosystem Components (DAOs, /launch KYB Wizard, /shop/{slug})
   -------------------------------------------------------------------------- */

/* DAO Directory `/daos` & Umbrella DAO Console `/daos/{daoSlug}` */
.dao-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}

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

.dao-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.dao-card:hover {
  border-color: var(--eco-hairline-2);
}

.dao-card.is-featured {
  border-color: var(--eco-accent);
}

.dao-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dao-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--eco-ink);
  overflow-wrap: anywhere;
}

.dao-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--eco-label);
  overflow-wrap: anywhere;
}

.dao-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--eco-hairline);
}

.dao-charter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
  font-family: var(--eco-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

.dao-charter-badge.is-protective,
.dao-charter-badge[data-tier="0"] {
  border-color: var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
}

.dao-charter-badge.is-constitutional,
.dao-charter-badge[data-tier="1"] {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
}

.dao-charter-badge.is-cogoverned,
.dao-charter-badge[data-tier="2"] {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

.dao-charter-badge.is-custom,
.dao-charter-badge[data-tier="3"] {
  border-color: var(--eco-warn);
  background: var(--eco-warn-soft);
  color: var(--eco-warn);
}

.dao-perm-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  max-width: 100%;
}

:where(.dao-perm-list > li, .dao-perm-list > span:not(.eco-badge), .dao-perm-pill) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  font-family: var(--eco-font-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
}

:where(.dao-perm-list > .is-enabled, .dao-perm-list > .is-on, .dao-perm-pill.is-enabled) {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

:where(.dao-perm-list > .is-disabled, .dao-perm-list > .is-off, .dao-perm-pill.is-disabled) {
  opacity: 0.55;
  color: var(--eco-label);
}

.dao-child-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  padding: 10px 12px;
  border-radius: var(--eco-r);
  background: var(--eco-panel-2);
  border: none;
  min-width: 0;
  max-width: 100%;
}

:where(.dao-child-strip > a, .dao-child-chip) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel);
  color: var(--eco-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

:where(.dao-child-strip > a, .dao-child-chip):hover {
  border-color: var(--eco-accent);
  color: var(--eco-accent);
}

.dao-proposal-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  transition: border-color 140ms var(--ease-out);
}

.dao-proposal-card:hover {
  border-color: var(--eco-hairline-2);
}

.dao-proposal-card.is-executed {
  border-color: var(--eco-bid);
}

.dao-proposal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.dao-proposal-meta {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  color: var(--eco-label);
  font-variant-numeric: tabular-nums;
}

.dao-vote-bar {
  width: 100%;
  height: 9px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.dao-vote-for {
  height: 100%;
  background: var(--eco-bid);
  flex-shrink: 0;
  min-width: 0;
  transition: width 260ms var(--ease-out);
}

.dao-vote-against {
  height: 100%;
  background: var(--eco-ask);
  flex-shrink: 0;
  min-width: 0;
  transition: width 260ms var(--ease-out);
}

.dao-vote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--eco-label);
}

/* Self-Serve `/launch` 3-Step Business & Educational KYB Wizard */
.launch-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.launch-step-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.launch-stepper .launch-step-card {
  padding: 14px 16px;
  gap: 6px;
}

.launch-step-card.is-active {
  border-color: var(--eco-accent);
}

.launch-stepper .launch-step-card.is-active {
  background: var(--eco-accent-soft);
}

.launch-step-card.is-complete,
.launch-step-card.is-done {
  border-color: var(--eco-bid);
}

.launch-stepper .launch-step-card.is-complete,
.launch-stepper .launch-step-card.is-done {
  background: var(--eco-bid-soft);
}

.launch-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.launch-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink);
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.launch-step-card.is-active .launch-step-num {
  border-color: var(--eco-accent);
  background: var(--eco-accent);
  color: var(--eco-accent-ink);
}

.kyb-guide-box {
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.launch-step-card .kyb-guide-box,
.section-card-body .kyb-guide-box,
.eco-panel-body .kyb-guide-box {
  border: none;
}

.kyb-check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--eco-r);
  border: 1px solid var(--eco-hairline);
  background: var(--eco-panel);
  color: var(--eco-ink);
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}

.kyb-check-item:hover {
  border-color: var(--eco-hairline-2);
}

.kyb-check-item.is-checked,
.kyb-check-item:has(input[type="checkbox"]:checked) {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
}

.kyb-check-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--eco-bid);
  cursor: pointer;
}

.kyb-check-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.kyb-check-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-ink);
}

.kyb-check-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--eco-label);
}

.charter-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.charter-tier-card {
  appearance: none;
  position: relative;
  width: 100%;
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out), transform 140ms var(--ease-out);
}

.charter-tier-card:hover {
  border-color: var(--eco-hairline-2);
}

.charter-tier-card:active {
  transform: scale(0.97);
}

.charter-tier-card input[type="radio"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--eco-accent);
  cursor: pointer;
}

.charter-tier-card.is-selected,
.charter-tier-card.selected,
.charter-tier-card:has(input[type="radio"]:checked) {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.charter-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.charter-tier-meta {
  font-family: var(--eco-font-mono);
  font-size: 11.5px;
  color: var(--eco-label);
  font-variant-numeric: tabular-nums;
}

/* Canonical Multi-Merchant Storefront `/shop/{slug}` */
.shop-website-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.shop-website-link:hover {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.shop-website-link:active {
  transform: scale(0.97);
}

.shop-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  padding: 14px 18px;
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  width: 100%;
  min-width: 0;
}

.showroom-hero .shop-kpi-strip,
.eco-panel-body .shop-kpi-strip,
.section-card-body .shop-kpi-strip {
  background: var(--eco-panel-2);
  border: none;
}

.shop-sku-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.shop-sku-card {
  appearance: none;
  width: 100%;
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.shop-sku-card:hover {
  border-color: var(--eco-hairline-2);
}

.shop-sku-card:active {
  transform: scale(0.985);
}

.shop-sku-card.is-selected,
.shop-sku-card.selected,
.shop-sku-card[aria-pressed="true"] {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.shop-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: var(--eco-r);
  background: var(--eco-panel-2);
  border: none;
  width: 100%;
  min-width: 0;
}

.shop-mode-pill {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--eco-r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--eco-ink-2);
  font-family: var(--eco-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.shop-mode-pill:hover {
  color: var(--eco-ink);
  background: var(--eco-panel);
  border-color: var(--eco-hairline);
}

.shop-mode-pill:active {
  transform: scale(0.97);
}

.shop-mode-pill.is-active,
.shop-mode-pill.active,
.shop-mode-pill[aria-pressed="true"] {
  background: var(--eco-accent);
  border-color: var(--eco-accent);
  color: var(--eco-accent-ink);
}

.shop-mode-pill small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.88;
}

.shop-quote-box {
  padding: 14px 16px;
  border-radius: var(--eco-r);
  background: var(--eco-panel-2);
  border: none;
  font-size: 13px;
  color: var(--eco-ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.shop-quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.shop-quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--eco-hairline);
  font-weight: 700;
  font-size: 14px;
}

.amm-liquidity-bar {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--eco-ink-2);
  min-width: 0;
  max-width: 100%;
}

.booking-panel .amm-liquidity-bar,
.eco-panel-body .amm-liquidity-bar,
.section-card-body .amm-liquidity-bar {
  background: var(--eco-panel-2);
  border: none;
}

.amm-reserve-track {
  width: 100%;
  height: 6px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-bg);
  overflow: hidden;
  display: flex;
}

.amm-reserve-fill {
  height: 100%;
  background: var(--eco-accent);
  border-radius: var(--eco-r-pill);
  transition: width 240ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   9b. Phase 7 Web3 Wallet Controls, Modal, Onboarding, Faucet & Self-Serve KYC
   -------------------------------------------------------------------------- */

.web3-topbar-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.web3-topbar-btn:hover {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.web3-topbar-btn:active {
  transform: scale(0.97);
}

.web3-topbar-btn.is-connected {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-ink);
}

.web3-live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--eco-r-pill);
  background: var(--eco-bid);
  box-shadow: 0 0 0 3px var(--eco-bid-soft);
  flex-shrink: 0;
}

.web3-live-dot.is-offline {
  background: var(--eco-warn);
  box-shadow: 0 0 0 3px var(--eco-warn-soft);
}

.web3-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-accent);
  font-family: var(--eco-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
}

#web3-wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#web3-wallet-modal[hidden],
#web3-wallet-modal[data-open="false"],
#web3-wallet-modal[aria-hidden="true"]:not(.is-open) {
  display: none;
}

.web3-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.web3-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(490px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--eco-panel);
  color: var(--eco-ink);
  border: 1px solid var(--eco-hairline-2);
  border-radius: var(--eco-r-lg);
  box-shadow: var(--eco-shadow-float);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.web3-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eco-hairline);
}

.web3-modal-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--eco-ink);
}

.web3-modal-close {
  appearance: none;
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink-2);
  border-radius: var(--eco-r-pill);
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.web3-modal-close:hover {
  border-color: var(--eco-accent);
  color: var(--eco-ink);
}

.web3-modal-close:active {
  transform: scale(0.97);
}

.web3-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.web3-modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eco-label);
}

.web3-embedded-box {
  background: var(--eco-panel-2);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.web3-embedded-addr,
[data-web3-embedded-addr] {
  font-family: var(--eco-font-mono);
  font-size: 12px;
  color: var(--eco-ink);
  background: var(--eco-bg);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-sm);
  padding: 8px 10px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.web3-embedded-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.web3-provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.web3-provider-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--eco-r);
  border: 1px solid var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-ink);
  font-family: var(--eco-font-sans);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.web3-provider-btn:hover {
  border-color: var(--eco-accent);
  background: var(--eco-accent-soft);
}

.web3-provider-btn:active {
  transform: scale(0.985);
}

.web3-provider-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.web3-provider-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: contain;
}

.web3-provider-rdns {
  font-size: 11px;
  color: var(--eco-label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.web3-provider-empty {
  padding: 12px 14px;
  border-radius: var(--eco-r);
  border: 1px dashed var(--eco-hairline-2);
  background: var(--eco-panel-2);
  color: var(--eco-label);
  font-size: 12.5px;
  line-height: 1.45;
}

.web3-modal-status,
.web3-inline-status {
  padding: 9px 12px;
  border-radius: var(--eco-r-sm);
  border: 1px solid var(--eco-accent);
  background: var(--eco-accent-soft);
  color: var(--eco-ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.web3-modal-status:empty,
.web3-inline-status:empty {
  display: none;
}

.web3-modal-status.is-error,
.web3-inline-status.is-error {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ask);
}

.web3-modal-status.is-ok,
.web3-inline-status.is-ok {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

/* Onboarding, Faucet & Self-Serve KYC Grid */
.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.faucet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.kyc-gate-card {
  background: var(--eco-panel);
  border: 1px solid var(--eco-hairline);
  border-radius: var(--eco-r-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.kyc-gate-card.is-verified {
  border-color: var(--eco-bid);
}

.kyc-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--eco-r-pill);
  border: 1px solid var(--eco-warn);
  background: var(--eco-warn-soft);
  color: var(--eco-warn);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
}

.kyc-gate-badge.ok,
.kyc-gate-badge.is-verified {
  border-color: var(--eco-bid);
  background: var(--eco-bid-soft);
  color: var(--eco-bid);
}

.kyc-gate-badge.danger {
  border-color: var(--eco-ask);
  background: var(--eco-ask-soft);
  color: var(--eco-ask);
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints (<= 1040px, <= 900px, <= 640px for 390x844)
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .spotlight-grid,
  .pipeline-grid,
  .package-grid,
  .provenance-grid,
  .dao-grid.cols-3,
  .shop-sku-grid,
  .eco-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milestone-rail,
  .stat-row,
  .portfolio-summary,
  .charter-tier-grid,
  .eco-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wealth-hero,
  .basket-banner,
  .offering-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .basket-banner-actions {
    align-items: flex-start;
  }

  .trust-strip,
  .launch-stepper {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px 14px 88px;
  }

  .workspace-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px;
    gap: 6px;
  }

  .workspace-sidebar::-webkit-scrollbar {
    display: none;
  }

  .workspace-brand {
    display: none;
  }

  .workspace-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .workspace-nav-link {
    border-radius: var(--eco-r-pill);
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .portfolio-grid,
  .dao-grid,
  .onboarding-layout,
  .eco-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .eco-topbar,
  .showroom-nav {
    padding: 8px 12px;
    gap: 8px;
  }

  .showroom-nav-left,
  .showroom-nav-right {
    width: 100%;
    max-width: 100%;
  }

  .eco-brand-sub {
    display: none;
  }

  .eco-nav,
  .showroom-switcher {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .eco-nav::-webkit-scrollbar,
  .showroom-switcher::-webkit-scrollbar {
    display: none;
  }

  .eco-main,
  .wealth-main,
  .showroom-stage {
    padding: 16px 12px 88px;
    gap: 16px;
  }

  .wealth-hero,
  .showroom-hero,
  .basket-banner,
  .offering-row,
  .portfolio-header,
  .booking-panel,
  .perk-pass-card,
  .dao-card,
  .dao-proposal-card,
  .launch-step-card,
  .kyb-guide-box,
  .kyc-gate-card,
  .web3-modal-dialog {
    padding: 16px;
  }

  .web3-topbar-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .web3-provider-rdns {
    max-width: 110px;
  }

  .spotlight-grid,
  .pipeline-grid,
  .package-grid,
  .provenance-grid,
  .milestone-rail,
  .stat-row,
  .stat-row.cols-3,
  .stat-row.cols-2,
  .portfolio-summary,
  .dao-grid,
  .dao-grid.cols-3,
  .launch-stepper,
  .charter-tier-grid,
  .shop-sku-grid,
  .shop-mode-tabs,
  .shop-kpi-strip,
  .onboarding-layout,
  .faucet-grid,
  .eco-grid-2,
  .eco-grid-3,
  .eco-grid-4,
  .eco-form-grid,
  .eco-card-metrics,
  .eco-sto-grid,
  .eco-layer2-grid,
  .spotlight-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dev-switcher {
    left: 12px;
    bottom: 12px;
  }

  .dev-popover {
    left: 12px;
    bottom: 58px;
    padding: 14px;
  }

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

  .eco-search-wrap {
    max-width: 100%;
    flex-basis: 100%;
  }

  .eco-filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .eco-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .section-card-head,
  .section-card-body,
  .eco-panel-head,
  .eco-panel-body {
    padding: 14px;
  }

  .eco-forbidden-card {
    margin: 20px auto;
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   11. Phase 9: Go-Global Loop, Visual Playbook & Staked Bounties Marketplace
   -------------------------------------------------------------------------- */

.goglobal-strip {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--eco-border);
  background: var(--eco-surface);
}

.goglobal-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.goglobal-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.goglobal-step {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--eco-border);
  background: var(--eco-bg-soft, var(--eco-surface));
  display: grid;
  gap: 6px;
  align-content: start;
}

.goglobal-step strong {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.goglobal-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--eco-muted);
}

.playbook-flow-grid,
.playbook-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.playbook-act-card,
.playbook-role-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--eco-border);
  background: var(--eco-surface);
  display: grid;
  gap: 10px;
  align-content: space-between;
}

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

.playbook-act-title,
.playbook-role-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.playbook-act-desc,
.playbook-role-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--eco-muted);
}

.bounty-po-grid,
.bounty-grid {
  display: grid;
  gap: 14px;
}

.bounty-po-card,
.bounty-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--eco-border);
  background: var(--eco-surface);
  display: grid;
  gap: 12px;
}

.bounty-po-head,
.bounty-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bounty-po-title,
.bounty-card-title {
  margin: 6px 0 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.bounty-card-brief {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--eco-muted);
  max-width: 72ch;
}

.bounty-stage-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bounty-stage-pill {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--eco-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--eco-muted);
}

.bounty-stage-pill.is-done {
  border-color: var(--eco-ok, #15803d);
  color: var(--eco-ink);
}

.bounty-stage-pill.is-hold {
  border-color: var(--eco-danger, #b91c1c);
  color: var(--eco-danger, #b91c1c);
}

.bounty-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--eco-border);
}

.bounty-metric {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--eco-muted);
}

.bounty-metric strong,
.bounty-metric a {
  font-size: 13px;
  color: var(--eco-ink);
  font-variant-numeric: tabular-nums;
}

.bounty-award-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--eco-border);
  font-size: 13px;
}

.bounty-proof-list {
  display: grid;
  gap: 6px;
}

.bounty-proof-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--eco-border);
  font-size: 12.5px;
}

.bounty-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

@media (max-width: 1024px) {
  .goglobal-steps-grid,
  .playbook-flow-grid,
  .playbook-roles-grid,
  .bounty-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .goglobal-steps-grid,
  .playbook-flow-grid,
  .playbook-roles-grid,
  .bounty-stage-bar,
  .bounty-metrics-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   11. Reduced Motion Compliance
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .eco-btn:active,
  .eco-ctrl-btn:active,
  .eco-nav-link:active,
  .eco-filter-btn:active,
  .package-card:active,
  .charter-tier-card:active,
  .shop-sku-card:active,
  .shop-mode-pill:active,
  .shop-website-link:active,
  .dev-pill-btn:active,
  .dev-role-pill:active,
  .dev-scenario-btn:active,
  .web3-topbar-btn:active,
  .web3-provider-btn:active,
  .web3-modal-close:active {
    transform: none !important;
  }
}
