/* Pracownik Wiśniewo — nowoczesna warstwa interfejsu 1.0 */
:root {
    color-scheme: light;
    --pw-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Segoe UI Variable", "Segoe UI", Inter, Roboto, Arial, sans-serif;
    --pw-bg: #eef3fb;
    --pw-bg-2: #f8faff;
    --pw-surface: rgba(255, 255, 255, .76);
    --pw-surface-solid: #ffffff;
    --pw-surface-strong: rgba(255, 255, 255, .92);
    --pw-surface-soft: rgba(248, 250, 255, .72);
    --pw-text: #172033;
    --pw-muted: #6d7890;
    --pw-faint: #96a0b3;
    --pw-border: rgba(31, 45, 72, .09);
    --pw-border-strong: rgba(31, 45, 72, .15);
    --pw-shadow: 0 18px 55px rgba(41, 58, 91, .12);
    --pw-shadow-soft: 0 8px 28px rgba(41, 58, 91, .09);
    --pw-blue: #3478f6;
    --pw-blue-2: #5b5cf6;
    --pw-cyan: #22b8cf;
    --pw-green: #25b67a;
    --pw-orange: #ff8b31;
    --pw-red: #ef476f;
    --pw-pink: #e754c6;
    --pw-radius-xl: 30px;
    --pw-radius-lg: 24px;
    --pw-radius-md: 18px;
    --pw-radius-sm: 13px;
    --pw-blur: 28px;

    /* Zgodność ze zmiennymi starego intranetu */
    --card-bg-color: var(--pw-surface);
    --text-color: var(--pw-text);
    --text-secondary-color: var(--pw-muted);
    --accent-color: var(--pw-blue);
    --accent-color-hover: #1f66e5;
    --border-color: var(--pw-border);
    --shadow-color: rgba(41, 58, 91, .12);
    --backdrop-blur: 28px;
    --calc-display-bg: rgba(52, 120, 246, .06);
}

html[data-pw-resolved="dark"] {
    color-scheme: dark;
    --pw-bg: #0d1320;
    --pw-bg-2: #131b2b;
    --pw-surface: rgba(25, 34, 52, .75);
    --pw-surface-solid: #182238;
    --pw-surface-strong: rgba(24, 34, 56, .94);
    --pw-surface-soft: rgba(21, 30, 48, .68);
    --pw-text: #f5f7ff;
    --pw-muted: #a8b3c8;
    --pw-faint: #7e8ba4;
    --pw-border: rgba(255, 255, 255, .09);
    --pw-border-strong: rgba(255, 255, 255, .16);
    --pw-shadow: 0 22px 65px rgba(0, 0, 0, .34);
    --pw-shadow-soft: 0 10px 34px rgba(0, 0, 0, .25);
    --pw-blue: #69a1ff;
    --pw-blue-2: #8b82ff;
    --card-bg-color: var(--pw-surface);
    --text-color: var(--pw-text);
    --text-secondary-color: var(--pw-muted);
    --accent-color: var(--pw-blue);
    --accent-color-hover: #8bb7ff;
    --border-color: var(--pw-border);
    --shadow-color: rgba(0, 0, 0, .34);
    --calc-display-bg: rgba(105, 161, 255, .10);
}

html {
    min-height: 100%;
    background: var(--pw-bg);
    scroll-behavior: smooth;
}

body.pw-modern,
body.pw-modern.dark-mode {
    min-height: 100vh !important;
    margin: 0 !important;
    color: var(--pw-text) !important;
    font-family: var(--pw-font) !important;
    font-feature-settings: "kern", "liga", "calt";
    background:
        radial-gradient(circle at 4% 0%, rgba(66, 133, 244, .20), transparent 29%),
        radial-gradient(circle at 98% 6%, rgba(136, 92, 246, .17), transparent 28%),
        radial-gradient(circle at 86% 92%, rgba(35, 190, 172, .12), transparent 30%),
        linear-gradient(135deg, var(--pw-bg-2), var(--pw-bg)) !important;
    background-attachment: fixed !important;
    background-size: auto !important;
    animation: none !important;
    transition: background .3s ease, color .3s ease !important;
}

body.pw-modern::before,
body.pw-modern::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    filter: blur(10px);
    border-radius: 50%;
    opacity: .58;
}

body.pw-modern::before {
    width: 340px;
    height: 340px;
    left: -160px;
    top: 30%;
    background: linear-gradient(145deg, rgba(52, 120, 246, .18), rgba(91, 92, 246, .04));
}

body.pw-modern::after {
    width: 420px;
    height: 420px;
    right: -220px;
    bottom: -100px;
    background: linear-gradient(145deg, rgba(231, 84, 198, .12), rgba(34, 184, 207, .12));
}

body.pw-modern *,
body.pw-modern *::before,
body.pw-modern *::after {
    box-sizing: border-box;
}

body.pw-modern a {
    -webkit-tap-highlight-color: transparent;
}

body.pw-modern .intranet-container {
    width: min(1560px, calc(100% - 32px)) !important;
    max-width: 1560px !important;
    margin: 0 auto !important;
    padding: 16px 0 52px !important;
}

/* Górny pasek */
body.pw-modern .intranet-container > header,
body.pw-modern > header,
body.pw-modern header.pw-enhanced-header {
    position: sticky !important;
    top: 14px !important;
    z-index: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 72px !important;
    margin: 0 0 18px !important;
    padding: 11px 14px 11px 18px !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 25px !important;
    color: var(--pw-text) !important;
    background: var(--pw-surface-strong) !important;
    box-shadow: var(--pw-shadow-soft) !important;
    backdrop-filter: saturate(150%) blur(var(--pw-blur)) !important;
    -webkit-backdrop-filter: saturate(150%) blur(var(--pw-blur)) !important;
}

body.pw-modern .logo a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--pw-text) !important;
    text-decoration: none !important;
}

body.pw-modern .logo i {
    display: grid !important;
    width: 46px !important;
    height: 46px !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 15px !important;
    color: #fff !important;
    font-size: 20px !important;
    background: linear-gradient(145deg, var(--pw-blue), var(--pw-blue-2)) !important;
    box-shadow: 0 10px 25px rgba(52, 120, 246, .28) !important;
}

body.pw-modern .logo h1 {
    margin: 0 !important;
    font-family: var(--pw-font) !important;
    font-size: clamp(17px, 1.6vw, 22px) !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
}

body.pw-modern .logo .pw-logo-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--pw-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

body.pw-modern .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    flex-wrap: wrap !important;
}

body.pw-modern #weather-widget,
body.pw-modern .pw-clock,
body.pw-modern .pw-header-button,
body.pw-modern .theme-switcher,
body.pw-modern .user-info {
    min-height: 44px !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 15px !important;
    background: var(--pw-surface-soft) !important;
    box-shadow: none !important;
}

body.pw-modern #weather-widget {
    padding: 7px 12px !important;
    color: var(--pw-text) !important;
}

body.pw-modern .pw-clock {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    white-space: nowrap;
}

body.pw-modern .pw-clock strong {
    font-size: 13px;
}

body.pw-modern .pw-clock span {
    color: var(--pw-muted);
    font-size: 11px;
}

body.pw-modern .pw-header-button,
body.pw-modern .theme-switcher {
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    place-items: center !important;
    color: var(--pw-text) !important;
    cursor: pointer !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
}

body.pw-modern .pw-header-button:hover,
body.pw-modern .theme-switcher:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 120, 246, .25) !important;
    background: rgba(52, 120, 246, .10) !important;
}

