/* OSLO Crime — strona w stylu tabletu organizacji z gry (oslo_org, paleta „street”).
   Pełny ekran: górny pasek, boczne menu z sekcjami, treść przewijana obok. */
:root {
    color-scheme: dark;
    --ink: #0b0a0a;
    --panel: #100e0e;
    --card: #151313;
    --card-hi: #1a1717;
    --line: #2a2626;
    --line-hi: #3a3434;
    --ghost: #5a524f;
    --bone: #f3ede6;
    --dim: #a39c96;
    --muted: #6f6862;
    --yellow: #f5c400;
    --yellow-hi: #ffd21f;
    --red: #ff2d20;
    --red-hi: #ff5c52;
    --green: #32d15e;
    --orange: #ff8a3d;
    --blue: #4f99f5;
    --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --f-body: "Barlow", "Segoe UI", system-ui, sans-serif;
    --f-hand: "Permanent Marker", "Comic Sans MS", cursive;
    --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --top: 58px;
    --side: 224px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--f-body); font-size: 15px; line-height: 1.45; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.ms { display: inline-block; font-style: normal; font-size: 17px; line-height: 1; width: 1.25em; text-align: center; flex: none; }
/* Font Awesome: kolory i rozmiary z reguł .ms, krój i grubość zawsze z FA (reguły z font-weight nie psują glifów) */
.ms.fa-solid { font-weight: 900 !important; }
.ms.fa-brands { font-weight: 400 !important; }
.hand { font-family: var(--f-hand); color: var(--yellow); font-weight: 400; }

