:root{--bg:#070817;--surface:#111226;--panel:#16172e;--line:#30314e;--text:#f7f7ff;--muted:#b6b7cd;--cyan:#69e5ff;--violet:#c3a1ff}
body.portal{background:radial-gradient(ellipse 100% 650px at 50% -10%,#21133f70,transparent 80%),#070817;color:var(--text)}
.portal .site-header{background:#090a1beF;border-bottom:1px solid #34304e;box-shadow:0 3px 30px #03040c38;position:relative;z-index:20}
.portal .site-header .shell-row{width:min(calc(100% - clamp(36px,6vw,96px)),1440px);min-height:84px;gap:clamp(18px,2vw,32px)}
.portal .brand img{width:204px;height:auto;mix-blend-mode:lighten;display:block}
.portal .site-header .brand{flex:none}
.portal .site-header nav{display:flex;align-self:stretch;align-items:center;justify-content:center;gap:3px;flex:1}
.portal .site-header nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 11px;border:1px solid transparent;border-radius:9px;font-size:14px;line-height:1.35;font-weight:700;color:#bfc1d6;white-space:nowrap;transition:background .18s,color .18s,border-color .18s}
.portal .site-header nav a svg{width:18px;height:18px;flex:none}
.portal .site-header nav a[aria-current=page]{color:#f7f2ff;background:#9e64ff18;border-color:#9e64ff55;box-shadow:inset 0 0 18px #9b68ff08}
.portal .site-header nav a:hover{color:#fff;background:#27233f;border-color:#4c416a}
.portal .site-header nav a[aria-current=page]:after{display:none}
.portal .site-header nav .shell-mobile-extra,.portal .site-header nav .shell-mobile-login{display:none}
.portal .tools{gap:8px;white-space:nowrap;font-size:14px;font-weight:700;flex:none}
.shell-search,.shell-login,.shell-account{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #41415f;border-radius:9px;line-height:1.3;transition:background .18s,border-color .18s}
.shell-search{width:42px;border-color:transparent;color:#c7cae1}
.shell-search:hover,.shell-login:hover{border-color:#70648e;background:#22213d;color:#fff}
.shell-login{padding:10px 12px;background:transparent}
.shell-account,.portal .btn:not(.secondary){color:#fff;background:linear-gradient(110deg,#8238dc,#5d4de0 60%,#3b78bd);border:1px solid #a687f2;box-shadow:0 3px 16px #873be01c}
.shell-account{padding:10px 14px;gap:8px}
.shell-account svg{width:18px;height:18px}
.shell-account:hover{background:linear-gradient(110deg,#9550e8,#6c60e9 60%,#428dcf);border-color:#c7b2ff}
.shell-account-short{display:none}
.portal #menubtn{width:42px;height:42px;padding:0;align-items:center;justify-content:center;border:1px solid #53516d;border-radius:9px;background:#16172a;flex:none}
.world-shortcuts{padding:14px 24px;display:flex;justify-content:center;gap:clamp(20px,3vw,48px);background:#0e0e23;border-bottom:1px solid #2c2943;color:#babbd1;flex-wrap:wrap}
.world-shortcuts[hidden]{display:none}
.world-shortcuts a{font-size:14px;font-weight:700;line-height:1.5}
.world-shortcuts a:hover,.world-shortcuts a[aria-current]{color:#88e7ff}
.portal .panel{border-color:#33334f;background:linear-gradient(135deg,#15142b,#101123)}
.portal .world-card{border-color:#45425e}
.portal .btn{border-radius:9px;min-height:46px;padding:12px 20px;font-size:14px;line-height:1.4}
.portal .btn.secondary{border-color:#5a5575;background:#16162b;color:#f0f0fa}
.portal .btn.secondary:hover{background:#24213d;border-color:#8978af}
.portal .eyebrow,.portal .breadcrumb{font-size:13px;line-height:1.5}
.portal .tag,.portal .pill{font-size:12px;line-height:1.5}
.portal .auxlink{font-size:14px}
.portal select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bcb9d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
.portal .site-footer{margin-top:64px;background:linear-gradient(180deg,#0c0d20,#080914);border-top:1px solid #34304e;box-shadow:none;font-size:14px}
.shell-footer-grid,.shell-footer-bottom{width:min(calc(100% - clamp(36px,6vw,96px)),1440px);margin-inline:auto}
.shell-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:clamp(24px,4vw,64px);padding-block:48px}
.shell-footer-intro .brand img{width:214px;max-width:100%}
.shell-footer-intro .footer-tag{font-size:17px;line-height:1.65;font-weight:400;letter-spacing:0;color:#c3c3d6;margin:18px 0}
.shell-preview-label{display:inline-flex;align-items:center;padding:6px 11px;border:1px solid #39364f;border-radius:6px;color:#bbb5d2;font-size:12px;line-height:1.5;letter-spacing:.02em;background:#181529}
.shell-footer-group{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.shell-footer-group h2{font:700 14px/1.5 Roboto,Arial,sans-serif;letter-spacing:0;color:#f2efff;margin-bottom:5px}
.shell-footer-group a{font-size:14px;line-height:1.5;color:#aeadc6}
.shell-footer-group a:hover,.shell-footer-bottom a:hover{color:#8be5ff}
.shell-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:22px;border-top:1px solid #29273e;color:#8f91ad}
.shell-footer-bottom p{font-size:13px;line-height:1.6}
.shell-footer-bottom>div{display:flex;flex-wrap:wrap;gap:20px;font-size:13px}
.auth-shell{max-width:1080px;margin:clamp(40px,6vw,90px) auto;display:grid;grid-template-columns:1fr 1fr;width:92%;border:1px solid #45415e;border-radius:18px;overflow:hidden;background:linear-gradient(140deg,#1c1534,#0d1023)}
.auth-art{min-height:470px;background:linear-gradient(0deg,#0c0426d4,transparent 45%),url(assets/portal-hero.webp) 12% center/cover;display:flex;align-items:end;padding:32px}
.auth-art img{width:210px;mix-blend-mode:lighten}
.auth-card{padding:clamp(26px,4vw,58px)}
.auth-card h1{font-size:clamp(36px,4vw,62px);margin-bottom:18px}
.auth-card p{color:var(--muted);font-size:16px}
.auth-card form{display:grid;gap:14px;margin:24px 0}
.auth-card input{background:#0b0d20;color:#fff;border:1px solid #56516e;border-radius:8px;padding:13px;font-size:16px}
@media(max-width:1330px){.portal .site-header .brand img{width:182px}.portal .site-header nav a{padding-inline:9px}.portal .site-header nav a svg{display:none}.portal .site-header .shell-row{gap:20px}.shell-account svg{display:none}}
@media(max-width:1160px){
 .portal .site-header .shell-row{min-height:76px}
 .portal .site-header .brand img{width:204px}
 .portal .site-header nav{display:none;position:absolute;top:100%;left:0;right:0;z-index:50;background:#101125;border-bottom:1px solid #514762;padding:20px max(24px,3vw);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;box-shadow:0 20px 35px #0005}
 .portal .site-header nav.open{display:grid}
 .portal .site-header nav a{justify-content:flex-start;padding:13px 14px;min-height:48px}
 .portal .site-header nav a svg{display:block}
 .portal .site-header nav .shell-mobile-extra{display:flex}
 .portal #menubtn{display:flex}
 .portal .tools{margin-left:auto}
 .world-shortcuts{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:14px max(24px,3vw);gap:28px;scrollbar-width:thin;scrollbar-color:#57506e #0e0e23}
 .world-shortcuts a{white-space:nowrap}
}
@media(max-width:760px){
 .shell-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px;padding-block:36px}
 .shell-footer-intro{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:12px 24px}
 .shell-footer-intro .footer-tag{grid-column:2;grid-row:1/3;margin:0;font-size:16px}
 .shell-preview-label{justify-self:start}
 .shell-footer-group{gap:12px}
 .shell-footer-bottom{align-items:flex-start;flex-direction:column;gap:12px}
 .portal .site-header nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .portal .site-header .shell-row{min-height:70px;width:calc(100% - 32px);gap:10px}
 .portal .site-header .brand img{width:151px}
 .portal .tools{gap:6px;font-size:14px}
 .shell-login{display:none}
 .portal .site-header nav .shell-mobile-login{display:flex}
 .shell-account{padding:10px 12px}
 .shell-account-full{display:none}
 .shell-account-short{display:inline}
 .shell-search{width:38px}
 .shell-search svg{width:20px;height:20px}
 .portal #menubtn{width:40px}
 .world-shortcuts{padding-block:13px}
 .portal .site-footer{margin-top:44px}
 .shell-footer-grid{grid-template-columns:1fr 1fr;gap:30px 22px}
 .shell-footer-intro{display:block}
 .shell-footer-intro .footer-tag{font-size:16px;margin:16px 0}
 .shell-footer-group:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:22px}
 .shell-footer-group:last-child h2{grid-column:1/-1}
 .shell-footer-group a{font-size:14px}
 .auth-shell{grid-template-columns:1fr;width:calc(100% - 36px)}
 .auth-art{min-height:160px;background-position:center 48%;padding:22px}
 .auth-art img{width:150px}
}
@media(max-width:370px){.portal .site-header .brand img{width:133px}.shell-search{width:34px}.portal .tools{gap:4px}.shell-account{padding-inline:10px}.portal .site-header .shell-row{width:calc(100% - 24px);gap:6px}}
@media(prefers-reduced-motion:reduce){.portal .site-header nav a,.shell-search,.shell-login,.shell-account{transition:none}}