body.pw-modern .user-profile {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.pw-modern .user-info {
    padding: 7px 11px !important;
    color: var(--pw-text) !important;
    cursor: pointer !important;
}

body.pw-modern .user-info i {
    display: grid !important;
    width: 31px !important;
    height: 31px !important;
    padding: 0 !important;
    place-items: center !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    background: linear-gradient(145deg, var(--pw-blue), var(--pw-blue-2)) !important;
}

body.pw-modern .admin-panel .user-info {
    width: 44px !important;
    padding: 6px !important;
}

body.pw-modern .admin-panel .user-info i {
    width: 30px !important;
    height: 30px !important;
    color: var(--pw-text) !important;
    background: transparent !important;
}

body.pw-modern .user-dropdown {
    display: block !important;
    visibility: hidden !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 235px !important;
    padding: 8px !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 18px !important;
    opacity: 0 !important;
    transform: translateY(-6px) scale(.98) !important;
    color: var(--pw-text) !important;
    background: var(--pw-surface-strong) !important;
    box-shadow: var(--pw-shadow) !important;
    backdrop-filter: blur(var(--pw-blur)) !important;
    -webkit-backdrop-filter: blur(var(--pw-blur)) !important;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease !important;
}

body.pw-modern .user-profile:hover .user-dropdown,
body.pw-modern .user-profile:focus-within .user-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

body.pw-modern .user-dropdown li a {
    min-height: 42px !important;
    padding: 9px 11px !important;
    border-radius: 12px !important;
    color: var(--pw-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.pw-modern .user-dropdown li a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pw-blue), var(--pw-blue-2)) !important;
}

/* Powitanie */
body.pw-modern .pw-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 190px;
    margin-bottom: 18px;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--pw-border);
    border-radius: var(--pw-radius-xl);
    background:
        radial-gradient(circle at 92% 0%, rgba(91, 92, 246, .22), transparent 36%),
        radial-gradient(circle at 76% 100%, rgba(34, 184, 207, .13), transparent 34%),
        var(--pw-surface);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(var(--pw-blur));
    -webkit-backdrop-filter: blur(var(--pw-blur));
}

body.pw-modern .pw-hero::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -70px;
    width: 260px;
    height: 260px;
    border: 36px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

body.pw-modern .pw-eyebrow {
    margin-bottom: 10px;
    color: var(--pw-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

body.pw-modern .pw-hero h2 {
    max-width: 820px;
    margin: 0 0 10px !important;
    color: var(--pw-text) !important;
    font-family: var(--pw-font) !important;
    font-size: clamp(31px, 4.2vw, 58px) !important;
    font-weight: 800 !important;
    letter-spacing: -.055em !important;
    line-height: .98 !important;
}

body.pw-modern .pw-hero p {
    max-width: 730px;
    margin: 0 !important;
    color: var(--pw-muted) !important;
    font-size: clamp(13px, 1.3vw, 16px) !important;
    line-height: 1.55 !important;
}

body.pw-modern .pw-hero-date {
    position: relative;
    z-index: 1;
    min-width: 150px;
    padding: 18px;
    border: 1px solid var(--pw-border);
    border-radius: 21px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
}

body.pw-modern .pw-hero-date strong {
    display: block;
    font-size: 36px;
    letter-spacing: -.05em;
}

body.pw-modern .pw-hero-date span {
    color: var(--pw-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

/* Układy i karty */
body.pw-modern main {
    position: relative;
    z-index: 1;
}

body.pw-modern .main-layout,
body.pw-modern .panel-layout {
    gap: 18px !important;
}

body.pw-modern .main-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(310px, .78fr) !important;
}

body.pw-modern .card,
body.pw-modern .feed-post,
body.pw-modern .dashboard-card,
body.pw-modern .menu-item,
body.pw-modern .tile,
body.pw-modern .calculator-card,
body.pw-modern .document-card {
    color: var(--pw-text) !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: var(--pw-radius-lg) !important;
    background: var(--pw-surface) !important;
    box-shadow: var(--pw-shadow-soft) !important;
    backdrop-filter: saturate(135%) blur(var(--pw-blur)) !important;
    -webkit-backdrop-filter: saturate(135%) blur(var(--pw-blur)) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

body.pw-modern .card,
body.pw-modern .feed-post {
    padding: clamp(20px, 2.4vw, 30px) !important;
    margin-bottom: 18px !important;
}

body.pw-modern .card:hover,
body.pw-modern .feed-post:hover,
body.pw-modern .menu-item:hover,
body.pw-modern .tile:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 120, 246, .18) !important;
    box-shadow: var(--pw-shadow) !important;
}

body.pw-modern .card-header,
body.pw-modern .post-header {
    gap: 13px !important;
}

body.pw-modern .card-header {
    margin-bottom: 20px !important;
}

body.pw-modern .card-header i,
body.pw-modern .card-title i,
body.pw-modern .item-icon {
    color: var(--pw-blue) !important;
}

body.pw-modern .card-header h1,
body.pw-modern .card-header h2,
body.pw-modern .card-title h1,
body.pw-modern .card-title h2,
body.pw-modern h1,
body.pw-modern h2,
body.pw-modern h3 {
    color: var(--pw-text) !important;
    font-family: var(--pw-font) !important;
    letter-spacing: -.025em !important;
}

body.pw-modern .post-avatar,
body.pw-modern .item-icon {
    border: 1px solid rgba(52, 120, 246, .12) !important;
    background: linear-gradient(145deg, rgba(52, 120, 246, .17), rgba(91, 92, 246, .10)) !important;
}

body.pw-modern .post-avatar {
    width: 48px !important;
    height: 48px !important;
    color: var(--pw-blue) !important;
    font-size: 16px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

body.pw-modern .post-author-name {
    color: var(--pw-text) !important;
    font-weight: 750 !important;
}

body.pw-modern .post-timestamp,
body.pw-modern .item-text span,
body.pw-modern .card-content small {
    color: var(--pw-muted) !important;
}

body.pw-modern .post-body p {
    color: var(--pw-text) !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
}

body.pw-modern .post-body img {
    border-radius: 18px !important;
    box-shadow: var(--pw-shadow-soft);
}

body.pw-modern .post-attachment {
    padding: 13px !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 15px !important;
    background: var(--pw-surface-soft) !important;
}

body.pw-modern .card-content li,
body.pw-modern .compact-list-item {
    min-height: 58px !important;
    padding: 12px 4px !important;
    border-bottom: 1px solid var(--pw-border) !important;
}

body.pw-modern .compact-list-item {
    padding-inline: 10px !important;
}

body.pw-modern .card-content a,
body.pw-modern .compact-list a {
    color: var(--pw-text) !important;
}

body.pw-modern .status-badge {
    border: 1px solid rgba(52, 120, 246, .15) !important;
    border-radius: 999px !important;
    color: var(--pw-blue) !important;
    background: rgba(52, 120, 246, .10) !important;
}

/* Kafelki menu */
body.pw-modern .menu-grid,
body.pw-modern .dashboard-grid,
body.pw-modern .tiles-grid {
    gap: 16px !important;
}

body.pw-modern .menu-item,
body.pw-modern .tile {
    position: relative !important;
    overflow: hidden !important;
    min-height: 142px !important;
    padding: 20px !important;
    text-decoration: none !important;
}

body.pw-modern .menu-item::after,
body.pw-modern .tile::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(52, 120, 246, .08);
}

/* Przyciski i formularze */
body.pw-modern button,
body.pw-modern .button,
body.pw-modern .action-button,
body.pw-modern input[type="submit"] {
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    font-family: var(--pw-font) !important;
    font-size: 13px !important;
    font-weight: 720 !important;
    letter-spacing: -.01em !important;
    box-shadow: none !important;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}

body.pw-modern .button:not(.secondary),
body.pw-modern .action-button.edit,
body.pw-modern input[type="submit"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--pw-blue), var(--pw-blue-2)) !important;
    box-shadow: 0 9px 24px rgba(52, 120, 246, .20) !important;
}

