/* Standalone King Pools; existing site top/menu/bottom frame stays intact. */
html body #sp-root{max-width:800px;margin:80px auto 110px;padding:0 16px;color:#fff;font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
html body #sp-root #chainBar{display:flex!important;max-width:100%;margin:8px 0 18px}
html body #sp-root *{box-sizing:border-box;min-width:0;word-break:normal;overflow-wrap:break-word}
html body #sp-root h1{font-size:30px;line-height:1.15;margin:16px 0 8px;color:#fff;font-family:inherit}
html body #sp-root :is(h2,h3,h4,p,label,strong,small,summary,dt,dd){color:#fff;font-family:inherit;text-shadow:none}
html body #sp-root :is(button,select,input){font:inherit;color:#fff;border:1px solid rgba(212,168,67,.32);border-radius:12px;background:linear-gradient(170deg,rgba(212,168,67,.08),rgba(15,11,4,.72) 20%,rgba(15,11,4,.8));padding:12px;max-width:100%;box-shadow:none;touch-action:manipulation}
html body #sp-root button:disabled{opacity:.5;cursor:not-allowed}
html body #sp-root select option{background:#0f0b04;color:#fff}
html body #sp-root :is(button[aria-selected=true],button[aria-pressed=true]){border-color:#d4a843}
html body #sp-root .sp-tabs{display:flex;gap:8px;margin:18px 0}
html body #sp-root .sp-tabs button{flex:1;padding:11px 6px}
html body #sp-root .sp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}
html body #sp-root :is(.sp-stats article,.sp-pool,.sp-type,#sp-form,#sp-create-settings){background:linear-gradient(170deg,rgba(212,168,67,.08),rgba(15,11,4,.72) 20%,rgba(15,11,4,.8));border:1px solid rgba(212,168,67,.32);border-radius:16px;padding:14px;margin:10px 0;backdrop-filter:blur(14px)}
html body #sp-root .sp-stats article{font-size:11px;padding:10px 8px;margin:0}
html body #sp-root .sp-stats strong{display:block;font-size:18px;font-weight:700;margin-top:8px}
html body #sp-root .sp-pool{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html body #sp-root .sp-pair{display:flex;align-items:center;gap:6px;flex-basis:100%}
html body #sp-root .sp-pair img,html body #sp-root .token-btn img{width:28px;height:28px;object-fit:contain;flex:none}
html body #sp-root .sp-pool p{flex-basis:100%;margin:0}
html body #sp-root .sp-pool button{margin-left:auto}
html body #sp-root .sp-percentages{display:flex;gap:6px;flex-basis:100%}
html body #sp-root .sp-percentages button{flex:1;margin:0;padding:8px 4px}
html body #sp-root .sp-type small{display:block;margin-top:4px}
html body #sp-root .sp-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
html body #sp-root .sp-chips small{border:1px solid rgba(212,168,67,.24);border-radius:20px;padding:4px 8px;font-size:11px}
html body #sp-root .sp-mode-row{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;margin:8px 0;padding:12px}
html body #sp-root .sp-mode-row small{font-size:12px}
html body #sp-root.sp-selecting :is(#sp-form-title,#sp-pool-sub,#sp-warning,#sp-form-more,#sp-form-tabs,#sp-access,#sp-form,#sp-create-settings,#sp-cost,#kp-native-venue){display:none!important}
html body #sp-root:not(.sp-selecting) :is(#sp-modes,.sp-type){display:none!important}
html body #sp-root #sp-change-mode{padding:8px;margin:8px 0}
html body #sp-root.sp-selecting #sp-change-mode{display:none!important}
html body #sp-root #sp-search{width:100%;margin:8px 0 14px}
html body #sp-root :is(#sp-chain-filter,#sp-portfolio-chain-filter){display:block;width:100%;margin:12px 0}
html body :is(#sp-root,#kxnSheet) .sp-letter{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid rgba(212,168,67,.4);border-radius:50%;color:#fff;background:rgba(255,255,255,.035);font:600 10px system-ui;flex:none}
html body #sp-root #sp-warning{color:#ffb46b}
html body #sp-root #panel-liquidity{background:none!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;display:block!important;animation:none!important}
html body #sp-root .liq-pair{display:flex;flex-direction:column;gap:12px;margin-top:18px}
html body #sp-root .swap-box{width:100%;margin:0;background:transparent!important;border-color:rgba(212,168,67,.25)!important;padding:12px!important}
html body #sp-root .swap-label{display:flex;gap:6px;flex-wrap:wrap;font-size:12px}
html body #sp-root .swap-input{width:100%;font-size:24px}
html body #sp-root .token-btn{display:flex!important;align-items:center;gap:8px;width:100%;margin-top:7px;background:transparent!important}
html body #sp-root .sp-token{display:block;margin:12px 0}
html body #sp-root [data-kp-create] label{display:block;margin:14px 0}
html body #sp-root [data-kp-create] select{width:100%;display:block;margin-top:8px}
html body #sp-root [data-kp-actions] > button:first-child{display:block;width:100%;margin:10px 0;border-color:#d4a843;font-weight:700}
html body #sp-root .kp-activation-glass{background:transparent!important;border:0!important;padding:0!important;margin:0!important}
html body #sp-root details{margin:16px 0;padding:10px;border:1px solid rgba(212,168,67,.2);border-radius:12px}
html body #sp-root :is([hidden]){display:none!important}
html body #sp-root [data-kp-balance]{color:#ff7070!important}
html body:is(body,#king-finish#king-finish#king-finish) #sp-original,html body #kxNew,html body #kxnHead,html body #tabBar,html body #statusBar{display:none!important}
html body .chain-wrap{max-width:800px;display:block!important;margin:12px auto;padding:0 16px}
html body .chain-hint{display:none!important}
html body #sp-root #kp-inline-tools{display:none!important}
html body:has(#sp-root) #sp-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin:12px 0}
html body:has(#sp-root) #sp-tools :is(#king-ai-launch,#king-music-tab,#kn-chat){position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:100%!important}
@media(max-width:380px){html body #sp-root{padding:0 12px}html body #sp-root .sp-stats strong{font-size:16px}html body #sp-root .sp-tabs{gap:5px}html body #sp-root .sp-tabs button{font-size:13px}}
/* Compact glass refinement; no changes to execution controls or raw amounts. */
html body #sp-root h1{display:flex;align-items:center;gap:12px;color:#fff!important}
html body #sp-root h1 img{border-radius:50%;object-fit:contain;flex:none}
html body #sp-root #chainBar{margin:12px 0;display:block!important;background:transparent!important;border:0!important;padding:0!important;position:relative;z-index:5}
html body #sp-root #sp-chain-picker{margin:0;padding:0;background:rgba(14,10,4,.65);backdrop-filter:blur(16px)}
html body #sp-root #sp-chain-picker>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:12px;cursor:pointer}
html body #sp-root #sp-chain-picker summary img{height:25px;width:25px;object-fit:contain}
html body #sp-root #sp-chain-options{display:grid;gap:4px;padding:8px;max-height:360px;overflow:auto}
html body #sp-root .sp-chain-row{display:flex;align-items:center;gap:9px;width:100%;padding:9px;text-align:left;background:transparent}
html body #sp-root .sp-chain-row img{width:25px;height:25px;object-fit:contain}
html body #sp-root .sp-chain-row span{flex:1}
html body #sp-root .sp-chain-row small{font-size:11px;flex:none}
html body #sp-root .sp-tabs button[aria-selected=true]{background:rgba(212,168,67,.12)!important;border-color:#d4a843!important;box-shadow:inset 0 -2px rgba(212,168,67,.75)!important}
html body #sp-root .sp-price-frame{display:block;position:relative;width:100%;margin-top:6px}
html body #sp-root .sp-price-frame input{display:block;width:100%}
html body #sp-root .sp-price-readable{position:absolute;inset:0;pointer-events:none;display:none;padding:12px;white-space:nowrap;overflow:hidden}
html body #sp-root .sp-price-frame[data-readable] .sp-price-readable{display:block}
html.king-one-look body:is(body,#king-finish#king-finish#king-finish) #sp-root .sp-price-frame[data-readable] input{color:transparent!important;-webkit-text-fill-color:transparent!important}
html body #sp-root #sp-chart{padding:12px;border:1px solid rgba(212,168,67,.28);border-radius:14px;background:rgba(12,9,4,.6);backdrop-filter:blur(12px)}
html body #sp-root .sp-chart-head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
html body #sp-root #sp-chart svg{display:block;width:100%;max-height:200px}
html body #sp-root #sp-chart .sp-tabs{margin:10px 0}
html body #sp-root .sp-other-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0;border-bottom:1px solid rgba(212,168,67,.2)}
html body #sp-root .sp-other-row img{border-radius:50%;object-fit:contain}
html body #sp-root .sp-other-row p,html body #sp-root .sp-other-row a{flex-basis:100%;margin:0;overflow-wrap:anywhere}
html body #sp-root .sp-other-row a{color:#fff;text-decoration:none}
html body #sp-root :is(.sp-type,#sp-form,#sp-create-settings){padding:11px}
html body #sp-root [data-kp-create] label{line-height:1.5}
html body #sp-root #sp-tools{margin:6px 0}
html body #sp-root #sp-review{display:block;width:100%;font-weight:700;border-color:#d4a843;margin:10px 0}
html body #sp-root [data-kp-burn-confirm]{width:100%;margin:8px 0}
html body #sp-root [data-kp-burn] small{display:block}
html body #sp-root [data-sp-tab="portfolio"] .sp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
html body #sp-root [data-sp-tab="portfolio"] .sp-stats strong{font-size:clamp(13px,3.8vw,18px);overflow-wrap:normal;word-break:normal;line-height:1.3}
