:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color-scheme: light;
  --text: #24362c;
  --muted: #58664f;
  --page: #f5f6f2;
  --surface: #fff;
  --subtle: #f0f3e9;
  --balance: #e5ecd9;
  --border: #d6ddcf;
  --link: #39612b;
  --error: #a43e32;
  --accent: #203d2b;
  --focus: #5d863d;
  --space: 12px;
  --control: 44px;
  color: var(--text);
  background: var(--page);
}
:root[data-theme=dim] {
  color-scheme: dark;
  --page: #1e2924;
  --surface: #26342b;
  --subtle: #2f4034;
  --balance: #314b35;
  --text: #edf3e8;
  --muted: #bac9b3;
  --border: #566a57;
  --link: #c3e2a9;
  --error: #ffb1a3;
  --accent: #34593d;
  --focus: #c7de8b;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --page: #101612;
  --surface: #19221c;
  --subtle: #24332a;
  --balance: #263e2d;
  --text: #edf3e8;
  --muted: #bac9b3;
  --border: #526752;
  --link: #c3e2a9;
  --error: #ffb1a3;
  --accent: #34593d;
  --focus: #c7de8b;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: var(--accent); color: #fff; padding: 11px 18px; border-radius: 9px; font-size: 14px; font-weight: 650; min-height: var(--control); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(.94); }
.outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--surface); padding: 12px; border: 2px solid var(--focus); }
.skip-link:focus { top: 12px; }
.app-icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; padding: 37px 25px; background: #101f18; color: #b8c7b9; display: flex; flex-direction: column; overflow-y: auto; }
.logo { font-size: 35px; font-weight: 750; letter-spacing: -2px; color: #ecf1e6; line-height: 1.2; }
.logo span { color: #c7de8b; }
.logo-mark { display: block; width: 100%; max-width: 172px; aspect-ratio: 172 / 70; overflow: hidden; border-radius: 9px; }
.logo-mark img { display: block; width: 100%; height: auto; transform: translateY(-28%); }
.logo small { display: block; font-size: 10px; letter-spacing: 1.6px; color: #adbfaf; margin-top: 12px; }
.sidebar nav { margin-top: 55px; display: grid; gap: 11px; }
.sidebar nav a, .secondary-links a { padding: 12px 14px; font-size: 15px; border-radius: 9px; display: flex; gap: 12px; align-items: center; min-height: 48px; }
.sidebar nav a.active { background: #283c2c; color: #d7e8ad; }
.secondary-links { display: grid; gap: 6px; margin-top: 20px; border-top: 1px solid #344c3d; padding-top: 15px; }
#more-menu { display: none; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; font-size: 12px; }
.network-dot { color: #d1dec7; }
.network-dot:before { content: ""; display: inline-block; width: 7px; height: 7px; background: #c0d688; border-radius: 50%; margin-right: 8px; }
#rpc-status { overflow-wrap: anywhere; font-size: 12px; }
.shell { margin-left: 222px; }
header { min-height: 90px; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 15px 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.theme-control { position: relative; width: 132px; flex-shrink: 0; }
.theme-control select { margin: 0; padding: 10px 10px 10px 40px; }
.theme-control > span { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; }
.theme-control svg { display: block; width: 20px; height: 20px; }
.identity-content, .detail-content { max-width: 900px; margin: auto; }
.identity-tools { display: flex; justify-content: flex-end; margin-bottom: 16px; }
#lookup { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 540px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 4px 5px 4px 12px; background: var(--surface); }
#lookup input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; padding: 9px 4px; font-size: 16px; }
#lookup > span { color: var(--muted); }
#lookup button { background: var(--subtle); color: var(--text); flex-shrink: 0; padding: 9px 14px; }
#wallet-button { white-space: nowrap; }
main { max-width: 1280px; padding: 36px 32px; margin: auto; }
h1 { font-size: 30px; letter-spacing: -1px; margin: 0 0 10px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin: 0 0 18px; font-weight: 650; letter-spacing: -.3px; line-height: 1.4; }
h3 { font-size: 16px; margin: 0; line-height: 1.4; }
.eyebrow { color: var(--muted); letter-spacing: 1.7px; font-size: 12px; font-weight: 700; }
.subtitle, .muted, .note, .field-note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.subtitle { margin: 0; }
.field-note { margin: 7px 0; }
.heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 15px; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 25px; margin-bottom: 21px; min-width: 0; }
.balance-card { background: var(--balance); min-height: 234px; position: relative; overflow: hidden; }
.balance-card:after { content: "◇"; position: absolute; right: 20px; top: -23px; font-size: 220px; line-height: 1; color: #a3bd8060; pointer-events: none; }
.balance { font-size: 43px; font-weight: 600; letter-spacing: -2px; margin: 23px 0 5px; overflow-wrap: anywhere; }
.balance span { font-size: 16px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.address { font-family: ui-monospace, monospace; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.row { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.row > * { min-width: 0; }
.asset { display: flex; gap: 14px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--border); }
.asset:last-child { border: 0; }
.asset { position: relative; }
.asset-open { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border-radius: 8px; background: transparent; z-index: 1; }
.asset-open:hover:not(:disabled) { background: transparent; filter: none; }
.asset:has(.asset-open:hover) { background: var(--subtle); }
.asset a, .asset .remove-token { position: relative; z-index: 2; }
.asset > div { min-width: 0; overflow-wrap: anywhere; }
.coin, .avatar { display: flex; align-items: center; justify-content: center; width: 41px; height: 41px; border-radius: 50%; background: var(--subtle); color: var(--muted); font-size: 19px; flex-shrink: 0; }
.avatar { font-size: 15px; font-weight: 650; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.asset-icon { position: relative; overflow: hidden; background: transparent; }
.asset-icon img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.ethereum-icon img { border: 1px solid var(--border); padding: 3px; }
.asset .value { margin-left: auto; text-align: right; }
.asset h3 { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.asset-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-token { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; flex-shrink: 0; padding: 4px; margin: 0; background: transparent; border: 0; color: var(--muted); }
.remove-token .app-icon { width: 17px; height: 17px; }
.remove-token:hover:not(:disabled) { color: var(--error); background: var(--subtle); }
.identity-card .avatar { width: 52px; height: 52px; font-size: 18px; margin-bottom: 16px; }
.pill { padding: 5px 9px; font-size: 12px; background: var(--subtle); color: var(--muted); border-radius: 20px; white-space: nowrap; }
.inline-link { font-size: 14px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 27px 12px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.8; }
.empty strong { display: block; color: var(--text); margin-bottom: 7px; }
.activity { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.activity a { font-family: monospace; }
.activity { align-items: center; }
.activity-state { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.activity .speed-up, .activity .cancel-tx { padding: 6px 11px; min-height: 36px; font-size: 13px; }
.activity-history { margin: 0; font-size: 13px; padding-bottom: 12px; }
.activity-history a { display: inline-block; margin: 6px 12px 0 0; }
.status { color: var(--muted); }
.status.status-cancelled { color: var(--error); }
.error, .field-note.error { font-size: 14px; color: var(--error); line-height: 1.7; overflow-wrap: anywhere; }
.success { color: var(--link); font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: var(--subtle); color: var(--text); }
.tabs button.active { background: var(--accent); color: #fff; }
.post { padding: 24px; border-bottom: 1px solid var(--border); }
.post:last-child { border: 0; }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-head .meta { flex: 1; min-width: 0; }
.post-head a { overflow-wrap: anywhere; }
.post-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 17px; }
.post-actions button, .post-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; min-height: var(--control); min-width: var(--control); border-radius: 9px; }
.post-actions .selected { color: var(--link); background: var(--subtle); font-weight: 750; }
.post-list { padding: 0; overflow: hidden; }
.post .original { border: 1px solid var(--border); border-radius: 12px; background: var(--subtle); padding: 16px; margin: 13px 0; font-size: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0; }
.stats strong { display: block; font-size: 24px; }
.stats span { font-size: 14px; color: var(--muted); }
label { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin: 16px 0 7px; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 16px; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 105px; }
.rpc-list { margin-top: 22px; }
.rpc-group + .rpc-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.rpc-group h3 { margin: 0; }
.rpc-group > .row { flex-wrap: wrap; gap: 12px; }
.rpc-group .row button { padding: 8px 12px; }
.rpc-entry { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rpc-entry code { flex: 1; overflow-wrap: anywhere; font-size: 14px; min-width: 130px; }
.rpc-entry button { padding: 8px 10px; }
.health { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.health.good { background: #72925b; }
.health.bad { background: #c99867; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.security-option { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; cursor: pointer; color: var(--text); font-size: 16px; }
.security-option input { width: 20px; height: 20px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--focus); }
.security-option strong, .security-option .note { display: block; }
.security-option .note { font-weight: 400; margin-top: 4px; }
.blocked-social-link { color: var(--muted); cursor: default; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: 90px minmax(0, 1fr); font-size: 14px; gap: 15px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details dt { color: var(--muted); }
dialog { max-width: 560px; width: calc(100% - 32px); padding: 25px; border: 1px solid var(--border); border-radius: 17px; color: var(--text); background: var(--surface); max-height: 90dvh; overflow: auto; }
dialog::backdrop { background: #10201670; backdrop-filter: blur(3px); }
.modal-head h2 { margin: 0; }
.modal-navigation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
#close-modal { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; font-size: 24px; line-height: 1; width: var(--control); height: var(--control); padding: 0; display: grid; place-items: center; }
#close-modal svg { display: block; width: 24px; height: 24px; }
.modal-menu { display: grid; gap: 12px; margin-top: 22px; }
.modal-menu button { text-align: left; width: 100%; padding: 16px; }
.modal-menu strong, .modal-menu span { display: block; }
.modal-menu span { margin-top: 5px; font-weight: 400; font-size: 14px; color: var(--muted); }
.review { background: var(--subtle); border-radius: 10px; padding: 18px; margin: 20px 0; }
.review code { overflow-wrap: anywhere; font-size: 14px; }
.review .row { margin: 10px 0; font-size: 14px; align-items: start; }
.review .row strong { text-align: right; overflow-wrap: anywhere; }
.full { width: 100%; }
.copy-username { background: transparent; color: var(--link); font-size: 18px; padding: 6px; text-decoration: underline; text-underline-offset: 4px; }
.receive-address, .receive-username { text-align: center; }
.receive-username { font-size: 18px; font-weight: 650; }
.receive-username > span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.receive-qr { display: flex; justify-content: center; margin: 20px 0 8px; min-height: 224px; }
.receive-qr canvas { max-width: 100%; height: auto; background: white; border-radius: 12px; }
.recovery-words, .recovery-quiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.recovery-words li, .recovery-placeholder { background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 14px; overflow-wrap: anywhere; }
.recovery-words li span { display: inline-block; margin-right: 8px; color: var(--muted); }
.recovery-quiz label { margin: 0 0 7px; }
.recovery-placeholder span { display: block; color: var(--muted); font-size: 14px; }
.recovery-placeholder span + span { margin-top: 12px; letter-spacing: 2px; }
.help-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.help-index button { padding: 9px 12px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border: 0; }
.rich-text[id] { scroll-margin-top: 20px; }
.rich-text { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.rich-text img { max-width: 100%; max-height: 480px; min-height: 80px; border-radius: 10px; object-fit: contain; }
.rich-text a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rich-text pre { white-space: pre-wrap; overflow: auto; padding: 16px; background: var(--subtle); border-radius: 8px; }
.rich-text code { font-family: ui-monospace, monospace; }
.rich-text blockquote { border-left: 3px solid var(--border); margin-left: 0; padding-left: 16px; color: var(--muted); }
.rich-text table { display: block; overflow-x: auto; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: 7px; }
.rich-text h1 { font-size: 24px; }
.rich-text h2 { font-size: 21px; }
.rich-text h3 { font-size: 18px; margin: 24px 0 12px; }
.rich-text details summary { cursor: pointer; font-weight: 600; }
.social-identity { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.social-identity .note { margin: 7px 0 0; }
.social-identity-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.social-identity-title .inline-link { white-space: nowrap; }
.social-identity > button { flex-shrink: 0; }
.social-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.social-main { min-width: 0; }
.social-layout .heading { align-items: start; flex-wrap: wrap; }
.social-rail { position: sticky; top: 24px; }
.social-rail .card { padding: 22px; }
.recent-user { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-user:last-child { border: 0; }
.recent-user strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.recent-user small { display: block; font-size: 14px; color: var(--muted); }
.social-links { display: grid; gap: 15px; font-size: 15px; }
.clickable-post { cursor: pointer; }
.social-editor .composer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border); }
.editor-tools { display: flex; gap: 2px; margin: 0; flex-wrap: wrap; }
.editor-tools button { display: flex; align-items: center; justify-content: center; width: var(--control); height: var(--control); padding: 0; border-radius: 5px; background: none; color: var(--muted); font-size: 16px; }
.editor-tools button:hover { background: var(--subtle); }
.editor-tools svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.composer-tabs { display: flex; gap: 4px; }
.composer-tabs button { border: 1px solid transparent; border-radius: 20px; background: none; color: var(--muted); padding: 8px 12px; }
.composer-tabs .active { background: var(--subtle); border-color: var(--border); color: var(--text); font-weight: 650; }
.social-editor textarea { min-height: 120px; border: 0; background: transparent; padding: 14px 2px; border-radius: 0; }
.editor-preview { min-height: 120px; padding: 8px 2px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.composer-foot .actions { margin: 0; }
.composer-foot .full { width: auto; }
.composer-foot .field-note { margin: 0; }
.profile-card { padding: 0; overflow: hidden; }
.profile-cover { height: 175px; background: linear-gradient(115deg, #bdcfa2, #4d7251); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-inner { padding: 24px; }
.profile-inner > .row > .avatar { width: 78px; height: 78px; border: 4px solid var(--surface); font-size: 24px; margin-top: -52px; }
.profile-inner .actions { margin-top: 0; }
.pinned-label { display: inline-block; margin-top: 0; }
.comment-context > .inline-link { display: block; padding: 18px 24px 0; }
.hidden-post { background: var(--subtle); }
.social-layout .social-identity { flex-wrap: wrap; }
.social-layout .post-list:empty { display: none; }
#fee-controls { border: 1px solid var(--border); padding: 16px; border-radius: 10px; margin: 18px 0; min-width: 0; }
#fee-controls legend { font-size: 16px; font-weight: 650; padding: 0 6px; }
.fee-presets { display: flex; gap: 7px; flex-wrap: wrap; }
.fee-presets button { flex: 1; padding: 9px; }
.fee-presets .active { background: var(--accent); color: #fff; }
.fee-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.usd-value { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.balance-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.asset-usd, #eth-asset-usd { margin-top: 5px; }
.portfolio-total { font-size: 30px; letter-spacing: -1px; font-weight: 600; margin: 15px 0 8px; }
.portfolio-card .row h2 { margin-bottom: 0; }
.portfolio-card .muted { margin: 8px 0; }
.balance-card .balance-line, .balance-card .address, .balance-card .actions { position: relative; z-index: 1; }
.amount-heading { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 7px; }
.amount-heading label { margin: 0; }
.spaced-title { margin-top: 14px; }
.date-retry { font-size: 14px; padding: 6px 10px; }
.diagnostics { overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #203825; color: #edf4e1; border: 1px solid #496043; padding: 15px 23px; border-radius: 10px; font-size: 14px; z-index: 10; max-width: 90vw; }
footer { padding: 15px 32px 25px; color: var(--muted); font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
@media (min-width: 1200px) {
  header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(140px, 1fr); }
  .theme-control { grid-column: 1; justify-self: start; }
  #lookup { grid-column: 2; }
  #wallet-button { grid-column: 3; justify-self: end; }
}
@media (max-width: 1150px) {
  .dashboard, .settings-grid, .social-layout { grid-template-columns: minmax(0, 1fr); }
  .social-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .social-rail .card { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .sidebar { position: relative; width: 100%; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; overflow: visible; }
  .logo { font-size: 29px; }
  .logo-mark { width: 118px; }
  .logo small, .sidebar-bottom { display: none; }
  #more-menu { display: block; color: #d7e8ad; border-color: #496043; }
  .sidebar nav { grid-column: 1 / -1; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .sidebar nav a { justify-content: center; gap: 7px; padding: 10px 4px; font-size: 14px; }
  .secondary-links { display: none; grid-column: 1 / -1; margin-top: 12px; }
  .sidebar.secondary-open .secondary-links { display: grid; grid-template-columns: 1fr 1fr; }
  .shell { margin-left: 0; }
  header { padding: 16px 20px; }
  main { padding: 28px 20px; }
}
@media (max-width: 600px) {
  .sidebar { padding: 16px 12px; }
  .sidebar nav a { font-size: 13px; flex-direction: column; gap: 4px; }
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 12px; }
  .theme-control { grid-row: 1; grid-column: 1; }
  #wallet-button { justify-self: end; grid-row: 1; grid-column: 2; }
  #lookup { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  #lookup button { padding: 9px 12px; }
  main { padding: 25px 12px; }
  .heading { align-items: start; flex-wrap: wrap; }
  h1 { font-size: 28px; }
  .card { padding: 20px; }
  .post-list, .profile-card { padding: 0; }
  .balance { font-size: 36px; }
  .asset { flex-wrap: wrap; gap: 10px; }
  .asset > div:first-of-type { flex: 1; }
  .asset .value { min-width: 70px; }
  .remove-token { margin-left: 0; }
  .social-rail, .fee-fields { grid-template-columns: 1fr; }
  .social-identity { align-items: start; flex-direction: column; gap: 14px; }
  .profile-inner { padding: 18px; }
  .profile-cover { height: 140px; }
  .profile-inner .row { align-items: start; }
  .profile-inner .actions { justify-content: end; }
  .post { padding: 19px; }
  .recovery-words, .recovery-quiz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog { padding: 20px; width: calc(100% - 24px); }
  .composer-tabs { margin-left: auto; }
  .review .row { flex-wrap: wrap; }
  footer { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
