/* SPDX-License-Identifier: MIT
   Copyright (C) 2026 INE RP
   INE ADMIN — wspólny arkusz wszystkich paneli (Master / Admin / Report).
   Ciemny, czysty interfejs z akcentem INE (złoto/pomarańcz). */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
img { max-width: 100%; }
::selection { background: rgba(255, 176, 32, .30); color: #fffaf0; }
::-moz-selection { background: rgba(255, 176, 32, .30); color: #fffaf0; }

:root {
    --bg: #08080b;
    --bg-2: #0b0b11;
    --surface: #101017;
    --surface-2: #14141d;
    --surface-3: #191924;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 184, 76, .22);
    --text: #f4f0e8;
    --text-strong: #fffaf0;
    --muted: #9b97a8;
    --dim: #6f6b7c;
    --gold: #ffb020;
    --gold-2: #ff8a00;
    --gold-3: #ffd77a;
    --ok: #5fe0a0;
    --danger: #ff7a6b;
    --info: #7cc4ff;
    --radius: 16px;
    --ease: cubic-bezier(.22, .68, 0, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --font-display: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --shadow: 0 18px 44px rgba(0, 0, 0, .45);
    --shadow-lift: 0 22px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 184, 76, .12);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(60% 42% at 18% -8%, rgba(255, 138, 0, .13), transparent 62%),
        radial-gradient(50% 40% at 92% 0%, rgba(255, 176, 32, .08), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 55%);
    background-attachment: fixed;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ============================================================ topbar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px max(18px, calc((100vw - 1240px) / 2));
    background: rgba(8, 8, 11, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.tb-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}
.tb-logo-img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 3px 12px rgba(255, 138, 0, .28));
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.tb-logo-mark {
    display: block;
    height: 38px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(255, 138, 0, .26));
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.tb-brand-div {
    flex: 0 0 auto;
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.tb-brand:hover .tb-logo-mark { transform: translateY(-1px); filter: drop-shadow(0 5px 16px rgba(255, 160, 60, .45)); }
.ico { display: inline-block; vertical-align: -.18em; flex: 0 0 auto; }
.tb-brand:hover .tb-logo-img { transform: translateY(-1px); filter: drop-shadow(0 5px 16px rgba(255, 160, 60, .45)); }
.tb-panel {
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-3);
    padding: 4px 9px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 176, 32, .07);
    white-space: nowrap;
}

.tb-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 13px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    min-width: 0;
}
.tb-avatar, .tb-avatar-img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-2);
}
.tb-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--gold-2), var(--gold));
    color: #1a1205;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
}
.tb-user { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tb-nick {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    color: var(--text-strong);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tb-role { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tb-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    transition: color .18s, border-color .18s, background .18s;
}
.tb-logout:hover { color: var(--danger); border-color: rgba(255, 122, 107, .35); background: rgba(255, 122, 107, .08); }

.tb-quick {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #FFDCAE;
    padding: 8px 13px;
    border: 1px solid rgba(255, 190, 110, .42);
    border-radius: 10px;
    background: linear-gradient(140deg, rgba(255, 138, 0, .16), rgba(255, 138, 0, .05));
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.tb-quick:hover { color: #FFF1DC; border-color: rgba(255, 200, 130, .68); background: rgba(255, 138, 0, .2); transform: translateY(-1px); }
.tb-quick .ico { flex: 0 0 auto; }

/* ============================================================ main */

.ine-main {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 22px 72px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 22px;
}
.page-head .eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
}
.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text-strong);
}
.page-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 72ch;
}
.page-head .page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; color: var(--dim); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-3); }

/* ============================================================ cards */

.ine-card {
    position: relative;
    background: linear-gradient(180deg, var(--surface), #0d0d13);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    animation: fadeUp .42s var(--ease-out) both;
}
.ine-card h2, .ine-card h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.005em;
    color: var(--text-strong);
}
.ine-card h2 { font-size: 18px; }
.ine-card h3 { font-size: 14.5px; }
.ine-card h3::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.ine-card > p { color: var(--muted); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.ine-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 920px) { .ine-grid-2 { grid-template-columns: 1fr; } }

