/* SAGRIVO NEXT · Trust & Intelligence · shared with existing eagle-shield visual language */
#next-upgrade-root{max-width:1160px;margin:20px auto 34px;color:#eaf5fa;font-family:inherit}
#next-upgrade-root *{box-sizing:border-box}
.sn-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:185px;
 border-radius:22px;border:1px solid #31566b;overflow:hidden;
 background:radial-gradient(circle at 85% 25%,rgba(187,73,192,.15),transparent 42%),
 radial-gradient(circle at 2% 80%,rgba(54,201,221,.15),transparent 36%),
 linear-gradient(120deg,#0b1d30 4%,#14253d 65%,#171331);
 padding:clamp(22px,4vw,42px);box-shadow:0 18px 64px #02071050}
.sn-hero:after{content:"";position:absolute;right:-30px;top:-90px;width:330px;height:330px;pointer-events:none;opacity:.2;
 border:2px solid #65eff2;border-radius:50%;box-shadow:0 0 55px #29e2e855,inset 0 0 30px #d657cb44}
.sn-hero>div,.sn-beta{position:relative;z-index:1}
.sn-eyebrow{font-size:12px;letter-spacing:.18em;color:#81f5ee;font-weight:800;text-transform:uppercase}
.sn-hero h2{font-size:clamp(26px,3.4vw,42px);line-height:1.15;margin:12px 0 10px;letter-spacing:-.025em;color:#fff}
.sn-hero p{max-width:680px;color:#cbdde8;font-size:15px;line-height:1.6;margin:6px 0}
.sn-beta{font-size:12px!important;max-width:230px!important;text-align:right}
.sn-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:12px 17px;margin:14px 0;border:1px solid #2f5364;border-radius:13px;
 background:#0d2132;color:#d9edef}
.sn-status strong{font-size:13px}
.sn-status p{margin:0;color:#b4c9d3;font-size:12px}
.sn-status .sn-btn{margin-left:auto}
.sn-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:9px;background:#0a1b2a;border-radius:16px;border:1px solid #264354;margin:12px 0}
.sn-tab{flex:1 1 125px;min-height:44px;background:#12293b;color:#c5dbe8;border:1px solid #294c60;
 border-radius:11px;padding:10px 12px;font-weight:750;font-size:13px;line-height:1.3;transition:border-color .15s,background .15s}
.sn-tab:hover,.sn-tab:focus-visible{border-color:#55d4df;color:#fff}
.sn-tab.sn-active{color:#0b2530;background:linear-gradient(130deg,#80eced,#6be8c9);border-color:#a6ffff;box-shadow:0 4px 20px #26e2dd24}
.sn-panel{background:#102234;border:1px solid #305065;border-radius:19px;padding:clamp(18px,3vw,34px);min-height:220px;box-shadow:0 18px 42px #02091233}
.sn-content{display:grid;align-content:start;gap:16px}
.sn-heading{border-bottom:1px solid #335268;padding-bottom:14px;margin-bottom:4px}
.sn-heading h3{font-size:clamp(21px,2.5vw,28px);line-height:1.2;color:#f7fdff;margin:0 0 7px}
.sn-heading p{margin:0;font-size:14px;line-height:1.6;color:#bbcfda}
.sn-note{color:#bed2dc;font-size:14px;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}
.sn-foot{font-size:12px;color:#a2bfc9;line-height:1.5;padding:13px 8px}
.sn-message{color:#d0fff8;font-weight:700;font-size:13px;margin:8px 0}
.sn-warning{color:#ffd4a7!important;border-left:3px solid #eeb974;padding:10px 14px;background:#6a4a251d;border-radius:5px;font-size:14px}
.sn-progress{padding:10px 14px;font-weight:800;background:#133746;color:#99f3ea;border-radius:10px}
.sn-btn{background:#83e9de;color:#072733;border:1px solid #9df5f0;border-radius:10px;font-weight:770;padding:11px 16px;cursor:pointer;
 font-size:14px;min-height:42px;text-align:center}
.sn-btn:hover{filter:brightness(1.1)}
.sn-btn:disabled{opacity:.6;cursor:wait}
.sn-secondary{background:#1a374a;color:#e6f5fc;border-color:#3b6677}
.sn-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.sn-link{display:inline-flex;color:#82e7ea;text-decoration:underline;overflow-wrap:anywhere;min-height:35px;align-items:center;font-size:14px}
.sn-form{display:flex;flex-wrap:wrap;gap:10px}
.sn-form input{flex:2 1 290px}
.sn-form .sn-btn{flex:0 0 auto}
.sn-field{display:grid;gap:7px}
.sn-field span{color:#a8d3de;font-size:13px;font-weight:700}
.sn-form input,.sn-content input:not([type=checkbox]),.sn-content select{
 background:#071a29;color:#effbff;border:1px solid #477187;border-radius:10px;padding:12px 13px;
 max-width:100%;min-height:45px;outline-offset:3px;font-size:15px}
.sn-content input[type=search]{width:100%}
.sn-content input:focus-visible,.sn-content select:focus-visible{outline:2px solid #80e8ec}
.sn-output{display:grid;gap:10px;min-height:12px;overflow-wrap:anywhere}
.sn-output h4,.sn-content h4{margin:5px 0;font-size:17px;color:#f0fdff}
.sn-output strong{color:#d8f6fb}
.sn-output ul,.sn-list{margin:2px 0;padding-left:24px;display:grid;gap:8px;line-height:1.55;color:#d1e4eb}
.sn-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:9px}
.sn-check{display:flex;align-items:flex-start;gap:11px;padding:13px;border-radius:11px;border:1px solid #385469;
 background:#172e41;line-height:1.45;font-size:14px;cursor:pointer}
.sn-check input{accent-color:#67dedf;width:18px;height:18px;flex:0 0 18px;margin-top:2px}
.sn-check:hover{border-color:#6ae6e8}
.sn-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}
.sn-card{display:grid;align-content:start;gap:8px;background:linear-gradient(135deg,#112d40,#142439);padding:16px;
 border:1px solid #38566a;border-radius:12px;overflow-wrap:anywhere}
.sn-card strong{line-height:1.5;font-size:15px}
.sn-card h4{margin:0}
.sn-card p{font-size:13px;margin:0;color:#b7cbd6}
.sn-chip{display:inline-block;justify-self:start;background:#224459;border:1px solid #4b8895;padding:4px 8px;border-radius:7px;font-size:12px}
.sn-card .sn-link{align-self:end}
#next-upgrade-root :focus-visible{outline:2px solid #8df5f3;outline-offset:3px}
@media(max-width:700px){
 .sn-hero{display:block;min-height:initial}.sn-beta{margin-top:10px!important;text-align:left!important;max-width:100%!important}
 .sn-hero:after{width:180px;height:180px;top:-70px;right:-80px}
 .sn-tab{flex:1 1 calc(50% - 8px);font-size:12px}
 .sn-status .sn-btn{width:100%;margin:4px 0 0}.sn-form .sn-btn{width:100%;flex:1}
 .sn-inline-actions .sn-btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){.sn-tab{transition:none}}

.sn-emblem{position:relative;z-index:1;flex:0 0 94px;width:94px;height:94px;object-fit:contain;filter:drop-shadow(0 0 18px #54dde47f)}
@media(max-width:700px){.sn-emblem{width:70px;height:70px;display:inline-block;margin-bottom:8px}}

.next-research-title{font-size:20px;letter-spacing:-.015em;margin:35px 0 12px;color:#cce5ea;font-weight:750}