body.pw-modern .button.secondary {
    color: var(--pw-text) !important;
    border-color: var(--pw-border) !important;
    background: var(--pw-surface-soft) !important;
}

body.pw-modern .action-button.delete {
    color: #fff !important;
    background: linear-gradient(135deg, #ef476f, #d9365e) !important;
}

body.pw-modern button:hover,
body.pw-modern .button:hover,
body.pw-modern .action-button:hover,
body.pw-modern input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

body.pw-modern input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.pw-modern select,
body.pw-modern textarea {
    width: 100%;
    min-height: 46px !important;
    padding: 10px 13px !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 13px !important;
    outline: none !important;
    color: var(--pw-text) !important;
    font-family: var(--pw-font) !important;
    font-size: 14px !important;
    background: var(--pw-surface-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease !important;
}

body.pw-modern textarea {
    min-height: 115px !important;
    resize: vertical;
}

body.pw-modern input:focus,
body.pw-modern select:focus,
body.pw-modern textarea:focus {
    border-color: rgba(52, 120, 246, .52) !important;
    box-shadow: 0 0 0 4px rgba(52, 120, 246, .11) !important;
    background: var(--pw-surface-strong) !important;
}

body.pw-modern label {
    color: var(--pw-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Tabele */
body.pw-modern .pw-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--pw-border);
    border-radius: 17px;
    background: var(--pw-surface-soft);
}

body.pw-modern table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: var(--pw-text) !important;
    background: transparent !important;
}

body.pw-modern th {
    padding: 13px 14px !important;
    border-bottom: 1px solid var(--pw-border-strong) !important;
    color: var(--pw-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    background: rgba(52, 120, 246, .045) !important;
}

body.pw-modern td {
    padding: 13px 14px !important;
    border-bottom: 1px solid var(--pw-border) !important;
    color: var(--pw-text) !important;
    font-size: 13px !important;
}

body.pw-modern tbody tr:last-child td {
    border-bottom: none !important;
}

body.pw-modern tbody tr:hover td {
    background: rgba(52, 120, 246, .04) !important;
}

/* Modale */
body.pw-modern .modal-overlay {
    padding: 18px !important;
    background: rgba(5, 10, 20, .52) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

body.pw-modern .modal-content {
    width: min(720px, 100%) !important;
    max-height: min(86vh, 900px) !important;
    padding: clamp(22px, 3vw, 34px) !important;
    overflow: auto !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 25px !important;
    color: var(--pw-text) !important;
    background: var(--pw-surface-strong) !important;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .35) !important;
}

body.pw-modern .modal-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--pw-muted) !important;
    font-size: 25px !important;
    background: var(--pw-surface-soft);
}

/* Paleta poleceń */
body.pw-modern .pw-command-overlay {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: min(12vh, 100px) 16px 24px;
    background: rgba(7, 12, 22, .47);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.pw-modern .pw-command-overlay.is-open {
    display: flex;
}

body.pw-modern .pw-command {
    width: min(680px, 100%);
    overflow: hidden;
    border: 1px solid var(--pw-border);
    border-radius: 25px;
    background: var(--pw-surface-strong);
    box-shadow: 0 34px 110px rgba(0, 0, 0, .40);
}

body.pw-modern .pw-command-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--pw-border);
}

body.pw-modern .pw-command-search input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.pw-modern .pw-command-list {
    max-height: 55vh;
    padding: 8px;
    overflow-y: auto;
}

body.pw-modern .pw-command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--pw-text);
    text-decoration: none;
}

body.pw-modern .pw-command-item:hover,
body.pw-modern .pw-command-item.is-active {
    background: rgba(52, 120, 246, .10);
}

body.pw-modern .pw-command-item small {
    color: var(--pw-muted);
}

/* Dolny dock */
body.pw-modern .pw-dock {
    position: fixed;
    z-index: 880;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100vw - 24px);
    padding: 7px;
    border: 1px solid var(--pw-border);
    border-radius: 20px;
    background: var(--pw-surface-strong);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(var(--pw-blur));
    -webkit-backdrop-filter: blur(var(--pw-blur));
    transform: translateX(-50%);
}

body.pw-modern .pw-dock a {
    display: grid;
    min-width: 52px;
    height: 48px;
    padding: 5px 9px;
    place-items: center;
    gap: 2px;
    border-radius: 14px;
    color: var(--pw-muted);
    text-decoration: none;
    transition: transform .16s ease, color .16s ease, background .16s ease;
}

body.pw-modern .pw-dock a:hover,
body.pw-modern .pw-dock a.is-current {
    color: var(--pw-blue);
    background: rgba(52, 120, 246, .10);
    transform: translateY(-3px);
}

body.pw-modern .pw-dock svg {
    width: 19px;
    height: 19px;
}

body.pw-modern .pw-dock span {
    max-width: 86px;
    overflow: hidden;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Login */
body.pw-login-page {
    display: grid !important;
    min-height: 100vh !important;
    place-items: center !important;
    padding: 22px !important;
}

body.pw-login-page .intranet-container,
body.pw-login-page > .container,
body.pw-login-page > main {
    width: min(1040px, 100%) !important;
    padding: 0 !important;
}

body.pw-login-page header,
body.pw-login-page .pw-dock,
body.pw-login-page .pw-hero {
    display: none !important;
}

body.pw-login-page .pw-login-shell {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid var(--pw-border);
    border-radius: 34px;
    background: var(--pw-surface);
    box-shadow: 0 34px 120px rgba(27, 41, 73, .24);
    backdrop-filter: blur(var(--pw-blur));
    -webkit-backdrop-filter: blur(var(--pw-blur));
}

body.pw-login-page .pw-login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 5vw, 58px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.20), transparent 28%),
        linear-gradient(145deg, #3478f6, #5b5cf6 58%, #22b8cf);
}

body.pw-login-page .pw-login-brand::after {
    content: "";
    position: absolute;
    right: -95px;
    top: -80px;
    width: 290px;
    height: 290px;
    border: 42px solid rgba(255,255,255,.11);
    border-radius: 50%;
}

body.pw-login-page .pw-login-brand h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: clamp(39px, 5vw, 68px) !important;
    font-weight: 820 !important;
    letter-spacing: -.06em !important;
    line-height: .96 !important;
}

body.pw-login-page .pw-login-brand p {
    position: relative;
    z-index: 1;
    max-width: 450px;
    margin: 0;
    color: rgba(255,255,255,.80);
    line-height: 1.62;
}

body.pw-login-page .pw-login-form {
    display: flex;
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
    background: var(--pw-surface-strong);
}

body.pw-login-page .pw-login-form > * {
    width: 100%;
}