/* ── szkielet aplikacji ── */
.app { height: 100%; display: grid; grid-template-rows: var(--top) minmax(0, 1fr); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: var(--ink); }
.brand { display: flex; flex-direction: column; justify-content: center; min-width: 0; text-decoration: none; }
.brand b { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-family: var(--f-display); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.badge { background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 1px 6px; text-transform: uppercase; }
.motto { flex: 1; text-align: center; font-family: var(--f-hand); color: var(--yellow); font-size: 15px; transform: rotate(-1.5deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-hi); background: transparent; color: var(--bone); font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.tbtn:hover { border-color: var(--ghost); background: #ffffff08; }
.tbtn small { color: var(--muted); font-size: 11px; }
.tbtn.red { background: var(--red); border-color: var(--red); color: #fff; }
.tbtn.red:hover { background: var(--red-hi); border-color: var(--red-hi); }
.tbtn.yellow { background: var(--yellow); border-color: var(--yellow); color: #120f00; font-weight: 600; }
.tbtn.yellow:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); }
.tbtn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.tbtn:disabled { opacity: .4; cursor: default; }
.me { display: flex; align-items: center; gap: 10px; }
.me .av { width: 34px; height: 34px; overflow: hidden; display: grid; place-items: center; background: var(--line); font-family: var(--f-display); font-weight: 700; border: 2px solid var(--line-hi); }
.me .av img { width: 100%; height: 100%; object-fit: cover; }
.me b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.me small { font-size: 12px; color: var(--muted); }

.body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 0; }
/* Menu boczne 1:1 z tabletem oslo_org (street.css: .sidebar-group / .sidebar-item): wiersze 34 px z przerywaną
   kreską, nagłówek działu ze stencilem i linią do krawędzi, liniowe ikony 16 px, aktywna pozycja na czerwono */
.sidebar { overflow-y: auto; border-right: 1px solid var(--line); background: #0d0b0b; padding: 0 0 24px; }
.side-label { display: flex; align-items: center; gap: 8px; height: 20px; padding: 0 12px 0 12px; font-family: var(--f-display); font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #6f6862; }
.side-label::after { content: ""; flex: 1; height: 1px; background: #2a2626; }
.side-label:first-child { height: 32px; padding-top: 10px; }
.side-label:not(:first-child) { margin-top: 6px; }
.side-item { width: 100%; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-bottom: 1px dashed #2a2626; background: transparent; color: #a39c96; text-decoration: none; cursor: pointer; font-family: var(--f-display); font-size: 13.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: background-color .15s, color .15s; }
.side-item .ni { width: 16px; height: 16px; flex-shrink: 0; color: #6f6862; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: color .15s; }
.side-item .nl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item:hover { background: rgba(255,255,255,.03); color: var(--bone); }
.side-item:hover .ni { color: #a39c96; }
.side-item[aria-current="page"] { background: var(--red); border-bottom-color: var(--red); color: #fff; }
.side-item[aria-current="page"] .ni { color: #fff; }
.side-item:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.side-item .cnt { margin-left: auto; min-width: 20px; height: 18px; padding: 0 5px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.side-item[aria-current="page"] .cnt { background: #fff; color: var(--red); }
.side-item .dot { margin-left: auto; width: 7px; height: 7px; background: var(--yellow); }
.side-sep { height: 1px; background: #2a2626; margin: 8px 12px 0; }

.main { overflow-y: auto; min-width: 0; scroll-behavior: smooth; }
.page { padding: 24px max(24px, env(safe-area-inset-right, 0px)) 80px 28px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.page-h p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-h .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.back:hover { color: var(--bone); }
.sticker { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; transform: rotate(-4deg); background: var(--bone); color: var(--red); font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; padding: 3px 10px; border: 2px solid var(--red); text-transform: uppercase; pointer-events: none; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.sticker::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 0 46%, rgba(255,255,255,.45) 52%, transparent 60%); }

/* ── wspólne elementy ── */
.panel { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; position: relative; min-width: 0; }
.panel.accent { border-left: 4px solid var(--yellow); }
.panel.accent-red { border-left: 4px solid var(--red); }
.panel-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.panel-t a { color: var(--yellow); text-decoration: none; letter-spacing: .08em; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); align-items: start; }
@media (min-width: 1800px) { .g-main { grid-template-columns: minmax(0, 2fr) minmax(420px, 1fr); } }
@media (max-width: 1100px) { .g-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-hi); color: var(--dim); white-space: nowrap; }
.chip.red { color: var(--red-hi); border-color: var(--red); }
.chip.yellow { color: var(--yellow); border-color: var(--yellow); }
.chip.green { color: var(--green); border-color: var(--green); }
.chip.blue { color: var(--blue); border-color: var(--blue); }
.hint { color: var(--muted); font-size: 13.5px; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-hi); }
.loading { padding: 50px 0; text-align: center; color: var(--muted); font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.org { font-weight: 600; white-space: nowrap; }
/* jasna obwódka: kolor ekipy czarny albo granatowy też widać na ciemnym tle */
.org::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--oc); box-shadow: 0 0 0 1px #ffffff2e; margin-right: 6px; vertical-align: 1px; }
.orglink { text-decoration: none; }
.orglink:hover .org { color: var(--yellow); }

/* kreski (jak „grade” w tablecie) */
.tally { position: relative; display: inline-flex; align-items: flex-end; gap: 4px; width: 24px; height: 16px; flex-shrink: 0; --tc: var(--bone); }
.tally i { display: block; width: 3px; height: 16px; background: var(--line-hi); transform: rotate(3deg); }
.tally i.on { background: var(--tc); }
.tally i:nth-child(5) { display: none; }
.tally i:nth-child(5).on { display: block; position: absolute; left: -2px; top: 11px; width: 29px; height: 3px; transform: rotate(-26deg); transform-origin: left center; }
.tally.red { --tc: var(--red); } .tally.orange { --tc: var(--orange); } .tally.yellow { --tc: var(--yellow); }
/* kreski + „2/3” jako jedna całość: liczba na linii tekstu obok (jak sąsiednie kolumny), kreski wyśrodkowane do niej */
.wcount { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.wcount .tally { align-self: center; }

/* zdjęcie z kartoteki (miarka wzrostu + sylwetka) */
.mug { position: relative; width: 52px; height: 60px; flex: none; border: 2px solid var(--ink); background: #a9a39b; overflow: hidden; }
.mug::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(0,0,0,.25) 9px 10px); }
.mug::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%, #2a2626 0 11px, transparent 12px), radial-gradient(ellipse 26px 22px at 50% 108%, #2a2626 0 96%, transparent 100%); }
.mug.logo::after { display: none; }
.mug img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mug.big { width: 104px; height: 120px; border-width: 3px; }

/* karta osoby / organizacji (member-card z tabletu) */
/* pełna szerokość: tyle kolumn, ile się mieści (2 na laptopie, 3–4 na szerokim monitorze) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 10px; }
.mcard { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-hi); background: var(--card); text-decoration: none; color: inherit; transition: background-color .18s, border-color .18s; min-width: 0; }
.mcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.02), transparent 40%); }
.mcard:hover { border-color: var(--line-hi); background: var(--card-hi); }
.mcard.boss, .mcard.boss:hover { border-left-color: var(--red); }
.mcard.deputy, .mcard.deputy:hover { border-left-color: var(--orange); }
.mcard.board, .mcard.board:hover { border-left-color: var(--yellow); }
.mcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.mcard .name { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; color: var(--bone); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .rank { font-family: var(--f-hand); color: var(--yellow); font-size: 13px; line-height: 1.3; margin-top: 3px; }
.mcard .meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-family: var(--f-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.mcard .acts { display: flex; gap: 6px; flex: none; position: relative; z-index: 1; }
.mcard .stamp { position: absolute; right: 10px; top: 8px; transform: rotate(-6deg); font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 1px 8px; border: 2px solid currentColor; color: var(--red); z-index: 1; }
.mcard .stamp.blue { color: var(--blue); }
.sq { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-hi); background: var(--ink); color: var(--bone); cursor: pointer; transition: border-color .18s, background-color .18s, color .18s; }
.sq:hover:not(:disabled) { border-color: var(--ghost); background: #ffffff0a; }
.sq:disabled { opacity: .3; cursor: default; }
.sq.x { color: var(--red); border-color: rgba(255,45,32,.5); }
.sq.x:hover:not(:disabled) { background: var(--red); color: #fff; border-color: var(--red); }
.sq .ms { font-size: 18px; font-weight: 500; }

/* pasek narzędzi listy */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-hi); background: var(--ink); min-width: min(100%, 260px); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-family: var(--f-display); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search .ms { color: var(--muted); }
.sort { height: 34px; padding: 0 12px; border: 1px solid var(--line-hi); background: transparent; color: var(--dim); font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sort:hover { color: var(--bone); border-color: var(--ghost); }
.sort[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #120f00; }
.toolbar .count { margin-left: auto; font-family: var(--f-hand); color: var(--muted); font-size: 14px; }

/* pulpit: trwające przejęcie i liczby */
.fight { border-left: 4px solid var(--yellow); background: linear-gradient(110deg, rgba(245,196,0,.08), transparent 55%), var(--card); }
.fight .lbl { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.fight .lbl i { width: 8px; height: 8px; background: var(--yellow); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fight h2 { font-family: var(--f-display); font-weight: 700; font-size: 34px; text-transform: uppercase; margin: 6px 0 4px; line-height: 1; }
.fight .vs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.fight .timer { font-family: var(--f-display); font-weight: 700; font-size: 76px; line-height: .95; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-top: 10px; }
.fight .foot { color: var(--muted); font-size: 13px; margin-top: 6px; }
/* kto przejmuje (tylko własna ekipa i Mafia): postać z gry + Discord */
.who { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 8px; color: var(--yellow); font-size: 13px; font-weight: 600; }
.who .ms { font-size: 11px; }
.who small { color: var(--muted); font-weight: 400; }
.fight .who, .kv .who, td > .who { margin-left: 0; }
.fight .who { display: flex; margin-top: 8px; font-size: 14px; }
.fight.calm { border-left-color: var(--line-hi); background: var(--card); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* lista zdarzeń */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-family: var(--f-display); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ev { display: inline-block; font-family: var(--f-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 0 5px; margin-right: 7px; border: 1px solid; vertical-align: 1px; }
.ev.take { color: var(--red-hi); } .ev.atk { color: var(--yellow); } .ev.cancel { color: var(--muted); } .ev.reset { color: var(--blue); }

/* ticker */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--panel); overflow: hidden; margin-bottom: 14px; }
.ticker .live { flex: none; display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 0 12px; font-family: var(--f-display); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.ticker .live i { width: 7px; height: 7px; background: #fff; animation: blink 1.2s infinite; }
.ticker .vp { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker .track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker .track span { font-family: var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; padding: 8px 24px; white-space: nowrap; color: var(--dim); }
.ticker .track span em { font-style: normal; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* mapa */
.mapbox { background: #0a0909; border: 1px solid var(--line); overflow: hidden; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 11px; height: 11px; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 0; }
.kv dt { font-family: var(--f-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.zname { font-family: var(--f-display); font-weight: 700; font-size: 28px; text-transform: uppercase; margin: 2px 0 12px; line-height: 1; }

/* ranking */
.rank { display: grid; gap: 6px; }
.rrow { display: grid; grid-template-columns: 54px minmax(120px, 1.2fr) minmax(100px, 2fr) 76px 64px 80px; gap: 14px; align-items: center; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--oc, var(--line-hi)); text-decoration: none; color: inherit; }
.rrow:hover { background: var(--card-hi); }
.rrow.h { background: transparent; border: 0; padding-block: 0; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rrow .pos { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--muted); line-height: 1; }
.rrow.top .pos { color: var(--yellow); }
.rrow .nm { font-family: var(--f-display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .bar { height: 6px; background: var(--line); position: relative; }
.rrow .bar i { position: absolute; inset: 0 auto 0 0; background: var(--oc, var(--yellow)); }
.rrow .num { text-align: right; font-family: var(--f-display); font-size: 15px; font-variant-numeric: tabular-nums; }
.rrow .num b { font-size: 20px; }
.rank-scroll { overflow-x: auto; }
.rank-scroll .rank { min-width: 700px; }

/* profil organizacji */
.prof { display: flex; gap: 20px; align-items: center; padding: 20px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--oc); position: relative; flex-wrap: wrap; }
.prof h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: .95; text-transform: uppercase; margin: 2px 0 6px; }
.prof .info { flex: 1; min-width: 220px; }
.prof .stamp { position: absolute; right: 20px; top: 16px; transform: rotate(-6deg); font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .16em; text-transform: uppercase; padding: 2px 12px; border: 3px solid currentColor; color: var(--red); }
.prof .stamp.blue { color: var(--blue); }

/* tabele */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--f-display); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-hi); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.wrap { white-space: normal; min-width: 240px; }
.st { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 1px 7px; border: 2px solid currentColor; display: inline-block; transform: rotate(-3deg); }
.st.ok { color: var(--green); } .st.wait { color: var(--yellow); } .st.bad { color: var(--red); } .st.skip { color: var(--muted); }
.txtbtn { background: none; border: 0; cursor: pointer; font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--yellow); padding: 2px 4px; }
.txtbtn.d { color: var(--red-hi); }

/* akcje (kafle) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.tile { position: relative; display: grid; gap: 8px; align-content: start; text-align: left; min-height: 104px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); cursor: pointer; transition: background-color .18s, border-color .18s; }
.tile:hover:not(:disabled) { background: var(--card-hi); border-color: var(--line-hi); border-left-color: var(--yellow-hi); }
.tile.danger { border-left-color: var(--red); }
.tile .ms { font-size: 24px; color: var(--yellow); font-weight: 400; }
.tile.danger .ms { color: var(--red-hi); }
.tile b { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tile:disabled { opacity: .45; cursor: not-allowed; border-left-color: var(--line-hi); }
.tile .lock { position: absolute; top: 10px; right: 10px; font-family: var(--f-hand); color: var(--muted); font-size: 12px; }
.group-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-family: var(--f-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-h:first-child { margin-top: 0; }

/* zablokowany widok */
.lockbox { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px; border: 1px dashed var(--line-hi); background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.012) 14px 28px); }
.lockbox .ms { font-size: 40px; color: var(--yellow); width: auto; }
.lockbox h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.lockbox p { margin: 4px 0 0; color: var(--dim); }
@media (max-width: 700px) { .lockbox { grid-template-columns: 1fr; } }

/* serwer Discord ekipy */
.srv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .srv { grid-template-columns: 1fr; } }
.srv h3 { font-family: var(--f-display); font-weight: 700; font-size: 26px; text-transform: uppercase; margin: 4px 0 6px; line-height: 1; }
.benefits { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.benefits li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.benefits .ms { color: var(--yellow); font-size: 22px; font-weight: 400; }
.benefits b { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.benefits small { color: var(--muted); font-size: 13px; }
.guild { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gicon { width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 26px; color: #fff; overflow: hidden; border: 2px solid var(--line-hi); }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gname { font-family: var(--f-display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1; }
.gmeta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.gacts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.srv select { background: var(--ink); border: 1px solid var(--line-hi); padding: 7px 8px; font-size: 13.5px; width: 100%; min-width: 0; }
.sw { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; background: var(--line); border: 1px solid var(--line-hi); position: relative; cursor: pointer; margin: 0; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--muted); transition: transform .15s; }
.sw:checked { background: rgba(245,196,0,.25); border-color: var(--yellow); }
.sw:checked::after { transform: translateX(18px); background: var(--yellow); }
.save-row { display: flex; justify-content: flex-end; margin-top: 12px; }

/* okna dialogowe */
dialog.dlg { border: 1px solid var(--line-hi); border-top: 4px solid var(--yellow); background: var(--panel); color: var(--bone); padding: 0; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog.dlg.danger { border-top-color: var(--red); }
dialog.dlg::backdrop { background: rgba(5,4,4,.8); backdrop-filter: blur(3px); }
.dlg form { display: grid; }
.dlg .dh { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.dlg .dh .ms { font-size: 28px; color: var(--yellow); font-weight: 400; }
.dlg.danger .dh .ms { color: var(--red-hi); }
.dlg .dh h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1; }
.dlg .dh small { display: block; font-family: var(--f-hand); color: var(--yellow); font-size: 13px; margin-top: 3px; }
.dlg .db { padding: 16px 20px; display: grid; gap: 14px; overflow-y: auto; }
.fld { display: grid; gap: 6px; }
.fld label, .fld .lbl { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fld input, .fld select, .fld textarea { background: var(--ink); border: 1px solid var(--line-hi); padding: 10px 12px; width: 100%; }
.fld textarea { min-height: 86px; resize: vertical; }
.fld input[type="color"] { height: 42px; padding: 4px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--yellow); outline: none; }
.fld .err { color: var(--red-hi); font-size: 13px; }
.fld .row-inline { display: flex; gap: 10px; align-items: center; }
.fld .row-inline input { width: auto; }
.dlg .note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.dlg .df { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--ink); }

.toasts { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(var(--top) + 12px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--card); border: 1px solid var(--line-hi); border-left: 4px solid var(--yellow); padding: 12px 14px; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: tin .2s ease-out; }
.toast.ok { border-left-color: var(--green); } .toast.bad { border-left-color: var(--red); }
.toast b { display: block; font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--dim); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }

/* telefon: menu jako wysuwany panel */
@media (max-width: 860px) {
    :root { --top: 54px; }
    .motto, .top-right .me small, .top-right .hide-m { display: none; }
    .menu-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-hi); background: transparent; color: var(--bone); cursor: pointer; }
    .body { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 40; top: calc(var(--top) + env(safe-area-inset-top, 0px)); bottom: 0; left: 0; width: min(280px, 84vw); transform: translateX(-102%); transition: transform .2s; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
    body.menu-open .sidebar { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.6); }
    .side-item { height: 44px; } /* palec, nie myszka: wyższe wiersze w wysuwanym menu */
    .page { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 80px max(16px, env(safe-area-inset-left, 0px)); }
    .rrow { grid-template-columns: 44px minmax(0, 1fr) 70px; }
    .rrow .bar, .rrow .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* pasek trybu dev (npm run dev:web) */
.devbar { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100vw - 160px); padding: 6px 8px; background: #000d; border: 1px dashed var(--yellow); backdrop-filter: blur(6px); }
.devbar b { font-family: var(--f-display); font-weight: 700; letter-spacing: .14em; color: #120f00; background: var(--yellow); padding: 1px 7px; font-size: 12px; }
.devbar select { background: var(--ink); border: 1px solid var(--line-hi); padding: 4px 6px; font-size: 12.5px; max-width: 170px; }
.devbar button { font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line-hi); background: transparent; color: var(--dim); cursor: pointer; }
.devbar button:hover { color: var(--bone); border-color: var(--yellow); }
.devbar .sep { width: 1px; height: 18px; background: var(--line-hi); }

/* ── wygląd embedów na serwerze ekipy: formularz + podgląd w stylu Discorda ── */
.look { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.look-form { display: grid; gap: 0; padding: 0; }
.look-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .look-2 { grid-template-columns: 1fr; } }
.look-form input:disabled, .look-form select:disabled { opacity: .45; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.seg label { position: relative; cursor: pointer; }
.seg input[type="radio"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 12px; border: 1px solid var(--line-hi); background: var(--ink); font-family: var(--f-display); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.seg input:checked + span { border-color: var(--yellow); color: var(--yellow); box-shadow: inset 3px 0 0 var(--yellow); }
.seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.seg input[type="color"], .cpick input[type="color"] { width: 46px; height: 36px; padding: 3px; background: var(--ink); border: 1px solid var(--line-hi); cursor: pointer; }
.cpick { display: flex; align-items: center; gap: 10px; height: 42px; }
.look-prev { position: sticky; top: 14px; display: grid; gap: 12px; }

.dc {
    --dc-bg: #313338; --dc-embed: #2b2d31; --dc-text: #dbdee1; --dc-head: #f2f3f5; --dc-muted: #949ba4; --dc-blurple: #5865f2;
    display: flex; gap: 14px; padding: 16px 16px 18px; background: var(--dc-bg); color: var(--dc-text); border: 1px solid #1e1f22;
    font-family: "gg sans", "Noto Sans", var(--f-body); font-size: 15px; line-height: 1.375; min-height: 180px;
}
.dc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #120f00; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; }
.dc-head b { color: var(--dc-head); font-weight: 600; }
.dc-app { background: var(--dc-blurple); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 4px; border-radius: 3px; }
.dc-head time { color: var(--dc-muted); font-size: 12px; margin-left: 2px; }
.dc-content { margin-top: 2px; overflow-wrap: anywhere; }
.dc-ment { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-embed { margin-top: 6px; display: flex; gap: 16px; max-width: 520px; background: var(--dc-embed); border-left: 4px solid var(--ec); border-radius: 4px; padding: 10px 16px 14px 12px; }
.dc-main { min-width: 0; flex: 1; display: grid; gap: 8px; }
.dc-author { display: flex; align-items: center; gap: 8px; color: var(--dc-head); font-size: 14px; font-weight: 600; }
.dc-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-title { color: var(--dc-head); font-weight: 600; font-size: 16px; }
.dc-desc { font-size: 14px; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.dc-fields > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.dc-fields > div.full { grid-column: 1 / -1; }
.dc-fields b { color: var(--dc-head); font-weight: 600; }
.dc code { background: #1e1f22; padding: 0 3px; border-radius: 3px; font-size: 85%; }
.dc-img { max-width: 100%; max-height: 220px; border-radius: 4px; object-fit: cover; margin-top: 4px; }
.dc-thumb { flex: none; width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
.dc-foot { display: flex; align-items: center; gap: 8px; color: var(--dc-muted); font-size: 12px; }
.dc-foot img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
@media (max-width: 560px) { .dc-fields { grid-template-columns: 1fr; } .dc-thumb { width: 56px; height: 56px; } }

/* ── Mafia: wybrana organizacja w Centrum i panel ekipy w teczce ── */
.morg { display: grid; grid-template-columns: auto minmax(0, 380px) minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; border-left: 4px solid var(--line-hi); margin-bottom: 4px; }
.morg.on { border-left-color: var(--oc); background: linear-gradient(90deg, color-mix(in srgb, var(--oc) 12%, transparent), transparent 60%), var(--panel); }
.morg .mug { width: 52px; height: 64px; }
.morg-i { font-size: 34px; color: var(--yellow); width: 52px; text-align: center; }
.morg select { background: var(--ink); border: 1px solid var(--line-hi); padding: 10px 12px; width: 100%; }
.morg select:focus { border-color: var(--yellow); outline: none; }
.morg-st { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--dim); }
@media (max-width: 900px) { .morg { grid-template-columns: auto minmax(0, 1fr); } .morg .fld, .morg-st, .morg > .hint, .morg > .tbtn { grid-column: 1 / -1; } }
.mpanel { margin-top: 18px; padding: 16px; border: 1px dashed var(--red); background: color-mix(in srgb, var(--red) 4%, var(--panel)); }
.mpanel .panel-t { color: var(--red-hi); margin-bottom: 0; }
.mpanel .panel-t a { color: var(--yellow); text-decoration: none; font-size: 12px; }
.mpanel .group-h:first-of-type { margin-top: 12px; }

/* ── pracownicy z gry ── */
.gr-top { display: grid; gap: 10px; margin-bottom: 14px; }
.gr-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gr-counts span { display: flex; align-items: baseline; gap: 7px; font-family: var(--f-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gr-counts b { font-size: 24px; color: var(--bone); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gr-counts .all { margin-left: auto; }
.gr-counts .all b { color: var(--yellow); }
.gr-change { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border: 1px dashed var(--line-hi); font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.gr-change b { color: var(--yellow); }
.gr-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.gr-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-hi); background: var(--card); color: var(--bone); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.gr-pick b { font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--dim); min-width: 14px; white-space: nowrap; flex-shrink: 0; }
.gr-picks.tiers .gr-pick { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
.gr-pick span { font-size: 13px; line-height: 1.2; }
.gr-pick:hover { border-color: var(--yellow); }
.gr-pick[aria-checked="true"] { border-color: var(--yellow); background: rgba(245, 196, 0, .1); }
.gr-pick[aria-checked="true"] b { color: var(--yellow); }
.gr-pick:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.search.pick select { background: transparent; border: 0; color: var(--bone); padding: 0 6px; min-width: 220px; height: 100%; }
.search.pick select:focus { outline: none; }

.mpanel .mlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 760px) { .gr-counts .all { margin-left: 0; } }

/* ── dropdown organizacji z wyszukiwarką ── */
.combo-native { display: none !important; }
.combo { position: relative; width: 100%; min-width: 0; }
.combo-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-hi); color: var(--bone); cursor: pointer; text-align: left; min-width: 0; }
.combo-btn:hover:not(:disabled) { border-color: var(--ghost); }
.combo-btn:disabled { opacity: .5; cursor: not-allowed; }
.combo.open .combo-btn, .combo-btn:focus-visible { border-color: var(--yellow); outline: none; }
.combo-btn b { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-btn.ph b { color: var(--dim); font-weight: 500; font-size: 14px; }
.combo-btn small { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.combo-btn > .ms:first-child { color: var(--yellow); font-size: 20px; }
.combo-btn.ph > .ms:first-child { color: var(--muted); }
.combo-car { margin-left: auto; color: var(--muted); transition: transform .15s; }
.combo.open .combo-car { transform: rotate(180deg); color: var(--yellow); }
.combo-dot { flex: none; width: 10px; height: 10px; background: var(--oc, var(--muted)); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--oc, var(--muted)); }
.combo-pop { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line-hi); border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.combo-pop.up { border-top-width: 1px; border-bottom: 3px solid var(--yellow); box-shadow: 0 -18px 40px rgba(0, 0, 0, .6); }
.combo-q { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 10px; height: 40px; background: var(--ink); border: 1px solid var(--line-hi); }
.combo-q:focus-within { border-color: var(--yellow); }
.combo-q .ms { color: var(--muted); font-size: 20px; }
.combo-q input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--bone); font-size: 14px; }
.combo-list { list-style: none; margin: 0; padding: 0 6px 6px; max-height: min(var(--avail, 340px), 340px); overflow-y: auto; overscroll-behavior: contain; }
.combo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; border-left: 3px solid transparent; }
.combo-list li b { font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-list li small { margin-left: auto; color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.combo-list li .chip { font-size: 10px; padding: 1px 6px; }
.combo-list li.act { background: var(--card-hi); border-left-color: var(--yellow); }
.combo-list li[aria-selected="true"] b { color: var(--yellow); }
.combo-list li[aria-selected="true"]::after { content: "check"; font-family: "Material Symbols Sharp"; color: var(--yellow); font-size: 18px; }
.combo-list .combo-clear { color: var(--dim); border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.combo-list .combo-clear .ms { font-size: 18px; color: var(--muted); }
.combo-list .combo-clear b { text-transform: none; font-family: var(--f-body); font-size: 14px; }
.combo-list .combo-group { padding: 10px 10px 4px; cursor: default; font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 0; }
.combo-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.combo-list li .ms { font-size: 18px; color: var(--muted); }
/* rozmiary dropdownu tam, gdzie wcześniej stał select */
.toolbar .combo { width: auto; flex: 0 1 380px; }
.logs-bar .combo { flex: 0 1 230px; }
.logs-bar .combo-btn { height: 34px; }
.devbar .combo { width: 170px; }
.devbar .combo-btn { height: 28px; padding: 0 8px; gap: 6px; }
.devbar .combo-btn b { font-size: 12.5px; }
.devbar .combo-btn small { display: none; }
.combo-none { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-family: var(--f-hand); }
.combo-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-family: var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.combo-foot kbd { font-family: var(--f-mono); font-size: 10.5px; padding: 0 4px; border: 1px solid var(--line-hi); color: var(--dim); margin: 0 1px; }
.fld-l { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 560px) { .combo-foot span:last-child { display: none; } .combo-pop { min-width: 0; } }

/* ── logi ekipy: kafelki, wykres aktywności, oś czasu ── */
.lg-tabs { display: flex; border: 1px solid var(--line-hi); background: var(--ink); }
.lg-tabs button, .lg-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--dim); cursor: pointer; font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.lg-tabs > * + * { border-left: 1px solid var(--line-hi); }
.lg-tabs button:hover, .lg-tabs a:hover { color: var(--bone); }
.lg-tabs [aria-selected="true"] { background: var(--yellow); color: #120f00; font-weight: 600; }
.lg-tabs .ms { font-size: 18px; }

.lg-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .lg-hero { grid-template-columns: 1fr; } }
.lg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-stat { position: relative; display: grid; align-content: start; gap: 2px; padding: 14px 16px 14px 16px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--lc, var(--line-hi)); min-width: 0; }
.lg-stat > .ms { position: absolute; top: 12px; right: 12px; font-size: 22px; color: var(--lc, var(--muted)); opacity: .9; }
.lg-stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 26px; }
.lg-stat > span:not(.ms) { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lg-stat small { font-family: var(--f-hand); color: var(--dim); font-size: 13px; }
.lg-stat.out { --lc: var(--red-hi); } .lg-stat.in { --lc: var(--green); } .lg-stat.swap { --lc: var(--yellow); } .lg-stat.all { --lc: var(--bone); }

.lg-act .panel-t .hint { font-family: var(--f-hand); letter-spacing: 0; text-transform: none; font-size: 13px; }
.lg-chart { position: relative; display: grid; grid-template-rows: 150px auto; padding-top: 4px; }
.lg-max { position: absolute; top: -2px; left: 0; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.lg-bars { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-hi); background: repeating-linear-gradient(0deg, transparent 0 37px, var(--line) 37px 38px); }
.lg-b { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: crosshair; outline: none; min-width: 0; }
.lg-b i { display: block; width: 100%; height: max(var(--h), 2px); background: var(--yellow); border-radius: 3px 3px 0 0; transition: background-color .12s; }
.lg-b.zero i { background: var(--line-hi); }
.lg-b:hover i, .lg-b:focus-visible i { background: var(--yellow-hi); box-shadow: 0 0 0 1px var(--bone); }
.lg-axis { display: flex; gap: 2px; margin-top: 6px; }
.lg-axis span { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.lg-tip { position: fixed; z-index: 300; pointer-events: none; background: var(--ink); border: 1px solid var(--line-hi); border-left: 3px solid var(--yellow); color: var(--bone); padding: 6px 10px; font-size: 12.5px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); transform: translate(-50%, calc(-100% - 10px)); }

.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .lg-grid { grid-template-columns: 1fr; } }
.lg-side { display: grid; gap: 12px; position: sticky; top: calc(var(--top) + 14px); }
@media (max-width: 1100px) { .lg-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.lg-filters { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; }
.lg-filters .search { width: 100%; }
.lg-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-kind { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border: 1px solid var(--line-hi); background: transparent; color: var(--dim); cursor: pointer; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lg-kind .ms { font-size: 17px; color: var(--kc, var(--muted)); }
.lg-kind:hover { color: var(--bone); border-color: var(--ghost); }
.lg-kind[aria-pressed="true"] { color: var(--bone); border-color: var(--kc, var(--yellow)); background: color-mix(in srgb, var(--kc, var(--yellow)) 14%, transparent); }
.lg-kind.k-all { --kc: var(--yellow); } .lg-kind.k-take { --kc: var(--red-hi); } .lg-kind.k-put { --kc: var(--green); } .lg-kind.k-swap { --kc: var(--yellow); } .lg-kind.k-script { --kc: var(--blue); }
.lg-frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-frow .combo { flex: 0 1 240px; }
.lg-frow .combo-btn { height: 34px; }
.lg-seg { display: inline-flex; border: 1px solid var(--line-hi); }
.lg-seg button { height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--dim); cursor: pointer; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lg-seg button + button { border-left: 1px solid var(--line-hi); }
.lg-seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); font-weight: 600; }
.lg-whochip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); color: var(--yellow); cursor: pointer; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.lg-whochip .ms { font-size: 16px; }

.lg-feed { display: grid; }
.lg-day { position: sticky; top: var(--top); z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 14px 2px 8px; background: linear-gradient(var(--ink) 75%, transparent); }
.lg-day:first-child { padding-top: 2px; }
.lg-day b { font-family: var(--f-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.lg-day span { font-family: var(--f-hand); color: var(--muted); font-size: 14px; }
.lg-day::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.lg-it { --kc: var(--blue); display: grid; grid-template-columns: 48px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--kc); margin-bottom: 4px; }
.lg-it:hover { background: var(--card-hi); }
.lg-it.k-out { --kc: var(--red-hi); } .lg-it.k-in { --kc: var(--green); } .lg-it.k-swap { --kc: var(--yellow); } .lg-it.k-move { --kc: var(--blue); } .lg-it.k-sys { --kc: var(--ghost); }
.lg-it time { font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.lg-ic { display: grid; place-items: center; width: 34px; height: 34px; background: color-mix(in srgb, var(--kc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 45%, transparent); }
.lg-ic .ms { font-size: 19px; color: var(--kc); }
.lg-body { min-width: 0; }
.lg-line { line-height: 1.45; overflow-wrap: anywhere; }
.lg-line .who { background: none; border: 0; padding: 0; color: var(--bone); font-weight: 700; cursor: pointer; font-size: 15px; }
.lg-line .who:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.lg-sys { color: var(--dim); font-family: var(--f-mono); font-size: 13px; }
.lg-verb { color: var(--dim); }
.lg-qty { font-family: var(--f-display); font-size: 16px; color: var(--kc); }
.lg-item-n { font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.lg-where { color: var(--muted); font-size: 13px; }
.lg-meta { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.lg-meta .org { font-size: 12px; }
.lg-text { color: var(--dim); font-size: 13.5px; margin-top: 1px; overflow-wrap: anywhere; }
.lg-cat { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--kc) 55%, transparent); color: var(--kc); font-family: var(--f-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.lg-tag { font-family: var(--f-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-hi); padding: 2px 7px; }
.lg-tag.hot { color: var(--red-hi); border-color: var(--red); }
.lg-amt { font-family: var(--f-display); font-weight: 700; font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-amt.k-in { color: var(--green); } .lg-amt.k-out { color: var(--red-hi); }
.lg-more { display: flex; justify-content: center; margin-top: 10px; }
.lg-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; border: 1px dashed var(--line-hi); color: var(--muted); }
.lg-empty .ms { font-size: 38px; color: var(--ghost); }
.lg-empty b { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.lg-empty.big { padding: 70px 20px; }
@media (max-width: 640px) {
    .lg-it { grid-template-columns: 34px minmax(0, 1fr); padding: 10px; }
    .lg-it time { grid-column: 2; grid-row: 2; font-size: 11.5px; }
    .lg-it .lg-ic { grid-row: 1 / span 2; align-self: start; }
    .lg-it > :last-child { grid-column: 2; justify-self: start; }
    .lg-it > span:last-child:empty { display: none; }
    .lg-stats { grid-template-columns: 1fr 1fr; }
}

.lg-rank .lg-rk { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lg-rank .lg-rk:last-child { border-bottom: 0; }
.lg-rk .pos { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--muted); text-align: center; }
.lg-rk:first-of-type .pos { color: var(--yellow); }
.lg-rk .nm { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; min-width: 0; }
.lg-rk .nm > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.lg-rk .nm .who { background: none; border: 0; padding: 0; color: var(--bone); cursor: pointer; text-align: left; }
.lg-rk .nm .who:hover { color: var(--yellow); }
.lg-rk .nm b { font-family: var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-rk .bar, .lg-catrow .bar { display: block; height: 4px; background: var(--line); }
.lg-rk .bar i { display: block; height: 100%; background: var(--red-hi); }
.lg-cats { display: grid; gap: 2px; }
.lg-catrow { --kc: var(--blue); display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 6px; background: transparent; border: 0; border-left: 3px solid transparent; color: var(--bone); cursor: pointer; text-align: left; }
.lg-catrow.k-in { --kc: var(--green); } .lg-catrow.k-out { --kc: var(--red-hi); } .lg-catrow.k-swap { --kc: var(--yellow); }
.lg-catrow:hover { background: var(--card-hi); }
.lg-catrow[aria-pressed="true"] { border-left-color: var(--yellow); background: var(--card-hi); }
.lg-catrow .ms { font-size: 18px; color: var(--kc); }
.lg-catrow .nm { display: grid; gap: 4px; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; min-width: 0; }
.lg-catrow .bar i { display: block; height: 100%; background: var(--kc); }
.lg-catrow b { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.lg-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; }
.lg-note .ms { font-size: 16px; }


/* ── formularz bitki: szerszy dialog, data z godziną, format, broń i mapy ── */
dialog.dlg.wide { width: min(640px, calc(100vw - 32px)); }
.dtp { position: relative; }
.dtp-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-hi); color: var(--bone); cursor: pointer; text-align: left; }
.dtp-btn:hover { border-color: var(--ghost); }
.dtp.open .dtp-btn, .dtp-btn:focus-visible { border-color: var(--yellow); outline: none; }
.dtp-btn > .ms:first-child { color: var(--yellow); }
.dtp-btn b { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.dtp-rel { font-family: var(--f-hand); color: var(--yellow); font-size: 14px; }
.dtp.open .combo-car { transform: rotate(180deg); color: var(--yellow); }
.dtp-pop { position: fixed; z-index: 200; display: grid; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line-hi); border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.dtp-pop.up { border-top-width: 1px; border-bottom: 3px solid var(--yellow); }
.dtp-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dtp-quick button { display: grid; gap: 1px; padding: 7px 8px; background: var(--ink); border: 1px solid var(--line-hi); color: var(--bone); cursor: pointer; font-family: var(--f-display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.dtp-quick small { font-family: var(--f-body); font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.dtp-quick button[aria-pressed="true"] { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.dtp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 560px) { .dtp-cols { grid-template-columns: 1fr; } }
.dtp-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dtp-mh b { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dtp-mh .sq:disabled { opacity: .3; }
.dtp-wd, .dtp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dtp-wd span { text-align: center; font-family: var(--f-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 0 4px; }
.dtp-grid button { aspect-ratio: 1; min-height: 30px; background: transparent; border: 1px solid transparent; color: var(--bone); cursor: pointer; font-family: var(--f-display); font-size: 14px; font-variant-numeric: tabular-nums; }
.dtp-grid button:hover:not(:disabled) { border-color: var(--ghost); background: var(--card-hi); }
.dtp-grid button.out { color: var(--muted); }
.dtp-grid button.we { color: var(--red-hi); }
.dtp-grid button.today { border-color: var(--line-hi); }
.dtp-grid button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #120f00; font-weight: 700; }
.dtp-grid button:disabled { opacity: .22; cursor: not-allowed; }
.dtp-th { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dtp-hours, .dtp-mins { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-bottom: 10px; }
.dtp-mins { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.dtp-hours button, .dtp-mins button { height: 30px; background: var(--ink); border: 1px solid var(--line); color: var(--dim); cursor: pointer; font-family: var(--f-mono); font-size: 12.5px; }
.dtp-hours button.prime { color: var(--bone); border-color: var(--line-hi); }
.dtp-hours button:hover:not(:disabled), .dtp-mins button:hover:not(:disabled) { border-color: var(--ghost); color: var(--bone); }
.dtp-hours button[aria-pressed="true"], .dtp-mins button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #120f00; font-weight: 700; }
.dtp-hours button:disabled, .dtp-mins button:disabled { opacity: .25; cursor: not-allowed; }
.dtp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dtp-sum { color: var(--dim); font-size: 13.5px; }
.dtp-sum b { color: var(--bone); }

.bf { display: grid; gap: 10px; padding: 12px; background: var(--ink); border: 1px solid var(--line-hi); }
.bf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bf-l { width: 56px; font-family: var(--f-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step { display: inline-flex; border: 1px solid var(--line-hi); background: var(--panel); }
.step button { width: 34px; height: 38px; background: transparent; border: 0; color: var(--yellow); cursor: pointer; font-size: 20px; line-height: 1; }
.step button:hover { background: var(--card-hi); }
.step input { width: 48px; height: 38px; border: 0; border-inline: 1px solid var(--line-hi); background: transparent; color: var(--bone); text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step input:focus { outline: none; background: var(--card-hi); }
.bf-vs { font-family: var(--f-hand); color: var(--red-hi); font-size: 18px; }
/* druga drużyna: ta sama liczba co w liczniku obok (skład zawsze równy), tylko do podglądu */
.bf-mirror { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 6px; border: 1px dashed var(--line-hi); color: var(--dim); font-family: var(--f-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.bf-chips, .lo-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bf-chips button, .lo-chips button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; background: transparent; border: 1px solid var(--line-hi); color: var(--dim); cursor: pointer; font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lo-chips button .ms { font-size: 16px; color: var(--muted); }
.bf-chips button:hover, .lo-chips button:hover { color: var(--bone); border-color: var(--ghost); }
.bf-chips button[aria-pressed="true"], .lo-chips button[aria-pressed="true"] { color: var(--bone); border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.lo-chips button[aria-pressed="true"] .ms { color: var(--yellow); }
.bf-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line-hi); color: var(--muted); font-size: 13px; }
.bf-sum .ms { font-size: 16px; color: var(--yellow); }
.bf-sum b { color: var(--bone); font-family: var(--f-display); font-weight: 600; letter-spacing: .03em; }
.bf-sum.miss b { color: var(--red-hi); font-weight: 500; }
.lo { display: grid; gap: 8px; padding: 12px; background: var(--ink); border: 1px solid var(--line-hi); }
.lo-l { font-family: var(--f-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lo-l small { font-family: var(--f-hand); letter-spacing: 0; text-transform: none; color: var(--dim); font-size: 13px; margin-left: 6px; }
.lo-other { background: var(--panel); border: 1px solid var(--line-hi); padding: 9px 11px; width: 100%; }
.lo-other:focus { border-color: var(--yellow); outline: none; }

/* ── mapa stref: Leaflet + kafelki GTA jak w tablecie oslo_org ── */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } }
.map-col { display: grid; gap: 14px; min-width: 0; }
.map-side { align-content: start; }
.gta-map { height: max(460px, calc(100vh - var(--top) - 210px)); isolation: isolate; z-index: 1; font-family: var(--f-body);
    background: radial-gradient(ellipse at 50% 45%, #15191e 0%, var(--ink) 70%), var(--ink);
}
.gta-map::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; }
.gta-map.leaflet-container { background: radial-gradient(ellipse at 50% 45%, #15191e 0%, var(--ink) 70%), var(--ink); }
.gta-map .leaflet-tile-pane { filter: saturate(.9) brightness(.92) contrast(1.04); }
.gta-map .leaflet-control-zoom { border: 0; display: flex; flex-direction: column; gap: 6px; }
.gta-map .leaflet-top.leaflet-left { top: 12px; left: 12px; }
.gta-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; border: 1px solid var(--line-hi) !important; border-radius: 0 !important; background: rgba(11, 10, 10, .92); color: var(--bone); font-size: 18px; text-decoration: none; }
.gta-map .leaflet-control-zoom a:hover { background: color-mix(in srgb, var(--red) 25%, var(--ink)); border-color: var(--red) !important; color: #fff; }
.gta-map .leaflet-control-zoom a.leaflet-disabled { opacity: .35; }
.gta-map .leaflet-tooltip.ztip { display: none; padding: 3px 8px; background: rgba(11, 10, 10, .9); border: 1px solid var(--line-hi); border-radius: 0; box-shadow: none; color: var(--bone); text-align: center; line-height: 1.15; }
.gta-map.show-labels .leaflet-tooltip.ztip, .gta-map .leaflet-tooltip.ztip.sel, .gta-map .leaflet-tooltip.ztip:hover { display: block; }
.gta-map .ztip b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.gta-map .ztip span { font-family: var(--f-hand); font-size: 12px; color: var(--dim); }
.gta-map .ztip.sel { border-color: var(--yellow); }
.gta-map .leaflet-tooltip-top.ztip::before { border-top-color: var(--line-hi); }
.gta-map .zpulse { animation: zpulse 1.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes zpulse { 0% { stroke-opacity: .95; transform: scale(1); } 100% { stroke-opacity: 0; transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .gta-map .zpulse { animation: none; } }
.zlist { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.zlist button { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; padding: 7px 8px; background: transparent; border: 0; border-left: 3px solid transparent; color: var(--bone); text-align: left; cursor: pointer; }
.zlist button:hover { background: var(--card-hi); }
.zlist button[aria-pressed="true"] { background: var(--card-hi); border-left-color: var(--yellow); }
.zlist i { grid-column: 1; grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.zlist b { grid-column: 2; grid-row: 1; font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zlist small { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zlist .ztype { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-family: var(--f-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-hi); padding: 1px 5px; }

/* ── scrollbary: jeden styl na całej stronie (dialogi, listy, menu) ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-hi); border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--yellow); }
::-webkit-scrollbar-thumb:active { background-color: var(--yellow-hi); }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent; } }

/* ── okna dialogowe: nagłówek i przyciski zawsze widoczne, przewija się tylko treść ── */
dialog.dlg[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.dlg > form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; max-height: inherit; flex: 1; }
dialog.dlg .db { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
dialog.dlg .df { background: var(--panel); }

/* ── drobne elementy wspólne ── */
.show-m { display: none; }
.side-me { display: none; }
.scrim { display: none; }
.bf-team { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

/* ── telefon ── */
@media (max-width: 860px) {
    :root { --top: 58px; }
    .topbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
    .menu-btn { width: 40px; height: 40px; }
    body.menu-open .menu-btn { border-color: var(--yellow); color: var(--yellow); }
    .brand b { font-size: 21px; }
    .brand small { margin-top: 4px; }
    .top-right #logout { display: none; }
    .top-right .me .av { width: 38px; height: 38px; }
    .top-right .tbtn.discord { height: 38px; padding: 0 12px; }
    .hide-m { display: none !important; }
    .show-m { display: inline; }
    .scrim { display: block; position: fixed; inset: calc(var(--top) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 39; background: rgba(5, 4, 4, .72); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.menu-open .scrim { opacity: 1; pointer-events: auto; }
    .sidebar { width: min(300px, 86vw); padding-top: 0; }
    .side-me { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); background: var(--panel); }
    .side-me .av { width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; background: var(--line); border: 2px solid var(--line-hi); font-family: var(--f-display); font-weight: 700; font-size: 18px; }
    .side-me .av img { width: 100%; height: 100%; object-fit: cover; }
    .side-me b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .side-me small { color: var(--muted); font-size: 12.5px; }
    .side-me .tbtn { grid-column: 1 / -1; justify-content: center; margin-top: 10px; }
    .sticker { display: none; }
    .page-h { flex-wrap: wrap; gap: 12px; }
    .page-h .acts { width: 100%; }
    .lg-tabs { width: 100%; }
    .lg-tabs button, .lg-tabs a { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
    .brand .brand-sub { display: none; }
    .brand b { font-size: 19px; }
}

/* okna dialogowe na telefonie: cały ekran */
@media (max-width: 600px) {
    dialog.dlg, dialog.dlg.wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-top: 4px solid var(--yellow); }
    dialog.dlg.danger { border-top-color: var(--red); }
    dialog.dlg .dh { padding: 14px 16px 10px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
    dialog.dlg .db { padding: 14px 16px; }
    dialog.dlg .df { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    dialog.dlg .df .tbtn { flex: 1; justify-content: center; height: 44px; }
    .bf-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .bf-l { width: auto; }
}

/* tabele na telefonie: każdy wiersz to karta z podpisami pól */
@media (max-width: 700px) {
    .panel:has(> .tbl > table.rt) { padding: 0; }
    table.rt, table.rt tbody, table.rt tr { display: block; width: 100%; }
    table.rt thead { display: none; }
    table.rt tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    table.rt tr:last-child { border-bottom: 0; }
    table.rt td { display: grid; align-content: start; gap: 2px; padding: 0; border: 0; white-space: normal; text-align: left; min-width: 0; overflow-wrap: anywhere; }
    table.rt td[data-l]::before { content: attr(data-l); font-family: var(--f-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
    table.rt td:first-child { grid-column: 1 / -1; font-size: 15px; }
    table.rt td:first-child::before { display: none; }
    table.rt td[style*="display:flex"], table.rt td:has(> .sq), table.rt td:has(> .txtbtn) { grid-column: 1 / -1; display: flex !important; justify-content: flex-start !important; gap: 8px; padding-top: 4px; }
    table.rt td[style*="display:flex"]::before, table.rt td:has(> .sq)::before, table.rt td:has(> .txtbtn)::before { display: none; }
    table.rt td:empty { display: none; }
}

/* pasek DEV na telefonie: zwinięty do „DEV”, rozwija się po dotknięciu */
@media (max-width: 860px) {
    .devbar { max-width: calc(100vw - 24px); }
    .devbar b { cursor: pointer; }
    .devbar:not(.open) > :not(b) { display: none; }
}

@media (max-width: 860px) {
    .gta-map { height: clamp(360px, 62vh, 560px); }
    table.rt td { justify-items: start; }
}
/* kalendarz bitki na telefonie: panel od dołu ekranu zamiast okienka pod przyciskiem */
@media (max-width: 600px) {
    .dtp-pop { left: 0 !important; right: 0; width: auto !important; top: auto !important; bottom: 0 !important; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; border: 0; border-top: 3px solid var(--yellow); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 50px rgba(0, 0, 0, .7); }
    .dtp-pop.up { border-bottom: 0; }
    .dtp-grid button { min-height: 38px; }
    .dtp-hours button, .dtp-mins button { height: 38px; }
    .dtp-foot .tbtn { height: 42px; }
}
@media (max-width: 600px) { .dtp-foot { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom, 0px)); background: var(--panel); padding-bottom: 12px; margin-bottom: -12px; } }

/* mapa bez ramki: wyspa na tle strony */
.mapbox:has(.gta-map) { border: 0; background: transparent; }
.mapbox:has(.gta-map) .legend { border-top: 1px solid var(--line); padding-inline: 2px; }
.gta-map, .gta-map.leaflet-container { background: transparent; }
.gta-map::before { display: none; }

/* przełącznik stylu mapy (jak w HUD-zie: ciemna / atlas / satelita) */
.legend .mstyles { margin-left: auto; display: inline-flex; border: 1px solid var(--line-hi); }
.legend .mstyles button { height: 26px; padding: 0 10px; border: 0; background: transparent; color: var(--dim); cursor: pointer; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.legend .mstyles button + button { border-left: 1px solid var(--line-hi); }
.legend .mstyles button[aria-pressed="true"] { background: var(--yellow); color: #120f00; font-weight: 600; }
.gta-map .leaflet-tile-pane { filter: none; }
.gta-map .leaflet-image-layer { image-rendering: auto; }

/* ── broń i mapy do bitek: wybór ze zdjęciami (formularz bitki) i lista Mafii ── */
.bo-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at 50% 62%, #2b2525 0%, #0d0b0b 72%); }
.map .bo-img, .bo-img.map { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #131010 0 9px, #171313 9px 18px); }
.bo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px 10px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .65)); }
.map .bo-img img { object-fit: cover; padding: 0; filter: none; }
.map .bo-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(8, 6, 6, .55)); }
.bo-img > .ms { font-size: 30px; color: var(--ghost); }

.bo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.bo-picks.map { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.bo-pick { position: relative; display: grid; padding: 0; background: var(--panel); border: 1px solid var(--line-hi); color: var(--dim); cursor: pointer; text-align: left; overflow: hidden; transition: border-color .18s, color .18s, box-shadow .18s; }
.bo-pick:hover { border-color: var(--ghost); color: var(--bone); }
.bo-pick b { padding: 6px 9px 7px; border-top: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .18s; }
.bo-pick.map .bo-img img { filter: saturate(.7) brightness(.78); transition: filter .2s; }
.bo-pick.map:hover .bo-img img { filter: saturate(.9) brightness(.92); }
.bo-pick.tbd .bo-img { background: var(--ink); }
.bo-tick { position: absolute; top: 6px; right: 6px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); color: #120f00; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.bo-tick .ms { font-size: 16px; font-weight: 600; }
.bo-pick[aria-pressed="true"] { border-color: var(--yellow); color: var(--bone); box-shadow: inset 0 0 0 1px var(--yellow); }
.bo-pick[aria-pressed="true"] b { background: color-mix(in srgb, var(--yellow) 16%, transparent); }
.bo-pick[aria-pressed="true"] .bo-tick { opacity: 1; transform: none; }
.bo-pick.map[aria-pressed="true"] .bo-img img { filter: none; }
.bo-pick:focus-visible { outline-offset: -2px; }

.bo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.bo-grid.map { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bo-card { position: relative; display: grid; grid-template-rows: auto auto auto; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); min-width: 0; transition: border-color .18s, background-color .18s; }
.bo-card.map { border-left-color: var(--red); }
.bo-card:hover { background: var(--card-hi); border-color: var(--line-hi); }
.bo-no { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 1px 7px; background: rgba(8, 6, 6, .78); border: 1px solid var(--line-hi); font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.bo-foot { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px 2px; min-width: 0; }
.bo-foot b { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-foot small { flex: none; font-family: var(--f-hand); color: var(--muted); font-size: 12.5px; }
.bo-acts { display: flex; gap: 6px; padding: 8px 12px 12px; }
.bo-acts .sp { flex: 1; }
.bo-acts .sq { width: 32px; height: 32px; }
.bo-add { display: grid; place-content: center; justify-items: center; gap: 4px; min-height: 180px; padding: 16px; background: transparent; border: 1px dashed var(--line-hi); color: var(--dim); cursor: pointer; transition: border-color .18s, color .18s, background-color .18s; }
.bo-add:hover { border-color: var(--yellow); color: var(--bone); background: color-mix(in srgb, var(--yellow) 5%, transparent); }
.bo-add .ms { font-size: 30px; color: var(--yellow); }
.bo-add b { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.bo-add small { font-family: var(--f-hand); color: var(--muted); font-size: 13px; }
.bo-prev { border: 1px solid var(--line-hi); }
.bo-prev .bo-img { aspect-ratio: auto; height: min(220px, 50vw); width: 100%; }
.bo-rm { margin-top: 8px; gap: 8px !important; }
.fld .bo-rm input { width: auto; }
.fld .bo-rm label { font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--dim); cursor: pointer; }
@media (max-width: 600px) {
    .bo-picks, .bo-picks.map, .bo-grid, .bo-grid.map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bo-foot { padding: 8px 10px 2px; flex-wrap: wrap; gap: 0 6px; }
    .bo-foot b { font-size: 15px; max-width: 100%; }
    .bo-acts { gap: 4px; padding: 8px 10px 10px; }
    .bo-acts .sq { width: 30px; height: 30px; }
    .bo-add { min-height: 140px; }
}

/* ── zapisy na bitkę (Ekipa → Warny i bitki) ── */
.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; margin-bottom: 22px; }
.su { position: relative; display: grid; gap: 12px; min-width: 0; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--oc, var(--yellow)); }
.su::before { content: ""; position: absolute; inset: 0 0 auto; height: 70px; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--oc, var(--yellow)) 12%, transparent), transparent); }
.su-h { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.su-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.su-t small { font-family: var(--f-hand); color: var(--yellow); font-size: 13px; line-height: 1.2; }
.su-t b { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-when { flex: none; text-align: right; }
.su-when b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.su-when span { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.su-meta { font-size: 13.5px; color: var(--dim); }
.su-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.su-b { --c: var(--bone); height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line-hi); background: var(--ink); color: var(--bone); font-family: var(--f-display); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; white-space: nowrap; }
.su-b.in { --c: var(--green); }
.su-b.reserve { --c: var(--yellow); }
.su-b.out { --c: var(--red); }
.su-b .ms { font-size: 18px; color: var(--c); }
.su-b small { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.su-b:hover:not(:disabled) { border-color: var(--c); }
.su-b[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #120f00; }
.su-b.out[aria-pressed="true"] { color: #fff; }
.su-b[aria-pressed="true"] .ms, .su-b[aria-pressed="true"] small { color: inherit; }
.su-b:disabled { opacity: .5; cursor: progress; }
.su-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: start; }
.su-k { padding-top: 5px; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.su-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.su-slot { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px dashed var(--line-hi); color: var(--ghost); font-family: var(--f-display); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.su-slot.on { border: 1px solid rgba(50,209,94,.55); background: rgba(50,209,94,.08); color: var(--bone); font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.su-slot.me { border-color: var(--yellow); background: rgba(245,196,0,.12); }
.su-names { padding-top: 4px; font-size: 13.5px; color: var(--dim); }
.su-you { color: var(--yellow); font-weight: 600; }
@media (max-width: 520px) { .su-row { grid-template-columns: 1fr; gap: 4px; } .su-b { font-size: 12px; letter-spacing: .05em; } .su-t b { font-size: 19px; } }

/* ── aktywność w grze (Pracownicy) ── */
.gr-act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.gr-act span { display: flex; align-items: baseline; gap: 7px; font-family: var(--f-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gr-act b { font-size: 20px; color: var(--bone); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gr-act .warn b { color: var(--orange); }
.gr-act small { margin-left: auto; font-family: var(--f-hand); color: var(--muted); font-size: 13px; }
.gr-act.none { align-items: center; gap: 10px; }
.gr-act.none .ms { color: var(--muted); }
.gr-act.none small { margin: 0; font-family: var(--f-body); font-size: 13.5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ghost); flex: none; align-self: center; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(50,209,94,.18); }
.actl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* Discord osoby przy postaci z gry (Skład): nick albo ID, wyszarzone gdy nieznany */
.dcl { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; color: #c9c3bd; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcl .ms { color: #5865f2; font-size: 13px; }
.dcl code { font-size: 12px; color: var(--muted); }
.dcl.none { color: var(--muted); font-style: italic; }
.dcl.none .ms { color: var(--muted); }
.act { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border: 1px solid var(--line-hi); font-family: var(--f-display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.act.on { color: var(--green); border-color: rgba(50,209,94,.5); }
.act.warn { color: var(--orange); border-color: rgba(255,138,61,.5); }
.act.idle { color: var(--red-hi); border-color: rgba(255,45,32,.55); background: rgba(255,45,32,.07); }
@media (max-width: 760px) { .gr-act small { margin-left: 0; flex-basis: 100%; } }

/* ── raport tygodnia ── */
.rp-stats { margin-bottom: 14px; }
.rp-stats .stat b i { font-style: normal; color: var(--muted); margin: 0 2px; }
.rp-stats .stat b.neg { color: var(--red-hi); }
.rp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.rp-top { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: none; }
.rp-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rp-top li:last-child { border-bottom: 0; }
.rp-top .rp-n { font-family: var(--f-display); color: var(--muted); font-size: 13px; }
.rp-top li:first-child .rp-n { color: var(--yellow); }
.rp-top .rp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-top b { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rp-plus { color: var(--green); }
.rp-minus { color: var(--red-hi); }
.feed time.rp-w { color: var(--green); font-weight: 700; }
.feed time.rp-l { color: var(--red-hi); font-weight: 700; }
.rp-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--line-hi); font-size: 14px; }
.rp-next .ms { color: var(--yellow); font-size: 18px; }
@media (max-width: 520px) { .rp-two { grid-template-columns: 1fr; } }
.rp-stats .stat b { white-space: nowrap; }
@media (max-width: 520px) { .rp-stats .stat b { font-size: 25px; } }

/* ── podania i rekrutacja ── */
.rec-chip { padding: 0 6px; font-size: 10.5px; }
.panel.rec.open { border-left: 4px solid var(--green); }
.rec-note { margin: 0 0 12px; padding: 10px 12px; background: var(--ink); border: 1px dashed var(--line-hi); font-size: 14px; }
.rec-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.rec-reason { margin: 0 0 10px; font-family: var(--f-hand); color: var(--dim); font-size: 14px; }
.rec-sw { display: flex; align-items: center; gap: 12px; cursor: pointer; padding-bottom: 4px; }
.rec-sw span { display: flex; flex-direction: column; }
.rec-sw b { font-family: var(--f-display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.rec-sw small { color: var(--muted); font-size: 13px; }
.app-card { display: grid; gap: 12px; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); min-width: 0; }
.app-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-h div { display: flex; flex-direction: column; min-width: 0; }
.app-h b { font-family: var(--f-display); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* składający jest teraz w innej ekipie — przed przyjęciem musi odejść */
.app-other { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 9px 12px; border-left: 3px solid var(--yellow); background: rgba(245,196,0,.07); font-size: 14px; color: var(--bone); }
.app-other .ms { color: var(--yellow); margin-top: 2px; }
.app-h small { color: var(--muted); font-size: 13px; }
.app-a { display: grid; gap: 4px; margin: 0; }
.app-a dt { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.app-a dd { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── sojusze i wojny ── */
.rel { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rel:last-child { border-bottom: 0; }
.rel-i { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border: 1px solid var(--line-hi); background: var(--ink); }
.rel.war .rel-i { color: var(--red); border-color: rgba(255,45,32,.5); }
.rel.alliance .rel-i { color: var(--green); border-color: rgba(50,209,94,.45); }
.rel:not(.active):not(.pending):not(.proposed) .rel-i { color: var(--ghost); border-color: var(--line-hi); }
.rel-b { min-width: 0; }
.rel-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.rel-x { font-family: var(--f-hand); color: var(--yellow); font-size: 15px; }
.rel.war .rel-x { color: var(--red-hi); }
.rel-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 5px; }
.rel-n { margin: 6px 0 0; font-family: var(--f-hand); color: var(--dim); font-size: 14px; }
.rel-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rel-kv dd { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; }
@media (max-width: 640px) { .rel { grid-template-columns: 34px minmax(0, 1fr); } .rel-i { width: 34px; height: 34px; font-size: 19px; } .rel-acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* ── linki: strefy i bitki ── */
a.zlink { color: var(--bone); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--ghost); transition: border-color .18s, color .18s; }
a.zlink:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.fight h2 a.zlink { border-bottom: 0; }
.feed li.bline, .rp-next.bline { cursor: pointer; transition: background-color .18s; }
.feed li.bline { grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.feed li.bline:hover, .rp-next.bline:hover { background: #ffffff07; }
.feed li.bline:focus-visible { outline-offset: -2px; }
.bl-go { color: var(--ghost); font-size: 20px; transition: color .18s, transform .18s; }
.bline:hover .bl-go { color: var(--yellow); transform: translateX(2px); }
.rp-next.bline .bl-go { margin-left: auto; }
.bl-vs { font-family: var(--f-hand); color: var(--muted); font-size: 13px; line-height: 1; }
/* wiersz bitki: ekipy w jednym rzędzie (równe odstępy wokół „vs”), pod spodem opis */
.bl-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bl-teams { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; min-width: 0; }
.bl-sub span { white-space: nowrap; }
.td-acts { display: flex; gap: 6px; justify-content: flex-end; }
.su-org { color: inherit; text-decoration: none; }
.su-org:hover { color: var(--yellow); }
.su-mug { display: contents; }
.su-h .sq { flex: none; }
/* okno bitki */
.bt { display: grid; gap: 16px; }
.bt-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.bt-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--line); border-top: 3px solid var(--oc); background: var(--ink); text-decoration: none; color: var(--bone); text-align: center; min-width: 0; transition: border-color .18s, background-color .18s; }
.bt-side:hover { background: var(--card-hi); border-color: var(--line-hi); border-top-color: var(--oc); }
.bt-side b { font-family: var(--f-display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; overflow-wrap: anywhere; }
.bt-side.win { border-color: rgba(50,209,94,.55); border-top-color: var(--green); }
.bt-side.lose { opacity: .65; }
.bt-crown { font-family: var(--f-hand); color: var(--green); font-size: 14px; }
.bt-x { font-family: var(--f-hand); color: var(--yellow); font-size: 22px; }
.bt-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line-hi); font-size: 15px; }
.bt-when .ms { color: var(--yellow); }
.bt-reason small { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bt-reason p { margin: 4px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bt-kv:empty { display: none; }
.bt-load { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.bt-load figure { margin: 0; cursor: default; }
.bt-load figcaption { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; font-family: var(--f-display); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.bt-load figcaption small { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.bt-su { padding: 12px 14px; background: var(--ink); border: 1px solid var(--line); }
.bt-su p { margin: 6px 0 10px; font-size: 14px; }
.bt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.bt-steps li { display: flex; flex-direction: column; font-size: 13px; }
.bt-steps b { font-family: var(--f-display); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 520px) { .bt-vs { grid-template-columns: 1fr; } .bt-x { text-align: center; } .bt-side { flex-direction: row; justify-content: flex-start; text-align: left; } .bt-side .mug.big { width: 52px; height: 52px; } }

/* ── rozmowa podania (ticket) ── */
.rec-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.app-acts .sp { flex: 1; }
dialog.dlg.chat { width: min(760px, calc(100vw - 32px)); }
.dlg.chat .dh { flex-wrap: wrap; }
.chat-st { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chat-b { padding: 0 !important; }
.chat-list { height: min(52vh, 480px); overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 30%), var(--panel); }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.chat-empty .ms { font-size: 34px; color: var(--ghost); }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cm { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; max-width: 88%; }
.cm.mine { align-self: flex-end; grid-template-columns: minmax(0, 1fr) 34px; }
.cm.mine .cm-av { order: 2; background: var(--yellow); color: #120f00; border-color: var(--yellow); }
.cm-av { width: 34px; height: 34px; display: grid; place-items: center; background: var(--card-hi); border: 1px solid var(--line-hi); font-family: var(--f-display); font-weight: 700; }
.cm-b { padding: 8px 12px 10px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.cm.mine .cm-b { border-color: rgba(245,196,0,.45); background: rgba(245,196,0,.06); }
.cm-b header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cm-b header b { font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.cm-b time, .cm.sys time { color: var(--muted); font-size: 12px; }
.cm-tag { font-family: var(--f-display); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 0 5px; border: 1px solid var(--line-hi); color: var(--dim); }
.cm-b p { margin: 4px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.cm-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--blue); font-size: 13.5px; }
.cm.sys { max-width: 100%; grid-template-columns: 22px minmax(0, 1fr); align-items: start; padding: 8px 10px; border-left: 3px solid var(--yellow); background: rgba(245,196,0,.05); }
.cm.sys .ms { color: var(--yellow); font-size: 15px; margin-top: 2px; }
.cm.sys p { margin: 0; font-size: 13px; color: var(--dim); white-space: normal; }
@media (max-width: 760px) { .chat-list { height: calc(100dvh - 210px); padding: 12px; } .cm { max-width: 100%; } }

.rec-app { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rec-off { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; border-left: 4px solid var(--red); }
.rec-off > .ms { font-size: 26px; color: var(--red-hi); margin-top: 2px; }
.rec-off b { font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.rec-off p { margin: 4px 0 10px; color: var(--dim); font-size: 14px; }

.lg-tabs a { text-decoration: none; white-space: nowrap; }

/* ── pytania w podaniu ── */
.q-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 20px; align-items: start; }
.q-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-row:first-child { padding-top: 0; }
.q-n { width: 30px; height: 30px; display: grid; place-items: center; background: var(--yellow); color: #120f00; font-family: var(--f-display); font-weight: 700; }
.q-main { display: grid; gap: 8px; min-width: 0; }
.q-lab { position: relative; }
.q-main input.q-label, .q-main input.q-ph { width: 100%; height: 40px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-hi); color: var(--bone); }
.q-main input.q-label { padding-right: 58px; font-weight: 600; }
.q-main input.q-ph { height: 34px; font-size: 13.5px; color: var(--dim); }
.q-main input:focus { outline: none; border-color: var(--yellow); }
.q-cnt { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.q-type { display: inline-flex; border: 1px solid var(--line-hi); }
.q-type button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--dim); font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.q-type button + button { border-left: 1px solid var(--line-hi); }
.q-type button[aria-pressed="true"] { background: var(--yellow); color: #120f00; font-weight: 600; }
.q-req { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim); cursor: pointer; }
.q-req input { accent-color: var(--yellow); width: 16px; height: 16px; }
.q-acts { display: flex; gap: 6px; }
.q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.q-foot .sp { flex: 1; }
/* podgląd okna Discorda */
.q-prev { position: sticky; top: 12px; }
.q-prev-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.q-prev-h .ms { color: #8b93f8; }
.dmodal { background: #313338; color: #dbdee1; border-radius: 8px; padding: 16px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.dm-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dm-h b { font-size: 18px; color: #f2f3f5; font-weight: 700; }
.dm-h span { color: #b5bac1; }
.dm-f { margin-bottom: 14px; }
.dm-l { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #f2f3f5; overflow-wrap: anywhere; }
.dm-l em { color: #f23f43; font-style: normal; margin-left: 2px; }
.dm-i { min-height: 38px; padding: 9px 10px; border-radius: 4px; background: #1e1f22; color: #87898c; font-size: 13.5px; overflow-wrap: anywhere; }
.dm-i.long { min-height: 76px; }
.dm-b { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 4px -16px -16px; padding: 14px 16px; border-radius: 0 0 8px 8px; background: #2b2d31; font-size: 14px; }
.dm-b span { color: #dbdee1; }
.dm-b b { padding: 8px 16px; border-radius: 4px; background: #5865f2; color: #fff; font-weight: 500; }
@media (max-width: 1000px) { .q-wrap { grid-template-columns: 1fr; } .q-prev { position: static; } }
@media (max-width: 560px) { .q-row { grid-template-columns: 26px minmax(0, 1fr); } .q-acts { grid-column: 2; } .q-n { width: 26px; height: 26px; } }

/* ═══ Ulica 2.0: dopracowany styl „street” (wybrany wariant A) ═══ */
/* nagłówek strony: podtytuł pisany ręcznie */
.page-h h1 { font-size: clamp(32px, 3.8vw, 46px); }
.page-h p { font-family: var(--f-hand); color: var(--yellow); font-size: 15px; letter-spacing: .01em; }
.page-h p .hint, .page-h p a { font-family: var(--f-body); }
/* panel przejęcia: pasek ostrzegawczy, informacje po lewej, licznik po prawej */
.fight { overflow: hidden; border: 1px solid var(--line-hi); padding-top: 24px; background: linear-gradient(135deg, rgba(245,196,0,.10), transparent 60%), var(--card); }
.fight::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px); }
.fight.calm { border-color: var(--line); padding-top: 16px; }
.fight.calm::before { display: none; }
.fight .lbl i { border-radius: 50%; background: var(--red); }
.fight-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 20px; flex-wrap: wrap; }
.fight-info { min-width: 0; }
.fight .fight-row .timer { margin-top: 0; font-size: clamp(52px, 6vw, 76px); }
/* kafle liczb: żółta góra */
.stat { border-top: 3px solid var(--yellow); }
.stat b { font-size: 38px; }
/* znaczniki bitek: kwadrat W / L / VS / ikona */
.feed li.bline time { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-hi); font-size: 12px; font-weight: 700; color: var(--dim); }
.feed li.bline time .ms { font-size: 14px; }
.feed li.bline time.rp-w { border-color: var(--green); }
.feed li.bline time.rp-l { border-color: var(--red); color: var(--red-hi); }
.feed li.bline time.bl-up { border-color: var(--yellow); color: var(--yellow); }
/* wyloguj: obrys, czerwony dopiero po najechaniu */
.tbtn.out:hover { border-color: var(--red); color: var(--red-hi); background: rgba(255,45,32,.08); }
/* dolny pasek na telefonie */
.tabbar { display: none; }
@media (max-width: 860px) {
    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; padding-bottom: env(safe-area-inset-bottom, 0px); background: #0f0d0d; border-top: 1px solid var(--line-hi); }
    .tabbar a, .tabbar button { flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--dim); text-decoration: none; font-family: var(--f-display); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
    .tabbar .ms { font-size: 18px; }
    .tabbar [aria-current="page"] { color: var(--yellow); box-shadow: inset 0 3px 0 var(--yellow); }
    body.menu-open .tabbar #tab-more { color: var(--yellow); }
    .main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ── układ stron bez pustej lewej kolumny: kafle w pasku, treść w równych kolumnach ── */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.stats-2 .stat { display: flex; flex-direction: column; justify-content: flex-end; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.prof-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 14px 0; }
.prof-stats .stat b { font-size: 32px; }
.stat.warn { border-top-color: var(--red); }
.g-akta { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.8fr); align-items: start; }
@media (max-width: 1000px) { .dash-hero, .g-akta { grid-template-columns: 1fr; } }

/* ═══ Serwer Discord: nagłówek serwera, zakładki, karty powiadomień, podgląd jak okno Discorda ═══ */
.fld input.sw { width: 40px; height: 22px; padding: 0; }
.fld input.sw:not(:checked) { background: var(--line); }
.stat.ok { border-top-color: var(--green); }
.srv-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px 20px; align-items: center; padding: 18px 20px; border-left: 4px solid var(--oc, var(--yellow)); background: linear-gradient(100deg, rgba(88,101,242,.16), transparent 55%), var(--card); }
.srv-hero .gicon { width: 64px; height: 64px; font-size: 30px; background: var(--oc); }
.srv-id { min-width: 0; }
.srv-id .gname { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-k { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8b93f8; }
.srv-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 440px; }
.srv-pills .ms { font-size: 13px; }
.srv-hero .gacts { margin: 0; }
.srv-miss { grid-column: 1 / -1; margin: 0; display: flex; gap: 8px; align-items: center; color: var(--red-hi); font-size: 14px; }
.srv-miss a { color: var(--yellow); }
@media (max-width: 1250px) { .srv-hero { grid-template-columns: auto minmax(0, 1fr) auto; } .srv-pills { order: 5; grid-column: 1 / -1; justify-content: flex-start; max-width: none; } .srv-miss { order: 6; } }
@media (max-width: 600px) { .srv-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; } .srv-hero .gicon { width: 52px; height: 52px; font-size: 24px; } .srv-hero .gacts { order: 7; grid-column: 1 / -1; } .srv-hero .gacts .tbtn { flex: 1; justify-content: center; } }
.srv-tabs { width: max-content; max-width: 100%; margin: 16px 0 14px; }
.tab-n { min-width: 30px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--line-hi); color: var(--bone); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.lg-tabs [aria-selected="true"] .tab-n { background: #120f00; color: var(--yellow); }
.srv-tabs button { white-space: nowrap; }
@media (max-width: 860px) { .srv-tabs { width: 100%; } }
@media (max-width: 600px) { .srv-tabs button { padding: 0 6px; gap: 6px; font-size: 12px; letter-spacing: .06em; } .srv-tabs .ms, .srv-tabs .tab-x { display: none; } }

.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.ncard { display: grid; gap: 12px; align-content: start; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line-hi); transition: border-color .18s, background-color .18s; }
.ncard.on { border-left-color: var(--yellow); background: linear-gradient(135deg, rgba(245,196,0,.07), transparent 45%), var(--card); }
.ncard header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.nc-ic { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-hi); color: var(--muted); transition: color .18s, border-color .18s; }
.ncard.on .nc-ic { border-color: var(--yellow); color: var(--yellow); }
.nc-t b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.nc-t small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.ncard header .sw { margin-top: 8px; }
.nc-sel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; transition: opacity .18s; }
.ncard:not(.on) .nc-sel { opacity: .5; }
.ncard:not(.on) .nc-sel:hover, .ncard:not(.on) .nc-sel:focus-within { opacity: 1; }
.nc-sel .fld { gap: 4px; }
.nc-sel .fld label { font-size: 11px; color: var(--muted); }
.nc-sel .combo-btn { height: 40px; }
.nc-sel .combo-btn b { font-size: 14px; }
.nc-warn { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--orange); font-size: 13px; }
@media (max-width: 480px) { .nc-sel { grid-template-columns: 1fr; } }
/* pasek zapisu przyklejony do dołu ekranu, dopóki zakładka się przewija */
.savebar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; background: rgba(16,14,14,.94); border: 1px solid var(--line-hi); border-top: 2px solid var(--yellow); backdrop-filter: blur(6px); }
.savebar .hint { margin-right: auto; }
@media (max-width: 860px) { .savebar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; } .savebar .hint { display: none; } .savebar .tbtn { flex: 1; justify-content: center; } }

.srv-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .srv-2 { grid-template-columns: 1fr; } }
.rmap { display: grid; gap: 8px; margin-top: 16px; }
.rmap-row { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.1fr); gap: 12px; align-items: center; padding: 12px; background: var(--ink); border: 1px solid var(--line); }
.rmap-row > .ms { color: var(--yellow); }
.rmap-from b { display: block; font-family: var(--f-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rmap-from small { color: var(--muted); font-size: 12.5px; }
.rmap-row .combo-btn { height: 40px; }
.rmap-row .combo-btn b { font-size: 14px; }
@media (max-width: 560px) { .rmap-row { grid-template-columns: 1fr; gap: 8px; } .rmap-row > .ms { transform: rotate(90deg); } }
.cmds { list-style: none; margin: 0; padding: 0; }
.cmds li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmds li:first-child { padding-top: 0; }
.cmds li:last-child { border-bottom: 0; padding-bottom: 0; }
.cmds code { font-family: var(--f-mono); font-size: 13px; color: var(--yellow); }
.cmds span { color: var(--dim); font-size: 14px; }
.benefits { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.benefits code { font-family: var(--f-mono); font-size: 12px; }

/* wygląd: formularz w sekcjach, presety z miniaturą embeda */
@media (max-width: 1100px) { .look { grid-template-columns: 1fr; } .look-prev { position: static; } }
.look-sec { display: grid; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.look-sec:last-child { border-bottom: 0; }
.look-h { font-family: var(--f-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preset { display: grid; gap: 3px; align-content: start; padding: 10px; background: var(--ink); border: 1px solid var(--line-hi); color: var(--bone); text-align: left; cursor: pointer; transition: border-color .18s; }
.preset:hover:not(:disabled) { border-color: var(--yellow); }
.preset:disabled { opacity: .5; cursor: default; }
.preset b { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.preset small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.pv { position: relative; display: grid; gap: 4px; align-content: center; height: 40px; margin-bottom: 5px; padding: 0 26px 0 9px; background: #2b2d31; border-left: 3px solid var(--orange); border-radius: 3px; }
.pv i { display: block; height: 4px; border-radius: 2px; background: #4e5058; }
.pv i:nth-child(1) { width: 55%; background: #b5bac1; }
.pv i:nth-child(2) { width: 90%; }
.pv i:nth-child(3) { width: 40%; }
.pv-org, .pv-clean { border-left-color: var(--oc); }
.pv-org::after { content: ""; position: absolute; right: 7px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--oc); }
@media (max-width: 480px) { .preset small { display: none; } }
.look-form .rec-sw { padding: 2px 0 0; }

.dwin { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 330px; background: #313338; border: 1px solid #1e1f22; font-family: "gg sans", "Noto Sans", var(--f-body); }
.dwin-side { min-width: 0; padding-bottom: 10px; background: #2b2d31; }
.dwin-guild { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-bottom: 1px solid #1f2023; color: #f2f3f5; font-weight: 700; font-size: 14.5px; }
.dwin-guild span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwin-guild .ms { font-size: 12px; color: #b5bac1; }
.dwin-cat { padding: 16px 12px 6px 16px; color: #949ba4; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.dwin-chs { display: grid; gap: 2px; padding: 0 8px; }
.dwin-ch { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #949ba4; text-align: left; cursor: pointer; }
.dwin-ch .ms { font-size: 13px; }
.dwin-ch span { display: grid; min-width: 0; }
.dwin-ch b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwin-ch small { font-size: 11.5px; color: #6d6f78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwin-ch.off { opacity: .55; }
.dwin-ch:hover { background: #35373c; color: #dbdee1; opacity: 1; }
.dwin-ch[aria-selected="true"] { background: #404249; color: #f2f3f5; opacity: 1; }
.dwin-ch[aria-selected="true"] .ms { color: var(--yellow); }
.dwin-ch[aria-selected="true"] small { color: #b5bac1; }
.dwin-main { display: flex; flex-direction: column; min-width: 0; }
.dwin-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid #26272b; color: #f2f3f5; min-width: 0; }
.dwin-top .ms { color: #80848e; font-size: 16px; }
.dwin-top b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.dwin-top span { min-width: 0; margin-left: 4px; padding-left: 10px; border-left: 1px solid #3f4147; color: #949ba4; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwin-off { margin: 12px 16px 0; padding: 8px 12px; border: 1px solid rgba(240,178,50,.35); border-radius: 4px; background: rgba(240,178,50,.08); color: #f0b232; font-size: 13px; }
.dwin .dc { flex: 1; min-height: 0; border: 0; background: transparent; }
@media (max-width: 700px) {
    .dwin { grid-template-columns: 1fr; }
    .dwin-guild, .dwin-cat { display: none; }
    .dwin-side { padding: 8px 0; border-bottom: 1px solid #1f2023; }
    .dwin-chs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .dwin-ch { flex: none; width: auto; max-width: 190px; }
}
.look-type { padding: 14px 16px 16px; }
.look-type .panel-t { color: var(--yellow); }
.look-type .panel-t span { display: inline-flex; align-items: center; gap: 8px; }
/* treść typu: tytuł, opis, tekst nad embedem, pola; zmienne {{…}} do kliknięcia */
#lt-text { display: grid; gap: 12px; margin-bottom: 12px; }
#lt-text textarea { min-height: 72px; resize: vertical; }
.look-type .lbl { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; background: var(--ink); border: 1px dashed var(--line-hi); }
.vars .lbl { margin-right: 4px; }
.var { padding: 4px 8px; border: 1px solid var(--line-hi); background: #17140f; color: var(--yellow); font-family: ui-monospace, Consolas, monospace; font-size: 12px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.var:hover, .var:focus-visible { border-color: var(--yellow); background: rgba(245,196,0,.1); }
.var:disabled { cursor: default; }
.lt-fl { display: grid; gap: 6px; margin-bottom: 8px; }
.lt-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto 34px; gap: 6px; align-items: center; }
.lt-f input:not([type=checkbox]) { min-width: 0; width: 100%; background: var(--ink); border: 1px solid var(--line-hi); padding: 9px 11px; color: var(--bone); font: inherit; font-size: 14px; }
.lt-f input:not([type=checkbox]):focus { border-color: var(--yellow); outline: none; }
.lt-inl input { accent-color: var(--yellow); }
.lt-inl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); white-space: nowrap; cursor: pointer; }
@media (max-width: 640px) { .lt-f { grid-template-columns: minmax(0, 1fr) auto 34px; } .lt-f input[data-fk="value"] { grid-column: 1 / -1; grid-row: 2; } }
.cpick .hint { font-family: var(--f-mono); font-size: 12.5px; }
.look-save { margin-top: 0; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ═══ Podania: stan rekrutacji z pieczątką, kafle z 30 dni, kroki, teczki podań, historia ═══ */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
@media (max-width: 1000px) { .ap-hero { grid-template-columns: 1fr; } }
.ap-stats .stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.rec-hero { display: grid; gap: 16px; align-content: start; border-left: 4px solid var(--red); background: linear-gradient(120deg, rgba(255,45,32,.08), transparent 55%), var(--card); }
.rec-hero.open { border-left-color: var(--green); background: linear-gradient(120deg, rgba(50,209,94,.08), transparent 55%), var(--card); }
.rec-state { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.stamp { flex: none; padding: 6px 14px 4px; border: 3px solid currentColor; outline: 1px solid currentColor; outline-offset: 3px; color: var(--red-hi); font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-5deg); opacity: .9; }
.rec-hero.open .stamp { color: var(--green); }
.rec-st-t { flex: 1; display: grid; gap: 2px; min-width: 200px; }
.rec-k { font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rec-st-t b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
.rec-st-t small { color: var(--dim); font-size: 13.5px; }
.rec-tg { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ink); border: 1px solid var(--line-hi); cursor: pointer; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rec-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.rec-form textarea { min-height: 72px; height: 72px; }
.rec-form .fld small { font-size: 12.5px; }
@media (max-width: 700px) { .rec-form { grid-template-columns: 1fr; } }
.rec-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.rec-foot > .hint:only-child, .rec-foot > a + .hint { margin-right: auto; order: -1; }
.rec-quote { margin: 0; padding: 12px 14px; background: var(--ink); border-left: 3px solid var(--yellow); font-family: var(--f-hand); font-size: 15px; line-height: 1.45; }

.ap-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); }
.ap-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; }
.ap-steps li + li { border-left: 1px dashed var(--line-hi); }
.ap-steps li + li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 11px; height: 11px; background: var(--card); border-top: 1px solid var(--yellow); border-right: 1px solid var(--yellow); transform: translateY(-50%) rotate(45deg); }
.ap-n { position: absolute; top: 8px; right: 12px; font-family: var(--f-hand); color: var(--ghost); font-size: 15px; }
.ap-steps li > .ms { font-size: 19px; color: var(--yellow); margin-top: 2px; }
.ap-steps b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase; }
.ap-steps p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (max-width: 1100px) { .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ap-steps li:nth-child(3) { border-left: 0; } .ap-steps li:nth-child(n+3) { border-top: 1px dashed var(--line-hi); } .ap-steps li:nth-child(3)::before { display: none; } }
@media (max-width: 560px) { .ap-steps { grid-template-columns: 1fr; } .ap-steps li + li { border-left: 0; border-top: 1px dashed var(--line-hi); } .ap-steps li + li::before { display: none; } }

.ap-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1700px) { .ap-cols { grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr); } }
@media (max-width: 1100px) { .ap-cols { grid-template-columns: 1fr; } }
.q-card { position: sticky; top: 14px; }
@media (max-width: 1100px) { .q-card { position: static; } }
.q-card .dmodal { box-shadow: none; }
.q-edit { width: 100%; justify-content: center; margin-top: 14px; }
.app-list { display: grid; gap: 14px; }
.app-card.late { border-left-color: var(--red); }
.app-h .chip { margin-left: auto; align-self: flex-start; }
@media (max-width: 560px) { .app-h { flex-wrap: wrap; } .app-h > div { flex: 1 1 150px; } }
.app-a { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 12px 0; border-top: 1px dashed var(--line-hi); border-bottom: 1px dashed var(--line-hi); }
.app-a > div { min-width: 0; }
.app-a > div.full { grid-column: 1 / -1; }
.app-a dt { margin-top: 0; }
.app-a dd { margin-top: 3px; }
@media (max-width: 700px) { .app-a { grid-template-columns: 1fr; } }
.app-acts { align-items: center; }
.app-acts .hint { display: inline-flex; align-items: center; gap: 6px; }
.app-acts .hint .ms { color: #8b93f8; }
.ap-empty { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px dashed var(--line-hi); background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.018) 14px 28px); }
.ap-empty > .ms { font-size: 30px; color: var(--ghost); }
.ap-empty b { font-family: var(--f-display); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.ap-empty p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ah-list { padding: 4px 16px; }
.ah-row { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; grid-template-areas: "m w d r a"; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ah-row:last-child { border-bottom: 0; }
.ah-mark { grid-area: m; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-hi); color: var(--dim); }
.ah-mark .ms { font-size: 15px; }
.ah-mark.accepted { border-color: var(--green); color: var(--green); }
.ah-mark.rejected { border-color: var(--red); color: var(--red-hi); }
.ah-who { grid-area: w; }
.ah-dec { grid-area: d; }
.ah-reason { grid-area: r; margin: 0; font-family: var(--f-hand); color: var(--dim); font-size: 13.5px; overflow-wrap: anywhere; }
.ah-act { grid-area: a; }
.ah-who, .ah-dec { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.ah-who b { max-width: 100%; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-who small, .ah-dec small { max-width: 100%; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-act .tbtn { height: 32px; padding: 0 10px; font-size: 12px; }
@media (max-width: 900px) {
    .ah-row { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "m w a" ". d d" ". r r"; gap: 6px 12px; }
    .ah-dec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
    .ah-reason:empty { display: none; }
}
dialog.dlg.q-dlg { width: min(1060px, calc(100vw - 32px)); }
.q-dlg .dh .q-count { margin-left: auto; }
.q-dlg .q-prev { top: 0; }
@media (max-width: 600px) { dialog.dlg.q-dlg { width: 100vw; } }

/* ── Mafia: bitki, warny i cheaterzy · skład na bitkę ── */
.g-mb { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1000px) { .g-mb { grid-template-columns: 1fr; } }
.cheat-rules { margin: 14px 0 4px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.cr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k l" "k c" "k z"; column-gap: 12px; padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--yellow); }
.cr.hot { border-left-color: var(--red); background: linear-gradient(90deg, rgba(255,45,32,.08), transparent 70%), var(--ink); }
.cr b { grid-area: k; align-self: center; min-width: 54px; font-family: var(--f-display); font-size: 20px; color: var(--yellow); letter-spacing: .02em; }
.cr.hot b { color: var(--red-hi); }
.cr span { grid-area: l; font-size: 13px; color: var(--dim); }
.cr strong { grid-area: c; font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; color: var(--bone); }
.cr em, .cheat-sum em { grid-area: z; font-style: normal; font-family: var(--f-hand); font-size: 13px; color: var(--red-hi); }
.cr em.no, .cheat-sum em.no { color: var(--muted); font-family: var(--f-body); font-size: 12.5px; }
.cheat-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cheat-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 2px 0 10px; border: 1px solid rgba(255,45,32,.5); background: rgba(255,45,32,.07); font-size: 13.5px; }
.cheat-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cheat-chip button:hover, .cheat-chip.armed button { color: var(--red-hi); }
.cheat-chip.armed { border-color: var(--red); background: rgba(255,45,32,.18); }
.cheat-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l c" "z c"; gap: 2px 14px; align-items: center; padding: 12px 14px; border: 1px dashed var(--red); background: rgba(255,45,32,.06); }
.cheat-sum span { grid-area: l; font-size: 14px; }
.cheat-sum strong { grid-area: c; font-family: var(--f-display); font-size: 24px; letter-spacing: .03em; color: var(--yellow); }
.lu-list { display: grid; gap: 4px; max-height: min(52dvh, 460px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.lu-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.lu-row:hover { border-color: var(--line-hi); }
.lu-row.on { border-color: var(--yellow); background: rgba(245,196,0,.08); }
.lu-row input { width: 18px; height: 18px; accent-color: var(--yellow); }
.lu-row input:disabled + .lu-name { opacity: .45; }
.lu-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14.5px; line-height: 1.25; }
.lu-name small { font-size: 11.5px; color: var(--muted); }
.su-slot.pick { border-color: var(--yellow); background: rgba(245,196,0,.1); }
.su-by { align-self: center; font-size: 12px; color: var(--muted); }
.su-pick { justify-self: start; }

/* ── Mafia: stroje do akceptacji · limit wypowiedzeń ── */
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.of { display: grid; gap: 12px; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--oc, var(--yellow)); }
.of-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.of-h small { display: block; font-size: 12.5px; color: var(--muted); }
.of-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.of-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line-hi); background: var(--ink); }
.of-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.of-img:hover img { transform: scale(1.04); }
.of-img span { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; background: rgba(11,10,10,.82); font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; color: var(--yellow); }
.of-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.feed.lim li { grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; }
.feed.lim time.rp-l { color: var(--red-hi); }

/* ── Mafia: giveawaye ── */
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; margin-bottom: 18px; }
.gw { display: grid; gap: 12px; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--yellow); }
.gw.ended { border-top-color: var(--green); }
.gw.cancelled { border-top-color: var(--line-hi); opacity: .75; }
.gw-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.gw-h > .ms { font-size: 26px; color: var(--yellow); }
.gw.ended .gw-h > .ms { color: var(--green); }
.gw-h b { display: block; font-family: var(--f-display); font-size: 20px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.gw-h small { font-size: 12.5px; color: var(--muted); }
.gw-desc { margin: 0; font-size: 14px; color: var(--dim); white-space: pre-line; }
.gw-cond { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px dashed var(--line-hi); font-size: 13.5px; }
.gw-cond .ms { margin-top: 2px; color: var(--yellow); font-size: 13px; }
.gw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gw-stats span { display: flex; flex-direction: column; padding: 8px 10px; background: var(--ink); border: 1px solid var(--line); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-display); }
.gw-stats b { font-size: 24px; color: var(--bone); letter-spacing: .02em; }
.gw-win { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(50,209,94,.08); border: 1px solid rgba(50,209,94,.45); font-weight: 600; }
.gw-win .ms { color: var(--yellow); }
.gw-list summary { cursor: pointer; font-family: var(--f-display); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gw-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.gw-list li { padding: 6px 8px; background: var(--ink); border-left: 2px solid var(--line-hi); }
.gw-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.gw-acts:empty { display: none; }
