/* Consumer web presentation. Messages, signing and key handling are
   unchanged. Wallet-mode approval geometry remains owned by shell.css. */
.c-shell { --consumer-amber: #f5a623; --consumer-focus: #925900; }
:root[data-theme="dark"] .c-shell { --consumer-focus: #f5a623; }
.c-shell button:focus-visible, .c-shell a:focus-visible { outline: 2px solid var(--consumer-focus); outline-offset: 4px; }
.consumer-custody-note { color: var(--color-text-muted); font-size: 12px; line-height: 1.6; margin: 14px 2px 0; }

/* Entry is a separate page, not an empty dashboard. Same iframe node,
   same origin, no overlay/reparenting and no synthetic wallet actions. */
.c-shell[data-experience="entry"] { display: block; }
.c-shell[data-experience="entry"] .sidebar {
  position: static; height: 86px; min-height: 0; width: 100%;
  flex-direction: row; align-items: center; justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  background: transparent; border: 0;
}
.c-shell[data-experience="entry"] .sb-logo { padding: 0; }
.c-shell[data-experience="entry"] .sb-logo .wd { color: var(--color-text); font-size: 18px; }
.c-shell[data-experience="entry"] .sb-nav,
.c-shell[data-experience="entry"] .sb-spacer,
.c-shell[data-experience="entry"] .sb-vault,
.c-shell[data-experience="entry"] .sb-note,
.c-shell[data-experience="entry"] .topbar { display: none; }
/* W6c's incoming-device route, if present after integration, stays
   available to a fresh receiver without exposing the wallet dashboard. */
.c-shell[data-experience="entry"] .sb-nav:has([data-nav="transfer"]) { display: flex; margin-left: auto; margin-right: 16px; }
.c-shell[data-experience="entry"] .sb-nav .sb-item:not([data-nav="transfer"]) { display: none; }
.c-shell[data-experience="entry"] .sb-nav .sb-item { color: var(--color-text-muted); font-size: 13px; }
.c-shell[data-experience="entry"] .sb-foot { padding: 0; }
.c-shell[data-experience="entry"] .sb-theme { margin: 0; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: 100px; padding: 9px 16px; }
.c-shell[data-experience="entry"] .main { min-height: calc(100vh - 86px); }
.c-shell[data-experience="entry"] .c-content {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center; gap: 88px; max-width: 1160px;
  padding: 36px 32px 48px; margin: auto; flex: 1;
}
.c-shell[data-experience="entry"] .c-content > #app { order: 0; }
.c-shell[data-experience="entry"] .c-vault {
  position: static; top: auto; right: auto; width: 100%; order: 1;
  padding: 12px; border: 1px solid var(--color-border); border-radius: 26px;
  background: var(--wd-card); box-shadow: 0 20px 70px rgba(0,0,0,.1);
}
.c-shell[data-experience="entry"] .c-vault-h { display: none; }
.c-shell[data-experience="entry"] #custody-frame { height: 520px; border-radius: 18px; border: 0; background: #111319; }
.c-shell[data-experience="entry"] .consumer-custody-note { text-align: center; padding: 0 12px; margin-bottom: 4px; }
.c-shell[data-experience="entry"] .c-notice {
  order: 2; background: transparent; border-top: 1px solid var(--color-border);
  border-bottom: 0; padding: 16px 32px; text-align: center; font-size: 11px;
}
.consumer-intro.c-gate-card { max-width: none; margin: 0; text-align: left; }
.consumer-kicker { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.consumer-title { font-size: clamp(44px, 4.3vw, 62px); letter-spacing: -3px; font-weight: 760; line-height: 1.18; color: var(--color-text); margin: 0; }
.consumer-description { max-width: 320px; margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--color-text-muted); word-break: keep-all; }
.consumer-brand-art {
  width: 210px; height: 270px; margin: 24px 0 12px;
  background: center / contain no-repeat url('icons/capybara-hero.png');
}
.consumer-networks { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; }
.consumer-networks > span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--color-text-muted); }
.consumer-networks > small { display: block; flex: 0 0 100%; color: var(--color-text-muted); font-size: 11px; }
.consumer-mobile-start { display: none; }

/* The interior uses the existing working controllers and rail geometry;
   reduce ornament and make the network, address and actions readable. */
