/* Snigir Platform 2.2.4 — Master UI v1 single shell */
:root{--sp-bg:#03131f;--sp-panel:#071827;--sp-line:#19415c;--sp-text:#f5f8fc;--sp-muted:#a8c8e7;--sp-red:#ff2547;--sp-ok:#16ef9b}
*{box-sizing:border-box}
.sp2-master-header{height:84px;min-height:84px;display:flex;align-items:center;gap:22px;padding:0 28px 0 14px;background:#03131f;border-bottom:1px solid #17374c;position:sticky;top:0;z-index:20000;color:var(--sp-text);width:100%;font-family:Inter,Segoe UI,Arial,sans-serif}
.sp2-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;min-width:300px}.sp2-logo{width:84px;height:68px;object-fit:contain;object-position:center;border:0;background:transparent;flex:0 0 auto}.sp2-brand-text{font-size:27px;font-weight:850;line-height:1;white-space:nowrap}.sp2-brand-text .portal-red{color:var(--sp-red)}.sp2-app{display:block;margin-top:6px;font-size:14px;font-weight:500;color:#9dbbd6}
.sp2-nav{display:flex;align-items:center;gap:8px}.sp2-nav a{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border-radius:8px;color:#b6d5ee;text-decoration:none;border:1px solid transparent;white-space:nowrap;font-size:15px;font-weight:500}.sp2-nav a:hover{color:#fff;background:#0a1c2a;border-color:#214861}.sp2-nav a.active{color:#fff;background:#1a151f;border-color:#ff2948;box-shadow:0 0 0 1px #ff294822 inset}.sp2-spacer{flex:1}.sp2-theme{font-size:31px;color:#9fd2f6;line-height:1}.sp2-platform{font-size:15px;color:#9dbbd6;white-space:nowrap}.sp2-logout,.sp2-menu-btn{height:44px;padding:0 18px;border-radius:8px;border:1px solid #2e536e;background:#071827;color:#fff;font-size:14px;font-weight:700;cursor:pointer}.sp2-menu-btn{display:none;font-size:22px}
.sp2-mobile-menu{display:none;position:fixed;right:10px;top:64px;z-index:21000;width:235px;padding:9px;background:#071827;border:1px solid #294e69;border-radius:12px;box-shadow:0 18px 50px #000a;font-family:Inter,Segoe UI,Arial,sans-serif}.sp2-mobile-menu.open{display:grid}.sp2-mobile-menu a,.sp2-mobile-menu button{display:flex;width:100%;padding:12px;border:0;border-radius:8px;background:transparent;color:#dcecff;text-decoration:none;text-align:left;font:600 13px system-ui;cursor:pointer}.sp2-mobile-menu a.active{background:#17283a;color:#fff}.sp2-mobile-menu .meta{padding:9px 12px;color:#829fba;font-size:10px;border-top:1px solid #203d53;margin-top:4px}
.sp2-master-footer{width:min(1506px,calc(100% - 144px));min-height:66px;padding:0 4px;border-top:1px solid #17374c;display:flex;align-items:center;justify-content:space-between;color:#9dbbd6;font:14px Inter,Segoe UI,Arial,sans-serif;margin:auto auto 0}.sp2-master-footer b{letter-spacing:3px;font-weight:500}.sp2-heart{font-size:24px;color:#ff2547}.sp2-foot-right{display:flex;align-items:center;gap:13px}
body.sp2-shell-ready{min-height:100dvh!important;display:flex!important;flex-direction:column!important;background:#03131f!important}body.sp2-project-page>.app{width:100%!important;max-width:none!important;flex:1 1 auto!important;min-height:0!important;height:calc(100dvh - 84px - 66px)!important}
@media(max-width:1260px){.sp2-master-header{gap:10px;padding-right:12px}.sp2-brand{min-width:250px}.sp2-logo{width:64px;height:56px}.sp2-brand-text{font-size:22px}.sp2-nav{gap:2px}.sp2-nav a{padding:0 10px;font-size:12px}.sp2-theme{display:none}.sp2-platform{font-size:12px}}
@media(max-width:760px){.sp2-master-header{height:58px;min-height:58px;padding:0 9px;gap:8px}.sp2-brand{min-width:0;flex:1}.sp2-logo{width:50px;height:46px}.sp2-brand-text{font-size:16px}.sp2-app{font-size:9px;margin-top:3px}.sp2-nav,.sp2-platform,.sp2-logout,.sp2-theme{display:none}.sp2-menu-btn{display:inline-flex}.sp2-mobile-menu{top:54px}.sp2-master-footer{width:calc(100% - 22px);min-height:48px;margin:auto 11px 0;font-size:10px}.sp2-master-footer .sp2-foot-right{display:none}body.sp2-project-page>.app{height:calc(100dvh - 58px - 48px)!important}}
