/* Czcionki z naszego serwera (licencja OFL, pliki w assets/fonts): bez łączenia z Google */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope.woff') format('woff'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }

/* ===== Kolory i podstawy (klimat ciemnej sali kinowej) ===== */
:root {
    --bg: #17151A;
    --bg-deep: #131116;
    --card: #211E25;
    --card-2: #26222B;
    --line: #2E2A33;
    --line-2: #3A3540;
    --text: #F3EDE4;
    --text-2: #C9C1B6;
    --muted: #A79F95;
    --accent: #F0B04A;
    --accent-ink: #1A1408;
    --accent-soft: #3A2E1A;
    --error: #E8A090;
    --ok: #9CC9A3;
    --mod: #E3867A;          /* spokojny czerwony zarezerwowany dla moderacji */
    --mod-soft: #2E1C1A;
    --mod-line: #6B3A33;
    --radius: 16px;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --accent-fill: var(--accent);
    --scheme: dark;
    --box: #1D1A20;
    --mod-btn: #B5483C;
    --link-hover: #F6C878;
    --line-soft: #2A2630;
    --accent-hover: #F6C878;
    --gold: #F0B04A;
    --hero-g1: #F0B04A;
    --hero-g2: #E9A07A;
    --hero-glow1: rgba(240,176,74,.16);
    --hero-glow2: rgba(233,160,122,.12);
    --ok-line: #3F5B4F;
    --ok-bg2: #1E2722;
    --ok-text2: #D7EBDB;
    --err-line: #6B3A33;
    --err-bg: #2A1C1A;
    --err-text: #F4D3CB;
    --info-bg: #241E15;
    --info-text: #F1DFC0;
    --text-body: #E4DDD3;
    --err-field: #8A4A40;
    --placeholder: #7D766E;
    --green-text: #7FCB9A;
    --card-topic: #1F1D22;
    --text-strong: #fff;
    --track: #2A2730;
    --green-bg: #1E2C23;
    --yellow-bg: #2A2416;
    --yellow-text: #E9C77C;
    --btn-light-bg: #F3EDE4;
    --btn-light-ink: #17151A;
    --btn-light-hover: #fff;
    --bubble-mine: #34303A;
    --sunken: rgba(0,0,0,.18);
    --green-line: #3E6B4E;
    --shadow-a: rgba(0,0,0,.45);
    --mod-hover-bg: #3A2320;
    --mod-hover-text: #F0A598;
    --mod-ink: #1A0E0C;
    --calm-line: #2F4A3A;
    --calm-bg: #1C2620;
    --info-line: #4A3F25;
    --tint-08: rgba(255,255,255,.08);
    --line-soft-2: #24212A;
    --honey-line: #5A4520;
    --sunken-2: rgba(0,0,0,.2);
    --topbar-bg: rgba(23,21,26,.92);
    --mod-ink-2: #fff;
    --honey-line-2: #6B5224;
    --danger-text: #E58A8A;
    --tint-02: rgba(255,255,255,.02);
    --danger-text-3: #E9A2A2;
    --off-bg: #3A2422;
    --danger-text-2: #E59A8C;
    --mine-line: #4A4452;
    --tint-035: rgba(255,255,255,.035);
    --tint-06: rgba(255,255,255,.06);
    --green-icon: #62BE82;
    --green-text-3: #8FC9A3;
    --bday-line: #5A4466;
    --tint-04: rgba(255,255,255,.04);
    --tint-03: rgba(255,255,255,.03);
    --shadow-b: rgba(0,0,0,.4);
    --green-text-2: #7BD389;
    --shadow-c: rgba(0, 0, 0, .55);
    --gold-text: linear-gradient(100deg, #E2A33C 0%, #F8DFA0 45%, #E2A33C 55%, #C98A2E 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Układ ===== */
.shell { max-width: 640px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 800; font-size: 26px; line-height: 1; color: var(--text); text-decoration: none; letter-spacing: -0.6px; }
.logo em { font-style: normal; color: var(--accent); }
.logo__mark { width: 1.35em; height: 1.35em; flex: none; overflow: visible; }
.logo__bell { fill: var(--accent); }
.logo__halo { fill: var(--bg); stroke: var(--bg); }
.logo:hover { color: var(--text); }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.topbar__me { display: flex; border-radius: 50%; text-decoration: none; }
.main { padding-top: 8px; }
.footer { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13px; padding: 32px 0 8px; }
.footer a { color: var(--text-2); }

/* Dolne menu jak w aplikacji */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; justify-content: center; gap: 4px;
    background: var(--bg-deep); border-top: 1px solid var(--line-soft);
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar span {
    flex: 0 1 96px; min-height: 48px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .is-active { color: var(--accent); }
.tabbar__soon { opacity: .45; cursor: default; }

/* ===== Typografia ===== */
.display { font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1.2; margin: 8px 0 10px; letter-spacing: -0.4px; }
.display--md { font-size: 24px; margin: 0; }
.lead { color: var(--text-2); font-size: 17px; margin: 0 0 18px; }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.prose ol, .prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose h2 { font-weight: 700; font-size: 20px; margin: 28px 0 8px; }

/* ===== Elementy ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 16px 0; }
.card--soon { background: transparent; border-style: dashed; }
.soon-list { margin: 0; padding-left: 18px; color: var(--text-2); }
.soon-list li { margin-bottom: 6px; }
.hero { padding: 12px 0 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.row--between { justify-content: space-between; }
.row form { margin: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0;
    background: var(--accent-fill); color: var(--accent-ink);
    font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--card-2); color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    background: var(--accent-fill); color: var(--accent-ink); border-radius: 8px; padding: 3px 8px; }
.badge--muted { background: var(--card-2); color: var(--text-2); border: 1px solid var(--line-2); }
.badge--moderator { background: var(--mod-soft); color: var(--mod); border: 1px solid var(--mod-line); }
.nick--mod { color: var(--mod); }
/* Admin: złoto z delikatnym połyskiem */
.nick--admin {
    background: var(--gold-text);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--gold);
    animation: nick-shine 6s ease-in-out infinite;
    display: inline-flex; align-items: center; gap: .18em;
}
.nick__crown { width: .62em; height: .62em; fill: var(--gold); flex-shrink: 0; transform: translateY(-.05em); }
@keyframes nick-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .nick--admin { animation: none; } }
.badge--admin { background: linear-gradient(100deg, #E2A33C, #F8DFA0 50%, #E2A33C); color: #2A1E08; }

.flash { border-radius: 14px; padding: 12px 14px; margin: 8px 0 12px; font-size: 14px; border: 1px solid var(--line-2); background: var(--card); }
.flash--success { border-color: var(--ok-line); background: var(--ok-bg2); color: var(--ok-text2); }
.flash--error { border-color: var(--err-line); background: var(--err-bg); color: var(--err-text); }
.flash--info { border-color: var(--accent-soft); background: var(--info-bg); color: var(--info-text); }

/* ===== Awatary i ludzie ===== */
.avatar { border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-weight: 700; line-height: 1; color: #FFF8EE; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.av-stripes { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.13) 0 4px, transparent 4px 10px); }
.av-dots { background-image: radial-gradient(rgba(255,255,255,.2) 18%, transparent 20%); background-size: 9px 9px; }
.av-rings { background-image: repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,.12) 0 3px, transparent 3px 8px); }
.av-admin {
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,.55) 0 6%, transparent 7%),
        radial-gradient(circle at 74% 70%, rgba(255,255,255,.35) 0 3%, transparent 4%),
        linear-gradient(135deg, #F8DFA0 0%, #E2A33C 45%, #B97A22 100%);
    color: #3A2608; text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.avatar-preview { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.avatar-preview small { color: var(--muted); font-size: 13px; }
.sublabel { font-size: 13px; color: var(--text-2); margin-top: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input, .pattern input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span:not(.sr-only) { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-2); }
.swatch input:checked + span { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.swatch input:focus-visible + span, .pattern input:focus-visible + .avatar { outline: 2px solid var(--accent); outline-offset: 2px; }
.patterns { display: flex; flex-wrap: wrap; gap: 12px; }
.pattern { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; font-size: 12px; color: var(--muted); }
.pattern .avatar { box-shadow: 0 0 0 1px var(--line-2); }
.pattern input:checked + .avatar { box-shadow: 0 0 0 2px var(--accent); }
.pattern input:checked ~ .pattern__name { color: var(--text); }
.ring { display: inline-flex; padding: 3px; border-radius: 50%; border: 2px solid var(--accent); }
.ring--lg { border-width: 2px; }
.people-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 66px; text-decoration: none; color: var(--text-2); flex-shrink: 0; }
.person__nick { font-size: 12px; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Profil ===== */
.profile__head { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.profile__id { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.profile__bio { color: var(--text-body); margin: 14px 0 10px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tag { font-size: 13px; color: var(--text-2); background: var(--line-soft); border-radius: 10px; padding: 4px 10px; text-decoration: none; }
.tag:hover { color: var(--text); background: var(--line-2); }
.tabs-placeholder { display: flex; gap: 18px; margin-top: 22px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.tabs-placeholder span { padding-bottom: 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs-placeholder .is-active { color: var(--text); border-bottom: 2px solid var(--accent); }

/* ===== Formularze ===== */
.form-page { max-width: 440px; margin: 0 auto; padding-top: 8px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form--tight { gap: 12px; max-width: 420px; }
.form--tight .btn { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.field.has-error small, .error-text { color: var(--error); font-size: 13px; }
.field.has-error input, .field.has-error textarea { border-color: var(--err-field); }
input[type=text], input[type=search], input[type=email], input[type=password], textarea, select {
    width: 100%; min-height: 46px; padding: 10px 14px;
    background: var(--card); color: var(--text);
    border: 1px solid var(--line-2); border-radius: 14px;
    font: inherit; font-size: 15px;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.45; }
select { width: auto; min-height: 38px; padding: 6px 10px; border-radius: 12px; }
::placeholder { color: var(--placeholder); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check--sm { font-size: 13px; }
.hp { position: absolute; left: -9999px; }

/* ===== Listy i panel ===== */
.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.list-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-decoration: none; color: var(--text); }
a.list-item:hover { border-color: var(--line-2); color: var(--text); }
.list-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-item__body a { color: var(--text); text-decoration: none; }
.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.stat strong { font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat--link { text-decoration: none; color: var(--text); transition: border-color .15s; }
.stat--link:hover, .stat--link:focus-visible { border-color: var(--accent); }
.stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.stat--link.is-active { border-color: var(--accent); background: rgba(240,176,74,.08); }
.stat--link:last-child span { color: var(--accent); }
.dm-ok { color: var(--green-text); }
.chip-link .punish__n { margin-left: 6px; }
@media (min-width: 700px) { .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 20px; border: 1px solid var(--line-2); color: var(--text-2); }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }

/* ===== Temat tygodnia ===== */
.topic-card { background: var(--card-topic); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 20px 0; }
.topic-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.topic-card__label { font-size: 13px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text); }
.topic-card__q { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.3px; }
.topic-card__q a { color: var(--text); text-decoration: none; }
.topic-card__q a:hover { color: var(--text-strong); }
.topic-card__meta { color: var(--muted); font-size: 14px; }
.topic-card__body { color: var(--text-body); font-size: 17px; line-height: 1.55; margin: 14px 0 0; }
.topic-card__progress { border-top: 1px solid var(--line); margin: 18px 0 16px; padding-top: 14px; }
.topic-card__progress-labels { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.topic-card--empty .topic-card__q { color: var(--text-2); }
.topic-card--empty .btn { margin-top: 16px; }
.progress { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 4px; background: #4E9A6F; }
.status { font-size: 12px; font-weight: 600; border-radius: 12px; padding: 3px 10px; white-space: nowrap; }
.status--active { background: var(--green-bg); color: var(--green-text); }
.status--scheduled { background: var(--yellow-bg); color: var(--yellow-text); }
.status--closed { background: var(--card-2); color: var(--text-2); }
.btn--light { background: var(--btn-light-bg); color: var(--btn-light-ink); font-weight: 600; }
.btn--light:hover { background: var(--btn-light-hover); color: var(--btn-light-ink); }
.btn--danger { color: var(--error); }
.mood { font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 2px 10px; text-decoration: none; }
.mood:hover { color: var(--text); }

.topic-page { max-width: 720px; }
.back { display: inline-block; margin: 4px 0 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.topic-page__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topic-page__q { margin-top: 12px; }
.topic-page__body { font-size: 18px; line-height: 1.6; color: var(--text-body); margin: 16px 0; }
.rule-note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 12px; margin: 20px 0; }
.topic-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.topic-list li { display: flex; flex-direction: column; gap: 2px; }
.topic-list a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.topic-list a:hover { color: var(--accent); }

/* ===== Rozmowa ===== */
.discussion { margin-top: 28px; }
.discussion__title { font-size: 20px; font-weight: 700; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.discussion__title .muted { font-size: 14px; font-weight: 500; }
.thread { padding: 8px 0; }
.thread:first-of-type { border-top: 0; }
.post { display: flex; gap: 10px; align-items: flex-start; }
.post__avatar { flex-shrink: 0; text-decoration: none; margin-top: 2px; }
.post__main { flex: 1; min-width: 0; }
.post__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.post__nick { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--text); }
.post__time { font-size: 12px; color: var(--muted); text-decoration: none; }
.post__time:hover { color: var(--text-2); }
.post__reply { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post__reply svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post__reply a { color: var(--text-2); }
.bubble { background: var(--card-2); border-radius: 4px 18px 18px 18px; padding: 10px 14px; overflow-wrap: anywhere; }
.post--answer .bubble { font-size: 16px; }
.post--mine .bubble { background: var(--bubble-mine); }
/* Wypowiedzi (odpowiedzi na temat): sam tekst, bez tła dymka (12.11). Komentarze i wiadomości mają dymki dalej. */
.post--answer .bubble:not(.bubble--deleted) { background: none; padding: 0; border-radius: 0; }
.post--answer.post--hidden .bubble:not(.bubble--deleted) { padding: 8px 12px; border-radius: 12px; }
.post--answer:target .bubble:not(.bubble--deleted) { box-shadow: none; }
.bubble--deleted { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; font-style: italic; }
.post__body p { margin: 0 0 .6em; line-height: 1.6; }
.post__body p:last-child { margin-bottom: 0; }
.mention { color: var(--accent); text-decoration: none; font-weight: 600; }
.quote { display: block; text-decoration: none; border-left: 3px solid var(--line-2); background: var(--sunken);
    border-radius: 0 10px 10px 0; padding: 6px 10px; margin: 0 0 8px; color: var(--text-2); font-size: 14px; }
.quote:hover { border-left-color: var(--accent); color: var(--text); }
.quote__who { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.post__actions { display: flex; gap: 14px; align-items: center; margin-top: 4px; padding-left: 4px; }
.post__actions form { margin: 0; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: -3px; }
.btn--icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.btn--icon.btn--ghost { border: 1px solid var(--line-2); }
.btn--icon.is-done { color: var(--green-text); border-color: var(--green-line); }
.more summary.btn--icon { padding: 0; min-height: 40px; border-radius: 50%; }
.link-btn .ico { vertical-align: -4px; }
summary > .ico { margin-right: 6px; }
.post__actions .link-btn[aria-label] { padding: 6px 8px; border-radius: 16px; }
.post__actions .link-btn[aria-label]:hover { background: var(--card); color: var(--text); }
.link-btn { background: none; border: 0; padding: 6px 0; min-height: 32px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.link-btn--muted { color: var(--muted); }
.comments { margin: 8px 0 0 50px; display: flex; flex-direction: column; gap: 10px; }
.post--comment .bubble { font-size: 15px; padding: 8px 12px; }
.composer--comment summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0; min-height: 32px; display: inline-flex; align-items: center; }
.composer--comment summary::-webkit-details-marker { display: none; }
.composer--comment summary:hover { color: var(--text); }
.composer--comment[open] summary { display: none; }
.composer--quiet:not([open]) { display: none; }
.composer__form { display: flex; flex-direction: column; gap: 8px; }
.composer__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.composer__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-2);
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.composer__quote { font-style: italic; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1; min-width: 0; }
.composer--answer { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; scroll-margin-top: 90px; }
.composer__title { margin: 0 0 10px; font-size: 16px; }
.composer__hint { margin: 0; }
.composer__meta[hidden] { display: none; }
.composer__error { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-text); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.composer__guest { margin: 0 0 4px; font-weight: 600; }
.post { scroll-margin-top: 90px; }
.post:target .bubble { box-shadow: 0 0 0 2px var(--accent); }

/* ===== Moderacja ===== */
.more { position: relative; margin-left: auto; }
.more summary { list-style: none; cursor: pointer; min-width: 36px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px; color: var(--muted); font-size: 18px; letter-spacing: 1px; }
.more summary::-webkit-details-marker { display: none; }
.more summary.more__flag > .ico { margin: 0; }
.more summary:hover, .more[open] summary { background: var(--card); color: var(--text); }
.more__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: min(300px, 80vw); background: var(--card-2);
    border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; box-shadow: 0 12px 30px var(--shadow-a);
    display: flex; flex-direction: column; gap: 10px; }
.more--left .more__panel { right: 0; }
.report-form { display: flex; flex-direction: column; gap: 8px; }
.report-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.report-form legend { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.report-form input[type=text], .ban-form input[type=text] { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.ban-form { display: flex; flex-wrap: wrap; gap: 6px; }
.ban-form > strong, .ban-form > span, .ban-form > input[type=text] { flex: 1 0 100%; }
.ban-form__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.more__panel > * + .ban-form { border-top: 1px solid var(--line-2); padding-top: 10px; }
.more summary.btn { font-size: 15px; letter-spacing: 0; min-height: 44px; padding: 0 18px; border-radius: 22px; }
.more summary.btn--sm { font-size: 14px; min-height: 36px; padding: 0 14px; }
.more summary.btn--mod-sum { color: var(--mod); border: 1px solid var(--mod-line); }
.btn--mod-sum::-webkit-details-marker { display: none; }
.btn--mod { background: var(--mod-soft); color: var(--mod); border: 1px solid var(--mod-line); }
.btn--mod:hover { background: var(--mod-hover-bg); color: var(--mod-hover-text); }
.status--hidden { background: var(--mod-soft); color: var(--mod); }
.post--hidden .bubble:not(.bubble--deleted) { opacity: .7; border: 1px dashed var(--mod-line); }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--mod); color: var(--mod-ink); font-size: 12px; font-weight: 700; margin-left: 4px; }
.card--calm { border-color: var(--calm-line); background: var(--calm-bg); }
.reports { display: flex; flex-direction: column; gap: 14px; }
.report { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.report__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.report__reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reason { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 3px 9px; background: var(--card-2); color: var(--text-2); }
.reason--zlosliwosc, .reason--wulgarnosc { background: var(--mod-soft); color: var(--mod); }
.reason--reklama { background: var(--yellow-bg); color: var(--yellow-text); }
.report__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.report__who a { color: var(--text); text-decoration: none; font-weight: 600; }
.report__who .muted a { font-weight: 500; text-decoration: underline; color: var(--text-2); }
.report__body { border-radius: 12px; }
.report__notes { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; font-style: italic; }
.report__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.report__posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report__post { display: grid; gap: 6px; padding: 10px 0 0; border-top: 1px dashed var(--line); }
.report__post:first-child { border-top: 0; padding-top: 0; }
.report__meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.report__single { display: flex; justify-content: flex-end; }
.report__hint { margin: 0; }
.notice { border-radius: 14px; padding: 12px 14px; margin: 8px 0 12px; font-size: 14px; display: flex; flex-direction: column; gap: 2px;
    background: var(--card); border: 1px solid var(--line-2); }
.notice--warning, .notice--ban { background: var(--mod-soft); border-color: var(--mod-line); color: var(--err-text); }


/* Zakładki profilu i ostrzeżenia */
.tabs { display: flex; gap: 18px; margin-top: 22px; border-bottom: 1px solid var(--line-soft); }
.tabs a { padding-bottom: 10px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.penalties { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.penalty { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; display: flex; flex-direction: column; gap: 3px; }
.penalty--warning { border-color: var(--mod-line); }
.penalty--ban { background: var(--mod-soft); border-color: var(--mod-line); }
.penalty--expired { opacity: .55; border-color: var(--line); }
.penalty__top { display: flex; justify-content: space-between; gap: 10px; }
.penalty--reminder { border-color: var(--info-line); }
.notice--reminder { background: var(--info-bg); border-color: var(--info-line); color: var(--info-text); }
.penalty-mini { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.penalty-mini__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.remind-form { display: flex; flex-direction: column; gap: 6px; }
.remind-form input[type=text] { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.flash, .notice { position: relative; padding-right: 44px; }
.dismiss { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: transparent;
    color: inherit; opacity: .7; font-size: 20px; line-height: 1; cursor: pointer; }
.dismiss:hover { opacity: 1; background: var(--tint-08); }
.notice__link { color: inherit; font-weight: 600; margin-top: 4px; align-self: flex-start; }
.penalty__post { margin-top: 6px; background: var(--sunken); border-left: 3px solid var(--line-2); border-radius: 0 10px 10px 0; padding: 6px 10px; font-size: 14px; color: var(--text-2); }
.report__history { font-size: 13px; color: var(--muted); }
.report__history--warn { color: var(--mod); font-weight: 600; }

/* Wypowiedzi na profilu */
.my-posts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.my-posts li { border-bottom: 1px solid var(--line-soft-2); padding-bottom: 14px; }
.my-posts__topic { font-weight: 700; text-decoration: none; color: var(--text); }
.my-posts__topic:hover { color: var(--accent); }
.my-posts__body { margin: 4px 0; color: var(--text-2); font-size: 15px; }

/* Przegadane */
.archive { max-width: 760px; }
.archive__search { display: flex; gap: 8px; margin: 4px 0 14px; }
.archive__search input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--links { margin-bottom: 8px; }
.chip-link { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--line-2);
    border-radius: 18px; padding: 7px 14px; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.chip-link:hover { color: var(--text); }
.chip-link.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.season { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.archive-item strong { line-height: 1.35; }

/* Panel */
.subnav { display: flex; gap: 6px; margin: 4px 0 20px; border-bottom: 1px solid var(--line-soft); }
.subnav a { padding: 8px 4px 10px; margin-right: 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.topic-row { align-items: center; flex-wrap: wrap; }
.topic-row__actions { display: flex; gap: 6px; }
.topic-row__actions form { margin: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 19px; background: var(--card);
    border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-page--left { margin: 0; }
input[type=date] { width: 100%; min-height: 46px; padding: 10px 14px; background: var(--card); color: var(--text);
    border: 1px solid var(--line-2); border-radius: 14px; font: inherit; color-scheme: var(--scheme); }
input:disabled { opacity: .6; }

/* ===== Cofnij decyzję ===== */
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px;
    padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }

.composer__wait { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-left: auto; margin-right: 8px; font-variant-numeric: tabular-nums; }
.wait-ring { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent-fill) calc(var(--p) * 360deg), var(--line-2) 0); }

/* ===== Etykieta, tagi, wiadomości ===== */
.card--welcome { background: rgba(240,176,74,.08); border: 1px solid var(--honey-line); border-radius: 16px; padding: 16px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card--welcome p { margin: 0; color: var(--text-2); }
.etiquette { margin-top: 4px; }
.etiquette__title { font-size: 20px; margin: 0 0 4px; }
.etiquette__form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.etiquette__item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; align-items: flex-start; }
.etiquette__item:has(input:checked) { border-color: var(--green-line); }
.etiquette__list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.tag-pick { border: 0; padding: 0; margin: 0; }
.tag-pick .chips { margin: 6px 0; }
.tag-pick .chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.tag-pick__count { color: var(--accent); }
.dm-form, .tag-form { display: flex; flex-direction: column; gap: 6px; }
.tag-form--row { flex-direction: row; flex-wrap: wrap; }
.more__panel > * + .dm-form, .more__panel > * + .tag-form { border-top: 1px solid var(--line-2); padding-top: 10px; }
.dm-form select, .tag-form select, .tag-form input[type=text] { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }

/* ===== Panel: lista i karta osoby ===== */
.urow { align-items: flex-start; }
.urow--ban { border-color: var(--mod-line); }
.urow__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.urow__state { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.urow__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.urow__actions form { margin: 0; }
.pill { font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 9px; background: var(--card-2); color: var(--muted); }
.pill--warn { background: var(--mod-soft); color: var(--mod); }
.pill--rem { background: rgba(240,176,74,.12); color: var(--accent); }
.pill--ok { background: var(--green-bg); color: var(--green-text); }
@media (max-width: 560px) {
    .urow { flex-wrap: wrap; }
    .urow__actions { width: 100%; justify-content: flex-end; }
}
.ucard__head { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.ucard__id { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ucard__nick { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ucard__jump { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ucard__jump a { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--line-2);
    border-radius: 16px; padding: 5px 12px; text-decoration: none; }
.ucard__sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 12px 0; scroll-margin-top: 90px; }
.ucard__sec h3 { margin: 0 0 10px; font-size: 18px; }
.ucard__sub { margin: 16px 0 6px; font-size: 15px; }
.ucard__counts { margin-bottom: 8px; }
.ucard__tools { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 700px) { .ucard__tools { grid-template-columns: 1fr 1fr; } }
.tool { background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tool input[type=text], .tool input[type=email], .tool select { min-height: 40px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.tool__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tool .ban-form { border: 0; padding: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }
.copy { display: flex; gap: 6px; }
.copy input { flex: 1; min-width: 0; font-size: 13px; }

/* ===== Panel: kary ===== */
.count--muted { background: var(--line-2); color: var(--text); }
.status--near { background: rgba(240,176,74,.14); color: var(--accent); }
.punish { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.punish > * { min-width: 0; }
.pc__n { white-space: nowrap; }
.subnav { overflow-x: auto; scrollbar-width: none; }
.subnav a { white-space: nowrap; flex: 0 0 auto; }
.punish__side { display: flex; flex-direction: column; gap: 10px; }
.punish__side .archive__search { margin: 0; }
.punish__filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.punish__filter { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 12px; border-radius: 18px;
    background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.punish__filter:hover { color: var(--text); }
.punish__filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.punish__n { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.punish__filter--ban:not(.is-active) .punish__n { color: var(--mod); opacity: 1; }
.punish__rules { margin: 4px 0 0; line-height: 1.5; }
.punish__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.prow { min-width: 0; }
.prow { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.prow--ban { border-color: var(--mod-line); }
.prow--near { border-color: var(--info-line); }
.prow__sum { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.prow__sum::-webkit-details-marker { display: none; }
.prow__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; align-items: flex-start; }
.prow__id > * { max-width: 100%; }
.prow__id .clamp { display: block; width: 100%; }
.prow__counts { display: flex; gap: 6px; flex: 0 0 auto; }
.pc { display: flex; flex-direction: column; align-items: center; min-width: 42px; padding: 4px 6px; border-radius: 10px;
    background: var(--sunken-2); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pc b { font-size: 16px; color: var(--text-2); }
.pc i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.pc--warn b { color: var(--mod); }
.pc--rem b { color: var(--accent); }
.prow__body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.prow__next { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.prow__hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph { border-left: 3px solid var(--line-2); padding: 2px 0 2px 10px; display: flex; flex-direction: column; gap: 3px; }
.ph--warning { border-left-color: var(--mod); }
.ph--reminder { border-left-color: var(--accent); }
.ph--ban { border-left-color: var(--mod); background: var(--mod-soft); border-radius: 0 10px 10px 0; padding: 6px 10px; }
.ph__top { display: flex; justify-content: space-between; gap: 10px; }
.ph__undo { margin: 0; }
.prow__actions { gap: 8px; }
.prow .status { white-space: normal; }
@media (max-width: 480px) { .prow__sum > .avatar { display: none; } .pc { min-width: 36px; } }

/* ===== Komputer: menu na górze, szersza strona, dwie kolumny ===== */
@media (max-width: 480px) {
    .comments { margin-left: 18px; }
}

@media (min-width: 900px) {
    .shell { max-width: 1120px; padding: 0 32px 40px; }
    .topbar { position: sticky; top: 0; z-index: 10; background: var(--topbar-bg); backdrop-filter: blur(8px);
        padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft-2); gap: 32px; }
    .tabbar { position: static; padding: 0; background: none; border: 0; justify-content: flex-start; gap: 4px; flex: 1; }
    .tabbar a, .tabbar span { flex: 0 0 auto; flex-direction: row; gap: 8px; min-height: 40px; padding: 0 14px;
        border-radius: 20px; font-size: 14px; }
    .tabbar a:hover { background: var(--card); color: var(--text); }
    .tabbar .is-active { background: var(--card); }
    .tabbar svg { width: 18px; height: 18px; }
    .display { font-size: 34px; }
    .main { padding-top: 24px; }
    .home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .home-grid .hero { padding-top: 8px; }
    .topic-card { padding: 26px; }
    .topic-card__q { font-size: 28px; }
    .home-grid .hero .display { font-size: 44px; line-height: 1.12; }
    .home-side .card:first-child { margin-top: 0; }
    .profile, .prose, section:not(.form-page):not(.hero):not(.card):not(.admin-wide) { max-width: 760px; }
    .punish { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
    .punish__side { position: sticky; top: 90px; }
    .punish__filters { flex-direction: column; overflow: visible; }
    .punish__filter { justify-content: space-between; border-radius: 12px; }
    .form-page { max-width: 480px; }
}

/* ===== Zasady ===== */
.rules__list { display: grid; gap: 12px; padding-left: 22px; }
.rules__list li { line-height: 1.6; }
.rules__list li::marker { color: var(--accent); font-weight: 700; }
.rules__end { margin-top: 24px; font-style: italic; color: var(--text-2); }
.rules { position: relative; }
.rules__tools { position: absolute; right: 0; top: 4px; }
.rules h1.display { padding-right: 52px; }
.rules p.lead + * { margin-top: 18px; }
.rules__date { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.rules p:last-of-type em:only-child { color: var(--text-2); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; }
.cheat summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.cheat ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }
.cheat code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.field--date input { max-width: 220px; }

/* ===== Dzwoneczek i gwiazdki ===== */
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); }
.bell:hover { background: var(--card); color: var(--text); }
.bell--on { color: var(--accent); }
.bell--on .ico { animation: bell-ring 1.2s ease 1; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .bell--on .ico { animation: none; } }
.bell__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mod); color: var(--mod-ink-2);
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.star-form { margin: 0; display: inline-flex; }
.star { color: var(--muted); padding: 6px 8px; border-radius: 16px; }
.star:hover { color: var(--accent); background: var(--card); }
.star.is-on { color: var(--accent); }
.star.is-on .ico, .stars-mine .ico { fill: currentColor; }
.star.pop .ico { animation: star-pop .35s ease; }
@keyframes star-pop { 50% { transform: scale(1.35); } }
.stars-mine { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 700; padding: 6px 8px; cursor: help; }
.notifs__head { align-items: center; }
.notif-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.notif { display: flex; align-items: flex-start; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 4px; }
.notif--new { border-color: var(--honey-line); background: rgba(240,176,74,.06); }
.notif__link { display: flex; gap: 12px; flex: 1; min-width: 0; padding: 8px; text-decoration: none; color: var(--text); }
.notif__ico { flex: 0 0 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card-2); color: var(--accent); }
.notif--star .notif__ico .ico { fill: currentColor; }
.notif__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif__body strong { font-weight: 600; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif__del { margin: 6px 0 0; }
.notifs__foot { margin-top: 18px; }
.star-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.star-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ucard__sec h3 .ico { color: var(--accent); vertical-align: -3px; }
.report__body--deleted { opacity: .75; border: 1px dashed var(--line-2); }

/* ===== Profil: o mnie w skrócie ===== */
.about { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.about__row { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.about__row select, .about__row input[type=text] { max-width: 320px; }
.profile__facts { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-2); font-size: 15px; }
.profile__facts a { color: var(--accent); }

/* ===== Obwódka ikonki według płci ===== */
:root { --g-k: #D493B8; --g-m: #6FA8D6; --g-x: #6E6876; }
.avatar.g-k { box-shadow: 0 0 0 2px var(--g-k); }
.avatar.g-m { box-shadow: 0 0 0 2px var(--g-m); }
.avatar.g-x { box-shadow: 0 0 0 2px var(--g-x); }
.ring .avatar { box-shadow: none; }
.ring--k { border-color: var(--g-k); }
.ring--m { border-color: var(--g-m); }
.ring--x { border-color: var(--g-x); }
.gender-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.gl { width: 12px; height: 12px; border-radius: 50%; border: 2px solid; display: inline-block; }
.gl--k { border-color: var(--g-k); } .gl--m { border-color: var(--g-m); } .gl--x { border-color: var(--g-x); }

/* ===== Ikonki w awatarach ===== */
.avatar .av-ico { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.av-admin .av-ico { filter: none; }
.icon-group { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.icon-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick { position: relative; cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-pick__face { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); transition: border-color .15s, color .15s; }
.icon-pick:hover .icon-pick__face { color: var(--text); border-color: var(--muted); }
.icon-pick input:checked + .icon-pick__face { color: var(--accent-ink); background: var(--accent-fill); border-color: var(--accent); }
.icon-pick input:focus-visible + .icon-pick__face { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Obecność ===== */
.avatar { position: relative; }
.av-dot { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 9px; min-height: 9px; max-width: 14px; max-height: 14px;
    border-radius: 50%; background: #5FC48A; border: 2px solid var(--bg); box-sizing: border-box; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5FC48A; margin-right: 4px; vertical-align: 1px; animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.presence { color: var(--muted); }
.presence--on { color: var(--green-text); }
.newcomers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.newcomer { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.newcomer__text { display: flex; flex-direction: column; align-items: flex-start; }

/* ===== Obserwowanie ===== */
.follow .ico { margin-right: 2px; }
.follow.is-on { color: var(--green-text); border: 1px solid var(--green-line); }
.people-strip--wrap { flex-wrap: wrap; overflow: visible; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.follow-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.follow-list form { margin: 0; }

/* ===== Profil: Ludzie i gwiazdki przy wypowiedziach ===== */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; flex: 0 0 auto; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feed__body a { color: var(--text); text-decoration: none; }
.feed__text { color: var(--text-2) !important; }
.feed__text:hover { color: var(--text) !important; }
.stars-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; color: var(--text-2); }
.stars-summary .ico { color: var(--accent); fill: var(--accent); }
.my-stars { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); }
.my-stars .ico { fill: currentColor; }
.my-stars--more { display: block; margin: 6px 0 0; }
.my-stars--more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.my-stars--more summary::-webkit-details-marker { display: none; }
.my-stars--more summary::after { content: '▾'; font-size: 11px; margin-left: 2px; }
.my-stars--more[open] summary::after { content: '▴'; }
.my-stars__all { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.my-stars__all a { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 2px 10px; text-decoration: none; }
.my-stars__all a:hover { color: var(--text); }

/* ===== Obserwowanie: siatka 3 kolumn ===== */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pchip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 6px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.pchip__link { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; text-decoration: none; color: var(--text); }
.pchip__nick { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip form { margin: 0; flex: 0 0 auto; }
.unfollow { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--mod); display: inline-flex; border-radius: 50%; opacity: .75; }
.unfollow:hover, .unfollow:focus-visible { opacity: 1; background: var(--mod-soft); }
.unfollow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 480px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posts-box .stars-summary { margin-top: 0; }
.posts-box .my-posts { margin-top: 0; }
.posts-box .my-posts li { border-bottom-color: var(--line); }
.posts-box .my-posts li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ===== Ustawienia powiadomień: dwie kolumny ===== */
.ntable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ntable thead th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 6px 8px; text-align: center; white-space: nowrap; }
.ntable thead th .ico { display: block; margin: 0 auto 3px; color: var(--accent); }
.ntable tbody th { text-align: left; font-weight: 500; padding: 9px 8px 9px 0; color: var(--text); }
.ntable tbody tr { border-top: 1px solid var(--line); }
.ntable td { text-align: center; width: 92px; padding: 6px; }
.ncheck { display: inline-flex; cursor: pointer; padding: 6px; }
.ncheck input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 480px) { .ntable td { width: 64px; } .ntable thead th span { font-size: 11px; } }

/* ikonki w poziomych paskach nie mogą być przycięte (obwódka i kropka wystają poza kółko) */
.people-strip { padding: 4px 3px 4px; }

.home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.home-stats div { display: flex; flex-direction: column; }
.home-stats strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.home-stats span { font-size: 12px; color: var(--muted); }

/* ===== Odpowiedź tygodnia ===== */
.featured-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #2A1D08;
    background: linear-gradient(135deg, #F8DFA0, #E2A33C); border-radius: 10px; padding: 2px 9px; }
.featured-badge .ico { fill: currentColor; stroke: none; }
.post--featured > .post__main > .bubble { box-shadow: 0 0 0 1.5px #E2A33C; }
.btn--gold { background: linear-gradient(135deg, #F8DFA0, #E2A33C); color: #2A1D08; border: 0; }
.btn--gold .ico { fill: currentColor; stroke: none; }
.featured-box { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
    background: rgba(240,176,74,.07); border: 1px solid var(--honey-line-2); }
.featured-box:hover { border-color: var(--accent); }
.featured-box__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.featured-box__label .ico { fill: currentColor; stroke: none; }
.featured-box__who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.featured-box__text { font-size: 16px; line-height: 1.55; color: var(--text-2); font-style: italic; }
.featured-box--home { margin-top: 16px; }
.candidates { margin: 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.candidates ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.candidates a { color: var(--text-2); }
.archive-featured { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-featured .ico { fill: currentColor; stroke: none; flex: 0 0 auto; }
.setting-card { margin: 8px 0 18px; padding: 12px 14px; }

/* ===== Stronicowanie ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.pager__num, .pager__btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 19px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text-2); background: var(--card); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.pager__num:hover, .pager__btn:hover { color: var(--text); border-color: var(--muted); }
.pager__num.is-on { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent); }
.pager__btn.is-off { opacity: .35; }
.pager__gap { color: var(--muted); padding: 0 2px; }

/* Powiązane konta */
.pill--danger { background: rgba(224,96,96,.14); color: var(--danger-text); }
.card--alert { border: 1px solid rgba(224,96,96,.45); margin-bottom: 18px; }
.linked { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.linked__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.linked__who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.linked__line { line-height: 1.5; }
.urow__why { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); text-decoration: none; font-size: 13px; color: var(--muted); }
.urow__why:hover { outline: 1px solid var(--line); }
.urow__why strong { color: var(--text); font-weight: 600; }
.why { padding-left: 14px; position: relative; }
.why::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.why--dev::before { background: var(--danger-text); }

/* Wiadomości prywatne */
.msg-list { display: grid; gap: 8px; }
.msg-row { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--text); min-width: 0; position: relative; }
.msg-row:hover { border-color: var(--line-2); }
.msg-row--new { border-color: rgba(240,176,74,.45); }
.msg-row--invite { border-color: rgba(240,176,74,.45); }
.msg-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.msg-row__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.msg-row__text { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; margin: 2px 0 6px; }
a.msg-row .msg-row__text { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-row--new .msg-row__text { color: var(--text); }
.dot-new { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); flex-shrink: 0; align-self: center; }
.mod-ava { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--mod-soft); color: var(--mod); border: 2px solid var(--mod); }
.mod-ava--lg { width: 48px; height: 48px; }
.conv-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.conv-head > div { min-width: 0; flex: 1; }
.conv-head__title { font-size: 20px; margin: 0; }
.conv-head__title a { color: var(--text); text-decoration: none; }
.conv-msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg__bubble { background: var(--card-2); border-radius: 4px 18px 18px 18px; padding: 10px 14px; overflow-wrap: anywhere; line-height: 1.5; }
.msg--mine .msg__bubble { background: rgba(240,176,74,.14); border-radius: 18px 4px 18px 18px; }
.msg--mod .msg__bubble { border: 1px solid var(--mod); }
.msg__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.msg__report { margin-left: 0; }
.msg__report summary { min-width: 26px; min-height: 26px; opacity: .6; }
.msg__report .more__panel { left: 0; right: auto; }
.conv-form { max-width: none; }
.conv-form textarea { width: 100%; }
.conv-note { background: var(--card); border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; }
.conv-invite { border-color: rgba(240,176,74,.45); }
.tpl-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tpl-pick .chip-link { font-size: 13px; }
.mail-menu { display: flex; flex-direction: column; gap: 4px; }
.mail-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.mail-menu a:hover { background: var(--card); }
.ucard__mail { margin-left: auto; }
.mrep__body { margin-top: 10px; }
.link-btn--danger { color: var(--danger-text); }
.urow__actions .more { margin-left: 0; }
.mod-ava--sm { width: 36px; height: 36px; border-width: 1.5px; }
.linked__row { row-gap: 6px; }
.linked__ok { font-size: 13px; color: var(--green-text); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.linked__undo { margin: 0; }
.linked__btn { margin-left: auto; }
.why--ok::before { background: var(--green-text); }
.subtabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.subtabs a { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.subtabs a.is-active { background: var(--text); color: var(--bg); }
.subtabs a.is-active .punish__n { color: inherit; opacity: .7; }
/* Panel filtrów nad listą użytkowników */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 14px 0 18px; }
.filters .archive__search { margin: 0 0 12px; }
.filters .chips--links { margin: 0; }
.filters .chip-link { background: var(--bg); }
.filters .chip-link.is-active { background: var(--text); }
.filters .subtabs { margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; width: auto; }
.filters .subtabs a { background: var(--bg); border: 1px solid var(--line-2); }
.filters .subtabs a.is-active { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent); }
.list-note { margin: 0 0 18px; }
.conv-form__actions { align-items: center; }
.tpl-save { margin-left: auto; }
.tpl-save .more__panel { width: min(340px, 86vw); }
.tpl-save select { width: 100%; }

/* Teksty (admin) */
.texts__group { display: grid; gap: 14px; }
.texts__etiq { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.text-item { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.text-item:target textarea { outline: 2px solid var(--accent); }
.text-item__label { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.text-item textarea { width: 100%; }
.text-item.is-changed textarea { border-color: rgba(240,176,74,.45); }
.text-item__actions { align-items: center; }
.t-pencil { display: inline-flex; vertical-align: middle; margin-left: 6px; padding: 3px; border-radius: 6px; color: var(--muted); opacity: .55; text-decoration: none; }
.t-pencil:hover { opacity: 1; color: var(--accent); background: var(--card-2); }
h1 .t-pencil .ico, .hero__title .t-pencil .ico { width: 18px; height: 18px; }
.hero__eyebrow .t-pencil .ico { width: 13px; height: 13px; }
.as-reminder { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.as-reminder input[name=reminder_why] { display: none; }
.as-reminder:has(input[name=as_reminder]:checked) { border-color: var(--mod); background: var(--mod-soft); }
.as-reminder:has(input[name=as_reminder]:checked) input[name=reminder_why] { display: block; }
.text-item textarea { min-height: 0; }
.as-reminder input[type=text], .tpl-save input[type=text], .msg__report input[type=text], .linked__btn input[type=text] { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.etiq-admin { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.etiq-admin li.is-off .etiq-admin__head { opacity: .5; text-decoration: line-through; }
.etiq-admin__acts { gap: 12px; margin: 0; }
.etiq-admin__acts .link-btn { font-size: 12px; min-height: 26px; padding: 2px 0; }
.etiq-add textarea { min-height: 0; }
.etiquette__item.is-known { opacity: .6; }
.etiquette__item.is-new { border-color: rgba(240,176,74,.55); }
/* Teksty: rozwijane miejsca */
.tgroup { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; }
.tgroup[open] { border-color: var(--line-2); }
.tgroup__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.tgroup__sum::-webkit-details-marker { display: none; }
.tgroup__name { font-weight: 700; font-size: 16px; }
.tgroup__chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.tgroup[open] .tgroup__chev { transform: rotate(180deg); }
.tgroup__sum:hover .tgroup__name { color: var(--accent); }
.tgroup__body { display: grid; gap: 14px; padding: 0 16px 16px; }
.etiquette__go { margin-top: 18px; }
.guess-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.guess-actions form { margin: 0; }
.guess-actions .guess-btn, .guess-actions .more summary.guess-btn { min-height: 30px; padding: 0 12px; font-size: 13px; border-radius: 15px; }
summary.guess-btn { list-style: none; cursor: pointer; }
summary.guess-btn::-webkit-details-marker { display: none; }
.smalltalk-card__label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.etiquette__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Zwijanie komentarzy */
.comments__bar { display: flex; justify-content: flex-start; margin-bottom: -4px; }
.comments__toggle { font-size: 12px; min-height: 26px; padding: 2px 0; }
.comments__more { align-self: flex-start; font-size: 13px; min-height: 30px; padding: 2px 0; color: var(--accent); }
.comments.is-trimmed > .post--comment.is-early { display: none; }
.comments.is-collapsed > .post--comment { display: none; }
.comments-all { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.comments-all .link-btn { font-size: 12px; }
.mod-row { flex-wrap: wrap; }
.mod-row__perms { flex: 1 0 100%; padding-left: 52px; }
.mod-perms .more__panel { width: min(340px, 88vw); max-height: 70vh; overflow: auto; }
/* „Skomentuj” w pasku nad komentarzami; samo pole pojawia się na dole po kliknięciu */
.comments__bar { gap: 16px; align-items: center; }
.comments__write { font-size: 13px; min-height: 28px; padding: 2px 0; display: inline-flex; align-items: center; gap: 6px; }
.comments__write .ico { fill: none; stroke: currentColor; stroke-width: 2; }
/* „Skomentuj” jest i na górze (pasek), i na dole pod ostatnim komentarzem */
/* koło zębate uprawnień: zostaje złote także po najechaniu i po otwarciu */
.mod-perms summary.btn--icon, .mod-perms summary.btn--icon:hover, .mod-perms[open] summary.btn--icon { background: var(--accent-fill); color: var(--accent-ink); }
.mod-perms summary.btn--icon:hover { background: var(--accent-hover); }
/* Góra rozmowy, edycja */
.discussion__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.discussion__tools .comments-all { margin: 0; }
.edit-form { display: grid; gap: 8px; margin-top: 6px; }
.edit-form textarea { width: 100%; min-height: 0; }
.edit-form .composer__bar { gap: 12px; }
.composer__bar [data-cancel], .edit-form [data-edit-cancel] { margin-left: auto; }
.post__edited { font-style: italic; }
.bubble[hidden] { display: none; }
.edit-form[hidden] { display: none; }
/* Historia poprawek (moderacja) */
.edit-hist { position: relative; display: inline-block; }
.edit-hist > summary { list-style: none; cursor: pointer; font-size: 12px; font-style: italic; color: var(--mod); }
.edit-hist > summary::-webkit-details-marker { display: none; }
.edit-hist[open] { display: block; flex-basis: 100%; }
.edit-hist__list { list-style: none; margin: 8px 0 4px; padding: 10px 12px; border: 1px dashed var(--mod); border-radius: 12px; background: var(--mod-soft); display: grid; gap: 8px; }
.edit-hist__body { font-size: 14px; overflow-wrap: anywhere; }
.post__head { flex-wrap: wrap; }
/* Lista użytkowników: aktywność i więcej ikonek */
.urow__seen { display: inline-flex; align-items: center; gap: 6px; color: var(--green-text); }
.seen-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CC37E; box-shadow: 0 0 0 3px rgba(76,195,126,.18); }
.urow__actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.urow__actions .btn--icon { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
.urow__actions .btn--icon .ico { width: 18px; height: 18px; }
.ucard__sec .tool:target, #zmiana-nicku:target, #haslo:target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
/* Tabela użytkowników */
.utable { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.utable__head, .utable__row { display: grid; grid-template-columns: minmax(200px, 2.4fr) 1.1fr 1fr .8fr 1.5fr auto; gap: 12px; align-items: center; padding: 10px 14px; }
.utable__head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 16px 16px 0 0; }
.utable__head a { color: var(--muted); text-decoration: none; }
.utable__head a:hover, .utable__head a.is-sorted { color: var(--accent); }
.utable__row { border-bottom: 1px solid var(--line); font-size: 14px; }
.utable__row:last-child { border-bottom: 0; }
.utable__row:hover { background: var(--tint-02); }
.utable__row.is-banned { background: rgba(224,96,96,.06); }
.utable__user { display: flex; gap: 10px; align-items: center; min-width: 0; }
.utable__who { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.utable__mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.utable__state { display: flex; flex-wrap: wrap; gap: 4px; }
.utable__state .pill { font-size: 11px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 4px; }
.utable__act { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.utable__act .btn--icon { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
.utable__act .btn--icon .ico { width: 17px; height: 17px; }
.utable__act .more summary.btn--icon { min-height: 34px; }
.utable__act-h { text-align: right; }
.uact-more .more__panel { width: min(280px, 86vw); }
.uact-sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.uact-row { display: flex; flex-wrap: wrap; gap: 6px; }
.uact-row .chip-link { font-size: 12px; padding: 5px 10px; cursor: pointer; }
.utable .urow__why { margin-top: 4px; }
@media (max-width: 820px) {
    .utable__head { display: none; }
    .utable__row { grid-template-columns: 1fr 1fr; row-gap: 8px; padding: 12px; }
    .utable__user { grid-column: 1 / -1; }
    .utable__row > [data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
    .utable__state { grid-column: 1 / -1; }
    .utable__act { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
.admin-wide { max-width: 1120px; }
.utable__head, .utable__row { grid-template-columns: minmax(200px, 2.4fr) 1.1fr 1fr .8fr 1.5fr 214px; }
.utable__act .more { margin-left: 0; }
@media (max-width: 820px) {
    .utable__head, .utable__row { grid-template-columns: 1fr 1fr; }
    .utable__state[data-label]::before { flex-basis: 100%; }
}
/* Bezpieczeństwo */
.sec-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sec-checks li { display: flex; gap: 10px; align-items: flex-start; }
.sec-checks__mark { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.sec-checks .is-ok .sec-checks__mark { background: rgba(76,195,126,.15); color: var(--green-text); }
.sec-checks .is-todo .sec-checks__mark { background: rgba(240,176,74,.18); color: var(--accent); }
.err-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.err-log li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.err-log code { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--danger-text-3); }
.maint-bar a { color: inherit; font-weight: 700; }
.twofa { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.twofa__steps { padding-left: 18px; display: grid; gap: 10px; margin: 0 0 10px; }
.twofa__row { gap: 10px; flex-wrap: wrap; align-items: center; }
.code-input { font-size: 22px; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
.code-input--sm { font-size: 16px; width: 150px; min-height: 40px; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.recovery code { padding: 6px 8px; background: var(--bg); border-radius: 8px; text-align: center; font-size: 14px; }
.qr { width: 200px; max-width: 70vw; margin: 10px 0; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
/* Kopie zapasowe */
.backup-actions { gap: 10px; flex-wrap: wrap; align-items: center; }
.backups { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.backups li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--bg); flex-wrap: wrap; }
.backup-help summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.backup-help ol { padding-left: 18px; display: grid; gap: 6px; }
/* RODO */
.delete-acc { margin-top: 16px; }
.delete-acc > summary { cursor: pointer; font-size: 14px; color: var(--danger-text); font-weight: 600; }
.delete-acc__body { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(224,96,96,.35); border-radius: 12px; background: rgba(224,96,96,.05); }
.delete-acc__body ul { padding-left: 18px; display: grid; gap: 4px; }
.btn--delete { background: #C65454; color: #fff; }
.btn--delete:hover { background: #D86A6A; color: #fff; }
.danger-link { color: var(--danger-text) !important; }
.post__nick--gone { color: var(--muted); font-style: italic; }
.post__avatar--gone { opacity: .5; filter: grayscale(1); }
/* Baner cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 40px var(--shadow-a); display: grid; gap: 10px; }
.consent[hidden] { display: none; }
.consent__title { font-size: 16px; }
.consent__text { margin: 0; font-size: 14px; color: var(--text-2); }
.consent__more { display: grid; gap: 8px; }
.consent__more[hidden] { display: none; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .consent { bottom: 84px; } }
.footer__cookies { font-size: inherit; color: inherit; min-height: 0; padding: 0; text-decoration: underline; }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; width: 100%; }
.key-form { gap: 8px; flex-wrap: wrap; }
.key-form input { flex: 1 1 160px; min-width: 0; }
[hidden] { display: none !important; }
/* SEO */
.serp { display: grid; gap: 2px; padding: 12px 14px; margin: 0 0 14px; background: #fff; border-radius: 12px; font-family: Arial, sans-serif; max-width: 600px; }
.serp__url { font-size: 12px; color: #202124; }
.serp__title { font-size: 19px; color: #1a0dab; line-height: 1.3; }
.serp__desc { font-size: 13px; color: #4d5156; line-height: 1.5; }
.seo-count { display: block; text-align: right; font-size: 12px; color: var(--muted); }
.seo-count.is-over { color: var(--accent); }
label .seo-count--label { display: inline; float: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.slug-field { display: flex; align-items: center; gap: 4px; }
.slug-field input { flex: 1; min-width: 0; }
.slug-field .muted { white-space: nowrap; font-size: 14px; }
.seo-box { margin: 6px 0 14px; }
.seo-box > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); margin-bottom: 8px; }
/* Panel: przy wielu zakładkach na komputerze zawijamy je w dwa rzędy zamiast chować */
@media (min-width: 821px) { .subnav { flex-wrap: wrap; overflow: visible; row-gap: 0; } }

/* SEO: lista podstron */
.seo-group { margin: 14px 0 0; }
.seo-group > summary { cursor: pointer; margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.seo-group > summary .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.seo-tools { display: grid; gap: 10px; margin: 0 0 6px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.seo-tools input[type=search] { width: 100%; }
.seo-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-filters .chip-link { cursor: pointer; }
.seo-filters .chip-link span { opacity: .65; margin-left: 4px; font-weight: 500; }
.seo-more { margin-top: 8px; }
.seo-row__url { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seo-row__url code { font-size: 12px; opacity: .7; overflow-wrap: anywhere; }
.seo-row__actions { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.seo-row__actions form { margin: 0; }
.pill--off { background: var(--off-bg); color: var(--danger-text-2); }
.seo-list { display: grid; gap: 6px; }
.seo-row { border: 1px solid var(--tint-08); border-radius: 12px; padding: 0 12px; background: var(--tint-02); }
.seo-row[open] { padding-bottom: 12px; }
.seo-row > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; cursor: pointer; list-style: none; }
.seo-row > summary::-webkit-details-marker { display: none; }
.seo-row__main { display: grid; gap: 2px; min-width: 0; }
.seo-row__main strong { overflow-wrap: anywhere; }
.seo-row__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.seo-row--off { opacity: .6; }

/* Panel na komputerze: menu sekcji z lewej strony (na telefonie zostaje pasek przesuwany palcem) */
@media (min-width: 1100px) {
    :has(> .admin-head + .subnav) { max-width: 1120px !important; display: grid; grid-template-columns: 196px minmax(0, 1fr); column-gap: 36px; align-items: start; }
    :has(> .admin-head + .subnav) > * { grid-column: 2; min-width: 0; }
    :has(> .admin-head + .subnav) > .admin-head { grid-column: 1 / -1; }
    :has(> .admin-head + .subnav) > .subnav {
        grid-column: 1; grid-row: 2 / span 40; position: sticky; top: 20px;
        flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; border-bottom: 0; overflow: visible;
    }
    :has(> .admin-head + .subnav) > .subnav a {
        margin: 0; padding: 9px 12px; border-bottom: 0; border-left: 2px solid transparent; border-radius: 0 10px 10px 0;
        display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px;
    }
    :has(> .admin-head + .subnav) > .subnav a:hover { color: var(--text); background: var(--card); }
    :has(> .admin-head + .subnav) > .subnav a.is-active { color: var(--text); background: var(--card); border-left-color: var(--accent); }
}

/* Szybkie menu pod awatarem */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu[open] > summary { box-shadow: 0 0 0 2px var(--accent); }
.me-menu__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 240px; padding: 6px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px var(--shadow-a); display: grid; gap: 2px; }
.me-menu__who { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.me-menu__list a, .me-menu__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px;
    background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.me-menu__list a:hover, .me-menu__list button:hover { background: var(--card-2); color: var(--text); }
.me-menu__list form { margin: 0; }
.me-menu__list form:last-child { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
.me-menu__list .count { margin-left: auto; }
.viewas-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.viewas-bar span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 420px) { .tabbar a { font-size: 10px; } .tabbar { gap: 0; padding-left: 4px; padding-right: 4px; } }

/* Wizytówka autora i podpis */
.post__author { flex-shrink: 0; }
.post__card { display: none; }
.post__stats { font-size: 12px; color: var(--muted); }
.post__sig { margin: 2px 0 0; padding: 0 2px; font-size: 12.5px; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
/* odpowiedź jako karta: panel autora po lewej, treść, ikonki i podpis po prawej */
.post--answer { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0; align-items: start;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.post--answer.post--mine { border-color: var(--mine-line); }
.post--answer > .post__author { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; padding: 12px 0 12px 12px; }
.post--answer > .post__main { display: contents; }
.post--answer > .post__main > * { grid-column: 2; margin-left: 12px; margin-right: 12px; }
.post--answer > .post__main > .post__head { margin-top: 12px; }
.post--answer > .post__main > :last-child { margin-bottom: 10px; }
.post--answer > .post__main > .post__sig { order: 1; margin-top: -2px; margin-bottom: 12px; }
.post--answer:has(.post__sig) > .post__main > .post__actions { margin-bottom: 0; }
.post--answer:target { box-shadow: 0 0 0 2px var(--accent); }
.post--answer:target .bubble { box-shadow: none; }
.post--answer.post--hidden { border-style: dashed; border-color: var(--mod-line); }
@media (min-width: 821px) {
    .post--answer > .post__author { width: 116px; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center;
        padding: 14px 8px; border-radius: 17px 0 0 17px; background: var(--tint-035); border-right: 1px solid var(--line); box-sizing: border-box; }
    .post--answer.post--mine > .post__author { background: var(--tint-06); }
    .post--answer > .post__main > * { margin-left: 16px; margin-right: 14px; }
    .post--answer .post__card { display: grid; gap: 1px; font-size: 12px; color: var(--muted); }
    .post--answer .post__card .post__nick { font-size: 14px; margin-bottom: 3px; overflow-wrap: anywhere; }
    .post--answer > .post__main > .post__head .post__nick--head,
    .post--answer > .post__main > .post__head .post__stats { display: none; }
}
.ignored-line { display: flex; align-items: center; gap: 6px; margin: 10px 0; padding: 7px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-style: italic; }
.ignored-line svg { flex: none; opacity: .7; }
.ignored-line--comment { margin: 6px 0; }
.ignored-line--quote { margin: 0 0 8px; }

/* Szukajka */
.search-page__form { margin-bottom: 14px; }
.search-page__form input { flex: 1; }
.search-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.search-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); text-decoration: none; color: var(--text); }
.search-person:hover { background: var(--card-2); }
.search-person > span { display: grid; min-width: 0; }
.search-post { display: flex; gap: 10px; align-items: flex-start; }
.search-post .list-item__body { display: grid; gap: 4px; min-width: 0; }
.search-page mark { background: rgba(240,176,74,.28); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* Wiadomości: lista rozmów z boku (komputer) / pasek awatarów (telefon) */
.msg-side__subj { font-size: 13px; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-head__subj { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin: 1px 0 2px; overflow-wrap: anywhere; }
.turn { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.turn--mine { background: rgba(240,176,74,.16); color: var(--accent); }
.msg-row > .turn { align-self: center; }
.msg__undo { display: inline; margin: 0 0 0 6px; }
.msg__undo .link-btn { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.conv-subj-form { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); min-width: 240px; }
.msg-side__ava { position: relative; display: inline-flex; flex-shrink: 0; }
.msg-side__ava .dot-new { position: absolute; top: -2px; right: -2px; }
.msg-pick { display: none; }

/* telefon: pasek awatarów nad rozmową, na stronie listy niepotrzebny */
.msg-split--index .msg-side { display: none; }
.msg-side { margin: 0 -16px 10px; padding: 0 16px; }
.msg-side__head, .msg-side__body, .msg-side__empty { display: none; }
.msg-side__list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.msg-side__item { display: grid; justify-items: center; gap: 4px; flex: 0 0 auto; width: 58px; text-decoration: none; color: var(--muted); opacity: .85; }
.msg-side__item.is-active { opacity: 1; color: var(--text); }
.msg-side__item.is-active .msg-side__ava .avatar, .msg-side__item.is-active .mod-ava { box-shadow: 0 0 0 2px var(--accent); border-radius: 50%; }
.msg-side__item.is-new { color: var(--text); }
.msg-side__nick { font-size: 11px; font-weight: 600; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 900px) {
    .msg-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1120px; }
    .msg-split--index .msg-side { display: block; }
    .msg-split--index .msg-list--talks, .msg-split .conv-back { display: none; }
    .msg-split--index .msg-pick { display: block; }
    .msg-side { margin: 0; padding: 12px 8px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
        background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
    .msg-side__head { display: block; padding: 2px 8px 8px; }
    .msg-side__title { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
    .msg-side__empty { display: block; padding: 0 8px; }
    .msg-side__list { display: grid; gap: 2px; overflow: visible; padding: 0; }
    .msg-side__item { display: flex; align-items: flex-start; gap: 10px; width: auto; padding: 9px 8px; border-radius: 12px; opacity: 1; color: var(--text); }
    .msg-side__item:hover { background: var(--card-2); }
    .msg-side__item.is-active { background: var(--card-2); box-shadow: inset 2px 0 0 var(--accent); }
    .msg-side__item.is-active .msg-side__ava .avatar, .msg-side__item.is-active .mod-ava { box-shadow: none; }
    .msg-side__nick { display: none; }
    .msg-side__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
    .msg-side__top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
    .msg-side__top strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .msg-side__text { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .msg-side__item.is-new .msg-side__text { color: var(--text); font-weight: 600; }
}
.me-menu__list { min-width: 270px; }
@media (max-width: 420px) { .logo { font-size: 22px; white-space: nowrap; gap: 6px; } .topbar__actions { gap: 0; } .topbar { gap: 6px; } }

/* Notatki zespołu */
.notes-new { margin: 12px 0 16px; padding: 12px 14px; }
.notes-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.notes-new > summary::-webkit-details-marker { display: none; }
.notes-new[open] > summary { margin-bottom: 12px; }
.notes-tabs { margin-bottom: 10px; }
.notes-list { display: grid; gap: 6px; }
.note-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.note-row:hover { background: var(--card-2); }
.note-row.is-new { border-color: var(--accent); }
.note-row__main { display: grid; gap: 2px; min-width: 0; }
.note-row__main strong { overflow-wrap: anywhere; }
.note-row__side { display: flex; align-items: center; gap: 10px; }
.note-row__side .muted { display: inline-flex; align-items: center; gap: 4px; }
.note { padding: 16px 18px; margin: 8px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.note__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.note__title { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.note__body { margin-top: 8px; }
.note-thread { display: grid; gap: 12px; margin-bottom: 16px; }
.note-c { display: flex; gap: 10px; align-items: flex-start; }
.note-c__main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.note-c__body { background: var(--card); border-radius: 4px 14px 14px 14px; padding: 9px 13px; overflow-wrap: anywhere; }
.note-c__body p { margin: 0 0 6px; } .note-c__body p:last-child { margin: 0; }
.note-event { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.note-event--closed { border-color: rgba(98,190,130,.45); }
.note-event--closed svg { color: var(--green-icon); }
.note-event__why { color: var(--text); }
.note-form__btns { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.note-del { margin-top: 18px; }

/* Moderatorzy: uprawnienia widoczne od razu */
.mod-cards { display: grid; gap: 12px; }
.mod-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.mod-card__head { display: flex; align-items: center; gap: 12px; }
.mod-card__head .list-item__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mod-card__perms { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.mod-card__count { margin: 0 0 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; }
.perm-grid .perm { padding: 6px 0; align-items: flex-start; }
.mod-card__save { margin-top: 10px; gap: 10px; align-items: center; flex-wrap: wrap; }
.mod-card__more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 4px 0; }
.mod-card__more > summary::-webkit-details-marker { display: none; }
.mod-card__more > summary svg { flex-shrink: 0; transition: transform .2s; }
.mod-card__more[open] > summary { margin-bottom: 10px; }
.mod-card__more[open] > summary svg { transform: rotate(180deg); }
.mod-card__more > summary { font-size: 14px; }

/* Zgłoszenia: Do wzięcia / W trakcie / Rozwiązane */
.report-tabs { margin-bottom: 12px; }
.report__claim { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.report__claim form { margin: 0; }
.report__claim .link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.claim { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.claim--mine { color: var(--accent); font-weight: 600; }
.report--mine { border-color: rgba(240,176,74,.5); }
.resolved-list { display: grid; gap: 8px; }
.resolved { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.resolved__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.resolved__who { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.resolved__body { overflow-wrap: anywhere; }
.resolved .small svg { vertical-align: -2px; }
.decision { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.decision--dismiss, .decision--dismissed { color: var(--green-text-3); background: rgba(98,190,130,.12); }
.decision--warn, .decision--24h, .decision--7d, .decision--perm { color: var(--danger-text-2); background: rgba(229,154,140,.12); }
.decision--remind, .decision--hide { color: var(--accent); background: rgba(240,176,74,.12); }

/* Smalltalk */
.smalltalk-card { display: grid; gap: 12px; margin-top: 16px; text-decoration: none; color: var(--text); }
.smalltalk-card:hover { border-color: var(--line-2); }
.smalltalk-card__top { display: grid; gap: 4px; }
.smalltalk-card__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.smalltalk-card__item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.smalltalk-card__item > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 899px) { .tabbar .tabbar__rules { display: none; } }
@media (min-width: 900px) and (max-width: 1199px) {
    .tabbar a, .tabbar span { padding: 0 9px; }
    .tabbar svg { display: none; }
    .topbar__actions { gap: 0; }
}
.profile__counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--text-2); }
.profile__counts span { display: inline-flex; align-items: center; gap: 5px; }
.profile__counts svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- Smalltalk: dział i O sobie ---------- */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; align-items: start; }
.st-tile { display: grid; gap: 12px; margin: 0; text-decoration: none; color: var(--text); }
a.st-tile:hover { border-color: var(--line-2); }
.st-tile__link { display: grid; gap: 12px; text-decoration: none; color: var(--text); }
.st-tile__head { display: flex; align-items: center; gap: 12px; }
.st-tile__head > span:last-child { display: grid; gap: 2px; }
.st-tile__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.st-tile__ico .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-tile__name { font-size: 18px; }
.st-tile__desc { line-height: 1.45; }
.st-tile__actions { display: grid; gap: 8px; }
.st-tile--soon { opacity: .6; }
.st-tile--soon .st-tile__ico { background: var(--card-2); color: var(--muted); }
.st-faces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-faces a { text-decoration: none; }
.st-faces__more { font-size: 13px; color: var(--muted); padding: 0 6px; }

.about-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.about-cta > span { color: var(--accent); }
.about-cta .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about-cta p { flex: 1 1 220px; margin: 0; }
.about-grid { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.about-tile { display: grid; gap: 10px; margin: 0; height: 100%; box-sizing: border-box; text-decoration: none; color: var(--text); }
.about-tile:hover { border-color: var(--line-2); }
.about-tile--hidden { border-style: dashed; }
.about-tile__who { display: flex; gap: 10px; align-items: center; }
.about-tile__who > span:last-child { display: grid; }
.about-tile__text { color: var(--text-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.about-tile__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.about-tile__meta span { display: inline-flex; align-items: center; gap: 4px; }
.about-tile__badge { color: var(--accent); }

.about-card { display: grid; gap: 14px; }
.about-qa { margin: 0; display: grid; gap: 12px; }
.about-qa dt { font-size: 13px; font-weight: 700; color: var(--accent); }
.about-qa dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.about-top__title { margin: 6px 0 0; font-size: 15px; }
.about-top { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.about-top > div { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.about-top dt { font-size: 12px; color: var(--muted); }
.about-top dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.about-bye { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-style: italic; color: var(--text-2); }
.about-badge { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-fill); border-radius: 999px; padding: 3px 10px; }
.about-badge .ico { fill: currentColor; stroke: none; }
.discussion--about { margin-top: 8px; }

.about-form { max-width: 560px; }
.about-form__set { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.about-form__set legend { padding: 0 6px; }
.field--row { display: grid; grid-template-columns: minmax(0, 200px) 1fr; align-items: center; gap: 10px; }
.field--row label { font-weight: 500; color: var(--text-2); }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; gap: 4px; } }

/* szukanie na żywo i objaśnienia w panelu */
form[data-live].is-loading .btn--icon { opacity: .55; }
.howto { margin: 10px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.howto > summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.howto ul { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); line-height: 1.45; }

/* gry */
.st-games { display: flex; flex-wrap: wrap; gap: 6px; }
.game-hint { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--info-text); font-size: 14px; }
.story-read { margin: 4px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.story-read > summary { cursor: pointer; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.story-read .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.story-read__text { margin: 10px 0 2px; line-height: 1.6; font-size: 16px; display: grid; gap: 6px; }
.story-read__text p { margin: 0; padding: 0 6px; border-radius: 6px; }
.story-read__text p:hover { background: var(--accent-soft); }
.guess-state { margin: 2px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guess-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ok); background: var(--green-bg); border-radius: 999px; padding: 3px 10px; }
.guess-ok .ico, .guess-mark .ico { fill: none; stroke: currentColor; stroke-width: 2.2; }
.guess-ok--hit { margin: 4px 0; }
.guess-rev { font-size: 13px; color: var(--text-2); background: var(--card-2); border-radius: 999px; padding: 3px 10px; }
.guess-tip { display: inline-block; margin: 4px 0; font-size: 12px; color: var(--accent); }
.guess-mark { margin: 12px 0 4px; display: flex; }

/* O sobie: pełne odpowiedzi na liście */
.about-list { display: grid; gap: 14px; margin: 16px 0; }
.about-entry { display: grid; gap: 14px; margin: 0; scroll-margin-top: 90px; }
.about-entry:target { border-color: var(--accent); }
.about-entry--hidden { border-style: dashed; }
.about-entry__who { display: flex; gap: 10px; align-items: center; }
.about-entry__who > span:nth-child(2) { display: grid; flex: 1; }
.about-entry__nick { font-weight: 700; color: var(--text); text-decoration: none; }
.about-entry__nick:hover { color: var(--accent); }
.about-entry__foot { display: flex; gap: 8px; flex-wrap: wrap; }

/* Strona główna: Smalltalk z trzema działami */
section.smalltalk-card:hover { border-color: var(--line); }
a.smalltalk-card__top, a.smalltalk-card__list { text-decoration: none; color: var(--text); }
.st-home__part { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-home__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; justify-self: start; }
.st-home__name:hover { color: var(--accent); }
.st-home__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.st-home__ico .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Smalltalk: linijka „Najnowsza karta / Ostatni ruch” */
.st-latest { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.st-latest > span { min-width: 0; overflow-wrap: anywhere; }
.st-latest strong { color: var(--text); }
.st-latest:hover strong { color: var(--accent); }

/* ===== Pomachaj 👋 ===== */
.newcomers__item { display: flex; align-items: center; gap: 8px; }
.newcomers__item .newcomer { flex: 1; min-width: 0; }
.wave-form { margin: 0; }
.wave-mini { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 17px; line-height: 1; cursor: pointer; transition: transform .15s, background .15s; }
.wave-mini:hover:not(:disabled) { background: var(--accent-soft); transform: rotate(-12deg) scale(1.08); }
.wave-mini.is-on { opacity: .45; cursor: default; border-style: dashed; }
.wave-btn span { font-size: 16px; }
.wave-btn.is-on { opacity: .7; cursor: default; }

/* ===== Urodziny 🎂 ===== */
.avatar.av-bday { background-color: #3A2D4A;
    background-image: radial-gradient(circle at 18% 22%, #F2B64C 0 1.6px, transparent 2.2px), radial-gradient(circle at 80% 18%, #6CC17A 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 86% 70%, #4C9BE8 0 1.6px, transparent 2.2px), radial-gradient(circle at 14% 78%, #E7554E 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 50% 10%, #F7A1B5 0 1.4px, transparent 2px), radial-gradient(circle at 52% 92%, #F2B64C 0 1.4px, transparent 2px); }
.av-cake { display: block; }
.bday-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bday-row select { flex: 1; min-width: 110px; }
.bday-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; border-color: var(--bday-line);
    background: linear-gradient(135deg, rgba(247,161,181,.10), rgba(242,182,76,.08)), var(--card); }
.bday-card__confetti { position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(circle at 8% 20%, #F2B64C 0 2px, transparent 2.6px), radial-gradient(circle at 92% 25%, #6CC17A 0 2px, transparent 2.6px),
        radial-gradient(circle at 70% 85%, #4C9BE8 0 2px, transparent 2.6px), radial-gradient(circle at 30% 90%, #E7554E 0 2px, transparent 2.6px),
        radial-gradient(circle at 55% 12%, #F7A1B5 0 2px, transparent 2.6px), radial-gradient(circle at 96% 80%, #F2B64C 0 1.6px, transparent 2.2px); }
.bday-card__people { display: flex; position: relative; }
.bday-card__people a + a { margin-left: -10px; }
.bday-card__text { margin: 0; position: relative; line-height: 1.45; }
.bday-card__text a { color: var(--text); text-decoration: none; }
.bday-card__text a:hover strong { color: var(--accent); }

/* ===== Nowe od ostatniej wizyty ===== */
.new-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-ink);
    background: var(--accent-fill); border-radius: 999px; padding: 1px 7px; line-height: 1.5; }
.post--answer.post--new { border-color: rgba(242,182,76,.45); }
.post--comment.post--new .bubble { box-shadow: inset 2px 0 0 var(--accent); }
.new-since { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px;
    background: var(--accent-soft); color: var(--text); text-decoration: none; font-size: 14px; }
.new-since__go { margin-left: auto; color: var(--accent); font-weight: 600; }
.new-since:hover .new-since__go { text-decoration: underline; }

/* ===== DSA: zgłoszenia bez konta, odwołania ===== */
.more__guest { opacity: .7; }
.more__guest:hover { opacity: 1; }
.ext-quote { margin: 0 0 16px; }
.ext-reports { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--mod-line); background: var(--tint-02); display: grid; gap: 8px; }
.ext-report { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.ext-report:first-of-type { border-top: 0; padding-top: 0; }
.ext-report__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ext-report p { margin: 0; }
.appeal-form { margin-top: 10px; }
.appeal-form summary { cursor: pointer; display: inline-block; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.appeal-form[open] summary { margin-bottom: 8px; }
.appeal { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--tint-04); display: grid; gap: 3px; font-size: 14px; }
.appeal--accepted { background: var(--green-bg); }
.penalty--hidden { border-left-color: var(--line); }
.appeal-card { display: grid; gap: 10px; margin-bottom: 12px; }
.appeal-card__who { display: flex; gap: 10px; align-items: center; }
.appeal-card__who a { color: var(--text); text-decoration: none; }
.appeal-card__what { display: grid; gap: 4px; }
.appeal-card__body { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--tint-03); border-radius: 0 10px 10px 0; }
.appeal-done { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.appeal-done li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mail-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.mail-list__body { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: var(--text-2); background: var(--tint-03); padding: 8px 10px; border-radius: 8px; margin: 4px 0 0; }

/* Zgłoszenia: każda wypowiedź osobno, zwijana */
.report__item { display: grid; gap: 8px; }
.report__item > summary { list-style: none; cursor: pointer; padding: 4px 0; }
.report__item > summary::-webkit-details-marker { display: none; }
.report__item > summary .report__reasons { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.report__item > summary::before { content: '▸'; color: var(--muted); margin-right: 6px; transition: transform .15s; display: inline-block; }
.report__item[open] > summary::before { transform: rotate(90deg); }
.report__item[open] .report__snippet { display: none; }
.report__item > .report__actions { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.report__bulk { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.report__bulk > summary { cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }

/* Podpowiadanie nicków po @ */
.has-mention-pop { position: relative; }
.mention-pop { position: absolute; z-index: 30; min-width: 220px; max-width: 320px; list-style: none; margin: 0; padding: 6px;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-b); }
.mention-pop__item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.mention-pop__item small { margin-left: auto; color: var(--muted); font-size: 11px; }
.mention-pop__item.is-sel, .mention-pop__item:hover { background: var(--accent-soft); }

/* Zgłoś pomysł */
.idea-link { margin: 26px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); color: var(--text-2); font-size: 14px; }
.idea-link a { color: var(--accent); font-weight: 600; }
.idea-kinds { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.idea-kinds legend { font-weight: 600; margin-bottom: 8px; }
.idea-kind { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.idea-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.idea-kind input { margin-top: 4px; accent-color: var(--accent); }
.idea-kind span { display: grid; gap: 2px; }
.idea-mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.idea-mine li { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.idea-st { font-size: 12px; color: var(--muted); }
.idea-st--ok { color: var(--green-text-2); }
.idea-card { display: grid; gap: 8px; margin-bottom: 12px; }
.idea-card__who { display: flex; gap: 10px; align-items: center; }
.idea-card__title { margin: 0; font-size: 17px; font-weight: 600; }
.chip.is-on { border-color: var(--accent); color: var(--accent); }
a.chip { text-decoration: none; }
.subtabs--wrap { flex-wrap: wrap; }
.idea-badge { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tint-06); color: var(--text-2); }
.idea-badge--accepted { background: var(--green-bg); color: var(--green-text-2); }

/* ===== Mobile: wspólne zasady dla całego serwisu =====
   1) Strona nigdy nie przewija się na boki – za szerokie paski zakładek przewijają się w sobie.
   2) Długie słowa i linki łamią się zamiast rozpychać układ.
   3) Obrazki, filmy i tabele mieszczą się w ekranie. */
html, body { overflow-x: clip; }
svg, video, iframe, canvas { max-width: 100%; }
p, li, dd, dt, td, th, h1, h2, h3, blockquote, .card, .flash, .notice { overflow-wrap: break-word; }
.subtabs, .tabs, .admin-nav, .chips--links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.subtabs::-webkit-scrollbar, .tabs::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { display: none; }
.subtabs { flex-wrap: nowrap; }
.subtabs a { flex: 0 0 auto; }
.subtabs--wrap { flex-wrap: nowrap; }
table { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.tool__btns, .report__actions, .row { flex-wrap: wrap; }
@media (max-width: 560px) {
    .subtabs { width: 100%; }
    .subtabs a { padding: 7px 12px; font-size: 13.5px; }
    .idea-card__who, .appeal-card__who { flex-wrap: wrap; }
    .idea-badge { margin-left: 0; }
    .form-page, .about-page { min-width: 0; }
}
@media (max-width: 360px) {
    .topbar__actions .btn { padding-left: 10px; padding-right: 10px; font-size: 12.5px; }
    .topbar__actions { gap: 4px; }
    .topbar .logo { font-size: 20px; }
}

/* Ukryte i usunięte wpisy: jedna szara linijka */
.gone-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; margin: 4px 0; border-radius: 12px;
    border: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.4; }
.gone-line .ico { flex: 0 0 auto; opacity: .7; }
.gone-line__more + .gone-line__toggle { margin-left: 14px; }
.gone-line__toggle, .gone-line__more { margin-left: auto; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.gone-staff > summary { list-style: none; cursor: pointer; }
.gone-staff > summary::-webkit-details-marker { display: none; }
.gone-staff[open] > summary .gone-line__more { font-size: 0; }
.gone-staff[open] > summary .gone-line__more::after { content: 'zwiń treść'; font-size: 13px; }
.gone-staff[open] > .post { margin-top: 6px; }

.composer__quote-wrap { display: grid; gap: 4px; min-width: 0; }
.composer__tip { color: var(--muted); font-size: 12.5px; }

/* ===== Telefon: lżejszy wygląd rozmów =====
   Wypowiedź: bez ramki karty, tekst w dymku. Komentarze i cytaty: bez dymków, tylko delikatna kreska po lewej. */
@media (max-width: 560px) {
    .discussion .thread { padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
    .post--answer { background: none; border: 0; border-radius: 0; padding: 10px 0 0; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
    .post--answer.post--mine { border: 0; }
    .post--answer.post--new { border: 0; }
    .post--answer.post--new .bubble:not(.bubble--deleted) { box-shadow: none; border-left: 2px solid var(--accent); padding-left: 10px; }
    .post--answer:target { box-shadow: none; }
    .post--answer:target .bubble:not(.bubble--deleted) { box-shadow: none; border-left: 2px solid var(--accent); padding-left: 10px; }
    .post--answer > .post__author { padding: 0; background: none; border: 0; }
    .post--answer > .post__author .avatar { width: 36px; height: 36px; }
    .post--answer > .post__main > * { margin-left: 0; margin-right: 0; }
    .post--answer > .post__main > .post__head { margin-top: 0; }
    .post--answer > .post__main > :last-child { margin-bottom: 0; }
    .post--answer > .post__main > .post__sig { margin-bottom: 2px; }
    .post__stats { display: none; }
    .post__actions { gap: 4px; margin-top: 0; padding-left: 0; }
    .post--answer.post--hidden { border: 0; }
    /* komentarze: wątek z kreską, bez dymków */
    .comments { margin: 6px 0 2px 18px; padding-left: 14px; border-left: 2px solid var(--line); gap: 6px; }
    .post--comment .bubble { background: none; padding: 2px 0 0; border-radius: 0; font-size: 15px; }
    .post--comment.post--mine .bubble { background: none; }
    .post--comment.post--new .bubble { box-shadow: none; }
    .post--comment.post--new .post__time { color: var(--accent); }
    /* cytaty: tylko kreska */
    .quote { background: none; padding: 2px 0 2px 10px; border-radius: 0; border-left: 2px solid var(--line-2); }
}

/* Strona główna, Smalltalk: ostatnie wpisy wcięte pod nazwą działu, mniejsze awatary */
.st-home__part .smalltalk-card__list { padding-left: 34px; gap: 7px; }
.st-home__part .smalltalk-card__item { gap: 8px; align-items: center; font-size: 13.5px; }
.st-home__part .smalltalk-card__item .avatar { width: 20px !important; height: 20px !important; }
.st-home__part .smalltalk-card__item .avatar svg { width: 12px; height: 12px; }
.st-home__part .smalltalk-card__item .av-dot { width: 7px; height: 7px; }
.st-home__part .smalltalk-card__item > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filtry-kapsułki (Przegadane i podobne): na telefonie mniejsze i w jednym pasku przewijanym palcem */
@media (max-width: 560px) {
    .chips--links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
    .chips--links::-webkit-scrollbar { display: none; }
    .chip-link { flex: 0 0 auto; font-size: 13px; padding: 5px 12px; min-height: 32px; white-space: nowrap; }
    .filters .chips--links { margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; }
}

/* Pomoc i Przewodnik: rozwijane pytania */
.faq-search { margin: 14px 0 6px; }
.faq-search input { width: 100%; }
.faq-search [data-faq-none] { margin: 10px 0 0; }
.prose details.faq { border-bottom: 1px solid var(--line); }
.prose details.faq > summary { list-style: none; cursor: pointer; padding: 12px 30px 12px 0; position: relative; font-weight: 600; line-height: 1.4; }
.prose details.faq > summary::-webkit-details-marker { display: none; }
.prose details.faq > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.prose details.faq[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.prose details.faq > summary:hover { color: var(--accent, inherit); }
.prose .faq__a { padding: 0 0 12px; }
.prose .faq__a > :first-child { margin-top: 0; }
.prose .faq__a > :last-child { margin-bottom: 0; }
.prose h2 + details.faq { border-top: 1px solid var(--line); }

/* Górne menu dla zespołu (7 pozycji z Panelem): bez ikon, żeby „Profil” nie wchodził pod dzwoneczek */
@media (min-width: 1200px) {
    .tabbar:has(> :nth-child(7)) a, .tabbar:has(> :nth-child(7)) span { padding: 0 11px; }
    .tabbar:has(> :nth-child(7)) svg { display: none; }
}

/* Zakładki na kartach działów (strona główna, 11.11): pomarańczowa plakietka wystająca nad kartę */
.tab-card { position: relative; margin-top: 30px; }
.tab-card__tab { position: absolute; top: -12px; left: 18px; display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-fill); color: var(--accent-ink); border-radius: 8px; padding: 3px 10px 3px 8px;
    font-size: 12.5px; font-weight: 700; line-height: 18px; }
.tab-card__tab .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic-card.tab-card { padding-top: 24px; }
.topic-card__top--end { justify-content: flex-end; }
.topic-card--empty.tab-card .topic-card__q { margin-top: 6px; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 32px 0 -6px; text-decoration: none; }
.st-head .section-title { margin: 0; }
.st-head:hover .section-title { color: var(--accent); }
.st-card { display: grid; gap: 10px; padding-top: 22px; }
.st-card__title { font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; line-height: 1.3; }
.st-card__title:hover { color: var(--accent); }
.st-card .smalltalk-card__list { gap: 7px; text-decoration: none; }
.st-card .smalltalk-card__item { gap: 8px; align-items: center; font-size: 13.5px; color: var(--text); }
.st-card .smalltalk-card__item .avatar { width: 22px !important; height: 22px !important; }
.st-card .smalltalk-card__item .avatar svg { width: 13px; height: 13px; }
.st-card .smalltalk-card__item > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card .st-latest, .st-card .smalltalk-card__list { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }

/* Panel → O sobie: zestawy kart (nazwa, aktywny, rodzaj, pytania) */
.about-sets { display: flex; flex-direction: column; gap: 14px; }
.aset { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.aset--off { border-style: dashed; }
.aset--off .aset__title input { color: var(--muted); }
.aset__head { display: flex; align-items: flex-end; gap: 16px; }
.aset__title { flex: 1; min-width: 0; }
.aset__title input { font-size: 17px; font-weight: 700; }
.aset__opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
@media (max-width: 640px) { .aset__opts { grid-template-columns: 1fr; } .aset__head { flex-direction: column; align-items: stretch; } }
.aset__switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.aset__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aset__knob { width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.aset__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .15s, background .15s; }
.aset__switch input:checked + .aset__knob { background: var(--accent-fill); }
.aset__switch input:checked + .aset__knob::after { transform: translateX(18px); background: var(--accent-ink); }
.aset__switch input:checked ~ .aset__state { color: var(--accent); }
.aset__switch input:focus-visible + .aset__knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.aset__items { list-style: none; counter-reset: aq; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aset__item { counter-increment: aq; display: flex; align-items: center; gap: 8px; }
.aset__item::before { content: counter(aq); width: 22px; flex-shrink: 0; text-align: right; font-size: 13px; color: var(--muted); }
.aset__item input { flex: 1; min-width: 0; }
.aset .icon-btn { background: none; cursor: pointer; }
.aset__item .icon-btn { width: 36px; height: 36px; }
.aset__item .icon-btn svg { width: 16px; height: 16px; }
.aset__add { margin: 10px 0 0 30px; }
.aset__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.aset__foot > .muted { flex: 1; min-width: 0; }
.aset__move { display: inline-flex; gap: 6px; }
.aset__move .icon-btn { width: 34px; height: 34px; }
.aset__move .icon-btn svg { width: 16px; height: 16px; }
.aset__remove span { color: var(--muted); }
.aset { padding: 0; gap: 0; }
.aset__sum { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: 18px; }
.aset__sum::-webkit-details-marker { display: none; }
.aset__sum:hover { background: var(--card-2); }
.aset__sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aset__name { font-weight: 700; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aset__meta { margin-left: auto; white-space: nowrap; }
.aset__chev { display: inline-flex; color: var(--muted); transition: transform .15s; }
.aset__chev .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aset[open] > .aset__sum { border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.aset[open] .aset__chev { transform: rotate(180deg); }
.aset__body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.aset--off .aset__name { color: var(--muted); }
@media (max-width: 640px) { .aset__meta { display: none; } }

/* „Ktoś pisze…” */
.typing { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.typing[hidden] { display: none; }
.typing__dots { display: inline-flex; align-items: center; gap: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 11px; }
.typing__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); opacity: .35; animation: typing-dot 1.2s infinite ease-in-out; }
.typing__dots i:nth-child(2) { animation-delay: .15s; }
.typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing__dots i { animation: none; opacity: .8; } }
.typing--msg { margin: 6px 0 4px; }

/* Wiadomości: lista rozmów z boku nie może być szersza niż kolumna (długi tekst ucinamy „…”, bez paska przewijania w bok) */
@media (min-width: 900px) {
    .msg-side { overflow-x: hidden; }
    .msg-side__list { grid-template-columns: minmax(0, 1fr); }
    .msg-side__item { min-width: 0; }
    .msg-side__top > .muted { flex-shrink: 0; white-space: nowrap; }
}

/* Ikonki w okrągłych przyciskach-rozwijkach (np. koperta i kłódka w Panel → Użytkownicy):
   Chrome liczył im szerokość 0 przez ogólną regułę svg { max-width: 100% }, więc znikały. */
summary .ico { max-width: none; }
summary.btn--icon > .ico { margin: 0; }

.st-card__head { display: flex; align-items: center; gap: 2px; min-width: 0; }
.aset__slug { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.aset__slug input { width: 170px; min-height: 32px; padding: 4px 10px; font-size: 13px; }

/* SEO: plakietka index/noindex jest też przełącznikiem */
.pill--btn { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pill--btn:hover { outline: 1px solid currentColor; }

/* Strona główna: „Czym jest to miejsce” na samym dole */
.home-about { margin: 48px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.home-about__cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .home-about__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.home-about__col h2 { font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin: 0 0 8px; color: var(--text); }
.home-about__col p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- Tryb edycji tekstów (tylko admin) ---------- */
.edit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.edit-bar .ico { vertical-align: -3px; }
/* Ramka ma być tylko obwódką: zerujemy style, które inne reguły („.coś span”) nadają każdemu spanowi. */
.is-editing span.te { all: unset; }
.is-editing span.te { outline: 1.5px dashed rgba(240, 176, 74, .55); outline-offset: 2px; border-radius: 4px; cursor: pointer; transition: outline-color .15s, background-color .15s; }
.is-editing span.te:hover, .is-editing span.te:focus-visible { outline-color: var(--accent); outline-style: solid; background: rgba(240, 176, 74, .10); }
.is-editing span.te.is-changed { outline-color: rgba(233, 160, 122, .75); }
.is-editing span.te.is-saved { animation: te-saved 1.2s ease-out; }
@keyframes te-saved { from { background: rgba(156, 201, 163, .35); } to { background: transparent; } }
.te-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: 0 20px 60px var(--shadow-c); }
.te-dialog::backdrop { background: rgba(10, 9, 12, .6); }
.te-dialog__form { display: flex; flex-direction: column; gap: 10px; padding: 18px; margin: 0; }
.te-dialog__label { font-size: 13px; font-weight: 700; color: var(--accent); }
.te-dialog__ta { width: 100%; min-height: 72px; resize: vertical; font: inherit; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.te-dialog__ta:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.te-dialog__msg { font-size: 13px; min-height: 1em; color: var(--text-2); }
.te-dialog__msg:empty { display: none; }
.te-dialog__msg.is-error { color: var(--error); }
.te-dialog__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.te-dialog__reset { margin-left: auto; }
.edit-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.edit-pages form { margin: 0; }
.is-editing .btn:not(.btn--ghost):not(.btn--light) span.te { outline-color: rgba(26, 20, 8, .55); }

/* ===== Co Was łączy (12.11.2026) ===== */
.common { margin: 18px 0 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.common__h { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--accent); }
.common__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.common__tags:last-child { margin-bottom: 0; }
.tag--common { background: var(--accent-soft); color: var(--accent); }
.common__top { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.common__top li + li { margin-top: 2px; }
.common__top strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.pchip__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pchip__common { font-size: 11px; color: var(--accent); white-space: nowrap; }
.suggest { list-style: none; margin: 0; padding: 0; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.suggest li:first-child { border-top: 0; padding-top: 2px; }
.suggest__body { flex: 1; min-width: 0; }
.suggest__nick { font-weight: 700; color: var(--text); text-decoration: none; }
.suggest__nick:hover { color: var(--accent); }
.suggest__what { overflow-wrap: anywhere; }
.suggest form { margin: 0; flex: 0 0 auto; }
@media (max-width: 480px) { .suggest li { flex-wrap: wrap; } .suggest__body { flex-basis: calc(100% - 52px); } .suggest form { margin-left: 48px; } }

/* ===== Profil: karta z awatarem po lewej (12.11.2026) =====
   Lewa kolumna: awatar, obecność, przyciski (swój profil: Edytuj / Wyloguj; cudzy: ikonki Obserwuj, Rozmowa, Ignoruj).
   Prawa: nick, dane, opis. Pod spodem na całą szerokość: box z liczbami, zainteresowania, odznaki. Zakładki jako kapsułki. */
.pcard { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px 26px; margin-top: 8px; padding: 26px;
    border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.pcard__side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.ring--xl { padding: 5px; border-width: 3px; }
.pcard__presence { text-align: center; font-size: 12px; font-weight: 700; }
.pcard__actions { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.pcard__form { margin: 0; }
.pcard__btn { width: 100%; }
.pcard__btn--out { min-height: 40px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pcard__icons { display: flex; justify-content: center; gap: 8px; }
.pcard__icons form { margin: 0; }
.pcard__icons .btn--icon { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.pcard { position: relative; }
.pcard__mod { position: absolute; top: 18px; right: 18px; z-index: 5; }
.pcard__mod-btn, .pcard__mod-btn:hover { background: var(--mod-btn); color: #fff; border: 0; }
.pcard__mod-btn:hover { filter: brightness(1.08); }
.pcard__mod-btn .ico { width: 15px; height: 15px; }
.pcard:has(.pcard__mod) .pcard__name { padding-right: 110px; }
.pcard__main { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; min-width: 0; }
.pcard__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcard__nick { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: 0; overflow-wrap: anywhere; }
.pcard .profile__bio { margin: 6px 0 0; }
.pcard__city { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.pcard__svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pcard__full { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: var(--box); border: 1px solid var(--line); }
.pstat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.pstat + .pstat { border-left: 1px solid var(--line); }
.pstat__ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pstat__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pstat__txt strong { font-size: 20px; white-space: nowrap; }
.pstat__txt span { font-size: 13px; color: var(--muted); }
.pcard__tags { margin: 0; }
.pcard__tags .tag { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }
.pcard__tags .tag:hover { color: var(--text); border-color: var(--muted); }
.pcard__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile > .common { margin-top: 14px; }
/* zakładki-kapsułki */
.tabs--pills { gap: 6px; margin-top: 20px; border-bottom: 0; padding-bottom: 2px; }
.tabs--pills a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
.tabs--pills a:hover { color: var(--text); border-color: var(--muted); }
.tabs--pills a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 560px) {
    .pcard { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
    .pcard__side { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; }
    .pcard__side .ring--xl { zoom: .76; }
    .pcard__presence { order: 3; flex-basis: 100%; text-align: left; }
    .pcard__actions { width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
    .pcard__btn { width: auto; }
    .pcard__btn--out { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
    .pcard__btn--out .pcard__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .pcard__mod { top: 14px; right: 14px; }
    .pcard:has(.pcard__mod) .pcard__name { padding-right: 0; }
    .pcard__main { padding-top: 0; }
    .pcard__nick { font-size: 32px; }
    .pstat { flex-direction: column; gap: 4px; padding: 12px 6px; text-align: center; }
    .pstat__ico { width: 34px; height: 34px; border-radius: 11px; }
    .pstat__txt strong { font-size: 17px; }
    .pstat__txt span { font-size: 12px; }
    .tabs--pills { margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
}

/* ===== Przełącznik wyglądu (menu pod awatarem, stopka dla gości) ===== */
.theme-pick { display: grid; gap: 6px; padding: 8px 12px 10px; margin: 4px 0 0; border-top: 1px solid var(--line-2); }
.theme-pick__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.theme-pick__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.theme-pick .theme-pick__seg button, .me-menu__list .theme-pick__seg button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: auto; min-height: 44px; margin: 0;
    padding: 5px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2);
    font: inherit; font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.theme-pick .theme-pick__seg button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.theme-pick .theme-pick__seg button:hover, .me-menu__list .theme-pick__seg button:hover { background: var(--card-2); color: var(--text); }
.theme-pick .theme-pick__seg button[aria-pressed="true"], .me-menu__list .theme-pick__seg button[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-ink); }
.theme-pick--foot { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 0; padding: 10px 0 0; margin: 0; }
.theme-pick--foot .theme-pick__label { font-size: 11px; }
.theme-pick--foot .theme-pick__seg { grid-template-columns: repeat(3, auto); }
.theme-pick--foot .theme-pick__seg button { flex-direction: row; gap: 5px; min-height: 36px; padding: 4px 10px; }

/* ===== Szybkie poprawki (grupa 1, 13.11.2026) =====
   1. Telefon: pola do pisania mają co najmniej 16 px. Przy mniejszych iPhone (Safari) sam powiększa stronę po kliknięciu
      w pole – wtedy cała strona „lata” w bok. Dotyczyło tylko zalogowanych, bo tylko oni mają pola (odpowiedź, komentarz, zgłoszenie).
   2. Telefon: przerwa między „Zaloguj” i „Dołącz” w górnym pasku.
   3. Stopka gościa na bardzo wąskim ekranie: wybór wyglądu może zejść do drugiej linii zamiast wystawać. */
@media (max-width: 560px) {
    html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
    html body textarea, html body select { font-size: 16px; }
}
@media (max-width: 420px), (min-width: 900px) and (max-width: 1199px) { .topbar__actions .btn + .btn { margin-left: 6px; } }
@media (max-width: 360px) { .topbar__actions .btn + .btn { margin-left: 2px; } }
.theme-pick--foot { flex-wrap: wrap; }
.theme-pick--foot { gap: 6px; padding-top: 6px; }
.theme-pick--foot .theme-pick__label { font-size: 10.5px; font-weight: 600; }
.theme-pick--foot .theme-pick__seg { gap: 0; padding: 0; border: 0; background: none; }
.theme-pick--foot .theme-pick__seg button { min-height: 32px; width: 32px; padding: 0; border-radius: 50%; color: var(--muted); }
.theme-pick--foot .theme-pick__seg button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-pick--foot .theme-pick__seg button[aria-pressed="true"] { background: var(--card-2); color: var(--accent); }
/* Menu pod awatarem: też same ikonki, w jednym rzędzie z napisem „Wygląd” (13.11) */
.me-menu__list .theme-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; }
.me-menu__list .theme-pick .theme-pick__label { font-size: 11px; font-weight: 600; }
.me-menu__list .theme-pick .theme-pick__seg { display: flex; gap: 2px; padding: 0; border: 0; background: none; }
.me-menu__list .theme-pick .theme-pick__seg button { width: 34px; min-height: 34px; padding: 0; border-radius: 50%; color: var(--muted); }
.me-menu__list .theme-pick .theme-pick__seg button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.me-menu__list .theme-pick .theme-pick__seg button:hover { background: var(--card-2); color: var(--text); }
.me-menu__list .theme-pick .theme-pick__seg button[aria-pressed="true"] { background: var(--card-2); color: var(--accent); }

/* ===== Nagłówek strony głównej (13.11) =====
   Hasło dzieli się na przecinku: część po przecinku jest wyróżniona. Bez przecinka – zwykły nagłówek.
   W trybie edycji zwykły tekst (żeby dało się go kliknąć i poprawić). Warianty: hero--a / hero--b / hero--c. */
.hero { position: relative; }
.hero__eyebrow { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.hero__eyebrow::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 4px var(--accent-soft); margin-top: .42em; }
.hero__title { position: relative; z-index: 1; }
.hero__hl { position: relative; display: inline; }
.hero__squiggle { display: none; }
.hero .lead { position: relative; z-index: 1; max-width: 46ch; }

/* A: druga część w Instrument Serif, kursywa, miodowo-brzoskwiniowy gradient */
.hero--a .hero__l1 { display: block; }
.hero--a .hero__hl { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; line-height: 1.02; letter-spacing: -0.01em; padding-right: .08em;
    background: linear-gradient(100deg, var(--hero-g1) 0%, var(--hero-g2) 55%, var(--hero-g1) 100%); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: hero-shine 6s ease-in-out 1 both; }
@keyframes hero-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* B: odręczne podkreślenie, które się „rysuje”, i miękka poświata za nagłówkiem */
.hero--b::before { content: ''; position: absolute; z-index: 0; left: -10%; top: -30%; width: 80%; height: 120%; pointer-events: none;
    background: radial-gradient(closest-side, var(--hero-glow1), transparent 70%), radial-gradient(closest-side at 70% 60%, var(--hero-glow2), transparent 70%);
    filter: blur(20px); }
.hero--b .hero__l1 { display: block; }
.hero--b .hero__hl { display: inline-block; }
.hero--b .hero__squiggle { display: block; position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .32em; overflow: visible; }
.hero--b .hero__squiggle path { fill: none; stroke: var(--accent-fill); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 1.1s .35s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

/* C: edytorsko – cały nagłówek szeryfowy, duży cudzysłów w tle, kreska przy opisie */
.hero--c .hero__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; font-size: 40px; padding-top: .35em; }
.hero--c .hero__title::before { content: '“'; position: absolute; left: -.08em; top: -.18em; font-size: 2.6em; line-height: 1; color: var(--accent-fill); opacity: .2; z-index: -1; pointer-events: none; }
.hero--c .hero__title { padding-left: .02em; }
.hero--c .hero__hl { font-style: italic; color: var(--accent); }
.hero--c .lead { border-left: 2px solid var(--accent-fill); padding-left: 14px; }
@media (min-width: 900px) { .home-grid .hero.hero--c .display { font-size: 58px; line-height: 1.02; } }

@media (prefers-reduced-motion: reduce) {
    .hero--a .hero__hl { animation: none; }
    .hero--b .hero__squiggle path { animation: none; stroke-dashoffset: 0; }
}

/* ===== Temat tygodnia: nagłówek jak edytorski cytat (13.11, wariant C ze strony głównej) =====
   Pytanie w Instrument Serif, duży przygaszony cudzysłów w tle, znak zapytania miodowy; opis z miodową kreską. */
.topic-page__q--quote { position: relative; z-index: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; line-height: 1.06; font-size: 33px; padding-top: .55em; margin-top: 18px; }
.topic-page__q--quote::before { content: '“'; position: absolute; left: -.06em; top: -.08em; z-index: -1; font-size: 2.4em; line-height: 1; color: var(--accent-fill); opacity: .2; pointer-events: none; }
.topic-page__q-end { color: var(--accent); font-style: italic; padding-left: .04em; }
.topic-page__body--quote { border-left: 2px solid var(--accent-fill); padding-left: 14px; }
@media (min-width: 900px) { .topic-page__q--quote { font-size: 54px; line-height: 1.02; } }

/* ===== Konto: potwierdzanie e-maila, „Nie wylogowuj mnie” (13.11.2026) ===== */
.verify-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.verify-bar .ico { vertical-align: -3px; }
.verify-bar__act { white-space: nowrap; font-size: 14px; }
.verify-bar__act .link-btn { padding: 0; min-height: 0; font-size: 14px; color: var(--accent); }
.verify-bar__act a { color: var(--accent); font-weight: 600; }
.verify-page__addr { display: flex; gap: 8px; align-items: center; font-size: 18px; margin: 4px 0 14px; word-break: break-all; }
.verify-page__addr .ico { color: var(--accent); flex-shrink: 0; }
.verify-page__resend { margin: 6px 0 14px; }
.verify-page__fix { margin: 4px 0 10px; }
.verify-page__fix summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; min-height: 32px; }
.verify-page__fix .form { margin-top: 8px; }
.email-hint { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.email-hint__use { padding: 0; min-height: 0; font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field small .link-btn { padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; }
.remember-check { margin: 2px 0 6px; }
.remember-check span { display: flex; flex-direction: column; gap: 2px; }
.remember-check small { font-size: 13px; }
.email-pending { margin: 0 0 12px; }
.email-pending .row { gap: 12px; align-items: center; }

/* ===== Jasny motyw (punkt D, 12.11.2026) =====
   Motyw wybiera się w menu pod awatarem (goście: w stopce). <html data-theme="dark|light|auto">.
   „auto” = jak w systemie. Ciemny to wartości z :root na górze pliku.
   Zasada: nowe kolory wpisuj jako zmienne (var(--...)) i dopisz wartość jasną tutaj.
   --accent na jasnym to ciemniejszy miód (tekst, linki); --accent-fill to miód do teł przycisków. */
html[data-theme="light"] {
    color-scheme: light;
    --hero-g1: #A8670A;
    --hero-g2: #C0603A;
    --hero-glow1: rgba(240,176,74,.22);
    --hero-glow2: rgba(233,160,122,.18);
    --scheme: light;
    --box: #FBF8F3;
    --mod-btn: #B0473A;
    --bg: #FAF6EF;
    --bg-deep: #F3EDE3;
    --card: #FFFFFF;
    --card-2: #F7F2EA;
    --line: #E6DED1;
    --line-2: #D6CBBB;
    --text: #231F1A;
    --text-2: #4A433B;
    --muted: #6B6258;
    --accent: #94600A;
    --accent-fill: #F0B04A;
    --accent-ink: #1A1408;
    --accent-soft: #FBEBCB;
    --error: #B23A2A;
    --ok: #2B7444;
    --mod: #B0473A;
    --mod-soft: #FBEAE7;
    --mod-line: #E8B4AB;
    --g-k: #C0679B;
    --g-m: #4A86BC;
    --g-x: #8C8494;
    --link-hover: #7A4A00;
    --line-soft: #E7DFD3;
    --accent-hover: #F6C878;
    --gold: #B07012;
    --ok-line: #A9D3B6;
    --ok-bg2: #EAF5EC;
    --ok-text2: #1F4D2E;
    --err-line: #E5B3AA;
    --err-bg: #FBEAE7;
    --err-text: #7A2A1F;
    --info-bg: #FCF1DC;
    --info-text: #5C4210;
    --text-body: #2E2924;
    --err-field: #D38A7C;
    --placeholder: #776E63;
    --green-text: #2B7444;
    --card-topic: #FFFFFF;
    --text-strong: #000000;
    --track: #E7DFD3;
    --green-bg: #E3F2E7;
    --yellow-bg: #FBF0D6;
    --yellow-text: #6E4E00;
    --btn-light-bg: #2A251F;
    --btn-light-ink: #FAF6EF;
    --btn-light-hover: #000000;
    --bubble-mine: #F6EEDF;
    --sunken: rgba(70,50,20,.05);
    --green-line: #9CCDAE;
    --shadow-a: rgba(60,40,10,.14);
    --mod-hover-bg: #FBE3DF;
    --mod-hover-text: #8F2E22;
    --mod-ink: #FFFFFF;
    --calm-line: #B9DCC4;
    --calm-bg: #EEF7F0;
    --info-line: #E6CF9C;
    --tint-08: rgba(70,50,20,.08);
    --line-soft-2: #EDE6DB;
    --honey-line: #E8CD94;
    --sunken-2: rgba(70,50,20,.06);
    --topbar-bg: rgba(250,246,239,.92);
    --mod-ink-2: #FFFFFF;
    --honey-line-2: #E2C68A;
    --danger-text: #B23A3A;
    --tint-02: rgba(70,50,20,.025);
    --danger-text-3: #A8402F;
    --off-bg: #FBE3DF;
    --danger-text-2: #A8402F;
    --mine-line: #D9CFC1;
    --tint-035: rgba(70,50,20,.035);
    --tint-06: rgba(70,50,20,.05);
    --green-icon: #2F8A52;
    --green-text-3: #2B7444;
    --bday-line: #E3C9E8;
    --tint-04: rgba(70,50,20,.04);
    --tint-03: rgba(70,50,20,.03);
    --shadow-b: rgba(60,40,10,.13);
    --green-text-2: #2B7444;
    --shadow-c: rgba(60,40,10,.18);
    --gold-text: linear-gradient(100deg, #9A5F00 0%, #C98A2E 45%, #9A5F00 55%, #7A4A00 100%);
}
@media (prefers-color-scheme: light) {
    html[data-theme="auto"] {
        color-scheme: light;
    --hero-g1: #A8670A;
    --hero-g2: #C0603A;
    --hero-glow1: rgba(240,176,74,.22);
    --hero-glow2: rgba(233,160,122,.18);
    --scheme: light;
    --box: #FBF8F3;
    --mod-btn: #B0473A;
        --bg: #FAF6EF;
        --bg-deep: #F3EDE3;
        --card: #FFFFFF;
        --card-2: #F7F2EA;
        --line: #E6DED1;
        --line-2: #D6CBBB;
        --text: #231F1A;
        --text-2: #4A433B;
        --muted: #6B6258;
        --accent: #94600A;
        --accent-fill: #F0B04A;
        --accent-ink: #1A1408;
        --accent-soft: #FBEBCB;
        --error: #B23A2A;
        --ok: #2B7444;
        --mod: #B0473A;
        --mod-soft: #FBEAE7;
        --mod-line: #E8B4AB;
        --g-k: #C0679B;
        --g-m: #4A86BC;
        --g-x: #8C8494;
        --link-hover: #7A4A00;
        --line-soft: #E7DFD3;
        --accent-hover: #F6C878;
        --gold: #B07012;
        --ok-line: #A9D3B6;
        --ok-bg2: #EAF5EC;
        --ok-text2: #1F4D2E;
        --err-line: #E5B3AA;
        --err-bg: #FBEAE7;
        --err-text: #7A2A1F;
        --info-bg: #FCF1DC;
        --info-text: #5C4210;
        --text-body: #2E2924;
        --err-field: #D38A7C;
        --placeholder: #776E63;
        --green-text: #2B7444;
        --card-topic: #FFFFFF;
        --text-strong: #000000;
        --track: #E7DFD3;
        --green-bg: #E3F2E7;
        --yellow-bg: #FBF0D6;
        --yellow-text: #6E4E00;
        --btn-light-bg: #2A251F;
        --btn-light-ink: #FAF6EF;
        --btn-light-hover: #000000;
        --bubble-mine: #F6EEDF;
        --sunken: rgba(70,50,20,.05);
        --green-line: #9CCDAE;
        --shadow-a: rgba(60,40,10,.14);
        --mod-hover-bg: #FBE3DF;
        --mod-hover-text: #8F2E22;
        --mod-ink: #FFFFFF;
        --calm-line: #B9DCC4;
        --calm-bg: #EEF7F0;
        --info-line: #E6CF9C;
        --tint-08: rgba(70,50,20,.08);
        --line-soft-2: #EDE6DB;
        --honey-line: #E8CD94;
        --sunken-2: rgba(70,50,20,.06);
        --topbar-bg: rgba(250,246,239,.92);
        --mod-ink-2: #FFFFFF;
        --honey-line-2: #E2C68A;
        --danger-text: #B23A3A;
        --tint-02: rgba(70,50,20,.025);
        --danger-text-3: #A8402F;
        --off-bg: #FBE3DF;
        --danger-text-2: #A8402F;
        --mine-line: #D9CFC1;
        --tint-035: rgba(70,50,20,.035);
        --tint-06: rgba(70,50,20,.05);
        --green-icon: #2F8A52;
        --green-text-3: #2B7444;
        --bday-line: #E3C9E8;
        --tint-04: rgba(70,50,20,.04);
        --tint-03: rgba(70,50,20,.03);
        --shadow-b: rgba(60,40,10,.13);
        --green-text-2: #2B7444;
        --shadow-c: rgba(60,40,10,.18);
        --gold-text: linear-gradient(100deg, #9A5F00 0%, #C98A2E 45%, #9A5F00 55%, #7A4A00 100%);
    }
}

/* ===== Przenoszenie do Pogaduszek (13.11.2026) ===== */
.moved-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; margin: 4px 0 10px; border-radius: 12px;
    border: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.4; }
.moved-line .ico { opacity: .7; vertical-align: -2px; margin-right: 2px; }
.moved-line a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.moved-line form { margin-left: auto; }
.post__moved { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.post__moved .ico { opacity: .75; vertical-align: -2px; margin-right: 2px; }
.post__moved a { color: var(--text-2); }
.post__moved form { margin-left: auto; }
.move-page__info ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.move-list { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; min-width: 0; }
.move-list legend { font-weight: 700; margin-bottom: 8px; }
.move-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.move-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.move-item--clicked { border-color: var(--accent); }
.move-item--off { opacity: .55; cursor: default; }
.move-item__main { display: grid; gap: 3px; min-width: 0; }
.move-item__text { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.move-page__bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
