:root {
    --color-primary: #005EFE;
    --color-primary-light: #eaf6ff;
    --color-primary-dark: #003e9e;
    --color-accent: #2ecc40;
    --color-accent-dark: #27ae60;
    --color-bg: #f6fafd;
    --color-bg-gradient: linear-gradient(90deg, #5594ff 0%, #3880fc 20%, #005EFE 100%);
    --color-btn-gradient: linear-gradient(90deg, #005EFE 0%, #2196f3 100%);
    --color-btn-gradient-hover: linear-gradient(90deg, #005EFE 0%, #2196f3 100%);
    --color-table-row-hover: #f3f7fa;
    --color-checkbox: #2ecc40;
    --color-checkbox-dark: #27ae60;
    --color-text: #222;
    --color-text-light: #bbb;
    --color-error: #e74c3c;
    --radius-main: 14px;
    --radius-btn: 120px;
    --radius-small: 6px;
    --shadow-main: 0 2px 8px #005efe22;
    --shadow-btn: 0 2px 8px #005efe22;
    --shadow-btn-hover: 0 8px 32px #005efe44;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body,
html {
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg-gradient);
    min-height: 100vh;
    padding: 32px;
    padding-bottom: 40px;
    margin: 0;
}

.container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px #0000002a;
    overflow: hidden
}

.header {
    background: transparent;
    color: #fff;
    padding: 80px 0 0 0;
    text-align: center;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

nav {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px #0001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    margin: 0 auto 32px auto;
    width: 100%;
    position: relative;
    top: -32px;
}

.nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 24px;
}

.nav-links__group {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.nav-group-toggle {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
    min-width: 160px;
}

.nav-group-toggle__label {
    font-size: 14px;
    font-weight: 600;
}

.nav-group-toggle__chevron {
    font-size: 0.85em;
    transition: transform 0.18s ease;
}

.nav-links__group--open .nav-group-toggle__chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    z-index: 40;
    flex-direction: column;
    gap: 8px;
}

.nav-links__group--open .nav-dropdown {
    display: flex;
}

.nav-dropdown .nav-tab {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
    font-size: 13px;
    padding: 9px 14px;
}

.nav-dropdown .nav-tab .btn-icon__label {
    text-align: left;
}

@media (max-width: 1024px) {
    .nav-links {
        justify-content: flex-start;
        margin: 16px 0 0 0;
        gap: 12px;
    }

    .nav-links__group {
        width: 100%;
    }

    .nav-group-toggle {
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        margin-top: 8px;
    }
}

.logo {
    height: 48px;
    margin-right: 32px;
}

.user-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95em;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700
}

.header p {
    font-size: 1.2em;
    opacity: .9
}

.main-content {
    padding: 32px;
}

.homepage-form {
    background: #f8fafc;
   border: 2px solid #e2e8f0;
   border-radius: 15px;
   padding: 30px;
   margin-bottom: 30px;
   min-height: 200px;
}

.homepage-summary {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.homepage-export {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

.homepage-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.homepage-export-output {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}

.homepage-summary__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: #1e1b4b;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}

#section-instrukcja {
    min-height: auto;
}

.homepage-form h2 {
    color: #1e293b;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600
}

.local-note {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 6px 0 20px 0;
}

.description-section {
    margin-bottom: 32px;
}

.description-section__heading h2 {
    margin-bottom: 4px;
}

.description-section__heading p {
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
}

.description-section__content {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex-wrap: wrap;
}

.description-section__form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    height: 100%;
}

.description-section__textarea {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    border: 1px solid #dbe3f3;
    border-radius: 16px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.description-section__textarea::placeholder {
    color: var(--color-text-light);
}

.description-section__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 94, 254, 0.12);
}

.description-section__form .btn-primary {
    align-self: flex-start;
}

.description-section__image {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    width: 33.333%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid #dbe3f3;
    background: #f7faff;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 40, 120, 0.08);
}

.description-section__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.description-section__results {
    margin-top: 24px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.description-card {
    border: 1px solid #dbe3f3;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 64, 192, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 200px;
}

.description-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 64, 192, 0.12);
    border-color: var(--color-primary);
}

.description-card.is-selected {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(0, 94, 254, 0.18);
}

.description-card__title {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary-dark);
}

.description-card__content {
    white-space: pre-wrap;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 14px;
    overflow-y: auto;
    max-height: 240px;
}

.description-card--empty {
    cursor: default;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6b7a99;
    font-size: 14px;
    font-style: italic;
    background: #f7faff;
}

