:root {
  color-scheme: dark;
  --ink: #080b0f;
  --surface: #10151c;
  --surface-raised: #171e27;
  --surface-soft: #202936;
  --line: #303b49;
  --line-strong: #536173;
  --text: #f4f5ef;
  --muted: #99a4b1;
  --acid: #d9ff43;
  --cyan: #68e8ff;
  --orange: #ff7548;
  --success: #66ef9c;
  --warning: #ffc65a;
  --danger: #ff6682;
  --paused: #9fa9b5;
  --focus: #ffffff;
  --space-1: .375rem;
  --space-2: .625rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --radius-sm: .35rem;
  --radius: .7rem;
  --radius-lg: 1.1rem;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --speed-fast: 130ms;
  --speed: 240ms;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; min-height: 44px; padding: 10px 14px;
  color: var(--ink); background: var(--acid); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.v2-header { min-height: 72px; display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-4);
  align-items: center; padding: 12px clamp(16px, 4vw, 64px); border-bottom: 1px solid var(--line);
  background: rgba(8,11,15,.95); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.v2-brand { min-height: 44px; display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none;
  letter-spacing: .08em; font-size: .82rem; font-weight: 900; }
.v2-brand img { width: 38px; height: 38px; image-rendering: pixelated; border: 1px solid var(--line-strong); }
.v2-brand b { padding: 5px 8px; color: var(--ink); background: var(--acid); font-size: .65rem;
  letter-spacing: .12em; clip-path: polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%); }
.header-state { display: flex; align-items: center; gap: 8px; max-width: 340px; color: var(--muted);
  font-size: .72rem; text-align: right; }
.system-pulse { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px rgba(102,239,156,.12); }
.wallet-actions { display: flex; align-items: center; gap: 8px; }
.primary-button, .outline-button, .send-button, .attach-button, .filter-button { min-height: 44px;
  border: 1px solid transparent; padding: 0 17px; font-weight: 900; letter-spacing: .055em; cursor: pointer;
  transition: transform var(--speed-fast), background var(--speed-fast), color var(--speed-fast); }
.primary-button, .send-button { color: var(--ink); background: var(--acid); }
.outline-button, .attach-button, .filter-button { border-color: var(--line-strong); background: transparent; }
.text-button { min-height: 44px; padding: 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
button:not(:disabled):active, a:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
.preview-ribbon { display: flex; justify-content: center; gap: 14px; padding: 10px 20px; color: var(--ink);
  background: var(--warning); font-size: .74rem; letter-spacing: .03em; }
.preview-ribbon strong { white-space: nowrap; }

.broker-shell { width: min(1640px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 64px); }
.section-heading, .panel-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h1, .panel-header h2, .flywheel h2 { margin: 5px 0 0; font-family: var(--font-display);
  font-weight: 900; line-height: .92; letter-spacing: .025em; }
.section-heading h1 { font-size: clamp(2rem, 5vw, 4.7rem); }
.section-heading p { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.section-heading p b { color: var(--acid); font-size: 1.4rem; }
.kicker { display: block; color: var(--cyan); font-weight: 900; font-size: .68rem; letter-spacing: .16em; }

.punk-roster { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(116px, 162px); gap: 12px;
  margin-top: 24px; padding: 8px 4px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.roster-slot { position: relative; scroll-snap-align: start; padding: 0; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left; overflow: hidden; }
.roster-slot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated;
  filter: saturate(.72) contrast(1.08); transition: filter var(--speed), transform var(--speed); }
.roster-slot span { display: flex; justify-content: space-between; align-items: center; min-height: 38px;
  padding: 7px 9px; font-weight: 900; font-size: .72rem; letter-spacing: .08em; }
.roster-slot small { color: var(--muted); font-size: .58rem; }
.roster-slot:hover img { filter: saturate(1); transform: scale(1.025); }
.roster-slot[aria-selected="true"] { border-color: var(--acid); box-shadow: 0 5px 0 var(--acid); }
.roster-slot[aria-selected="true"]::after { content: "SELECTED"; position: absolute; top: 7px; right: 7px;
  padding: 4px 6px; color: var(--ink); background: var(--acid); font-size: .52rem; font-weight: 1000; }
.roster-empty { margin-top: 24px; min-height: 145px; display: grid; place-content: center; gap: 8px;
  border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.roster-empty strong { color: var(--text); font-size: 1.1rem; }
.holder-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.holder-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--cyan);
  font-size: .75rem; font-weight: 800; text-underline-offset: 4px; }

.selected-stage { margin-top: clamp(30px, 5vw, 70px); }
.punk-hero { min-height: 520px; display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: clamp(30px, 5vw, 80px);
  align-items: center; position: relative; padding: clamp(24px, 4vw, 58px); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden; isolation: isolate; }
.punk-hero::before { content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; opacity: .16;
  background: repeating-linear-gradient(-55deg, transparent 0 18px, var(--acid) 19px 20px); }
.hero-number { position: absolute; right: -2vw; bottom: -8vw; z-index: -1; color: rgba(255,255,255,.035);
  font-family: var(--font-display); font-size: clamp(15rem, 38vw, 38rem); line-height: .7; }
.hero-art-wrap { position: relative; width: min(100%, 470px); justify-self: center; padding: 14px;
  border: 1px solid var(--line-strong); background: var(--ink); transform: rotate(-1.25deg); }
.hero-art-wrap::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(217,255,67,.45); }
.hero-art-wrap img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; }
.frame-corner { position: absolute; z-index: 2; width: 24px; height: 24px; border-color: var(--acid); }
.frame-corner-one { top: 3px; left: 3px; border-top: 4px solid var(--acid); border-left: 4px solid var(--acid); }
.frame-corner-two { right: 3px; bottom: 3px; border-right: 4px solid var(--acid); border-bottom: 4px solid var(--acid); }
.hero-status { position: absolute; right: -10px; bottom: 25px; display: flex; gap: 8px; align-items: center;
  padding: 10px 14px; color: var(--ink); background: var(--acid); font-size: .75rem; letter-spacing: .1em; }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.hero-status { max-width: 95%; font-size: 12px; }
