/* v3: servers, roles editor, settings, notices */
.g3 { grid-template-columns: repeat(3, 1fr); }
.tag.blue { color: #bfdbfe; background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.35); }
.dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(251,113,133,.18); }
.click { cursor: pointer; }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); }
.notice.pinned { border-color: rgba(59,130,246,.45); background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(0,0,0,.2)); }
.notice .row { flex-wrap: nowrap; } .notice .row b { flex: 1; min-width: 0; }
.notice p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0; white-space: pre-wrap; }
.trust { width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none; position: relative;
  background: conic-gradient(var(--accent) calc(var(--t) * 1%), rgba(255,255,255,.08) 0); }
.trust::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1324; }
.trust b, .trust small { position: relative; line-height: 1; } .trust b { font-size: 16px; } .trust small { font-size: 9px; color: var(--ink-3); }
.masked { cursor: pointer; color: var(--ink-3); }
.quick { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }

.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--stroke); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tabs-line a, .tabs-line button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; background: none; cursor: pointer; white-space: nowrap; position: relative; transition: color .2s; }
.tabs-line a svg, .tabs-line button svg { width: 16px; height: 16px; }
.tabs-line a:hover, .tabs-line button:hover { color: var(--ink); }
.tabs-line .on { color: var(--ink); }
.tabs-line .on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.tabs-line a.danger { color: #fda4af; }
.tabs-line .btn { color: #04122b; }
.modal-tabs { margin: 4px 0 6px; }
.modal-wide { width: min(760px, 100%); }
.modal h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.srv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.srv-card { display: grid; gap: 14px; transition: transform .45s var(--ease), border-color .3s; }
.srv-card:hover { transform: translateY(-3px); border-color: var(--stroke-2); }
.srv-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(251,113,133,.12); color: #fda4af; flex: none; }
.srv-ico.on { background: rgba(74,222,128,.12); color: var(--green); }
.srv-ico svg { width: 20px; }
.srv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.srv-stats div { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.22); }
.srv-stats small { display: block; font-size: 11px; color: var(--ink-3); }
.srv-stats b { font-size: 18px; letter-spacing: -.02em; } .srv-stats b span { font-size: 12px; color: var(--ink-3); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.kv small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
.kv b { font-size: 15px; } .kv b.mono { font-size: 13.5px; }
.tile-in { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.22); }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.insight { padding: 16px; border-radius: 18px; border: 1px solid; }
.insight small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-3); }
.insight b { display: block; font-size: 20px; margin: 4px 0; letter-spacing: -.02em; }
.insight p { font-size: 12.5px; color: var(--ink-2); }
.insight.green { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.07); }
.insight.blue { border-color: rgba(59,130,246,.4); background: rgba(37,99,235,.1); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 160px; align-items: end; }
.hbar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hbar i { width: 100%; border-radius: 6px 6px 3px 3px; background: rgba(96,165,250,.45); }
.hbar.peak i { background: var(--grad); } .hbar.quiet i { background: rgba(74,222,128,.45); }
.hbar small { font-size: 10px; color: var(--ink-3); height: 12px; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--stroke-2); border-radius: 18px; text-align: center; cursor: pointer; margin-bottom: 8px; transition: border-color .2s, background .2s; }
.dropzone svg { width: 30px; height: 30px; color: var(--ink-2); }
.dropzone small { color: var(--ink-3); }
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: rgba(59,130,246,.07); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.item-img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: rgba(255,255,255,.06); display: inline-block; vertical-align: middle; }
.console { background: #02060f; border: 1px solid var(--stroke); border-radius: 14px; padding: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; max-height: 340px; min-height: 160px; overflow: auto; white-space: pre-wrap; color: #c7d7f5; }
.c-cmd { color: #93c5fd; } .c-err { color: #fda4af; }
.callout-info, .callout-ok { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; color: var(--ink-2); border: 1px solid rgba(59,130,246,.35); background: rgba(37,99,235,.09); }
.callout-info ol { padding-left: 18px; margin-top: 6px; display: grid; gap: 3px; }
.callout-ok { border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); color: #bbf7d0; }
.color-dot { width: 44px; height: 42px; padding: 3px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.25); cursor: pointer; flex: none; }
.color-dot.big { width: 100%; height: 48px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.roles-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 70px; }
.role-col { position: sticky; top: 0; display: grid; gap: 4px; }
.role-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; transition: background .2s; }
.role-item:hover { background: rgba(255,255,255,.05); }
.role-item.on { background: var(--glass-hi); border-color: var(--stroke); }
.role-item b { display: block; font-size: 14px; } .role-item small { font-size: 11.5px; color: var(--ink-3); }
.pgroup { border-radius: 18px; overflow: hidden; }
.pgroup header { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.pg-head { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 15px; }
.pg-head svg { width: 16px; margin-left: 4px; color: var(--ink-3); transition: transform .3s var(--ease); }
.pgroup.open .pg-head svg { transform: rotate(90deg); }
.pg-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 16px; }
.pg-count { margin-left: auto; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink-3); }
.pg-count.part { color: #bfdbfe; background: rgba(59,130,246,.16); } .pg-count.full { color: #bbf7d0; background: rgba(74,222,128,.14); }
.pg-body { padding: 0 16px 12px; animation: rise .4s var(--ease); }
.pg-body h6 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 14px 0 4px; }
.perm-row { cursor: pointer; align-items: flex-start; border-radius: 12px; padding: 11px 10px; transition: background .2s; }
.perm-row:hover { background: rgba(255,255,255,.035); }
.perm-row.on { background: rgba(59,130,246,.06); }
.perm-row p { font-size: 12.5px; color: var(--ink-3); margin: 2px 0; }
.perm-row .switch { margin-top: 2px; }
.ptag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.ptag.ingame { background: rgba(34,211,238,.14); color: #a5f3fc; } .ptag.resource { background: rgba(251,191,36,.14); color: #fde68a; } .ptag.soon { background: rgba(255,255,255,.08); color: var(--ink-3); }
.savebar { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transform: translate(-50%, 24px) scale(.96); transition: opacity .25s var(--ease), transform .35s var(--spring); }
.savebar.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.pg-count { transition: background .25s, color .25s; }
@media (prefers-reduced-motion: reduce) { .savebar, .switch span, .switch span::after, .perm-row, .pg-count { transition: none; } .pg-body { animation: none; } }

.locked { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 16px; }
.locked p { color: var(--ink-2); max-width: 46ch; font-size: 14px; }
.lock-ico { font-size: 30px; }
.feature.blue { border-color: rgba(59,130,246,.35); } .feature.amber { border-color: rgba(251,191,36,.3); }
.feature p { font-size: 13.5px; margin-bottom: 8px; }
.bot-card { display: grid; gap: 14px; }
.bot-hero { display: grid; justify-items: center; text-align: center; gap: 6px; }
.bot-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #5865f2; box-shadow: 0 10px 30px -10px #5865f2; }
.bot-ico svg { width: 32px; height: 32px; }
.bot-status { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; }
.bot-status.ok { background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; }
.bot-status.warn { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #fde68a; }
.perm-list { display: grid; gap: 4px; font-size: 13px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.22); }
.perm-list span { color: #bbf7d0; }
.steps-mini { counter-reset: s; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.steps-mini li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.steps-mini li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid rgba(59,130,246,.5); color: #93c5fd; }
.cmd-list { display: grid; gap: 6px; font-size: 13px; } .cmd-list div { display: flex; justify-content: space-between; gap: 10px; }
.logo-prev { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.theme-prev { flex: 1; min-width: 160px; height: 64px; border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.danger-card { border-color: rgba(251,113,133,.3); } .danger-card.strong { background: linear-gradient(160deg, rgba(251,113,133,.1), rgba(0,0,0,.2)); border-color: rgba(251,113,133,.5); }
.side-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; }
@media (max-width: 1100px) { .g3 { grid-template-columns: 1fr 1fr; } .roles-layout { grid-template-columns: 1fr; } .role-col { position: static; } }
@media (max-width: 760px) { .g3, .kv-grid { grid-template-columns: 1fr; } .hours { gap: 2px; } }

.callout-err, .callout-ok { white-space: pre-line; } /* multi-line RCON diagnoses */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #3b82f6; }
.consent a { color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; }