@media (max-width: 768px) {
    .description-section__content {
        flex-direction: column;
    }

    .description-section__form {
        height: auto;
    }

    .description-section__textarea {
        min-height: 200px;
    }

    .description-section__image {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 1.1em
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all .3s ease;
    resize: vertical
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #4f46e51a
}

.form-group textarea {
    min-height: 80px
}

.upload-zone {
    border: 3px dashed #d1d5db;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all .3s ease;
    background: #f9fafb;
    margin-bottom: 30px;
    cursor: pointer
}

.upload-zone:hover {
    border-color: #4f46e5;
    background: #f0f4ff;
    transform: translateY(-2px)
}

.upload-zone.dragover {
    border-color: #4f46e5;
    background: #e0e7ff;
    transform: scale(1.02)
}

.upload-icon {
    font-size: 4em;
    color: #9ca3af;
    margin-bottom: 20px
}

.upload-text {
    font-size: 1.4em;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 600
}

.upload-hint {
    color: #6b7280;
    font-size: 1.1em
}

.file-input {
    display: none
}

.btn,
button.btn,
input[type="submit"].btn {
    background: var(--color-btn-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1.18rem;
    font-weight: 600;
    padding: 16px 38px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    box-shadow: var(--shadow-btn);
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover {
    background: var(--color-btn-gradient);
    box-shadow: var(--shadow-btn-hover);
}

/* Przycisk zaznacz wszystkie - styl jak btn, ale niski */
.select-all-btn {
    background: var(--color-btn-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 7px 22px;
    height: 38px;
    cursor: pointer;
    margin-bottom: 0;
    margin-right: 18px;
    transition: box-shadow 0.2s;
    box-shadow: var(--shadow-btn);
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.select-all-btn:hover {
    background: var(--color-btn-gradient);
    box-shadow: var(--shadow-btn-hover);
}

.btn.is-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

.btn__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.summary-disclaimers {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    border-radius: 12px;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-disclaimer {
    display: block;
}

@keyframes btn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- Logo generator --- */
.logo-main {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: #f8fafc;
}

.logo-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.logo-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.logo-card__header h2 {
    margin-bottom: 6px;
    font-size: 1.6rem;
}

.logo-card__hint {
    color: #6b7280;
    font-size: 0.95rem;
}

.logo-styles__scroller {
    display: flex;
    gap: 24px;
    padding: 6px 6px 12px;
    margin: -6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.logo-styles__scroller::-webkit-scrollbar {
    height: 8px;
}

.logo-styles__scroller::-webkit-scrollbar-track {
    background: transparent;
}

.logo-styles__scroller::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.logo-style-thumb {
    flex: 0 0 500px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    scroll-snap-align: center;
}

.logo-style-thumb img {
    display: block;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.logo-input-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.logo-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-field label {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}

.logo-field textarea,
.logo-field input[type="text"],
.logo-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-field textarea:focus,
.logo-field input[type="text"]:focus,
.logo-field select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}


.logo-field--brief {
    grid-column: span 3;
    position: sticky;
    top: 24px;
    z-index: 15;
    background: #ffffff;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    align-self: start;
}

.logo-field--company {
    grid-column: span 2;
}

.logo-field--style-select,
.logo-field--highlight {
    grid-column: span 2;
}

.logo-field--quality {
    grid-column: span 1;
    display: none;
}

.logo-field--quality {
    grid-column: span 1;
}

.logo-highlight-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #312e81;
    font-size: 1.05rem;
    position: relative;
    
}


.logo-highlight-select {
    appearance: none;
    border: 2px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 18px 48px 18px 20px;
    background: linear-gradient(145deg, #f8fafc, #edf2ff);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12' fill='none'%3E%3Cpath d='M18 2L10 10L2 2' stroke='%235256B5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px 12px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25), 0 14px 28px rgba(79, 70, 229, 0.10);
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.logo-highlight-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35), 0 18px 36px rgba(79, 70, 229, 0.16);
    transform: translateY(-2px);
}

.logo-highlight-select option {
    font-weight: 600;
}

.logo-field--notes-sygnet,
.logo-field--notes-logo {
    margin-bottom: 24px;
}



.logo-field--reference {
    grid-column: span 1;
}


.logo-field--color-primary,
.logo-field--color-secondary {
    grid-column: span 1;
}

.logo-style-control {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-style-control select {
    flex: 1 1 170px;
    min-width: 0;
}

.logo-style-control input[type="text"] {
    flex: 1 1 200px;
    min-width: 0;
}

.logo-style-control input[type="text"]:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #9ca3af;
}

.logo-style-control input.is-active {
    background: #ffffff;
    cursor: text;
}


.color-random-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.color-random-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
}
.logo-color-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    justify-content: space-between;
}

.logo-color-control input[type="color"] {
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
}

.logo-color-control span {
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    color: #111827;
    white-space: nowrap;
}

.logo-dropzone {
    position: relative;
    border: 2px dashed #c7d2fe;
    border-radius: 18px;
    background: #f9f9ff;
    min-height: 200px;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-dropzone:hover {
    border-color: #4f46e5;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
}

.logo-dropzone.is-dragover {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.logo-dropzone__content strong {
    display: block;
    font-size: 1.1rem;
    color: #1f2937;
}

.logo-dropzone__content span {
    display: block;
    color: #4b5563;
    margin-top: 6px;
}

.logo-dropzone__content small {
    margin-top: 10px;
    display: inline-block;
    color: #9ca3af;
}

.logo-dropzone__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo-dropzone__preview img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}

.logo-dropzone__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1f2937;
}

.logo-remove-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.logo-remove-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}

.logo-toast-container {
    position: fixed;
    top: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
    pointer-events: none;
    width: min(360px, calc(100vw - 32px));
}

.logo-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
    transform: translateY(-20px);
    opacity: 0;
    animation: logo-toast-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: all;
}

.logo-toast[data-visible='true'] {
    opacity: 1;
    transform: translateY(0);
}

.logo-toast.is-leaving {
    animation: logo-toast-hide 0.22s ease forwards;
}

.logo-toast__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.logo-toast__content {
    flex: 1;
    font-size: 0.95rem;
}

.logo-toast__close {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(15, 23, 42, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.logo-toast__close:hover {
    color: rgba(15, 23, 42, 0.7);
}

.logo-toast--info {
    border-color: rgba(14, 165, 233, 0.35);
    background: linear-gradient(145deg, #ecfeff, #e0f2ff);
}

.logo-toast--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(145deg, #ecfdf5, #dcfce7);
}

.logo-toast--warning {
    border-color: rgba(252, 211, 77, 0.45);
    background: linear-gradient(145deg, #fff9db, #fef3c7);
}

.logo-toast--error {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(145deg, #fee2e2, #fecaca);
}

@keyframes logo-toast-slide {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    60% {
        transform: translateY(6px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logo-toast-hide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-10px);
        opacity: 0;
    }
}

.logo-prompt-placeholder {
    background: #f1f5f9;
    border: 1px dashed #cbd5f5;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 24px;
    white-space: normal;
}

.logo-prompt-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

.logo-prompt-textarea {
    width: 100%;
    min-height: 150px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-prompt-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.logo-idea-output {
    position: relative;
    margin-top: 16px;
    padding: 26px 30px 32px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25), 0 18px 32px rgba(79, 70, 229, 0.08);
}

.logo-idea-output::before {
    content: '“';
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(79, 70, 229, 0.35);
    pointer-events: none;
}

.logo-idea-output .logo-prompt-label {
    margin-left: 32px;
    font-size: 1.05rem;
    color: #312e81;
}

#logo-idea-output-text {
    width: 100%;
    min-height: 220px;
    margin-top: 12px;
    border: none;
    background: transparent;
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.7;
    color: #1e293b;
    resize: vertical;
    padding: 12px 16px 12px 32px;
    border-left: 3px solid rgba(79, 70, 229, 0.4);
    box-shadow: none;
}

#logo-idea-output-text:focus {
    outline: none;
    border-left-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

#logo-idea-output-text::placeholder {
    color: rgba(71, 85, 105, 0.75);
    font-style: italic;
}

.logo-custom-drop {
    border: 2px dashed #cbd5f5;
    border-radius: 14px;
    padding: 24px;
    background: #f4f7ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #475569;
    text-align: center;
    cursor: pointer;
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-custom-drop:hover {
    border-color: #4f46e5;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
}

.logo-custom-drop.is-dragover {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}

.logo-custom-drop__title {
    font-weight: 700;
    color: #1f2937;
}

.logo-custom-drop__hint {
    font-size: 0.9rem;
}

.logo-custom-drop__formats {
    font-size: 0.8rem;
    color: #6b7280;
}

.logo-output-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.logo-output-scroll::-webkit-scrollbar {
    height: 8px;
}

.logo-output-scroll::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 999px;
}

.logo-output-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.logo-output-scroll .logo-output-grid,
.logo-output-scroll .logo-output-grid--logo {
    display: flex;
    gap: 20px;
}

.logo-output-scroll .logo-output-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
}

.logo-output-scroll .logo-output-placeholder {
    flex: 0 0 600px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    border: 2px dashed #cbd5f5;
    border-radius: 18px;
    background: #f8fafc;
    scroll-snap-align: start;
}

.logo-output-scroll .logo-output-card img {
    aspect-ratio: 1 / 1;
}
.logo-output-grid,
.logo-output-grid--logo {
    display: flex;
    gap: 20px;
}

.logo-output-placeholder {
    flex: 0 0 600px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    border: 2px dashed #cbd5f5;
    border-radius: 18px;
    background: #f8fafc;
    scroll-snap-align: start;
}

.logo-output-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 250px;
    scroll-snap-align: start;
}

.logo-output-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.18);
}

.logo-output-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.logo-output-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #e2e8f0;
}

.logo-output-card__cta {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logo-output-card__cta:hover {
    color: var(--color-primary-dark);
}

.logo-output-card.is-dragging {
    opacity: 0.65;
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.25);
}

.logo-sygnet-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.logo-sygnet-slot {
    min-height: 190px;
    border: 2px dashed #cbd5f5;
    border-radius: 18px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.logo-sygnet-slot span {
    pointer-events: none;
}

.logo-sygnet-slot--filled {
    border-style: solid;
    border-color: #4f46e5;
    background: #ffffff;
}

.logo-sygnet-slot.is-highlighted {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.logo-sygnet-slot img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.logo-output-grid--logo img {
    aspect-ratio: 1 / 1;
}

@media (max-width: 1280px) {
    .logo-sygnet-slots,
    .logo-input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-field--brief {
        grid-column: span 2;
        top: 16px;
    }

    .logo-field--reference {
        grid-column: span 2;
        grid-row: auto;
    }

    .logo-style-thumb {
        flex-basis: 420px;
    }
}

@media (max-width: 920px) {
    .logo-sygnet-slots,
    .logo-input-grid {
        grid-template-columns: 1fr;
    }

    .logo-field--brief {
        grid-column: span 1;
        top: 12px;
    }

    .logo-field--reference {
        grid-column: span 1;
        grid-row: auto;
    }

    .logo-style-thumb {
        flex-basis: 80%;
    }
}

/* Header tabeli z przyciskiem w jednej linii */
.uslugi-table-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
    margin-top: 12px;
}

.uslugi-table th {
    text-align: left;
    font-size: 1.15rem;
    font-weight: bold;
    padding-bottom: 6px;
    background: none;
}

.uslugi-table th:last-child {
    text-align: left;
}

.uslugi-table td {
    padding: 14px 18px 14px 0;
    /* większy padding góra/dół i prawo */
    vertical-align: middle;
}

.uslugi-table tr {
    background: none;
    transition: background 0.15s;
}

.uslugi-table tr:hover {
    background: var(--color-table-row-hover);
}

.uslugi-table input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    cursor: pointer;
    appearance: none;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-small);
    background: #fff;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
}

.uslugi-table input[type="checkbox"]:checked {
    background: var(--color-checkbox);
    border-color: var(--color-checkbox);
    animation: pop-anim 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.uslugi-table input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 1.3rem;
    position: absolute;
    left: 4px;
    top: 1px;
    font-weight: bold;
    line-height: 1;
}

.uslugi-table label {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.13rem;
}

.file-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: none
}

.file-info.show {
    display: block;
    animation: slideIn .3s ease
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.status {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    display: none
}

.status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e
}

.status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #ef4444
}

.status.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6
}

.status.processing {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #f59e0b
}

.results-section {
    margin-top: 30px;
    display: none
}

.results-section.show {
    display: block;
    animation: slideIn .5s ease
}

.results-header {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #4f46e5
}

.calculator-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px
}

.calculator-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600
}

.calculator-content {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.calculator-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap
}

.calculator-input label {
    font-weight: 600;
    color: #374151;
    font-size: 1.1em
}

.calculator-input input {
    padding: 10px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    width: 120px;
    transition: all .3s ease
}

.calculator-input input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #4f46e51a
}

.calculator-results {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px #0000000d
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6
}

.calc-row:last-of-type {
    border-bottom: none
}

.calc-row.total {
    background: #f0f4ff;
    margin: 10px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1em
}

.calc-label {
    color: #374151;
    font-weight: 500
}

.calc-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1em
}

.calc-row.total .calc-value {
    color: #4f46e5;
    font-size: 1.3em
}

.calc-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center
}

.calc-status.in-range {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e
}

.calc-status.below-range {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #f59e0b
}

.calc-status.above-range {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444
}

.calc-status.contact-viktor {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #ef4444;
    font-size: 1.05em
}

.download-section {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 30px
}

.service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px #0000000d;
    transition: all .3s ease;
    position: relative
}