/* ============================================================ kpi */

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}
.kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 16px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.kpi::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold), transparent);
    opacity: .75;
}
.kpi:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-3); }
.kpi-num {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-strong);
    letter-spacing: -.02em;
}
.kpi-lab {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============================================================ tables */

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.ine-table th {
    text-align: left;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.ine-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    vertical-align: middle;
}
.ine-table tr:last-child td { border-bottom: 0; }
.ine-table tbody tr:hover td, .ine-table tr:hover td { background: rgba(255, 176, 32, .045); }
.ine-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.ine-table tbody tr:nth-child(even):hover td { background: rgba(255, 176, 32, .06); }
.ine-table td b, .ine-table td strong { color: var(--text-strong); }

/* ============================================================ forms */

form input, form textarea, form select, .sp-input, .inp {
    width: 100%;
    margin: 3px 0 9px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0b0b10;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
form textarea { resize: vertical; min-height: 84px; }
form input::placeholder, form textarea::placeholder { color: var(--dim); }
form input:focus, form textarea:focus, form select:focus, .inp:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 176, 32, .13);
    background: #0e0e14;
}

/* dostępność: widoczny focus dla nawigacji klawiaturą */
:focus-visible {
    outline: 2px solid rgba(255, 176, 32, .75);
    outline-offset: 2px;
}
/* pola formularzy mają własny, wyraźniejszy wskaźnik focusu */
form input:focus-visible, form textarea:focus-visible, form select:focus-visible,
.inp:focus-visible, .sp-input:focus-visible {
    outline: none;
}

/* ============================================================ scrollbary */

* { scrollbar-width: thin; scrollbar-color: rgba(255, 176, 32, .32) rgba(255, 255, 255, .04); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 176, 32, .28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 176, 32, .46); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
form label {
    display: block;
    margin: 10px 0 2px;
    font-size: 9.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dim);
}
form input[type="file"] { padding: 7px; font-size: 12px; }
form input[type="checkbox"] { width: auto; }
input[type="hidden"] { display: none; }

/* ============================================================ buttons */

.btn-ine, .btn-ghost, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .18s var(--ease), filter .18s, background .18s, border-color .18s;
    white-space: nowrap;
}
.btn-ine {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #1d1305;
    box-shadow: 0 8px 20px rgba(255, 138, 0, .18);
}
.btn-ine:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ine:active { transform: translateY(0); }
.btn-ghost {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-2); background: var(--surface-3); }
.btn-danger {
    background: rgba(255, 122, 107, .1);
    border-color: rgba(255, 122, 107, .3);
    color: #ffa89e;
}
.btn-danger:hover { background: rgba(255, 122, 107, .18); border-color: rgba(255, 122, 107, .5); }
.btn-ine.big { font-size: 14px; padding: 13px 22px; border-radius: 12px; }
.btn-ine.wide, .btn-ghost.wide { width: 100%; }
.btn-ine:disabled, .btn-ghost:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================ alerts */