.current-mission { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 24px 0; padding: 24px; border: 1px solid var(--line); background: #10171d; }
.current-mission h3 { margin: 8px 0; font-size: clamp(18px, 2vw, 24px); }
.current-mission p { margin: 0; max-width: 70ch; line-height: 1.6; }
.current-mission[data-tone="active"] { border-left: 4px solid #dfff38; }
.current-mission[data-tone="warning"] { border-left: 4px solid #ff9852; }
.current-mission-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 240px; }
.current-mission-actions button { width: 100%; min-height: 44px; }
@media (max-width: 720px) {
  .current-mission { flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; }
  .current-mission-actions { flex: auto; }
}
.hero-copy { max-width: 720px; }
.hero-copy h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(3.1rem, 7vw, 7.5rem);
  font-weight: 900; line-height: .82; letter-spacing: .01em; }
.hero-copy h2 strong { display: block; color: var(--acid); font-size: 1.12em; }
.hero-copy > p { max-width: 520px; margin: 23px 0; color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line);
  border-left: 1px solid var(--line); }
.hero-stats div { min-width: 0; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats dt, .fund-breakdown dt { margin-bottom: 4px; color: var(--muted); font-size: .59rem; font-weight: 900; letter-spacing: .13em; }
.hero-stats dd, .fund-breakdown dd { margin: 0; font-size: .88rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; }
.hero-stats code { color: var(--cyan); font-size: .76rem; }
.budget-meter { margin-top: 22px; }
.budget-meter > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .68rem; font-weight: 900; }
.budget-meter b { color: var(--acid); }
.meter-track { height: 9px; margin: 9px 0; background: var(--surface-soft); overflow: hidden; }
.meter-track span { display: block; width: 67%; height: 100%; background: var(--acid); }
.budget-meter small { color: var(--muted); }

.broker-tabs { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 14px; border: 1px solid var(--line); }
.broker-tabs button { min-height: 64px; padding: 9px; border: 0; border-right: 1px solid var(--line);
  color: var(--muted); background: var(--surface); cursor: pointer; font-size: .68rem; font-weight: 1000; letter-spacing: .08em; }
.broker-tabs button:last-child { border-right: 0; }
.broker-tabs button span { display: block; margin-bottom: 5px; color: var(--line-strong); font-size: .54rem; }
.broker-tabs button[aria-selected="true"] { color: var(--ink); background: var(--acid); }
.broker-tabs button[aria-selected="true"] span { color: rgba(8,11,15,.6); }
.panel-stack { margin-top: 14px; }
.broker-panel { min-height: 540px; padding: clamp(22px, 4vw, 52px); border: 1px solid var(--line); background: var(--surface); }
.panel-header { margin-bottom: 30px; }
.panel-header h2 { font-size: clamp(2rem, 4.4vw, 4.5rem); }
.panel-header > span:not(.kicker) { color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.intelligence-chip, .custody-chip, .owner-only-chip, .mode-stamp { display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; border: 1px solid var(--line-strong); }
.intelligence-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.talk-mode-control { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(420px, 1.3fr); gap: 18px;
  align-items: center; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ink); }
.talk-mode-control > div { display: grid; gap: 5px; }
.talk-mode-control > div > span { color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.talk-mode-control small { color: var(--muted); font-size: .65rem; line-height: 1.35; }
.talk-mode-control fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  min-width: 0; margin: 0; padding: 0; border: 0; }
.talk-mode-control label { position: relative; min-width: 0; cursor: pointer; }
.talk-mode-control label > input { position: absolute; opacity: 0; }
.talk-mode-control label > span { display: grid; gap: 3px; min-height: 48px; padding: 9px 11px;
  border: 1px solid var(--line-strong); background: var(--surface); }
.talk-mode-control label > input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.talk-mode-control label > input:checked + span { border-color: var(--acid); color: var(--ink); background: var(--acid); }
.talk-mode-control label > input:checked + span small { color: var(--ink); }
.talk-mode-control label b { overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }

.actions-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.actions-layout > * { min-width: 0; }
.action-status { color: var(--muted); line-height: 1.6; }
.action-result { margin: 18px 0; padding: 18px; border-left: 3px solid var(--cyan); background: var(--surface); overflow-wrap: anywhere; }
.action-result[hidden] { display: none; }
.action-result h3 { margin: 0 0 10px; }
.action-result p { white-space: pre-line; line-height: 1.6; }
.feature-help { margin: 0 0 20px; padding: 0 16px 12px; border: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.feature-help > summary { min-height: 44px; padding: 12px 0; color: var(--cyan); cursor: pointer; font-weight: 700; }
.feature-help:not([open]) { padding-bottom: 0; }
.feature-help li + li { margin-top: 8px; }
.feature-help a { display: inline-flex; min-height: 44px; align-items: center; color: var(--cyan); }
@media (max-width: 720px) { .actions-layout { grid-template-columns: minmax(0, 1fr); } .actions-layout .quick-commands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .actions-layout .quick-commands > span { grid-column: 1 / -1; } }
.conversation { min-width: 0; min-height: 230px; max-height: 420px; overflow-y: auto; padding: 20px; border: 1px solid var(--line); background: var(--ink); }
.message { display: flex; gap: 12px; margin-bottom: 15px; }
.message img { flex-shrink: 0; width: 44px; height: 44px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line-strong); }
.message div { min-width: 0; max-width: 680px; padding: 12px 14px; background: var(--surface-raised); }
.message b { color: var(--cyan); font-size: .62rem; letter-spacing: .1em; }
.message p { margin: 5px 0 0; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.owner-message { justify-content: flex-end; }
.owner-message div { background: var(--surface-soft); }
.owner-message b { color: var(--acid); }
.quick-commands { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); }
.quick-commands > span { margin-bottom: 9px; color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.quick-commands button { min-height: 44px; padding: 10px 5px; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); background: transparent; text-align: left; cursor: pointer; font-size: .78rem; font-weight: 800; }
.quick-commands button:hover { color: var(--acid); }
.prompt-library { margin-top: 14px; border: 1px solid var(--line-strong); background: var(--ink); scroll-margin-top: 88px; }
.prompt-library > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.prompt-library > summary { min-height: 48px; padding: 15px; color: var(--acid); cursor: pointer;
  font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.prompt-library > summary > span { margin-left: 10px; color: var(--muted); font-size: .7rem;
  font-weight: 500; letter-spacing: 0; }
.prompt-library-body { display: grid; gap: 12px; padding: 0 16px 16px; min-width: 0; }
.prompt-library-body > label { font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.prompt-library select { width: 100%; min-width: 0; min-height: 48px; padding: 10px;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); font-size: .85rem; }
.prompt-library p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.prompt-example { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line); }
.prompt-example > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.prompt-example h3 { margin: 0; font-size: .95rem; }
.prompt-example header > span { padding: 5px 7px; border: 1px solid var(--line-strong); color: var(--cyan);
  font-size: .6rem; font-weight: 900; letter-spacing: .05em; }
