/* Админ-панель — стиль Rockstar Visual Toolkit Europe: чёрный, Rockstar Gold, белый; узкий курсив в заголовках,
   прямые углы со срезом, диагональная графика Original, нумерация разделов как в брендбуке. */
:root {
  --bg: #000; --panel: #121212; --panel2: #1b1b1a; --line: #2a2a28; --text: #fff; --mute: #8c8c88;
  --gold: #F9C213; --gold2: #F9C213; --green: #3ddc84; --red: #ff4d4d; --amber: #ffb020;
  --display: var(--rs-display); --cut: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 var(--rs-text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--gold); text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2c2c2a; } ::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--gold); color: #000; }

/* ---------- поля и кнопки */
.input { width: 100%; height: 48px; background: #0d0d0d; border: 1px solid var(--line); border-radius: 0; padding: 0 14px; outline: 0; transition: border-color .15s, background .15s; }
.input:hover { border-color: #3e3e3b; }
.input:focus { border-color: var(--gold); background: #111; }
.input::placeholder { color: #63635f; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background: #0d0d0d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F9C213' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
select.input option { background: #111; color: #fff; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px 0 22px; background: var(--gold); color: #000;
  font: 700 italic 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; font-synthesis: style; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); transition: background .15s, color .15s, transform .12s; }
.btn:hover { background: #fff; color: #000; }
.btn:active { transform: translateY(1px); }
.btn.dark { background: #1f1f1e; color: #fff; box-shadow: inset 0 0 0 1px #3a3a37; }
.btn.dark:hover { background: var(--gold); color: #000; box-shadow: none; }
.btn.red { background: rgba(255,77,77,.12); color: var(--red); } .btn.red:hover { background: var(--red); color: #000; }
.btn.sm { height: 34px; padding: 0 14px 0 12px; font-size: 15px; --cut: 8px; }
.btn.wide { display: flex; width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- вход: титульный слайд презентации */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #000; }
.login-r { height: 100vh; position: sticky; top: 0; }
.login-l { display: flex; flex-direction: column; justify-content: center; padding: 6vh 6vw; gap: 4px; min-height: 100vh; }
.login-lockup { width: 180px; height: auto; margin-bottom: 4vh; }
.login h1 { font-size: clamp(40px, 5vw, 78px); margin: 0; }
.login h1 .g { display: block; }
.login p { color: var(--rs-lgrey); font-size: 17px; margin: 18px 0 34px; max-width: 440px; }
.login form { max-width: 400px; display: grid; gap: 8px; }
.login .err { color: var(--red); min-height: 20px; font-weight: 600; }
.login-foot { margin-top: auto; padding-top: 6vh; letter-spacing: .4em; color: #d0d0cc; font-size: 13px; }
.login-r { position: relative; overflow: hidden; display: grid; place-items: center; }
.login-r img { width: min(86%, 620px); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: cansIn .9s cubic-bezier(.2,.9,.2,1) both; }
.login-r .rs-pp { position: absolute; right: 5vw; bottom: 6vh; font-size: 54px; }
@keyframes cansIn { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-r { order: -1; height: 34vh; position: relative; } .login-r img { width: 64%; } .login-r .rs-pp { font-size: 34px; right: 20px; bottom: 16px; }
  .login-l { min-height: auto; padding: 32px 22px 40px; } .login-lockup { width: 140px; margin-bottom: 26px; }
}

/* ---------- каркас */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); height: 100%; }
.side { background: #000; border-right: 1px solid var(--line); padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.side::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -10px; height: 210px; background: var(--rs-original) center / cover; opacity: .55; pointer-events: none; mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
.brand { padding: 0 8px 26px; display: grid; gap: 8px; }
.brand img { width: 168px; }
.brand .rs-label { color: var(--gold); letter-spacing: .26em; font-size: 10.5px; }
.side nav { display: grid; gap: 2px; }
.side nav button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 9px 10px; color: #a8a8a3; text-align: left; position: relative; transition: color .15s, background .15s, padding .15s; }
.side nav button i { font: 500 13px/1 var(--rs-text); font-style: normal; color: #55554f; width: 20px; letter-spacing: .04em; transition: color .15s; }
.side nav button span { font: 700 italic 21px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; font-synthesis: style; }
.side nav button:hover { color: #fff; padding-left: 14px; } .side nav button:hover i { color: var(--gold); }
.side nav button.on { background: var(--gold); color: #000; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.side nav button.on i { color: #000; }
.side .foot { margin-top: auto; display: grid; gap: 10px; position: relative; z-index: 1; }
.side-pp { font-size: 30px; margin: 6px 0 0 4px; }
.loadpill { background: rgba(0,0,0,.78); border: 1px solid var(--line); padding: 12px; cursor: pointer; transition: border-color .15s; }
.loadpill:hover { border-color: var(--gold); }
.loadpill .top { display: flex; justify-content: space-between; align-items: baseline; }
.loadpill .top span { font: 700 10.5px/1 var(--rs-text); color: var(--mute); text-transform: uppercase; letter-spacing: .2em; }
.loadpill .top b { font: 700 italic 22px/1 var(--display); }
.bar { height: 5px; background: #262624; margin-top: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s, background .3s; }
.lvl-high { --lvl: var(--amber); } .lvl-critical { --lvl: var(--red); } .lvl-ok { --lvl: var(--green); }

.main { min-width: 0; overflow-y: auto; padding: 28px 34px 70px; background: #070707; }

/* заголовок раздела: номер + белый заголовок + золотая подстрока (как «7.1 PRIMARY FONT») */
.head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 24px; padding: 20px 22px 20px 34px; background: #000; border: 1px solid var(--line); }
.head .ttl { display: flex; align-items: flex-start; gap: 14px; }
.head .num { font: 700 italic 44px/.9 var(--display); color: #fff; font-synthesis: style; }
.head h1 { margin: 0; font: 700 italic 44px/.9 var(--display); text-transform: uppercase; color: #fff; font-synthesis: style; }
.head h1 small { display: block; color: var(--gold); font-size: .56em; margin-top: 6px; letter-spacing: .01em; }
.head .sp { flex: 1; } .head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--mute); font: 700 10.5px/1 var(--rs-text); letter-spacing: .2em; text-transform: uppercase; align-self: flex-start; margin-top: 6px; }
.live::before { content: ""; width: 8px; height: 8px; background: var(--red); }
.live.on::before { background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- сетки и карточки */
.grid { display: grid; gap: 16px; } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .g11 { grid-template-columns: 1fr 1fr; }
.card { background: #0f0f0f; border: 1px solid var(--line); padding: 20px; min-width: 0; position: relative; transition: border-color .2s, transform .2s cubic-bezier(.2,.9,.3,1); }
.card:hover { border-color: #3c3c39; }
.card h3 { margin: 0 0 16px; font: 700 italic 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-synthesis: style; }
.card.link { cursor: pointer; } .card.link:hover { border-color: var(--gold); transform: translateY(-3px); }
.hint { color: var(--mute); font-size: 12.5px; }

/* KPI: цифры узким курсивом, первая плашка — золото */
.kpi { padding: 22px 22px 20px; overflow: hidden; }
.kpi .v { font: 700 italic 62px/.9 var(--display); font-variant-numeric: tabular-nums; font-synthesis: style; letter-spacing: .005em; }
.kpi .l { color: var(--mute); margin-top: 10px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: url(/brand/star.png) center / contain no-repeat; opacity: .08; transform: rotate(-12deg); transition: opacity .25s, transform .4s cubic-bezier(.2,1.4,.4,1); }
.kpi:hover::after { opacity: .22; transform: rotate(6deg) scale(1.1); }
.kpi.hot { background: var(--gold); border-color: var(--gold); color: #000; } .kpi.hot .l { color: rgba(0,0,0,.66); }
.kpi.hot::after { background-image: url(/brand/star-black.png); opacity: .14; mix-blend-mode: multiply; }
.flash { animation: flash .8s; } @keyframes flash { 0% { box-shadow: 0 0 0 2px var(--gold); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* график по часам */
.chart-card { display: flex; flex-direction: column; }
.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 200px; }
.bars .col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; transition: background .15s; }
.bars .stack { width: 100%; display: flex; gap: 3px; align-items: flex-end; flex: 1; }
.bars .stack i { flex: 1; min-height: 2px; background: var(--gold); transition: height .5s, opacity .15s; }
.bars .stack i + i { background: #4b4b47; }
.bars .col > span { font-size: 10.5px; color: var(--mute); transition: color .15s; }
.bars .col:hover { background: rgba(255,255,255,.04); } .bars .col:hover > span { color: #fff; }
.bars:hover .col:not(:hover) .stack i { opacity: .4; }
.bars .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); background: #000; border: 1px solid var(--gold); padding: 8px 12px; white-space: nowrap; display: grid; gap: 3px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
.bars .tip b { font: 700 italic 17px/1 var(--display); color: var(--gold); }
.bars .tip i { display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 6px; } .bars .tip i.b { background: #6a6a66; }
.bars .col:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.bars .col:first-child .tip { left: 0; transform: translate(0, 6px); } .bars .col:first-child:hover .tip { transform: none; }
.bars .col:last-child .tip { left: auto; right: 0; transform: translate(0, 6px); } .bars .col:last-child:hover .tip { transform: none; }
.legend { display: flex; gap: 14px; font: 500 12px/1 var(--rs-text); text-transform: none; letter-spacing: 0; color: var(--mute); } .legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--gold); } .legend i.b { background: #4b4b47; }
.chart-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.chart-foot b { display: block; font: 700 italic 28px/1 var(--display); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-foot span { color: var(--mute); font-size: 12px; }

/* ленты и списки */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); }
.feed .it { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid #1d1d1c; transition: background .15s, padding .15s; }
.feed .it:last-child { border: 0; }
.feed .it:hover { background: #171716; padding-left: 10px; }
.feed .it.new { animation: slideIn .45s both; } @keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }
.feed .em { width: 40px; height: 40px; background: #1a1a19; display: grid; place-items: center; font-size: 17px; flex: none; overflow: hidden; }
.feed .em .illo { width: 100%; height: 100%; }
.feed .gr { flex: 1; min-width: 0; } .feed .gr b, .feed .gr span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .feed .gr span { color: var(--mute); font-size: 12px; }
.pos { color: var(--gold); font: 700 italic 20px/1 var(--display); font-variant-numeric: tabular-nums; } .neg { color: var(--red); font: 700 italic 20px/1 var(--display); }
.hbar { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; cursor: default; transition: background .15s; }
.hbar:hover { background: #171716; } .hbar:hover b { color: var(--gold); }
.hbar div { height: 8px; background: #1f1f1e; overflow: hidden; } .hbar div i { display: block; height: 100%; background: var(--gold); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.links { display: grid; gap: 8px; }
.links a { display: flex; justify-content: space-between; align-items: center; background: #161615; padding: 13px 14px; color: #fff; font-weight: 600; border-left: 3px solid transparent; transition: background .15s, border-color .15s, padding .15s; }
.links a:hover { background: #1d1d1c; border-color: var(--gold); padding-left: 18px; } .links a span { color: var(--gold); font: 700 italic 16px/1 var(--display); }

/* ---------- таблицы */
.tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .tools .input { max-width: 340px; } .tools select.input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 700 10.5px/1 var(--rs-text); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #1b1b1a; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .12s, box-shadow .12s; } tbody tr:hover { background: #151514; box-shadow: inset 3px 0 0 var(--gold); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num b { font: 700 italic 19px/1 var(--display); }
.code { font-family: ui-monospace, Menlo, monospace; color: var(--gold); letter-spacing: .08em; }
.tag { display: inline-block; padding: 4px 9px; font: 700 10.5px/1 var(--rs-text); text-transform: uppercase; letter-spacing: .1em; background: rgba(61,220,132,.12); color: var(--green); }
.tag.red { background: rgba(255,77,77,.12); color: var(--red); } .tag.gold { background: var(--gold); color: #000; }
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 14px; color: var(--mute); }
.medal { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #1d1d1c; font: 700 italic 19px/1 var(--display); transition: transform .2s; }
.medal.m1 { background: var(--gold); color: #000; } .medal.m2 { background: #fff; color: #000; } .medal.m3 { background: var(--rs-lgrey); color: #000; }
tbody tr:hover .medal { transform: scale(1.1) rotate(-4deg); }

/* ---------- выезжающая панель */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; } .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: #0b0b0b; border-left: 3px solid var(--gold); transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.9,.25,1); z-index: 31; overflow-y: auto; padding: 28px; }
.drawer.open { transform: none; }
.drawer h2 { font: 700 italic 38px/.95 var(--display); text-transform: uppercase; margin: 0 0 10px; color: #fff; font-synthesis: style; }
.drawer .qr { width: 150px; height: 150px; background: #fff; padding: 8px; float: right; margin: 0 0 12px 14px; }
.drawer h3.hint, .drawer .hint[style*="uppercase"] { font: 700 italic 18px/1 var(--display) !important; color: var(--gold) !important; letter-spacing: .02em !important; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 9px 12px; margin: 18px 0; clear: both; } .kv span { color: var(--mute); }
.inline { display: flex; gap: 8px; } .inline .input { height: 42px; } .inline .btn { height: 42px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--gold); color: #000; padding: 13px 22px; font: 700 italic 17px/1 var(--display); text-transform: uppercase; transition: transform .25s; z-index: 50; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.toast.show { transform: translate(-50%, 0); } .toast.err { background: var(--red); color: #fff; }

/* ---------- зоны: карточки как слайды презентации */
.zone-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.zc { display: flex; flex-direction: column; gap: 14px; }
.zc-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.zc .illo { width: 112px; height: 112px; transition: transform .35s cubic-bezier(.2,1.5,.4,1); }
.zc:hover .illo { transform: scale(1.05) rotate(-2deg); } .zc:hover { border-color: var(--gold); }
.zc-n { font: 700 10.5px/1 var(--rs-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.zc h2 { margin: 6px 0 8px; font: 700 italic 32px/.95 var(--display); text-transform: uppercase; font-synthesis: style; overflow-wrap: anywhere; }
.zc-sum { font: 700 italic 20px/1 var(--display); color: var(--gold); text-transform: uppercase; } .zc-sum em { color: var(--red); }
.zc p { margin: 0; color: #b3b3ae; font-size: 13.5px; min-height: 2.8em; }
.zc .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.zc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zc-foot .st { flex-basis: 100%; color: var(--mute); font-size: 12px; } .zc-foot .st b { color: #fff; }
.zc.off { opacity: .45; }
.field { display: grid; gap: 6px; margin-bottom: 14px; } .field > span { color: var(--mute); font: 700 10.5px/1 var(--rs-text); text-transform: uppercase; letter-spacing: .18em; }
.uz-box { border: 1px dashed #3a3a37; padding: 14px 14px 2px; margin-bottom: 14px; } .uz-t { font: 700 italic 18px/1 var(--display); text-transform: uppercase; margin-bottom: 12px; } .uz-t span { display: block; font: 400 12px/1.4 var(--rs-text); text-transform: none; color: var(--mute); margin-top: 4px; }
label.ck { display: flex; align-items: center; gap: 8px; color: #c8c8c3; white-space: nowrap; cursor: pointer; } label.ck input { accent-color: var(--gold); width: 17px; height: 17px; }

/* ---------- супервайзеры */
.steps { list-style: none; counter-reset: st; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before { content: "0" counter(st); grid-row: span 2; font: 700 italic 40px/.9 var(--display); color: var(--gold); }
.steps li b { font: 700 italic 21px/1.05 var(--display); text-transform: uppercase; } .steps li span { color: #b3b3ae; grid-column: 2; }
.pw { display: flex; align-items: center; gap: 10px; background: #000; border: 1px solid var(--gold); padding: 12px 14px; flex-wrap: wrap; }
.pw > div { flex: 1; min-width: 160px; display: grid; gap: 4px; } .pw code { font: 700 22px/1.2 ui-monospace, Menlo, monospace; color: var(--gold); letter-spacing: .04em; transition: filter .2s; user-select: all; overflow: hidden; text-overflow: ellipsis; }
.pw code.blur { filter: blur(7px); user-select: none; }
.bot-qr { display: grid; justify-items: center; align-content: start; gap: 14px; } .bot-qr h3 { width: 100%; }
.bot-qr img { width: 200px; height: 200px; background: #fff; padding: 10px; transition: transform .25s cubic-bezier(.2,1.4,.4,1); } .bot-qr img:hover { transform: scale(1.04); }

/* ---------- шоу */
.show-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; } .show-tools .sp { flex: 1; }
.show-frame { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-height: calc(100vh - 260px); width: 100%; background: #000; }
.show-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; } .switch input { display: none; }
.switch i { width: 46px; height: 24px; background: #2c2c2a; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.switch input:checked + i { background: var(--gold); } .switch input:checked + i::after { transform: translateX(22px); background: #000; }

/* ---------- нагрузка */
.gauge { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.gauge .ring { width: 190px; height: 190px; position: relative; flex: none; }
.gauge .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .gauge circle { fill: none; stroke-width: 12; }
.gauge .tr { stroke: #1f1f1e; } .gauge .fg { stroke: var(--lvl, var(--green)); transition: stroke-dashoffset .8s, stroke .3s; }
.gauge .ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .ring b { font: 700 italic 60px/1 var(--display); } .gauge .ring span { color: var(--mute); font: 700 10.5px/1 var(--rs-text); letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
.gauge h2 { font: 700 italic 42px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; color: var(--lvl, var(--green)); }
.gauge p { color: var(--mute); margin: 0 0 4px; max-width: 440px; }
.meter .v { font: 700 italic 44px/1 var(--display); font-variant-numeric: tabular-nums; } .meter .v small { font: 600 12px/1 var(--rs-text); color: var(--mute); margin-left: 6px; font-style: normal; }
.meter .bar i { background: var(--lvl, var(--green)); } .meter .sub { color: var(--mute); font-size: 12px; margin-top: 8px; }
.meter:hover { border-color: var(--lvl, var(--green)); }
.spark { width: 100%; height: 70px; display: block; margin-top: 6px; } .spark path.l { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; } .spark path.a { fill: rgba(249,194,19,.12); }

/* ---------- адаптив */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3, .g11 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .side, .side nav, .main { min-width: 0; }
  .side { flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side::after, .side-pp, .brand .rs-label { display: none; }
  .brand { padding: 0; } .brand img { width: 104px; }
  .side nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; } .side nav::-webkit-scrollbar { display: none; }
  .side nav button { width: auto; flex: none; padding: 8px 10px; gap: 6px; } .side nav button:hover { padding-left: 10px; }
  .side nav button i { display: none; } .side nav button span { font-size: 17px; }
  .side .foot { margin: 0; display: flex; align-items: center; gap: 6px; }
  .loadpill { padding: 6px 8px; min-width: 66px; } .loadpill .top span { display: none; } .loadpill .top b { font-size: 16px; } .loadpill .bar { margin-top: 4px; }
  .main { padding: 16px 14px 60px; }
  .head { padding: 16px 16px 16px 30px; gap: 12px; } .head .num, .head h1 { font-size: 34px; } .head .acts { width: 100%; } .head .acts .btn { flex: 1; }
  .kpi .v { font-size: 44px; } .chart-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zc-top { grid-template-columns: 88px minmax(0, 1fr); } .zc .illo { width: 88px; height: 88px; } .zc h2 { font-size: 26px; }
  .zone-cards { grid-template-columns: 1fr; }
  .tools .input { max-width: none; flex: 1 1 100%; } .tools select.input { flex: 1; }
  .gauge .ring { width: 150px; height: 150px; } .gauge .ring b { font-size: 46px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .kpi { padding: 16px; } .kpi .v { font-size: 36px; } .card { padding: 16px; } #logout { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.card:has(> table) { overflow-x: auto; }
.head .ttl, .head h1 { min-width: 0; } .head h1 small { overflow-wrap: anywhere; }
.show-tools > * { min-width: 0; }
@media (max-width: 900px) { .show-tools .hint { flex-basis: 100%; } .show-tools .btn { flex: 1; } .show-frame { max-height: none; } }
@media (max-width: 520px) { .meter .v { font-size: 34px; } .meter .v small { display: block; margin: 6px 0 0; } }

/* ---------- гостевые ссылки */
.guests { margin-bottom: 16px; }
.guest { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; border-left: 3px solid var(--gold); }
.guest .gqr { width: 132px; height: 132px; background: #fff; padding: 8px; }
.guest h3 { margin: 6px 0 4px; font-size: 26px; }
.guest .hint { margin: 0 0 10px; }
.guest .gurl { display: block; font: 600 13px/1.35 ui-monospace, Menlo, monospace; color: var(--gold); background: #000; border: 1px solid var(--line); padding: 9px 10px; overflow-wrap: anywhere; user-select: all; margin-bottom: 10px; }
.guest .gb { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .guest { grid-template-columns: 1fr; } .guest .gqr { width: 150px; height: 150px; } }

/* рейтинги: вуз — главное, имя под ним */
b.uni { font: 700 italic 17px/1.05 var(--display); text-transform: uppercase; color: var(--gold); letter-spacing: .01em; }