body.pw-login-page form {
    width: 100% !important;
    max-width: 410px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Animacje */
body.pw-modern .pw-reveal {
    animation: pwReveal .42s cubic-bezier(.22,.8,.24,1) both;
    animation-delay: var(--pw-delay, 0ms);
}

@keyframes pwReveal {
    from { opacity: 0; transform: translateY(12px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.pw-modern .pw-page-progress {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 0;
    height: 3px;
    opacity: 0;
    background: linear-gradient(90deg, var(--pw-blue), var(--pw-blue-2), var(--pw-cyan));
    box-shadow: 0 0 16px rgba(52,120,246,.35);
    transition: width .22s ease, opacity .22s ease;
}

/* Scrollbar */
body.pw-modern * {
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 123, 148, .38) transparent;
}

body.pw-modern *::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

body.pw-modern *::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(110, 123, 148, .36);
    background-clip: padding-box;
}

/* Responsywność */
@media (max-width: 1050px) {
    body.pw-modern .main-layout {
        grid-template-columns: 1fr !important;
    }

    body.pw-modern .pw-hero {
        grid-template-columns: 1fr;
    }

    body.pw-modern .pw-hero-date {
        display: none;
    }
}

@media (max-width: 760px) {
    body.pw-modern .intranet-container {
        width: min(100% - 18px, 1560px) !important;
        padding-top: 9px !important;
        padding-bottom: 78px !important;
    }

    body.pw-modern .intranet-container > header,
    body.pw-modern > header {
        top: 7px !important;
        min-height: 64px !important;
        padding: 9px 10px !important;
        border-radius: 20px !important;
    }

    body.pw-modern .logo i {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
    }

    body.pw-modern .logo h1 {
        font-size: 16px !important;
    }

    body.pw-modern .logo .pw-logo-subtitle,
    body.pw-modern #weather-widget,
    body.pw-modern .pw-clock,
    body.pw-modern .user-info span {
        display: none !important;
    }

    body.pw-modern .pw-hero {
        min-height: 150px;
        padding: 25px 22px;
        border-radius: 24px;
    }

    body.pw-modern .pw-hero h2 {
        font-size: 36px !important;
    }

    body.pw-modern .card,
    body.pw-modern .feed-post {
        padding: 19px !important;
        border-radius: 21px !important;
    }

    body.pw-modern .panel-layout {
        grid-template-columns: 1fr !important;
    }

    body.pw-modern .compact-list-item {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.pw-modern .pw-dock span {
        display: none;
    }

    body.pw-modern .pw-dock a {
        min-width: 45px;
        width: 45px;
        padding: 4px;
    }

    body.pw-login-page .pw-login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.pw-login-page .pw-login-brand {
        min-height: 210px;
        padding: 28px;
    }

    body.pw-login-page .pw-login-brand h1 {
        font-size: 42px !important;
    }

    body.pw-login-page .pw-login-form {
        padding: 30px 24px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pw-modern *,
    body.pw-modern *::before,
    body.pw-modern *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   Pracownik Wiśniewo 1.1 — poprawki po testach
   ========================================================= */

/* Usunięte elementy: wyszukiwarka, zegar i wielki panel powitalny */
body.pw-modern .pw-command-overlay,
body.pw-modern .pw-clock,
body.pw-modern .pw-hero,
body.pw-modern .pw-search-button {
    display: none !important;
}

/* Stabilny przycisk motywu z własną ikoną SVG */
body.pw-modern #theme-toggle,
body.pw-modern .pw-login-theme {
    position: relative !important;
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 14px !important;
    color: var(--pw-text) !important;
    background: var(--pw-surface-soft) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

body.pw-modern #theme-toggle i,
body.pw-modern #theme-toggle::before,
body.pw-modern #theme-toggle::after {
    display: none !important;
    content: none !important;
}

body.pw-modern #theme-toggle svg,
body.pw-modern .pw-login-theme svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    stroke: currentColor !important;
}

/* Nagłówek po usunięciu wyszukiwarki i zegara */
body.pw-modern .header-right {
    gap: 8px !important;
}

body.pw-modern .intranet-container > header,
body.pw-modern > header {
    margin-bottom: 18px !important;
}

/* Ogłoszenia: kompaktowe, schludne i bez ogromnych grafik */
body.pw-modern .news-feed {
    min-width: 0 !important;
}

body.pw-modern .feed-post {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px !important;
}

body.pw-modern .post-header {
    margin-bottom: 14px !important;
}

body.pw-modern .post-body {
    min-width: 0 !important;
}

body.pw-modern .post-body p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
}

body.pw-modern .post-body img,
body.pw-modern .feed-post img:not(.post-avatar img) {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    margin: 17px auto 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 1px solid var(--pw-border) !important;
    border-radius: 17px !important;
    background: var(--pw-surface-soft) !important;
    box-shadow: 0 10px 28px rgba(35, 50, 82, .10) !important;
}

body.pw-modern .post-attachment {
    margin-top: 14px !important;
}

/* Przy szerokości typowego laptopa nadal pokazuj kolumnę boczną. */
@media (min-width: 901px) and (max-width: 1050px) {
    body.pw-modern .main-layout {
        grid-template-columns: minmax(0, 1.48fr) minmax(270px, .72fr) !important;
    }
}

@media (max-width: 900px) {
    body.pw-modern .main-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    body.pw-modern .feed-post {
        padding: 17px !important;
    }

    body.pw-modern .post-body img,
    body.pw-modern .feed-post img:not(.post-avatar img) {
        max-height: 340px !important;
        border-radius: 14px !important;
    }
}

/* =========================================================
   Nowy, niezależny ekran logowania
   ========================================================= */
body.pw-login-page {
    display: grid !important;
    min-height: 100vh !important;
    padding: 22px !important;
    place-items: center !important;
    overflow-x: hidden !important;
}

body.pw-login-page > :not(.pw-login-v2) {
    display: none !important;
}

body.pw-login-page .pw-login-v2 {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
    width: min(940px, 100%);
    min-height: 580px;
    overflow: hidden;
    border: 1px solid var(--pw-border);
    border-radius: 31px;
    background: var(--pw-surface-strong);
    box-shadow: 0 34px 105px rgba(30, 44, 76, .22);
    backdrop-filter: blur(var(--pw-blur));
    -webkit-backdrop-filter: blur(var(--pw-blur));
}

body.pw-login-page .pw-login-brand-v2 {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(30px, 5vw, 52px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 8%, rgba(255,255,255,.20), transparent 29%),
        radial-gradient(circle at 10% 100%, rgba(34,184,207,.35), transparent 38%),
        linear-gradient(145deg, #3478f6 0%, #5964f5 58%, #22aeca 100%);
}

body.pw-login-page .pw-login-brand-v2::after {
    content: "";
    position: absolute;
    right: -85px;
    top: -85px;
    width: 260px;
    height: 260px;
    border: 38px solid rgba(255,255,255,.10);
    border-radius: 50%;
}

body.pw-login-page .pw-login-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 19px;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.04em;
    background: rgba(255,255,255,.15);
    box-shadow: 0 16px 38px rgba(21, 47, 116, .20);
    backdrop-filter: blur(14px);
}

body.pw-login-page .pw-login-copy {
    position: relative;
    z-index: 1;
}

body.pw-login-page .pw-login-copy small {
    display: block;
    margin-bottom: 13px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.pw-login-page .pw-login-copy h1 {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: clamp(37px, 5vw, 60px) !important;
    font-weight: 820 !important;
    letter-spacing: -.06em !important;
    line-height: .98 !important;
}

body.pw-login-page .pw-login-copy p {
    max-width: 390px;
    margin: 0 !important;
    color: rgba(255,255,255,.80) !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
}

body.pw-login-page .pw-login-panel-v2 {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: clamp(30px, 5vw, 56px);
    background: var(--pw-surface-strong);
}

body.pw-login-page .pw-login-theme {
    position: absolute !important;
    right: 18px;
    top: 18px;
    z-index: 3;
}

body.pw-login-page .pw-login-card-v2 {
    width: min(390px, 100%);
    margin: 0 auto;
}

body.pw-login-page .pw-login-card-v2 > header {
    position: static !important;
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 27px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.pw-login-page .pw-login-card-v2 .pw-login-symbol {
    display: grid;
    width: 49px;
    height: 49px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, var(--pw-blue), var(--pw-blue-2));
    box-shadow: 0 12px 28px rgba(52,120,246,.24);
}

body.pw-login-page .pw-login-card-v2 .pw-login-symbol svg {
    width: 23px;
    height: 23px;
}

body.pw-login-page .pw-login-card-v2 h2 {
    margin: 0 0 7px !important;
    color: var(--pw-text) !important;
    font-size: 28px !important;
    font-weight: 790 !important;
    letter-spacing: -.045em !important;
}

body.pw-login-page .pw-login-card-v2 header p {
    margin: 0 !important;
    color: var(--pw-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Zerowanie starego wyglądu formularza logowania */
body.pw-login-page .pw-login-card-v2 form,
body.pw-login-page .pw-login-card-v2 form * {
    max-width: 100%;
}

body.pw-login-page .pw-login-card-v2 form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.pw-login-page .pw-login-card-v2 form > h1,
body.pw-login-page .pw-login-card-v2 form > h2,
body.pw-login-page .pw-login-card-v2 form > h3,
body.pw-login-page .pw-login-card-v2 form img,
body.pw-login-page .pw-login-card-v2 form .owl,
body.pw-login-page .pw-login-card-v2 form .mascot,
body.pw-login-page .pw-login-card-v2 form .login-logo {
    display: none !important;
}

body.pw-login-page .pw-login-card-v2 form .input-group,
body.pw-login-page .pw-login-card-v2 form .form-group,
body.pw-login-page .pw-login-card-v2 form .input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 15px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.pw-login-page .pw-login-card-v2 form .input-group > i,
body.pw-login-page .pw-login-card-v2 form .input-wrapper > i,
body.pw-login-page .pw-login-card-v2 form .form-group > i {
    display: none !important;
}

body.pw-login-page .pw-login-card-v2 form label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--pw-text) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

body.pw-login-page .pw-login-card-v2 form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.pw-login-page .pw-login-card-v2 form select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 0 15px !important;
    padding: 0 15px !important;
    border: 1px solid var(--pw-border-strong) !important;
    border-radius: 14px !important;
    color: var(--pw-text) !important;
    font-size: 14px !important;
    line-height: 50px !important;
    text-indent: 0 !important;
    background: var(--pw-surface-soft) !important;
    box-shadow: none !important;
}

body.pw-login-page .pw-login-card-v2 form input::placeholder {
    color: var(--pw-faint) !important;
    opacity: 1 !important;
}

body.pw-login-page .pw-login-card-v2 form input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-height: 0 !important;
    margin: 0 8px 0 0 !important;
    accent-color: var(--pw-blue);
    vertical-align: middle;
}

body.pw-login-page .pw-login-card-v2 form input[type="checkbox"] + label,
body.pw-login-page .pw-login-card-v2 form label:has(input[type="checkbox"]) {
    display: inline-flex !important;
    align-items: center !important;
    margin: 1px 0 18px !important;
    color: var(--pw-text) !important;
    font-size: 13px !important;
}

body.pw-login-page .pw-login-card-v2 form button[type="submit"],
body.pw-login-page .pw-login-card-v2 form input[type="submit"] {
    display: block !important;
    width: 100% !important;
    min-height: 49px !important;
    margin-top: 5px !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    background: linear-gradient(135deg, var(--pw-blue), var(--pw-blue-2)) !important;
    box-shadow: 0 12px 28px rgba(52,120,246,.22) !important;
}

body.pw-login-page .pw-login-message {
    margin-bottom: 15px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(239,71,111,.22) !important;
    border-radius: 12px !important;
    color: #d83a62 !important;
    font-size: 13px !important;
    background: rgba(239,71,111,.08) !important;
}

@media (max-width: 760px) {
    body.pw-login-page {
        padding: 12px !important;
        place-items: start center !important;
    }

    body.pw-login-page .pw-login-v2 {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 25px;
    }

    body.pw-login-page .pw-login-brand-v2 {
        min-height: 190px;
        padding: 25px;
    }

    body.pw-login-page .pw-login-mark {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    body.pw-login-page .pw-login-copy h1 {
        margin-top: 25px !important;
        font-size: 36px !important;
    }

    body.pw-login-page .pw-login-copy p {
        display: none;
    }

    body.pw-login-page .pw-login-panel-v2 {
        padding: 34px 23px 30px;
    }
}


/* =========================================================
   Pracownik Wiśniewo 1.2 — AURORA / BENTO / EDITORIAL FEED
   ========================================================= */

:root {
    --pw-aurora-a: rgba(68, 120, 255, .34);
    --pw-aurora-b: rgba(125, 91, 255, .26);
    --pw-aurora-c: rgba(0, 204, 190, .20);
    --pw-aurora-d: rgba(255, 94, 160, .14);
    --pw-feed-accent: linear-gradient(135deg, #377dff, #7767ff 56%, #22c2c7);
}

html[data-pw-resolved="dark"] {
    --pw-aurora-a: rgba(60, 124, 255, .25);
    --pw-aurora-b: rgba(129, 89, 255, .22);
    --pw-aurora-c: rgba(0, 197, 182, .16);
    --pw-aurora-d: rgba(255, 85, 154, .10);
}

/* Warstwowe, subtelnie animowane tło */
body.pw-modern {
    isolation: isolate;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -25%, rgba(255,255,255,.95), transparent 42%),
        linear-gradient(145deg, var(--pw-bg-2), var(--pw-bg)) !important;
}

html[data-pw-resolved="dark"] body.pw-modern {
    background:
        radial-gradient(circle at 50% -25%, rgba(62,84,135,.20), transparent 40%),
        linear-gradient(145deg, var(--pw-bg-2), var(--pw-bg)) !important;
}

body.pw-modern .pw-ambient-bg {
    position: fixed;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

body.pw-modern .pw-ambient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 78%);
}

body.pw-modern .pw-ambient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: .82;
    will-change: transform;
}

body.pw-modern .pw-ambient-orb:nth-child(1) {
    width: 38vw;
    height: 38vw;
    min-width: 380px;
    min-height: 380px;
    left: -12vw;
    top: -12vw;
    background: var(--pw-aurora-a);
    animation: pwAuroraOne 18s ease-in-out infinite alternate;
}

body.pw-modern .pw-ambient-orb:nth-child(2) {
    width: 34vw;
    height: 34vw;
    min-width: 340px;
    min-height: 340px;
    right: -8vw;
    top: 10vh;
    background: var(--pw-aurora-b);
    animation: pwAuroraTwo 22s ease-in-out infinite alternate;
}

body.pw-modern .pw-ambient-orb:nth-child(3) {
    width: 32vw;
    height: 32vw;
    min-width: 330px;
    min-height: 330px;
    left: 34vw;
    bottom: -18vw;
    background: var(--pw-aurora-c);
    animation: pwAuroraThree 24s ease-in-out infinite alternate;
}

body.pw-modern .pw-ambient-orb:nth-child(4) {
    width: 23vw;
    height: 23vw;
    min-width: 250px;
    min-height: 250px;
    right: 16vw;
    bottom: 4vh;
    background: var(--pw-aurora-d);
    animation: pwAuroraFour 16s ease-in-out infinite alternate;
}

@keyframes pwAuroraOne {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(13vw, 8vh, 0) scale(1.12); }
}

@keyframes pwAuroraTwo {
    0%   { transform: translate3d(0, 0, 0) scale(1.05); }
    100% { transform: translate3d(-12vw, 16vh, 0) scale(.92); }
}

@keyframes pwAuroraThree {
    0%   { transform: translate3d(0, 0, 0) scale(.95); }
    100% { transform: translate3d(-12vw, -16vh, 0) scale(1.13); }
}

@keyframes pwAuroraFour {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(8vw, -12vh, 0) scale(1.18); }
}

