/* Panel administracji SKYHUB.PL — ciemny motyw, akcent niebieski SkyHub */
:root {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --panel-solid: #0d1118;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #e8edf5;
  --text-2: #a3adbd;
  --muted: #6b7686;
  --sky: #38bdf8;
  --sky-2: #0ea5e9;
  --sky-3: #0284c7;
  --violet: #8b5cf6;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --discord: #5865f2;
  --r: 14px;
  --r-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: var(--text); }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: rgba(56, 189, 248, 0.3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.16); }

.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; }
.boot img { filter: drop-shadow(0 10px 40px rgba(56, 189, 248, 0.35)); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.1); border-top-color: var(--sky); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 40vh; }

/* ============================================================ LOGOWANIE */
.login { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.login-glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: 0.55; }
.login-glow.g1 { width: 620px; height: 620px; left: 8%; top: 22%; background: radial-gradient(circle, rgba(14, 165, 233, 0.33), transparent 70%); }
.login-glow.g2 { width: 560px; height: 560px; right: 6%; top: 38%; background: radial-gradient(circle, rgba(88, 101, 242, 0.32), transparent 70%); }
.login-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%); }
.login-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 16px; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.4)); }
.brand b { font-weight: 800; }
.sky { color: var(--sky); }
.pl { color: #f43f5e; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, color 0.2s; }
.pill-link:hover { text-decoration: none; color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.login-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 72px; max-width: 1140px; width: 100%; margin: 0 auto; padding: 20px 32px 40px; }
.hero-logo { width: 220px; height: auto; display: block; margin: 0 0 18px -10px; filter: drop-shadow(0 18px 50px rgba(56, 189, 248, 0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.login-hero h1 { font-size: clamp(40px, 5.2vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.login-hero h1 span { background: linear-gradient(180deg, #9aa4b2, #5d6676); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 18px 0 28px; max-width: 470px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.features { display: grid; gap: 10px; max-width: 470px; }
.feature { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.015); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.feature:hover { border-color: rgba(56, 189, 248, 0.25); background: rgba(56, 189, 248, 0.03); transform: translateX(3px); }
.feature b { display: block; font-size: 14px; font-weight: 600; }
.feature small { color: var(--muted); font-size: 12.5px; }
.f-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--sky); background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.15); }
.login-card-wrap { position: relative; }
.login-card-wrap::before { content: ''; position: absolute; inset: 40px -30px -60px; background: radial-gradient(ellipse at 50% 70%, rgba(88, 101, 242, 0.28), transparent 70%); filter: blur(30px); pointer-events: none; }
.login-card { position: relative; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 24, 34, 0.86), rgba(12, 14, 20, 0.92)); backdrop-filter: blur(16px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.badge-mono { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font: 500 10.5px var(--mono); letter-spacing: 0.22em; color: var(--text-2); }
.login-card h2 { margin: 24px 0 6px; font-size: 25px; font-weight: 800; }
.login-error { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25); color: #fecaca; font-size: 13px; }
.login-error .ico { margin-top: 2px; color: var(--red); }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0; padding: 15px; border-radius: 14px; background: var(--discord); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(88, 101, 242, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn-discord:hover { text-decoration: none; background: #6a75f5; transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(88, 101, 242, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-discord:active { transform: translateY(0); }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; color: var(--text-2); font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--text); }
.login-privacy { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.login-privacy .ico { color: var(--green); margin-top: 1px; }
.login-foot { position: relative; z-index: 2; text-align: center; padding: 20px; color: var(--muted); font-size: 12px; }

/* ============================================================ POWŁOKA */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100vh; }
.side { display: flex; flex-direction: column; background: linear-gradient(180deg, #0a0d13, #07090d); border-right: 1px solid var(--line); min-height: 0; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; color: var(--text); }
.side-brand:hover { text-decoration: none; }
.side-brand img { filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.35)); }
.side-brand b { font-family: var(--display); font-weight: 800; font-size: 15.5px; display: block; letter-spacing: 0.01em; }
.side-brand small { color: var(--muted); font-size: 11.5px; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #4b5563; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav-item:hover { text-decoration: none; background: rgba(255, 255, 255, 0.035); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(56, 189, 248, 0.13), rgba(56, 189, 248, 0.03)); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.nav-item.active .ico { color: var(--sky); }
.nav-item > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sky-2); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.side-user { display: flex; align-items: center; gap: 10px; margin: 10px 12px 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.su-text { flex: 1; min-width: 0; }
.su-text b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-text { color: var(--c, var(--text-2)); font-size: 12px; font-weight: 500; }
.voice-dock { margin: 0 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(52, 211, 153, 0.1), rgba(52, 211, 153, 0.03)); border: 1px solid rgba(52, 211, 153, 0.25); }
.vd-info { display: flex; align-items: center; gap: 10px; }
.vd-info b { display: block; font-size: 12.5px; color: var(--green); }
.vd-info small { color: var(--text-2); font-size: 12px; }
.vd-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.vd-actions { display: flex; gap: 6px; margin-top: 10px; }
.vd-actions .icon-btn { flex: 1; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(1200px 500px at 70% -10%, rgba(14, 165, 233, 0.06), transparent 60%), var(--bg); }
.top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); flex: none; background: rgba(6, 8, 12, 0.6); backdrop-filter: blur(10px); }
.top h1 { font-size: 17px; font-weight: 700; flex: 1; }
.top-right { display: flex; align-items: center; gap: 10px; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn.down i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.view { flex: 1; overflow-y: auto; padding: 28px; min-height: 0; }
.view > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.view.wide > * { max-width: 1320px; }
.view.full { padding: 0; overflow: hidden; display: flex; }
.view.full > * { max-width: none; margin: 0; flex: 1; }
.side-scrim { display: none; }
.only-mobile { display: none !important; }

/* ============================================================ ELEMENTY */
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); cursor: pointer; position: relative; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.off { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.icon-btn.danger { color: #fff; background: rgba(239, 68, 68, 0.85); border-color: transparent; }
.icon-btn.danger:hover { background: #ef4444; }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.2s; color: var(--text); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.full { width: 100%; }
.btn.primary { background: linear-gradient(180deg, var(--sky-2), var(--sky-3)); color: #fff; box-shadow: 0 8px 22px -10px rgba(14, 165, 233, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.primary:hover { background: linear-gradient(180deg, #22b2ee, #0891d2); }
.btn.success { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }
.btn.success:hover { background: rgba(52, 211, 153, 0.22); }
.btn.danger { background: rgba(248, 113, 113, 0.13); border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }
.btn.danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn.ghost { background: var(--panel); border-color: var(--line-2); color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.danger-text { color: #fca5a5 !important; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--sky); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); }
.rank-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); white-space: nowrap; }
.rank-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: #1f2937; }
.avatar.ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(56, 189, 248, 0.45); }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.presence { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #4b5563; border: 2.5px solid var(--bg); }
.presence.on { background: var(--green); }
.av-wrap.big .presence { width: 18px; height: 18px; border-width: 4px; right: 2px; bottom: 2px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ico { color: var(--sky); }
.count-pill { padding: 2px 10px; border-radius: 999px; background: rgba(56, 189, 248, 0.12); color: var(--sky); font-weight: 700; font-size: 12px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.mini-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.notice { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: rgba(56, 189, 248, 0.07); border: 1px solid rgba(56, 189, 248, 0.2); color: #bae6fd; font-size: 13px; }
.notice:hover { text-decoration: none; background: rgba(56, 189, 248, 0.11); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { color: #3f4856; }
.empty h3 { color: var(--text); font-size: 17px; }
.empty.small { padding: 26px 10px; gap: 6px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--text); text-decoration: none; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-weight: 500; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs em { font-style: normal; font-size: 11px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.2); color: var(--muted); min-width: 240px; }
.search:focus-within { border-color: rgba(56, 189, 248, 0.5); }
.search input { flex: 1; background: none; border: 0; outline: none; height: 100%; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.s-ok { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.s-bad { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.s-pending { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.progress.green i { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.progress.red i { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.skeleton-line { height: 46px; margin: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* formularze */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select, .gate input, .note-form textarea, .modal-body > input {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); outline: none; transition: border-color 0.15s, box-shadow 0.15s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus, .gate input:focus, .note-form textarea:focus, .modal-body > input:focus { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
.field select { appearance: none; cursor: pointer; }
.field input[type="date"] { color-scheme: dark; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid.three { grid-template-columns: 2fr 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-2); margin: 4px 0 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--sky-2); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.seg button.on { background: var(--sky-3); color: #fff; }
.rank-pick { display: grid; gap: 6px; }
.rank-pick button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.2); cursor: pointer; font-weight: 600; }
.rank-pick button small { font-family: var(--mono); color: var(--muted); width: 26px; }
.rank-pick button.on { border-color: var(--sky-2); background: rgba(14, 165, 233, 0.1); }

/* modale i toasty */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 8, 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.18s; }
.modal-backdrop.in { opacity: 1; }
.modal-backdrop.out { opacity: 0; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 20px; background: #0e1219; border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(8px) scale(0.98); transition: transform 0.2s; }
.modal.wide { width: min(980px, 100%); }
.modal-backdrop.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 4px 20px 8px; overflow-y: auto; }
.modal-body > p { margin-bottom: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 8px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 12px; background: #111723; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; max-width: 380px; animation: toastIn 0.25s ease; transition: opacity 0.3s, transform 0.3s; }
.toast-ok .ico { color: var(--green); }
.toast-err .ico { color: var(--red); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* powiadomienia */
.notif-wrap { position: relative; }
.notif-panel { position: absolute; right: 0; top: 46px; width: 380px; max-height: 70vh; display: flex; flex-direction: column; z-index: 40; border-radius: 16px; background: #0e1219; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.np-list { overflow-y: auto; padding: 6px; }
.np-item { display: flex; gap: 11px; padding: 10px; border-radius: 11px; color: var(--text); }
.np-item:hover { background: var(--panel-2); text-decoration: none; }
.np-item b { font-size: 13px; font-weight: 600; display: block; }
.np-item p { font-size: 12.5px; color: var(--text-2); margin: 2px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-item small { color: var(--muted); font-size: 11.5px; }
.np-item.unread { background: rgba(56, 189, 248, 0.05); }
.np-item.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-left: 6px; vertical-align: middle; }
.np-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--sky); }
.np-ico.k-awans, .np-ico.k-plus { color: var(--green); background: rgba(52, 211, 153, 0.1); }
.np-ico.k-degrad, .np-ico.k-minus { color: var(--red); background: rgba(248, 113, 113, 0.1); }
.np-ico.k-leave { color: var(--amber); background: rgba(251, 191, 36, 0.1); }

/* ============================================================ PULPIT */
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; margin-bottom: 18px; border-radius: 22px; border: 1px solid var(--line); flex-wrap: wrap;
  background: radial-gradient(600px 200px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgba(139, 92, 246, 0.1), transparent 70%), var(--panel); }
.hc-left { display: flex; align-items: center; gap: 18px; }
.eyebrow { color: var(--text-2); font-size: 13.5px; }
.hero-card h2 { font-size: 26px; font-weight: 800; margin: 2px 0 8px; }
.hc-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hc-right { min-width: 260px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.pt { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.pt b { font-family: var(--display); font-size: 24px; font-weight: 800; margin-right: 6px; }
.pt span { color: var(--muted); font-size: 12.5px; }
.pt.plus b { color: var(--green); }
.pt.minus b { color: var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.stat > div { flex: 1; min-width: 0; }
.stat b { font-family: var(--display); font-size: 21px; font-weight: 800; display: block; line-height: 1.2; }
.stat small { color: var(--muted); font-size: 12px; }
.s-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.s-ico.blue { color: var(--sky); background: rgba(56, 189, 248, 0.1); }
.s-ico.violet { color: #a78bfa; background: rgba(139, 92, 246, 0.12); }
.s-ico.amber { color: var(--amber); background: rgba(251, 191, 36, 0.1); }
.s-ico.green { color: var(--green); background: rgba(52, 211, 153, 0.1); }
.s-ico.red { color: var(--red); background: rgba(248, 113, 113, 0.1); }
.ann-mini { display: grid; gap: 4px; }
.ann-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.ann-row:hover { background: var(--panel-2); text-decoration: none; }
.ann-row b { display: block; font-size: 13.5px; font-weight: 600; }
.ann-row small { color: var(--muted); font-size: 12px; }
.ann-row.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); margin-left: 7px; vertical-align: middle; }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.t-info { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.t-important { background: rgba(248, 113, 113, 0.13); color: #fca5a5; }
.t-change { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.t-event { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline li { display: flex; gap: 12px; padding: 8px 4px; }
.timeline b { font-size: 13.5px; font-weight: 600; display: block; }
.timeline small { color: var(--muted); font-size: 12px; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.timeline .up .tl-dot { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.timeline .down .tl-dot { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.leave-mini { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }

/* ============================================================ OGŁOSZENIA */
.ann-list { display: grid; gap: 14px; }
.ann { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.ann.pinned { border-color: rgba(56, 189, 248, 0.3); background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), transparent 120px), var(--panel); }
.ann.unread { box-shadow: inset 3px 0 0 var(--sky); }
.ann header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ann-who { flex: 1; min-width: 0; }
.ann-who b { display: block; font-size: 13.5px; }
.ann-who small { color: var(--muted); font-size: 12px; }
.pin-flag { color: var(--sky); }
.ann h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ann footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ann-actions { display: flex; gap: 6px; }

/* markdown */
.md { color: #cfd6e1; font-size: 14px; line-height: 1.7; }
.md > * + * { margin-top: 10px; }
.md h2 { font-size: 19px; margin-top: 26px; color: #fff; }
.md h3 { font-size: 16px; margin-top: 22px; color: #fff; }
.md h4, .md h5 { font-size: 14px; margin-top: 18px; color: #fff; }
.md > h2:first-child, .md > h3:first-child { margin-top: 0; }
.md ol, .md ul { padding-left: 22px; margin-bottom: 0; }
.md li + li { margin-top: 5px; }
.md li::marker { color: var(--sky); font-weight: 600; }
.md strong { color: #fff; }
.md blockquote { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--sky-2); background: rgba(56, 189, 248, 0.05); border-radius: 0 12px 12px 0; color: #d6e4f0; }
.md-table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); margin: 12px 0; }
.md table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md th { text-align: left; padding: 10px 14px; background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.md td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.md td.first { color: #fff; font-weight: 500; }
.md tr:hover td { background: rgba(255, 255, 255, 0.015); }

/* ============================================================ ADMINISTRACJA */
.staff-table { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.staff-head, .staff-row { display: grid; grid-template-columns: 52px minmax(160px, 1.5fr) minmax(140px, 1fr) 100px 90px minmax(150px, 1fr) 24px; align-items: center; gap: 12px; padding: 0 16px; }
.staff-head { height: 40px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.staff-row { min-height: 62px; color: var(--text); border-bottom: 1px solid var(--line); transition: background 0.15s; }
.staff-row:last-child { border-bottom: 0; }
.staff-row:hover { background: rgba(255, 255, 255, 0.025); text-decoration: none; }
.sr-name { min-width: 0; }
.sr-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name small { color: var(--muted); font-size: 12px; }
.sr-points { display: flex; gap: 10px; font-family: var(--mono); font-size: 13px; }
.sr-points .plus { color: var(--green); }
.sr-points .minus { color: var(--red); }
.sr-tickets b { font-family: var(--display); font-weight: 700; margin-right: 4px; }
.sr-tickets small { color: var(--muted); font-size: 11.5px; }
.sr-go { color: var(--muted); }
.profile-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; margin-bottom: 18px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(500px 220px at 0 0, rgba(56, 189, 248, 0.1), transparent 70%), var(--panel); }
.pc-main { display: flex; align-items: center; gap: 20px; }
.pc-main h2 { font-size: 26px; font-weight: 800; }
.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feed li { display: flex; gap: 12px; padding: 10px 6px; border-radius: 12px; align-items: flex-start; }
.feed li:hover { background: rgba(255, 255, 255, 0.02); }
.feed li > div { flex: 1; min-width: 0; }
.feed b { font-size: 13.5px; }
.feed p { color: var(--text-2); font-size: 13px; margin: 2px 0; word-break: break-word; }
.feed small { color: var(--muted); font-size: 12px; }
.feed-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--panel-2); color: var(--text-2); }
.feed .plus .feed-ico { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.feed .minus .feed-ico { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.note-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.note-form textarea { flex: 1; }

/* urlopy */
.leave-list { display: grid; gap: 8px; }
.leave-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.leave-item > div { flex: 1; min-width: 0; }
.leave-item b { font-size: 13.5px; }
.leave-item p { color: var(--text-2); font-size: 13px; margin-top: 3px; word-break: break-word; }
.leave-item small { color: var(--muted); font-size: 12px; }
.leave-item .status { margin-top: 1px; }
.leave-list.compact .leave-item { padding: 8px 12px; align-items: center; }
.li-actions { display: flex; flex-direction: column; gap: 6px; }

/* dokumenty */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.docs-nav { position: sticky; top: 0; }
.docs-nav .nav-group:first-child { margin-top: 0; }
.docs-nav .btn { margin-top: 14px; }
.docs-body { padding: 30px 34px; min-height: 60vh; }
.doc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc-head > div { flex: 1; }
.doc-head h2 { font-size: 24px; font-weight: 800; }
.doc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--sky); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2); }
.doc-md { max-width: 820px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; min-height: 420px; }
.preview { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); max-height: 470px; overflow-y: auto; }

/* permisje */
.perm-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.perm-people { padding: 12px; max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 0; }
.perm-people .search { min-width: 0; margin-bottom: 8px; }
.perm-person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; color: var(--text); }
.perm-person:hover { background: var(--panel-2); text-decoration: none; }
.perm-person.active { background: rgba(56, 189, 248, 0.1); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25); }
.perm-person b { display: block; font-size: 13px; }
.perm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.perm-head h3 { font-size: 18px; margin-bottom: 4px; }
.perm-group { margin-top: 18px; }
.perm-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); margin-bottom: 6px; background: rgba(0, 0, 0, 0.15); flex-wrap: wrap; }
.perm-row.is-on { border-color: rgba(52, 211, 153, 0.22); }
.perm-row b { display: block; font-size: 13.5px; }
.perm-row small { color: var(--muted); font-size: 12px; }
.yes { color: var(--green); }
.no { color: var(--muted); }
.tri { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.tri button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.tri button:disabled { cursor: not-allowed; }
.tri button.on.k-allow { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.tri button.on.k-deny { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.tri button.on.k-default { background: var(--panel-2); color: var(--text); }

/* dziennik */
.audit-row { display: grid; grid-template-columns: 130px 190px minmax(180px, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.audit-row:last-child { border-bottom: 0; }
.a-time { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.a-actor { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-det { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================ CZAT */
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; min-height: 0; }
.chat-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); min-height: 0; }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cs-head.mt { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.cs-list { padding: 0 8px; overflow-y: auto; }
.cs-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; }
.cs-item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-item em { color: var(--muted); }
.cs-item:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; color: var(--text); }
.cs-item.active { background: rgba(56, 189, 248, 0.11); color: #fff; }
.cs-item.active .ico { color: var(--sky); }
.cs-online { padding: 0 8px 12px; overflow-y: auto; flex: 1; }
.on-person { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 9px; font-size: 13px; }
.on-person:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.cs-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.dm-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; color: var(--text); }
.dm-item > div { flex: 1; min-width: 0; }
.dm-item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item small { color: var(--muted); font-size: 12px; }
.dm-item:hover { background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.dm-item.active { background: rgba(56, 189, 248, 0.1); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); min-height: 64px; }
.chat-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 6px; }
.chat-head h3 .ico { color: var(--muted); }
.chat-head-right { display: flex; align-items: center; gap: 8px; }
.dm-head { display: flex; align-items: center; gap: 12px; }
.e2e-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); cursor: default; }
.e2e-badge.ok { color: #6ee7b7; background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.25); cursor: pointer; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 0 8px; min-height: 0; }
.chat-empty { padding-top: 15vh; }
.chat-start { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 22px 16px; font-size: 13px; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 14px 22px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 4px; padding: 6px 22px 3px 18px; }
.msg.grouped { padding-top: 1px; }
.msg:hover { background: rgba(255, 255, 255, 0.022); }
.msg.pending { opacity: 0.55; }
.msg.mentioned { background: rgba(251, 191, 36, 0.05); box-shadow: inset 2px 0 0 var(--amber); }
.msg-reply { grid-column: 2; font-size: 12px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-reply b { color: var(--text-2); }
.msg-av { margin-top: 2px; }
.msg-time-side { font-size: 10.5px; color: transparent; text-align: center; padding-top: 3px; font-family: var(--mono); }
.msg:hover .msg-time-side { color: var(--muted); }
.msg-meta { display: flex; align-items: baseline; gap: 8px; }
.msg-meta b { font-size: 14px; font-weight: 600; color: var(--c, #e2e8f0); }
.msg-rank { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--panel-2); color: var(--muted); }
.msg-time { font-size: 11.5px; color: var(--muted); }
.msg-text { color: #d7dee8; word-wrap: break-word; white-space: pre-wrap; line-height: 1.5; }
.msg-text a { word-break: break-all; }
.mention { padding: 0 3px; border-radius: 4px; background: rgba(56, 189, 248, 0.16); color: #bae6fd; font-weight: 500; }
.msg-tools { position: absolute; right: 16px; top: -12px; display: none; gap: 4px; padding: 3px; border-radius: 9px; background: #121722; border: 1px solid var(--line-2); }
.msg:hover .msg-tools { display: flex; }
.typing { height: 20px; padding: 0 22px; font-size: 12px; color: var(--muted); font-style: italic; }
.composer { position: relative; display: flex; align-items: flex-end; gap: 10px; margin: 0 22px 18px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #0e1219; border: 1px solid var(--line-2); }
.composer:focus-within { border-color: rgba(56, 189, 248, 0.45); }
.composer textarea { flex: 1; border: 0; background: none; outline: none; resize: none; padding: 8px 0; max-height: 180px; line-height: 1.45; }
.send-btn { width: 38px; height: 38px; border-radius: 11px; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(180deg, var(--sky-2), var(--sky-3)); flex: none; }
.send-btn:hover { filter: brightness(1.1); }
.reply-bar { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #111723; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.reply-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-pop { position: absolute; left: 12px; bottom: 100%; margin-bottom: 6px; width: 260px; padding: 5px; border-radius: 12px; background: #111723; border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 5; }
.mention-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.mention-pop button.on, .mention-pop button:hover { background: rgba(56, 189, 248, 0.12); }
.composer-off { margin: 0 22px 18px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 13px; display: flex; gap: 9px; align-items: center; }
.bubble-row { display: flex; padding: 2px 22px; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row:not(.grouped) { margin-top: 8px; }
.bubble { max-width: min(560px, 75%); padding: 9px 13px 7px; border-radius: 16px 16px 16px 6px; background: #141a25; border: 1px solid var(--line); color: #dfe6ef; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.mine .bubble { border-radius: 16px 16px 6px 16px; background: linear-gradient(180deg, #0b8fd0, #0477b4); border-color: transparent; color: #fff; }
.mine .bubble .mention { background: rgba(255, 255, 255, 0.2); color: #fff; }
.bubble.pending { opacity: 0.6; }
.b-time { display: block; text-align: right; font-size: 10.5px; margin-top: 2px; opacity: 0.6; }
.gate { display: grid; place-items: center; padding: 40px 20px; height: 100%; overflow-y: auto; }
.gate-card { width: min(440px, 100%); text-align: center; padding: 34px 30px; display: grid; gap: 12px; justify-items: center; border-radius: 24px; }
.gate-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25); margin-bottom: 4px; }
.gate-card h2 { font-size: 21px; }
.gate form { width: 100%; display: grid; gap: 10px; margin-top: 8px; text-align: left; }
.gate .check { margin: 0; }
.gate-note { margin-top: 4px; }
.safety-code { font-family: var(--mono); font-size: 18px; letter-spacing: 0.08em; text-align: center; padding: 18px; margin: 14px 0; border-radius: 14px; background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.25); color: #a7f3d0; word-spacing: 6px; }
.pick-list { display: grid; gap: 4px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 0; background: none; cursor: pointer; text-align: left; }
.pick-item:hover:not(:disabled) { background: var(--panel-2); }
.pick-item:disabled { opacity: 0.45; cursor: not-allowed; }
.pick-item b { display: block; font-size: 13.5px; }
.pick-item small { color: var(--muted); font-size: 12px; }

/* ============================================================ GŁOSOWE */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.voice-card { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); padding: 18px; transition: border-color 0.2s, box-shadow 0.2s; }
.voice-card.here { border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.06); }
.voice-card header { display: flex; align-items: center; gap: 12px; }
.voice-card header > div { flex: 1; min-width: 0; }
.voice-card h3 { font-size: 15px; }
.vc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--sky); background: rgba(56, 189, 248, 0.1); }
.here .vc-ico { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.vc-people { display: flex; flex-wrap: wrap; gap: 14px; min-height: 96px; margin: 18px 0; align-content: flex-start; }
.vc-person { display: grid; justify-items: center; gap: 6px; width: 72px; text-align: center; }
.vc-person b { font-size: 12px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-person .avatar { transition: box-shadow 0.15s; box-shadow: 0 0 0 2px transparent; }
.vc-person.speaking .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--green), 0 0 20px rgba(52, 211, 153, 0.5); }
.vc-flags { display: flex; gap: 3px; color: var(--red); min-height: 13px; }
.vc-empty { align-self: center; }
.voice-card footer { display: flex; gap: 8px; margin-top: auto; }
.voice-card footer .btn { flex: 1; }
.vc-tip { margin-top: 18px; }

/* ============================================================ RESPONSYWNOŚĆ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-head, .staff-row { grid-template-columns: 52px minmax(140px, 1.5fr) minmax(130px, 1fr) 90px minmax(120px, 1fr) 20px; }
  .sr-tickets, .staff-head span:nth-child(5) { display: none; }
}
@media (max-width: 900px) {
  .login-main { grid-template-columns: 1fr; gap: 36px; padding-top: 0; }
  .hero-logo { width: 150px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 276px; z-index: 30; transform: translateX(-100%); transition: transform 0.25s ease; }
  .nav-open .side { transform: none; box-shadow: var(--shadow); }
  .nav-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.5); }
  .only-mobile { display: inline-grid !important; }
  .top { padding: 0 16px; }
  .view { padding: 18px 16px; }
  .cols, .docs, .perm-layout, .editor { grid-template-columns: 1fr; }
  .docs-nav, .perm-people { position: static; max-height: none; }
  .chat { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .staff-head { display: none; }
  .staff-row { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 10px 14px; }
  .sr-points, .sr-status, .sr-go { display: none; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
  .notif-panel { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  .conn span { display: none; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .docs-body { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-top { padding: 18px; }
  .login-main { padding: 0 18px 30px; }
  .login-card { padding: 24px; }
  .hero-card, .profile-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
