/* JUP Staker Scanner — page layout on top of the shared StonkScope tokens. */
.jup-body{font-size:13px}
.jup-body [hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jup-topbar{height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(16px,4vw,44px);border-bottom:1px solid var(--softline);background:var(--bg);position:sticky;top:0;z-index:20}
.jup-brand{display:flex;align-items:center;gap:10px;font-size:19px;letter-spacing:-.6px;font-weight:650}
.jup-brand .brand-mark{width:27px;height:27px;color:var(--accent)}
.jup-brand em{font-style:normal;color:var(--accent)}
.jup-brand small{display:block;font-size:9px;letter-spacing:1.2px;color:var(--faint);font-weight:600;margin-top:2px}
.jup-top-actions{display:flex;align-items:center;gap:9px}.jup-top-actions .stonkb-token-cta{background:#223b1f;border-color:#5e873b;color:#d6f58b}.jup-top-actions .stonkb-token-cta span{font-size:10px;color:#d4e4c8}
.jup-network i{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
.jup-page{max-width:1180px;margin:auto;padding:34px clamp(16px,4vw,44px) 40px}
.jup-hero{max-width:760px;margin-bottom:26px}
.jup-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1.3px;font-weight:600;color:var(--accent);margin:0 0 12px}
.jup-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accentSoft)}
.jup-hero h1{font-size:clamp(30px,4.6vw,46px);line-height:1.05;letter-spacing:-1.6px;font-weight:600;margin:0 0 14px}
.jup-hero h1 em{font-style:normal;color:var(--accent)}
.jup-lede{font-size:15px;line-height:1.65;color:var(--muted);margin:0}

/* Rule builder */
.jup-rule-panel{padding:22px 24px 24px;margin-bottom:22px}
.jup-mode-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);margin-bottom:22px}
.jup-mode-tabs button{padding:8px 14px;border-radius:7px;font-size:12px;font-weight:550;color:var(--muted)}
.jup-mode-tabs button[aria-selected=true]{background:var(--panel);color:var(--text);box-shadow:0 1px 3px #0002}
.jup-builder{display:grid;grid-template-columns:1fr 1px 1fr;gap:26px;align-items:start}
.jup-divider{background:var(--softline);align-self:stretch}
.jup-filter-head{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.jup-filter-head>span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:600;background:var(--accentSoft);color:var(--accent)}
.jup-filter-head strong{display:block;font-size:14px}
.jup-filter-head small{font-size:10px;color:var(--faint)}
.jup-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.jup-preset{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);transition:border-color .15s,background .15s}
.jup-preset b{font-size:17px;font-weight:600;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.jup-preset span{font-size:9px;letter-spacing:.7px;color:var(--faint);text-transform:uppercase}
.jup-preset:hover{border-color:var(--faint)}
.jup-preset.active{border-color:var(--accent);background:var(--accentSoft);color:var(--accent)}
.jup-preset.active span{color:var(--accent)}
.jup-custom{display:flex;align-items:center;gap:9px;margin-top:11px;font-size:11px;color:var(--muted)}
.jup-custom input,.jup-custom select,.jup-advanced input,.jup-wallet-field input,#jup-wallets{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:9px 11px;color:var(--text);font-size:12px}
.jup-custom input{width:120px}
.jup-sentence{display:flex;align-items:center;gap:13px;margin-top:22px;padding:13px 15px;border:1px dashed var(--line);border-radius:11px;background:var(--panel2)}
.jup-sentence>div{flex:1;min-width:0}
.jup-sentence small{display:block;font-size:9px;letter-spacing:1px;color:var(--faint);font-weight:600}
.jup-sentence strong{font-size:13px;font-weight:550;line-height:1.45}
.jup-check{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accentInk);font-weight:700;flex-shrink:0}
.jup-advanced{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;margin-top:14px;padding:14px 15px;border:1px solid var(--softline);border-radius:11px}
.jup-advanced label{display:grid;gap:5px;font-size:12px;font-weight:550}
.jup-advanced label span{font-size:10px;font-weight:400;color:var(--faint)}
.jup-definition{display:grid;gap:4px;font-size:11px;color:var(--muted);align-content:center}
.jup-definition b{color:var(--text);font-weight:600}
.jup-input{margin-top:20px}
.jup-wallet-field{display:flex;gap:10px}
.jup-wallet-field input{flex:1;min-width:0;font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:12.5px;padding:12px 14px}
.jup-scan{min-height:44px;padding:0 18px;font-size:13px}
.jup-input-note{font-size:10px;color:var(--faint);margin:9px 0 0}
#jup-wallets{width:100%;resize:vertical;font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:12px;line-height:1.6}
.jup-cohort-actions{display:flex;align-items:center;gap:14px;margin-top:10px;flex-wrap:wrap}
.jup-cohort-actions .jup-input-note{margin:0}
.jup-checkbox{display:flex;align-items:center;gap:9px;font-size:11.5px;color:var(--muted);cursor:pointer}
.jup-checkbox input{width:15px;height:15px;accent-color:var(--accent);flex-shrink:0}