.prompt-example [data-availability="unreleased"] { color: var(--acid); }
.prompt-example blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--acid);
  font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.prompt-example > div { display: flex; gap: 10px; flex-wrap: wrap; }
.prompt-example button { min-height: 44px; }
.prompt-feedback:empty { display: none; }
.chat-composer, .link-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px;
  padding: 10px; border: 1px solid var(--line-strong); background: var(--ink); }
.chat-composer textarea { min-height: 58px; padding: 11px; border: 0; resize: vertical; color: var(--text); background: transparent; }
.chat-composer > div { display: flex; gap: 8px; align-items: flex-end; }
.link-composer { grid-template-columns: minmax(0, 1fr); }
.link-composer label { color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.link-composer > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-width: 0; }
.link-composer input { min-width: 0; width: 100%; }
.link-composer input, .fund-form input, .select-label select { min-height: 48px; padding: 0 13px; border: 1px solid var(--line);
  color: var(--text); background: var(--surface); }
.link-composer button, .fund-form button { border: 0; padding: 0 18px; color: var(--ink); background: var(--cyan); font-weight: 900; cursor: pointer; }
.link-composer button:disabled { cursor: wait; opacity: .72; }
.link-composer p, .fund-form p { margin: 2px 0; color: var(--muted); font-size: .74rem; }
.review-agent-console { margin-top: 14px; padding: 18px; border: 1px solid var(--line-strong); background: var(--ink); }
.review-agent-console > header { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.review-agent-console h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 2rem; }
.review-agent-console > header strong { color: var(--acid); font-size: .72rem; letter-spacing: .1em; }
.review-agent-console dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; }
.review-agent-console dl div { min-width: 0; padding: 12px; border: 1px solid var(--line); }
.review-agent-console dt { color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
.review-agent-console dd { margin: 6px 0 0; color: var(--text); font-size: .72rem; font-weight: 900; }
.review-agent-console > p { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.review-agent-rules { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr));
  margin-top: 14px; border: 1px solid var(--line); }
.review-agent-rules > div { display: grid; gap: 7px; min-height: 70px; padding: 14px; }
.review-agent-rules > div + div { border-left: 1px solid var(--line); }
.review-agent-rules span { color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
.review-agent-rules strong { color: var(--acid); font-size: .86rem; letter-spacing: .02em; }
.review-agent-rules > p { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .66rem; line-height: 1.45; }
.review-agent-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.review-agent-actions button { border: 0; padding: 13px 18px; background: var(--acid); color: var(--ink); font-weight: 950; cursor: pointer; }
.review-agent-actions [data-review-agent-recall] { border: 1px solid var(--warning); color: var(--warning); background: transparent; }
.review-agent-actions [data-review-agent-test] { border: 1px solid var(--cyan); color: var(--cyan); background: transparent; }
.review-agent-actions button:disabled { cursor: not-allowed; }
.review-agent-actions span { color: var(--muted); font-size: .7rem; }
.review-live-mint { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) auto;
  gap: 14px; align-items: center; margin-top: 16px; padding: 16px; border: 1px solid var(--acid);
  background: color-mix(in srgb, var(--acid) 5%, var(--surface)); }
.review-live-mint > div { display: grid; gap: 5px; }
.review-live-mint > div span { color: var(--cyan); font-size: .57rem; font-weight: 900; letter-spacing: .12em; }
.review-live-mint > div strong { font-size: .82rem; }
.review-live-mint > div small, .review-live-mint > p { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.review-live-mint > button { min-height: 48px; padding: 0 17px; border: 0; background: var(--acid);
  color: var(--ink); font-weight: 950; cursor: pointer; }
.review-live-mint > button:disabled { cursor: not-allowed; opacity: .55; }
.review-live-mint > p, .review-live-mint > a { grid-column: 1 / -1; margin: 0; }

.strategy-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 14px; }
.ability-card { padding: 24px; border: 1px solid var(--line); background: var(--ink); }
.ability-card > span, .withdraw-grid article > span, .settings-grid article > span { color: var(--cyan);
  font-size: .61rem; font-weight: 900; letter-spacing: .13em; }
