.pecu-expand-address { display: inline; cursor: text; overflow-wrap: anywhere; }
.pecu-address-expanded { display: none; }
.pecu-expand-address:hover > .pecu-address-short,
.pecu-expand-address:focus > .pecu-address-short { display: none; }
.pecu-expand-address:hover > .pecu-address-expanded,
.pecu-expand-address:focus > .pecu-address-expanded { display: inline; }
.pecu-expand-address:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 2px; }

/* Both Pecu products consume the same amber-minimal tokens and clay material. */
html:has(.pecu-app), body:has(.pecu-app) { background: var(--background); }
.pecu { font-family: var(--font-sans); color: var(--foreground); background: var(--background); }
.pecu .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pecu a { color: var(--accent-foreground); text-underline-offset: 4px; }
.pecu code { font: .9em var(--font-mono); background: var(--secondary); border-radius: var(--radius); padding: 2px 6px; color: var(--foreground); }
.pecu button:focus-visible, .pecu a:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.pecu textarea:focus-visible { outline: none; }
.pecu .clay { background: var(--card); border-radius: var(--clay-radius-large); box-shadow: var(--clay-shadow); }

/* App frame: an optional thread rail on the left, then the conversation. */
.pecu-app { position: relative; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
.pecu-app:has(> .pecu-rail):not([data-sidebar-collapsed="true"]) { grid-template-columns: 272px minmax(0, 1fr); }
.pecu-rail { position: absolute; top: 0; left: 0; width: 272px; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 22px 18px 18px; background: var(--secondary); border-right: 1px solid var(--border); overflow: hidden; }
.pecu-app:has(> .pecu-rail):not([data-sidebar-collapsed="true"]) > .pecu-main { grid-column: 2; }
.pecu-sidebar-toggle { flex-shrink: 0; }
.pecu-rail .pecu-wordmark { padding: 0 6px; }
.pecu-app:not([data-sidebar-collapsed="true"]) > .pecu-rail + .pecu-main .pecu-topbar .pecu-wordmark { display: none; }
.pecu-main { display: flex; flex-direction: column; min-width: 0; height: 100dvh; overflow: hidden; }
.pecu-topbar { display: flex; align-items: center; gap: 22px; width: 100%; padding: 18px 28px 6px; }
.pecu-wordmark { color: var(--accent-foreground); font: 750 22px var(--font-mono); letter-spacing: -1px; text-decoration: none; }
.pecu-nav { display: flex; align-items: center; gap: 20px; }
.pecu-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--foreground); text-decoration: none; }
.pecu-nav a[aria-current], .pecu-nav a:hover { color: var(--accent-foreground); }
.pecu-auth { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pecu-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: var(--clay-radius-pill); background: var(--card); color: var(--foreground); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: var(--clay-shadow-sm); cursor: pointer; }
.pecu-chip-warn { background: var(--accent); color: var(--accent-foreground); }
.pecu-wallet { gap: 0; padding: 0; flex-shrink: 0; }
.pecu-wallet-address { display: flex; align-items: center; min-height: 44px; padding: 0 4px 0 12px; white-space: nowrap; }
.pecu-wallet-copy, .pecu-wallet-qr-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; color: var(--foreground); background: transparent; cursor: pointer; }
.pecu-wallet-copy:hover { background: var(--secondary); }
.pecu-wallet-qr { z-index: 60; width: 248px; max-width: calc(100vw - 24px); padding: 32px 20px 20px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--clay-shadow-sm); }
.pecu-wallet-qr-close { position: absolute; top: 0; right: 0; }
.pecu-wallet-qr svg[role="img"] { display: block; width: 100%; height: auto; background: var(--card); }
.pecu-wallet-full-address { margin-top: 10px; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; user-select: all; }
.pecu-wallet-qr p { margin: 10px 0 0; font-size: 13px; }