/* Results */
.jup-results{display:grid;gap:18px;margin-bottom:26px}
.jup-progress{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:11px;background:var(--panel);font-size:12px;color:var(--muted)}
.jup-progress .spinner{width:15px;height:15px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}
.jup-progress-bar{flex:1;height:5px;border-radius:3px;background:var(--panel3);overflow:hidden}
.jup-progress-bar i{display:block;height:100%;background:var(--accent);transition:width .3s}
.jup-verdict{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr));gap:13px}
.jup-verdict .stat-card{min-height:118px}
.jup-verdict .stat-card.featured{background:linear-gradient(116deg,var(--accentSoft),var(--panel) 74%)}
.jup-verdict .stat-card.fail{background:linear-gradient(116deg,rgba(242,163,163,.09),var(--panel) 74%)}
.jup-verdict .stat-card.unknown{background:linear-gradient(116deg,rgba(234,195,133,.09),var(--panel) 74%)}
.jup-sybil-card{border-color:var(--line)}
.jup-sybil-card.low{background:linear-gradient(116deg,rgba(192,245,138,.08),var(--panel) 74%)}
.jup-sybil-card.elevated,.jup-sybil-card.unknown{background:linear-gradient(116deg,rgba(234,195,133,.09),var(--panel) 74%)}
.jup-sybil-card.high{background:linear-gradient(116deg,rgba(242,163,163,.1),var(--panel) 74%)}
.jup-sybil-meter{height:5px;border-radius:4px;background:var(--panel3);overflow:hidden;margin:3px 0 8px}
.jup-sybil-meter i{display:block;height:100%;background:var(--accent);border-radius:inherit}
.jup-sybil-card.elevated .jup-sybil-meter i,.jup-sybil-card.unknown .jup-sybil-meter i{background:var(--gold)}
.jup-sybil-card.high .jup-sybil-meter i{background:var(--danger)}
.jup-sybil-details{margin-top:9px;color:var(--muted);font-size:10px;line-height:1.45}
.jup-sybil-details summary{cursor:pointer;color:var(--text);font-weight:600}
.jup-sybil-details ul{list-style:none;padding:0;margin:7px 0 0;display:grid;gap:5px}
.jup-sybil-details li{display:grid;gap:2px}
.jup-sybil-details li span,.jup-sybil-details p{color:var(--faint)}
.jup-sybil-details p{margin:8px 0 0}
.jup-stat-label{font-size:9px;letter-spacing:1px;color:var(--faint);font-weight:600;text-transform:uppercase}
.jup-stat-value{font-size:27px;line-height:1.2;font-weight:550;letter-spacing:-.8px;margin:9px 0 6px;font-variant-numeric:tabular-nums}
.jup-stat-value.small{font-size:19px}
.jup-stat-sub{font-size:10.5px;color:var(--muted);line-height:1.5}
.jup-verdict-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.jup-preset-row{display:flex;flex-wrap:wrap;gap:6px}
.jup-preset-row span{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;font-size:10px;font-weight:600;border:1px solid var(--line);color:var(--muted)}
.jup-preset-row span.ok{color:var(--accent);border-color:transparent;background:var(--accentSoft)}
.jup-preset-row span.no{color:var(--faint);text-decoration:line-through;text-decoration-color:var(--faint)}
.jup-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:18px;align-items:start}
.jup-chart{height:210px;padding:6px 16px 10px}
.jup-chart svg{width:100%;height:100%;overflow:visible}
.jup-chart .gridline{stroke:var(--softline)}
.jup-chart .axis-label{fill:var(--faint);font-size:9px}
.jup-chart .threshold{stroke:var(--gold);stroke-dasharray:4 4}
.jup-timeline td.right,.jup-timeline th.right,.jup-cohort-table td.right,.jup-cohort-table th.right{text-align:right;font-variant-numeric:tabular-nums}
.jup-timeline tr.unknown td{color:var(--faint)}
.jup-kind{display:inline-flex;align-items:center;gap:6px}
.jup-kind i{width:7px;height:7px;border-radius:50%;background:var(--faint)}
.jup-kind.up i{background:var(--accent)}.jup-kind.down i{background:var(--danger)}.jup-kind.zero i{background:var(--gold)}
.jup-coverage{padding:0 20px 18px}
.jup-coverage-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;border-top:1px solid var(--softline);font-size:11px}
.jup-coverage-row:first-child{border-top:0}
.jup-coverage-row span:first-child{color:var(--muted)}
.jup-coverage-row strong{font-weight:550;font-variant-numeric:tabular-nums;text-align:right}
.jup-coverage-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.jup-notes{margin:10px 0 0;padding:0;list-style:none;font-size:10.5px;color:var(--muted);display:grid;gap:5px}
.jup-notes li{padding-left:12px;position:relative}
.jup-notes li:before{content:'';position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:var(--gold)}
.jup-explorer{display:inline-flex;gap:6px;align-items:center;font-size:11px;color:var(--accent)}
.jup-explorer:hover{text-decoration:underline}
.jup-cohort-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 18px;border-top:1px solid var(--softline)}
.jup-cohort-toolbar .jup-cohort-summary{flex:1 1 100%}
.jup-cohort-summary{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:var(--muted)}
.jup-cohort-summary strong{color:var(--text);font-size:14px;font-weight:550;margin-right:4px}
.jup-cohort-buttons{display:flex;flex-wrap:wrap;gap:8px}
.jup-sort-pills{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.jup-sort-pills button{padding:5px 9px;border-radius:6px;font-size:10px;font-weight:550;color:var(--muted)}
.jup-sort-pills button.active{background:var(--panel);color:var(--text);box-shadow:0 1px 2px #0002}
.jup-wallet-link{color:var(--accent);font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:11px}
.jup-wallet-link:hover{text-decoration:underline}
.jup-table-scroll{overflow-x:auto}
.jup-discover-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 18px;border-top:1px solid var(--softline)}
.jup-discover-toolbar .jup-cohort-summary{flex:1 1 100%}
.jup-population-note{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--faint);padding:10px 20px 0}
.jup-population-note i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.jup-population-note.stale i{background:var(--gold)}
.jup-load-more{display:flex;justify-content:center;padding:14px}
.jup-verdict-chip{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;padding:4px 8px;border-radius:6px}
.jup-verdict-chip.ok{color:var(--accent);background:var(--accentSoft)}
.jup-verdict-chip.no{color:var(--danger);background:rgba(242,163,163,.09)}
.jup-verdict-chip.pending{color:var(--gold);background:rgba(234,195,133,.09)}