.c-shell[data-experience="wallet"] .card { box-shadow: none; border-color: var(--color-border); }
.c-shell[data-experience="wallet"] .c-wallet-card.active {
  max-width: none;
  min-height: 112px; border-radius: 18px; gap: 8px;
}
.c-shell[data-experience="wallet"] .c-wallet-card .wc-name { color: #e9d5af; }
.c-shell[data-experience="wallet"] .c-wallet-card .wc-desc { color: #d6c3a2; font-size: 12px; }
.c-shell[data-experience="wallet"] .c-wallet-card .wc-total { color: #fff6e5; font-size: 24px; }
.c-shell[data-experience="wallet"] .card-h h2 { font-size: 20px; letter-spacing: -.6px; }
.c-shell[data-experience="wallet"] .h-sub { line-height: 1.6; }
.c-shell[data-experience="wallet"] .c-account-card .card-h { margin-bottom: 12px; }
.c-shell[data-experience="wallet"] .rowbtn { min-height: 36px; }
.c-shell[data-experience="wallet"] .c-quick .btn { min-height: 44px; }
.c-shell[data-experience="wallet"] .send-card { border-radius: 20px; }
.c-shell[data-experience="wallet"] .recv-addr-card .a { line-height: 1.7; }
.c-shell[data-experience="wallet"] .c-vault-h h2 { font-size: 16px; }
.c-shell[data-experience="wallet"] .consumer-custody-note { display: none; }

@media (max-width: 1000px) {
  .c-shell[data-experience="entry"] .c-content { gap: 36px; grid-template-columns: minmax(0,1fr) minmax(340px,400px); }
  .consumer-title { font-size: 44px; }
}
@media (max-width: 720px) {
  .c-shell[data-experience="entry"] .sidebar { height: 72px; padding: 0 22px; }
  .c-shell[data-experience="entry"] .sb-logo .wd { font-size: 16px; }
  .c-shell[data-experience="entry"] .sb-theme { font-size: 12px; padding: 8px 12px; }
  .c-shell[data-experience="entry"] .main { min-height: calc(100vh - 72px); }
  .c-shell[data-experience="entry"] .c-content { grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 480px; padding: 18px 20px 28px; align-content: start; }
  .consumer-kicker, .consumer-brand-art, .consumer-networks { display: none; }
  .consumer-title { font-size: 34px; letter-spacing: -1.7px; line-height: 1.24; }
  .consumer-title br { display: none; }
  .consumer-description { font-size: 14px; margin-top: 12px; max-width: 310px; line-height: 1.65; }
  .consumer-mobile-start { display: inline-flex; margin-top: 14px; border: 0; padding: 0; background: none; color: var(--color-accent-text); font: inherit; font-size: 13px; gap: 6px; align-items: center; cursor: pointer; }
  .c-shell[data-experience="entry"] .c-vault { padding: 6px; border-radius: 22px; }
  .c-shell[data-experience="entry"] #custody-frame { height: 520px; }
  .c-shell[data-experience="entry"] .consumer-custody-note { font-size: 11px; margin: 8px 0 4px; }
  .c-shell[data-experience="entry"] .c-notice { padding: 14px 22px; font-size: 10px; text-align: left; }
  .c-shell[data-experience="entry"] .sidebar:has([data-nav="transfer"]) { flex-wrap: wrap; height: auto; min-height: 72px; padding-top: 16px; padding-bottom: 12px; gap: 12px; }
  .c-shell[data-experience="entry"] .sb-nav:has([data-nav="transfer"]) { order: 2; flex: 0 0 100%; margin: 0; padding: 0; }
  .c-shell[data-experience="entry"] [data-nav="transfer"] { padding: 8px 0; }
  .c-shell[data-experience="wallet"] .c-wallet-card .wc-total { font-size: 20px; }
}

.consumer-email-help { display: none; }
.c-shell[data-experience="entry"] .consumer-email-help { display: block; padding: 8px 12px; font-size: 12px; line-height: 1.7; color: var(--color-text-muted); }
.consumer-email-help summary { cursor: pointer; text-align: center; }
.consumer-email-help a { color: var(--color-accent-text); font-weight: 650; }
.consumer-email-help p { margin: 8px 0; }

/* Keep the words step on one screen. Small/zoomed viewports may still
   scroll naturally rather than clip words or block keyboard access. */
@media (min-width: 721px) and (max-height: 850px) {
  .c-shell[data-experience="entry"] .sidebar { height: 64px; }
  .c-shell[data-experience="entry"] .main { min-height: calc(100dvh - 64px); }
  .c-shell[data-experience="entry"] .c-content { padding-top: 12px; padding-bottom: 12px; }
  .c-shell[data-experience="entry"] .c-notice { padding-top: 10px; padding-bottom: 10px; }
  .c-shell[data-experience="entry"] #custody-frame { height: 480px; }
}
@media (max-width: 720px) {
  .c-shell[data-experience="entry"][data-ceremony="true"] .consumer-intro { display: none; }
  .c-shell[data-experience="entry"][data-ceremony="true"] .c-content { gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .c-shell[data-experience="entry"][data-ceremony="true"] .consumer-custody-note { display: none; }
}

/* COMBINE-E integration (measured: the words step scrolled the page by
   58 px at 390x844 / 375x812): the six-nav shell's incoming-device link
   wraps into a second header row on narrow entry pages. During an active
   create/recover ceremony it stays on the header row instead (icon and
   wordmark dropped, link and theme toggle kept), so the words, backup form
   and ready states keep fitting. Layout only; the link stays reachable. */
@media (max-width: 720px) {
  .c-shell[data-experience="entry"][data-ceremony="true"] .sidebar:has([data-nav="transfer"]) { flex-wrap: nowrap; height: 72px; min-height: 0; padding-top: 0; padding-bottom: 0; gap: 8px; }
  .c-shell[data-experience="entry"][data-ceremony="true"] .sb-nav:has([data-nav="transfer"]) { order: 0; flex: 0 1 auto; margin: 0 0 0 auto; padding: 0; }
  .c-shell[data-experience="entry"][data-ceremony="true"] [data-nav="transfer"] svg,
  .c-shell[data-experience="entry"][data-ceremony="true"] .sb-logo .wd { display: none; }
}

/* Design parity: C content surfaces; custody rail sizing stays in shell.css. */
.consumer-title { font-size: clamp(52px, 5.6vw, 76px); line-height: .98; letter-spacing: -2px; }
.consumer-title span { color: var(--consumer-amber); }
.consumer-kicker { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.c-shell[data-experience="entry"] #c-settings { display: none; }
#c-settings.on { color: var(--ink-accent); }
.c-market-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-5); margin-bottom: var(--space-5); }
.c-market-grid > .card { margin-bottom: 0; min-width: 0; }
.c-market-availability { min-width: 0; margin-bottom: var(--space-5); border-block: 1px solid var(--color-border); }
.c-market-availability > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 4px; color: var(--color-text-muted); font-size: 13px; cursor: pointer; list-style: none; }
.c-market-availability > summary::-webkit-details-marker { display: none; }
.c-market-availability > summary::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; }
.c-market-availability[open] > summary::after { content: '−'; }
.c-market-availability > summary:focus-visible { outline: 2px solid var(--consumer-focus); outline-offset: 3px; }
.c-market-availability .c-market-grid { margin-top: var(--space-4); }
.c-market-availability[open] .c-market-grid { display: grid; }
.c-market-value { margin: 8px 0; font-size: 32px; font-weight: 800; }
.c-market-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 116px; margin-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 13px; }
.c-market-allocation { padding: 16px 0; }
.c-market-allocation p { line-height: 1.65; margin-top: 8px; }
.c-pending-tag { display: inline-flex; flex: none; padding: 4px 9px; border-radius: var(--radius-full); background: var(--color-bg-subtle); color: var(--color-text-muted); font-size: 12px; white-space: nowrap; }
.c-dashboard-activity { margin-top: var(--space-6); }
.c-dashboard-activity > .card-h h2 { font-size: 20px; }
.c-dashboard-activity > .card-h { flex-wrap: wrap; gap: 12px; }
.c-asset-search { display: grid; gap: 8px; margin: 0 0 20px; font-size: 12px; font-weight: 650; color: var(--color-text-muted); }
.c-asset-search input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 10px 14px; background: var(--color-bg-subtle); color: var(--color-text); font: inherit; font-size: 14px; }
.c-asset-search input:focus-visible, .c-asset-details summary:focus-visible { outline: 2px solid var(--consumer-focus); outline-offset: 3px; }
.c-atable .atrow[hidden], #c-asset-search-empty[hidden] { display: none; }
.c-asset-details > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 700; }
.c-asset-details > summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--color-accent-text); }
.c-asset-details[open] > summary { margin-bottom: 16px; }
.c-asset-details[open] > summary::after { content: '−'; }
.c-detail-address { overflow-wrap: anywhere; min-width: 0; }
.c-settings-grid { display: grid; gap: var(--space-5); }
.c-settings-grid .card { margin: 0; }
.c-settings-grid .set-row { flex-wrap: wrap; gap: 12px; }
.c-settings-grid .sr-mid { min-width: 150px; }
.c-settings-grid .sr-t2 { line-height: 1.65; }
.c-settings-grid .btn, .c-asset-details .btn { min-height: 44px; }
.c-setting-value { color: var(--color-text-muted); font-size: 13px; }
.c-hfilter-empty { display: none; }
.c-hlist[data-loaded]:not(:empty):is([data-filter="evm"]:not(:has([data-chain="evm"])), [data-filter="sol"]:not(:has([data-chain="sol"])), [data-filter="btc"]:not(:has([data-chain="btc"])), [data-filter="ltc"]:not(:has([data-chain="ltc"]))) ~ .c-hfilter-empty { display: block; }
:root[data-theme="light"] .c-shell[data-experience="entry"] #custody-frame { background: #fff; }
@media (max-width: 1399px) { .c-market-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .consumer-title { font-size: 48px; line-height: 1; }
  .consumer-title br { display: block; }
  .consumer-title span { display: inline-block; }
  .c-shell[data-experience="entry"] .consumer-intro { position: relative; padding-right: 90px; }
  .c-shell[data-experience="entry"] .consumer-brand-art { display: block; position: absolute; right: 0; top: 0; width: 80px; height: 106px; margin: 0; }
  .consumer-description { font-size: 13px; }
  .c-settings-grid .sr-mid { flex-basis: 100%; }
  .c-market-grid { gap: var(--space-4); }
  .c-shell[data-experience="wallet"] .sb-foot { flex-wrap: wrap; }
  .c-shell[data-experience="wallet"] .sb-foot button { min-height: 44px; }
}
/* The controller's full TRON address must wrap at the 360px phone width. */
#app #account-address-tron { overflow-wrap: anywhere; }
/* There is one real wallet card; a carousel clip would cut off its C shadow. */
.c-shell[data-experience="wallet"] .wallet-row { overflow: visible; }

