:where(button,a,summary,[role="button"],[role="checkbox"],[role="slider"]){cursor:pointer;transition:background-color 150ms,color 150ms,border-color 150ms,opacity 100ms}
:where(a):hover{opacity:.8}
:where(button,a,summary):active{opacity:.76}
:where(button,a,summary,[role="combobox"],[role="checkbox"],[role="slider"]):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
:where(button:disabled,[aria-disabled="true"]){cursor:not-allowed;opacity:.48}
:where(button:disabled,[aria-disabled="true"]):hover,:where(button:disabled,[aria-disabled="true"]):active{transform:none;opacity:.48}
[hidden]{display:none!important}
input{appearance:none;-webkit-appearance:none}
input[aria-invalid="true"]{border-color:var(--red)}
.lucide{flex-shrink:0;stroke-width:1.75}
.brand-icon{display:inline-block;object-fit:contain;flex:none;vertical-align:middle}
.hero-support .brand-icon{width:16px;height:16px}
.network-tag .brand-icon{margin-right:2px}
.risk{align-items:center}
.risk>.lucide{color:var(--muted)}
.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.address-control{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.address-control .icon-btn{flex:none}
.wallet-address-card{padding:16px;background:var(--bg);border-radius:9px;margin:20px 0}
.wallet-option>span:first-child{gap:14px}
.wallet-option .lucide{color:var(--muted)}
.wallet-option:hover .lucide{color:var(--accent)}
.wallet-option[aria-busy="true"]{justify-content:center}
.custom-select{position:relative;min-width:0}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;padding:12px 14px;color:var(--text);background:var(--bg);border:1px solid #5f756f;border-radius:8px;text-align:left;font:inherit}
.select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-trigger:hover:not(:disabled){background:var(--surface-2);border-color:var(--muted)}
.select-trigger[aria-expanded="true"]{border-color:var(--accent)}
.select-trigger[aria-expanded="true"]>.lucide{transform:rotate(180deg)}
.account-select .select-trigger{background:#d5e9e4;color:#24332f;border-color:transparent;font-weight:650;font-size:14px;min-height:58px}
.account-select .select-trigger:disabled{opacity:.72}
.ticket-selectors .select-trigger{min-height:37px;padding:8px 10px;font-size:12px;background:var(--surface-2)}
.select-popover{position:fixed;z-index:100;overflow-y:auto;background:var(--surface-2);border:1px solid #5f756f;border-radius:9px;padding:5px;box-shadow:0 12px 28px #0005;overscroll-behavior:contain}
.select-popover [role="option"]{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:40px;background:transparent;border:0;border-radius:5px;padding:10px;text-align:left;font-size:13px;color:var(--text)}
.select-popover [role="option"]:hover,.select-popover [role="option"]:focus{background:var(--surface-3);outline:none}
.select-popover [role="option"]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.select-popover [aria-selected="true"]{color:var(--accent)}
.custom-checkbox{display:flex;gap:9px;align-items:center;width:100%;padding:7px 0;background:none;border:0;text-align:left;min-height:40px;color:var(--text);font-size:12px;margin:13px 0}
.check-box{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #6d827d;border-radius:4px;background:var(--bg)}
.custom-checkbox[aria-checked="true"] .check-box{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.custom-checkbox:hover:not(:disabled) .check-box{border-color:var(--accent)}
.custom-slider{display:flex;align-items:center;position:relative;min-height:32px;margin:11px 0 0;touch-action:none;user-select:none}
.slider-track{height:4px;background:var(--surface-3);width:100%;position:relative;border-radius:2px}
.slider-fill{height:100%;background:var(--accent);border-radius:inherit}
.slider-thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:14px;height:14px;border-radius:50%;background:var(--accent);border:2px solid var(--accent)}
.custom-slider:not(.is-disabled):hover .slider-thumb{box-shadow:0 0 0 4px #a4b78025}
.control-help{font-size:11px;color:var(--muted);margin:-10px 0 12px}
.chart-canvas{display:flex;align-items:center;justify-content:center}
.chart-canvas .empty-state{padding:30px 18px;max-width:390px}
.empty-state p{margin-inline:auto;font-size:13px;white-space:normal}
.empty-state>.lucide{color:var(--muted)}
.orderbook .empty-state{padding:60px 15px;min-height:365px}
.orderbook .empty-state h3{font-size:16px}
.orderbook .empty-state p{font-size:12px}
.book-mid{color:var(--muted)}
.chart-toolbar>.muted{font-size:11px}
.chart-price strong.muted,.chart-price small.muted{color:var(--muted)}
.empty-table{overflow-x:auto}
.empty-table td[colspan]{white-space:normal}
.empty-table .empty-state{padding:28px 18px}
.empty-table .empty-state h3{font-size:16px}
.faq-list summary::after{content:none}
.faq-plus,.faq-minus{display:inline-flex;flex:none;color:inherit}
.faq-minus{display:none}
.faq-list details[open] .faq-plus{display:none}
.faq-list details[open] .faq-minus{display:inline-flex}
.faq-list summary:hover{color:#43776a}
.plan-status{margin-top:12px;font-size:13px}
.plan-controls{display:flex;gap:8px;margin-bottom:24px}
.pool-service-note{font-size:12px!important}
.faq-intro{margin-top:18px;font-size:15px}
.boot-skeleton{padding:20px;min-height:100vh}
.skeleton{background:var(--surface-2);border-radius:var(--radius);animation:skeleton-pulse 1.8s ease-in-out infinite}
.skeleton-header{height:60px;margin-bottom:20px}
.skeleton-summary{height:100px;margin-bottom:20px}
.skeleton-layout{display:grid;grid-template-columns:1fr 288px;gap:15px}
.skeleton-chart{height:490px}.skeleton-ticket{height:600px}
.wallet-skeleton{display:flex;align-items:center;gap:12px;margin-top:13px}
.skeleton-address{display:block;width:70%;height:24px;border-radius:5px}
.skeleton-button{display:block;width:30%;height:40px;border-radius:8px}
#wallet-progress{margin:18px 0;font-size:13px;color:var(--muted)}
.button-progress{display:inline-block;width:22px;height:4px;border-radius:2px;background:currentColor;animation:skeleton-pulse 1.2s ease-in-out infinite}
.gelato-toast{font-size:13px!important;line-height:1.45!important;box-shadow:0 5px 20px #0004!important}
.gelato-toast-description{color:var(--muted)!important}
.gelato-toast-success [data-icon]{color:var(--green)}
.gelato-toast-error [data-icon]{color:var(--red)}
.gelato-toast-close{background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;cursor:pointer!important;min-width:28px;min-height:28px}
.gelato-toast-close:hover{background:var(--surface-3)!important}
.gelato-toast-close:focus-visible{outline:2px solid var(--accent)!important;outline-offset:3px}
.gelato-toast-action{background:var(--accent)!important;color:var(--accent-ink)!important}
@keyframes skeleton-pulse{0%,100%{opacity:.65}50%{opacity:1}}
@media(max-width:700px){
  .ticket-selectors .select-trigger{min-height:44px;font-size:13px}
  .account-select .select-trigger{min-height:46px}
  .custom-checkbox{min-height:44px;font-size:13px}
  .custom-slider{min-height:44px}
  .select-popover [role="option"]{min-height:44px;font-size:14px}
  .check-box{width:20px;height:20px}
  .orderbook .empty-state{min-height:220px;padding:35px 20px}
  .book-cols{display:grid}
  .positions .empty-table .data-table{min-width:0}
  .positions .empty-table th{display:none}
  .positions .empty-table td[colspan]{position:static;box-shadow:none;padding:0}
  .positions .empty-table .empty-state{max-width:none;padding:28px 18px}
  .skeleton-layout{grid-template-columns:1fr}.skeleton-ticket{height:300px}
  .skeleton-chart{height:270px}.skeleton-header{height:170px}
  .gelato-toast-close{min-width:32px;min-height:32px}
}
@media(prefers-reduced-motion:reduce){.skeleton,.button-progress{animation:none}:where(button,a,summary,[role="button"],[role="checkbox"],[role="slider"]){transition:none}}

#main:focus { outline: none; }