.service-card:hover {
    box-shadow: 0 8px 16px #0000001a;
    transform: translateY(-2px)
}

.service-card.homepage {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5)
}

.service-card.excluded {
    opacity: .5;
    background: #f8f9fa;
    border-color: #dc2626;
    transform: none
}

.service-card.excluded:hover {
    transform: none;
    box-shadow: 0 2px 4px #0000000d
}

.service-card.excluded .service-title {
    text-decoration: line-through;
    color: #6b7280
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px
}

.service-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1
}

.service-title.homepage {
    color: #065f46
}

.exclude-control {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.exclude-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .9em;
    color: #6b7280;
    transition: color .3s ease
}

.exclude-label:hover {
    color: #dc2626
}

.exclude-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc2626
}

.exclude-text {
    font-weight: 500;
    -webkit-user-select: none;
    user-select: none
}

.excluded-note {
    color: #dc2626;
    font-size: .9em;
    font-weight: 500
}

.service-meta {
    color: #6b7280;
    font-size: .95em;
    margin-bottom: 15px
}

.paragraphs-preview {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #4f46e5;
    max-height: 200px;
    overflow-y: auto
}

.footer {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    background: #f9fafb
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.instruction-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px #10b9814d;
    z-index: 1000;
    transition: all .3s ease
}

.instruction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #10b98166
}

.storage-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px #dc26264d;
    z-index: 1000;
    transition: all .3s ease
}

.storage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #dc262666
}

.last-saved-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #22c55ee6;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    pointer-events: none
}

.last-saved-info.show {
    opacity: 1;
    transform: translateY(0)
}

.last-saved-info.error {
    background: #dc2626e6
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn .3s ease
}

.modal {
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px #0003;
    animation: slideIn .3s ease
}

.modal-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease
}

.modal-close:hover {
    background: #fff3
}

.modal-content {
    padding: 30px;
    line-height: 1.6
}

.modal-content h3 {
    color: #1e293b;
    margin: 25px 0 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px
}

.modal-content h4 {
    color: #374151;
    margin: 20px 0 10px;
    font-size: 1.1em
}

.modal-content p {
    margin: 10px 0;
    color: #374151
}

.modal-content ul,
.modal-content ol {
    margin: 10px 0;
    padding-left: 25px
}

.modal-content li {
    margin: 5px 0;
    color: #374151
}

.modal-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Courier New, monospace;
    color: #e11d48;
    font-size: .9em
}

.modal-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 15px 0
}

.modal-content pre code {
    background: none;
    color: inherit;
    padding: 0
}

.modal-content a {
    color: #4f46e5;
    text-decoration: none
}

.modal-content a:hover {
    text-decoration: underline
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.python-code-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow: hidden
}

.python-code-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px
}

.copy-btn {
    background: #fff3;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .9em;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease
}

.python-code-container pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    overflow-x: auto;
    margin: 0;
    font-family: Consolas, Monaco, Courier New, monospace;
    font-size: .95em;
    line-height: 1.4
}

#progress-timeline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    height: 56px;
    background: #fff;
    box-shadow: 0 -2px 16px #0000001a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0 32px;
    font-family: 'Tahoma', sans-serif;
}

.progress-steps {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
}

.progress-step {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    gap: 8px;
    min-height: 2.2em;
}

.progress-step .progress-emoji {
    display: inline-flex;
    width: 1.7em;
    height: 1.7em;
    font-size: 1.7em;
    line-height: 1.1;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.progress-step.completed {
    color: var(--color-accent);
}

.progress-step:not(.completed) {
    color: var(--color-text-light);
}

@keyframes pop-anim {
    0% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.35);
    }

    80% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }
}

.progress-emoji.pop-anim {
    animation: pop-anim 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.uslugi-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
    font-size: 1.13rem;
}

.uslugi-table th {
    text-align: left;
    font-size: 1.15rem;
    font-weight: bold;
    padding-bottom: 6px;
}

.uslugi-table th:last-child {
    text-align: left;
}

.uslugi-table td {
    padding: 8px 12px 8px 0;
    vertical-align: middle;
}

.uslugi-table tr {
    background: none;
    transition: background 0.15s;
}

.uslugi-table tr:hover {
    background: #f3f7fa;
}

.uslugi-table input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    cursor: pointer;
    appearance: none;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-small);
    background: #fff;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.uslugi-table input[type="checkbox"]:checked {
    background: var(--color-checkbox);
    border-color: var(--color-checkbox);
    animation: pop-anim 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.uslugi-table input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 1.3rem;
    position: absolute;
    left: 4px;
    top: 1px;
    font-weight: bold;
    line-height: 1;
}

.uslugi-table label {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.13rem;
}

#json-picker {
    margin-top: 10px;
}

/* Checkbox ALT-ów - dodatkowy styl dla lepszego odstępu */
#force-all-new-alts {
    margin-right: 10px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
}

label[for="force-all-new-alts"],
#alts-info label {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#alts-info input[type="checkbox"] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
}

.btn-gray {
    background: linear-gradient(90deg, #afafaf 0%, #bdbdbd 100%);
    color: #222;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-btn);
    font-weight: 600;
    font-size: 1.13em;
    padding: 12px 32px;
    margin: 0 8px 0 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    outline: none;
    display: inline-block;
}

.btn-gray:hover,
.btn-gray:focus {
    background: linear-gradient(90deg, #cccccc 0%, #b0b0b0 100%);
    color: #111;
    box-shadow: var(--shadow-btn-hover);
}

/* --- Ładny select dla formularzy --- */
select,
select#country {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    color: #222;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px #005efe11;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234f46e5" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 22px 22px;
}

select:focus,
select#country:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #4f46e51a;
}

select option {
    color: #222;
    background: #fff;
    font-size: 1em;
}

/* Ukryj domyślną strzałkę w Chrome */
select::-ms-expand {
    display: none;
}

/* Style dla toggle buttonów zakresu usług */
.scope-toggle {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85em;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-width: 100px;
    font-weight: 500;
}

.scope-toggle:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scope-toggle.scope-main {
    background: linear-gradient(135deg, #f1f5f9 0%, #d1d5db 100%);
    border-color: #9ca3af;
    color: #6b7280;
}

.scope-toggle.scope-all {
    background: linear-gradient(135deg, #dbeafe 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: #1e40af;
}

.scope-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Płynne animacje dla sortowania tabel będą obsługiwane przez JavaScript */

/* Style dla stopki tabeli usług */
.uslugi-table-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em
    }

    .main-content {
        padding: 20px
    }

    .upload-zone {
        padding: 40px 20px
    }

    .homepage-form {
        padding: 20px;
        min-height: 150px;
    }

    .modal {
        margin: 10px;
        max-height: 90vh
    }

    .instruction-btn {
        padding: 12px 20px;
        font-size: .9em
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start
    }

    .service-title {
        margin-bottom: 10px
    }

    .exclude-control {
        width: 100%
    }

    .calculator-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .calculator-input input {
        width: 100%
    }

    .calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px
    }

    .calc-value {
        font-size: 1.2em
    }
}

.usluga-tab {
    padding: 8px 18px;
    border: none;
    background: #f3f7fa;
    margin-right: 4px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 1.08em;
    transition: background 0.2s, color 0.2s;
}

.usluga-tab.active {
    background: #005efe;
    color: #fff;
    border-color: #005efe;
    box-shadow: 0 2px 8px #005efe22;
    font-weight: 700;
    z-index: 2;
}

.usluga-section {
    margin-bottom: 18px;
    background: #f9f9fb;
    padding: 12px 16px;
    border-radius: 8px;
}

.picker-zdjec {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 80px;
    margin-bottom: 8px;
}

.zdjecie-mini {
    display: flex;
    width: 300px;
    height: 300px;
    align-items: center;
    background: #f3f7fa;
    border-radius: 12px;
    padding: 4px 4px 4px 4px;
    box-shadow: 0 1px 4px #005efe11;
    gap: 6px;
    position: relative;
}

.zdjecie-mini img {
    width: 300px !important;
    height: 300px !important;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #eee;
}

.pulse-green {
    animation: pulse-green 1s;
    color: #0a9c2e !important;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 #0a9c2e44;
    }

    50% {
        box-shadow: 0 0 12px 6px #0a9c2e88;
    }

    100% {
        box-shadow: 0 0 0 0 #0a9c2e44;
    }
}

.zdjecie-btns {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    gap: 2px;
    z-index: 2;
}

.limit-msg {
    border: 2px solid #c11e0c;
    color: #c11e0c;
    background: #fff0f0;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.05em;
}

.zdjecia-loader {
    text-align: center;
    padding: 18px 0 12px 0;
    color: #005efe;
    font-weight: 600;
    font-size: 1.13em;
}

.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e0e7ef;
    border-top: 3px solid #005efe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.arrow-btn {
    background: #e6e6e6;
    border: none;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 2px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.2s;
}

.arrow-btn:hover {
    background: #005efe;
    color: #fff;
}

.zdjecia-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px #005efe11;
    padding: 18px 12px;
    margin-bottom: 18px;
    border: 1px solid #eee;
    min-width: 800px;
    min-height: 120px;
}