/* Methodology + limits */
.jup-method{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:8px 0 18px}
.jup-method article{padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.jup-method span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--accentSoft);color:var(--accent);font-size:11px;font-weight:600;margin-bottom:12px}
.jup-method h3{margin:0 0 8px;font-size:14px}
.jup-method p{margin:0;font-size:11.5px;line-height:1.65;color:var(--muted)}
.jup-limits{margin-bottom:26px}
.jup-limits ul{margin:0;padding:0 21px 20px;list-style:none;display:grid;gap:9px}
.jup-limits li{font-size:11.5px;line-height:1.65;color:var(--muted);padding-left:14px;position:relative}
.jup-limits li:before{content:'';position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.jup-limits li strong{color:var(--text)}
.jup-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--faint);padding-top:16px;border-top:1px solid var(--softline)}
.jup-footer a{color:var(--accent)}
.noscript{padding:24px;text-align:center}

@media(max-width:900px){.jup-builder{grid-template-columns:1fr}.jup-divider{display:none}.jup-verdict{grid-template-columns:repeat(2,minmax(0,1fr))}.jup-grid{grid-template-columns:1fr}.jup-method{grid-template-columns:1fr}.jup-advanced{grid-template-columns:1fr}}
@media(max-width:620px){.jup-topbar{height:auto;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.jup-network{display:none}.jup-verdict{grid-template-columns:1fr}.jup-wallet-field{flex-direction:column}.jup-scan{width:100%}.jup-mode-tabs{display:flex}.jup-mode-tabs button{flex:1}.jup-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}