.pecu-wallet-address { border-radius: var(--clay-radius-pill) 0 0 var(--clay-radius-pill); transition: background-color 160ms ease; }
.pecu.pecu-pnl-card { z-index: 60; width: 296px; max-width: calc(100vw - 24px); padding: 16px 16px 14px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-pnl-card[data-state="open"] { animation: pecu-pnl-card-in var(--fast) var(--ease-out); }
.pecu-pnl-card[data-state="closed"] { animation: pecu-pnl-fade-out 120ms var(--ease-out); }
.pecu-pnl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 0 0; font-size: 13px; color: var(--muted-foreground); }
.pecu .pecu-pnl-expand { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted-foreground); }
.pecu .pecu-pnl-card-total { margin: 2px 0 0; color: var(--foreground); font: 650 28px/1.15 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pecu-pnl-card-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 12px 0 0; font-size: 13px; }
.pecu-pnl-card-split dt { color: var(--muted-foreground); }
.pecu-pnl-card-split dd { margin: 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pecu-pnl-card-movers { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); list-style: none; font-size: 13px; }
.pecu-pnl-card-movers li { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.pecu-pnl-card-movers li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pecu .pecu-pnl-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.pecu .pecu-pnl-source { margin: 12px 0 0; font-size: 12px; color: var(--muted-foreground); }
.pecu-pnl-error { margin-top: 12px; }
.pecu-pnl-skeleton { display: grid; gap: 8px; margin-top: 8px; }
.pecu-pnl-skeleton > span:not(.sr-only) { display: block; width: 70%; height: 14px; border-radius: 7px; background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.pecu-pnl-skeleton > .is-total { width: 55%; height: 30px; }

.pecu.pecu-pnl-page { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; background: var(--background); outline: none; }
.pecu-pnl-page[data-state="open"] { animation: pecu-pnl-page-in 240ms var(--ease-out); }
.pecu-pnl-page[data-state="closed"] { animation: pecu-pnl-page-out var(--fast) var(--ease-out); }
.pecu-pnl-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px max(24px, calc((100% - 940px) / 2 + 24px)) 12px; background: var(--background); }
.pecu .pecu-pnl-back { justify-content: center; width: 44px; height: 44px; padding: 0; }
.pecu-view-toggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--clay-radius-pill); background: var(--secondary); box-shadow: var(--clay-shadow-inset); }
.pecu .pecu-view-toggle button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: color var(--fast) ease, background-color var(--fast) ease; }
.pecu .pecu-view-toggle button[aria-pressed="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--clay-shadow-sm); }
.pecu .pecu-view-toggle button:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.pecu-wallet-switch-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pecu .pecu-wallet-switch-option { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--clay-radius-control); background: transparent; color: var(--foreground); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color var(--fast) ease; }
.pecu .pecu-wallet-switch-option[aria-pressed="true"] { background: var(--secondary); }
.pecu .pecu-wallet-switch-option[aria-pressed="true"] svg { color: var(--accent-foreground); }
.pecu .pecu-wallet-switch-option:disabled { cursor: default; opacity: .6; }
.pecu-wallet-switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pecu-wallet-switch-address { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.pecu-wallet-switch-actions { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--border); }
.pecu .pecu-wallet-switch-actions .pecu-button { min-height: 44px; font-size: 14px; font-weight: 600; }
.pecu-pnl-periods { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--clay-radius-pill); background: var(--secondary); box-shadow: var(--clay-shadow-inset); }
.pecu .pecu-pnl-periods button { min-width: 52px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--clay-radius-pill); background: transparent; color: var(--muted-foreground); font-size: 13px; font-weight: 650; cursor: pointer; transition: color var(--fast) ease, background-color var(--fast) ease; }
.pecu .pecu-pnl-periods button[aria-pressed="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--clay-shadow-sm); }
.pecu-pnl-body { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 940px; margin: 0 auto; padding: 8px 24px 48px; }
.pecu-pnl-heading h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.pecu-pnl-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }
.pecu-pnl-heading a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.pecu-pnl-hero { display: grid; gap: 6px; }
.pecu .pecu-pnl-hero-label { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.pecu .pecu-pnl-total { margin: 0; color: var(--foreground); font: 650 clamp(40px, 7vw, 64px)/1.04 var(--font-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pecu .pecu-pnl-loss { color: color-mix(in oklch, var(--destructive) 78%, var(--foreground)); }
.pecu-pnl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; border-radius: var(--clay-radius-control); background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.pecu-pnl-split > div { display: grid; gap: 4px; min-width: 0; padding: 14px 16px; }
.pecu-pnl-split > div + div { border-left: 1px solid var(--border); }
.pecu-pnl-split dt { font-size: 13px; color: var(--muted-foreground); }
.pecu-pnl-split dd { margin: 0; font: 600 clamp(16px, 2.4vw, 20px) var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pecu .pecu-pnl-hero .pecu-pnl-note { margin-top: 6px; }
.pecu-pnl-chart { height: 240px; min-width: 0; padding: 16px 12px 8px 0; border-radius: var(--clay-radius-surface); background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-pnl-table-wrap { overflow-x: auto; }
.pecu-pnl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pecu-pnl-table thead th { padding: 0 12px 10px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); text-align: right; }
.pecu-pnl-table tbody th, .pecu-pnl-table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.pecu-pnl-table td { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pecu-pnl-table :is(thead th, tbody th):first-child { padding-left: 0; text-align: left; }
.pecu-pnl-table :is(thead th, td):last-child { padding-right: 0; }
.pecu-pnl-table td:last-child > span:first-child { font-weight: 600; }
.pecu-pnl-parts { display: none; }
.pecu-pnl-token { display: grid; gap: 2px; font-weight: 400; }
.pecu-pnl-token strong { font-weight: 600; }
.pecu-pnl-token .mono { font-size: 12px; color: var(--muted-foreground); }
.pecu .pecu-pnl-more { align-self: center; }
.pecu .pecu-pnl-body > .pecu-pnl-source { margin: 0; }
.pecu-pnl-skeleton.is-page { gap: 12px; margin: 0; }
.pecu-pnl-skeleton.is-page > span:first-child { width: 200px; }
.pecu-pnl-skeleton.is-page > .is-total { width: min(360px, 80%); height: 56px; border-radius: 12px; }
.pecu-pnl-skeleton.is-page > .is-split { width: 100%; height: 72px; border-radius: var(--clay-radius-control); }
.pecu-pnl-skeleton.is-page > .is-chart { width: 100%; height: 240px; margin-top: 16px; border-radius: var(--clay-radius-surface); }
@keyframes pecu-pnl-card-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pecu-pnl-page-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pecu-pnl-page-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes pecu-pnl-fade-out { to { opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .pecu-wallet-address:hover, .pecu .pecu-pnl-expand:hover { background: var(--secondary); }
  .pecu .pecu-pnl-periods button[aria-pressed="false"]:hover { color: var(--foreground); }
  .pecu .pecu-view-toggle button[aria-pressed="false"]:hover { color: var(--foreground); }
  .pecu .pecu-wallet-switch-option:hover:not(:disabled) { background: var(--secondary); }
}
@media (max-width: 760px) {
  .pecu-pnl-bar { padding: 14px 16px 10px; }
  .pecu-pnl-body { gap: 24px; padding: 4px 16px 40px; }
  .pecu .pecu-pnl-periods button { min-width: 0; padding: 0 10px; }
  .pecu-pnl-chart { height: 200px; }
}
@media (max-width: 600px) {
  .pecu-pnl-table .is-part { display: none; }
  .pecu-pnl-parts { display: grid; gap: 2px; margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }
}

/* Account menu: the signed-in person, Profile and account actions. */
.pecu-account-trigger { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pecu-account-trigger:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.pecu-avatar-circle { display: grid; place-items: center; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-weight: 700; box-shadow: var(--clay-shadow-sm); transition: box-shadow var(--fast) ease; }
.pecu-avatar-circle.is-small { width: 36px; height: 36px; font-size: 13px; }
.pecu-avatar-circle.is-large { width: 48px; height: 48px; font-size: 16px; }
.pecu-avatar-circle.is-profile { width: 64px; height: 64px; font-size: 22px; }
.pecu-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.pecu-account-trigger[data-state="open"] .pecu-avatar-circle { box-shadow: var(--clay-shadow-sm), var(--clay-focus); }
.pecu.pecu-account-menu { z-index: 60; display: grid; gap: 6px; width: 296px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 22px; background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-account-menu[data-state="open"] { animation: pecu-pnl-card-in var(--fast) var(--ease-out); }
.pecu-account-menu[data-state="closed"] { animation: pecu-pnl-fade-out 120ms var(--ease-out); }
.pecu-account-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.pecu-account-who { display: grid; gap: 2px; min-width: 0; }
.pecu .pecu-account-name, .pecu .pecu-account-handle { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pecu .pecu-account-name { font-size: 15px; font-weight: 650; }
.pecu .pecu-account-handle { font-size: 13px; color: var(--muted-foreground); }
.pecu-account-group { display: grid; gap: 2px; }
.pecu .pecu-account-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--clay-radius-control); color: var(--foreground); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; outline: none; user-select: none; }
.pecu-account-item > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted-foreground); }
.pecu .pecu-account-item[data-highlighted] { background: var(--secondary); }
.pecu .pecu-account-item:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.pecu .pecu-account-item[aria-current="page"], .pecu .pecu-account-item[aria-current="page"] > svg { color: var(--accent-foreground); }
.pecu-account-separator { height: 1px; margin: 2px 12px; background: var(--border); }
@keyframes pecu-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pecu-account-menu[data-state="open"] { animation-name: pecu-fade-in; }
  .pecu-avatar-circle { transition: none; }
}

/* Conversation column */
.pecu-chat { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 940px; margin: 0 auto; padding: 0 24px 16px; min-height: 0; min-width: 0; }
.pecu-conversation { flex: 1; min-height: 0; }
.pecu-conversation-status { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; text-align: center; }
.pecu-conversation-loader { width: 112px; height: 112px; aspect-ratio: 1; }
.pecu-messages { gap: 18px; padding: 10px 4px 20px; }
.pecu-messages.is-empty { min-height: 100%; justify-content: center; }

/* Empty state */
.pecu-empty { gap: 6px; padding: 8px 0 0; }
/* The render's shadow-catcher floor has a faint alpha across the whole frame; the mask keeps the contact shadow and drops the rectangle. */
.pecu-hero-snail { width: min(420px, 78vw); margin: -24px 0 -40px; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 55%, transparent 100%); }
.pecu-empty-copy { max-width: 560px; }
.pecu-empty-copy h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 750; }
.pecu-empty-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-foreground); }
.pecu-notice { margin-top: 14px !important; padding: 14px 18px; border-radius: 18px; background: var(--accent); color: var(--accent-foreground) !important; text-align: left; }