.zdjecia-licznik {
    font-size: 1.1em;
    font-weight: bold;
    margin-left: 12px;
    color: #0a9c2e;
    transition: color 0.2s;
    vertical-align: middle;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

[id^="picker-wybrane-"] .zdjecie-mini {
    border: 2px solid #1bc943;
    border-radius: 12px;
    box-shadow: 0 2px 8px #005efe11;
}

[id^="picker-odrzucone-"] .zdjecie-mini {
    width: 100px;
    height: 100px;
}

[id^="picker-odrzucone-"] .zdjecie-mini img {
    width: 100px !important;
    height: 100px !important;
}

.ikonki-repeater-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px #005efe11;
    padding: 10px 24px 10px 24px;
    margin-bottom: 24px;
    margin-top: 18px;
    min-height: 100px;
}

.ikonki-repeater-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    border: 1px solid #e0e7ef;
    background: #fff;
}

.ikonki-repeater-table td,
.ikonki-repeater-table th {
    border: 1px solid #e0e7ef;
    padding: 12px 10px;
    vertical-align: middle;
}

.ikonki-repeater-table tr {
    border-bottom: 1px solid #e0e7ef;
}

.ikonki-repeater-title {
    background: #f9f9fb;
    font-weight: 600;
    min-width: 180px;
}

.ikonki-repeater-table tbody tr:last-child td {
    border-bottom: none;
}

.ikonki-repeater-table td {
    min-width: 180px;
}

.ikona-propozycja {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.ikona-mini {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #e0e7ef;
    background: #fff;
    transition: box-shadow 0.2s, border 0.2s, width 0.2s, height 0.2s;
    box-shadow: 0 1px 4px #005efe11;
}

.ikona-mini-selected {
    width: 64px;
    height: 64px;
    border: 2.5px solid #0a9c2e;
    box-shadow: 0 0 0 4px #b6f5c7;
    z-index: 1;
}

.ikona-tick {
    color: #0a9c2e;
    font-size: 1.6em;
    position: absolute;
    right: -18px;
    top: 8px;
    background: #fff;
    border-radius: 50%;
    padding: 0 2px;
    font-weight: bold;
    z-index: 2;
}

.ikona-reroll {
    font-size: 1.15em;
    padding: 4px 14px;
    margin-left: 12px;
    vertical-align: middle;
    background: #e6fbe6;
    border: 1.5px solid #0a9c2e;
    color: #0a9c2e;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.ikona-reroll:hover {
    background: #0a9c2e;
    color: #fff;
    border-color: #0a9c2e;
}

.ikona-x {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.ikona-x:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.ikona-x:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #fff;
    border: 1.5px solid #e0e7ef;
    box-shadow: 0 2px 8px #005efe11;
    border-radius: 16px;
    font-weight: 600;
    color: #222;
    padding: 10px 28px;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    margin: 0 0 0 0;
    display: inline-block;
}

.homepage-export-copy--hidden {
    display: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #f3f7fa;
    color: #005efe;
    border-color: #e0e7ef;
}

.btn-primary {
    background: var(--color-btn-gradient);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    padding: 10px 28px;
    font-size: 1.08em;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.coverage-history-panel {
    display: block;
}

.coverage-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.coverage-history-desc {
    color: #4b5563;
    font-size: 0.95em;
    margin-top: 4px;
}

.coverage-history-list {
    margin-top: 16px;
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coverage-history-empty {
    margin-top: 16px;
    font-size: 0.95em;
    color: #94a3b8;
}

.coverage-history-entry {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.coverage-history-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.coverage-history-entry-title {
    font-size: 1em;
    color: #0f172a;
    font-weight: 600;
}

.coverage-history-entry-date {
    font-size: 0.85em;
    color: #94a3b8;
}

.coverage-history-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9em;
    color: #475569;
}

.coverage-history-entry-meta span {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
}

.coverage-history-entry button {
    align-self: flex-start;
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
    background: var(--color-btn-gradient-hover);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: grayscale(10%);
    pointer-events: none;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    padding: 10px 28px;
    font-size: 1.08em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.25);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #c0392b;
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

/* Tabela użytkowników */
.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
    font-size: 1.13rem;
}

.users-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    position: relative;
}

.users-tabs-table th,
.users-tabs-table td {
    white-space: nowrap;
}

.users-tabs-table thead th:first-child,
.users-tabs-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: #f8fafc;
    z-index: 3;
    box-shadow: 6px 0 12px -10px rgba(15, 23, 42, 0.35);
}

.users-tabs-table thead th:first-child {
    z-index: 4;
}

.users-tabs-table tr:hover td:first-child {
    background: var(--color-table-row-hover);
}

.users-tabs-table .current-user td:first-child {
    background: #fef3c7;
}

.tab-access-head {
    text-align: center;
    min-width: 140px;
}

.tab-head-icon {
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
}

.tab-head-label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 4px;
    white-space: normal;
    line-height: 1.2;
}

.tab-access-cell {
    text-align: center;
}

.tab-access-cell input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.users-table th {
    text-align: left;
    font-size: 1.15rem;
    font-weight: bold;
    padding-bottom: 6px;
    color: #1e293b;
}

.users-table td {
    padding: 14px 18px 14px 0;
    vertical-align: middle;
}

.users-table tr {
    background: none;
    transition: background 0.15s;
}

.users-table tr:hover {
    background: var(--color-table-row-hover);
}

.users-table tr.tab-update-success {
    background: #dcfce7;
}

.users-table tr.tab-update-error {
    background: #fee2e2;
}

.user-role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.user-role.user {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.user-role.salesman {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.user-role.dev {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #8b5cf6;
}

.users-table .current-user {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.users-table .current-user td {
    font-weight: 600;
}

.user-phone-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-phone-input {
    min-width: 170px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-phone-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-save-phone {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-save-phone:hover:not(:disabled) {
    background: #1e3a8a;
}

.btn-save-phone:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-save-phone.btn-phone-success {
    background: #16a34a;
}

.btn-save-phone.btn-phone-error {
    background: #dc2626;
}

.logo-usage {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.92em;
    color: #4b5563;
}

.logo-usage__value {
    font-weight: 600;
    color: #111827;
}

.logo-usage__value--limit {
    color: #dc2626;
}

.logo-usage__note {
    font-size: 0.85em;
}

.client-usage {
    font-weight: 600;
    color: #111827;
}

.client-usage--limit {
    color: #dc2626;
}

.btn {
    background: #005efe;
    border: none;
    color: #fff;
    border-radius: 16px;
    font-weight: 600;
    padding: 10px 28px;
    font-size: 1.08em;
    box-shadow: 0 2px 8px #005efe11;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    margin: 0 0 0 0;
    display: inline-block;
}

.btn:hover,
.btn:focus {
    background: #003e9c;
    color: #fff;
}

.select-all-btn,
.btn-gray {
    background: #fff;
    border: 1.5px solid #e0e7ef;
    box-shadow: 0 2px 8px #005efe11;
    border-radius: 16px;
    font-weight: 600;
    color: #222;
    padding: 10px 28px;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    margin: 0 0 0 0;
    display: inline-block;
}

.select-all-btn:hover,
.btn-gray:hover {
    background: #f3f7fa;
    color: #005efe;
    border-color: #e0e7ef;
}

.podglad-summary-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 18px 0;
}

.podglad-summary-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px #005efe22;
    padding: 18px 18px 14px 18px;
    margin-bottom: 18px;
}

.podglad-summary-box:last-child {
    margin-bottom: 0;
}

.podglad-summary-box h4,
.podglad-summary-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.18em;
}

.sitemap-result-note {
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 0.95rem;
}

.sitemap-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sitemap-variant-card {
    flex: 1 1 300px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sitemap-variant-card.selected {
    border-color: #005efe;
    box-shadow: 0 0 0 2px rgba(0, 94, 254, 0.15);
}

.sitemap-variant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
}

.sitemap-variant-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sitemap-variant-volume {
    font-size: 0.85rem;
    color: #1d4ed8;
    font-weight: 600;
}

.sitemap-variant-tag {
    font-size: 0.85rem;
    color: #6b7280;
}

.sitemap-variant-textarea {
    width: 100%;
    flex: 1;
    min-height: 260px;
    border: 1px solid #dbe3f3;
    border-radius: 12px;
    padding: 12px;
    resize: vertical;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    background: #fdfefe;
    color: #111827;
}

.sitemap-variant-textarea:focus {
    outline: none;
    border-color: #005efe;
    box-shadow: 0 0 0 3px rgba(0, 94, 254, 0.12);
    background: #fff;
}

.sitemap-variant-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.sitemap-select-btn {
    width: 100%;
    text-align: center;
}

.sitemap-presets-panel {
    margin-top: 10px;
    padding: 16px 18px 12px 18px;
    border: 1.5px dashed #c9ddff;
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 8px 22px rgba(12, 74, 146, 0.05);
}

.sitemap-presets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sitemap-presets-lead {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sitemap-presets-title {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.08rem;
}

.sitemap-presets-desc {
    margin: 0;
    color: #475569;
    font-size: 1rem;
}

.sitemap-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sitemap-preset {
    --preset-color: #0ea5e9;
    --preset-ghost: rgba(14, 165, 233, 0.1);
    --preset-gradient: var(--color-btn-gradient);
    border: none;
    background: var(--preset-gradient);
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 94, 254, 0.28);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
    position: relative;
    overflow: hidden;
}

.sitemap-preset:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 94, 254, 0.32);
    opacity: 0.98;
}