/* Send / Receive: C's paired coin and network pills. */
.c-network-field .pick-row { display:flex; flex-direction:row; gap:12px; }
.c-choice { position:relative; flex:1; min-width:0; }
.c-choice-trigger { width:100%; min-height:48px; gap:8px; font-weight:700; color:var(--color-text); }
.c-choice-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c-choice-trigger .pk-chev { margin-left:auto; }
.c-select-source { position:absolute; width:1px; height:1px; padding:0; border:0; clip-path:inset(50%); overflow:hidden; }
.c-choice-menu { position:absolute; top:calc(100% + 8px); left:0; width:max(100%,260px); max-width:calc(100vw - 32px); background:var(--wd-card); border:1px solid var(--color-border); border-radius:16px; box-shadow:0 16px 48px #0005; z-index:30; overflow:hidden; }
.c-choice:last-child .c-choice-menu { left:auto; right:0; }
.c-choice-heading { display:flex; justify-content:space-between; align-items:center; padding:16px; gap:12px; }
.c-choice-heading h3 { margin:0; font-size:16px; }
.c-choice-close { color:var(--color-text-subtle-aa); background:transparent; border:0; cursor:pointer; padding:6px; }
.c-choice-options { overflow-y:auto; max-height:360px; padding:0 8px 8px; }
.c-choice-option { display:flex; width:100%; align-items:center; gap:10px; padding:14px 12px; border:0; border-radius:10px; background:transparent; color:var(--color-text); text-align:left; font:inherit; cursor:pointer; }
.c-choice-option:hover, .c-choice-option.on { background:color-mix(in srgb, var(--color-accent) 14%, transparent); }
.c-choice-check { margin-left:auto; color:var(--color-accent); font-weight:800; }
.c-chain-balance-label { font-weight:500; color:var(--color-text-subtle-aa); }
.c-transaction .card { overflow:visible; }
@media(max-width:859px) {
  .c-network-field .pick-row { justify-content:center; gap:8px; }
  .c-choice-trigger { border-radius:999px; padding:10px 12px; font-size:12px; }
  .c-choice-menu, .c-choice:last-child .c-choice-menu { position:fixed; left:0; right:0; top:auto; bottom:0; width:100%; max-width:none; border-radius:24px 24px 0 0; padding-bottom:env(safe-area-inset-bottom); box-shadow:0 -24px 100vh #0008; }
  .c-choice-heading { padding:22px 20px 12px; }
  .c-choice-options { max-height:55vh; padding:0 12px 20px; }
  .c-choice-option { min-height:56px; }
  .c-transaction .send-card { display:flex; flex-direction:column; }
  .c-transaction .send-card > .card-h { order:-3; }
  .c-transaction .send-card > .c-amount-field { order:-2; text-align:center; }
  .c-transaction .send-card > .c-network-field { order:-1; }
  .c-amount-field .amt-input { font-size:40px; text-align:center; background:transparent; }
}

.c-choice-coin { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:var(--color-bg-subtle); color:var(--color-text); font-size:8px; }
.c-choice-coin img, .c-choice-coin svg { width:24px; height:24px; object-fit:contain; }

/* Keep canonical network and fund-type disclosures visible in the C shell. */
.c-shell[data-experience="wallet"] .topbar { height:auto; flex-wrap:wrap; }
.c-shell[data-experience="wallet"] #chain-nav { order:10; flex:1 0 100%; width:100%; min-width:0; overflow-x:auto; flex-wrap:nowrap; border-radius:12px; }
.c-shell[data-experience="wallet"] #chain-nav button { flex:0 0 auto; min-height:44px; }
.c-search-trigger { min-height:36px; font-size:12px; }
.c-search-trigger kbd { margin-left:6px; opacity:.65; }
.c-hero-nav { display:flex; gap:18px; align-items:center; margin-bottom:36px; grid-column:1/-1; }
.c-hero-link { padding:8px 0; background:none; border:0; color:var(--color-text-muted); font:inherit; font-size:13px; cursor:pointer; }
.c-hero-link:hover { color:var(--color-accent); }
.c-hero-link:last-child { margin-left:auto; }
.c-hero-ctas { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0 12px; }
.c-hero-ctas .btn { min-height:48px; padding:12px 22px; }
.consumer-caution { font-size:12px; line-height:1.6; color:var(--color-text-muted); }
.c-info-dialog { max-width:min(520px,calc(100vw - 32px)); width:100%; max-height:80dvh; overflow:auto; padding:24px; border:1px solid var(--color-border); border-radius:24px; background:var(--wd-card); color:var(--color-text); }
.c-info-dialog::backdrop { background:#0009; }
.c-info-dialog .card-h { display:flex; gap:16px; justify-content:space-between; }
.c-info-dialog p { line-height:1.65; margin:12px 0; }
.c-info-dialog details { margin:16px 0; }
.c-info-dialog summary { cursor:pointer; font-weight:700; }
.c-info-dialog input { width:100%; }
.c-command-results { display:grid; gap:4px; margin-top:16px; }
.c-command-option { text-align:left; padding:14px; border:0; border-radius:12px; background:transparent; color:var(--color-text); font:inherit; cursor:pointer; }
.c-command-option:hover, .c-command-option:focus-visible { background:var(--color-bg-subtle); outline:2px solid var(--color-accent); }
.c-mobile-nav { display:none; }
@media(min-width:1100px) {
  .c-shell[data-experience="entry"] .c-content { max-width:1400px; gap:32px; grid-template-columns:minmax(0,1.8fr) minmax(360px,1fr); }
  .consumer-intro.c-gate-card { display:grid; grid-template-columns:minmax(230px,1fr) minmax(150px,.8fr); align-items:center; }
  .consumer-intro > :not(.consumer-brand-art):not(.c-hero-nav) { grid-column:1; }
  .consumer-intro .consumer-brand-art { grid-column:2; grid-row:2/7; width:100%; height:340px; margin:0; }
  .consumer-title { font-size:clamp(54px,5.2vw,76px); }
}
@media(max-width:859px) {
  .c-shell[data-experience="wallet"] .sidebar { display:none; }
  body:has(.c-shell[data-experience="wallet"]) { padding-bottom:82px; }
  body:has(.c-shell[data-experience="wallet"]) .c-mobile-nav { display:grid; grid-template-columns:repeat(5,1fr); position:fixed; z-index:10; bottom:0; left:0; right:0; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); background:var(--wd-card); border-top:1px solid var(--color-border); }
  .c-mobile-nav button { min-height:52px; border:0; background:none; color:var(--color-text-muted); display:grid; justify-items:center; align-content:center; gap:3px; font-size:10px; cursor:pointer; }
  .c-mobile-nav button span { font-size:23px; line-height:1; }
  .c-mobile-nav button.on { color:var(--color-accent); }
  .c-shell[data-experience="wallet"] .topbar { padding:12px 16px; gap:8px; }
  .c-search-trigger kbd { display:none; }
  .c-shell[data-experience="wallet"] .tb-right { width:100%; }
  .c-shell[data-experience="wallet"] #custody-frame { scroll-margin-bottom:90px; }
  .c-hero-nav { gap:14px; margin-bottom:24px; }
  .c-shell[data-experience="entry"] .consumer-intro { padding-right:0; }
  .c-shell[data-experience="entry"] .consumer-brand-art { top:65px; right:0; width:100px; height:138px; }
  .consumer-description { max-width:calc(100% - 90px); }
  .c-hero-ctas .btn { flex:1; padding:12px 16px; }
}

/* P1 home/assets: actual balances, short rows and progressive disclosure. */
.c-details { margin:12px 0; color:var(--color-text-muted); font-size:12px; min-width:0; }
.c-details > summary { cursor:pointer; padding:8px 0; }
.c-details > p, .c-details .c-mono { overflow-wrap:anywhere; }
.c-details[open] > :not(summary) { margin-top:8px; }
.c-details .c-account-card { margin-bottom:0; }
.c-balance-presentation { min-width:0; }
.c-balance-presentation .c-details { margin:0; }
.c-readable-balance { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.c-balance-presentation[data-failed="true"] .c-readable-balance { color:var(--color-danger-text); font-size:12px; }
.c-wallet-actions { display:flex; gap:10px; width:100%; margin-top:12px; }
.c-wallet-actions .btn { flex:1; min-height:44px; }
.c-balance-eye { margin-left:auto; border:0; background:transparent; color:inherit; font:inherit; font-size:11px; cursor:pointer; }
.c-asset-tools { display:flex; align-items:center; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.c-asset-tools select { padding:10px; background:var(--wd-card); color:var(--color-text); border:1px solid var(--color-border); border-radius:10px; }
.c-asset-tools label { display:flex; gap:8px; align-items:center; font-size:12px; color:var(--color-text-muted); }
.c-dashboard-activity > .card-h .c-details { display:none; }
@media(max-width:859px) {
  .c-shell[data-experience="wallet"] .c-wallet-card.active { --consumer-focus:#352714; background:linear-gradient(135deg,#ffd575,#f2aa27) !important; border-color:#e8a222 !important; color:#352714; min-height:210px; padding:24px; }
  .c-shell[data-experience="wallet"] .c-wallet-card .wc-name, .c-shell[data-experience="wallet"] .c-wallet-card .wc-total, .c-shell[data-experience="wallet"] .c-wallet-card .wc-desc { color:#352714; }
  .c-shell[data-experience="wallet"] .c-wallet-card .wc-total { font-size:34px; }
  .c-wallet-actions .btn { color:#fff; background:#292722; border:0; box-shadow:none; }
  .c-wallet-actions .btn.ghost { color:#352714; background:#ffffff80; }
  .c-market-grid { display:none; }
  .c-addr-row .act-mid { flex-basis:calc(100% - 50px); }
  .c-addr-row > .rowbtn { flex:1; justify-content:center; }
}

/* P1 Send/Receive: keep user decisions visible; technical input aids fold. */
.c-recipient-tools { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.c-recipient-tools .btn { min-height:38px; padding:8px 12px; font-size:12px; }
.c-qr-video { width:100%; max-height:300px; object-fit:contain; margin-top:12px; }
.c-request-card { margin-top:24px; padding-top:20px; border-top:1px solid var(--color-border); }
.c-request-card h3 { margin-bottom:14px; font-size:16px; }
.c-request-card input { width:100%; }
.c-request-card .c-quick { margin-top:12px; }
.c-transaction[data-send-held="true"] .send-card > :not(.card-h):not(.c-network-field) { display:none; }
.c-transaction .recv-addr-card .a { overflow-wrap:anywhere; word-break:normal; }
.c-result-box[hidden] { display:none; }
#c-amount-cap-notice { font-size:13px; line-height:1.6; margin-top:8px; }
@media(max-width:859px) {
  .c-transaction .c-amount-field .amt-input { padding:8px 0; border:0; min-height:64px; font-size:44px; }
  .c-transaction .c-amount-field > .c-details { text-align:left; }
}

/* P1 settings: C rows, native dialogs and read-only configured networks. */
.c-preference-options { display:grid; gap:8px; }
.c-preference-options .btn { text-align:left; justify-content:space-between; }
.c-network-settings-list .set-row { gap:8px; flex-wrap:wrap; }
.c-network-settings-list .c-mono { overflow-wrap:anywhere; font-size:12px; }
.c-info-dialog > input + input { margin-top:12px; }
@media(max-width:720px) {
  .c-settings-grid .sr-mid { flex:1; min-width:0; }
  .c-settings-grid .set-row { flex-wrap:nowrap; }
  .c-settings-grid .btn { padding:8px 10px; font-size:12px; }
}

/* P1 history: filters preserve controller-owned records and unknown outcomes. */
.c-history-toolbar { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.c-history-toolbar .chips { flex:1 0 100%; }
.c-history-toolbar select { width:auto; }
.c-history-toolbar input { flex:1; min-width:160px; }
.c-hlist > li[hidden] { display:none !important; }
[data-history-kind]:is([data-history-kind="in"],[data-history-kind="swap"],[data-history-kind="vault"]) :is(.c-hempty,.c-hfilter-empty,.c-hloading,.hhead) { display:none; }
.hdetail > .c-details { width:100%; }
.hdetail > .c-details[open] { display:flex; flex-wrap:wrap; gap:10px; }
.hdetail > .c-details > summary { width:100%; }
.hamt .c-details { font-size:11px; color:var(--color-text-muted); }
@media(max-width:720px) { .c-history-toolbar .chips { flex-wrap:nowrap; overflow:auto; } .c-history-toolbar .chip { flex:none; } }

/* P1 service-dependent C surfaces: no synthetic prices, quotes or balances. */
.c-service-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; align-items:start; }
.c-swap-card { max-width:600px; }
.c-service-field { padding:20px; border-radius:20px; background:var(--color-bg-subtle); margin:12px 0; }
.c-service-field-main { display:flex; align-items:center; gap:12px; margin:12px 0; }
.c-service-picker { min-width:110px; }
.c-service-amount { width:100%; min-width:0; font:inherit; font-size:36px; color:var(--color-text); background:transparent; border:0; outline-offset:4px; }
.c-service-field .addr-input { width:100%; }
.c-service-reverse { display:block; margin:-8px auto; z-index:1; position:relative; }
.c-service-tabs { margin:14px 0; gap:8px; flex-wrap:wrap; }
.c-service-tabs .chip { font-size:12px; }
.c-service-chart { display:grid; place-items:center; min-height:220px; color:var(--color-text-muted); border:1px solid var(--color-border); border-radius:16px; margin:20px 0; }
.c-market-row { width:100%; display:flex; align-items:center; gap:14px; padding:18px 0; background:none; border:0; border-bottom:1px solid var(--color-border); color:var(--color-text); font:inherit; text-align:left; cursor:pointer; }
.c-market-symbol { min-width:55px; font-weight:800; }
.c-market-price { margin-left:auto; font-size:22px; }
.c-service-menu-row { display:flex; width:100%; justify-content:space-between; border:0; border-bottom:1px solid var(--color-border); background:none; color:var(--color-text); padding:18px 0; font:inherit; cursor:pointer; }
.c-service-menu-row::after { content:'›'; color:var(--color-text-muted); }
.c-sidebar-services { padding:8px 0; }
.c-sidebar-services > summary { padding:12px 14px; color:var(--color-text-muted); cursor:pointer; }
@media(max-width:1100px) { .c-service-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:720px) { .c-service-field { padding:16px; } .c-service-amount { font-size:32px; } .c-service-tabs .chip { padding:9px 12px; } }

/* P1 send amount interaction uses existing balance readers; no fee policy. */
.c-send-percentages { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; }
.c-send-percentages .chip { padding:8px 12px; font-size:12px; }
.c-send-keypad { display:none; }
.c-request-card .c-details .btn { margin:6px; }
@media(max-width:720px) {
  .c-send-keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:8px 0 18px; }
  .c-send-keypad .c-key { min-height:48px; border:0; border-radius:12px; font:inherit; font-size:23px; background:transparent; color:var(--color-text); cursor:pointer; }
  .c-send-keypad .c-key:hover { background:var(--color-bg-subtle); }
  .c-send-percentages { justify-content:center; }
}

.c-receipt-open { justify-self:end; margin-top:8px; }
.c-info-dialog .c-kv { display:grid; grid-template-columns:86px minmax(0,1fr); gap:12px; padding:10px 0; }
.c-info-dialog .c-kv .k { color:var(--color-text-muted); }
.c-info-dialog .c-mono { overflow-wrap:anywhere; }

.c-management-list { max-height:45vh; overflow:auto; }
.c-management-list .set-row { padding:12px 0; }
.c-info-dialog .field { display:grid; gap:8px; margin:12px 0; }
.c-info-dialog .field .addr-input { width:100%; }

/* Mobile's main tabs yield to transaction back navigation, as app-capy does. */
.c-mobile-back { display:none; }
@media(max-width:859px) {
  .c-mobile-back:not([hidden]) { display:grid; place-items:center; width:30px; height:34px; border:0; background:none; color:var(--color-text); font-size:30px; cursor:pointer; }
  body:has(.c-shell[data-experience="wallet"]:not([data-screen="account"]):not([data-screen="market"]):not([data-screen="balance"]):not([data-screen="settings"])) .c-mobile-nav { display:none; }
  body:has(.c-shell[data-experience="wallet"]:not([data-screen="account"]):not([data-screen="market"]):not([data-screen="balance"]):not([data-screen="settings"])) { padding-bottom:0; }
  .c-transaction .card > .card-h, .c-network-field > .flbl { display:none; }
  .c-choice-heading { position:relative; touch-action:none; }
  .c-choice-heading::before { content:''; position:absolute; width:36px; height:4px; border-radius:4px; background:var(--color-border); left:calc(50% - 18px); top:8px; }
  .c-choice-menu.c-expanded { height:calc(100dvh - 36px); }
  .c-choice-menu.c-expanded .c-choice-options { max-height:calc(100dvh - 122px); }
}

/* app-capy Send/Receive: compact paired pills on an unframed phone canvas.
   All changes are shell-only; custody rail/fact geometry is untouched. */
@media(max-width:720px) {
  .c-shell[data-experience="wallet"] .c-transaction .card { padding:4px; border:0; border-radius:0; background:transparent; }
  .c-transaction .c-network-field .c-choice { flex:0 1 auto; max-width:calc(50% - 4px); }
  .c-transaction .c-network-field .c-choice-trigger { min-height:44px; padding:5px 9px; gap:6px; font-size:13px; background:transparent; }
  .c-transaction .c-network-field .c-choice-coin,
  .c-transaction .c-network-field .c-choice-coin img,
  .c-transaction .c-network-field .c-choice-coin svg { width:22px; height:22px; }
  .c-transaction .c-amount-field { display:flex; flex-direction:column; margin-bottom:12px; }
  .c-transaction .c-amount-field > .flbl { order:1; margin:2px 0; font-size:12px; font-weight:500; }
  .c-transaction .c-amount-field .amt-row { justify-content:center; gap:8px; }
  .c-transaction .c-amount-field .amt-input { width:120px; min-height:56px; padding:0; font-size:32px; text-align:right; font-weight:700; }
  .c-transaction .c-amount-field .c-unit { padding:0; border:0; background:transparent; font-size:26px; color:var(--color-text-muted); }
  .c-transaction .c-send-percentages { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 16px; }
  .c-transaction .c-send-percentages .chip { min-height:44px; border-radius:12px; font-weight:700; padding:8px; }
  .c-transaction .c-send-percentages > :last-child { grid-column:1/-1; min-height:28px; padding:2px; border:0; background:transparent; color:var(--color-text-muted); }
  .c-transaction .c-recipient-field { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; padding:12px 16px; border-radius:18px; background:var(--color-bg-subtle); }
  .c-transaction .c-recipient-field .addr-input { background:transparent; border:0; padding:8px 0; font-size:16px; min-height:44px; }
  .c-transaction .c-recipient-field > .flbl { grid-column:1; grid-row:1; align-self:center; margin:0; }
  .c-transaction .c-recipient-field > .c-field-error { grid-column:1/-1; }
  .c-transaction .c-recipient-field > .addr-row { grid-row:2; grid-column:1/-1; }
  .c-transaction .c-recipient-tools { margin:0; align-items:center; justify-content:flex-end; grid-row:1; grid-column:2; }
  .c-transaction .c-recipient-tools .btn { min-height:44px; padding:8px 12px; }
  @supports(field-sizing:content) {
    .c-transaction .c-amount-field .amt-input { field-sizing:content; width:auto; min-width:1ch; max-width:calc(100% - 80px); }
  }
  .c-transaction .c-send-keypad { gap:4px; margin-bottom:16px; }
  .c-transaction .c-send-keypad .c-key { font-weight:650; }
  .c-transaction .btn.primary { background:#f5a623; color:#191106; box-shadow:none; }
}

/* Network-loss warnings are instructions, not placeholder captions.
   Scope to the parent send/receive view; never change custody/approval styles. */
.c-transaction .recv-wrap > .skeleton-note {
  display:flex; align-items:flex-start; gap:8px;
  padding:12px 14px; border:1px solid var(--color-border); border-radius:14px;
  font-size:14px; line-height:1.6; color:var(--color-text);
}
.c-transaction .recv-wrap > .skeleton-note .c-ic { flex:none; margin-top:5px; }
.c-transaction .c-recipient-field .addr-input:focus-visible {
  outline:2px solid var(--consumer-focus); outline-offset:4px;
}

/* Original C canvas: custody is a requested step, not a dashboard card.
   Keep the iframe mounted and its existing guard geometry when revealed. */
.c-shell[data-experience="wallet"][data-locked="false"]:not([data-vault-open="true"]) .c-content {
  grid-template-columns:minmax(0,1fr); padding-right:var(--space-8);
}
.c-shell[data-experience="wallet"][data-locked="false"]:not([data-vault-open="true"]) .c-vault { display:none; }
@media(max-width:859px) {
  .c-shell[data-experience="wallet"][data-locked="false"]:not([data-vault-open="true"]) .c-content { padding-right:var(--space-4); }
}
@media(min-width:860px) {
  .c-shell[data-experience="wallet"][data-screen="account"] .c-wallet-card.active { width:300px; min-height:150px; flex:none; }
  .c-shell[data-experience="wallet"][data-screen="account"] .c-market-grid { grid-template-columns:minmax(0,2.1fr) minmax(0,1fr); }
  .c-shell[data-experience="wallet"][data-screen="account"] .c-market-grid > .card { min-height:320px; }
  .c-shell[data-experience="wallet"][data-screen="account"] .c-market-empty { min-height:150px; }
}
@media(max-width:859px) {
  .c-shell[data-experience="wallet"][data-screen="account"] .c-market-grid { grid-template-columns:minmax(0,1fr); }
}
