:root{color-scheme:light;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#37352f;background:#f7f7f5;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #f7f7f5;--card: #ffffff;--surface: #f7f7f5;--surface-hover: #f1f1ef;--line: #e3e2df;--line-strong: #d3d1cb;--muted: #787774;--text: #37352f;--accent: #2383e2;--accent-soft: #eaf3fb;--green: #2f8f63;--green-soft: #edf7f1;--yellow: #b07800;--yellow-soft: #fff6dc;--red: #d44c47;--red-soft: #fbeceb}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;font-size:16px;background:var(--bg)}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid rgba(35,131,226,.55);outline-offset:2px}.app-shell{min-height:100vh}.topbar{width:100%;height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);background:#ffffffd1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#fff;background:#37352f;font-size:17px;font-weight:800}.brand-name{font-size:16px;font-weight:700;letter-spacing:-.015em}.network-pill{padding:4px 8px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff;font-size:12px;font-weight:600}.wallet-button{min-height:38px;padding:0 14px;border:1px solid var(--line-strong);border-radius:7px;color:var(--text);background:#fff;box-shadow:0 1px 2px #0f0f0f0a;font-size:14px;font-weight:650;transition:background .15s,border-color .15s}.wallet-button:hover:not(:disabled){border-color:#b9b7b0;background:var(--surface)}.wallet-button:disabled{cursor:wait;opacity:.65}.main-content{width:min(100% - 28px,500px);margin:44px auto 0;padding-bottom:36px}.trade-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 4px 18px #0f0f0f0d}.card-header{min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 0 12px}.card-header h1{margin:0;font-size:18px;font-weight:700;letter-spacing:-.02em}.header-actions{display:flex;align-items:center;gap:7px}.zero-fee{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:6px;color:#256e4a;background:var(--green-soft);font-size:12px;font-weight:650}.zero-fee i{width:6px;height:6px;border-radius:50%;background:var(--green)}.settings-menu{position:relative}.settings-menu summary{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;color:var(--muted);list-style:none;-webkit-user-select:none;user-select:none;cursor:pointer}.settings-menu summary::-webkit-details-marker{display:none}.settings-menu summary:hover{color:var(--text);background:var(--surface-hover)}.settings-popover{width:278px;position:absolute;top:40px;right:0;z-index:8;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 30px #0f0f0f1f}.settings-popover>strong{display:block;margin-bottom:10px;font-size:13px}.slippage-options{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.slippage-options button{padding:7px 4px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff;font-size:12px;font-weight:650}.slippage-options button:hover{background:var(--surface)}.slippage-options button.active{color:#1f6fb2;border-color:#b7d6f2;background:var(--accent-soft)}.setting-divider{height:1px;margin:14px 0;background:var(--line)}.approval-option{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}.approval-option span{min-width:0}.approval-option b{display:block;margin-bottom:3px;font-size:13px}.approval-option small{display:block;color:var(--muted);font-size:12px;line-height:1.4}.approval-option input{width:34px;height:20px;flex:0 0 auto;position:relative;appearance:none;border:1px solid var(--line-strong);border-radius:999px;background:#d9d9d6;transition:background .15s,border-color .15s}.approval-option input:after{content:"";width:14px;height:14px;position:absolute;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0f0f0f33;transition:transform .15s}.approval-option input:checked{border-color:var(--accent);background:var(--accent)}.approval-option input:checked:after{transform:translate(14px)}.contract-field{margin-bottom:10px;padding:0}.contract-field label{display:block;margin:0 0 7px 1px;color:var(--muted);font-size:13px;font-weight:600}.contract-input-wrap{position:relative}#tokenAddress{width:100%;height:46px;padding:0 45px 0 12px;border:1px solid var(--line);border-radius:7px;outline:0;color:var(--text);background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;transition:border-color .15s,box-shadow .15s}#tokenAddress::placeholder{color:#a5a4a1}#tokenAddress:focus{border-color:#86b9e8;box-shadow:0 0 0 2px #2383e21f}.clear-button{width:28px;height:28px;position:absolute;right:8px;top:9px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:20px;line-height:1}.clear-button:hover{color:var(--text);background:var(--surface-hover)}.spinner{width:16px;height:16px;position:absolute;right:15px;top:15px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.token-info{min-height:20px;margin:6px 2px 0;color:var(--muted);font-size:12px;line-height:1.5}.token-info.success{color:var(--green)}.token-info.failure{color:var(--red)}.swap-stack{position:relative}.swap-box{min-height:126px;padding:15px;border:1px solid var(--line);border-radius:9px;background:var(--surface);transition:border-color .15s,background .15s}.swap-box:hover{background:#f4f4f2}.swap-box:focus-within{border-color:var(--line-strong);background:#fff}.output-box{margin-top:6px}.swap-box-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.text-button{padding:3px 4px;border:0;color:var(--accent);background:transparent;font-size:12px;font-weight:650}.text-button:hover{text-decoration:underline}.amount-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:8px}#amountInput{min-width:0;width:100%;padding:0;border:0;outline:0;color:var(--text);background:transparent;font-size:clamp(28px,7vw,34px);font-weight:600;letter-spacing:-.035em}#amountInput::placeholder{color:#b8b7b4}#amountOutput{min-width:0;overflow:hidden;color:#5f5e5a;font-size:clamp(26px,6.5vw,32px);font-weight:600;letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap}.token-pill{min-width:88px;max-width:150px;padding:9px 12px;overflow:hidden;border:1px solid var(--line);border-radius:7px;color:var(--text);background:#fff;font-size:14px;font-weight:700;text-align:center;text-overflow:ellipsis;white-space:nowrap}.usdc-pill{color:#1d65a6;border-color:#c7dff4;background:var(--accent-soft)}.token-placeholder{color:var(--muted);background:#fff}.balance-line{margin-top:10px;color:var(--muted);font-size:12px;text-align:right}.flip-button{width:38px;height:38px;position:absolute;top:calc(50% - 19px);left:calc(50% - 19px);z-index:3;display:grid;place-items:center;border:4px solid #fff;border-radius:8px;color:var(--text);background:#e9e9e7;font-size:17px;font-weight:700;transition:background .15s,transform .18s}.flip-button:hover{background:#dededb;transform:rotate(180deg)}.quote-panel{display:grid;gap:9px;padding:14px 3px 3px}.quote-panel>div{display:flex;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}.quote-panel strong{color:#565550;text-align:right}.quote-panel a{color:var(--accent)}.quote-panel a:hover{text-decoration:underline}.danger-text{color:var(--red)!important}.warn-text{color:var(--yellow)!important}.message{margin:10px 0 0;padding:10px 11px;border-radius:7px;font-size:13px;line-height:1.45}.message.error{color:#a53631;background:var(--red-soft)}.message.notice{color:#845b00;background:var(--yellow-soft)}.swap-button{width:100%;min-height:50px;margin-top:12px;border:1px solid #37352f;border-radius:8px;color:#fff;background:#37352f;font-size:15px;font-weight:700;transition:background .15s,transform .15s}.swap-button:hover:not(:disabled){background:#2f2d29;transform:translateY(-1px)}.swap-button:disabled{cursor:not-allowed;color:#9b9a97;border-color:#e8e8e5;background:#ededeb}.security-line{margin:10px 0 0;color:var(--muted);font-size:12px;text-align:center}.more-panel{margin-top:10px;border:1px solid transparent;border-radius:9px;color:var(--muted)}.more-panel[open]{border-color:var(--line);background:#fff}.more-panel>summary{padding:10px 13px;list-style-position:inside;font-size:12px;text-align:center;cursor:pointer}.more-panel>summary:hover{color:var(--text)}.more-content{padding:0 13px 13px}.contract-list{display:grid;padding-bottom:9px}.contract-list a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.contract-list a:hover span{color:var(--text)}.contract-list b{color:#5f5e5a;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:500}.history-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0;font-size:13px}.activity-log{display:grid;gap:7px;max-height:220px;overflow:auto}.empty-log{margin:0;font-size:12px}.log-item{padding:9px 10px;border-left:2px solid #9b9a97;border-radius:5px;background:var(--surface)}.log-item.success{border-color:var(--green)}.log-item.pending{border-color:var(--accent)}.log-item.warning{border-color:var(--yellow)}.log-item.error{border-color:var(--red)}.log-item small{color:var(--muted);font-size:12px}.log-item p{margin:4px 0 0;color:#5f5e5a;font-size:12px;line-height:1.45;word-break:break-word}.log-item a{display:inline-block;margin-top:5px;color:var(--accent);font-size:12px}.risk-note{margin:13px 12px 0;color:var(--muted);font-size:12px;line-height:1.55;text-align:center}.site-footer{margin-top:20px;color:#a09f9b;font-size:12px;text-align:center}.site-footer a{color:var(--muted);font-weight:650}.site-footer a:hover{color:var(--text);text-decoration:underline}.transaction-toast{width:min(360px,calc(100vw - 32px));position:fixed;top:84px;right:24px;z-index:20;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:11px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 30px #0f0f0f1f;opacity:0;pointer-events:none;transform:translateY(-8px);transition:opacity .2s ease,transform .2s ease}.transaction-toast.show{opacity:1;pointer-events:auto;transform:translateY(0)}.toast-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;color:#256e4a;background:var(--green-soft);font-size:15px;font-weight:800}.toast-content{min-width:0;display:grid;gap:3px}.toast-content strong{color:var(--text);font-size:14px;line-height:1.4}.toast-content span{overflow:hidden;color:var(--muted);font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.toast-content a{width:fit-content;margin-top:3px;color:var(--accent);font-size:12px;font-weight:650}.toast-content a:hover{text-decoration:underline}.toast-close{width:26px;height:26px;margin:-4px -4px 0 0;padding:0;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:20px;line-height:1}.toast-close:hover{color:var(--text);background:var(--surface-hover)}.hidden{display:none!important}.sr-only{width:1px;height:1px;position:absolute;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:560px){.topbar{height:62px;padding:0 14px}.brand-name{display:none}.main-content{width:min(100% - 20px,500px);margin-top:20px}.trade-card{padding:14px;border-radius:10px}.network-pill{margin-left:-3px}.transaction-toast{top:auto;right:10px;bottom:12px;width:calc(100vw - 20px)}}@media(max-width:380px){.zero-fee{display:none}.token-pill{min-width:76px;max-width:106px}.settings-popover{width:min(278px,calc(100vw - 38px))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