.alert {
    padding: 11px 15px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.alert.ok-n { border-color: rgba(95, 224, 160, .28); background: rgba(95, 224, 160, .08); color: #b8f5d6; }
.alert.warn-n { border-color: rgba(255, 176, 32, .3); background: rgba(255, 176, 32, .08); color: #ffe0a3; }
.alert.bad-n { border-color: rgba(255, 122, 107, .3); background: rgba(255, 122, 107, .08); color: #ffb7ad; }

/* ============================================================ side menu */

.side-menu {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 5px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    width: fit-content;
    max-width: 100%;
}
.side-menu a {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: color .18s, background .18s, border-color .18s;
}
.side-menu a:hover { color: var(--text); background: var(--surface-3); }
.side-menu a.is-active, .side-menu a:hover.is-active {
    color: var(--gold-3);
    background: rgba(255, 176, 32, .1);
    border-color: var(--line-2);
}

/* ============================================================ links grid */

.ine-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 12px;
}
.ine-card-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 42px 16px 17px;
    transition: transform .28s var(--ease), border-color .25s, background .25s;
    animation: fadeUp .42s var(--ease-out) both;
}
.ine-card-link::after {
    content: "→";
    position: absolute;
    top: 15px;
    right: 16px;
    font-size: 14px;
    color: var(--dim);
    transition: color .2s, transform .25s var(--ease);
}
.ine-card-link b {
    display: block;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 3px;
}
.ine-card-link span { display: block; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ine-card-link:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    background: var(--surface-3);
}
.ine-card-link:hover::after { color: var(--gold); transform: translateX(3px); }

/* ============================================================ chat */

.chat-msg {
    position: relative;
    margin-bottom: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--line);
}
.chat-msg.admin { border-left-color: var(--gold); background: rgba(255, 176, 32, .05); }
.chat-msg.system {
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-left-width: 1px;
    background: rgba(255, 255, 255, .03);
    padding: 9px 14px;
}
.chat-msg.system p { text-align: center; color: var(--muted); font-size: 12px; }
.chat-msg.system .hud-meta { justify-content: center; }
.chat-msg b { font-size: 12px; }
.chat-msg pre, .chat-msg p {
    margin: 5px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
}
.chat-msg .hud-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 7px;
    font-size: 10px;
    color: var(--dim);
}
.read-receipt { margin-left: 10px; font-weight: 700; letter-spacing: .01em; }
.read-receipt.is-read { color: #9DF3C4; }
.read-receipt.is-unread { color: #FFD97A; }
.chat-upload { margin-top: 8px; }
.chat-upload img { max-width: 320px; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); }

/* ============================================================ ocena zgłoszenia */

.rating-box { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin: 2px 0 4px;
}
.rating-stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.rating-stars label {
    font-size: 30px;
    line-height: 1;
    color: rgba(255, 255, 255, .16);
    cursor: pointer;
    transition: color .15s ease, transform .15s ease, text-shadow .15s ease;
}
.rating-stars label:hover { transform: scale(1.1); }
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255, 176, 32, .45);
}
.rating-stars input:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
.rating-stars-static {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}
.rating-display { display: flex; flex-direction: column; gap: 7px; }
.rating-comment { font-size: 12.5px; font-style: italic; color: var(--text); line-height: 1.6; }
.rating-note { font-size: 11px; color: var(--dim); }

/* ============================================================ badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: var(--surface-3);
    color: var(--muted);
}
.badge.new { background: rgba(255, 176, 32, .1); color: var(--gold-3); border-color: rgba(255, 176, 32, .28); }
.badge.assigned { background: rgba(124, 196, 255, .1); color: #a6d8ff; border-color: rgba(124, 196, 255, .28); }
.badge.hold { background: rgba(255, 215, 122, .09); color: #ffe2a3; border-color: rgba(255, 215, 122, .25); }
.badge.closed, .badge.passed { background: rgba(95, 224, 160, .1); color: #b8f5d6; border-color: rgba(95, 224, 160, .28); }
.badge.rejected, .badge.failed, .badge.blacklist { background: rgba(255, 122, 107, .1); color: #ffb7ad; border-color: rgba(255, 122, 107, .28); }
.badge.queue, .badge.pending, .badge.in_progress { background: rgba(255, 255, 255, .05); color: var(--muted); }

/* ============================================================ misc */

.mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.empty { padding: 22px; text-align: center; color: var(--dim); font-size: 12.5px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ============================================================ footer */

.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 24px 16px 30px;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(155, 151, 168, .55);
    border-top: 1px solid var(--line);
}

/* ============================================================ login */

.login-shell {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}
.login-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 34px 30px;
    border-radius: 22px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, var(--surface-2), #0b0b11);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    text-align: center;
    animation: fadeUp .5s var(--ease-out) both;
}
.login-card img.login-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(255, 138, 0, .3));
}
.login-card h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-strong);
}
.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.login-badge {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 176, 32, .06);
}
.login-foot { margin-top: 22px; font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }

.login-card-wide { max-width: 560px; }