/* Turns. The user speaks in a amber bubble; Pecu answers as plain text beside
   her avatar, so replies take only the height of their words. */
.pecu-turn { display: flex; flex-direction: column; gap: 12px; }
.pecu-turn .is-user { max-width: min(72%, 560px); }
.pecu-bubble-user { border-radius: 18px 18px 6px 18px !important; background: var(--primary) !important; color: var(--primary-foreground) !important; padding: 9px 14px !important; font-size: 14.5px; line-height: 1.45; box-shadow: var(--clay-shadow-primary); }
.pecu-assistant { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; }
.pecu-assistant.has-mascot { grid-template-columns: 72px minmax(0, 1fr); }
.pecu-avatar { display: block; width: 72px; height: 72px; background: transparent; object-fit: contain; padding: 0; overflow: visible; }
.pecu-avatar-live { position: relative; padding: 0; }
.pecu-avatar-live > div { position: absolute; inset: 0; width: 100%; aspect-ratio: auto; transform: scale(1.9); transform-origin: 50% 50%; }
.pecu-bubble-bot { width: 100%; max-width: 100%; padding: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--foreground); gap: 10px; overflow: visible; }
.pecu-bubble-muted { color: var(--muted-foreground); flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 4px; }
.pecu-message-actions { position: static; display: flex; gap: 2px; margin-top: 2px; opacity: 0; transition: opacity 160ms ease; }
.pecu-turn:hover .pecu-message-actions, .pecu-turn:focus-within .pecu-message-actions { opacity: 1; }
@media (hover: none) { .pecu-message-actions { opacity: .75; } }
.pecu .pecu-message-actions button { width: 28px; height: 28px; border-radius: 8px; color: var(--muted-foreground); background: transparent; box-shadow: none; }
.pecu .pecu-message-actions button:hover { background: var(--secondary); }
.pecu-turn .is-user .pecu-message-actions { justify-content: flex-end; }
.pecu-thinking { align-items: center; min-height: 72px; }
.pecu-shimmer { font-size: 14px; font-weight: 600; }
.pecu-inline-link { height: auto; padding: 0 4px; color: var(--accent-foreground); }

/* Markdown replies, including wide formulas and code. */
.msg-response { min-width: 0; max-width: 100%; }
.msg-response p { white-space: pre-line; }
.msg-response pre, .msg-response .katex-display { max-width: 100%; overflow-x: auto; }
.msg-response pre { white-space: pre; }
.msg-response table { width: 100%; border-collapse: collapse; }
.msg-response th, .msg-response td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.msg-response ul { list-style: disc; padding-left: 1.5em; }
.msg-response ol { list-style: decimal; padding-left: 1.5em; }
.msg-response blockquote { border-left: 3px solid var(--border); padding-left: 12px; }