/* Główny kontener i nagłówek */
body.pw-modern .intranet-container {
    width: min(1500px, calc(100% - 38px)) !important;
    padding-top: 18px !important;
}

body.pw-modern .intranet-container > header,
body.pw-modern > header {
    min-height: 70px !important;
    padding: 10px 12px 10px 15px !important;
    border-color: rgba(255,255,255,.42) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58)) !important;
    box-shadow:
        0 16px 44px rgba(41, 57, 91, .12),
        inset 0 1px 0 rgba(255,255,255,.72) !important;
}

html[data-pw-resolved="dark"] body.pw-modern .intranet-container > header,
html[data-pw-resolved="dark"] body.pw-modern > header {
    border-color: rgba(255,255,255,.09) !important;
    background:
        linear-gradient(135deg, rgba(24,34,56,.88), rgba(19,28,47,.72)) !important;
    box-shadow:
        0 18px 48px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
}

/* Tytuł sekcji nad ogłoszeniami */
body.pw-modern .pw-feed-heading {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 17px;
    padding: 24px 26px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 25px;
    background:
        radial-gradient(circle at 92% 0%, rgba(115,91,255,.18), transparent 36%),
        radial-gradient(circle at 68% 130%, rgba(34,194,199,.16), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.62));
    box-shadow:
        0 18px 45px rgba(38,55,91,.11),
        inset 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
}