.sitemap-preset.selected {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 18px 40px rgba(0, 94, 254, 0.34);
}

.sitemap-preset-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sitemap-preset-name {
    font-weight: 700;
    color: #0f172a;
}

.sitemap-preset-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: #1f2937;
    font-size: 0.92rem;
}

.sitemap-preset-volume {
    font-weight: 700;
}

.sitemap-preset-hint {
    background: #e2e8f0;
    color: #0f172a;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
}

.sitemap-preset-desc {
    color: #334155;
    font-size: 0.9rem;
    display: block;
    line-height: 1.35;
    margin-top: 2px;
}

.sitemap-preset-line {
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
    font-size: 1.05rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.24);
}

.summary-columns {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-left {
    flex: 2 1 420px;
    min-width: 320px;
}

.summary-right {
    flex: 1 1 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-main-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.summary-context {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.summary-label {
    display: block;
    font-weight: 600;
    color: #374151;
}

.summary-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    display: block;
}

.summary-subvalue {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
}

.summary-note {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
}

.summary-estimate {
    display: block;
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}

.summary-volume-scale {
    margin-top: 8px;
}

.summary-volume-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-volume-scale-bar {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #dc2626 0%, #dc2626 33%, #ca8a04 33%, #ca8a04 66%, #15803d 66%, #15803d 100%);
    margin-bottom: 4px;
}

#summary-volume-bar {
    position: absolute;
    top: -6px;
    width: 0;
    height: 24px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.summary-volume-legend {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.summary-footnote {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.summary-selected-box h3 {
    margin-bottom: 8px;
}

.summary-selected-note {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

#summary-selected-sitemap {
    width: 100%;
    min-height: 360px;
    border: 1px solid #dbe3f3;
    border-radius: 12px;
    padding: 12px;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    background: #f8fafc;
    color: #111827;
    resize: vertical;
}

#summary-selected-sitemap:focus {
    outline: none;
    border-color: #005efe;
    box-shadow: 0 0 0 3px rgba(0, 94, 254, 0.12);
    background: #fff;
}

.zdjecia-box h4 {
    margin-bottom: 20px;
}

#uslugi-tabs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1000;
    background: #f3f7fa;
    padding: 14px 0 14px 0;
    box-shadow: 0 2px 16px #005efe22;
    border-bottom: 2px solid #e0e7ef;
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 1250px;
    border-radius: 0 0 18px 18px;
    font-size: 1.13em;
    transition: box-shadow 0.2s;
    margin: 0 auto;
}

.usluga-tab {
    background: #fff;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px 10px 10px 10px;
    padding: 8px 28px;
    font-weight: 600;
    color: #1a2340;
    cursor: pointer;
    box-shadow: 0 1px 4px #005efe11;
    margin: 0 2px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    outline: none;
    position: relative;
}

.usluga-tab.active,
.usluga-tab:focus {
    background: #005efe;
    color: #fff;
    border-color: #005efe;
    box-shadow: 0 2px 8px #005efe22;
}

.usluga-tab:hover:not(.active) {
    background: #eaf1ff;
    color: #005efe;
    border-color: #b3d1ff;
}

.usluga-tab span {
    margin-left: 8px;
    font-size: 1.2em;
    vertical-align: middle;
    color: #0a9c2e;
}

#uslugi-tabs-section {
    padding-top: 20px;
}

.homepage-form {
    max-width: none;
    width: 100%;
    margin: 30px 0;
    min-height: 200px;
}

/* — NAWIGACJA I KAPSUŁKI — */
.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #1f2937;
    background-color: white;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-tab {
    font-size: 12.5px;
    padding: 8px 14px;
}

.pill-button:hover,
.pill-button:focus-visible {
    background: linear-gradient(135deg, #f2f4ff, #e6ebff);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.36);
}

.pill-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.25);
    outline-offset: 2px;
}

.btn-icon {
    margin: 4px 6px;
    white-space: nowrap;
}

.btn-icon__emoji,
.logout-btn__emoji,
.user-pill__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
}

.btn-icon__label,
.logout-btn__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.active {
    background: linear-gradient(135deg, #eef1ff, #e0e5ff);
    border-color: rgba(79, 70, 229, 0.42);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.22);
    color: #2d2a72;
}

.user-pill {
    color: #1f2937;
    border-color: rgba(99, 102, 241, 0.3);
}

.user-pill strong {
    font-weight: 700;
    color: #1f2937;
}

.logout-btn {
    color: #1f2937;
    border-color: rgba(236, 72, 153, 0.32);
    background: linear-gradient(135deg, #fef6fb, #fdeaf4);
    box-shadow: 0 3px 10px rgba(236, 72, 153, 0.16);
}

.logout-btn:hover,
.logout-btn:focus-visible {
    background: linear-gradient(135deg, #fdeaf4, #fbd9ed);
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.22);
}

.logo-inspiration__frame {
    border: 2px solid #cbd5f5;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-top: 16px;
    width: 100%;
    height: 900px;
}

.logo-inspiration__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.logo-block {
    margin-bottom: 32px;
}

.logo-input-grid--block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    column-gap: 32px;
    row-gap: 64px;
    padding-block: 32px;
}

.logo-input-grid--block .logo-field--company {
    grid-column: span 2;
}

.logo-input-grid--block .logo-field--brief,
.logo-input-grid--block .logo-field--logo-type,
.logo-input-grid--block .logo-field--style-gallery,
.logo-input-grid--block .logo-field--special,
.logo-input-grid--block .logo-field--palette,
.logo-input-grid--block .logo-field--motif,
.logo-input-grid--block .logo-field--reference {
    grid-column: 1 / -1;
}

.logo-input-grid--block .logo-field {
    gap: 18px;
}

.logo-input-grid--block > .logo-field {
    padding-block: 18px;
}

.logo-input-grid--block > .logo-field.logo-field--brief {
    padding-block: 0;
}

.logo-field__label,
.logo-field__label-row label {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}

.logo-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.logo-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 16px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-weight: 600;
    color: #0f172a;
}

.logo-option-card:hover,
.logo-option-card:focus-visible {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.18);
}

.logo-option-card.is-selected {
    border-color: #4f46e5;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.22);
}

.logo-option-card__media {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2), 0 10px 18px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.4rem;
    line-height: 1;
}

.logo-option-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.logo-option-card__label {
    text-align: center;
    font-size: 0.95rem;
}

.logo-style-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.logo-style-card {
    border: 2px solid transparent;
    border-radius: 18px;
    overflow: hidden;
    padding: 6px;
    background: linear-gradient(145deg, #ffffff, #f4f7fb);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-style-card--text {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px dashed rgba(99, 102, 241, 0.45);
    min-height: 220px;
}

.logo-style-card--text .logo-style-card__text {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.logo-style-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.logo-style-card:hover,
.logo-style-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.16);
}

.logo-style-card.is-selected {
    border-color: #4f46e5;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.22);
}

.logo-style-tooltip {
    position: absolute;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
    background: linear-gradient(145deg, #ffffff, #f2f6ff);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.logo-style-tooltip img {
    display: block;
    width: 476px;
    max-width: 520px;
    height: auto;
    border-radius: 14px;
}

.logo-style-tooltip.is-visible {
    opacity: 1;
    transform: scale(1);
}

.logo-effect-tooltip {
    position: absolute;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    background: linear-gradient(145deg, #ffffff, #f2f4ff);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-width: min(420px, calc(100vw - 40px));
}

.logo-effect-tooltip__title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 8px;
}

.logo-effect-tooltip__content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}

