:root {
  /* Gamingowy panel pod ROB RUN: grafit, zloto, ukosne paski i ziarno jak na banerach, naglowki Poppins wersalikami. */
  color-scheme: dark;
  --bg: #08090c;
  --side: #0c0d11;
  --surface: #121318;
  --surface-2: #181a21;
  --input: #0b0c10;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f1f1f4;
  --muted: #8d91a3;
  --gold: #e8b23a;
  --gold-2: #f6cf6a;
  --gold-soft: rgba(232, 178, 58, 0.13);
  --good: #34d399;
  --bad: #f87171;
  --radius: 14px;
  --display: "Poppins", "Segoe UI", sans-serif;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --stripes: repeating-linear-gradient(-55deg, rgba(255,255,255,.028) 0 14px, transparent 14px 34px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html, body { margin: 0; height: 100%; color: var(--text); font: 500 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body { background: var(--grain), radial-gradient(900px 500px at 85% -10%, rgba(232,178,58,.07), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(232, 178, 58, 0.35); }
* { scrollbar-width: thin; scrollbar-color: #2b2e3a transparent; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }

/* logowanie */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login-card { position: relative; overflow: hidden; width: min(420px, 100%); display: grid; gap: 16px; justify-items: start;
  background: var(--stripes), linear-gradient(135deg, rgba(232,178,58,.16), transparent 55%), var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 16px; padding: 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.login-mark { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #17130a; }
.login h1 { font: 800 34px/1 var(--display); text-transform: uppercase; margin: 0; }
.login p { color: var(--muted); margin: 0; }
.login .btn { width: 100%; }

/* uklad */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--stripes), var(--side); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 6px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); box-shadow: 0 0 0 2px var(--gold); }
.brand b { display: block; font: 800 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand small { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.guild-pick select { font-weight: 700; background-color: var(--surface); border-color: var(--line-2); }
nav { display: grid; gap: 14px; }
.nav-group { display: grid; gap: 2px; }
.nav-label { font: 700 10.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #5d6174; padding: 4px 10px 6px; }
nav button { all: unset; position: relative; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; color: #a9adbd; cursor: pointer; font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; }
nav button svg { flex: none; }
nav button .ndot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #2c2f3b; }
nav button .ndot.on { background: var(--good); box-shadow: 0 0 8px rgba(52,211,153,.6); }
nav button:hover { background: rgba(255,255,255,.04); color: var(--text); }
nav button.on { background: linear-gradient(90deg, var(--gold-soft), transparent); color: var(--gold-2); }
nav button.on::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
nav button:focus-visible { outline: 2px solid var(--gold); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.me img { width: 28px; height: 28px; border-radius: 50%; }
.me .link { margin-left: auto; color: var(--muted); }
.me .link:hover { color: var(--text); }
.view { padding: 26px 34px 80px; min-width: 0; outline: none; max-width: 1500px; width: 100%; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  nav { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .me { margin-top: 0; }
  .view { padding: 18px 14px 60px; }
}

/* hero jak baner bota */
.hero { --c: var(--gold); position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); padding: 28px 30px 26px 34px; margin-bottom: 22px;
  background: var(--grain), var(--stripes), radial-gradient(520px 260px at 12% 50%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%), linear-gradient(90deg, #17181f, #0e0f14);
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); box-shadow: 0 0 24px var(--c); }
.hero-main { display: flex; gap: 18px; align-items: center; min-width: 0; }
.hero-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #0b0b0b; background: var(--c); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 45%, transparent); }
.hero-icon svg { width: 28px; height: 28px; }
.hero h1 { font: 800 clamp(26px, 3.2vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0; text-shadow: 0 4px 18px rgba(0,0,0,.6); text-wrap: balance; }
.hero p { margin: 8px 0 0; color: #c3c6d2; max-width: 64ch; }
.hero-sub { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-top: 10px; }
.hero .row { position: relative; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.stat b { font: 800 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat b small { font-size: 16px; color: var(--muted); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-title { font: 800 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* kafelki modulow */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { --c: var(--gold); all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 18px;
  background: radial-gradient(260px 140px at 0% 0%, color-mix(in srgb, var(--c) 15%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.tile:focus-visible { outline: 2px solid var(--c); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.tile h3 { margin: 0; font: 800 16px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.on { background: rgba(52,211,153,.12); color: var(--good); }
.pill.half { background: var(--gold-soft); color: var(--gold); }
.pill.info { background: rgba(255,255,255,.06); color: #c3c6d2; }

/* przelacznik */
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #262833; border: 1px solid var(--line-2); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9a9eb0; transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--good); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* karty */
.page-head { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.card h2 { font: 800 13.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 0; display: flex; align-items: center; gap: 9px; }
.card h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gold); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 560px); gap: 22px; align-items: start; }
.sticky { position: sticky; top: 22px; }
@media (max-width: 1200px) { .split, .grid2 { grid-template-columns: 1fr; } .sticky { position: static; } }
.stack { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* formularze */
.field { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.field > span { color: #c9ccd8; }
.field small, .hint { color: var(--muted); font-size: 12.5px; font-weight: 500; margin: 0; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; cursor: pointer; }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; background-color: var(--input); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font: 500 14px/1.45 var(--font); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5b5f71; }
input[type=text]:focus, input[type=number]:focus, input[type=url]:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(232,178,58,.65); box-shadow: 0 0 0 3px rgba(232,178,58,.14);
}
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e8b23a' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--gold); }
input[type=color] { width: 42px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--input); cursor: pointer; }
input[type=file] { font: 500 13px var(--font); color: var(--muted); }
input[type=file]::file-selector-button { font: 700 12.5px var(--font); background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }
.slot { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; background: var(--input); border: 1px solid var(--line); border-radius: 12px; }
.slot-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font: 800 18px var(--display); }
.slot.set .slot-ico { background: var(--gold-soft); color: var(--gold); }
.slot .field > span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 16px; font: 700 13px/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: #20222b; border-color: rgba(255,255,255,.2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1408; border-color: transparent; font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(232,178,58,.25), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary:hover { box-shadow: 0 10px 30px rgba(232,178,58,.38), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.discord { background: #5865f2; color: #fff; border-color: transparent; }
.btn.discord:hover { background: #4752c4; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); }
.btn.small { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn.big { padding: 14px 22px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

/* drobne elementy */
.badge { display: inline-block; font: 700 10.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.badge.ok { background: rgba(52,211,153,.12); color: var(--good); }
.badge.warn { background: var(--gold-soft); color: var(--gold); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--input); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 9px; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--gold); color: #1a1408; }
.tabs button:focus-visible { outline: 2px solid var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar select { width: auto; max-width: 200px; padding: 6px 30px 6px 10px; font-size: 12.5px; border-radius: 8px; background-position: right 8px center; }
.toolbar .btn { padding: 6px 9px; font: 600 12px ui-monospace, Consolas, monospace; color: var(--gold-2); }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--input); border: 1px solid var(--line); border-radius: 12px; }
.item b { font-weight: 800; }
.status-line { display: flex; gap: 10px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.dot.no { background: #343747; }
.empty { color: var(--muted); font-weight: 500; }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--bad); }
.sep { height: 1px; background: var(--line); margin: 2px 0; }

/* drabinka kar */
.ladder { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 70px 1fr 1fr auto; gap: 14px; align-items: end; padding: 14px; background: var(--input); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--gold)); border-radius: 12px; }
.step-num { display: grid; justify-items: center; gap: 2px; }
.step-num input { text-align: center; font: 800 22px/1 var(--display); padding: 8px 4px; }
.step-num small { font: 700 10px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .step { grid-template-columns: 1fr 1fr; } }

/* uprawnienia */
.perm { --c: var(--gold); display: grid; gap: 12px; padding: 16px; background: radial-gradient(220px 120px at 0 0, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.perm-head { display: flex; gap: 12px; align-items: center; }
.perm-head .tile-icon { width: 38px; height: 38px; border-radius: 10px; }
.perm-head b { font: 800 14px/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.perm-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font); }

/* wybor rol */
.rp { display: grid; gap: 8px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 12.5px; font-weight: 700; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip button { all: unset; cursor: pointer; color: var(--muted); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
.chip button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.rp details { position: relative; }
.rp summary { list-style: none; cursor: pointer; display: inline-flex; color: var(--gold); font-weight: 700; font-size: 12.5px; }
.rp summary::-webkit-details-marker { display: none; }
.rp-pop { position: absolute; z-index: 20; top: 28px; left: 0; width: 290px; max-height: 320px; overflow: auto; background: #101117; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; display: grid; gap: 2px; box-shadow: 0 20px 44px rgba(0,0,0,.6); }
.rp-pop input[type=text] { margin-bottom: 6px; }
.rp-pop label { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.rp-pop label:hover { background: rgba(255,255,255,.05); }
.rp-pop label.off { opacity: .4; cursor: not-allowed; }

/* grafiki */
.gcard { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gcard.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,178,58,.15), 0 0 26px rgba(232,178,58,.15); }
.gcard:focus-visible { outline: 2px solid var(--gold); }
.gcard img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-radius: 9px; background: var(--input); }
.gcard div { display: flex; justify-content: space-between; align-items: center; font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 0 2px; }
.stage { background: var(--grain), var(--stripes), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; place-items: center; }
.stage canvas { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 22px; height: 22px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .1s; }
.sw:hover { transform: scale(1.12); border-color: rgba(255,255,255,.85); }
.mini-gfx { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; }
.mini-gfx img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-radius: 8px; }

/* atrapa listy kanalow (modul kanalow glosowych) */
.d-chlist { background: #2b2d31; border-radius: 8px; padding: 10px 8px; font: 15px/1.3 "Noto Sans", sans-serif; color: #949ba4; display: grid; gap: 2px; max-width: 300px; }
.d-chlist .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 8px 4px; }
.d-chlist .ch { padding: 6px 8px; border-radius: 4px; display: flex; justify-content: space-between; }
.d-chlist .ch.hl { background: #404249; color: #f2f3f5; }
.d-chlist .usr { padding: 2px 8px 2px 32px; font-size: 14px; color: #b5bac1; }

/* toasty */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; max-width: min(400px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #17181f; border: 1px solid var(--line-2); border-left: 4px solid var(--good); border-radius: 11px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-weight: 600; animation: toast-in .2s ease-out; }
.toast.err { border-left-color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .tile, .gcard { transition: none; } }

.discord-label { font: 800 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.discord-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5865f2; box-shadow: 0 0 8px #5865f2; }
.discord { box-shadow: 0 20px 50px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06); }

/* podglad Discorda */
.discord { background: #313338; border-radius: 8px; padding: 14px 14px 16px 10px; font: 16px/1.375 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #dbdee1; overflow-x: auto; }
.d-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
.d-avatar { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; }
.d-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-name { color: #f2f3f5; font-weight: 500; }
.d-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 3px; line-height: 16px; }
.d-time { color: #949ba4; font-size: 12px; margin-left: 2px; }
.d-content { overflow-wrap: anywhere; }
.d-embed { display: grid; background: #2b2d31; border-left: 4px solid #e0a526; border-radius: 4px; padding: 8px 16px 16px 12px; max-width: 520px; margin-top: 4px; gap: 8px; }
.d-egrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.d-egrid.has-thumb { grid-template-columns: minmax(0, 1fr) 80px; }
.d-ebody { display: grid; gap: 6px; min-width: 0; padding-top: 4px; }
.d-author { font-size: 14px; font-weight: 600; color: #f2f3f5; }
.d-etitle { font-weight: 600; color: #f2f3f5; }
.d-desc, .d-fval { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.d-fields { display: grid; gap: 8px; margin-top: 2px; }
.d-frow { display: grid; gap: 8px; }
.d-fname { font-size: 14px; font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
.d-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; margin-top: 4px; }
.d-img { width: 100%; border-radius: 4px; display: block; }
.d-footer { font-size: 12px; color: #b5bac1; }
.d-mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.d-code { background: #1e1f22; border-radius: 3px; padding: 0 3px; font-family: Consolas, monospace; font-size: 85%; }
.d-pre { background: #1e1f22; border: 1px solid #1a1b1e; border-radius: 4px; padding: 7px; font: 13px/1.35 Consolas, monospace; white-space: pre-wrap; margin: 4px 0; }
.d-link { color: #00a8fc; text-decoration: none; }
.d-link:hover { text-decoration: underline; }
.d-spoiler { background: #1e1f22; color: transparent; border-radius: 3px; }
.d-spoiler:hover { color: inherit; }
.d-h1 { display: block; font-size: 1.5em; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.d-h2 { display: block; font-size: 1.25em; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.d-h3 { display: block; font-size: 1em; font-weight: 700; color: #f2f3f5; margin: 6px 0 2px; }
.d-sub { display: block; font-size: 12px; color: #949ba4; }
.d-quote { display: block; border-left: 4px solid #4e5058; padding-left: 10px; }
.d-li { display: block; padding-left: 6px; }
.d-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.d-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 16px; border-radius: 3px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.d-btn-primary { background: #5865f2; }
.d-btn-success { background: #248046; }
.d-btn-danger { background: #da373c; }
.d-select { margin-top: 8px; max-width: 400px; display: flex; justify-content: space-between; background: #1e1f22; border: 1px solid #1e1f22; border-radius: 4px; padding: 8px 10px; color: #949ba4; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* kategorie ticketow */
.tc { background: var(--input); border: 1px solid var(--line); border-radius: 12px; }
.tc[open] { border-color: rgba(59,130,246,.45); box-shadow: 0 0 0 3px rgba(59,130,246,.10); }
.tc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tc summary::-webkit-details-marker { display: none; }
.tc-emoji { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.tc-name { display: grid; min-width: 0; flex: 1; }
.tc-name b { font: 800 13.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-name small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tc-chev { color: var(--muted); transition: transform .15s; font-size: 16px; }
.tc[open] .tc-chev { transform: rotate(180deg); }
.tc-body { display: grid; gap: 12px; padding: 0 14px 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.tc-grid { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.hero .switch { width: 52px; height: 28px; }
.hero .switch span::after { width: 20px; height: 20px; }
.hero .switch input:checked + span::after { transform: translateX(24px); }
.warn-text { color: var(--gold) !important; font-weight: 600 !important; }

/* ochrona */
.am-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.am-head .hint { margin-top: 6px; }
.am-rule:not(.on) .am-body { opacity: .45; }
.am-rule.on { border-color: rgba(244,63,94,.35); }
.raid-big { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 0; color: var(--bad); }
.raid-big.ok { color: var(--good); }
.raid-status.active { border-color: rgba(220,38,38,.6); box-shadow: 0 0 0 3px rgba(220,38,38,.15), 0 0 40px rgba(220,38,38,.15); }
.pill.bad { background: rgba(248,113,113,.15); color: var(--bad); }

/* 0.11.0: aktywne kary, archiwum ticketow, co nowego */
.sx-search { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 220px; flex: 1; color: var(--muted); }
.sx-search input { all: unset; flex: 1; padding: 10px 0; color: var(--text); font: inherit; }
.sx-search:focus-within { border-color: var(--gold); }
#sxList { gap: 0; padding: 6px 0; }
#sxList > .empty { padding: 14px 20px; }
.sx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.sx-row:first-child { border-top: 0; }
.sx-row.case { grid-template-columns: 56px minmax(0, 1fr); }
.sx-av { width: 40px; height: 40px; border-radius: 50%; background: #2b2d31; display: block; }
.sx-main { min-width: 0; display: grid; gap: 2px; }
.sx-main b { font-weight: 700; overflow-wrap: anywhere; }
.sx-main b small, .sx-main > small { color: var(--muted); font-weight: 500; font-size: 12px; }
.sx-main p { margin: 0; color: #c3c6d2; overflow-wrap: anywhere; }
.sx-count { font: 800 26px/1 var(--display); color: #f59e0b; text-align: center; display: grid; }
.sx-count small { font: 700 10px/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sx-no { font: 800 15px/1 var(--display); color: var(--gold); }
.arch { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.arch-list { position: sticky; top: 16px; max-height: calc(100vh - 32px); grid-template-rows: auto minmax(0, 1fr); }
.arch-list .sx-search { flex-basis: 100%; }
.arch-list select { flex: 1 1 0; min-width: 0; }
#arRows { overflow-y: auto; display: grid; gap: 4px; align-content: start; margin: 0 -8px; padding: 0 8px; }
.arch-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; }
.arch-row:hover { background: var(--surface-2); }
.arch-row.on { background: var(--gold-soft); border-color: rgba(232,178,58,.35); }
.arch-row:focus-visible { outline: 2px solid var(--gold); }
.arch-row img, .arch-row .sx-av { width: 34px; height: 34px; border-radius: 50%; }
.arch-main { display: grid; min-width: 0; }
.arch-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-main small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.arch-head h2 { margin-bottom: 4px; }
.arch-frame { width: 100%; height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #313338; }
@media (max-width: 1100px) { .arch { grid-template-columns: 1fr; } .arch-list { position: static; max-height: 60vh; } .arch-frame { height: 75vh; } }
.ver { all: unset; cursor: pointer; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font: 700 10px/1.4 var(--display); letter-spacing: .06em; }
.ver:hover { background: var(--gold); color: #1a1408; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.modal-card { position: relative; overflow: hidden; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; display: grid; gap: 14px; padding: 28px; border-radius: 18px; border: 1px solid var(--line-2);
  background: var(--stripes), linear-gradient(135deg, rgba(232,178,58,.18), transparent 55%), var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); box-shadow: 0 0 24px var(--gold); }
.modal-badge { justify-self: start; font: 800 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #1a1408; background: var(--gold); padding: 6px 10px; border-radius: 999px; }
.modal-card h2 { margin: 0; font: 800 22px/1.2 var(--display); text-transform: uppercase; }
.modal-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d4d6df; }
.modal-card li::marker { color: var(--gold); }

/* 0.12.0: wiadomosci testowe */
.sticky .test-card { margin-top: 16px; }
.test-card .btn svg { margin-right: 2px; }
.test-out { border-radius: 10px; padding: 10px 12px; font-size: 13px; border: 1px solid var(--line); }
.test-out.ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.3); color: #c9f5e2; }
.test-out.err { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); color: #fecaca; }
.test-out ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

/* 0.15.0: giveawaye */
.gw-list { display: grid; gap: 8px; }
.gw-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.gw-row.on { border-color: rgba(232,178,58,.4); background: linear-gradient(90deg, var(--gold-soft), transparent 60%), var(--surface-2); }
.gw-main { display: grid; gap: 2px; min-width: 0; }
.gw-main b { overflow-wrap: anywhere; }
.gw-main small { color: var(--muted); font-size: 12.5px; }
.pl-opts { display: grid; gap: 6px; }
.pl-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr); }
.pl-results { display: grid; gap: 6px; margin-top: 8px; }
.pl-res { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 2fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.pl-res span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-res b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 64px; text-align: right; }
.pl-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: #6366f1; border-radius: 99px; }
.pl-res.win span { color: var(--gold); font-weight: 700; }
.pl-res.win .pl-bar i { background: var(--gold); }
.pl-opt { grid-template-columns: 56px minmax(0, 1fr) auto; }
.pl-emo { text-align: center; font-size: 18px; padding-left: 4px !important; padding-right: 4px !important; }
.emo { width: 18px; height: 18px; vertical-align: -4px; object-fit: contain; }

/* osiagniecia */
.ms-list { display: grid; gap: 14px; }
.ms-row { display: grid; gap: 6px; }
.ms-row.off { opacity: .45; }
.ms-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ms-head span { color: var(--muted, #9aa0a6); font-variant-numeric: tabular-nums; }
.ms-bar { height: 10px; }
.ms-bar i { background: linear-gradient(90deg, #e8b23a, #f5d06b); }
.ms-row small { color: var(--muted, #9aa0a6); font-size: 12px; }
.ms-sets { display: grid; gap: 10px; }
.ms-set { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; }
.ms-set input[type=text]:disabled { opacity: .4; }
@media (max-width: 640px) { .ms-set { grid-template-columns: 1fr; } }

.d-image { display: block; max-width: 100%; border-radius: 8px; margin-top: 4px; }

/* konsola wlasciciela */
.stat.warn b { color: #f87171; }
.live-dot { color: #4ade80; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.live-dot.off { color: #f87171; }
.k-actions { flex-wrap: wrap; gap: 8px; }
.k-tools { align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.k-logs { background: #07080b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; height: 460px; overflow: auto; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.k-line { display: flex; gap: 10px; white-space: pre-wrap; word-break: break-word; color: #c9ccd5; }
.k-line time { color: #5b6170; flex: 0 0 auto; }
.k-line.warn span { color: #fbbf24; }
.k-line.error span { color: #f87171; }
.k-gicon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }

.pl-restyle { flex-basis: 100%; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pl-restyle select { width: auto; padding: 6px 10px; font-size: 13px; }
.st-tile { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.xp-rank { display: grid; grid-template-columns: 100px 1fr 70px; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.xp-rank .xp-role { grid-column: 1 / 3; }
.xp-rank .field { width: auto !important; flex: none !important; margin: 0; }
.xp-rank [data-xr-del] { justify-self: end; }