/* ============================================ ekran startowy — 3 duże kafelki */

.entry-body { overflow-x: hidden; }
.entry-screen {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vw, 26px);
    padding: clamp(18px, 3vw, 40px);
}
.entry-head { flex: 0 0 auto; text-align: center; }
.entry-head h1 {
    margin: 6px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text-strong);
}
.entry-head p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.6;
}

.entry-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.6vw, 22px);
}
.entry-tile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 2.4vw, 34px);
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: linear-gradient(160deg, var(--surface-2), #0b0b11 72%);
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: transform .28s var(--ease), border-color .22s, background .22s, box-shadow .28s;
}
.entry-tile:hover,
.entry-tile:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 176, 32, .55);
    background: linear-gradient(160deg, rgba(255, 176, 32, .09), #0b0b11 72%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 176, 32, .14) inset;
    outline: none;
}
.entry-tile-ico {
    flex: 0 0 auto;
    width: clamp(56px, 5vw, 76px);
    height: clamp(56px, 5vw, 76px);
    display: grid;
    place-items: center;
    font-size: clamp(26px, 2.6vw, 36px);
    border-radius: 18px;
    border: 1px solid rgba(255, 176, 32, .3);
    background: rgba(255, 176, 32, .09);
    color: var(--gold-3);
}
.entry-tile-ico .ico { width: 52%; height: 52%; }
.entry-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 18px);
    margin: 0 0 12px;
}
.entry-brand-mark {
    height: clamp(44px, 5vw, 64px);
    width: auto;
    max-width: 72px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(255, 138, 0, .3));
}
.entry-brand-div {
    width: 1px;
    height: clamp(34px, 4vw, 48px);
    background: linear-gradient(180deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.entry-brand-ine {
    height: clamp(26px, 2.8vw, 36px);
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(255, 160, 60, .3));
}
.entry-tile-body { display: block; }
.entry-tile-body b {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 800;
    color: var(--text-strong);
}
.entry-tile-body span {
    display: block;
    color: var(--muted);
    font-size: clamp(12px, 1.05vw, 14.5px);
    line-height: 1.6;
}
.entry-tile-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}
.entry-tile:hover .entry-tile-cta { color: var(--gold-3); }
.entry-foot {
    flex: 0 0 auto;
    text-align: center;
    font-size: 10.5px;
    color: var(--dim);
    letter-spacing: .06em;
}

/* ==================================================== skróty (w panelu) */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: 13px;
    background: linear-gradient(180deg, var(--surface-2), #0c0c12);
    color: inherit;
    text-decoration: none;
    transition: transform .24s var(--ease), border-color .2s;
}
.quick-action:hover { transform: translateY(-2px); border-color: rgba(255, 176, 32, .45); }
.quick-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 16px;
    border-radius: 10px;
    background: rgba(255, 176, 32, .08);
    border: 1px solid rgba(255, 176, 32, .22);
}
.quick-action b { display: block; font-size: 12.5px; color: var(--text-strong); }
.quick-action span span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

@media (max-width: 860px) {
    .entry-screen { gap: 16px; padding: 18px 14px 24px; }
    .entry-head p { font-size: 12.5px; }
    .entry-grid { flex: 0 0 auto; grid-template-columns: 1fr; }
    .entry-tile { min-height: 150px; padding: 18px; gap: 12px; border-radius: 18px; }
    .entry-tile-ico { width: 48px; height: 48px; font-size: 23px; border-radius: 14px; }
    .entry-tile-body b { font-size: 17px; margin-bottom: 5px; }
    .entry-tile-cta { padding-top: 12px; font-size: 10px; }
}
@media (max-height: 620px) and (min-width: 861px) {
    .entry-screen { gap: 14px; }
    .entry-head p { display: none; }
    .entry-tile { padding: 18px; gap: 10px; }
}
@media (max-width: 520px) {
    .login-card-wide { padding: 24px 18px; }
}

/* ============================================================ responsive */

