/* ==========================================================================
   K.A.T. 2 Staff Panel, in the KAEVO dashboard style:
   violet lava behind everything, glass top bar and sidebar, uppercase Sora
   headings, glass cards, the cta buttons with the shine sweep.
   The content uses the full width of the window (12 column grid).
   ========================================================================== */

:root {
  --bg: #000;
  --panel: #120d22;
  --panel-2: #1a1330;
  --panel-3: #241a40;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.065);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.52);
  --muted-2: rgba(255, 255, 255, 0.36);
  --accent: #8b44f7;
  --accent-2: #a777ff;
  --accent-strong: #7532e3;
  --accent-soft: #bb98ff;
  --accent-bg: rgba(139, 68, 247, 0.16);
  --glass: rgba(16, 11, 32, 0.58);
  --glass-hover: rgba(26, 18, 52, 0.66);
  --glass-line: rgba(255, 255, 255, 0.1);
  --ink: rgba(6, 4, 14, 0.62);
  --green: #34d399;
  --red: #ef5f5f;
  --red-soft: #fca5a5;
  --yellow: #fcd34d;
  --f-display: "Sora", sans-serif;
  --f-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar: 64px;
  --sidebar: 252px;
  --gap: 16px;
  --pad: clamp(16px, 2.4vw, 36px);
  --card-pad: 22px;
  color-scheme: dark;
}
body.compact { --gap: 10px; --card-pad: 16px; --pad: clamp(12px, 1.6vw, 24px); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #000; color: var(--text); font: 14.5px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.compact { font-size: 13.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-soft); }
::selection { background: rgba(139, 68, 247, 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); }
[hidden] { display: none !important; }
.i { width: 18px; text-align: center; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.nowrap { flex-wrap: nowrap; }
.row > .input { flex: 1; min-width: 160px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(187, 152, 255, 0.18); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(187, 152, 255, 0.35); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Background: lava field + vignette + grain (lava.js) ──────────────── */
.kv-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #000; }
#kv-lava { position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; filter: blur(2.5rem); }
#kv-lava.lava-fallback, body.no-lava #kv-lava {
  background:
    radial-gradient(55% 40% at 25% 20%, rgba(125, 75, 242, 0.32), transparent 70%),
    radial-gradient(45% 35% at 80% 75%, rgba(58, 48, 201, 0.28), transparent 70%), #07060b;
}
body.no-lava #kv-lava { opacity: 0.9; }
.kv-bg-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.6) 100%),
    radial-gradient(80% 70% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
}
.kv-bg-grain {
  position: absolute; inset: -60px; opacity: 0.28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  animation: kv-grain 0.4s steps(5) infinite;
}
body.no-lava .kv-bg-grain { animation: none; }
@keyframes kv-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(50px, 50px); } 40% { transform: translate(-50px, 50px); }
  60% { transform: translate(50px, -50px); } 80% { transform: translate(-50px, -50px); } 100% { transform: translate(0, 0); }
}

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes kv-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kv-fade { from { opacity: 0; } }
@keyframes kv-title-in { from { opacity: 0; transform: translateY(0.45em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
@keyframes kv-nav-in { from { transform: translateY(-100%); opacity: 0; } }
@keyframes kv-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
@keyframes kv-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -8px; rotate: 4deg; } }
@keyframes kv-pop { from { opacity: 0; scale: 0.6; } }
@keyframes kv-line-up { from { translate: 0 108%; } to { translate: none; } }
@keyframes kv-grad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes kv-drift { from { transform: scale(1.05) translate(-2%, -1%); } to { transform: scale(1.15) translate(2%, 1%); } }
@keyframes kv-shine { 0% { background-position: -160% 0, 0 0; } 22%, 100% { background-position: 260% 0, 0 0; } }
@keyframes kv-spin { to { rotate: 360deg; } }
@keyframes kv-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes kv-modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@property --kv-beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes kv-beam { to { --kv-beam: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Brand ────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex-shrink: 0;
  background: rgba(125, 75, 242, 0.14); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.brand:hover .brand-mark { border-color: var(--accent); background: rgba(125, 75, 242, 0.26); }
.brand:hover .gem { rotate: 120deg; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; line-height: 1; white-space: nowrap; }
.brand-tag {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-soft); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(187, 152, 255, 0.3);
}
.gem {
  width: 15px; height: 15px; transform: rotate(45deg); border-radius: 4px; flex: none;
  background: linear-gradient(135deg, #e2d4ff, var(--accent) 50%, #3d36b8);
  box-shadow: 0 0 18px rgba(139, 68, 247, 0.7);
  transition: rotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gem.big { width: 44px; height: 44px; border-radius: 10px; }

/* ── Avatars ──────────────────────────────────────────────────────────── */
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-3); }
.av-letter {
  display: inline-grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: #fff;
  background: linear-gradient(135deg, #8b44f7, #3d36b8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.av-letter.big { width: 100%; height: 100%; font-size: 2.6rem; display: grid; place-items: center; }
.av-sm { width: 30px; height: 30px; font-size: 0.78rem; }
.me-avatar { width: 34px; height: 34px; }
.kv-user-avatar { width: 30px; height: 30px; font-size: 0.8rem; }
.modal-av { width: 52px; height: 52px; border-radius: 16px; font-size: 1.3rem; }
.palette-av { width: 28px; height: 28px; font-size: 0.75rem; }
.podium-av { width: 64px; height: 64px; border-radius: 22px; font-size: 1.5rem; }

/* ── Login ────────────────────────────────────────────────────────────── */
.kv-login { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 100px 24px 48px; overflow: hidden; }
@media (min-width: 768px) { .kv-login { padding: 100px 56px 48px; } }
.kv-login-brand { position: absolute; top: 18px; left: 24px; animation: kv-nav-in 0.9s var(--ease-out) both; }
@media (min-width: 768px) { .kv-login-brand { left: 40px; } }
.kv-login-grid { width: 100%; max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .kv-login-grid { grid-template-columns: 1.2fr 0.8fr; } }
.kv-login-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.kv-login-pill, .ov-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.kv-login-pill { animation: kv-fade-up 0.7s var(--ease-out) both; }
.kv-login-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; margin: 0; font-size: clamp(3rem, 7.5vw, 8rem); line-height: 0.86; letter-spacing: -0.04em; }
.kv-login-title .ln { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.kv-login-title .ln > span { display: inline-block; animation: kv-line-up 1.2s cubic-bezier(0.2, 0.9, 0.15, 1) both; }
.kv-login-title .ln:nth-child(2) > span { animation-delay: 0.12s; }
.grad {
  background: linear-gradient(100deg, #ffffff 0%, #e2d4ff 28%, #b48cff 55%, #8b44f7 80%, #c9a8ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.kv-login-title .ln > .grad { animation: kv-line-up 1.2s cubic-bezier(0.2, 0.9, 0.15, 1) 0.12s both, kv-grad 9s ease-in-out 1.4s infinite alternate; }
.kv-login-tagline { max-width: 36rem; margin: 0; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, 0.78); animation: kv-fade-up 0.8s var(--ease-out) 0.4s both; }
.kv-login-features { display: flex; flex-wrap: wrap; gap: 8px; max-width: 40rem; }
.kv-login-features span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  animation: kv-fade-up 0.6s var(--ease-out) both; animation-delay: calc(0.7s + var(--i) * 0.06s);
}
.kv-login-features i { color: var(--accent-soft); font-size: 0.75rem; }
.login-card {
  width: 100%; max-width: 440px; justify-self: center; border-radius: 24px; padding: 30px 28px 26px;
  background: rgba(16, 11, 32, 0.66); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(1.5rem) saturate(140%); backdrop-filter: blur(1.5rem) saturate(140%);
  box-shadow: 0 40px 90px -40px rgba(139, 68, 247, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: kv-fade-up 0.9s var(--ease-out) 0.3s both;
}
.login-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.login-card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.login-card p { margin: 2px 0 0; }
.login-card form .btn { width: 100%; margin-top: 22px; justify-content: center; }
.login-card a.btn { width: 100%; justify-content: center; text-decoration: none; }
.btn.discord { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat, #5865f2; box-shadow: 0 8px 24px -12px rgba(88, 101, 242, 0.9); animation: kv-shine 5s ease-in-out 3s infinite; }
.btn.discord:hover:not(:disabled) { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%) 260% 0 / 250% 100% no-repeat, #4752c4; }
.btn.discord i { font-size: 1.15rem; }
.login-error:empty { display: none; }
.login-error { color: #fecaca; margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--f-mono); font-size: 11px; margin: 18px 0 4px; text-transform: uppercase; letter-spacing: 0.14em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── App frame ────────────────────────────────────────────────────────── */
.app { min-height: 100vh; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--topbar);
  background: rgba(10, 8, 18, 0.66); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
}
.topbar .wrap { height: 100%; padding: 0 18px; display: flex; align-items: center; gap: 14px; }
.topbar-spacer { flex: 1; }
.topbar-search {
  position: relative; overflow: hidden; width: min(440px, 36vw); margin-left: 18px;
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 12px; text-align: left;
  color: rgba(255, 255, 255, 0.48); font-size: 13.5px;
  background: rgba(10, 7, 20, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.3s, color 0.2s;
}
.topbar-search::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(187, 152, 255, 0.16) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat;
  transition: background-position 1s var(--ease-out);
}
.topbar-search:hover { background: rgba(14, 10, 28, 0.85); border-color: rgba(187, 152, 255, 0.4); color: rgba(255, 255, 255, 0.78); box-shadow: 0 0 0 3px rgba(139, 68, 247, 0.14), 0 0 24px -8px rgba(139, 68, 247, 0.8); }
.topbar-search:hover::after { background-position: 260% 0; }
.topbar-search-icon { font-size: 13px; color: var(--accent-soft); }
.topbar-search-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd {
  font-family: var(--f-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 7px; color: rgba(255, 255, 255, 0.75); white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topbar .live { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; white-space: nowrap; padding: 0 6px; }
.ov-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ov-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: kv-pulse 2s ease-out infinite; }
.ov-live.off { background: var(--muted-2); }
.ov-live.off::after { display: none; }
.icon-btn {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; flex: none;
  color: rgba(255, 255, 255, 0.66); background: none; border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(187, 152, 255, 0.35); }
.kv-logout:hover { background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.4); }
.dot-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font: 600 10px/1 var(--f-mono); color: #fff; background: var(--red); box-shadow: 0 0 0 2px #0b0816, 0 0 12px rgba(239, 95, 95, 0.7);
}
.nav-toggle { display: none; }
.kv-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; max-width: 220px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.kv-user:hover { border-color: rgba(187, 152, 255, 0.45); background: rgba(139, 68, 247, 0.14); }
.topbar-username { overflow: hidden; text-overflow: ellipsis; }

.shell { padding-top: var(--topbar); }
.sidebar {
  position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); z-index: 30; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 14px;
  background: rgba(12, 9, 22, 0.66); border-right: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.content { margin-left: var(--sidebar); min-width: 0; }
.main { padding: 30px var(--pad) 80px; min-width: 0; width: 100%; }
.nav { display: flex; flex-direction: column; }
.sidebar-group { padding: 6px 0; }
.sidebar-group + .sidebar-group { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sidebar-group-label {
  width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; border-radius: 8px;
  font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  padding: 8px 11px; transition: color 0.2s, background 0.2s;
}
.sidebar-group-label:hover { color: var(--accent-soft); background: rgba(139, 68, 247, 0.08); }
.sidebar-group-label i { font-size: 9px; transition: rotate 0.25s var(--ease-out); }
.sidebar-group-label.collapsed i { rotate: -90deg; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; animation: kv-fade 0.25s ease; }
.sidebar-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; border-radius: 10px; padding: 9px 11px; font-size: 14px; color: rgba(255, 255, 255, 0.64); background: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-link .i { transition: transform 0.25s var(--ease-out), color 0.2s; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-link:hover .i { transform: translateX(2px); color: var(--accent-soft); }
.sidebar-link.active { background: linear-gradient(90deg, rgba(139, 68, 247, 0.32), rgba(139, 68, 247, 0.06)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(187, 152, 255, 0.18); }
.sidebar-link.active::before {
  content: ""; position: absolute; left: -12px; top: 50%; translate: 0 -50%; width: 3px; height: 22px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #e2d4ff, var(--accent)); box-shadow: 0 0 14px rgba(139, 68, 247, 1);
}
.sidebar-link.active .i { color: #e2d4ff; }
.sidebar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { min-width: 20px; padding: 1px 7px; border-radius: 99px; font: 600 10.5px/1.5 var(--f-mono); text-align: center; color: #e2d4ff; background: rgba(139, 68, 247, 0.28); border: 1px solid rgba(187, 152, 255, 0.3); }
.nav-badge.hot { color: #fff; background: var(--red); border-color: transparent; box-shadow: 0 0 12px rgba(239, 95, 95, 0.6); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.me {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; font-size: 14px; text-align: left; color: #fff;
  background: var(--glass); border: 1px solid var(--glass-line); transition: border-color 0.2s, background 0.2s;
}
.me:hover { border-color: rgba(187, 152, 255, 0.35); background: var(--glass-hover); }
.me-text { flex: 1; min-width: 0; }
.me .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-meta { display: flex; justify-content: space-between; padding: 0 4px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent-soft); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.linkish:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.linkish.strong { color: #fff; font-size: inherit; font-weight: 600; }
.linkish.strong:hover { color: var(--accent-soft); }
.sidebar-meta .linkish { color: var(--muted); font-size: 12px; }
.sidebar-meta .linkish:hover { color: #fff; }
.scrim { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease-out); width: min(300px, 86vw); box-shadow: 30px 0 60px -30px #000; background: rgba(12, 9, 22, 0.94); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--topbar) 0 0 0; z-index: 25; background: rgba(0, 0, 0, 0.5); animation: kv-fade 0.2s; }
  .content { margin-left: 0; }
  .topbar-search { width: auto; flex: 1; margin-left: 4px; }
  .topbar-spacer { display: none; }
}
@media (max-width: 720px) {
  .topbar-username, .brand-tag, .topbar .live-text, .topbar-search kbd { display: none; }
  .kv-user { padding-right: 4px; }
  .topbar .wrap { gap: 8px; padding: 0 12px; }
}
@media (max-width: 560px) {
  .topbar .brand-name, .topbar-search-label { display: none; }
  .topbar-search { flex: 0 0 40px; justify-content: center; padding: 0; }
  .topbar-spacer { display: block; }
  .topbar .live { display: none; }
}

/* ── Page header ──────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head-text { min-width: 0; flex: 1 1 420px; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft);
  animation: kv-fade-up 0.6s var(--ease-out) both;
}
.page-eyebrow i { font-size: 0.6rem; opacity: 0.5; color: #fff; }
.page-head h1 {
  font-weight: 700; text-transform: uppercase; margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.035em;
  background: linear-gradient(100deg, #fff 0%, #fff 45%, #d9c7ff 75%, #a777ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 24px rgba(8, 3, 24, 0.6));
  animation: kv-title-in 0.9s cubic-bezier(0.2, 0.9, 0.15, 1) both;
}
.subtitle { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-2); max-width: 72ch; animation: kv-fade-up 0.8s var(--ease-out) 0.12s both; }
.page-actions { flex-wrap: nowrap; }
.page-actions .input { width: clamp(180px, 22vw, 320px); flex: 0 1 auto; }
@media (max-width: 720px) { .page-actions { flex-wrap: wrap; width: 100%; } .page-actions .input { flex: 1; width: auto; } }

/* ── Grid ─────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.grid.dash { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: var(--gap); align-items: start; }
.grid.dash > * { grid-column: span 12; }
@media (min-width: 900px) {
  .grid.dash > .span-6 { grid-column: span 6; }
  .grid.dash > .span-5 { grid-column: span 5; }
  .grid.dash > .span-7 { grid-column: span 7; }
}
@media (min-width: 1200px) {
  .grid.dash > .span-4 { grid-column: span 4; }
  .grid.dash > .span-8 { grid-column: span 8; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .grid.dash > .span-4 { grid-column: span 6; }
  .grid.dash > .span-8 { grid-column: span 12; }
}
.grid.profile { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; }
.grid.profile .col-main, .grid.profile .col-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@media (max-width: 1100px) { .grid.profile { grid-template-columns: 1fr; } }

/* ── Overview hero + tiles ────────────────────────────────────────────── */
.ov-hero {
  position: relative; border-radius: 24px; overflow: hidden; margin-bottom: var(--gap);
  border: 1px solid var(--glass-line); background: var(--glass);
  -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem);
  animation: kv-fade-up 0.8s var(--ease-out) both;
}
.ov-cover { position: relative; height: 140px; overflow: hidden; background: conic-gradient(from 160deg at 70% 30%, #7a3fe6, #3d36b8, #24164f, #7a3fe6); }
.ov-cover::before {
  content: ""; position: absolute; inset: -30%;
  background-image: var(--cover, radial-gradient(40% 60% at 30% 40%, rgba(226, 212, 255, 0.35), transparent 70%));
  background-size: cover; background-position: center;
  filter: blur(26px) saturate(1.5); opacity: 0.9; animation: kv-drift 18s ease-in-out infinite alternate;
}
.ov-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 6, 20, 0) 20%, rgba(14, 10, 28, 0.96)); }
.ov-hero-body { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 0 28px 26px; margin-top: -56px; flex-wrap: wrap; }
.ov-avatar {
  width: 108px; height: 108px; border-radius: 30%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #8b44f7, #3d36b8); border: 4px solid #110c21;
  box-shadow: 0 18px 40px -14px rgba(139, 68, 247, 0.9);
  animation: kv-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.ov-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ov-hero-text { min-width: 0; flex: 1 1 360px; }
.ov-hero h1 {
  font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere;
  font-size: clamp(1.8rem, 3.8vw, 3.1rem); line-height: 0.95; letter-spacing: -0.035em; margin: 12px 0 8px;
  animation: kv-title-in 0.9s cubic-bezier(0.2, 0.9, 0.15, 1) 0.1s both;
}
.ov-hero .subtitle { margin-bottom: 6px; }
.ov-hero .page-actions { margin-left: auto; }
.hero-status { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hero-status:empty { display: none; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--line-soft); background: rgba(6, 4, 14, 0.3); }
.player-hero .ov-hero-text .row { gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip-btn:hover { background: rgba(139, 68, 247, 0.16); border-color: rgba(187, 152, 255, 0.4); color: #fff; }
.chip-btn i { color: var(--accent-soft); font-size: 0.72rem; }
@media (max-width: 640px) { .ov-hero-body { padding: 0 18px 20px; } .ov-avatar { width: 84px; height: 84px; } .hero-actions { padding: 12px 18px; } }

.ov-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.ov-tile {
  position: relative; border-radius: 18px; padding: 20px 22px; overflow: hidden; min-width: 0;
  background-color: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem);
  background-image: radial-gradient(22rem circle at var(--mx, -60rem) var(--my, -60rem), rgba(187, 152, 255, 0.12), transparent 45%);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  animation: kv-fade-up 0.7s var(--ease-out) both;
}
.ov-tile:nth-child(2) { animation-delay: 0.05s; } .ov-tile:nth-child(3) { animation-delay: 0.1s; } .ov-tile:nth-child(4) { animation-delay: 0.15s; } .ov-tile:nth-child(5) { animation-delay: 0.2s; }
.ov-tile:hover { border-color: rgba(187, 152, 255, 0.32); background-color: var(--glass-hover); box-shadow: 0 20px 44px -26px rgba(139, 68, 247, 0.8); }
.ov-tile-icon { position: absolute; right: 16px; top: 14px; font-size: 2.8rem; color: rgba(187, 152, 255, 0.13); transition: color 0.4s, scale 0.6s var(--ease-out); animation: kv-float 7s ease-in-out infinite; }
.ov-tile:hover .ov-tile-icon { color: rgba(187, 152, 255, 0.3); scale: 1.08; }
.ov-tile-num {
  position: relative; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.05;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 30px;
  background: linear-gradient(120deg, #fff 35%, #c9adff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.ov-tile-label { margin-top: 8px; font-size: 0.85rem; color: var(--text-2); }
.ov-tile-extra { margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.ov-tile-extra .linkish { font-size: 0.78rem; }
.ov-tiles.small .ov-tile { padding: 16px 18px; }
.ov-tiles.small .ov-tile-num { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.ov-tiles.small .ov-tile-icon { font-size: 2.2rem; }
@media (max-width: 640px) {
  .ov-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ov-tile { padding: 14px 14px 16px; }
  .ov-tile-icon { font-size: 1.8rem; right: 10px; top: 10px; }
}

/* light running along the border on hover, as on the site */
.ov-tile::after, .server::after, .ov-link::after, .podium-spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--kv-beam), transparent 0deg, rgba(212, 190, 255, 0.95) 40deg, transparent 90deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease; animation: kv-beam 3.2s linear infinite;
}
.ov-tile:hover::after, .server:hover::after, .ov-link:hover::after, .podium-spot:hover::after { opacity: 1; }

.ov-section-title { display: flex; align-items: center; gap: 14px; margin: 30px 0 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.35rem; }
.ov-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(187, 152, 255, 0.5), transparent); }
.ov-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.ov-link { position: relative; display: flex; padding: 9px; border-radius: 20px; color: #fff; text-align: left; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem); transition: border-color 0.3s, background-color 0.3s; }
.ov-link:hover { border-color: rgba(187, 152, 255, 0.3); background-color: var(--glass-hover); }
.ov-link-face { position: relative; flex: 1; min-height: 170px; border-radius: 13px; padding: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; background: conic-gradient(from var(--deg, 45deg), #7a3fe6, #3d36b8); }
.ov-link-float { position: absolute; right: 12px; bottom: 6px; font-size: 5.6rem; color: rgba(255, 255, 255, 0.16); animation: kv-float 7s ease-in-out infinite; transition: color 0.4s, scale 0.6s var(--ease-out); }
.ov-link:hover .ov-link-float { color: rgba(255, 255, 255, 0.3); scale: 1.08; }
.ov-link-label { position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1; }
.ov-link-hint { position: relative; font-size: 0.86rem; line-height: 1.45; color: rgba(255, 255, 255, 0.84); max-width: 85%; }
.ov-link-go { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); }
.ov-link-go i { transition: translate 0.3s var(--ease-out); }
.ov-link:hover .ov-link-go i { translate: 4px 0; }

/* ── Glass cards ──────────────────────────────────────────────────────── */
.card, .stat, .server, .modal {
  background-color: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(1.5rem) saturate(140%); backdrop-filter: blur(1.5rem) saturate(140%);
  background-image: radial-gradient(26rem circle at var(--mx, -60rem) var(--my, -60rem), rgba(187, 152, 255, 0.1), transparent 45%);
}
.card { position: relative; border-radius: 18px; padding: var(--card-pad); transition: border-color 0.3s; animation: kv-fade-up 0.6s var(--ease-out) both; min-width: 0; }
.card:hover { border-color: rgba(187, 152, 255, 0.22); }
.main > .card + .card, .main > .card + .grid, .main > .grid + .card, .player-result > .card + .card { margin-top: var(--gap); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3, .card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.card-head h3 .i, .card h3 .i { color: var(--accent-soft); }
.card-head .tabs { margin: 0; }
.card > p:last-child, .card > .muted:last-child { margin-bottom: 0; }
.card p { margin: 0 0 12px; }
.stat { position: relative; border-radius: 14px; padding: 14px 16px; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 0.8rem; }
.stat .value { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.danger-zone { border-color: rgba(248, 113, 113, 0.25); margin-top: var(--gap); }
.danger-zone h3 .i { color: var(--red-soft) !important; }
.callout { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: var(--gap); background: rgba(139, 68, 247, 0.12); border: 1px solid rgba(187, 152, 255, 0.25); color: #e2d4ff; }

/* ── Lists ────────────────────────────────────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 2px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; min-width: 0; width: 100%; text-align: left; border: 0; background: none; color: inherit; transition: background 0.15s; }
.list-row:hover { background: rgba(139, 68, 247, 0.08); }
.list-row.clickable { cursor: pointer; }
.list-row .when { color: var(--accent-soft); font-family: var(--f-mono); font-size: 11.5px; white-space: nowrap; min-width: 42px; }
.place { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 600 12px/1 var(--f-mono); color: var(--text-2); background: rgba(255, 255, 255, 0.06); flex: none; }
.place-1 { color: #1b1300; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.place-2 { color: #111; background: linear-gradient(135deg, #f4f4f5, #a1a1aa); }
.place-3 { color: #1a0d00; background: linear-gradient(135deg, #fdba74, #c2410c); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border-radius: 999px; color: #fff; text-align: left; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s, border-color 0.2s; }
.person-chip:hover:not(.static) { background: rgba(139, 68, 247, 0.16); border-color: rgba(187, 152, 255, 0.4); }
.who { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.streak { color: #fdba74; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.streak i { font-size: 0.8em; }
.ping.meh { color: var(--yellow); }
.ping.bad { color: var(--red-soft); }

/* live ops lines */
.live-line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background 0.15s; }
.live-line + .live-line { border-top: 1px solid var(--line-soft); }
.live-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); }
.live-line.on .live-ico { color: #e2d4ff; background: rgba(139, 68, 247, 0.22); border-color: rgba(187, 152, 255, 0.3); }
.pill { padding: 3px 10px; border-radius: 999px; font: 600 10.5px/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); white-space: nowrap; }
.pill.on { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
.pill.warn { color: #fde68a; background: rgba(252, 211, 77, 0.1); border-color: rgba(252, 211, 77, 0.35); }
.live-card.is-on { border-color: rgba(52, 211, 153, 0.3); box-shadow: 0 20px 50px -30px rgba(52, 211, 153, 0.5); }
.live-card.is-warning { border-color: rgba(252, 211, 77, 0.3); box-shadow: 0 20px 50px -30px rgba(252, 211, 77, 0.45); }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.chat-preview { margin: 12px 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-soft); font-family: var(--f-body); }
.chat-tag { color: var(--accent-soft); font-weight: 700; }
.game-preview { border-radius: 14px; padding: 28px 18px 60px; background: linear-gradient(180deg, #5c9be0 0%, #9cc8f0 55%, #4f8f3f 56%, #3f7a33 100%); overflow: hidden; }
.announce-banner { max-width: 440px; margin: 0 auto; text-align: center; padding: 12px 16px; border-radius: 10px; background: rgba(10, 8, 12, 0.82); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.announce-from { font: 600 10.5px/1.4 var(--f-mono); letter-spacing: 0.12em; color: #fde68a; margin-bottom: 4px; }
.announce-text { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: #fff; overflow-wrap: anywhere; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.3;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat, var(--accent);
  box-shadow: 0 8px 24px -12px rgba(125, 75, 242, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: background-position 0.9s var(--ease-out), background-color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s, border-color 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%) 260% 0 / 250% 100% no-repeat, var(--accent-strong); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.busy { color: transparent !important; }
.btn.busy > * { visibility: hidden; }
.btn.busy::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: kv-spin 0.7s linear infinite; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.88); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn.red { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat, var(--red); box-shadow: 0 8px 24px -12px rgba(248, 113, 113, 0.9); }
.btn.red:hover:not(:disabled) { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) 260% 0 / 250% 100% no-repeat, #f47a7a; }
.btn.green { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat, #10b981; box-shadow: 0 8px 24px -12px rgba(52, 211, 153, 0.8); }
.btn.green:hover:not(:disabled) { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%) 260% 0 / 250% 100% no-repeat, #059669; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.icon-only { padding: 6px 9px; }
.btn-lg { padding: 13px 22px; font-size: 0.98rem; border-radius: 12px; }
@media (max-width: 1280px) { .hide-sm { display: none; } }

/* ── Forms ────────────────────────────────────────────────────────────── */
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; outline: none; color: #f2f3f8;
  background-color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
}
.input:hover:not(:disabled) { border-color: rgba(187, 152, 255, 0.32); }
.input:focus { background-color: rgba(10, 7, 20, 0.9); border-color: rgba(187, 152, 255, 0.6); box-shadow: 0 0 0 3px rgba(139, 68, 247, 0.22), 0 0 26px -8px rgba(139, 68, 247, 0.85); }
.input:disabled { opacity: 0.6; }
.input::placeholder { color: rgba(255, 255, 255, 0.38); }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--accent-soft) 50%), linear-gradient(135deg, var(--accent-soft) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option, select.input optgroup { background: #120d22; color: #fff; }
textarea.input { min-height: 80px; resize: vertical; }
input[type="datetime-local"].input { color-scheme: dark; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 38px; }
.input-icon { position: absolute; left: 13px; color: var(--accent-soft); font-size: 13px; pointer-events: none; }
.input-addon { position: absolute; right: 6px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); }
.input-addon:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.field-label { color: var(--text-2); font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; display: block; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field .field-label { margin-top: 12px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; margin-bottom: 14px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.search-hero { display: flex; gap: 10px; }
.search-hero .input { padding-top: 13px; padding-bottom: 13px; font-size: 15px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; color: var(--text-2); font-size: 13.5px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.25s, border-color 0.25s; flex: none; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--ease-out); }
.switch-input:checked + .switch-track { background: var(--accent); border-color: var(--accent-2); box-shadow: 0 0 16px -4px rgba(139, 68, 247, 0.9); }
.switch-input:checked + .switch-track .switch-thumb { transform: translateX(16px); }
.switch-input:focus-visible + .switch-track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid rgba(255, 255, 255, 0.12);
}
.badge i { font-size: 0.85em; }
.badge.online { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
.badge.banned, .badge.warning { background: rgba(248, 113, 113, 0.12); color: var(--red-soft); border-color: rgba(248, 113, 113, 0.4); }
.badge.event { background: rgba(252, 211, 77, 0.1); color: #fde68a; border-color: rgba(252, 211, 77, 0.35); }
.badge.state-playing { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.badge.state-voting { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); background: rgba(147, 197, 253, 0.08); }
.badge.rank-owner { color: #fde68a; border-color: rgba(253, 230, 138, 0.4); background: rgba(253, 230, 138, 0.08); }
.badge.rank-admin { color: #e2d4ff; border-color: rgba(187, 152, 255, 0.45); background: rgba(139, 68, 247, 0.18); }
.badge.rank-moderator { color: #93c5fd; border-color: rgba(147, 197, 253, 0.4); background: rgba(147, 197, 253, 0.08); }
.badge.rank-helper { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); background: rgba(110, 231, 183, 0.08); }
.badge.rank-schedule { color: var(--muted); }
.badge.equipped { color: var(--accent-soft); border-color: rgba(187, 152, 255, 0.45); background: var(--accent-bg); }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tabs button i { font-size: 0.78rem; opacity: 0.8; }
.tabs button:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }
.tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -12px rgba(139, 68, 247, 0.9); }
.tabs .count { font: 500 10.5px/1 var(--f-mono); opacity: 0.7; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 calc(var(--card-pad) * -0.4); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-family: var(--f-mono); font-weight: 500; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.th-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 6px; }
th.sorted, .th-btn:hover { color: var(--accent-soft); }
tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: rgba(139, 68, 247, 0.07); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th.center, td.center { text-align: center; }
td.yes { color: var(--green); }
td.no { color: var(--muted-2); }
td.nowrap { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.log-table td.mono { max-width: 520px; overflow-wrap: anywhere; }
.bar-cell { min-width: 220px; }
.bar-cell .bar { display: inline-block; vertical-align: middle; width: calc(100% - 80px); min-width: 80px; margin-right: 10px; }
.num-val { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Chart ────────────────────────────────────────────────────────────── */
.chart-wrap { position: relative; width: 100%; }
.chart { display: block; max-width: 100%; height: auto; }
.chart .area { fill: url(#violetfade); }
.chart .line { fill: none; stroke: var(--accent-soft); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(139, 68, 247, 0.9)); }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart .cursor { stroke: rgba(187, 152, 255, 0.5); stroke-dasharray: 3 4; }
.chart .cursor-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); padding: 7px 11px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; background: rgba(10, 7, 20, 0.92); border: 1px solid rgba(187, 152, 255, 0.3); opacity: 0; transition: opacity 0.15s; }
.chart-tip.on { opacity: 1; }
.bar { flex: 1; min-width: 100px; height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #6a3be0, #b48cff 60%, #e2d4ff); box-shadow: 0 0 12px rgba(139, 68, 247, 0.8); border-radius: 99px; }
.bar.thin { height: 4px; margin-top: 6px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 160px; align-items: end; }
.bar-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-fill { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #b48cff, #6a3be0); box-shadow: 0 0 18px -4px rgba(139, 68, 247, 0.8); animation: kv-fade-up 0.6s var(--ease-out) both; }
.bar-num { font: 600 11px/1 var(--f-mono); color: var(--text-2); }
.bar-day { font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; }

/* ── Servers ──────────────────────────────────────────────────────────── */
.server { position: relative; border-radius: 16px; margin-bottom: 10px; overflow: hidden; transition: border-color 0.3s, background-color 0.3s; animation: kv-fade-up 0.5s var(--ease-out) both; }
.server:hover, .server.open { border-color: rgba(187, 152, 255, 0.3); background-color: var(--glass-hover); }
.server-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; flex-wrap: wrap; }
.server-chevron { color: var(--muted); font-size: 11px; transition: rotate 0.25s var(--ease-out); }
.server-head[aria-expanded="true"] .server-chevron { rotate: 90deg; color: var(--accent-soft); }
.server-id { min-width: 120px; }
.server-head .title { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; }
.server-head .meta { color: var(--muted); font-size: 12.5px; }
.server-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.server-count { font-family: var(--f-display); font-size: 1.1rem; white-space: nowrap; }
.server-body { border-top: 1px solid var(--line-soft); padding: 6px 12px 10px; animation: kv-fade 0.25s; }

/* ── Player profile ───────────────────────────────────────────────────── */
.stat-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stat-edit .row .input { min-width: 70px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.notes { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.note { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.note.warning { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07); }
.note .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.note .meta button { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 2px 4px; border-radius: 6px; }
.note .meta button:hover { color: var(--red-soft); background: rgba(248, 113, 113, 0.1); }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-form { display: flex; flex-direction: column; gap: 8px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(187, 152, 255, 0.5), transparent); }
.timeline .empty { margin-left: -18px; }
.tl-item { position: relative; font-size: 13.5px; }
.tl-dot { position: absolute; left: -18px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(139, 68, 247, 0.9); }

/* ── Items ────────────────────────────────────────────────────────────── */
.item-group + .item-group { margin-top: 18px; }
.group-title { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-soft); margin: 4px 0 10px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.item-grid.big { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.item-card {
  --rarity: #d4d4d8;
  position: relative; border-radius: 12px; padding: 11px 12px 11px 15px; display: flex; flex-direction: column; gap: 4px; min-height: 86px; text-align: left; color: #fff; font-size: 14px;
  background-color: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(100deg, color-mix(in srgb, var(--rarity) 14%, transparent), transparent 60%);
  box-shadow: inset 3px 0 0 var(--rarity);
  transition: border-color 0.2s, opacity 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.item-card.missing { opacity: 0.5; border-style: dashed; }
.item-card.clickable { cursor: pointer; }
.item-card.clickable:hover { opacity: 1; border-color: rgba(187, 152, 255, 0.45); background-color: rgba(139, 68, 247, 0.08); transform: translateY(-1px); }
.item-card.selected { opacity: 1; border-color: var(--accent-soft); border-style: solid; box-shadow: inset 3px 0 0 var(--rarity), 0 0 0 2px rgba(139, 68, 247, 0.35); }
.item-card.selected::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 10px; bottom: 8px; color: var(--accent-soft); font-size: 12px; }
.item-name { font-weight: 600; padding-right: 20px; }
.item-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.item-meta .rarity { color: var(--rarity); font-weight: 700; }
.item-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.item-flags .badge { font-size: 9.5px; padding: 1px 6px; }
.item-id { opacity: 0.6; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 7px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.item-remove:hover { color: var(--red-soft); background: rgba(248, 113, 113, 0.12); }
pre.raw { background: var(--ink); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; overflow: auto; max-height: 420px; font: 12px/1.5 var(--f-mono); margin: 12px 0 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.log-cat { font-family: var(--f-mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 22px; font-size: 14px; background: rgba(252, 211, 77, 0.08); border: 1px solid rgba(252, 211, 77, 0.3); color: #fde68a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ── Reports ──────────────────────────────────────────────────────────── */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: var(--gap); }
@media (max-width: 520px) { .report-grid { grid-template-columns: 1fr; } }
.card.report { display: flex; flex-direction: column; gap: 10px; }
.report-top { display: flex; gap: 12px; align-items: flex-start; }
.report-title { font-size: 15px; }
.report-weapon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 15px; }
.report-weapon.rev { color: #fde68a; background: rgba(252, 211, 77, 0.12); border: 1px solid rgba(252, 211, 77, 0.3); }
.report-weapon.knife { color: #e2d4ff; background: rgba(139, 68, 247, 0.18); border: 1px solid rgba(187, 152, 255, 0.3); }
.report-actions { margin-top: auto; }
.legend { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
.legend::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.legend.killer { color: #ff6b7d; } .legend.victim { color: #bb98ff; } .legend.nearby { color: rgba(255, 255, 255, 0.6); }
.clip-canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-soft); display: block; margin-top: 12px; background: #0c0817; }
.clip-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.clip-controls .tabs { margin: 0; }
.clip-slider { flex: 1; min-width: 200px; accent-color: var(--accent); }
.clip-time { min-width: 56px; text-align: right; color: var(--accent-soft); }

/* ── Leaderboards ─────────────────────────────────────────────────────── */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; align-items: end; gap: var(--gap); margin: 10px 0 var(--gap); }
.podium:empty { display: none; }
.podium-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px 0; border-radius: 20px 20px 14px 14px; color: #fff; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem); animation: kv-fade-up 0.7s var(--ease-out) both; }
.podium-spot strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-rank { position: absolute; top: 10px; left: 12px; font: 700 1.2rem/1 var(--f-display); color: var(--muted); }
.podium-value { font: 600 12.5px/1 var(--f-mono); color: var(--accent-soft); }
.podium-base { width: 100%; margin-top: 10px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, rgba(139, 68, 247, 0.45), rgba(139, 68, 247, 0.05)); }
.podium-spot.place-1 { order: 2; } .podium-spot.place-1 .podium-base { height: 90px; background: linear-gradient(180deg, rgba(253, 230, 138, 0.5), rgba(245, 158, 11, 0.05)); }
.podium-spot.place-2 { order: 1; } .podium-spot.place-2 .podium-base { height: 60px; }
.podium-spot.place-3 { order: 3; } .podium-spot.place-3 .podium-base { height: 40px; background: linear-gradient(180deg, rgba(253, 186, 116, 0.45), rgba(194, 65, 12, 0.05)); }
.podium-spot.place-1 .podium-rank { color: #fde68a; }

/* ── Empty / loading ──────────────────────────────────────────────────── */
.empty { color: var(--muted); padding: 30px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.empty > i { font-size: 1.6rem; color: rgba(187, 152, 255, 0.35); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(187, 152, 255, 0.25); border-top-color: var(--accent-soft); animation: kv-spin 0.75s linear infinite; }
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skeleton span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(187, 152, 255, 0.12), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: kv-shimmer 1.4s linear infinite; }

/* ── Toasts ───────────────────────────────────────────────────────────── */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 14px; border-radius: 12px; min-width: 240px; max-width: 400px; font-size: 14px;
  background: rgba(16, 11, 32, 0.94); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); animation: kv-fade-up 0.35s var(--ease-out); transition: opacity 0.3s, transform 0.3s;
}
.toast i { color: var(--accent-soft); }
.toast.error i { color: var(--red-soft); }
.toast.success i { color: var(--green); }
.toast.error { border-color: rgba(248, 113, 113, 0.35); }
.toast.success { border-color: rgba(52, 211, 153, 0.3); }
.toast.out { opacity: 0; transform: translateX(20px); }

/* ── Modals + command palette ─────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 60; padding: 16px; display: grid; place-items: center; background: rgba(4, 2, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: kv-fade 0.2s; overflow-y: auto; }
.modal-bg.out { opacity: 0; transition: opacity 0.15s; }
.modal { border-radius: 20px; padding: 24px; width: 100%; max-width: 480px; background-color: rgba(16, 11, 32, 0.94); box-shadow: 0 40px 80px -30px rgba(139, 68, 247, 0.6); animation: kv-modal-in 0.3s var(--ease-out); }
.modal.wide { max-width: 1100px; }
.modal-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.modal-head h3 { margin: 2px 0 4px; font-size: 1.2rem; letter-spacing: -0.02em; }
.modal-head p { margin: 0; overflow-wrap: anywhere; }
.modal-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 16px; color: #e2d4ff; background: rgba(139, 68, 247, 0.2); border: 1px solid rgba(187, 152, 255, 0.3); }
.modal-icon.danger { color: var(--red-soft); background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.35); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.palette-modal { max-width: 680px; padding: 0; overflow: hidden; align-self: start; margin-top: 10vh; }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.palette-search > i { color: var(--accent-soft); }
.palette-input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: #fff; min-width: 0; }
.palette-input::placeholder { color: var(--muted); }
.palette-results { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.palette-group-label { padding: 10px 10px 6px; font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); }
.palette-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: rgba(255, 255, 255, 0.85); text-align: left; font-size: 14px; }
.palette-row.selected { background: linear-gradient(90deg, rgba(139, 68, 247, 0.3), rgba(139, 68, 247, 0.06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(187, 152, 255, 0.2); }
.palette-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--accent-soft); background: rgba(139, 68, 247, 0.14); font-size: 12px; }
.palette-label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-hint { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.palette-foot span { display: inline-flex; gap: 4px; align-items: center; }
.shortcut-list { display: flex; flex-direction: column; margin-top: 10px; }
.shortcut { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.shortcut:last-child { border-bottom: 0; }
.shortcut kbd + kbd { margin-left: 4px; }
.pref-list { display: flex; flex-direction: column; margin: 14px 0; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.pref-title { font-weight: 600; }

/* ── Compact mode ─────────────────────────────────────────────────────── */
body.compact .page-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
body.compact .ov-cover { height: 96px; }
body.compact .ov-avatar { width: 84px; height: 84px; }
body.compact th, body.compact td { padding: 7px 10px; }
body.compact .ov-tile-num { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
body.compact .ov-link-face { min-height: 130px; }

/* ── Spacing fixes ────────────────────────────────────────────────────── */
.player-result { margin-top: var(--gap); }
.card + .card, .grid + .card, .card + .grid, .ov-tiles + .card { margin-top: var(--gap); }
.grid > .card + .card, .grid.profile .card + .card { margin-top: 0; }
.card .row.end { margin-top: 14px; }
.card .form-grid + .row.end { margin-top: 4px; }
.modal.palette-modal { max-width: 680px; }
.clip-meta { margin-top: 8px; }
.clip-events { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 26px; }
.clip-event { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; background: rgba(252, 211, 77, 0.08); border: 1px solid rgba(252, 211, 77, 0.25); color: #fde68a; }
.clip-event strong { color: #fff; }
.source-line { margin: -6px 0 12px; }