.logo-effect-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.logo-palette {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.logo-palette__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.logo-palette__swatch {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.logo-palette__picker {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-palette__picker::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--picker-color, linear-gradient(145deg, #cbd5f5, #e2e8f0));
}

.logo-palette__picker:hover,
.logo-palette__picker:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.16);
}

.logo-palette__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.logo-palette__value {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

.logo-palette__clear {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.logo-palette__clear:hover,
.logo-palette__clear:focus-visible {
    color: #1f2937;
}

.logo-motif-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 18px;
    min-height: 320px;
}

@media (max-width: 920px) {
    .logo-motif-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

.logo-motif-option,
.logo-motif-placeholder {
    padding: 28px;
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: pre-wrap;
    line-height: 1.5;
}

.logo-motif-option {
    cursor: default;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

.logo-motif-placeholder {
    cursor: default;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-motif-option__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-motif-option__index {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.logo-motif-option__select {
    border: none;
    background: linear-gradient(145deg, #e0e7ff, #f5f7ff);
    color: #312e81;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.logo-motif-option__select:hover,
.logo-motif-option__select:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.24);
    outline: none;
}

.logo-motif-option.is-selected .logo-motif-option__select {
    background: linear-gradient(145deg, #4f46e5, #6366f1);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
}

.logo-motif-option__input {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
    padding: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    min-height: 120px;
    resize: vertical;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-motif-option__input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.45), 0 14px 32px rgba(79, 70, 229, 0.12);
}

.logo-motif-placeholder {
    border-style: dashed;
    color: #94a3b8;
    font-weight: 600;
    cursor: default;
}

.logo-motif-placeholder span {
    display: block;
    max-width: 180px;
}

.logo-motif-option:hover,
.logo-motif-option:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 20px 36px rgba(79, 70, 229, 0.18);
}

.logo-motif-option.is-selected {
    border-color: #4f46e5;
    box-shadow: 0 26px 44px rgba(79, 70, 229, 0.25);
}

.logo-motif-options--empty .logo-motif-placeholder {
    cursor: default;
}

.logo-block__content {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    color: #1f2937;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.logo-generation-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 32px;
}

.logo-generation-summary__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logo-generation-summary__label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.logo-generation-summary__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.logo-generation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.logo-generation-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.logo-generation-control select {
    border: 2px solid #cbd5f5;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-generation-control select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.16);
}

.logo-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
    font-weight: 700;
    color: #1e293b;
}

.logo-summary-chip img {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.logo-summary-chip--color {
    gap: 6px;
    margin-right: 12px;
}

.logo-summary-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-dot, #0f172a);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
    margin-right: 6px;
}

.logo-summary-color-value {
    font-weight: 600;
}

.logo-generation-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
}

.logo-generation-scroll::-webkit-scrollbar {
    height: 10px;
}

.logo-generation-scroll::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}

.logo-generation-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.45);
    border-radius: 999px;
}

.logo-generation-grid {
    display: inline-flex;
    gap: 24px;
    min-height: 100%;
    padding-right: 12px;
}

.logo-generation-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f6f9ff);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 260px;
}

.logo-generation-card:hover,
.logo-generation-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(79, 70, 229, 0.22);
}

.logo-generation-card__preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.logo-generation-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-generation-card__caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.logo-generation-card__meta {
    font-size: 0.78rem;
    color: #64748b;
}

.logo-generation-card--loading {
    position: relative;
    overflow: hidden;
}

.logo-generation-card--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(148, 163, 184, 0.18) 50%, rgba(255,255,255,0) 100%);
    animation: logo-loading-shimmer 1.4s infinite;
}

.logo-generation-empty {
    flex: 0 0 100%;
    min-width: 320px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.logo-generation-empty p {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 600;
}

.logo-final-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.logo-final-slot {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f5f8ff);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.logo-final-slot__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo-final-slot__title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.logo-final-slot__status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.logo-final-slot__controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.logo-final-slot__controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

.logo-final-slot__controls select {
    border: 2px solid #d1d9f9;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-final-slot__controls select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.logo-final-slot__body {
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #475569;
    font-weight: 600;
    padding: 16px;
    gap: 16px;
    flex-direction: column;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.logo-final-slot__body.is-clickable {
    cursor: pointer;
    border-style: solid;
}

.logo-main[data-preview-bg="light"] .logo-generation-card__preview,
.logo-main[data-preview-bg="light"] .logo-final-slot__body {
    background: #f1f5f9;
    color: #475569;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.4);
}

.logo-main[data-preview-bg="dark"] .logo-generation-card__preview {
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.2);
}

.logo-main[data-preview-bg="dark"] .logo-final-slot__body {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.5);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.logo-main[data-preview-bg="dark"] .logo-final-slot__body.is-clickable {
    border-color: rgba(226, 232, 240, 0.65);
}

.logo-main[data-preview-bg="contrast"] .logo-generation-card__preview {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.9) 46%,
        rgba(241, 245, 249, 0.96) 54%,
        rgba(241, 245, 249, 1) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.logo-final-slot__body img {
    width: 100%;
    max-width: 260px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.logo-final-slot__source {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    background: rgba(15, 23, 42, 0.04);
    padding: 12px;
    border-radius: 14px;
    width: 100%;
}

.logo-final-slot__source span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logo-final-slot__source img {
    max-width: 180px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.logo-final-slot__result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.logo-final-slot__result img {
    max-width: 240px;
}

.logo-final-slot__suggestion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-final-slot__suggestion label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.logo-final-slot__suggestion textarea {
    border: 2px solid #d1d9f9;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 74px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.logo-final-slot__suggestion textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.14);
}

.logo-final-slot__suggestion textarea:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.logo-final-slot__suggestion .logo-final-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.logo-final-slot__suggestion .logo-final-btn {
    align-self: flex-start;
}

.logo-final-slot__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.logo-final-btn {
    border: none;
    background: linear-gradient(145deg, #005efe, #4f46e5);
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-final-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.3);
}

.logo-final-btn--ghost {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.logo-final-btn--ghost:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.logo-final-slot__note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.logo-generation-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.logo-generation-card__actions button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(145deg, #005efe, #4f46e5);
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-generation-card__actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22);
}

.logo-generation-card__btn--ghost {
    background: linear-gradient(145deg, #f8fafc, #ffffff) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

.logo-generation-card__btn--ghost:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16) !important;
}

/* --- Copywriting layout --- */
.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#copywriting-homepage .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    #copywriting-homepage .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

#copywriting-homepage .form-group {
    min-width: 0;
}

#homepage-process {
    height: 200px;
    min-height: 200px;
    resize: vertical;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

#copywriting-company .company-search {
    margin-bottom: 4px;
}

.client-search-status {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.client-search-status--error {
    color: #dc2626;
}

.client-search-status--success {
    color: #15803d;
}

.client-search-results {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    background: #fff;
    overflow: auto;
    max-height: 280px;
}

.client-search-result {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.client-search-result:last-child {
    border-bottom: none;
}

.client-search-result:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.client-search-result__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    color: #111827;
}

.client-search-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: #4b5563;
}

.client-search-result__date {
    font-size: 12px;
    color: #6b7280;
}

.client-search-result__services {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.client-search-result--active {
    background: #eef2ff;
    border-color: #c7d2fe;
}

#copywriting-company .company-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.company-form__row .form-group {
    flex: 1 1 320px;
    max-width: 420px;
}

.company-form__row--bottom .form-group textarea {
    min-height: 300px;
}

.company-form__row .form-group input,
.company-form__row .form-group select,
.company-form__row .form-group textarea {
    max-width: 100%;
}

.brand-voice-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.brand-voice-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-voice-option:hover {
    border-color: #4f46e5;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
    transform: translateY(-2px);
}

.brand-voice-option:focus-visible {
    outline: 3px solid #4338ca;
    outline-offset: 2px;
}

.brand-voice-option--active {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
    transform: translateY(-2px);
}

.brand-voice-option__emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.brand-voice-option__label {
    font-weight: 600;
    color: #1f2937;
}

.brand-voice-option__description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.4;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-wrapper {
    margin-top: 24px;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 10px 28px #0f172a1a;
    border: 1px solid #e2e8f0;
    background: #fff;
}

/* --- Create folder page --- */
.section-description {
    margin: 0 0 24px;
    color: #475569;
    line-height: 1.55;
}

.create-folder-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.status-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.04);
    color: #1e293b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-message--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
    color: #166534;
}

/* --- Auto przelot --- */
.section-header-with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.section-header-with-action .btn {
    min-width: 110px;
}

.auto-przelot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.95rem;
    color: #475569;
    margin: 10px 0 6px;
}

.auto-przelot-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 4px;
}

.auto-przelot-toggle {
    margin-bottom: 8px;
    color: #475569;
}

.auto-przelot-chip {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #eef2ff;
    color: #312e81;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(49, 46, 129, 0.08);
}

.auto-przelot-empty {
    color: #94a3b8;
    padding: 12px 0;
}

.auto-przelot-comments {
    max-height: 70px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    background: #f8fafc;
}

.auto-przelot-comment {
    margin-bottom: 10px;
}

.auto-przelot-comment:last-child {
    margin-bottom: 0;
}

.auto-przelot-comment-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.auto-przelot-comment-text {
    white-space: pre-wrap;
    font-size: 0.92rem;
}

.auto-przelot-comment-text strong {
    font-weight: 800;
}