@media (max-width: 760px) {
    .topbar { padding: 9px 14px; gap: 10px; }
    .tb-brand { gap: 9px; }
    .tb-logo-img { height: 28px; max-width: 150px; }
    .tb-logo-mark { height: 30px; max-width: 46px; }
    .tb-brand-div { height: 22px; }
    .tb-panel { display: none; }
    .tb-role { display: none; }
    .tb-profile { padding: 4px; }
    .tb-user { display: none; }
    .tb-logout { padding: 7px 10px; font-size: 11px; }
    .tb-quick { padding: 7px 9px; font-size: 11px; }
    .tb-quick span { display: none; }
    .ine-main { padding: 20px 13px 60px; }
    .ine-card { padding: 17px 15px; border-radius: 14px; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .ine-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===================================================== drag & drop (panel) */

.btn-mini { padding: 5px 11px; font-size: 11px; border-radius: 8px; }
.inline-form { display: inline-flex; margin: 0; }
.inline-form input, .inline-form button { margin: 0; }

.team-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 9px; }
.team-check {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--surface-2); cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--text);
    transition: border-color .18s, background .18s;
}
.team-check input { width: auto; margin: 0; accent-color: var(--gold); }
.team-check:hover { border-color: var(--line-2); }

.ac-list { margin-bottom: 16px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 8px; min-height: 20px; }
.ac-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 6px 5px 11px; border-radius: 9px;
    border: 1px solid rgba(255, 176, 32, .3); background: rgba(255, 176, 32, .07);
    font-size: 11.5px; color: var(--text);
}
.ac-chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; padding: 0; border: 0; border-radius: 5px;
    background: transparent; color: var(--dim); font-size: 10px; cursor: pointer;
    transition: color .15s, background .15s;
}
.ac-chip-x:hover { color: #fff; background: rgba(255, 122, 107, .55); }

.dnd-page { position: relative; }

.dnd-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
@media (max-width: 920px) { .dnd-layout { grid-template-columns: 1fr; } }

.dnd-catalog {
    position: sticky;
    top: 74px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 18px;
}
.dnd-catalog-head h3 { margin-bottom: 6px; }
.dnd-help { margin: 0 0 12px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.dnd-search { width: 100%; margin-bottom: 14px; }

.dnd-perm-groups { display: flex; flex-direction: column; gap: 14px; }

.perm-group { }
.perm-group.is-hidden { display: none; }
.perm-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-3);
}
.perm-group-title small {
    font-size: 9px;
    font-weight: 700;
    color: var(--dim);
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 7px;
}
.perm-group-desc { margin: 0 0 7px; font-size: 11px; color: var(--dim); line-height: 1.5; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.perm-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    cursor: grab;
    transition: border-color .18s, background .18s, transform .18s var(--ease), box-shadow .18s;
}
.perm-chip:active { cursor: grabbing; }
.perm-chip .perm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-chip code {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--dim);
    background: rgba(0, 0, 0, .25);
    border-radius: 5px;
    padding: 1px 5px;
}
.perm-dot {
    flex: 0 0 auto;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(255, 176, 32, .7);
}

.perm-chip.is-source { cursor: grab; }
.perm-chip.is-source:hover { border-color: var(--line-2); background: var(--surface-3); transform: translateY(-1px); }
.perm-chip.is-source.is-special { border-color: rgba(255, 122, 107, .4); }
.perm-chip.is-source.is-special .perm-dot { background: var(--danger); box-shadow: 0 0 8px rgba(255, 122, 107, .7); }
.perm-chip.is-hidden { display: none; }

.perm-chip.is-assigned { cursor: grab; border-color: rgba(255, 176, 32, .28); background: rgba(255, 176, 32, .07); }
.perm-chip.is-assigned .perm-dot { background: var(--ok); box-shadow: 0 0 7px rgba(95, 224, 160, .6); }
.perm-chip.is-custom { border-style: dashed; border-color: rgba(255, 176, 32, .34); }

