:root { color-scheme:dark; --bg:#111416; --panel:#1b2021; --line:#303839; --text:#e9eee9; --muted:#9ba7a0; --accent:#d5a447; --green:#74c69d; --red:#e37d78; }
* { box-sizing:border-box; } body { margin:0; background:radial-gradient(circle at 50% -10%,#28322d,var(--bg) 50%); color:var(--text); font:15px/1.45 system-ui,sans-serif; min-height:100vh; }
.shell { max-width:1180px; margin:auto; padding:34px 22px 60px; } header { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; } .header-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; } h1 { margin:0; font-size:clamp(26px,4vw,42px); letter-spacing:-.03em; } h2 { margin:0; } .eyebrow { color:var(--accent); text-transform:uppercase; letter-spacing:.14em; font-size:11px; margin:0 0 6px; } .muted,small { color:var(--muted); }
button { border:0; border-radius:6px; background:var(--accent); color:#19150d; font-weight:700; padding:11px 17px; cursor:pointer; } button:hover { filter:brightness(1.12); } .secondary { background:transparent; border:1px solid var(--line); color:var(--text); } .small-button { padding:4px 12px; font-size:20px; line-height:1.1; }
.tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:25px; } .tab { background:transparent; color:var(--muted); border-radius:6px 6px 0 0; border-bottom:2px solid transparent; } .tab.active { color:var(--text); border-bottom-color:var(--accent); } .tab-panel[hidden] { display:none; }
.global-message,.message { color:var(--muted); min-height:20px; margin:0 0 15px; font-size:13px; } .message { margin:5px 0 0; } .section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:10px; } .section-heading h2 { font-size:23px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:15px; margin-top:20px; } .card,.notification-card,.user-panel,.placeholder { background:linear-gradient(150deg,#202727,#181d1e); border:1px solid var(--line); border-radius:10px; padding:19px; box-shadow:0 8px 22px #0003; } .card { min-height:220px; } .card-top { display:flex; justify-content:space-between; align-items:center; } .number { color:var(--accent); font-size:21px; font-weight:800; } .card h3 { font-size:16px; margin:14px 0 2px; line-height:1.3; } .server-subtitle { margin:0; color:var(--muted); font-size:13px; } .status { font-weight:800; font-size:12px; letter-spacing:.12em; display:flex; align-items:center; gap:7px; } .status i { width:8px; height:8px; border-radius:50%; background:currentColor; } .online { color:var(--green); } .offline { color:var(--red); } .player-focus { display:grid; justify-items:center; gap:4px; margin:22px 0 8px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); } .player-focus strong { font-size:42px; line-height:1; letter-spacing:-.04em; } .player-focus span { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.16em; } .updated-at { color:var(--muted); text-align:center; font-size:13px; margin:0 0 14px; } .details { display:flex; gap:22px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:12px; margin-bottom:13px; } .details b { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; } .error { color:var(--red); } .empty { color:var(--muted); }
.user-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:18px; align-items:start; } .user-sidebar { background:rgba(27,32,33,.82); border:1px solid var(--line); border-radius:10px; padding:16px; } .user-list { display:grid; gap:6px; margin:15px 0; } .user-choice { display:flex; align-items:center; justify-content:space-between; text-align:left; width:100%; background:transparent; border:1px solid transparent; color:var(--text); padding:10px 11px; font-weight:500; } .user-choice.active { background:#2a3432; border-color:var(--line); color:var(--accent); } .user-dot { width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; margin-right:8px; } .stack-form { display:grid; gap:8px; } label { font-weight:600; } input { min-width:0; background:#101415; color:var(--text); border:1px solid #3b4745; border-radius:6px; padding:11px; font:inherit; } input:focus { outline:2px solid var(--accent); } .form-actions,.user-actions,.subscription-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; } .user-detail { display:grid; gap:16px; } .user-panel h2 { font-size:22px; } .panel-title { display:flex; align-items:start; justify-content:space-between; gap:15px; margin-bottom:16px; } .telegram-status { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; color:var(--muted); } .configured { color:var(--green); } .not-configured { color:var(--red); } .secret-form { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:10px; margin-top:14px; } .secret-form small { display:block; font-weight:400; margin-top:3px; } .subscription-list { display:grid; gap:13px; } .subscription-card { border-top:1px solid var(--line); padding-top:15px; } .remove-subscription { background:none; color:var(--muted); padding:2px 7px; font-size:22px; } .checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; margin:14px 0; } .check { display:flex; align-items:center; gap:8px; font-weight:400; } .check input { accent-color:var(--accent); padding:0; } .notification-settings { border-top:1px solid var(--line); padding-top:10px; margin-top:4px; } .notification-settings summary { cursor:pointer; font-weight:700; color:var(--accent); } .notification-note { font-size:12px; margin:4px 0 12px; } .subscription-status { color:var(--muted); font-size:13px; } .notification-error { color:var(--red); }
.add-server-form { display:flex; gap:9px; margin-top:18px; } .add-server-form input { flex:1; } .placeholder { min-height:140px; } .placeholder h2 { margin-bottom:8px; } .create-first-user { margin-top:16px; }
.auth-view { max-width:520px; margin:8vh auto 0; } .auth-view h1 { margin-bottom:22px; } .auth-card { display:grid; gap:12px; background:linear-gradient(150deg,#202727,#181d1e); border:1px solid var(--line); border-radius:10px; padding:22px; margin-top:14px; } .auth-card h2 { margin-bottom:5px; } .auth-card label { display:grid; gap:6px; } select { background:#101415; color:var(--text); border:1px solid #3b4745; border-radius:6px; padding:11px; font:inherit; }
.history-controls { display:flex; align-items:end; gap:18px; flex-wrap:wrap; margin:18px 0 8px; } .history-controls label { display:grid; gap:6px; min-width:260px; } .period-buttons { display:flex; gap:7px; flex-wrap:wrap; } .period.active { background:var(--accent); color:#19150d; } .chart-wrap { height:360px; margin:18px 0; } .history-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; border-top:1px solid var(--line); padding-top:15px; } .history-stats div { background:#101415aa; border:1px solid var(--line); border-radius:7px; padding:10px; } .history-stats b { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; } .history-stats span { display:block; font-size:20px; margin-top:4px; } .history-stats small { grid-column:1/-1; }
.admin-telegram { display:grid; grid-template-columns:1fr minmax(280px,420px); gap:20px; align-items:end; border:1px solid var(--line); border-radius:8px; padding:16px; margin:18px 0; } .admin-telegram h3 { margin:0 0 5px; } .admin-role-field { justify-content:flex-start; white-space:nowrap; } .admin-table-wrap { overflow:auto; margin-top:18px; } table { width:100%; border-collapse:collapse; min-width:760px; } th,td { border-bottom:1px solid var(--line); padding:10px 8px; text-align:left; vertical-align:middle; } th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; } td input:not([type="checkbox"]) { width:100%; padding:7px; } td .check { white-space:nowrap; }
@media (max-width:700px) { header { align-items:start; flex-direction:column; } .user-layout { grid-template-columns:1fr; } .secret-form,.admin-telegram { grid-template-columns:1fr; } .checks { grid-template-columns:1fr; } .add-server-form { flex-direction:column; } }
 .presence-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; color:var(--muted); font-size:12px; text-align:center; } .presence-metrics b { display:block; color:var(--text); font-size:19px; } .presence-button { width:100%; margin:4px 0 14px; padding:13px; border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:#101415; font-weight:900; letter-spacing:.08em; cursor:pointer; } .presence-button.connected { background:transparent; color:var(--accent); }
.cards { grid-template-columns:minmax(0,1fr); }
.card { min-height:0; }
.checks { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
.server-summary { width:100%; display:grid; grid-template-columns:auto minmax(90px,auto) minmax(0,1fr); gap:12px; align-items:center; padding:0; border:0; background:transparent; color:var(--text); text-align:left; }
.server-summary:hover { filter:none; }
.server-summary .card-top { min-width:90px; }
.server-heading { min-width:0; display:grid; gap:4px; }
.server-heading strong { font-size:16px; }
.server-heading small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.server-arrow { color:var(--accent); font-size:23px; transition:transform .18s ease; }
.subscription-card.is-open .server-arrow { transform:rotate(90deg); }
.server-body { display:none; padding-top:16px; }
.subscription-card.is-open .server-body { display:block; }
.refresh-server { width:100%; margin:0 0 8px; }
@media (max-width:700px) { .checks { grid-template-columns:1fr; } .server-summary { grid-template-columns:auto minmax(0,1fr); } .server-summary .card-top { grid-column:2; grid-row:1; } .server-heading { grid-column:2; grid-row:2; } .server-arrow { grid-row:1 / span 2; } }