.ability-card h3 { margin: 10px 0 25px; font-family: var(--font-display); font-size: 2rem; }
.taste-row { display: grid; grid-template-columns: 105px 1fr 30px; gap: 10px; align-items: center; margin-top: 13px; font-size: .67rem; }
.taste-row meter { width: 100%; height: 8px; border: 0; }
.taste-row meter::-webkit-meter-bar { background: var(--surface-soft); border: 0; }
.taste-row meter::-webkit-meter-optimum-value { background: var(--acid); }
.taste-row em { color: var(--acid); font-style: normal; text-align: right; }
.taste-row.dim { opacity: .5; }
.limit-card dl { margin: 13px 0 0; }
.limit-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.limit-card dt { color: var(--muted); font-size: .64rem; }
.limit-card dd { margin: 0; color: var(--acid); font-weight: 900; }
.safety-card ul { list-style: none; padding: 0; margin: 16px 0; }
.safety-card li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 900; }
.safety-card li i { margin-right: 9px; color: var(--success); font-style: normal; }
.safety-card small { color: var(--muted); line-height: 1.5; }
.skill-card { grid-column: 1 / -1; }
.skill-card > span b { color: var(--acid); }
.skill-card h3 { margin-bottom: 14px; }
.skill-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 0; margin: 0 0 14px; list-style: none; }
.skill-card li { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--line); }
.skill-card li b { color: var(--text); font-size: .74rem; }
.skill-card li small, .skill-card > small { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.taste-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.taste-tags span { padding: 8px 10px; border: 1px solid var(--line-strong); color: var(--text); font-size: .65rem; }
.taste-tags span[data-avoid] { border-color: var(--warning); color: var(--warning); }
.review-strategy-state { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--cyan); background: rgba(99,224,241,.06); }
.review-strategy-state strong { color: var(--cyan); font-size: .72rem; letter-spacing: .08em; }
.review-strategy-state p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.autonomy-boundary { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--warning); background: rgba(255,198,90,.07); }
.autonomy-boundary strong { color: var(--warning); font-size: .72rem; letter-spacing: .08em; }
.autonomy-boundary p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.agent-account-card { margin-top: 16px; padding: 18px; border: 1px solid var(--line-strong); background: var(--ink); }
.agent-account-card > header { display: flex; justify-content: space-between; gap: 16px; }
.agent-account-card > header strong { color: var(--cyan); font-size: .72rem; letter-spacing: .08em; }
.agent-account-card > header b { color: var(--acid); font-size: .72rem; text-align: right; }
.agent-account-card > p { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.agent-account-card dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 0; }
.agent-account-card dl div { min-width: 0; padding: 12px; border: 1px solid var(--line); }
.agent-account-card dt { color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
.agent-account-card dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: .72rem; font-weight: 900; }
.agent-account-card > button { margin-top: 14px; }

.fund-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.fund-layout > * { min-width: 0; }
.balance-readout { padding: 34px; border-left: 6px solid var(--acid); background: var(--ink); }
.balance-readout span { display: block; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .13em; }
.balance-readout strong { display: inline-block; margin-top: 8px; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7.5rem); line-height: .85; }
.balance-readout em { color: var(--acid); font-size: 1rem; font-style: normal; font-weight: 900; }
.fund-breakdown { margin: 0; }
.fund-breakdown div { display: grid; grid-template-columns: 1fr 1.2fr; padding: 15px; border: 1px solid var(--line); border-bottom: 0; }
.fund-breakdown div:last-child { border-bottom: 1px solid var(--line); }
.fund-breakdown code { color: var(--cyan); }
[data-agent-gas-destination], [data-agent-gas-result] { overflow-wrap: anywhere; }
[data-agent-gas-readiness] { padding: 12px; border-left: 3px solid var(--cyan); }
[data-agent-gas-form] { margin-top: 18px; }
.fund-form { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line); }
.fund-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .62rem; font-weight: 900; }
.fund-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.fund-form input { min-width: 0; width: 100%; }
.transaction-confirm { display: flex !important; gap: 10px; align-items: flex-start; margin: 14px 0 10px !important;
  color: var(--text) !important; font-size: .7rem !important; line-height: 1.45; letter-spacing: 0 !important; }
.transaction-confirm input { width: 18px !important; min-height: 18px !important; margin: 1px 0 0; accent-color: var(--acid); }
.transaction-link { display: inline-flex; min-height: 36px; align-items: center; margin-top: 8px;
  color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }

.wrapped-funding { margin-top: 24px; padding: 24px; border: 1px solid var(--line); background: var(--ink); }
.wrapped-funding > header { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.wrapped-funding h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 2.2rem; }
.wrapped-funding > header a, .collection-recovery a { display: inline-flex; min-height: 40px; align-items: center;
  color: var(--cyan); font-size: .62rem; font-weight: 900; letter-spacing: .09em; }