/* Confirmation card */
.pecu-confirmation { display: flex; flex-direction: column; container: transaction / inline-size; min-width: 0; width: 100%; margin-top: 8px; padding: 24px !important; gap: 24px !important; border: 1px solid var(--border) !important; border-radius: var(--clay-radius-large) !important; background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-confirmation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pecu-confirmation-heading { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pecu-confirmation-name { font-size: 20px; font-weight: 650; color: var(--foreground); overflow-wrap: anywhere; line-height: 1.3; }
.pecu-confirmation-status { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted-foreground); line-height: 1.5; }
.pecu-confirmation-status svg { flex-shrink: 0; margin-top: 2px; }
.pecu-code { flex-shrink: 0; padding: 3px 9px; border-radius: 8px; background: var(--secondary); color: var(--foreground); font-weight: 700; letter-spacing: .08em; font-size: 12px; }
.pecu-confirmation-body { display: grid; gap: 20px; min-width: 0; }
.pecu-preview-group { display: grid; gap: 16px; min-width: 0; }
.pecu-preview-group + .pecu-preview-group { border-top: 1px solid var(--border); padding-top: 20px; }
.pecu-preview-amounts { display: grid; gap: 12px; }
.pecu-preview-amount-wrap { min-width: 0; }
.pecu-preview-amount { display: grid; gap: 6px; min-width: 0; }
.pecu-preview-amount > span { color: var(--muted-foreground); font-size: 14px; }
.pecu-preview-amount strong { font-size: clamp(24px, 5.7cqi, 38px); font-weight: 600; line-height: 1.25; letter-spacing: -.05em; overflow-wrap: anywhere; }
.pecu-preview-arrow { margin: 0 0 12px; color: var(--muted-foreground); }
.pecu-confirmation-rows { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.pecu-confirmation-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 16px; min-width: 0; align-items: baseline; }
.pecu-confirmation-row dt { color: var(--muted-foreground); font-size: 14px; overflow-wrap: anywhere; }
.pecu-confirmation-row dd { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; min-width: 0; margin: 0; color: var(--foreground); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.pecu-confirmation-row dd > span { min-width: 0; }
.pecu-confirmation-row.is-plain { display: block; }
.pecu-confirmation-row.is-plain dd { display: block; text-align: left; }
.pecu-preview-group > .pecu-confirmation-rows { padding: 14px 16px; border-radius: var(--clay-radius-control); background: var(--muted); }
.pecu-confirmation-actions { display: grid !important; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-self: stretch !important; gap: 12px !important; width: 100%; }
.pecu-confirmation-actions:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.pecu .pecu-confirmation-actions .pecu-button { min-height: 48px; height: auto; padding: 12px 16px; white-space: normal; line-height: 1.4; }
.pecu .pecu-preview-copy { width: 44px; height: 44px; flex-shrink: 0; margin-block: -10px; color: var(--muted-foreground); background: transparent; border: 0; box-shadow: none; }
.pecu-preview-reference { font-size: 12px; color: var(--muted-foreground); }
.pecu-preview-reference summary { cursor: pointer; width: fit-content; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.pecu-preview-reference summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.pecu-preview-reference > div { display: flex; align-items: center; gap: 8px; }
.pecu .pecu-preview-reference .pecu-preview-copy { margin-block: 0; }
.pecu-preview-approval-note { margin: 0; padding: 14px 16px; border-radius: var(--clay-radius-control); background: var(--accent); color: var(--accent-foreground); font-size: 14px; }
.is-approval .pecu-preview-amounts { padding: 16px; border-radius: var(--clay-radius-control); background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.is-basket .pecu-preview-amounts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.is-basket .pecu-preview-amount strong { font-size: clamp(19px, 3.6cqi, 25px); }
.is-basket .pecu-preview-arrow { display: none; }
@container transaction (max-width: 380px) {
  .pecu-confirmation-actions { grid-template-columns: minmax(0, 1fr); }
  .pecu-confirmation-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pecu-confirmation-row dd { justify-content: flex-start; text-align: left; }
  .is-basket .pecu-preview-amounts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .is-basket .pecu-preview-arrow { display: block; }
}
@media (max-width: 480px) { .pecu-confirmation { padding: 20px !important; border-radius: var(--clay-radius-surface) !important; } }
.pecu-confirmation-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pecu-confirmation-note { font-size: 13px; color: var(--muted-foreground); }

/* Transaction plan: the route value takes, then every transaction in signing order.
   Nodes are HTML on the same coordinates as the SVG edges, so text never scales. */
.pecu-plan { display: grid; gap: 20px; min-width: 0; container: plan / inline-size; }
.pecu-plan-route { padding: 12px; border-radius: var(--clay-radius-control); background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.pecu-plan-map { position: relative; width: 100%; margin-inline: auto; }
.pecu-plan-map.is-down { display: none; }
.pecu-plan-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pecu-plan-edge { transition: opacity var(--fast) ease; }
.pecu-plan-track { fill: none; stroke: var(--muted-foreground); stroke-opacity: .4; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; transition: stroke var(--fast) ease, stroke-opacity var(--fast) ease; }
.pecu-plan-flow { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 91; stroke-dashoffset: 9; opacity: 0; }
.pecu-plan-edge[data-done] .pecu-plan-track, .pecu-plan[data-state="succeeded"] .pecu-plan-track { stroke: var(--primary); stroke-opacity: 1; }
.pecu-plan-node, .pecu-plan-chip { position: absolute; width: max-content; transform: translate(-50%, -50%); white-space: nowrap; }
.pecu-plan-node { display: grid; justify-items: center; gap: 1px; min-width: 64px; max-width: 168px; padding: 8px 14px; border-radius: var(--clay-radius-pill); background: var(--card); color: var(--foreground); box-shadow: var(--clay-shadow-sm); text-align: center; line-height: 1.3; }
.pecu-plan-node strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 650; }
.pecu-plan-node small { font-size: 12px; color: var(--muted-foreground); }
.pecu-plan-node:is(.is-pool, .is-protocol, .is-account) { border-radius: var(--clay-radius-control); padding: 8px 12px; }
.pecu-plan-node.is-created { background: var(--accent); color: var(--accent-foreground); outline: 2px dashed var(--primary); outline-offset: 3px; }
.pecu-plan-node.is-created small { color: var(--accent-foreground); }
.pecu-plan-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px; border-radius: var(--clay-radius-pill); background: var(--card); color: var(--muted-foreground); font-size: 12px; font-weight: 600; box-shadow: var(--clay-shadow-sm); transition: background-color var(--fast) ease, color var(--fast) ease; }
.pecu-plan-chip:has(> :nth-child(2)) { padding-right: 9px; }
.pecu-plan-chip-step { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--secondary); color: var(--foreground); font-size: 11px; font-weight: 650; }
.pecu-plan:has([data-active]) .pecu-plan-edge:not([data-active]) { opacity: .3; }
.pecu-plan-chip[data-active] { background: var(--primary); color: var(--primary-foreground); }
.pecu-plan:is([data-state="cancelled"], [data-state="expired"]) .pecu-plan-map { opacity: .6; }

.pecu-plan-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.pecu-plan-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-radius: var(--clay-radius-control); }
.pecu-plan-step:last-child { padding-bottom: 0; }
.pecu-plan-step:not(:last-child)::before { content: ""; position: absolute; top: 32px; bottom: 4px; left: 13px; width: 2px; border-radius: 1px; background: var(--border); transition: background-color var(--fast) ease; }
.pecu-plan-step[data-status="confirmed"]:not(:last-child)::before { background: var(--primary); }
.pecu-plan-bead { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--foreground); font-size: 12px; font-weight: 650; box-shadow: var(--clay-shadow-sm); transition: background-color var(--fast) ease, color var(--fast) ease, box-shadow var(--fast) ease; }
.pecu-plan-step[data-kind="approval"]:not([data-status]) .pecu-plan-bead { background: var(--muted); box-shadow: var(--clay-shadow-inset); }
.pecu-plan-step[data-status="confirmed"] .pecu-plan-bead { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--clay-shadow-primary); }
.pecu-plan-step[data-status="failed"] .pecu-plan-bead { color: color-mix(in oklch, var(--destructive) 78%, var(--foreground)); }
.pecu-plan-step[data-status="skipped"] { color: var(--muted-foreground); }
.pecu-plan-step-body { display: grid; gap: 2px; min-width: 0; padding-top: 4px; }
.pecu-plan-step-title { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pecu-plan-step-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-height: 24px; font-size: 13px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.pecu-plan-contract { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 5px; min-width: 0; }
.pecu-plan-address { display: inline-flex; align-items: center; white-space: nowrap; }
.pecu .pecu-plan-step-meta .pecu-preview-copy { margin-inline: -8px -12px; }
.pecu-plan-step-status { font-size: 13px; color: var(--foreground); }
.pecu-plan-step[data-status="skipped"] .pecu-plan-step-status { color: var(--muted-foreground); }
.pecu-plan-step[data-status="failed"] .pecu-plan-step-status { color: color-mix(in oklch, var(--destructive) 78%, var(--foreground)); }

/* One map at a time. Across stays while it fits at 85% scale or more; each layer adds 220 units. */
@container plan (max-width: 344px) { .pecu-plan-route[data-layers="2"] .is-across { display: none; } .pecu-plan-route[data-layers="2"] .is-down { display: block; } }
@container plan (max-width: 531px) { .pecu-plan-route[data-layers="3"] .is-across { display: none; } .pecu-plan-route[data-layers="3"] .is-down { display: block; } }
@container plan (max-width: 718px) { .pecu-plan-route[data-layers="4"] .is-across { display: none; } .pecu-plan-route[data-layers="4"] .is-down { display: block; } }
@container plan (max-width: 905px) { .pecu-plan-route[data-layers="5"] .is-across { display: none; } .pecu-plan-route[data-layers="5"] .is-down { display: block; } }
.pecu-plan-route[data-layers="6"] .is-across { display: none; }
.pecu-plan-route[data-layers="6"] .is-down { display: block; }

/* Motion: the route draws in layer by layer while the plan still needs the user,
   then a comet walks each unconfirmed edge. Settled plans stay still. */
.pecu-plan [data-layer] { --plan-layer: 0; }
.pecu-plan [data-layer="1"] { --plan-layer: 1; }
.pecu-plan [data-layer="2"] { --plan-layer: 2; }
.pecu-plan [data-layer="3"] { --plan-layer: 3; }
.pecu-plan [data-layer="4"] { --plan-layer: 4; }
.pecu-plan [data-layer="5"] { --plan-layer: 5; }
.pecu-plan [data-layer="6"] { --plan-layer: 6; }
.pecu-plan [data-layer="7"] { --plan-layer: 7; }
.pecu-plan:is([data-state="pending"], [data-state="executing"]) .pecu-plan-node { animation: pecu-plan-node-in 240ms var(--ease-out) both; animation-delay: calc(var(--plan-layer) * 140ms); }
.pecu-plan:is([data-state="pending"], [data-state="executing"]) .pecu-plan-track { animation: pecu-plan-draw 420ms var(--ease-in-out) both; animation-delay: calc(var(--plan-layer) * 140ms + 120ms); }
.pecu-plan:is([data-state="pending"], [data-state="executing"]) .pecu-plan-chip { animation: pecu-fade-in 200ms var(--ease-out) both; animation-delay: calc(var(--plan-layer) * 140ms + 380ms); }
.pecu-plan[data-state="pending"] .pecu-plan-flow,
.pecu-plan[data-state="executing"] .pecu-plan-edge:not([data-done]) .pecu-plan-flow { animation: pecu-plan-flow 2800ms linear infinite; animation-delay: calc(var(--plan-layer) * 560ms + 900ms); }
.pecu-plan[data-offscreen] .pecu-plan-flow { animation-play-state: paused; }
@keyframes pecu-plan-node-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }
@keyframes pecu-plan-draw { from { stroke-dashoffset: 100; } }
@keyframes pecu-plan-flow {
  0% { stroke-dashoffset: 9; opacity: 0; }
  6%, 58% { opacity: 1; }
  66%, 100% { stroke-dashoffset: -91; opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .pecu-plan-step:hover .pecu-plan-bead { box-shadow: var(--clay-shadow-sm), var(--clay-focus); }
}
@media (prefers-reduced-motion: reduce) {
  .pecu-plan[data-state] :is(.pecu-plan-node, .pecu-plan-chip, .pecu-plan-track) { animation: none; }
  .pecu-plan[data-state] .pecu-plan-flow { display: none; }
  .pecu-plan-bead, .pecu-plan-step::before, .pecu-plan-edge, .pecu-plan-chip { transition: none; }
  .pecu-plan .animate-spin { animation: none; }
}

/* Buttons that carry the clay look */
.pecu .pecu-button { min-height: 40px; border-radius: var(--clay-radius-control); border: 0; background: var(--card); color: var(--foreground); font-weight: 650; box-shadow: var(--clay-shadow-sm); transition: transform 160ms ease; }
.pecu .pecu-button-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--clay-shadow-primary); }
.pecu .pecu-button:active { transform: translateY(1px); }
.pecu .pecu-button-quiet { background: transparent; box-shadow: none; color: var(--foreground); }
.pecu .pecu-button-quiet:hover { background: var(--secondary); transform: none; }

