:root {
  color-scheme: light;
  --page: #f3f5f9;
  --surface: #fff;
  --surface-soft: #f8f9fc;
  --ink: #172033;
  --muted: #59667b;
  --line: #e2e6ee;
  --line-strong: #cfd5e1;
  --accent: #4c57d9;
  --accent-dark: #3944bd;
  --accent-soft: #eef0ff;
  --green: #137a5c;
  --green-soft: #e7f6f0;
  --amber: #9a6508;
  --amber-soft: #fff4dc;
  --red: #b84444;
  --red-soft: #fff0f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 8% -12%, #4c57d91f, transparent 30rem), var(--page); font-size: 13px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 3px solid #4c57d95c; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .52; }
::selection { background: #dce0ff; }
[hidden] { display: none !important; }
.shell { width: min(1520px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 42px; height: 42px; flex-shrink: 0; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #6973ec, #3e49c8); font-size: 17px; font-weight: 850; letter-spacing: -.04em; box-shadow: 0 10px 24px #3e49c83d; }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.chain-nav { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.chain-nav-item { display: grid; min-width: 190px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--ink); background: #ffffffe6; text-align: left; }
.chain-nav-item:hover { border-color: #b9beef; background: #fff; }
.chain-nav-item strong { font-size: 13px; }
.chain-nav-item span { color: var(--muted); font-size: 10px; }
.chain-nav-item.selected { border-color: #9299eb; color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 0 0 2px #4c57d914; }
.section-links { display: flex; flex: 1; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; padding: 0 6px; }
.section-links a { color: var(--muted); font-size: 12px; }
.section-links b { font-size: 10px; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; margin-left: 3px; }
.section-link { font-size: 11px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 15px; color: #536075; background: #fff; font-weight: 750; font-size: 13px; transition: background .15s, border-color .15s; }
.button:hover:not(:disabled) { background: var(--surface-soft); }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { border-color: var(--line-strong); color: #536075; background: #fff; }
.button.danger, .button.stop { border-color: #efcdcd; color: var(--red); background: #fff; }
.button.danger:hover:not(:disabled), .button.stop:hover:not(:disabled) { background: var(--red-soft); }
.button.ghost { border-color: transparent; color: var(--muted); background: transparent; }
.button.ghost:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.button.full { width: 100%; justify-content: space-between; }
.button.small, .button.mini { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: 5px 9px; color: #647083; background: #f0f2f6; font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.tag { display: inline-block; border-radius: 5px; padding: 4px 7px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; }
.subtle { color: var(--muted); font-size: 10px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.stat, .panel { border: 1px solid var(--line); border-radius: 15px; background: #fffffff0; box-shadow: 0 9px 27px #212a480d; }
.stat { min-width: 0; padding: 17px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; min-height: 20px; color: var(--muted); font-size: 11px; }
.stat-top>span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.stat-icon { color: #8d98b7; font-size: 15px; }
.stat-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; margin: 9px 0 6px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value>span { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stat-value small { font-size: 10px; font-weight: 500; color: var(--muted); }
.stat-foot { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.selected-foot { margin-top: 3px; color: #7b869a; }
.asset-value { color: var(--accent-dark); font-size: 20px; }
.overview-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #6d7a90; font-size: 10px; }
.notice { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #c7d3fb; border-radius: 9px; color: #3d4f82; background: #f4f6ff; font-size: 12px; line-height: 1.65; }
.notice>span { color: var(--accent); font-size: 16px; }
.notice strong { font-weight: 700; }
.notice.live { border-color: #c5e6d9; color: var(--green); background: #eff9f4; }
.layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr); gap: 14px; align-items: start; }
.column { display: grid; gap: 14px; min-width: 0; }
.panel { overflow: hidden; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 18px 20px; }
p { margin: 8px 0; color: var(--muted); }
.token-bar { padding: 13px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.token-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.token-label { display: flex; align-items: center; gap: 9px; cursor: text; }
.token-label strong { font-size: 12px; color: #35445e; }
.token-label small { display: inline; margin-left: 9px; font-size: 10px; color: var(--muted); font-weight: 400; }
.chain-icon { display: grid; width: 27px; height: 27px; flex-shrink: 0; place-items: center; border-radius: 8px; background: #fff1ca; color: #b88a19; font-size: 17px; }
.token-price { display: flex; align-items: center; gap: 7px; }
.token-price small { color: var(--muted); font-size: 10px; }
.token-price strong { color: var(--accent-dark); font-size: 12px; }
.token-entry { display: flex; align-items: stretch; gap: 9px; }
.contract-input { flex: 1; min-width: 0; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.contract-input:focus-within { border-color: #9299eb; box-shadow: 0 0 0 3px var(--accent-soft); }
.contract-prefix { color: #7b87a2; border-right: 1px solid var(--line); padding: 0 10px; font-size: 10px; font-weight: 750; }
.contract-input input { min-width: 0; width: 100%; flex: 1; border: 0; padding: 10px; background: transparent; border-radius: 0; box-shadow: none; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.contract-input button { border: 0; padding: 4px 10px; color: #8290ab; background: transparent; font-size: 20px; }
.contract-input button:hover { color: var(--accent-dark); }
.token-entry>.button { flex-shrink: 0; font-size: 11px; padding: 8px 12px; }
.token-help { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 9px; color: #758097; font-size: 10px; }
.token-help .pending { color: var(--amber); }
.token-help .invalid { color: var(--red); }
.network-tag { font-size: 9px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.tabs button { flex: 1; border: 1px solid transparent; border-radius: 6px; padding: 8px 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.tabs button.selected { color: var(--accent-dark); border-color: #d4d8f4; background: var(--accent-soft); }
.tabs button[data-kind="sell_target"].selected { color: var(--red); border-color: #f0d4d4; background: var(--red-soft); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 10px; }
.form-grid .wide { grid-column: span 2; }
label { display: block; min-width: 0; color: #526075; font-size: 12px; font-weight: 700; }
label>input, label>select, label>textarea { margin-top: 6px; width: 100%; }
input, select, textarea { border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #9299eb; box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #97a0b2; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-inner-spin-button { appearance: none; }
textarea { resize: vertical; }
.input-group { display: flex; min-width: 0; align-items: center; gap: 8px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.input-group:focus-within { border-color: #9299eb; box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group input { width: 100%; min-width: 0; padding: 9px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; font-weight: 500; }
.input-group select { border: 0; background: transparent; padding: 6px 0; box-shadow: none; font-size: 11px; }
.input-group span { font-size: 10px; font-weight: 400; color: #7a869c; white-space: nowrap; }
.strategy-explainer { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 10px 12px; border: 1px solid #d9dcfa; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.strategy-explainer p { margin: 0; font-size: 11px; line-height: 1.65; color: #576093; }
.flow-icon { font-size: 20px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.quick .panel-header { gap: 10px; }
.quick .muted { font-size: 11px; margin: 0 0 12px; }
.quick-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.quick-buttons button { position: relative; border: 1px solid #e8d5d5; border-radius: 10px; padding: 14px; text-align: left; color: var(--red); background: #fffafa; }
.quick-buttons button:hover:not(:disabled) { background: var(--red-soft); border-color: #d6abab; }
.quick-buttons strong { display: block; font-size: 25px; line-height: 1.3; font-weight: 800; }
.quick-buttons strong span { font-size: 15px; margin-left: 3px; }
.quick-buttons small { display: block; margin-top: 4px; color: #936464; font-size: 10px; }
.quick-buttons .arrow { position: absolute; right: 13px; top: 20px; color: #c08f8f; font-size: 20px; }
.quick .button.danger { background: var(--red-soft); }
.quick-note { margin-top: 11px; font-size: 10px; color: #876a6a; text-align: center; }
.quick-note>span { font-size: 7px; margin-right: 5px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; }
.settings-grid>label:last-child { grid-column: 1 / -1; }
.empty-state { display: flex; gap: 9px; align-items: center; justify-content: center; padding: 18px 0; font-size: 11px; color: #7e8ba0; }
.empty-state>span { font-size: 23px; }
.task-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.task-summary>div { min-width: 0; overflow-wrap: anywhere; }
.task-summary strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.task-summary small { margin-left: 7px; font-size: 11px; color: var(--muted); }
.task-meta, .task-message { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.task-meta { margin-bottom: 10px; }
.task-message { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface-soft); }
.progress-track { width: 100%; height: 6px; display: block; margin: 0 0 11px; appearance: none; border: 0; border-radius: 5px; overflow: hidden; background: #e8ebf4; }
.progress-track::-webkit-progress-bar { background: #e8ebf4; }
.progress-track::-webkit-progress-value { background: #7881e3; border-radius: 5px; }
.progress-track::-moz-progress-bar { background: #7881e3; }
.progress-panel .button.stop { font-size: 11px; min-height: 34px; }
.wallet-tools { display: flex; align-items: center; gap: 7px; }
.wallet-tools select { font-size: 11px; padding: 7px 9px; }
.wallet-tools .button { font-size: 11px; padding: 7px 10px; }
.wallet-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #d1d6e3 transparent; }
.wallet-scroll { max-height: 358px; }
.activity-panel .table-scroll { max-height: 380px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; white-space: nowrap; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
td { color: #4e5c73; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
.empty-cell { padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.wallet-scroll input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.wallet-name { font-weight: 650; color: #344157; font-size: 11px; }
.wallet-name small { display: block; margin-top: 3px; color: #7a879d; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.wallet-state { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-size: 10px; }
.wallet-state::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.wallet-state.ok { color: var(--green); }
.platform { display: inline-grid; width: 22px; height: 22px; flex-shrink: 0; place-items: center; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 800; }
.platform.gmgn { color: #288b63; background: #e8f5ed; }
.platform.debot { color: #7a64b5; background: #f0ebfb; }
td .platform { width: 19px; height: 19px; font-size: 10px; margin-right: 7px; }
.credential-panel, .activity-panel { margin-top: 14px; }
.connections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.connection-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; background: var(--surface-soft); }
.connection-heading { display: flex; align-items: center; gap: 10px; }
.connection-heading>.platform { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
.connection-heading h2 { margin: 0; font-size: 14px; }
.connection-type { font-size: 10px; font-weight: 400; color: #7a8699; margin-left: 6px; }
.connection-state { font-size: 11px; color: var(--muted); }
.connection-indicator { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #b3bccb; }
.connection-indicator.connected { background: var(--green); box-shadow: 0 0 0 4px #e2f2ea; }
.connection-body { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 13px; }
.connection-body>div:first-child { min-width: 0; }
.connection-body strong { font-size: 23px; font-weight: 800; margin-right: 7px; }
.connection-body span { color: var(--muted); font-size: 10px; }
.connection-body small { display: block; margin-top: 3px; color: #75829a; font-size: 10px; overflow-wrap: anywhere; }
.connection-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.connection-actions .button { font-size: 11px; padding: 7px 10px; }
.connection-actions .mini { font-size: 10px; padding: 5px 7px; }
.credential-note { margin-top: 12px; padding: 10px 12px; border: 1px solid #eadcae; border-radius: 9px; color: #795712; background: var(--amber-soft); font-size: 11px; line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 22px; color: #8c96a9; font-size: 10px; }
footer>span:first-child { white-space: nowrap; letter-spacing: .5px; }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 20px; padding: 28px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px #1f284b33; }
dialog::backdrop { background: #17203366; backdrop-filter: blur(4px); }
dialog h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
dialog p { font-size: 12px; line-height: 1.8; margin: 14px 0 18px; }
dialog label { margin: 14px 0; }
dialog .full { margin-top: 20px; }
dialog .help { color: var(--muted); font-size: 11px; }
#loginDialog { width: min(440px, calc(100% - 32px)); padding: 30px; }
.auth-brand h2 { font-size: 21px; }
.auth-brand p { margin: 3px 0 0; font-size: 11px; }
dialog .auth-title { margin: 27px 0 7px; font-size: 21px; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.close { color: #8591a6; font-size: 24px; border: 0; background: transparent; padding: 0 5px; }
.connection-help { border: 1px solid #d9dcfa; border-radius: 9px; padding: 11px 13px; color: var(--accent-dark); background: var(--accent-soft); }
.connection-help strong { font-size: 11px; }
.connection-help p { margin: 4px 0 0; font-size: 11px; color: #657097; }
.error { color: var(--red); font-size: 12px; margin-top: 12px; white-space: pre-wrap; }
.review-token { word-break: break-all; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-dark); background: var(--accent-soft); padding: 12px; border-radius: 9px; margin: 17px 0; }
.review-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row span { color: var(--muted); flex-shrink: 0; }
.review-row strong { text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.review-warning { padding: 12px; margin-top: 17px; border: 1px solid #eadcae; border-radius: 9px; background: var(--amber-soft); color: #795712; font-size: 11px; line-height: 1.75; }
.tx-link { color: var(--accent); font-size: 11px; }
#toast { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 90vw; width: max-content; padding: 12px 18px; border: 1px solid #d9dcfa; border-radius: 10px; color: var(--accent-dark); background: #fff; box-shadow: 0 8px 30px #26336126; font-size: 12px; }
@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .7fr); }
  .stat { padding: 14px; }
  .stat-value { font-size: 20px; }
  .asset-value { font-size: 18px; }
  .connection-actions { flex-direction: column; align-items: flex-end; }
  .token-entry { flex-wrap: wrap; }
  .contract-input { flex-basis: 100%; }
  .token-entry>.button { margin-left: auto; }
  .token-label small { display: none; }
}
@media (max-width: 1050px) {
  .layout { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .total-stat { grid-column: span 1; }
  .metrics .provider { grid-column: auto; }
  .control-column { grid-template-columns: 1fr 1fr; }
  .progress-panel { grid-column: 1 / -1; }
  .token-entry { flex-wrap: nowrap; }
  .contract-input { flex-basis: auto; }
  .token-label small { display: inline; }
}
@media (max-width: 720px) {
  .shell { width: min(1520px, calc(100% - 20px)); padding-top: 14px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .brand h1 { font-size: 20px; }
  .brand p { font-size: 11px; }
  .chain-nav { flex-wrap: wrap; }
  .chain-nav-item { flex: 1; min-width: 140px; }
  .section-links { flex-basis: 100%; justify-content: flex-start; gap: 20px; padding: 2px 1px; }
  .section-links a { font-size: 11px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .total-stat { grid-column: 1 / -1; }
  .total-stat .stat-value { font-size: 24px; }
  .total-stat .stat-foot { display: inline; margin-right: 10px; }
  .panel-header { padding: 15px 16px; gap: 10px; }
  .panel-body { padding: 16px; }
  .panel-header h2 { font-size: 15px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .form-grid .wide { grid-column: span 1; }
  .token-entry { flex-wrap: wrap; }
  .contract-input { flex-basis: 100%; }
  .token-entry>.button { width: 100%; }
  .network-tag { display: none; }
  .token-label small { display: none; }
  .control-column { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr 1fr 1.25fr; }
  .settings-grid>label:last-child { grid-column: auto; }
  .connections-grid { grid-template-columns: 1fr; }
  .connection-actions { flex-direction: row; align-items: center; }
  .wallet-selection { padding: 11px 16px; }
  .wallet-scroll { max-height: 330px; }
  .activity-panel .table-scroll { max-height: 340px; }
  footer { font-size: 9px; }
}
@media (max-width: 480px) {
  .top-actions { gap: 7px; }
  .stat { padding: 13px; }
  .stat-value { font-size: 20px; }
  .stat-foot { font-size: 9px; }
  .overview-meta { font-size: 9px; }
  .notice { font-size: 11px; padding: 10px 12px; }
  .token-bar { padding: 11px; }
  .token-heading { gap: 8px; }
  .token-price { flex-direction: column; align-items: flex-end; gap: 0; }
  .token-price small { font-size: 9px; }
  .token-price strong { font-size: 11px; }
  .token-help { font-size: 9px; }
  .contract-input input { font-size: 10px; padding: 11px 8px; }
  .contract-prefix { padding: 0 8px; }
  .contract-input button { padding: 4px 8px; }
  label { font-size: 11px; }
  .input-group { padding: 0 8px; gap: 6px; }
  .input-group input { font-size: 12px; }
  .form-actions .button { font-size: 12px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid>label:last-child { grid-column: 1 / -1; }
  .wallet-tools { width: 100%; justify-content: space-between; }
  .wallet-selection .subtle { font-size: 9px; }
  .connection-card { padding: 13px; }
  .connection-body { align-items: flex-start; }
  .connection-actions { flex-direction: column; align-items: flex-end; gap: 2px; }
  .connection-actions .button { font-size: 10px; padding: 6px 9px; }
  .connection-body small { font-size: 9px; }
  .connection-type { font-size: 9px; }
  dialog, #loginDialog { padding: 23px 20px; }
  dialog h2 { font-size: 18px; }
  .review-row { font-size: 11px; }
  footer { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