html[data-pw-resolved="dark"] body.pw-modern .pw-feed-heading {
    border-color: rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 92% 0%, rgba(115,91,255,.19), transparent 36%),
        radial-gradient(circle at 68% 130%, rgba(34,194,199,.12), transparent 35%),
        linear-gradient(135deg, rgba(25,35,57,.88), rgba(19,28,46,.73));
    box-shadow:
        0 18px 50px rgba(0,0,0,.26),
        inset 0 1px 0 rgba(255,255,255,.05);
}

body.pw-modern .pw-feed-heading::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -70px;
    width: 200px;
    height: 200px;
    border: 28px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

body.pw-modern .pw-feed-heading-copy {
    position: relative;
    z-index: 1;
}

body.pw-modern .pw-feed-heading small {
    display: block;
    margin-bottom: 6px;
    color: var(--pw-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.pw-modern .pw-feed-heading h2 {
    margin: 0 0 5px !important;
    font-size: clamp(24px, 2.3vw, 34px) !important;
    font-weight: 810 !important;
    letter-spacing: -.045em !important;
}

body.pw-modern .pw-feed-heading p {
    max-width: 640px;
    margin: 0 !important;
    color: var(--pw-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body.pw-modern .pw-feed-count {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 86px;
    min-height: 74px;
    padding: 10px;
    place-items: center;
    border: 1px solid var(--pw-border);
    border-radius: 19px;
    text-align: center;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(14px);
}

body.pw-modern .pw-feed-count strong {
    display: block;
    color: var(--pw-text);
    font-size: 24px;
    letter-spacing: -.05em;
}

body.pw-modern .pw-feed-count span {
    color: var(--pw-muted);
    font-size: 10px;
    font-weight: 750;
}

/* Układ główny */
body.pw-modern .main-layout {
    grid-template-columns: minmax(0, 1.78fr) minmax(285px, .72fr) !important;
    align-items: start !important;
    gap: 18px !important;
}

/* Karty boczne w stylu bento */
body.pw-modern .sidebar .card,
body.pw-modern aside .card {
    position: relative !important;
    overflow: hidden !important;
    border-color: rgba(255,255,255,.45) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.80), rgba(255,255,255,.58)) !important;
    box-shadow:
        0 16px 42px rgba(40,56,89,.10),
        inset 0 1px 0 rgba(255,255,255,.70) !important;
}

html[data-pw-resolved="dark"] body.pw-modern .sidebar .card,
html[data-pw-resolved="dark"] body.pw-modern aside .card {
    border-color: rgba(255,255,255,.08) !important;
    background:
        linear-gradient(145deg, rgba(26,36,58,.87), rgba(19,28,46,.73)) !important;
    box-shadow:
        0 18px 46px rgba(0,0,0,.24),
        inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.pw-modern .sidebar .card::after,
body.pw-modern aside .card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -62px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(52,120,246,.12), rgba(119,103,255,.04));
}

body.pw-modern .sidebar .card:nth-child(2n)::after,
body.pw-modern aside .card:nth-child(2n)::after {
    background: linear-gradient(145deg, rgba(34,194,199,.14), rgba(52,120,246,.04));
}

/* =========================================================
   Ogłoszenia — nowy układ editorial
   ========================================================= */

body.pw-modern .news-feed {
    display: grid !important;
    gap: 18px !important;
}

body.pw-modern .feed-post {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-color: rgba(255,255,255,.48) !important;
    border-radius: 27px !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.62)) !important;
    box-shadow:
        0 18px 52px rgba(38,55,91,.11),
        inset 0 1px 0 rgba(255,255,255,.76) !important;
    backdrop-filter: blur(28px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

html[data-pw-resolved="dark"] body.pw-modern .feed-post {
    border-color: rgba(255,255,255,.08) !important;
    background:
        linear-gradient(145deg, rgba(26,36,58,.90), rgba(19,28,46,.75)) !important;
    box-shadow:
        0 20px 55px rgba(0,0,0,.27),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.pw-modern .feed-post::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--pw-feed-accent);
}

body.pw-modern .feed-post:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 26px 68px rgba(38,55,91,.16),
        inset 0 1px 0 rgba(255,255,255,.76) !important;
}

body.pw-modern .feed-post.pw-has-media {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 39%) !important;
    align-items: stretch !important;
}

body.pw-modern .feed-post.pw-media-left {
    grid-template-columns: minmax(285px, 39%) minmax(0, 1fr) !important;
}

body.pw-modern .feed-post.pw-media-left .pw-post-content {
    order: 2;
}

body.pw-modern .feed-post.pw-media-left .pw-post-media {
    order: 1;
}

body.pw-modern .pw-post-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 25px 27px 26px 30px;
}

body.pw-modern .pw-post-media {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    border-left: 1px solid var(--pw-border);
    background:
        radial-gradient(circle at 50% 30%, rgba(52,120,246,.15), transparent 45%),
        var(--pw-surface-soft);
}

body.pw-modern .pw-media-left .pw-post-media {
    border-right: 1px solid var(--pw-border);
    border-left: 0;
}

body.pw-modern .pw-post-media::after {
    content: "Kliknij, aby powiększyć";
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    opacity: 0;
    background: rgba(10,16,28,.58);
    backdrop-filter: blur(12px);
    transition: opacity .18s ease, transform .18s ease;
    transform: translateY(4px);
}