/* Composer */
.pecu-composer { display: grid; gap: 10px; padding-top: 6px; }
.pecu-suggestions { padding: 2px 2px 4px; }
.pecu .pecu-suggestion { height: 36px; border: 0; border-radius: var(--clay-radius-pill); background: var(--card); color: var(--foreground); font-weight: 600; box-shadow: var(--clay-shadow-sm); }
.pecu .pecu-suggestion:hover { background: var(--accent); color: var(--accent-foreground); }
.pecu .pecu-prompt { border: 0; border-radius: var(--clay-radius-surface); padding: 4px 6px 4px 10px; transition: box-shadow 160ms ease; }
.pecu .pecu-prompt:focus-within { box-shadow: var(--clay-shadow), var(--clay-focus); }
.pecu .pecu-textarea { min-height: 44px; padding: 12px 12px 4px; font-size: 15.5px; color: var(--foreground); background: transparent; border: 0; box-shadow: none; }
.pecu .pecu-textarea:focus, .pecu .pecu-textarea:focus-visible { outline: none; box-shadow: none; border-color: transparent; }
.pecu .pecu-textarea::placeholder { color: var(--muted-foreground); }
.pecu-prompt-footer { padding: 0 4px 4px 8px !important; }
.pecu-prompt-hint { font-size: 12.5px; color: var(--muted-foreground); }
.pecu-wallet-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.pecu .pecu-wallet-notice .pecu-inline-link { border: 0; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.pecu .pecu-submit { width: 40px; height: 40px; background: var(--primary); color: var(--primary-foreground); box-shadow: var(--clay-shadow-primary); transition: transform 160ms ease, opacity 160ms ease; }
.pecu .pecu-submit:disabled { opacity: .45; }
.pecu-prompt-wrap { position: relative; }
.pecu-command-menu { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 8px); z-index: 5; max-height: calc(8 * 44px + 12px); overflow-y: auto; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-command-item { display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pecu-command-item[aria-selected="true"] { background: var(--secondary); }
.pecu-command-name { font-size: 14px; font-weight: 600; color: var(--foreground); }
.pecu-command-args { font-size: 13px; color: var(--muted-foreground); }
.pecu-command-summary { margin-left: auto; padding-left: 16px; font-size: 13px; color: var(--muted-foreground); text-align: right; }
@media (max-width: 760px) {
  .pecu-command-item { flex-wrap: wrap; }
  .pecu-command-summary { width: 100%; margin-left: 0; padding-left: 0; text-align: left; }
}
.pecu-embed { background: transparent; font-family: inherit; color: inherit; }
.pecu-footnote { margin: 0; text-align: center; font-size: 12px; color: var(--muted-foreground); }
.pecu-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: var(--clay-radius-control); background: var(--accent); color: var(--accent-foreground); font-size: 14px; }
.pecu .pecu-scroll-button { border: 0; background: var(--card); color: var(--foreground); box-shadow: var(--clay-shadow-sm); }

/* Threads */
.pecu-threads { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.pecu .pecu-new-thread { justify-content: center; width: 100%; }
.pecu-thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.pecu-thread { position: relative; display: flex; align-items: stretch; border-radius: var(--clay-radius-control); }
.pecu-thread.is-active { background: var(--card); }
.pecu-thread:not(.is-active):hover { background: var(--muted); }
.pecu-thread-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 9px 12px; border: 0; background: none; color: var(--foreground); text-align: left; border-radius: var(--clay-radius-control); cursor: pointer; font: inherit; }
.pecu .pecu-thread button:focus-visible { outline-width: 2px; outline-offset: -3px; }
.pecu-thread-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pecu-thread-meta { font-size: 12px; color: var(--muted-foreground); }
.pecu-thread-delete { flex: 0 0 34px; border: 0; background: none; color: var(--muted-foreground); border-radius: 12px; cursor: pointer; opacity: 0; transition: opacity 160ms ease, color 160ms ease; }
.pecu-thread:hover .pecu-thread-delete, .pecu-thread:focus-within .pecu-thread-delete, .pecu-thread.is-active .pecu-thread-delete { opacity: 1; }
.pecu-thread-delete:hover { color: var(--accent-foreground); }
.pecu-thread-confirm { display: flex; align-items: center; gap: 4px; padding-right: 6px; font-size: 12px; }
.pecu-thread-confirm button { border: 0; background: var(--card); color: var(--foreground); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pecu-thread-confirm .pecu-thread-danger { background: var(--primary); color: var(--primary-foreground); }
.pecu-thread-note { margin: auto 0 0; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.pecu-threads .pecu-nav { flex: 0 0 auto; flex-wrap: wrap; gap: 14px; }
.pecu-threads .pecu-nav a { font-size: 14px; }
.pecu-threads-toggle { display: none; }
.pecu.pecu-threads-dialog { border: 0; border-radius: 26px; background: var(--background); box-shadow: var(--clay-shadow); max-height: 80dvh; display: flex; flex-direction: column; overflow: hidden; }
.pecu.pecu-threads-dialog .pecu-thread-list { max-height: 45dvh; }

/* Automations */
.pecu.pecu-automations-dialog { max-width: 560px; }
.pecu-automation-list { list-style: none; margin: 0 -8px; padding: 2px 8px 8px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; max-height: 60dvh; }
.pecu-automation { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--clay-radius-control); background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-automation-head { display: grid; gap: 2px; min-width: 0; }
.pecu-automation-title { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--foreground); font: inherit; font-size: 15px; font-weight: 650; text-align: left; }
button.pecu-automation-title { cursor: pointer; }
button.pecu-automation-title:hover { color: var(--accent-foreground); }
.pecu-automation-instruction { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.pecu-automation-allowance { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--muted); box-shadow: var(--clay-shadow-inset); font-size: 13px; line-height: 1.5; }
.pecu-automation-allowance.is-pending { background: var(--accent); color: var(--accent-foreground); box-shadow: none; }
.pecu-automation-approve { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.pecu-automation-approve label { display: grid; gap: 4px; font-size: 12px; color: var(--muted-foreground); }
.pecu-automation-approve input { width: 120px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--clay-radius-control); background: var(--background); box-shadow: var(--clay-shadow-inset); color: var(--foreground); font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.pecu-automation-approve input:focus-visible { outline: 2px solid var(--accent-foreground); outline-offset: 2px; }
.pecu-automation-approve input[aria-invalid="true"] { outline: 2px solid var(--destructive); }
.pecu-automation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 -8px -4px; }
.pecu-automation-error { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-foreground); font-size: 13px; }
.pecu-automation-notice { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.pecu-task-origin { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
@media (max-width: 900px) { .pecu-automations-toggle span { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .pecu .pecu-button:hover, .pecu .pecu-submit:hover:not(:disabled) { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .pecu .pecu-button, .pecu .pecu-submit { transition-property: opacity, background-color; }
  .pecu .pecu-button:hover, .pecu .pecu-button:active, .pecu .pecu-submit:hover { transform: none; }
  .pecu-confirmation .animate-spin { animation: none; }
}
@media (max-width: 900px) {
  .pecu-sidebar-toggle { display: none; }
  .pecu-app:has(> .pecu-rail):not([data-sidebar-collapsed="true"]) { grid-template-columns: minmax(0, 1fr); }
  .pecu-rail { display: none; }
  .pecu-app:has(> .pecu-rail):not([data-sidebar-collapsed="true"]) > .pecu-main { grid-column: 1; }
  .pecu-app:not([data-sidebar-collapsed="true"]) > .pecu-rail + .pecu-main .pecu-topbar .pecu-wordmark { display: inline; }
  .pecu-threads-toggle { display: inline-flex; }
  .pecu-chat { padding: 0 16px 12px; }
}
@media (max-width: 760px) {
  .pecu-topbar { padding: 14px 16px 4px; gap: 12px; flex-wrap: wrap; }
  .pecu-nav { gap: 14px; order: 3; width: 100%; }
  .pecu-nav a { font-size: 14px; min-height: 36px; }
  .pecu-chat { padding: 0 10px 10px; }
  .pecu-hero-snail { width: min(320px, 80vw); margin-bottom: -20px; }
  .pecu-turn .is-user { max-width: 86%; }
  .pecu-assistant.has-mascot { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .pecu-avatar { width: 60px; height: 60px; }
  .pecu-assistant.has-mascot:has(.pecu-confirmation) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pecu-assistant:has(.pecu-confirmation) .pecu-avatar { width: 40px; height: 40px; }
  .pecu-auth { gap: 6px; }
  .pecu-wallet-address { font-size: 12px; }
  .pecu-threads-toggle span { display: none; }
  .pecu-connected-wallet .mono { display: none; }
  .pecu-prompt-hint { display: none; }
}

/* The connection panel contains only the current sign-in action. */
.pecu.pecu-connection-dialog { width: calc(100vw - 32px); max-width: 400px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 56px 24px 28px; border: 0; border-radius: 24px; background: var(--background); gap: 0; }
.pecu-connection-dialog > [data-slot="dialog-close"] { top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.pecu-inference { min-width: 0; width: 100%; max-width: 400px; }
.pecu-inference p { margin: 0; font-size: 14px; line-height: 1.6; }
.pecu-inference-login { display: flex; flex-direction: column; gap: 20px; }
.pecu-inference-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--secondary); box-shadow: var(--clay-shadow-inset); }
.pecu .pecu-inference-code > button { padding: 10px 14px; border-radius: var(--clay-radius-pill); color: var(--accent-foreground); font-size: 13px; }
.pecu-inference-code code { padding: 0; background: transparent; font-size: clamp(16px, 5vw, 22px); letter-spacing: .06em; overflow-wrap: anywhere; }
.pecu-inference-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pecu .pecu-inference-link { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px; border-radius: var(--clay-radius-pill); background: var(--primary); color: var(--primary-foreground); font-size: 16px; text-align: center; text-decoration: none; box-shadow: var(--clay-shadow-primary); }
.pecu-inference-waiting { color: var(--muted-foreground); text-align: center; }
.pecu-inference button { min-height: 44px; }
.pecu-inference .pecu-inference-cancel { margin-top: 4px; align-self: center; background: transparent; box-shadow: none; }
.pecu-inference-error { display: grid; gap: 12px; font-size: 14px; }

.pecu.pecu-connection-dialog:has(.pecu-inference-connect) { padding: 48px 24px; }
.pecu .pecu-inference-connect { display: flex; width: fit-content; max-width: 100%; margin-inline: auto; gap: 10px; }
.pecu .pecu-inference-link { gap: 10px; }
.pecu .pecu-inference-connect svg, .pecu .pecu-inference-link svg { width: 24px; height: 24px; }
.pecu .pecu-inference-connect { min-height: 48px; padding-inline: 20px; border-radius: var(--clay-radius-pill); box-shadow: var(--clay-shadow-sm); }
.pecu-connection-dialog > [data-slot="dialog-close"] { border-radius: var(--clay-radius-pill); box-shadow: none; }
.pecu-connection-dialog > [data-slot="dialog-close"]:hover { background: var(--secondary); }
.pecu-connection-dialog button:focus-visible, .pecu-connection-dialog a:focus-visible { outline: 2px solid var(--accent-foreground); outline-offset: 3px; }
.pecu-connection-dialog > [data-slot="dialog-close"]:focus-visible { outline-offset: -5px; }

.pecu-portfolio { margin-bottom: 24px; }
.pecu-portfolio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pecu-portfolio-head h2 { font-size: 16px; font-weight: 600; }
.pecu-portfolio-balances { margin: 8px 0 16px; }
.pecu-portfolio-balances > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--border); }
.pecu-portfolio-balances dt { flex: 1; }
.pecu-portfolio-balances dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 70%; }
.pecu-portfolio-balances p { flex-basis: 100%; font-size: 13px; }
.pecu-portfolio-add { display: flex; gap: 8px; }
.pecu-portfolio-add input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: inherit; font: inherit; }
.pecu-portfolio button { min-height: 44px; }
.pecu-portfolio-actions { display: flex; align-items: center; gap: 4px; }
.pecu.pecu-portfolio-popover { z-index: 80; width: 380px; max-width: calc(100vw - 24px); padding: 16px; background: var(--card); border-radius: 16px; box-shadow: var(--clay-shadow); }
.pecu-portfolio-popover .pecu-portfolio-add { margin-top: 12px; }
.pecu-portfolio-popover p { margin-top: 12px; font-size: 13px; }
.pecu-portfolio-actions button, .pecu-portfolio-popover button { min-width: 44px; min-height: 44px; }

/* Profile: Pecu wallet, organizations and Safes. Same amber tokens and clay material as the Agent. */
.pecu-profile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pecu-profile-body { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 940px; margin: 0 auto; padding: 8px 24px 64px; }
.pecu-profile-stack { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.pecu-profile-section { display: grid; gap: 14px; min-width: 0; }
.pecu-profile-section h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.pecu-profile-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pecu .pecu-profile-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted-foreground); }
.pecu .pecu-profile-empty { margin: 0; padding: 18px 20px; border-radius: var(--clay-radius-control); background: var(--muted); box-shadow: var(--clay-shadow-inset); font-size: 14px; color: var(--muted-foreground); }
.pecu-profile-notice { margin: 0; padding: 12px 16px; border-radius: var(--clay-radius-control); background: var(--accent); color: var(--accent-foreground); font-size: 14px; }
.pecu-profile-message { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--foreground); }
.pecu-profile-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-radius: var(--clay-radius-surface); background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-profile-row p { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.55; }
.pecu-profile-empty-state { display: grid; justify-items: start; gap: 16px; padding: 28px; border-radius: var(--clay-radius-large); background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-profile-empty-state h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }
.pecu-profile-empty-state p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }

