:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0b0d12; color: #f2f5f7; }
* { box-sizing: border-box; }
html, body { width: 780px; min-width: 780px; max-width: 780px; }
html.standalone, body.standalone { width: auto; min-width: 0; max-width: none; }
body.standalone .app { width: min(100%, 1040px); margin: 0 auto; }
body { margin: 0; }
.app { padding: 18px; }
header { margin-bottom: 18px; }
.eyebrow { margin: 0 0 5px; color: #a5f3bd; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.03em; }
h2 { font-size: 15px; }
.subtitle, .hint, footer, .summary { color: #a9b1bc; font-size: 12px; line-height: 1.45; }
.subtitle { margin: 6px 0 0; }
form, .result { border: 1px solid #242b36; border-radius: 12px; background: #121720; }
form { display: grid; gap: 12px; padding: 14px; }
label { display: grid; gap: 6px; color: #d8dee7; font-size: 12px; font-weight: 650; }
input, select { width: 100%; border: 1px solid #313a47; border-radius: 8px; background: #0c1017; color: #f6f8fb; padding: 9px; font: inherit; }
input:focus, select:focus { outline: 2px solid #67e8a2; outline-offset: 1px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid #2a3340; border-radius: 8px; }
legend { padding: 0 5px; color: #a9b1bc; font-size: 11px; }
.radio-row { grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding: 2px 0; }
.radio-row input { width: auto; margin-top: 2px; accent-color: #61e69a; }
.radio-row span { display: grid; gap: 2px; }
.radio-row small { color: #949eab; font-size: 11px; font-weight: 450; line-height: 1.35; }
button { border: 0; border-radius: 8px; padding: 10px 12px; background: #56d88d; color: #072212; cursor: pointer; font-weight: 800; }
button:hover { background: #78eeaa; }
button:disabled { cursor: wait; opacity: .65; }
.pool-card:disabled { cursor: not-allowed; opacity: .72; }
.secondary { width: 100%; margin-top: 11px; border: 1px solid #3c4858; background: transparent; color: #dce4ed; }
.secondary:hover { background: #202936; }
.search-button { margin: -2px 0 0; }
.workspace-button { width: auto; margin-top: 10px; }
.price-refresh-tools { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.price-refresh-tools .secondary { width: auto; margin: 0; }
.price-refresh-tools .status { margin: 0; }
.pool-picker { display: grid; gap: 9px; padding: 11px; border: 1px solid #2a3340; border-radius: 8px; background: #0c1017; }
.pool-list { display: grid; gap: 7px; max-height: 220px; overflow: auto; }
.pool-card { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 10px; border: 1px solid #303b49; border-radius: 8px; background: #141b25; color: #eef3f7; text-align: left; }
.pool-card:hover { border-color: #61e69a; background: #173024; }
.pool-card[data-selected="true"] { border-color: #61e69a; background: #173d2a; box-shadow: inset 4px 0 0 #61e69a, 0 0 0 1px rgba(97, 230, 154, .24); }
.pool-card strong, .pool-card small { display: block; }
.pool-card small { margin-top: 3px; color: #a9b1bc; font-size: 11px; font-weight: 500; }
.pool-fee { color: #9df3bd; font-size: 12px; font-weight: 800; }
.selected-pool { margin: 0; padding: 8px 10px; border-radius: 8px; background: #19212b; color: #a9b1bc; font-size: 12px; line-height: 1.35; }
.selected-pool[data-selected="true"] { background: #173024; color: #baf5ce; }
.token-info { min-height: 16px; margin: -4px 0 0; color: #9df3bd; font-size: 12px; line-height: 1.35; }
.token-mark { color: #ffb454; font-weight: 850; }
.token-name { color: #a5f3bd; font-weight: 700; }
.result { margin-top: 14px; padding: 14px; }
.execution-panel { margin-top: 14px; padding: 14px; border: 1px solid #242b36; border-radius: 12px; background: #121720; }
.batch-preview { margin-top: 10px; padding: 10px; border: 1px solid #2a3340; border-radius: 8px; background: #0c1017; color: #a9b1bc; font-size: 12px; line-height: 1.5; word-break: break-word; }
.batch-preview strong { color: #f2f5f7; }
.batch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.batch-actions .secondary { margin: 0; }
.rpc-settings { margin-top: 14px; border: 1px solid #242b36; border-radius: 12px; background: #121720; }
details { padding: 12px 14px; }
summary { cursor: pointer; color: #dce4ed; font-size: 12px; font-weight: 750; }
details p { color: #a9b1bc; font-size: 11px; line-height: 1.45; }
.settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-actions .secondary { margin-top: 0; }
.result-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pool-tools { display: flex; align-items: center; gap: 7px; }
.pool-tools select { width: auto; padding: 5px 7px; font-size: 11px; }
.badge { border-radius: 99px; background: #213c2d; color: #9df3bd; padding: 4px 8px; font-size: 11px; font-weight: 750; }
.badge[data-profile="aggressive"] { background: #482c1d; color: #ffc878; }
.summary { margin: 8px 0 12px; }
.table-wrap { max-height: 250px; overflow: auto; border: 1px solid #27303c; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 8px 7px; border-bottom: 1px solid #27303c; text-align: right; white-space: nowrap; }
th { position: sticky; top: 0; background: #1a212c; color: #acb6c3; font-size: 10px; text-transform: uppercase; }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
.hint { margin: 10px 0 0; }
.status { min-height: 16px; margin: 8px 0 0; color: #9df3bd; font-size: 11px; }
footer { margin: 13px 2px 0; font-size: 11px; }