.perm-grip {
    color: var(--dim);
    font-size: 12px;
    line-height: 1;
    letter-spacing: -1px;
    transform: translateY(-1px);
}
.perm-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px; height: 15px;
    margin-left: 1px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--dim);
    font-size: 9px;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.perm-x:hover { color: #fff; background: rgba(255, 122, 107, .5); }

.dnd-empty { padding: 14px; text-align: center; color: var(--dim); font-size: 12px; }

/* ------------------------------------------------------ board / role cards */

.dnd-board { min-width: 0; }
.dnd-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.dnd-board-head h3 { margin: 0 0 4px; }
.dnd-board-head p { margin: 0; font-size: 12px; color: var(--muted); }
.dnd-state {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 4px 11px;
    transition: color .2s, border-color .2s;
}
.dnd-state.is-ok { color: var(--ok); border-color: rgba(95, 224, 160, .35); }

.role-list { display: flex; flex-direction: column; gap: 12px; }

.role-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface), #0c0c12);
    padding: 14px 16px;
    transition: border-color .2s, background .2s, box-shadow .2s, opacity .2s;
}
.role-card:hover { border-color: rgba(255, 176, 32, .22); }
.role-card.is-locked { border-style: dashed; opacity: .9; }
.role-card.is-locked .drag-handle { cursor: not-allowed; }
.role-card.is-drop-before { box-shadow: 0 -3px 0 0 var(--gold); }
.role-card.is-drop-after { box-shadow: 0 3px 0 0 var(--gold); }
.role-card.is-dragging-src { opacity: .35; }

.role-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drag-handle {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    color: var(--dim);
    cursor: grab;
    padding: 2px 4px;
    user-select: none;
    transition: color .15s;
}
.drag-handle:hover { color: var(--gold-3); }
.drag-handle:active { cursor: grabbing; }
.role-title { display: flex; flex-direction: column; min-width: 0; }
.role-title b { font-family: var(--font-display); font-size: 14px; color: var(--text-strong); }
.role-title code { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.role-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-3);
    background: rgba(255, 176, 32, .1);
    border: 1px solid rgba(255, 176, 32, .28);
    border-radius: 999px;
    padding: 3px 9px;
}
.role-staff, .role-count { font-size: 10.5px; color: var(--muted); }
.role-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.role-perms {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .18);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    transition: border-color .18s, background .18s;
}
.role-perms.is-drop-hot {
    border-color: var(--gold);
    background: rgba(255, 176, 32, .07);
}
.role-drop-hint {
    flex: 1 1 100%;
    text-align: center;
    font-size: 10.5px;
    color: var(--dim);
    padding: 6px 0;
    pointer-events: none;
}

/* ------------------------------------------------------------ role editor */

.role-editor h3 { margin-bottom: 16px; }
.editor-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.editor-hint { font-size: 11px; color: var(--dim); }

.perm-picker { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.perm-chip.is-pick {
    cursor: pointer;
    border-color: var(--line);
    background: var(--surface-2);
    opacity: .72;
}
.perm-chip.is-pick:hover { opacity: 1; }
.perm-chip.is-pick.is-on {
    opacity: 1;
    border-color: rgba(255, 176, 32, .5);
    background: rgba(255, 176, 32, .14);
    box-shadow: 0 0 0 1px rgba(255, 176, 32, .2) inset;
}
.perm-chip.is-pick.is-on .perm-dot { background: var(--ok); box-shadow: 0 0 7px rgba(95, 224, 160, .6); }
.picker-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picker-count { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ----------------------------------------------------- staff board (admins) */

.role-drop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.role-drop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 10px;
    border: 1px dashed var(--line);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    cursor: default;
    transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.role-drop:hover { border-color: var(--line-2); }
.role-drop.is-drop-hot { border-color: var(--gold); background: rgba(255, 176, 32, .1); transform: translateY(-1px); }
.role-drop-count {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--gold-3);
    background: rgba(255, 176, 32, .12);
    border-radius: 999px;
    padding: 1px 8px;
}

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.staff-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface), #0c0c12);
    padding: 13px 14px;
    transition: border-color .2s, opacity .2s;
}
.staff-card:hover { border-color: rgba(255, 176, 32, .22); }
.staff-card.is-locked { border-style: dashed; }
.staff-card.is-dragging-src { opacity: .35; }
.staff-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.staff-title { display: flex; flex-direction: column; min-width: 0; }
.staff-title b { font-family: var(--font-display); font-size: 13.5px; color: var(--text-strong); }
.staff-title code { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.staff-role-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-3);
    background: rgba(255, 176, 32, .1);
    border: 1px solid rgba(255, 176, 32, .28);
    border-radius: 999px;
    padding: 3px 9px;
}
.staff-team { font-size: 10.5px; color: var(--muted); }
.staff-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.staff-perms {
    margin-top: 11px;
    padding: 9px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .18);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    transition: border-color .18s, background .18s;
}
.staff-perms.is-drop-hot { border-color: var(--gold); background: rgba(255, 176, 32, .07); }
.staff-perms-empty { flex: 1 1 100%; text-align: center; font-size: 10.5px; color: var(--dim); padding: 5px 0; pointer-events: none; }