/* Rail navigation */
.pecu-profile-nav { display: flex; flex-direction: column; gap: 18px; flex: 1; min-height: 0; margin: 0 -18px; padding: 0 18px 12px; overflow-y: auto; }
.pecu-profile-group { display: grid; gap: 2px; }
.pecu-profile-group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pecu .pecu-profile-group-head { margin: 0; padding: 0 12px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; color: var(--muted-foreground); }
.pecu .pecu-profile-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: var(--clay-radius-control); color: var(--foreground); font-size: 14px; font-weight: 600; text-decoration: none; }
.pecu .pecu-profile-link[aria-current="page"] { background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-profile-link svg { flex-shrink: 0; color: var(--muted-foreground); }
.pecu-profile-link-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pecu-profile-link-meta { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.pecu .pecu-profile-link-empty { margin: 0; padding: 4px 12px; font-size: 13px; color: var(--muted-foreground); }
.pecu-profile-nav-toggle { display: none; justify-content: center; width: 40px; padding: 0; }
.pecu.pecu-profile-nav-dialog .pecu-profile-nav { max-height: 60dvh; }

/* Headings, addresses and stats */
.pecu-safe-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pecu-safe-title { display: grid; gap: 6px; min-width: 0; }
.pecu-safe-title h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.pecu .pecu-safe-org { width: fit-content; font-size: 14px; font-weight: 600; color: var(--muted-foreground); text-decoration: none; }
.pecu .pecu-safe-org:hover { color: var(--accent-foreground); }
.pecu-safe-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pecu .pecu-safe-rename { width: 40px; height: 40px; min-height: 40px; padding: 0; color: var(--muted-foreground); }
.pecu-safe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pecu .pecu-safe-new, .pecu .pecu-safe-receive { min-height: 48px; padding-inline: 18px; }
.pecu .pecu-safe-receive { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pecu-receive-copy { display: flex; align-items: flex-start; gap: 4px; }
.pecu-receive-copy .pecu-wallet-full-address { flex: 1; min-width: 0; }
.pecu-address-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: 14px; color: var(--muted-foreground); }
.pecu-address-label { font-weight: 600; color: var(--foreground); }
.pecu-address-value { overflow-wrap: anywhere; }
.pecu .pecu-address-copy { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); box-shadow: none; }
.pecu .pecu-address-explorer { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted-foreground); }
.pecu-wallet-card { display: grid; gap: 20px; padding: 24px; border-radius: var(--clay-radius-large); background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-profile-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pecu-profile-identity .pecu-safe-title { flex: 1 1 200px; gap: 4px; }
.pecu .pecu-profile-handle { margin: 0; font-size: 15px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.pecu .pecu-profile-manage { min-height: 44px; padding-inline: 16px; }
.pecu-profile-wallet { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.pecu-profile-wallet h2 { margin: 0; font-size: 15px; font-weight: 650; }
.pecu-profile-wallet .pecu-profile-stats { margin-top: 8px; }
.pecu-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-radius: var(--clay-radius-control); background: var(--muted); box-shadow: var(--clay-shadow-inset); overflow: hidden; }
.pecu-profile-stats > div { display: grid; gap: 4px; min-width: 0; padding: 14px 16px; border-left: 1px solid var(--border); margin-left: -1px; }
.pecu-profile-stats dt { font-size: 13px; color: var(--muted-foreground); }
.pecu-profile-stats dd { margin: 0; font: 600 clamp(16px, 2.4vw, 20px) var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Segmented controls and tabs share the recessed pill from the P&L periods. */
.pecu-segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: var(--clay-radius-pill); background: var(--secondary); box-shadow: var(--clay-shadow-inset); }
.pecu .pecu-segmented button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--clay-radius-pill); background: transparent; color: var(--muted-foreground); font-size: 14px; font-weight: 650; cursor: pointer; transition: color var(--fast) ease, background-color var(--fast) ease; }
.pecu .pecu-segmented button:is([aria-pressed="true"], [data-state="active"]) { background: var(--card); color: var(--foreground); box-shadow: var(--clay-shadow-sm); }
.pecu-safe-tabs { display: grid; gap: 8px; }
.pecu-tab-count { min-width: 20px; padding: 1px 6px; border-radius: var(--clay-radius-pill); background: var(--primary); color: var(--primary-foreground); font: 700 12px/1.5 var(--font-mono); text-align: center; }