.auto-przelot-comments-wrap {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.auto-przelot-add-comment {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    align-self: flex-start;
    flex-shrink: 0;
}

.auto-przelot-comments {
    flex: 1;
    min-width: 0;
}

.auto-przelot-add-comment:hover {
    background: #e2e8f0;
}

.auto-przelot-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auto-przelot-modal__content {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    width: min(480px, 90vw);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auto-przelot-modal__subtitle {
    color: #475569;
    font-size: 0.95rem;
}

#auto-przelot-modal-text,
#auto-przelot-wiktor-modal-text {
    width: 100%;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.auto-przelot-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.auto-przelot-wiktor-wrap {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.auto-przelot-wiktor-history-wrap {
    flex: 1;
    min-width: 0;
}

.auto-przelot-wiktor-history {
    width: 100%;
    min-height: 140px;
    max-height: 230px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    color: #0f172a;
}

.auto-przelot-wiktor-history--empty {
    color: #94a3b8;
}

.auto-przelot-add-comment--wiktor {
    align-self: flex-start;
}

.auto-przelot-wiktor-col {
    width: 24%;
    min-width: 260px;
}

.auto-przelot-whatsapp-col {
    width: 16%;
    min-width: 240px;
}

.auto-przelot-notebook {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.auto-przelot-notebook__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.auto-przelot-notebook__meta {
    color: #64748b;
    font-size: 0.95rem;
}

.auto-przelot-notebook__hint {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 0.93rem;
}

.auto-przelot-notebook__textarea {
    width: 100%;
    min-height: 220px;
    max-height: none;
}

.auto-przelot-notebook__history-header {
    margin: 16px 0 6px;
    font-weight: 600;
    color: #475569;
}

.auto-przelot-notebook__history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto-przelot-notebook__history-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.auto-przelot-notebook__history-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

.auto-przelot-notebook__history-text {
    white-space: pre-wrap;
    font-size: 0.92rem;
    color: #0f172a;
    max-height: 180px;
    overflow-y: auto;
}

.auto-przelot-notebook__history-empty {
    color: #94a3b8;
    font-style: italic;
}
.auto-przelot-whatsapp {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auto-przelot-wa-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-przelot-wa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.auto-przelot-group {
    font-weight: 700;
}

.auto-przelot-wa-line {
    color: #475569;
}

.auto-przelot-wa-small {
    font-size: 0.9rem;
    color: #64748b;
}

.auto-przelot-wa-line.auto-przelot-wa-text {
    font-style: italic;
    font-size: 0.9rem;
}

.auto-przelot-row--alert {
    background: #fee2e2;
}

.auto-przelot-row--alert:hover {
    background: #fecdd3;
}

.auto-przelot-table tr.auto-przelot-row--alert {
    background: #fee2e2 !important;
}

.auto-przelot-table tr.auto-przelot-row--alert:hover {
    background: #fecdd3 !important;
}

.auto-przelot-table tr.auto-przelot-row--no-group {
    background: #fef9c3 !important;
}

.auto-przelot-table tr.auto-przelot-row--no-group:hover {
    background: #fef08a !important;
}

.auto-przelot-table tr.auto-przelot-row--overmax {
    background: #ffedd5 !important;
}

.auto-przelot-table tr.auto-przelot-row--overmax:hover {
    background: #fed7aa !important;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auto-przelot-running {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #1e293b;
}

.auto-przelot-running.running {
    color: #dc2626;
    background: #fee2e2;
}

.auto-przelot-running.idle {
    color: #15803d;
    background: #dcfce7;
}

.auto-przelot-table {
    min-width: 1500px;
}

.auto-przelot-table th,
.auto-przelot-table td {
    padding: 14px 16px;
}

.auto-przelot-table .auto-przelot-comments-col {
    width: 26%;
    min-width: 260px;
}

#auto-przelot-table tbody tr:nth-child(odd):not(.auto-przelot-row--alert):not(.auto-przelot-row--no-group) {
    background: #f8fafc;
}

#auto-przelot-status {
    min-height: 26px;
}

.auto-przelot-status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    margin-right: 4px;
}

.auto-przelot-status-age {
    color: #475569;
}

.auto-przelot-name-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    margin-right: 8px;
    vertical-align: middle;
}

.auto-przelot-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.auto-przelot-name-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.auto-przelot-status-inline {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: normal;
}

.auto-przelot-name-col {
    width: 26%;
    min-width: 260px;
}

.auto-przelot-name-avatar,
.auto-przelot-avatar-placeholder {
    flex-shrink: 0;
}

.auto-przelot-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 14px;
}

.auto-przelot-age-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.auto-przelot-age-bar__fill {
    height: 100%;
    width: 0%;
}

.auto-przelot-age-bar__text {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.auto-przelot-age-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 4px;
    -moz-appearance: textfield;
}

.auto-przelot-age-input::-webkit-outer-spin-button,
.auto-przelot-age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auto-przelot-age-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-przelot-age-cell {
    min-width: 220px;
}

.auto-przelot-age-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.auto-przelot-age-inputs__form {
    display: none;
    gap: 8px;
}

.auto-przelot-hours-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.auto-przelot-ignore-btn {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.auto-przelot-ignore-btn:hover {
    background: #e2e8f0;
}

.status-message--info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.45);
    color: #1d4ed8;
}

.status-message--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #991b1b;
}

.create-folder-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state {
    margin: 0;
    color: #64748b;
    font-style: italic;
}

.create-folder-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-folder-item {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.create-folder-item__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05em;
}

.create-folder-item__status {
    margin-top: 4px;
    font-size: 0.95em;
    font-weight: 600;
    color: #334155;
}

/* --- Historia Proform --- */
.history-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.history-search-input {
    flex: 1 1 260px;
}

.history-search-input input[type="search"] {
    width: 100%;
}

.history-list {
    display: grid;
    gap: 14px;
}

.history-list .empty-state {
    padding: 22px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.05);
    font-style: normal;
}

.history-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.history-card__header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.history-card__title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #0f172a;
}

.history-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.82em;
    font-weight: 500;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

.history-card__body {
    display: grid;
    gap: 4px;
    color: #1f2937;
    font-size: 0.94em;
}

.history-card__meta {
    margin-top: 6px;
    font-size: 0.9em;
    color: #6b7280;
}

.history-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.history-card__filename {
    font-size: 0.85em;
    color: #4b5563;
}

.history-card__footer .btn {
    flex-shrink: 0;
}

.logo-history-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.logo-history-grid .empty-state {
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.05);
}

.logo-history-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.logo-history-card--missing {
    border-style: dashed;
    background: #fff7f7;
}

.logo-history-card__preview {
    position: relative;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.logo-history-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.logo-history-card__placeholder {
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.logo-history-card--missing .logo-history-card__preview {
    background: #fff1f2;
    border-color: #fecdd3;
    cursor: not-allowed;
}

.logo-history-card--missing .logo-history-card__placeholder {
    color: #f43f5e;
}

.logo-history-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-history-card__title {
    font-size: 1.02em;
    font-weight: 700;
    color: #0f172a;
}

.logo-history-card__subtitle {
    font-size: 0.9em;
    color: #475569;
}

.logo-history-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.logo-history-card__meta {
    display: grid;
    gap: 4px;
    font-size: 0.92em;
    color: #334155;
}

.logo-history-card__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.logo-history-card__meta-label {
    color: #64748b;
    font-weight: 600;
}

.logo-history-card__meta-value {
    text-align: right;
    word-break: break-word;
}

.logo-history-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.logo-history-card__btn--ghost {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.create-folder-item--pending {
    border-color: rgba(59, 130, 246, 0.45);
    background: #eff6ff;
}

.create-folder-item--pending .create-folder-item__status {
    color: #1d4ed8;
}

.create-folder-item--error {
    border-color: rgba(239, 68, 68, 0.45);
    background: #fef2f2;
}

.create-folder-item--error .create-folder-item__status {
    color: #b91c1c;
}

.create-folder-item--warning {
    border-color: rgba(234, 179, 8, 0.55);
    background: #fef9c3;
}

.create-folder-item--warning .create-folder-item__status {
    color: #92400e;
}

.create-folder-item--warning .create-folder-item__status a {
    color: inherit;
    text-decoration: underline;
}

.create-folder-item__status--clickup {
    margin-top: 2px;
    font-size: 0.95em;
    font-weight: 600;
}

.create-folder-item__status--clickup.is-success {
    color: #166534;
}

.create-folder-item__status--clickup.is-pending {
    color: #1d4ed8;
}

.create-folder-item__status--clickup.is-error {
    color: #b91c1c;
}

.create-folder-item__status-detail {
    font-size: 0.85em;
    color: #475569;
    font-weight: 500;
    margin-top: 4px;
}

.create-folder-item__link a {
    color: #2563eb;
    word-break: break-all;
    text-decoration: none;
}

.create-folder-item__link a:hover,
.create-folder-item__link a:focus {
    text-decoration: underline;
}

.create-folder-item__meta {
    font-size: 0.9em;
    color: #64748b;
}

.copywriting-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.copywriting-table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.92em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1f2937;
}

.copywriting-table th,
.copywriting-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.copywriting-table tbody tr:last-child td {
    border-bottom: none;
}

.copywriting-table tbody tr:hover {
    background: #f8fbff;
}

#homepage-sections-table {
    table-layout: fixed;
}

#homepage-sections-table th:nth-child(1),
#homepage-sections-table td:nth-child(1) {
    width: 20%;
}

#homepage-sections-table th:nth-child(2),
#homepage-sections-table td:nth-child(2) {
    width: 60%;
}

#homepage-sections-table th:nth-child(3),
#homepage-sections-table td:nth-child(3) {
    width: 10%;
}

#homepage-sections-table th:nth-child(4),
#homepage-sections-table td:nth-child(4) {
    width: 10%;
}