.wrapped-funding > p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.wrapped-balances { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; }
.wrapped-balances div { padding: 14px; border: 1px solid var(--line); }
.wrapped-balances dt, .collection-assets span { color: var(--muted); font-size: .59rem; font-weight: 900; letter-spacing: .12em; }
.wrapped-balances dd { margin: 6px 0 0; color: var(--acid); font-size: 1.2rem; font-weight: 900; }
.wrapped-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.wrapped-form label { color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.wrapped-form select, .wrapped-form input { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 0 12px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.wrapped-form button { min-height: 48px; padding: 0 18px; border: 0; color: var(--ink); background: var(--cyan); font-weight: 900; cursor: pointer; }
.wrapped-form button:disabled { cursor: wait; }
.wrapped-state { min-height: 20px; margin-bottom: 0 !important; }

.collection-assets { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 12px; margin-bottom: 22px; }
.collection-assets article { min-height: 132px; padding: 18px; border: 1px solid var(--line); background: var(--ink); }
.collection-assets strong { display: block; margin: 9px 0; color: var(--acid); font-size: 1.15rem; }
.collection-assets small { display: block; color: var(--muted); line-height: 1.45; }
.collection-recovery a { margin-top: 8px; }
.exact-nft-form { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); background: var(--ink); }
.exact-nft-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.exact-nft-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.exact-nft-form input { min-height: 48px; padding: 0 13px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.exact-nft-form button { min-height: 48px; padding: 0 18px; border: 0; color: var(--ink); background: var(--cyan); font-weight: 900; cursor: pointer; }
.exact-nft-form p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }
.collection-withdrawal { margin-bottom: 22px; padding: 22px; border: 1px solid var(--acid); background: var(--ink); }
.collection-withdrawal-preview { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.collection-withdrawal-preview img { display: block; width: 112px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.collection-withdrawal-preview h3 { margin: 5px 0; font-family: var(--font-display); font-size: 2rem; }
.collection-withdrawal-preview p, .collection-withdrawal > p { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.collection-withdrawal-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; }
.collection-withdrawal-facts div { min-width: 0; padding: 13px; border: 1px solid var(--line); }
.collection-withdrawal-facts dt { color: var(--muted); font-size: .56rem; font-weight: 900; letter-spacing: .1em; }
.collection-withdrawal-facts dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 800; }
.collection-withdrawal-quantity { display: block; max-width: 260px; color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.collection-withdrawal-quantity input { display: block; width: 100%; min-height: 46px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.collection-withdrawal-actions { display: flex; gap: 10px; margin-top: 14px; }
.collection-withdrawal-actions button { min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); color: var(--text); background: transparent; font-weight: 900; cursor: pointer; }
.collection-withdrawal-actions .primary-button { border: 0; color: var(--ink); background: var(--acid); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.panel-empty { grid-column: 1 / -1; min-height: 140px; display: grid; place-items: center; margin: 0;
  padding: 24px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.gallery-item { border: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-item div { padding: 12px; }
.gallery-item span { color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.gallery-item h3 { margin: 5px 0 8px; font-size: .9rem; }
.gallery-item p { margin: 0; color: var(--muted); font-size: .7rem; }
.gallery-item .gallery-actions { display: flex; gap: 8px; padding: 12px 0 0; }
.gallery-actions a, .gallery-actions button { display: inline-flex; min-height: 36px; padding: 0 10px; align-items: center;
  border: 1px solid var(--line-strong); color: var(--text); font-size: .59rem; font-weight: 900; }
.gallery-actions button { border-color: var(--acid); color: var(--acid); background: transparent; cursor: pointer; }

.mission-monitor { margin-bottom: 28px; padding: 24px; border: 1px solid var(--acid); background: var(--ink); }
.mission-monitor > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.mission-monitor h3 { margin: 5px 0 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 3rem); }
.mission-monitor > header > b { color: var(--acid); font-size: .78rem; letter-spacing: .1em; }
.mission-monitor > p:not(.mission-monitor-note) { margin: 20px 0; color: var(--cyan); font-size: .82rem; font-weight: 900; }
.mission-monitor dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.mission-monitor dl div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.mission-monitor dl div:last-child { border-right: 0; }
.mission-monitor dt { color: var(--muted); font-size: .54rem; font-weight: 900; letter-spacing: .1em; }
.mission-monitor dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: .8rem; font-weight: 900; }
.mission-monitor-note { margin: 14px 0 0; color: var(--muted); font-size: .68rem; }
.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.activity-feed time { color: var(--muted); font-size: .66rem; }
.activity-feed h3 { margin: 0 0 6px; font-size: 1rem; }
.activity-feed p { margin: 0; color: var(--muted); font-size: .8rem; }
.activity-feed b { align-self: start; color: var(--acid); font-size: .76rem; }

.withdraw-grid, .settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.withdraw-grid article, .settings-grid article { padding: 24px; border: 1px solid var(--line); background: var(--ink); }
.withdraw-grid h3 { margin: 10px 0; font-family: var(--font-display); font-size: 1.8rem; }
.withdraw-grid p, .settings-grid p { min-height: 52px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.withdraw-grid a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 15px; color: var(--acid);
  font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.link-findings { margin-top: 16px; min-width: 0; }
.link-findings h3 { font-size: .9rem; color: var(--cyan); }
.link-findings dl { margin: 12px 0; }
.link-findings dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-findings dt { color: var(--muted); font-size: .8rem; }
.link-findings dd { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.link-findings a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-weight: 800; }
.settings-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.settings-grid article, .settings-grid .select-label { min-width: 0; }
.settings-grid select { width: 100%; min-width: 0; }
.settings-grid fieldset { display: grid; gap: 9px; padding: 0; margin: 18px 0 0; border: 0; }
.settings-grid fieldset label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 13px;
  border: 1px solid var(--line); cursor: pointer; }
.settings-grid fieldset input { grid-row: span 2; accent-color: var(--acid); }
.settings-grid small { color: var(--muted); }
.mode-locked { opacity: .5; }
.select-label { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .62rem; font-weight: 900; }

.flywheel { margin-top: clamp(35px, 6vw, 90px); padding: clamp(26px, 4vw, 52px); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.flywheel header { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.flywheel h2 { max-width: 800px; font-size: clamp(2.2rem, 5vw, 5.2rem); text-align: right; }
.flywheel ol { display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; padding: 0; margin: 34px 0 20px; }
.flywheel li { min-height: 90px; padding: 12px; border: 1px solid var(--line); border-right: 0; }
.flywheel li:last-child { border-right: 1px solid var(--line); }
.flywheel li b { display: block; margin-bottom: 24px; color: var(--line-strong); font-size: .6rem; }
.flywheel li span { font-size: .64rem; font-weight: 900; }
.flywheel li:nth-child(1), .flywheel li:nth-child(6) { color: var(--ink); background: var(--acid); }
.flywheel p { color: var(--muted); }

.confirmation-dialog { width: min(680px, calc(100% - 24px)); padding: clamp(24px, 5vw, 48px); border: 1px solid var(--acid);
  color: var(--text); background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.confirmation-dialog::backdrop { background: rgba(4,6,8,.82); backdrop-filter: blur(5px); }
.confirmation-dialog h2 { margin: 8px 0 26px; font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5rem); line-height: .9; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; color: var(--muted);
  background: transparent; font-size: 2rem; cursor: pointer; }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.confirmation-grid div { min-width: 0; overflow-wrap: anywhere; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirmation-grid span { display: block; color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.confirmation-grid b { display: block; margin-top: 4px; }
.confirmation-note { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

@media (max-width: 980px) {
  .v2-header { grid-template-columns: 1fr auto; }
  .header-state { grid-column: 1 / -1; grid-row: 2; max-width: none; text-align: left; }
  .punk-hero { grid-template-columns: minmax(250px, 380px) 1fr; }
  .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-card { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .flywheel ol { grid-template-columns: repeat(4, 1fr); }
  .flywheel li, .flywheel li:last-child { border: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .v2-header { position: relative; padding: 10px 14px; gap: 8px; }
  .v2-brand b, .header-state, .wallet-actions .text-button { display: none; }
  .v2-brand span { font-size: .7rem; }
  .v2-brand img { width: 34px; height: 34px; }
  .wallet-actions .primary-button { min-height: 44px; padding: 0 12px; font-size: .68rem; }
  .preview-ribbon { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 2px; }
  .broker-shell { padding: 20px 14px; }
  .section-heading { align-items: start; }
  .section-heading h1 { max-width: 260px; }
  .punk-roster { grid-auto-columns: 108px; margin-top: 18px; }
  .selected-stage { margin-top: 28px; }
  .punk-hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 18px; }
  .hero-art-wrap { width: min(78vw, 380px); }
  .hero-copy h2 { font-size: clamp(3.3rem, 18vw, 6.5rem); }
  .hero-copy > p { margin: 16px 0; font-size: .86rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { padding: 10px; }
  .hero-stats dd { font-size: .74rem; }
  .broker-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; grid-template-columns: repeat(7, minmax(68px, 1fr));
    overflow-x: auto; margin: 0; border-left: 0; border-right: 0; background: var(--surface); }
  .broker-tabs button { min-height: 64px; min-width: 68px; font-size: .54rem; }
  .broker-panel { min-height: 0; padding: 20px 14px; }
  .panel-header { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .panel-header h2 { font-size: 2.6rem; }
  .talk-mode-control { grid-template-columns: 1fr; }
  .talk-mode-control fieldset { grid-template-columns: 1fr; }
  .talk-layout { grid-template-columns: minmax(0, 1fr); }
  .link-findings dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .link-composer > div { grid-template-columns: minmax(0, 1fr); }
  .link-composer button { min-height: 48px; }
  .quick-commands { display: grid; grid-template-columns: repeat(2, 1fr); }
  .quick-commands > span { grid-column: 1 / -1; }
  .quick-commands button { padding: 10px; border-right: 1px solid var(--line); }
  .chat-composer { grid-template-columns: 1fr; }
  .chat-composer > div { justify-content: space-between; }
  .strategy-grid, .fund-layout, .settings-grid, .collection-assets { grid-template-columns: minmax(0, 1fr); }
  .agent-account-card dl { grid-template-columns: 1fr 1fr; }
  .skill-card ul { grid-template-columns: 1fr; }
  .review-agent-console dl { grid-template-columns: repeat(2, 1fr); }
  .review-agent-rules { grid-template-columns: 1fr 1fr; }
  .review-agent-actions { align-items: stretch; flex-direction: column; }
  .review-live-mint { grid-template-columns: 1fr; }
  .review-live-mint > p, .review-live-mint > a { grid-column: auto; }
  .safety-card, .fund-form { grid-column: auto; }
  .fund-layout { grid-template-columns: minmax(0, 1fr); }
  .fund-form > div { grid-template-columns: minmax(0, 1fr); }
  .fund-form button { min-height: 48px; }
  .balance-readout { padding: 24px; }
  .balance-readout strong { max-width: 100%; font-size: clamp(2.75rem, 14vw, 4rem); overflow-wrap: anywhere; }
  .wrapped-funding { padding: 18px; }
  .wrapped-funding > header { align-items: start; flex-direction: column; }
  .wrapped-form { grid-template-columns: 1fr; }
  .exact-nft-form > div { grid-template-columns: 1fr; }
  .collection-withdrawal-preview { grid-template-columns: 82px 1fr; }
  .collection-withdrawal-preview img { width: 82px; }
  .collection-withdrawal-facts { grid-template-columns: 1fr; }
  .collection-withdrawal-actions { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-monitor { padding: 18px; }
  .mission-monitor > header { align-items: start; flex-direction: column; }
  .mission-monitor dl { grid-template-columns: 1fr 1fr; }
  .mission-monitor dl div { border-bottom: 1px solid var(--line); }
  .mission-monitor dl div:nth-child(2n) { border-right: 0; }
  .mission-monitor dl div:nth-last-child(-n + 2) { border-bottom: 0; }
  .activity-feed li { grid-template-columns: 72px 1fr; }
  .activity-feed li > b { grid-column: 2; }
  .flywheel header { align-items: start; flex-direction: column; }
  .flywheel h2 { text-align: left; }
  .flywheel ol { grid-template-columns: repeat(2, 1fr); }
  .confirmation-grid { grid-template-columns: 1fr; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important;
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
.directed-paid-panel { margin-top:24px; padding:20px; border:1px solid var(--acid,#dfff3f); overflow-wrap:anywhere; }
.directed-paid-panel h3 { margin:0 0 16px; }
.directed-paid-panel p { line-height:1.6; }
.directed-paid-panel button { margin:6px 8px 6px 0; max-width:100%; white-space:normal; }
.directed-paid-panel label { display:grid; gap:8px; margin:16px 0; }
.directed-paid-panel input { width:100%; min-width:0; padding:12px; color:inherit; background:#0b1117; border:1px solid #536277; }
.directed-paid-panel pre { max-height:280px; overflow:auto; white-space:pre-wrap; font-size:12px; }
.directed-paid-panel a { display:inline-block; margin:8px 0; color:var(--acid,#dfff3f); }
.directed-paid-panel a.filter-button { display:inline-flex; align-items:center; justify-content:center; margin-right:8px; text-decoration:none; }

.agent-recovery-panel { margin-top: 28px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--acid); scroll-margin: 100px; overflow-wrap: anywhere; }
.agent-recovery-panel h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.agent-recovery-panel p { color: var(--muted); line-height: 1.6; }
.agent-recovery-panel [role="status"] { color: var(--text); padding: 12px; border-left: 3px solid var(--acid); background: var(--surface); }
.agent-recovery-fields, .agent-recovery-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agent-recovery-panel label { display: grid; gap: 8px; margin: 14px 0; font-size: .75rem; }
.agent-recovery-panel input:not([type="checkbox"]), .agent-recovery-panel select { min-height: 44px; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.agent-recovery-panel .transaction-confirm { display: flex; align-items: flex-start; gap: 12px; font-size: .82rem; line-height: 1.5; }
.agent-recovery-panel input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--acid); }
.agent-recovery-facts div { padding: 12px; min-width: 0; border: 1px solid var(--line); }
.agent-recovery-facts dt { color: var(--muted); font-size: .65rem; }
.agent-recovery-facts dd { margin: 8px 0 0; font-size: .82rem; }
.agent-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.agent-recovery-actions button { min-height: 44px; max-width: 100%; white-space: normal; }
.agent-recovery-panel a { display: inline-block; min-height: 44px; color: var(--acid); }
.agent-recovery-panel :focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.agent-recovery-panel [hidden] { display: none; }
@media (max-width: 720px) {
  .agent-recovery-fields, .agent-recovery-facts { grid-template-columns: 1fr; gap: 8px; }
  .agent-recovery-actions { flex-direction: column; }
  .agent-recovery-panel { scroll-margin: 20px; }
}

/* Collection state is text, separate from verified NFT cards. */
.collection-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.collection-header-actions button { min-height: 44px; }
.collection-status { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.collection-status:empty { display: none; }
.gallery-grid > .panel-empty { grid-column: 1 / -1; min-height: 100px; }
.gallery-item .gallery-actions { flex-wrap: wrap; }
.gallery-actions a, .gallery-actions button { min-height: 44px; max-width: 100%; padding: 8px 10px; overflow-wrap: anywhere; }

.collection-recovery a { display: inline-block; margin: 8px 12px 0 0; }
.broker-welcome { margin: 0 0 2rem; padding: clamp(1rem, 3vw, 2rem); background: var(--panel, #10161d); border-left: 4px solid #d7fa39; }
.broker-welcome h2 { margin: .5rem 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.broker-welcome p, .broker-welcome li { max-width: 72ch; line-height: 1.6; }
.broker-welcome ol { padding-left: 1.4rem; }
.broker-welcome li + li { margin-top: .6rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.welcome-actions button { min-height: 44px; white-space: normal; }
[data-provider-status] { line-height: 1.6; }
@media (max-width: 480px) { .welcome-actions button { width: 100%; } }

.gas-funding-recovery { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gas-funding-recovery p { line-height: 1.6; }
[data-funding-recover] { display: grid; gap: .75rem; margin-top: 1rem; }
[data-funding-recover] label { display: grid; gap: .5rem; line-height: 1.5; }
[data-funding-recover] input { min-height: 48px; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
[data-funding-recover] button { min-height: 48px; white-space: normal; }
.talk-mode-options { margin-bottom: 1rem; }
.talk-mode-options > summary, .forge-research-examples > summary { min-height: 48px; padding: 14px 0; cursor: pointer; color: var(--cyan); font-weight: 800; line-height: 1.4; }
.forge-research-examples { margin-top: 1.5rem; }
.hero-stats dd, [data-available-budget], [data-punk-reserve] { overflow-wrap: anywhere; }
.broker-panel, .broker-welcome, .roster-stage { scroll-margin-top: 112px; }
.activity-feed li.panel-empty { display: block; width: 100%; line-height: 1.7; }
.activity-feed li.panel-empty button { margin-top: .75rem; min-height: 44px; }
@media (max-width: 720px) { .broker-panel, .broker-welcome, .roster-stage { scroll-margin-top: 20px; } }
.balance-readout { min-width: 0; }
.balance-readout strong { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2rem, 5vw, 5rem); line-height: 1.1; }
.fund-breakdown div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.fund-breakdown dd, .wrapped-balances dd, .collection-assets strong { min-width: 0; overflow-wrap: anywhere; }
.wrapped-balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wrapped-balances > div { min-width: 0; }
.fund-breakdown dd, .hero-stats dd { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
[data-fund-available], [data-available-budget] { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (max-width: 720px) { .talk-panel > .quick-commands { margin-top: 1rem; } }
.confirmation-dialog > .kicker { display: block; padding-right: 36px; }
@media (max-width: 720px) {
  .broker-panel input:not([type="checkbox"]):not([type="radio"]), .broker-panel select, .broker-panel textarea { font-size: 16px; }
}

.agent-options { margin: 1.25rem 0; padding: 1.25rem; border: 1px solid var(--line, #34404a); }
.agent-options form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.agent-options h3, .agent-options p, .agent-options button { grid-column: 1 / -1; }
.agent-options label { display: grid; gap: .5rem; min-width: 0; }
.agent-options select, .agent-options input { width: 100%; min-width: 0; min-height: 44px; color: #f3f4ee; background: #0b1117; border: 1px solid #536370; padding: .65rem; font: inherit; }
[data-chat-form][hidden], .prompt-library[hidden] { display: none !important; }
@media(max-width:600px) { .agent-options form { grid-template-columns: minmax(0,1fr); } }
.swarm-panel { padding: 1.25rem; border: 1px solid var(--line); overflow-wrap: anywhere; }
.swarm-panel p { line-height: 1.6; }
.swarm-panel form { display: grid; gap: 1rem; }
.swarm-panel fieldset { display: flex; flex-wrap: wrap; gap: .5rem 1rem; max-height: 260px; overflow: auto; }
.swarm-panel label { display: flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 0; flex-wrap: wrap; }
.swarm-panel select, .swarm-panel input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 44px; padding: .65rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); font: inherit; }
.swarm-panel input[type=checkbox] { width: 22px; height: 22px; }
.swarm-panel article { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.swarm-panel article strong { flex: 1 0 100%; }
.swarm-panel button { min-height: 44px; max-width: 100%; white-space: normal; }
.swarm-panel [hidden] { display: none; }

.mission-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--acid, #dcfa35); color: #080d12; font: 800 12px/1 sans-serif; }
.mission-badge[hidden], .mission-updates[hidden] { display: none; }
.roster-slot { position: relative; }
.roster-mission-badge { position: absolute; top: 8px; right: 8px; border: 2px solid #080d12; }
.mission-updates { margin: 0 0 1.5rem; padding: .5rem 1rem; border-left: 3px solid var(--cyan); background: var(--panel); }
.mission-updates summary { cursor: pointer; min-height: 44px; padding: .65rem 0; font-weight: 800; }
.mission-updates p { line-height: 1.6; }
.mission-updates ul { list-style: none; padding: 0; max-height: 420px; overflow: auto; }
.mission-updates li { display: grid; gap: .65rem; padding: 1rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.mission-updates li p { margin: 0; }
.mission-updates li small { color: var(--muted); }
.mission-updates button { min-height: 44px; max-width: 100%; white-space: normal; justify-self: start; }

/* Verified setup status stays useful without another polling loop. */
.activation-guide { padding: 20px; border: 1px solid var(--line, #34414e); margin: 16px 0; background: #10171d; }
.activation-heading { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.activation-heading strong { color: #e1ff46; }
.activation-guide[data-tone="warning"] .activation-heading strong { color: #ffd08a; }
.activation-guide details summary { cursor: pointer; color: #64e6fa; padding: 10px 0; }
.activation-guide ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.activation-guide li { padding: 16px; border-top: 3px solid #34414e; min-width: 0; }
.activation-guide li[data-status="COMPLETE"] { border-color: #c9ee3e; }
.activation-guide li[data-status="CURRENT"] { border-color: #64e6fa; }
.activation-guide li small, .activation-guide li strong { display: block; }
.activation-guide li small { margin-bottom: 10px; color: #a4b3c3; }
.activation-guide li p { font-size: .9rem; line-height: 1.5; }
.activation-guide button { white-space: normal; min-height: 44px; }
.roster-slot .roster-activation { display: block; padding: 0 7px 8px; font-size: 9px; letter-spacing: .04em; color: #a4b3c3; text-align: left; }
.roster-slot .roster-activation[data-tone="active"] { color: #dfff40; }
[data-swarm-funding-context] { border-left: 3px solid #64e6fa; padding: 12px 16px; margin: 16px 0; overflow-wrap: anywhere; }

/* Owner-controlled Swarm gas wallet: same holder controls and touch sizing. */
.swarm-wallet { margin-block: 24px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); }
.swarm-wallet p, .swarm-wallet dd { overflow-wrap: anywhere; }
.swarm-wallet label { display: block; margin-block: 14px 8px; }
.swarm-wallet input:not([type="checkbox"]) { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 12px; color: var(--text); background: var(--ink); border: 1px solid var(--line); }
.swarm-wallet input[type="checkbox"] { width: 20px; height: 20px; margin-right: 10px; vertical-align: middle; accent-color: var(--acid); }
.swarm-wallet fieldset { margin-top: 24px; padding: 14px; border: 1px solid var(--line); }
.swarm-wallet fieldset label { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 16px 4px 0; }
.swarm-wallet button { min-height: 48px; margin: 8px 8px 8px 0; white-space: normal; }
.swarm-wallet [data-swarm-wallet-review] { margin-top: 20px; padding: 16px; border: 1px solid var(--acid); }
.swarm-wallet dt { color: var(--muted); font-size: .75rem; margin-top: 14px; }
.swarm-wallet dd { margin: 4px 0 0; font-weight: 700; }
.current-mission .recall-explanation { margin-top: 12px; font-size: .85rem; color: #b4bfcb; }
.current-mission .recall-result { margin-top: 12px; color: #64e6fa; overflow-wrap: anywhere; }
.current-mission .recall-result:empty { display: none; }
.current-mission-actions .recall-button { border-color: #ff9852; }

/* Account creation is a separate, bounded step inside funding. */
[data-agent-creation-panel] { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line, #34424e); overflow-wrap: anywhere; }
[data-agent-creation-panel] [hidden] { display: none !important; }
[data-agent-creation-panel] h3 { font: 700 1.1rem/1.4 var(--font-body, sans-serif); }
[data-agent-creation-panel] button { min-height: 44px; max-width: 100%; white-space: normal; margin: .3rem .3rem .3rem 0; }
[data-agent-creation-panel] dl { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 2fr); gap: .5rem; }
[data-agent-creation-panel] dd { margin: 0; }
[data-agent-creation-panel] label { display: block; margin: 1rem 0; }
[data-agent-creation-panel] input[type=text] { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: .7rem; background: #080d10; color: #f3f5ee; border: 1px solid #596878; font-size: 16px; }
[data-agent-creation-panel] input[type=checkbox] { width: 20px; height: 20px; margin-right: .5rem; vertical-align: middle; accent-color: #dcff46; }
@media (max-width: 420px) { [data-agent-creation-panel] dl { grid-template-columns: minmax(0, 1fr); } }

/* Guided holder setup: one persistent selection with explicit wallet reviews. */
.swarm-setup { padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); overflow-wrap: anywhere; }
.swarm-setup [hidden] { display: none !important; }
.swarm-setup h3 { font-size: 1.2rem; }
.swarm-setup [data-swarm-setup-steps] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 8px; padding: 0; margin: 24px 0; }
.swarm-setup [data-swarm-setup-steps] li { padding: 10px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.swarm-setup [aria-current=step] { color: var(--acid) !important; border-bottom-color: var(--acid) !important; }
.swarm-setup label { display: block; margin: 12px 0; }
.swarm-setup fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; border: 1px solid var(--line); }
.swarm-setup fieldset label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; }
.swarm-setup input:not([type=checkbox]), .swarm-setup select { display: block; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; background: var(--bg, #080d10); color: var(--text, #f3f5ee); padding: 10px; border: 1px solid var(--line); font-size: 16px; }
.swarm-setup input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--acid); }
.swarm-setup button { min-height: 44px; max-width: 100%; white-space: normal; margin: 6px 6px 6px 0; }
.swarm-setup [data-swarm-setup-mission] { border-top: 1px solid var(--line); padding: 16px 0; }
.swarm-setup [data-swarm-setup-mission] strong { display: block; margin-bottom: 8px; }
.swarm-setup [data-swarm-setup-status] { color: var(--cyan, #64e6fa); }
.swarm-setup [data-swarm-setup-navigation] { margin-top: 16px; }
@media (max-width: 600px) { .swarm-setup [data-swarm-setup-steps] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