/* Proposals */
.pecu-proposal { display: grid; gap: 16px; min-width: 0; padding: 22px 24px; border-radius: var(--clay-radius-large); background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-proposal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pecu-proposal-heading { display: grid; gap: 4px; min-width: 0; }
.pecu-proposal-heading h3, .pecu .pecu-proposal-title { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pecu .pecu-proposal-meta { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.pecu .pecu-proposal-summary { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: var(--foreground); }
.pecu-proposal-summary:empty { display: none; }
.pecu-proposal-progress { display: grid; justify-items: end; gap: 6px; flex-shrink: 0; font: 600 13px var(--font-mono); color: var(--muted-foreground); }
.pecu-beads { display: flex; gap: 6px; }
.pecu-beads > span { width: 16px; height: 16px; border-radius: 50%; background: var(--muted); box-shadow: var(--clay-shadow-inset); transition: background-color var(--fast) ease, box-shadow var(--fast) ease; }
.pecu-beads > span[data-filled] { background: var(--primary); box-shadow: var(--clay-shadow-primary); }
.pecu-approvals { display: grid; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--clay-radius-control); background: var(--muted); list-style: none; }
.pecu-approval { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.pecu-approval > svg { color: var(--muted-foreground); }
.pecu-approval[data-approved] > svg { color: var(--accent-foreground); }
.pecu-approval-who { display: flex; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.pecu-approval-who > span:first-child:not(.mono) { font-weight: 600; }
.pecu-approval-who .mono { color: var(--muted-foreground); }
.pecu-approval-state { font-size: 13px; color: var(--muted-foreground); text-align: right; }
.pecu-approval[data-approved] .pecu-approval-state { color: var(--foreground); }
.pecu .pecu-proposal-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 14px; font-weight: 600; }
.pecu-proposal-status a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.pecu-proposal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pecu .pecu-proposal-actions .pecu-button { min-height: 44px; padding-inline: 16px; }
.pecu-proposal-pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: var(--clay-radius-control); background: var(--accent); color: var(--accent-foreground); font-size: 14px; }
.pecu-inline-confirm { display: inline-flex; gap: 6px; }
.pecu .pecu-button-danger { background: var(--destructive); color: var(--primary-foreground); box-shadow: var(--clay-shadow-sm); }

/* History */
.pecu-history { display: grid; margin: 0; padding: 0; list-style: none; }
.pecu-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.pecu-history li:first-child { border-top: 0; }
.pecu-history-title { font-weight: 600; overflow-wrap: anywhere; }
.pecu-history-meta { grid-column: 1; font-size: 13px; color: var(--muted-foreground); }
.pecu-history-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--muted-foreground); text-align: right; }
.pecu-history-state a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* Owners and limits */
.pecu-owner-list, .pecu-limit-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pecu-owner-list li, .pecu-limit-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-radius: var(--clay-radius-surface); background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-owner-list .pecu-address-line { flex: 1 1 320px; }
.pecu-owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pecu .pecu-owner-actions .pecu-button { min-height: 40px; padding-inline: 12px; }
.pecu-limit-main { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.pecu .pecu-limit-amount { margin: 0; font-size: 14px; }

/* Organizations */
.pecu-org-grid { display: grid; gap: 16px; }
.pecu-org-card { display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--clay-radius-large); background: var(--card); box-shadow: var(--clay-shadow); }
.pecu-org-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pecu-org-head h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pecu-org-safes { display: grid; margin: 0; padding: 0; list-style: none; border-radius: var(--clay-radius-control); background: var(--muted); }
.pecu-org-safes li + li { border-top: 1px solid var(--border); }
.pecu .pecu-org-safe { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; color: var(--foreground); text-decoration: none; border-radius: var(--clay-radius-control); }
.pecu-org-safe-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pecu-org-safe-address, .pecu-org-safe-status { font-size: 13px; color: var(--muted-foreground); }
.pecu-org-safe:not(:has(.pecu-org-safe-status)) { grid-template-columns: minmax(0, 1fr) auto 16px; }
.pecu .pecu-org-add { width: fit-content; }