body.pw-modern .pw-post-media:hover::after {
    opacity: 1;
    transform: translateY(0);
}

body.pw-modern .pw-post-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 270px !important;
    max-height: 410px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    cursor: zoom-in;
    background: var(--pw-surface-soft) !important;
    box-shadow: none !important;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

body.pw-modern .pw-post-media:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

body.pw-modern .post-header {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 17px !important;
}

body.pw-modern .post-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 15px !important;
    color: #fff !important;
    background: var(--pw-feed-accent) !important;
    box-shadow: 0 10px 24px rgba(52,120,246,.22) !important;
}

body.pw-modern .post-author-name {
    font-size: 14px !important;
    font-weight: 780 !important;
}

body.pw-modern .post-timestamp {
    margin-top: 3px !important;
    font-size: 11px !important;
}

body.pw-modern .pw-post-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.pw-modern .pw-post-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid rgba(52,120,246,.14);
    border-radius: 999px;
    color: var(--pw-blue);
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(52,120,246,.08);
}

body.pw-modern .pw-post-badge.is-new {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #25b67a, #1fa6c1);
    box-shadow: 0 7px 17px rgba(37,182,122,.19);
}

body.pw-modern .post-body {
    color: var(--pw-text) !important;
}

body.pw-modern .post-body p {
    margin: 0 0 13px !important;
    color: var(--pw-text) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

body.pw-modern .post-body p:first-child {
    font-size: 15px !important;
    font-weight: 560 !important;
    line-height: 1.65 !important;
}

body.pw-modern .post-body a {
    color: var(--pw-blue) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.pw-modern .post-body a:hover {
    text-decoration: underline !important;
}

body.pw-modern .post-attachment {
    margin-top: 15px !important;
    border-color: rgba(52,120,246,.12) !important;
    background: rgba(52,120,246,.055) !important;
}

/* Ogłoszenie bez zdjęcia */
body.pw-modern .feed-post:not(.pw-has-media) .pw-post-content {
    padding-right: clamp(28px, 6vw, 70px);
}

body.pw-modern .feed-post:not(.pw-has-media)::after {
    content: "";
    position: absolute;
    right: -64px;
    top: -72px;
    width: 220px;
    height: 220px;
    border: 34px solid rgba(52,120,246,.045);
    border-radius: 50%;
}

/* Pierwsze ogłoszenie delikatnie wyróżnione */
body.pw-modern .feed-post.pw-featured {
    border-color: rgba(72,118,255,.20) !important;
    box-shadow:
        0 24px 68px rgba(48,75,139,.16),
        inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body.pw-modern .feed-post.pw-featured::before {
    width: 7px;
}

/* Lightbox */
body.pw-modern .pw-lightbox {
    position: fixed;
    z-index: 7000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(7,12,22,.75);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

body.pw-modern .pw-lightbox.is-open {
    display: flex;
}

body.pw-modern .pw-lightbox img {
    display: block;
    max-width: min(94vw, 1500px);
    max-height: 90vh;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255,255,255,.05);
    box-shadow: 0 38px 120px rgba(0,0,0,.52);
}

body.pw-modern .pw-lightbox-close {
    position: fixed;
    right: 22px;
    top: 20px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 15px !important;
    color: #fff !important;
    font-size: 25px !important;
    background: rgba(15,22,36,.55) !important;
    backdrop-filter: blur(14px);
}

/* MacOS dock z mocniejszym efektem */
body.pw-modern .pw-dock {
    padding: 7px 9px !important;
    border-color: rgba(255,255,255,.46) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.64)) !important;
    box-shadow:
        0 20px 55px rgba(34,49,80,.17),
        inset 0 1px 0 rgba(255,255,255,.74) !important;
}

html[data-pw-resolved="dark"] body.pw-modern .pw-dock {
    border-color: rgba(255,255,255,.09) !important;
    background:
        linear-gradient(135deg, rgba(25,35,56,.91), rgba(18,27,45,.78)) !important;
}

body.pw-modern .pw-dock a {
    transition:
        transform .18s cubic-bezier(.2,.9,.2,1.2),
        color .18s ease,
        background .18s ease !important;
}

body.pw-modern .pw-dock a:hover {
    transform: translateY(-7px) scale(1.10) !important;
}

/* Responsywność ogłoszeń */
@media (max-width: 1060px) {
    body.pw-modern .main-layout {
        grid-template-columns: minmax(0, 1fr) minmax(255px, .58fr) !important;
    }

    body.pw-modern .feed-post.pw-has-media,
    body.pw-modern .feed-post.pw-media-left {
        grid-template-columns: minmax(0, 1fr) minmax(245px, 36%) !important;
    }
}

@media (max-width: 900px) {
    body.pw-modern .main-layout {
        grid-template-columns: 1fr !important;
    }

    body.pw-modern .feed-post.pw-has-media,
    body.pw-modern .feed-post.pw-media-left {
        grid-template-columns: 1fr !important;
    }

    body.pw-modern .feed-post.pw-media-left .pw-post-content,
    body.pw-modern .feed-post.pw-media-left .pw-post-media {
        order: initial;
    }

    body.pw-modern .pw-post-media,
    body.pw-modern .pw-media-left .pw-post-media {
        min-height: 250px;
        border-top: 1px solid var(--pw-border);
        border-right: 0;
        border-left: 0;
    }

    body.pw-modern .pw-post-media img {
        min-height: 250px !important;
        max-height: 390px !important;
    }
}

@media (max-width: 650px) {
    body.pw-modern .intranet-container {
        width: min(100% - 16px, 1500px) !important;
    }

    body.pw-modern .pw-feed-heading {
        align-items: flex-start;
        padding: 20px;
        border-radius: 22px;
    }

    body.pw-modern .pw-feed-count {
        min-width: 68px;
        min-height: 62px;
    }

    body.pw-modern .pw-feed-count strong {
        font-size: 21px;
    }

    body.pw-modern .pw-post-content {
        padding: 21px 20px 22px 23px;
    }

    body.pw-modern .post-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.pw-modern .pw-post-badges {
        grid-column: 1 / -1;
        padding-left: 57px;
    }

    body.pw-modern .pw-post-media,
    body.pw-modern .pw-post-media img {
        min-height: 210px !important;
    }

    body.pw-modern .pw-lightbox {
        padding: 12px;
    }

    body.pw-modern .pw-lightbox img {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pw-modern .pw-ambient-orb {
        animation: none !important;
    }
}


/* =========================================================
   Pracownik Wiśniewo 1.3 — poprawka układu aktualności
   ========================================================= */

/*
 * Nagłówek aktualności znajduje się teraz wewnątrz .news-feed.
 * Dzięki temu .main-layout nadal ma dokładnie dwie kolumny:
 * aktualności po lewej i panel boczny po prawej.
 */
body.pw-modern .news-feed > .pw-feed-heading {
    width: 100% !important;
    margin: 0 0 1px !important;
}

/* Główna kolumna aktualności nigdy nie może zostać ściśnięta do szerokości panelu bocznego. */
body.pw-modern .main-layout > .news-feed {
    grid-column: 1 !important;
    min-width: 0 !important;
}

body.pw-modern .main-layout > .sidebar,
body.pw-modern .main-layout > aside {
    grid-column: 2 !important;
    min-width: 0 !important;
}

/* Czytelniejsza proporcja karty ogłoszenia. */
body.pw-modern .feed-post.pw-has-media {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important;
}

body.pw-modern .feed-post.pw-media-left {
    grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr) !important;
}

body.pw-modern .pw-post-content {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: center;
}

/*
 * Zdjęcie nie jest już brutalnie przycinane.
 * Rozmyta kopia tworzy tło, a właściwy obraz pokazuje się w całości.
 */
body.pw-modern .pw-post-media {
    isolation: isolate;
    display: grid !important;
    min-height: 310px !important;
    padding: 18px !important;
    place-items: center !important;
    background:
        radial-gradient(circle at 50% 25%, rgba(52,120,246,.13), transparent 50%),
        var(--pw-surface-soft) !important;
}

body.pw-modern .pw-post-media > .pw-post-media-backdrop {
    position: absolute !important;
    z-index: 0 !important;
    inset: -10% !important;
    display: block !important;
    width: 120% !important;
    height: 120% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: .30 !important;
    object-fit: cover !important;
    filter: blur(24px) saturate(1.16) !important;
    transform: scale(1.08) !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

html[data-pw-resolved="dark"] body.pw-modern .pw-post-media > .pw-post-media-backdrop {
    opacity: .22 !important;
}

body.pw-modern .pw-post-media > .pw-post-media-image {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 355px !important;
    margin: 0 auto !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    background: rgba(255,255,255,.10) !important;
    box-shadow: 0 18px 44px rgba(10,20,42,.22) !important;
    transform: none !important;
}

body.pw-modern .pw-post-media:hover > .pw-post-media-image {
    transform: translateY(-3px) scale(1.012) !important;
}

/* Znaczniki nie ściskają nazwiska i daty autora. */
body.pw-modern .post-header {
    grid-template-columns: auto minmax(150px, 1fr) auto !important;
}

body.pw-modern .post-author,
body.pw-modern .post-info,
body.pw-modern .post-meta {
    min-width: 0 !important;
}

body.pw-modern .post-author-name {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body.pw-modern .pw-post-badges {
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Panel boczny wraca na właściwe miejsce i pozostaje przyklejony na dużym ekranie. */
@media (min-width: 901px) {
    body.pw-modern .main-layout > .sidebar,
    body.pw-modern .main-layout > aside {
        position: sticky;
        top: 102px;
        align-self: start;
    }
}

@media (max-width: 1060px) {
    body.pw-modern .feed-post.pw-has-media,
    body.pw-modern .feed-post.pw-media-left {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr) !important;
    }

    body.pw-modern .pw-post-content {
        min-height: 285px;
    }

    body.pw-modern .pw-post-media {
        min-height: 285px !important;
    }

    body.pw-modern .pw-post-media > .pw-post-media-image {
        max-height: 325px !important;
    }
}

@media (max-width: 900px) {
    body.pw-modern .main-layout > .news-feed,
    body.pw-modern .main-layout > .sidebar,
    body.pw-modern .main-layout > aside {
        grid-column: 1 !important;
    }

    body.pw-modern .main-layout > .sidebar,
    body.pw-modern .main-layout > aside {
        position: static;
    }

    body.pw-modern .feed-post.pw-has-media,
    body.pw-modern .feed-post.pw-media-left {
        grid-template-columns: 1fr !important;
    }

    body.pw-modern .pw-post-content {
        min-height: 0;
    }

    body.pw-modern .pw-post-media {
        min-height: 250px !important;
    }

    body.pw-modern .pw-post-media > .pw-post-media-image {
        max-height: 370px !important;
    }
}

@media (max-width: 650px) {
    body.pw-modern .post-header {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    body.pw-modern .pw-post-media {
        min-height: 220px !important;
        padding: 13px !important;
    }

    body.pw-modern .pw-post-media > .pw-post-media-image {
        max-height: 320px !important;
        border-radius: 13px !important;
    }
}


/* Pracownik Wiśniewo 1.4 — formatowana treść ogłoszeń */
body.pw-modern .announcement-title {
    margin: 0 0 12px !important;
    color: var(--pw-text) !important;
    font-size: clamp(21px, 2.2vw, 29px) !important;
    font-weight: 820 !important;
    letter-spacing: -.045em !important;
    line-height: 1.16 !important;
}

body.pw-modern .announcement-rich-content {
    color: var(--pw-text);
    font-size: 14px;
    line-height: 1.72;
}

body.pw-modern .announcement-rich-content > :first-child { margin-top: 0 !important; }
body.pw-modern .announcement-rich-content > :last-child { margin-bottom: 0 !important; }
body.pw-modern .announcement-rich-content p { margin: 0 0 .82em !important; }
body.pw-modern .announcement-rich-content h2 {
    margin: .9em 0 .35em !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
}
body.pw-modern .announcement-rich-content h3 {
    margin: .85em 0 .35em !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}
body.pw-modern .announcement-rich-content h4 {
    margin: .8em 0 .3em !important;
    font-size: 15px !important;
}
body.pw-modern .announcement-rich-content ul,
body.pw-modern .announcement-rich-content ol {
    margin: .7em 0 .9em 1.55em !important;
}
body.pw-modern .announcement-rich-content li { margin: .26em 0; }
body.pw-modern .announcement-rich-content blockquote {
    margin: .9em 0 !important;
    padding: 12px 15px !important;
    border-left: 4px solid var(--pw-blue);
    border-radius: 0 12px 12px 0;
    color: var(--pw-muted);
    background: rgba(52,120,246,.06);
}
body.pw-modern .announcement-rich-content a {
    color: var(--pw-blue) !important;
    font-weight: 720 !important;
}

body.pw-modern .feed-post.announcement-category-wazne::before {
    background: linear-gradient(#ef476f, #ff8b31) !important;
}
body.pw-modern .feed-post.announcement-category-termin::before {
    background: linear-gradient(#ff8b31, #ffca4b) !important;
}
body.pw-modern .feed-post.announcement-category-awaria::before {
    background: linear-gradient(#9b62f6, #7767ff) !important;
}
body.pw-modern .feed-post.announcement-pinned {
    border-color: rgba(255,139,49,.24) !important;
}


/* =========================================================
   Intranet Wiśniewo 2.0
   ========================================================= */

/* Login: wyłącznie pojedynczy panel, bez niebieskiej kolumny. */
body.pw-login-single-page .pw-login-v2.pw-login-single {
    display: block !important;
    width: min(500px, 100%) !important;
    min-height: 0 !important;
    border-radius: 29px !important;
}

body.pw-login-single-page .pw-login-v2.pw-login-single .pw-login-panel-v2 {
    min-height: 560px !important;
    padding: clamp(34px, 6vw, 62px) !important;
}

body.pw-login-single-page .pw-login-card-v2 {
    width: 100% !important;
    max-width: 390px !important;
}

body.pw-login-single-page .pw-login-eyebrow {
    margin-bottom: 7px;
    color: var(--pw-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Dock zawiera także dawne „Szybkie linki”. */
body.pw-modern .pw-dock.pw-dock-expanded {
    max-width: min(calc(100vw - 330px), 1050px);
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    scrollbar-width: none;
}

body.pw-modern .pw-dock.pw-dock-expanded::-webkit-scrollbar {
    display: none;
}

body.pw-modern .pw-dock.pw-dock-expanded a {
    flex: 0 0 auto;
}

@media (max-width: 920px) {
    body.pw-modern .pw-dock.pw-dock-expanded {
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 620px) {
    body.pw-login-single-page .pw-login-v2.pw-login-single .pw-login-panel-v2 {
        min-height: calc(100vh - 24px) !important;
        padding: 34px 23px !important;
    }
}