.cell-composition {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.cell-with-action {
    position: relative;
    display: block;
    width: 100%;
}

.cell-with-action .table-textarea {
    width: 100%;
    padding-right: 52px;
}

.cell-with-action .cell-action-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.cell-type {
    width: 10%;
    min-width: 160px;
}

.cell-heading-wrapper {
    width: 100%;
    max-width: none;
}

.cell-content-wrapper {
    width: 100%;
    max-width: none;
}

.heading-field--compact {
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 50px;
}

.content-field--wide {
    min-height: 220px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.cell-composition .cell-action-btn {
    margin-top: 6px;
}

.cell-action-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #eef2ff;
    color: #312e81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cell-action-btn:hover:not([disabled]) {
    background: #312e81;
    color: #eef2ff;
    transform: scale(1.05);
}

.cell-action-btn[disabled] {
    cursor: progress;
    opacity: 0.6;
}

.cell-action-btn svg,
.cell-action-btn span {
    pointer-events: none;
}

.cell-action-btn.is-loading {
    color: #f97316;
}

.cell-action-btn.is-loading span {
    animation: copywriting-spin 0.9s linear infinite;
}

@keyframes copywriting-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.table-textarea {
    width: 100%;
    resize: vertical;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.table-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #4f46e51a;
    outline: none;
}

.cell-metric {
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.metric-density {
    font-variant-numeric: tabular-nums;
}

.section-placeholder {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.95em;
}

.services-list-input {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    height: 300px;
    min-height: 300px;
    resize: vertical;
}

.services-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.services-table .cell-select-header,
.services-table .cell-select {
    width: 64px;
    text-align: center;
}

.services-table {
    table-layout: fixed;
}

.services-table th:nth-child(2),
.services-table td:nth-child(2) {
    width: 10%;
}

.services-table th:nth-child(3),
.services-table td:nth-child(3) {
    width: 30%;
}

.services-table th:nth-child(4),
.services-table td:nth-child(4) {
    width: 30%;
}

.services-table th:nth-child(5),
.services-table td:nth-child(5) {
    width: 30%;
}

.services-table .service-select {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.services-table .cell-service-name {
    font-weight: 600;
    color: #1f2937;
    min-width: 220px;
}

.services-table td {
    height: 100%;
    vertical-align: top;
}

.services-table .table-textarea {
    min-height: 100px;
    height: 100px;
}

.services-table .service-info-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 100%;
}

.services-table .service-info-wrapper .service-info {
    flex: 1 1 auto;
}

.services-table .service-info-actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.services-table .service-info-refresh {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
}

.services-table .service-info-refresh span[aria-hidden="true"] {
    display: inline-block;
}

.services-table .service-info-refresh .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.services-table .service-info-refresh.is-busy {
    pointer-events: none;
    opacity: 0.65;
}

.services-table .service-info {
    min-height: 100px;
    height: 100px;
}

.services-table .service-info.service-info--loading {
    background: #fff7ed;
    border-color: #fb923c;
    color: #9a3412;
    font-weight: 600;
}

.services-table__hint {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
}

.services-table .cell-empty {
    text-align: center;
    color: #6b7280;
    padding: 24px;
    font-style: italic;
}

.services-guideline {
    margin: 8px 0 18px;
    color: #475569;
    font-size: 0.95rem;
}

.services-guideline__rules {
    margin: 0 0 12px 18px;
    color: #475569;
    font-size: 0.9rem;
    list-style: disc;
}

.services-guideline__rules li {
    margin-bottom: 6px;
}

.services-guideline__rules li span {
    font-weight: 600;
}

.services-guideline__note {
    margin: -6px 0 18px;
    color: #64748b;
    font-size: 0.85rem;
}

.services-status {
    margin: 12px 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.services-status[hidden] {
    display: none !important;
}

.services-status--info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1d4ed8;
}

.services-status--success {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #047857;
}

.services-status--error {
    background: #fef2f2;
    border-left-color: #f87171;
    color: #b91c1c;
}

.services-status--loading {
    background: #eef2ff;
    border-left-color: #6366f1;
    color: #4338ca;
    position: relative;
}

.services-status--loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    animation: services-status-spin 0.7s linear infinite;
}

@keyframes services-status-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.services-preview {
    margin-top: 24px;
    border: 1px dashed #cbd5f5;
    border-radius: 18px;
    background: #f8fafc;
    min-height: 500px;
    width: 100%;
    padding: 28px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.services-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

.service-preview-item {
    border-radius: 16px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.service-preview-item summary {
    list-style: none;
}

.service-preview-item summary::-webkit-details-marker {
    display: none;
}

.service-preview-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 18px 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    font-weight: 600;
    color: #1f2937;
    font-size: 1.05rem;
    position: relative;
}

.service-preview-summary::after {
    content: '▸';
    font-size: 1.1rem;
    color: #1f2937;
    transition: transform 0.2s ease;
    margin-left: 12px;
}

.service-preview-item[open] .service-preview-summary::after {
    transform: rotate(90deg);
}

.service-preview-item--highlight .service-preview-summary {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25) inset;
}

.service-preview-item--success {
    border-color: #bbf7d0;
    box-shadow: 0 16px 32px rgba(34, 197, 94, 0.16);
}

.service-preview-item--success .service-preview-summary {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.service-preview-item--error {
    border-color: #fecaca;
    box-shadow: 0 18px 36px rgba(248, 113, 113, 0.18);
}

.service-preview-item--error .service-preview-summary {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.service-preview-item--pending {
    opacity: 0.92;
}

.service-preview-item--pending::after {
    content: '⏳ Generowanie…';
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.service-preview-summary-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.service-preview-name {
    font-weight: 700;
    color: #1f2937;
}

.service-preview-meta {
    color: #475569;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.service-preview-summary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.service-summary-btn {
    border: 1px solid #d0d8e8;
    background: #ffffff;
    color: #1f2937;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-summary-btn span {
    font-size: 1rem;
    line-height: 1;
}

.service-summary-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.22);
}

.service-summary-btn--regen {
    border-color: #c3d4ff;
}

.service-summary-btn.service-summary-btn--export {
    border-color: #bbf7d0;
    color: #047857;
    width: auto;
    height: auto;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    gap: 8px;
}

.service-summary-btn.service-summary-btn--export:hover {
    background: #dcfce7;
}

.service-summary-btn.service-summary-btn--export .service-summary-btn__icon {
    font-size: 1rem;
}

.service-summary-btn.service-summary-btn--export .service-summary-btn__label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.service-summary-btn--remove {
    border-color: #fca5a5;
    color: #b91c1c;
}

.service-summary-btn--remove:hover {
    background: #fee2e2;
}

.service-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.service-preview-table thead th {
    background: #f1f5f9;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1f2937;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.service-preview-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    font-size: 0.95rem;
    color: #1f2937;
    width: 100px;
}

.service-preview-table td:nth-child(2){
    width: auto;
}

.service-preview-table td:nth-child(3),
.service-preview-table td:nth-child(4) {
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 80px;
}

.service-preview-table tbody tr:last-child td {
    border-bottom: none;
}

.service-preview-table tbody tr:nth-child(odd) {
    background: #fcfdff;
}

.service-preview-composition {
    flex-direction: column;
    gap: 12px;
}

.service-preview-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.service-preview-heading-input,
.service-preview-content-input {
    flex: 1;
}

.service-preview-heading-input {
    min-height: 70px;
}

.service-preview-heading-input--readonly {
    background: #f1f5f9;
    cursor: not-allowed;
    color: #475569;
}

.service-preview-heading-input[readonly],
.service-preview-content-input[readonly] {
    background: #f8fafc;
    color: #475569;
    cursor: not-allowed;
}

.service-preview-content-input {
    min-height: 170px;
}

.section-action-btn,
.service-summary-btn {
    border: 1px solid #d0d8e8;
    background: #fff;
    color: #1f2937;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.section-action-btn span,
.service-summary-btn span {
    font-size: 0.95rem;
    line-height: 1;
}

.section-action-btn:hover,
.service-summary-btn:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.18);
}

.service-summary-btn--regen {
    border-color: #c3d4ff;
}

.service-summary-btn--remove {
    border-color: #fca5a5;
    color: #b91c1c;
}

.service-summary-btn--remove:hover {
    background: #fee2e2;
}

.section-action-btn.is-busy,
.service-summary-btn.is-busy {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
    color: #f97316;
}

.section-action-btn.is-busy span,
.service-summary-btn.is-busy span {
    animation: copywriting-spin 0.9s linear infinite;
}

.service-summary-btn.is-busy .service-summary-btn__label {
    animation: none;
}

.service-export-status {
    margin: 0 22px 18px;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.service-export-status--success {
    background: #ecfdf5;
    border-left-color: #22c55e;
    color: #166534;
}

.service-export-status--error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.service-export-status__text {
    flex: 1;
    white-space: pre-line;
}

.service-export-status__link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.service-export-status__link:hover {
    text-decoration: none;
}

.service-preview-field--loading {
    animation: service-field-pulse 1.2s ease-in-out infinite alternate;
}

.services-preview-placeholder {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.6;
}

@keyframes logo-loading-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes service-field-pulse {
    from {
        background-color: #fef3c7;
    }
    to {
        background-color: #fde68a;
    }
}