/* Dialogs and forms */
.pecu.pecu-profile-dialog { width: calc(100vw - 32px); max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; gap: 16px; padding: 28px 24px 24px; border: 0; border-radius: 26px; background: var(--background); box-shadow: var(--clay-shadow); }
.pecu.pecu-intent-dialog { max-width: 560px; padding: 0; background: transparent; box-shadow: none; }
.pecu.pecu-intent-dialog .pecu-confirmation { margin: 0; }
.pecu.pecu-intent-dialog .pecu-confirmation-head { padding-right: 36px; }
.pecu.pecu-intent-dialog .pecu-profile-message { margin: 0; padding: 12px 16px; border-radius: var(--clay-radius-control); background: var(--card); box-shadow: var(--clay-shadow-sm); }
.pecu-profile-dialog > [data-slot="dialog-close"] { top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--clay-radius-pill); }
.pecu .pecu-profile-dialog-title { padding-right: 36px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.pecu .pecu-profile-dialog-description { font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }
.pecu-profile-form { display: grid; gap: 16px; }
.pecu-field { display: grid; gap: 6px; min-width: 0; }
.pecu-field label, .pecu-owner-fieldset legend { font-size: 13px; font-weight: 650; }
.pecu .pecu-field-hint { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.pecu .pecu-input { width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--clay-radius-control); background: var(--muted); color: var(--foreground); font-size: 15px; box-shadow: var(--clay-shadow-inset); }
.pecu select.pecu-input { appearance: auto; }
.pecu .pecu-input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.pecu .pecu-input::placeholder { color: var(--muted-foreground); }
.pecu-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pecu-owner-fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pecu-owner-fieldset legend { margin-bottom: 6px; padding: 0; }
.pecu-owner-check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--clay-radius-control); background: var(--card); box-shadow: var(--clay-shadow-sm); font-size: 14px; font-weight: 600; cursor: pointer; }
.pecu-owner-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.pecu-owner-check .mono { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.pecu-owner-draft { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 8px; }
.pecu .pecu-icon-button { display: grid; place-items: center; width: 40px; height: 44px; border: 0; border-radius: var(--clay-radius-control); background: transparent; color: var(--muted-foreground); cursor: pointer; }
.pecu .pecu-owner-add { width: fit-content; }
.pecu-profile-form-actions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.pecu .pecu-profile-form-actions .pecu-button { min-height: 48px; }

/* Wallet connection */
.pecu-connected-wallet { gap: 8px; }
.pecu-wallet-mark { width: 18px; height: 18px; border-radius: 4px; }
.pecu-wallet-options { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pecu .pecu-wallet-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--clay-radius-control); background: var(--card); color: var(--foreground); font-size: 15px; font-weight: 600; box-shadow: var(--clay-shadow-sm); cursor: pointer; transition: transform var(--fast) ease; }
.pecu .pecu-wallet-option .pecu-wallet-mark { width: 28px; height: 28px; border-radius: 8px; }
.pecu-wallet-option-state { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.pecu.pecu-profile-popover { z-index: 60; display: grid; gap: 8px; width: 280px; max-width: calc(100vw - 24px); padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--clay-shadow); }
.pecu .pecu-profile-popover-title { margin: 0; font-size: 14px; font-weight: 650; }
.pecu .pecu-profile-popover-address { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); user-select: all; }
.pecu .pecu-profile-popover-action { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; padding-inline: 12px; }
.pecu .pecu-profile-popover-state { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--accent-foreground); }
.pecu-linked-state { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--accent-foreground); }

@media (hover: hover) and (pointer: fine) {
  .pecu .pecu-profile-link:not([aria-current="page"]):hover, .pecu .pecu-org-safe:hover, .pecu .pecu-icon-button:hover, .pecu .pecu-address-copy:hover, .pecu .pecu-address-explorer:hover { background: var(--secondary); }
  .pecu .pecu-segmented button:not([aria-pressed="true"]):not([data-state="active"]):hover { color: var(--foreground); }
  .pecu .pecu-wallet-option:hover:not(:disabled) { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .pecu .pecu-wallet-option, .pecu-beads > span { transition: none; }
  .pecu .pecu-wallet-option:hover { transform: none; }
}
@media (max-width: 900px) {
  .pecu-profile-nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .pecu-profile-body { gap: 24px; padding: 4px 16px 48px; }
  .pecu-safe-title h1, .pecu-profile-empty-state h1 { font-size: 26px; }
  .pecu-proposal, .pecu-wallet-card, .pecu-org-card { padding: 18px; border-radius: var(--clay-radius-surface); }
  .pecu-proposal-head { flex-direction: column; }
  .pecu-proposal-progress { justify-items: start; }
  .pecu-safe-actions { width: 100%; }
  .pecu .pecu-safe-new, .pecu .pecu-safe-receive { flex: 1; justify-content: center; }
  .pecu .pecu-profile-manage { width: 100%; }
  .pecu-approval { grid-template-columns: 16px minmax(0, 1fr); }
  .pecu-approval-state { grid-column: 2; text-align: left; }
  .pecu-owner-draft { grid-template-columns: minmax(0, 1fr) 40px; }
  .pecu-owner-draft input:nth-child(2) { grid-row: 2; }
  .pecu .pecu-org-safe { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 12px; }
  .pecu-org-safe-name { grid-area: 1 / 1; }
  .pecu-org-safe-address { grid-area: 2 / 1; }
  .pecu-org-safe-status { grid-area: 2 / 1; justify-self: end; }
  .pecu-org-safe > svg { grid-column: 2; grid-row: 1 / span 2; }
  .pecu-profile-form-actions { grid-template-columns: minmax(0, 1fr); }
  .pecu-segmented-tabs { width: 100%; }
  .pecu .pecu-segmented-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
}
