      :root {
        --brand-900: #015198;
        --brand-800: #003d7a;
        --brand-700: #0b5ca9;
        --brand-100: #eef6ff;
        --brand-50: #f5faff;
        --gold: #d7c39a;
        --ink: #101828;
      }

      html { scroll-behavior: smooth; }
      body {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(180deg, #f7fbff 0%, #edf3ff 100%);
        color: var(--ink);
      }

      .display-font { font-family: 'Cormorant Garamond', serif; }
      .luxury-bg {
        background: linear-gradient(120deg, rgba(1, 81, 152, 0.96), rgba(9, 87, 154, 0.9), rgba(4, 56, 111, 0.82));
      }
      .gold-line {
        background: linear-gradient(90deg, rgba(215,195,154,0), rgba(215,195,154,0.9), rgba(215,195,154,0));
        height: 1px;
      }
      .btn-primary {
        background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
        color: white;
        box-shadow: 0 18px 40px rgba(1,81,152,0.18);
      }
      .btn-secondary {
        background: rgba(255,255,255,0.08);
        color: white;
        border: 1px solid rgba(255,255,255,0.2);
      }
      .card-hover {
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
      }
      .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 48px rgba(1,81,152,0.12);
        border-color: rgba(1,81,152,0.2);
      }
      .nav-link::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width 0.25s ease;
        margin-top: 5px;
      }
      .nav-link:hover::after { width: 100%; }
      .stat-number { color: var(--gold); }

      body.edit-mode-on [contenteditable="true"] {
        outline: 1px dashed rgba(1, 81, 152, 0.4);
        outline-offset: 2px;
        border-radius: 4px;
        cursor: text;
      }
      body.edit-mode-on [contenteditable="true"]:hover {
        outline-color: rgba(1, 81, 152, 0.8);
        background: rgba(1, 81, 152, 0.05);
      }
      body.edit-mode-on [contenteditable="true"]:focus {
        outline: 2px solid #015198;
        background: rgba(1, 81, 152, 0.08);
      }
      .edit-mode-remove-btn {
        position: absolute;
        top: -10px;
        right: -10px;
        width: 26px;
        height: 26px;
        border-radius: 9999px;
        background: #dc2626;
        color: white;
        border: 2px solid white;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
      }
      .edit-mode-card {
        position: relative;
      }
      .edit-mode-order-controls {
        position: absolute;
        top: -10px;
        left: -10px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 20;
      }
      .edit-mode-order-btn {
        width: 26px;
        height: 26px;
        border-radius: 9999px;
        background: #0f172a;
        color: white;
        border: 2px solid white;
        font-size: 11px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .edit-mode-order-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
      .news-quill-wrap { border-radius: 0.5rem; overflow: hidden; border: 1px solid rgba(1, 81, 152, 0.4); }
      .news-quill-wrap .ql-toolbar { border: none; border-bottom: 1px solid rgba(1, 81, 152, 0.25); background: #f8fafc; }
      .news-quill-wrap .ql-container { border: none; font-family: 'Inter', sans-serif; font-size: 14px; }
      .news-lead-quill .ql-editor { min-height: 50px; }
      .news-content-quill .ql-editor { min-height: 160px; }
      .news-fullscreen-backdrop {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(15, 23, 42, 0.6);
        display: none;
      }
      .news-fullscreen-backdrop.visible { display: block; }
      .news-fullscreen-panel {
        background: #f8fafc;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
      }
      .news-fullscreen-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
      }
      .news-fullscreen-close {
        width: 36px;
        height: 36px;
        border-radius: 9999px;
        background: #f1f5f9;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #334155;
      }
      .news-fullscreen-close:hover { background: #e2e8f0; }
      .news-fullscreen-body {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        display: grid;
        grid-template-columns: minmax(260px, 340px) 1fr;
        gap: 1.5rem;
        align-content: start;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
      }
      @media (max-width: 900px) {
        .news-fullscreen-body { grid-template-columns: 1fr; }
      }
      .news-fullscreen-footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        background: white;
        border-top: 1px solid #e2e8f0;
        flex-shrink: 0;
      }
      .news-modal-lead-quill .ql-editor { min-height: 90px; }
      .news-modal-content-quill .ql-editor { min-height: 45vh; }
      .edit-mode-add-btn {
        border: 2px dashed rgba(1, 81, 152, 0.4);
        color: #015198;
        border-radius: 1rem;
        padding: 1rem;
        font-weight: 600;
        cursor: pointer;
        background: rgba(1, 81, 152, 0.04);
        width: 100%;
      }
      .edit-mode-image-btn {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(15, 23, 42, 0.85);
        color: white;
        border: none;
        padding: 8px 14px;
        border-radius: 9999px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        z-index: 20;
      }
      .edit-mode-select {
        border: 1px dashed rgba(1, 81, 152, 0.4);
        border-radius: 6px;
        padding: 2px 6px;
        font: inherit;
        background: white;
      }
      .rich-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
      .rich-text img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 0.5rem 0; display: block; }
      .nav-editor-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 0.5rem 0.6rem;
      }
      .nav-editor-row input {
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
        min-width: 0;
      }
      .nav-editor-row input.nav-editor-label { flex: 1 1 30%; }
      .nav-editor-row input.nav-editor-href { flex: 1 1 45%; font-family: monospace; }
      .nav-editor-row input:focus { outline: none; border-color: #015198; box-shadow: 0 0 0 3px rgba(1,81,152,0.14); }
      .rich-toolbar {
        position: absolute;
        z-index: 70;
        display: none;
        gap: 4px;
        background: #0f172a;
        padding: 6px;
        border-radius: 10px;
        box-shadow: 0 14px 34px rgba(0,0,0,0.28);
      }
      .rich-toolbar.visible { display: flex; }
      .rich-toolbar button {
        background: rgba(255,255,255,0.12);
        color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
      }
      .rich-toolbar button:hover { background: rgba(255,255,255,0.24); }
      .link-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 80;
        padding: 16px;
      }
      .link-modal-backdrop.visible { display: flex; }
      .link-modal {
        background: white;
        border-radius: 1rem;
        padding: 1.5rem;
        width: min(420px, 100%);
        box-shadow: 0 30px 60px rgba(0,0,0,0.3);
      }
      .link-modal h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; color: var(--ink); }
      .link-modal label { display: block; font-size: 0.8125rem; font-weight: 600; color: #334155; margin-bottom: 0.75rem; }
      .link-modal-input {
        width: 100%;
        margin-top: 0.25rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        padding: 0.5rem 0.65rem;
        font: inherit;
      }
      .link-modal-input:focus { outline: none; border-color: #015198; box-shadow: 0 0 0 3px rgba(1,81,152,0.14); }
      .link-modal-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
      .link-modal-actions-right { display: flex; gap: 0.5rem; margin-left: auto; }
      .link-modal-actions button {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 0.8125rem;
        border: none;
        cursor: pointer;
      }
      #link-modal-cancel, #image-modal-cancel { background: #e2e8f0; color: #334155; }
      #link-modal-cancel:hover, #image-modal-cancel:hover { background: #cbd5e1; }
      #link-modal-confirm, #image-modal-confirm { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: white; }
      #link-modal-confirm:hover, #image-modal-confirm:hover { opacity: 0.9; }
      #link-modal-confirm:disabled, #image-modal-confirm:disabled { opacity: 0.6; cursor: not-allowed; }
      /* Wyższy z-index niż .news-fullscreen-backdrop (200) i .link-modal-backdrop (80) — biblioteka
         mediów musi dać się otworzyć znad obu tych modali (np. z okna edycji aktualności/kierunku,
         albo z modala wstawiania obrazu w tekście). */
      .media-library-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 300;
        padding: 16px;
      }
      .media-library-backdrop.visible { display: flex; }
      .media-library-modal {
        background: white;
        border-radius: 1rem;
        width: min(760px, 100%);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 30px 60px rgba(0,0,0,0.3);
      }
      .media-library-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
      }
      .media-library-header h3 { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
      .media-library-tabs { display: flex; gap: 0.5rem; padding: 1rem 1.5rem 0; flex-shrink: 0; }
      .media-library-tab {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem 0.5rem 0 0;
        font-weight: 600;
        font-size: 0.8125rem;
        border: none;
        cursor: pointer;
        background: #f1f5f9;
        color: #64748b;
      }
      .media-library-tab-active { background: white; color: #015198; box-shadow: inset 0 -2px 0 #015198; }
      .media-library-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem 1.5rem; }
      .media-library-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
      }
      .media-library-item {
        position: relative;
        border-radius: 0.75rem;
        overflow: hidden;
        border: 2px solid transparent;
        cursor: pointer;
        aspect-ratio: 1;
        background: #f1f5f9;
        padding: 0;
      }
      .media-library-item:hover { border-color: var(--brand-900); }
      .media-library-item img, .media-library-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
      .link-modal-delete { background: #fee2e2; color: #b91c1c; }
      .link-modal-delete:hover { background: #fecaca; }
      .link-modal-status { font-size: 0.75rem; color: #64748b; min-height: 1em; margin: -0.4rem 0 0.75rem; }
      #image-modal-preview-wrap { margin-bottom: 0.75rem; }
      #image-modal-preview { max-width: 100%; max-height: 220px; border-radius: 0.5rem; display: block; margin: 0 auto; }
      body.edit-mode-on .rich-text img {
        cursor: pointer;
        outline: 2px dashed transparent;
        outline-offset: 2px;
        transition: outline-color 0.15s ease;
      }
      body.edit-mode-on .rich-text img:hover { outline-color: rgba(1, 81, 152, 0.6); }
      body.edit-mode-on .rich-text a { cursor: pointer; }

      /* Honeypot antyspamowy w formularzu "Aplikuj" — ukryty dla ludzi (poza ekranem, nie
         display:none, żeby nie było to trywialne do wykrycia), boty często wypełniają
         każde pole formularza niezależnie od tego, jak jest ukryte. */
      .hp-field {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
      }