/* ------------------------------------------------------------ dnd toast */

.dnd-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    max-width: min(360px, calc(100vw - 44px));
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-3);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.dnd-toast.is-show { opacity: 1; transform: none; }
.dnd-toast.is-ok { border-color: rgba(95, 224, 160, .35); color: #c6f5de; }
.dnd-toast.is-err { border-color: rgba(255, 122, 107, .4); color: #ffc4bd; }

body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.is-dragging-src { opacity: .35; }

/* ============================================ panel gracza — UI zgłoszeń */

.rp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}
.rp-stat {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface-2), #0b0b11);
}
.rp-stat::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gold-2), transparent);
    opacity: .75;
}
.rp-stat-ico {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--gold-3);
    background: rgba(255, 176, 32, .08);
    border: 1px solid rgba(255, 176, 32, .22);
}
.rp-stat-body { min-width: 0; }
.rp-stat-body b {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-strong);
    letter-spacing: -.02em;
}
.rp-stat-lab {
    display: block;
    margin-top: 2px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-alert-stack { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.rp-alert-stack .alert { margin-bottom: 0; }

.rp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.rp-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rp-col .ine-card { margin: 0; }
.rp-side .ine-card { border-color: rgba(255, 176, 32, .16); }

.rp-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.rp-section-head h3 { margin: 0; display: flex; align-items: center; gap: 7px; min-width: 0; }
.rp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 176, 32, .24);
    background: rgba(255, 176, 32, .07);
    color: var(--gold-3);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.rp-hint {
    margin: -4px 0 14px;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
}
.rp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 20px;
    text-align: center;
    border: 1px dashed var(--line-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .012);
}
.rp-empty-ico {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border-radius: 16px;
    color: var(--gold-3);
    background: rgba(255, 176, 32, .07);
    border: 1px solid rgba(255, 176, 32, .2);
}
.rp-empty b { font-size: 14px; color: var(--text-strong); }
.rp-empty > span:not(.rp-empty-ico) { max-width: 420px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.rp-empty .btn-ine { margin-top: 8px; }

.rp-table td { vertical-align: middle; }
.rp-table td:first-child { white-space: nowrap; color: var(--gold-3); }
.ine-card[id] { scroll-margin-top: 86px; }
@media (max-width: 760px) { .ine-card[id] { scroll-margin-top: 72px; } }

@media (max-width: 1020px) {
    .rp-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .rp-stats { gap: 8px; }
    .rp-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 11px 12px; }
    .rp-stat-ico { width: 30px; height: 30px; border-radius: 9px; }
    .rp-stat-body b { font-size: 18px; }
    .rp-stat-lab { font-size: 8.5px; letter-spacing: .08em; }
    .rp-empty { padding: 26px 14px; }
}
@media (max-width: 420px) {
    .rp-stat { padding: 10px; }
    .rp-stat-lab { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ==================================================== rekrutacja */
.recruit-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-3); margin-bottom: 4px;
}
.recruit-text { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.recruit-text ul, .recruit-text ol { margin: 4px 0 4px 18px; padding: 0; }
