/* =================================================================
   NARZĘDZIA DO DRUKU - Print Tools CSS
   ================================================================= */

/* Tools grid - strona główna narzędzi */
.narz-hero {
    text-align: center;
    padding: 40px 0 30px;
}
.narz-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}
.narz-hero p {
    color: rgba(0,0,0,0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.narz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0 40px;
}

.narz-card {
    background: #fff;
    border: 1px solid #b8c4d0;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.narz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}
.narz-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}
.narz-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.narz-card p {
    color: rgba(0,0,0,0.6);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Narzędzie - wspólny layout (90% szerokości kontenera headera) */
.container.narz-page {
    margin: 0 auto;
    padding: 30px 15px 50px;
}
@media (min-width: 1200px) {
    .container.narz-page { max-width: 1026px; } /* 90% of Bootstrap xl 1140px */
}
@media (min-width: 1400px) {
    .container.narz-page { max-width: 1188px; } /* 90% of Bootstrap xxl 1320px */
}
.narz-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 8px;
}
.narz-page .narz-subtitle {
    text-align: center;
    color: rgba(0,0,0,0.6);
    margin-bottom: 6px;
}

/* Drag & Drop zone */
.narz-dropzone {
    border: 2px dashed #acb8c6;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
    margin-bottom: 20px;
}
.narz-dropzone:hover,
.narz-dropzone.dragover {
    border-color: #8B5CF6;
    background: #EDE9FE;
}
.narz-dropzone-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}
.narz-dropzone-text {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 8px;
}
.narz-dropzone-formats {
    font-size: 0.85rem;
    color: #94a3b8;
}
.narz-dropzone input[type="file"] {
    display: none;
}

/* Privacy note */
.narz-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 25px;
}
.narz-privacy i {
    margin-right: 4px;
}

/* Wynik analizy */
.narz-result {
    display: none;
    background: #fff;
    border: 1px solid #acb8c6;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}
.narz-result.visible {
    display: block;
}
.narz-result h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Verdict badge */
.narz-verdict {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.narz-verdict.ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.narz-verdict.warn {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}
.narz-verdict.fail {
    background: #fce4ec;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* Tabela wyników */
.narz-table {
    width: auto;
    margin: 0 auto 20px;
    border-collapse: collapse;
}
.narz-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.narz-table td {
    padding: 10px 12px;
    font-size: 0.95rem;
    text-align: center;
}
.narz-table td:first-child {
    color: #64748b;
    font-weight: 500;
    width: 50%;
}
.narz-table td:nth-child(2) {
    color: #1e293b;
    font-weight: 600;
}
/* Checklist table */
.narz-table-chk {
    width: 100%;
}
.narz-table-chk td:first-child {
    width: 30%;
}
/* Checklist status + recommendation column */
.narz-chk {
    text-align: left;
    font-size: 1rem;
    padding: 10px 12px !important;
}
.narz-chk i {
    font-size: 1.1rem;
    vertical-align: -1px;
}
.chk-text {
    font-size: 0.82rem;
    font-weight: 400;
}
.chk-ok { color: #16a34a; }
.chk-warn { color: #ca8a04; }
.chk-fail { color: #dc2626; }
.chk-info { color: #cbd5e1; }

/* CTA section */
.narz-cta {
    text-align: center;
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border-radius: 12px;
}
.narz-cta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.narz-cta .btn-narz-primary {
    background: #8B5CF6;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    margin: 4px;
    cursor: pointer;
}
.narz-cta .btn-narz-primary:hover {
    background: #7C3AED;
    color: #fff;
}
.narz-cta .btn-narz-secondary {
    background: transparent;
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    margin: 4px;
}
.narz-cta .btn-narz-secondary:hover {
    background: #EDE9FE;
}

/* Kalkulator - wspólne style formularzy */
.narz-form {
    background: #fff;
    border: 1px solid #acb8c6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.narz-form-row {
    display: flex;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.narz-form-group {
    flex: 1;
    min-width: 120px;
}
.narz-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}
.narz-form-group input,
.narz-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #acb8c6;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
}
.narz-form-group select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.narz-form-group input:focus,
.narz-form-group select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.btn-narz-calc {
    background: #8B5CF6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-narz-calc:hover {
    background: #7C3AED;
}

/* DPI mode selector tabs */
.dpi-mode-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 8px;
    flex-wrap: wrap;
}
.dpi-mode-tab {
    padding: 10px 20px;
    border: 1px solid #acb8c6;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.dpi-mode-tab:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}
.dpi-mode-tab.active {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}
.dpi-mode-tab i {
    margin-right: 4px;
}
.dpi-mode-desc {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* DPI Quality Matrix */
.dpi-qm {
    max-width: 480px;
    margin: 16px auto 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.dpi-qm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}
.dpi-qm-row:last-child {
    border-bottom: none;
}
.dpi-qm-row.current {
    background: #f0f4ff;
}
.dpi-qm-row.current .dpi-qm-cat {
    font-weight: 600;
}
.dpi-qm-cat {
    color: #475569;
}
.dpi-qm-cat i {
    margin-right: 6px;
    color: #8B5CF6;
    width: 16px;
    text-align: center;
    display: inline-block;
}
.dpi-qm-ref {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
}
.dpi-qm-dpi {
    color: #64748b;
    font-size: 0.8rem;
    min-width: 60px;
    text-align: right;
}
.dpi-qm-level {
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.dpi-qm-level.excellent { background: #dcfce7; color: #166534; }
.dpi-qm-level.very-good { background: #d1fae5; color: #065f46; }
.dpi-qm-level.good { background: #fef9c3; color: #854d0e; }
.dpi-qm-level.acceptable { background: #fed7aa; color: #9a3412; }
.dpi-qm-level.poor { background: #fecaca; color: #991b1b; }
.dpi-qm-note {
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.dpi-qm-note i {
    margin-right: 4px;
}

/* Compression calculator grid */
.komp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.komp-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.komp-card-header {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}
.komp-card-header i {
    margin-right: 6px;
    color: #8B5CF6;
}
.komp-card-body {
    padding: 12px 16px;
}
.komp-variant {
    padding: 8px 0;
}
.komp-variant + .komp-variant {
    border-top: 1px solid #f1f5f9;
}
.komp-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.komp-variant-size {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}
.komp-variant-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 4px;
    overflow: hidden;
}
.komp-variant-fill {
    height: 100%;
    background: #8B5CF6;
    border-radius: 3px;
    transition: width 0.3s;
}
.komp-variant-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}
.komp-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.komp-tag-lossless {
    background: #dcfce7;
    color: #166534;
}
.komp-tag-lossy {
    background: #fef9c3;
    color: #854d0e;
}
.komp-tag-raw {
    background: #f1f5f9;
    color: #64748b;
}

/* Slider section inside format cards */
.komp-slider-section {
    border-top: 2px solid #8B5CF620;
    margin-top: 8px;
    padding: 12px 0 4px;
}
.komp-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.komp-slider-label {
    color: #475569;
}
.komp-slider-label strong {
    color: #8B5CF6;
    font-size: 1rem;
}
.komp-slider-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}
.komp-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
    cursor: pointer;
}
.komp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}
.komp-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}
.komp-slider-fill {
    background: #8B5CF6;
    transition: width 0.1s;
}

/* CMYK picker row: picker + values side by side */
.cmyk-picker-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.cmyk-picker-row .narz-form {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.cmyk-picker-row .narz-result {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}
.cmyk-picker-row .narz-result .narz-table {
    margin-bottom: 0;
}

/* CMYK color preview */
.narz-color-preview {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin: 20px 0;
    flex-wrap: wrap;
}
.narz-color-box {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}
.narz-color-swatch {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid #b8c4d0;
    margin-bottom: 10px;
}
.narz-color-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}
.narz-color-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Breadcrumb / back link */
.narz-breadcrumb {
    margin-bottom: 20px;
}
.narz-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.narz-breadcrumb a:hover {
    text-decoration: underline;
}

/* SEO content section */
.narz-seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #b8c4d0;
}
.narz-seo-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}
.narz-seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-top: 20px;
    margin-bottom: 10px;
}
.narz-seo-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Print size results grid */
.narz-sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.narz-size-card {
    background: #f8fafc;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.narz-size-card .dpi-val {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}
.narz-size-card .size-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}
.narz-size-card .quality-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
}
.quality-badge.excellent {
    background: #dcfce7;
    color: #166534;
}
.quality-badge.good {
    background: #dbeafe;
    color: #1e40af;
}
.quality-badge.acceptable {
    background: #fef9c3;
    color: #854d0e;
}
.quality-badge.poor {
    background: #fce4ec;
    color: #b71c1c;
}

/* File info preview */
.narz-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}
.narz-file-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #b8c4d0;
}
.narz-file-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}
.narz-file-meta {
    color: #64748b;
    font-size: 0.85rem;
}

/* Wycena modal */
#wycenaModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
#wycenaModal .modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0.5rem;
}
#wycenaModal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a1a2e;
}
#wycenaModal .wycena-subtitle {
    font-size: 0.9rem;
}
#wycenaModal .modal-body {
    padding: 1rem 2rem 2rem;
}
#wycenaModal .wycena-consent-label {
    font-size: 0.85rem;
}
#wycenaModal .wycena-consent-check {
    border: 2px solid #6b7280;
}
#wycenaModal .wycena-submit-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: opacity 0.2s;
}
#wycenaModal .wycena-success {
    padding: 2rem 0;
}
#wycenaModal .wycena-success-icon {
    font-size: 4rem;
    color: #7c3aed;
}
#wycenaModal .wycena-success h5 {
    font-weight: 600;
}

/* Wycena modal - service chips */
.wycena-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.wycena-chip {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: #fff;
    flex: 0 0 calc(50% - 5px);
    box-sizing: border-box;
}
.wycena-chip:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}
.wycena-chip.selected {
    border-color: #8B5CF6;
    background: #EDE9FE;
    color: #8B5CF6;
    font-weight: 600;
}
.wycena-chip .chip-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.wycena-chip .chip-text {
    line-height: 1.3;
}
.wycena-chip .chip-label {
    display: block;
    font-weight: 500;
}
.wycena-chip .chip-desc {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: #94a3b8;
}
.wycena-chip.selected .chip-desc {
    color: #a78bfa;
}
.wycena-chip.wycena-chip-full {
    flex: 0 0 100%;
}

/* Wycena modal - product selector */
.wycena-product-selector {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.wycena-product-selector .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
}
.wycena-product-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.wycena-product-dropdown {
    flex: 1;
    border: 2px solid #8B5CF6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #1e293b;
}
.wycena-product-dropdown:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-add-product-btn {
    background: #8B5CF6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wycena-add-product-btn:hover {
    background: #7C3AED;
    color: #fff;
}
.wycena-add-product-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.wycena-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wycena-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    animation: wycenaItemIn 0.2s ease-out;
}
@keyframes wycenaItemIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.wycena-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wycena-custom-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #8B5CF6;
}
.wycena-custom-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.wycena-field-grow {
    flex: 1;
    min-width: 120px;
}
.wycena-custom-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
}
.wycena-custom-input::placeholder {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.wycena-custom-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-item-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wycena-item-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.wycena-field-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.wycena-field-label {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    font-weight: 500;
}
.wycena-size-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}
.wycena-size-input::placeholder {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.wycena-size-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-size-select {
    width: auto;
    max-width: 200px;
    padding: 4px 28px 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1e293b;
    background-color: #fff;
}
.wycena-size-select:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-unit-select {
    width: auto;
    padding: 4px 24px 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1e293b;
    background-color: #fff;
}
.wycena-unit-select:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-qty-input {
    width: 65px;
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}
.wycena-qty-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.15);
    outline: none;
}
.wycena-item-unit {
    font-size: 0.8rem;
    color: #64748b;
    min-width: 28px;
}
.wycena-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.wycena-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .narz-grid {
        grid-template-columns: 1fr;
    }
    .narz-form-row {
        flex-direction: column;
    }
    .cmyk-picker-row {
        flex-direction: column;
    }
    .narz-color-preview {
        flex-direction: column;
        align-items: center;
    }
    .narz-hero h1 {
        font-size: 1.5rem;
    }
    .narz-page h1 {
        font-size: 1.4rem;
    }
    .narz-table-chk td {
        display: block;
        width: 100% !important;
        text-align: left;
    }
    .narz-table-chk tr {
        display: block;
        padding: 8px 0;
    }
    .wycena-chip {
        flex: 0 0 100%;
    }
    .wycena-product-add-row {
        flex-direction: column;
    }
    .wycena-product-dropdown {
        width: 100%;
    }
    .wycena-add-product-btn {
        width: 100%;
        justify-content: center;
    }
    .wycena-item-fields {
        gap: 8px;
    }
    .dpi-mode-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .dpi-mode-tab {
        padding: 10px 8px;
        font-size: 0.85rem;
        text-align: center;
    }
    .dpi-mode-tab i {
        display: block;
        font-size: 1.2rem;
        margin: 0 0 2px;
    }
    /* iOS zoom prevention — all text inputs must be ≥16px */
    .narz-page input[type="text"],
    .narz-page input[type="search"],
    .narz-page input[type="number"],
    .narz-page textarea,
    .narz-page select {
        font-size: 16px !important;
    }
    /* Prevent table overflow on narrow screens */
    .pal-values-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .narz-table {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    /* Long file names */
    .narz-file-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 120px);
    }
}
@media (max-width: 480px) {
    .dpi-qm-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    .dpi-qm-ref {
        font-size: 0.72rem;
    }
    .narz-subtitle {
        font-size: 0.9rem;
    }
    .narz-privacy {
        font-size: 0.8rem;
    }
}

/* ============================================================
   PALETTE GENERATOR (narz_palety)
   ============================================================ */

/* --- Tab Navigation --- */
.pal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pal-tab {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-family: Poppins, sans-serif;
}
.pal-tab i { font-size: inherit; }
.pal-tab:hover { color: #8B5CF6; }
.pal-tab.active {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
    font-weight: 600;
}
.pal-tab-content { display: none; }
.pal-tab-content.active { display: block; }

/* --- Generator Layout --- */
.pal-generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}
.pal-picker-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pal-color-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pal-color-input-row input[type="color"] {
    width: 56px;
    height: 42px;
    border: 2px solid #b8c4d0;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    background: none;
}
.pal-color-input-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.pal-color-input-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
.pal-color-input-row input[type="text"] {
    width: 120px;
    padding: 10px 12px;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.pal-color-input-row input[type="text"]:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

/* --- Harmony Buttons --- */
.pal-harmony-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pal-harmony-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Poppins, sans-serif;
    position: relative;
}
.pal-harmony-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}
.pal-harmony-btn.active {
    border-color: #8B5CF6;
    background: #EDE9FE;
    color: #8B5CF6;
    font-weight: 600;
}
.pal-harmony-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.pal-harmony-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}
.pal-harmony-btn:hover .pal-harmony-tooltip { display: block; }

/* --- Color Wheel --- */
.pal-wheel-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pal-wheel-wrap canvas {
    max-width: 100%;
    height: auto;
}

/* --- Palette Strips --- */
.pal-palette-display {
    margin-bottom: 24px;
}
.pal-strips {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.pal-strip {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    cursor: pointer;
    transition: flex 0.2s;
    min-width: 0;
}
.pal-strip:hover { flex: 1.3; }
.pal-strip-label {
    font-size: 0.78rem;
    font-family: monospace;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* --- Values Table --- */
.pal-values-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
    margin-top: 16px;
    margin-left: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.pal-values-table th,
.pal-values-table td {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 8px;
}
.pal-values-table th {
    text-align: left;
    color: #64748b;
    font-weight: 500;
    border-bottom-width: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
}
.pal-values-table th:first-child { width: 44px; }
.pal-values-table th:nth-child(2) { width: 18%; }
.pal-values-table td {
    font-family: monospace;
    font-size: 0.78rem;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pal-values-table tr:last-child td { border-bottom: none; }
.pal-swatch-sm {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* --- Preview Section --- */
.pal-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.pal-preview-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.pal-preview-label {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.pal-mockup {
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
}
.pal-mockup-nav {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pal-mockup-logo { font-weight: 700; font-size: 0.9rem; }
.pal-mockup-links { display: flex; gap: 12px; font-size: 0.75rem; opacity: 0.85; }
.pal-mockup-body { padding: 16px; }
.pal-mockup-body h4 { margin: 0 0 8px; font-size: 1rem; }
.pal-mockup-body p { margin: 0 0 12px; font-size: 0.8rem; line-height: 1.5; }
.pal-mockup-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: default;
    margin-bottom: 14px;
}
.pal-mockup-cards { display: flex; gap: 10px; }
.pal-mockup-card {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.75rem;
    text-align: center;
    padding-bottom: 8px;
}
.pal-mockup-card-bar { height: 6px; }

/* --- Contrast Badges in Preview --- */
.pal-contrast-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.pal-contrast-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.pal-contrast-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
}
.pal-contrast-ratio { font-weight: 600; font-family: monospace; }
.pal-contrast-level { font-weight: 700; }
.pal-contrast-excellent .pal-contrast-level { color: #16a34a; }
.pal-contrast-good .pal-contrast-level { color: #16a34a; }
.pal-contrast-poor .pal-contrast-level { color: #ca8a04; }
.pal-contrast-fail .pal-contrast-level { color: #dc2626; }

/* --- Export Buttons --- */
.pal-export-section { margin-top: 24px; }
.pal-export-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.pal-export-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.pal-btn-export {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Poppins, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pal-btn-export:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
    background: #f8f6ff;
}
.pal-btn-export i { font-size: 1rem; }

.pal-btn-to-generator {
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed, #5100FF);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Poppins, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pal-btn-to-generator:hover {
    background: linear-gradient(135deg, #6d28d9, #4500dd);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 0, 255, 0.3);
}
.pal-btn-to-generator i { font-size: 1.1rem; }

/* --- Library Tab --- */
.pal-lib-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pal-lib-filter {
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Poppins, sans-serif;
}
.pal-lib-filter:hover { border-color: #8B5CF6; color: #8B5CF6; }
.pal-lib-filter.active {
    background: #8B5CF6;
    color: #fff;
    border-color: #8B5CF6;
}
.pal-lib-search {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-family: Poppins, sans-serif;
}
.pal-lib-search:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}
.pal-lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.pal-lib-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pal-lib-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.pal-lib-strips { display: flex; height: 64px; }
.pal-lib-strip { flex: 1; }
.pal-lib-name {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
}

/* --- Image Extract Tab --- */
.pal-image-dropzone {
    border: 2px dashed #b8c4d0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
    margin-bottom: 20px;
}
.pal-image-dropzone:hover,
.pal-image-dropzone.dragover {
    border-color: #8B5CF6;
    background: #EDE9FE;
}
.pal-image-dropzone-icon { font-size: 2.5rem; color: #94a3b8; margin-bottom: 10px; display: block; }
.pal-image-dropzone-text { color: #64748b; font-size: 0.95rem; }
.pal-image-dropzone-formats { color: #94a3b8; font-size: 0.82rem; margin-top: 6px; }
.pal-image-preview {
    max-width: 300px;
    margin: 0 auto 20px;
}
.pal-image-preview img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pal-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 10px;
    color: #64748b;
}
.pal-spinner-dot {
    width: 10px;
    height: 10px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: palSpinnerBounce 1.2s infinite ease-in-out;
}
.pal-spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.pal-spinner-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes palSpinnerBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- Contrast Tab --- */
.pal-contrast-inputs {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pal-contrast-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pal-contrast-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}
.pal-contrast-input-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #b8c4d0;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
}
.pal-contrast-input-group input[type="text"] {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.pal-contrast-input-group input[type="text"]:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}
.pal-btn-swap {
    padding: 8px 14px;
    border: 1px solid #b8c4d0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.pal-btn-swap:hover { border-color: #8B5CF6; color: #8B5CF6; }

.pal-contrast-ratio-big {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 16px 0;
    font-family: Poppins, sans-serif;
}
.pal-contrast-ratio-big.pal-contrast-excellent { color: #16a34a; }
.pal-contrast-ratio-big.pal-contrast-good { color: #16a34a; }
.pal-contrast-ratio-big.pal-contrast-poor { color: #ca8a04; }
.pal-contrast-ratio-big.pal-contrast-fail { color: #dc2626; }

.pal-wcag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.pal-wcag-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}
.pal-wcag-level { font-weight: 700; font-size: 0.9rem; color: #334155; }
.pal-wcag-size { font-size: 0.78rem; color: #94a3b8; }
.pal-wcag-result { font-weight: 700; font-size: 0.85rem; }
.pal-wcag-result.pass { color: #16a34a; }
.pal-wcag-result.fail { color: #dc2626; }

.pal-contrast-preview-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.pal-contrast-preview-box p { margin: 0 0 8px; }

.pal-suggest-color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.pal-btn-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
    border: 1px solid #8B5CF6;
    border-radius: 6px;
    background: #EDE9FE;
    color: #8B5CF6;
    cursor: pointer;
    font-weight: 600;
}
.pal-btn-sm:hover { background: #8B5CF6; color: #fff; }

/* --- Toast --- */
.pal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    pointer-events: none;
}
.pal-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Empty state --- */
.pal-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 30px;
}

/* --- Section headings --- */
.pal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 24px 0 12px;
}

/* --- Responsive --- */
/* Hide tooltips on touch devices — :hover doesn't apply reliably */
@media (hover: none), (pointer: coarse) {
    .pal-harmony-tooltip { display: none !important; }
    .pal-harmony-btn:hover .pal-harmony-tooltip { display: none !important; }
}

@media (max-width: 768px) {
    .pal-generator-grid {
        grid-template-columns: 1fr;
    }
    .pal-preview-grid {
        grid-template-columns: 1fr;
    }
    .pal-wcag-grid {
        grid-template-columns: 1fr;
    }
    .pal-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        border-bottom: none;
        margin-bottom: 20px;
    }
    .pal-tab {
        padding: 10px 8px;
        font-size: 0.85rem;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        border-bottom: 2px solid #e2e8f0;
        text-align: center;
        white-space: nowrap;
    }
    .pal-tab i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    .pal-tab.active {
        border-color: #8B5CF6;
        border-bottom-color: #8B5CF6;
        background: #EDE9FE;
    }
    .pal-harmony-tooltip { display: none !important; }
    .pal-contrast-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .pal-strips { height: 80px; }
    .pal-strip-label { font-size: 0.7rem; }
    .pal-lib-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .pal-values-table { font-size: 0.75rem; }
    .pal-values-table td { padding: 6px 6px; }
}

@media (max-width: 480px) {
    .pal-tab {
        padding: 8px 6px;
        font-size: 0.78rem;
    }
    .pal-tab i { font-size: 1.1rem; }
    .pal-harmony-group { gap: 6px; }
    .pal-harmony-btn { padding: 6px 10px; font-size: 0.78rem; }
    .pal-export-group { gap: 6px; }
    .pal-btn-export { padding: 6px 10px; font-size: 0.78rem; }
    .pal-contrast-ratio-big { font-size: 2rem; }
}

/* ========================================================================
   DNA KOLORU — Color Psychology Tool (kol- prefix)
   ======================================================================== */

/* Color input bar */
.kol-color-input-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 20px; background: #f8fafc; border-radius: 12px;
    border: 1px solid #e2e8f0; margin-bottom: 20px;
}
.kol-color-input-bar label { font-weight: 600; color: #4a5568; font-size: 0.9rem; }
.kol-color-input-bar input[type="color"] { width: 44px; height: 36px; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; padding: 2px; }
.kol-color-input-bar input[type="text"] { width: 90px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: monospace; font-size: 0.95rem; }
.kol-family-badge { padding: 4px 14px; border: 2px solid #8B5CF6; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }

/* Tabs */
.kol-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 2px solid #e2e8f0; padding-bottom: 0; }
.kol-tab { padding: 10px 16px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-size: 0.88rem; font-weight: 500; color: #718096; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.kol-tab:hover { color: #4a5568; background: #f7fafc; }
.kol-tab.active { color: #8B5CF6; border-bottom-color: #8B5CF6; font-weight: 600; }
.kol-tab-content { display: none; }
.kol-tab-content.active { display: block; }

/* Tab 1: Psychology Card */
.kol-psych-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; }
.kol-psych-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.kol-swatch-large { width: 80px; height: 80px; border-radius: 14px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.kol-psych-title h2 { margin: 0; font-size: 1.6rem; color: #1a202c; }
.kol-psych-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.kol-psych-col h3 { font-size: 0.9rem; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 20px; font-weight: 600; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #4a5568; }
.kol-positive h3 { border-color: #8B5CF6; color: #6d28d9; }
.kol-negative h3 { border-color: #cbd5e0; color: #64748b; }
.kol-psych-col ul { list-style: none; padding: 0; margin: 0; }
.kol-psych-col ul li { padding: 6px 0; font-size: 0.92rem; color: #1a202c; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.kol-psych-grid + .kol-psych-grid { margin-top: 28px; padding-top: 24px; border-top: 2px solid #cbd5e0; }
.kol-psych-section { margin-bottom: 16px; }
.kol-psych-section h3 { font-size: 1.15rem; color: #4a5568; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kol-psych-section ul { list-style: disc; padding-left: 20px; margin: 0; }
.kol-psych-section ul li { font-size: 0.98rem; color: #4a5568; padding: 2px 0; }
.kol-brands-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kol-brand-tag { background: #f1f5f9; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; color: #4a5568; font-weight: 500; }

/* Tab 2: Industry */
.kol-section-label { font-size: 1rem; color: #4a5568; font-weight: 600; margin: 24px 0 12px; }
.kol-industry-fit { margin-bottom: 24px; }
.kol-industry-fit h3 { font-size: 1rem; margin-bottom: 10px; color: #1a202c; }
.kol-fit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.kol-fit-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; }
.kol-fit-good { background: #f0fff4; }
.kol-fit-neutral { background: #f7fafc; }
.kol-fit-bad { background: #fff5f5; }
.kol-fit-stars { color: #ecc94b; white-space: nowrap; flex-shrink: 0; display: inline-flex; gap: 1px; }
.kol-fit-stars i { font-size: 0.8rem; }
.kol-fit-stars .bi-star { color: #cbd5e0; }
.kol-fit-name { flex: 1; min-width: 0; }
.kol-industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kol-industry-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: all 0.2s; font-size: 0.85rem; color: #4a5568; }
.kol-industry-card:hover { border-color: #8B5CF6; background: #faf5ff; color: #553c9a; }
.kol-industry-card i { font-size: 1.5rem; }
.kol-industry-detail { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-top: 12px; }
.kol-ind-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kol-ind-detail-header h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.kol-ind-close { background: none; border: none; cursor: pointer; color: #a0aec0; font-size: 1.2rem; }
.kol-ind-row { margin-bottom: 10px; font-size: 0.9rem; color: #4a5568; }
.kol-ind-color { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 2px; }
.kol-ind-palettes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.kol-ind-palette { display: flex; align-items: center; gap: 2px; }
.kol-pal-swatch { width: 32px; height: 32px; border-radius: 6px; }
.kol-open-palette { margin-left: 6px; color: #8B5CF6; font-size: 0.85rem; }

/* Tab 3: Cultures */
.kol-culture-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kol-culture-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; }
.kol-culture-flag { font-size: 2rem; margin-bottom: 6px; }
.kol-culture-name { font-weight: 600; color: #2d3748; margin-bottom: 8px; }
.kol-culture-meaning { font-size: 0.85rem; color: #4a5568; line-height: 1.5; text-align: left; }
.kol-culture-warning { margin-top: 10px; padding: 8px; background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px; font-size: 0.82rem; color: #92400e; text-align: left; }

/* Tab 4: Mood */
.kol-mood-input { margin-bottom: 20px; }
.kol-mood-input h3 { font-size: 1rem; margin-bottom: 12px; }
.kol-mood-colors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.kol-mood-color-item { display: flex; align-items: center; gap: 6px; }
.kol-mood-color-item input[type="color"] { width: 38px; height: 32px; border: 2px solid #e2e8f0; border-radius: 6px; cursor: pointer; padding: 2px; }
.kol-mood-color-item input[type="text"] { width: 80px; padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-family: monospace; font-size: 0.85rem; }
.kol-mood-remove { background: none; border: none; color: #a0aec0; cursor: pointer; font-size: 1rem; padding: 2px 4px; }
.kol-mood-remove:hover { color: #e53e3e; }
.kol-mood-actions { display: flex; gap: 10px; }
.btn-narz-secondary { padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #4a5568; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.btn-narz-secondary:hover { border-color: #8B5CF6; color: #8B5CF6; }
.kol-mood-actions .btn-narz-primary { padding: 8px 20px; border: none; border-radius: 8px; background: #8B5CF6; color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.kol-mood-actions .btn-narz-primary:hover { background: #7c3aed; }
.kol-mood-result { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.kol-mood-chart-wrap { flex: 0 0 360px; }
.kol-mood-keywords, .kol-mood-industries { flex: 1; min-width: 200px; }
.kol-mood-keywords h4, .kol-mood-industries h4 { font-size: 0.95rem; color: #4a5568; margin-bottom: 10px; }
.kol-mood-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kol-mood-tag { background: #ede9fe; color: #5b21b6; padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500; }
.kol-mood-ind-list { display: flex; flex-wrap: wrap; gap: 10px; }
.kol-mood-ind { background: #f0f9ff; color: #1e40af; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

/* Tab 5: Print vs Screen */
.kol-print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.kol-print-col h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.kol-swatch-print { width: 100%; height: 80px; border-radius: 10px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.kol-swatch-cmyk { filter: saturate(0.85); }
.kol-values-list { font-size: 0.88rem; color: #4a5568; }
.kol-values-list div { margin-bottom: 4px; }
.kol-gamut-warning { margin-top: 10px; padding: 10px 14px; background: #fffbeb; border: 1px solid #f59e0b; border-radius: 8px; color: #92400e; font-size: 0.85rem; }
.kol-pantone-section { margin-bottom: 20px; }
.kol-pantone-section h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.kol-pantone-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.kol-pantone-swatch { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.kol-pantone-name { font-weight: 600; color: #2d3748; }
.kol-pantone-hex { font-family: monospace; color: #718096; font-size: 0.9rem; }
.kol-paper-section { margin-bottom: 20px; }
.kol-paper-section h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.kol-paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kol-paper-card { text-align: center; }
.kol-paper-swatch { width: 100%; height: 70px; border-radius: 10px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.kol-paper-uncoated { filter: saturate(0.8) brightness(1.05); }
.kol-paper-recycled { filter: saturate(0.65) brightness(1.1) sepia(0.1); }
.kol-paper-card span { font-size: 0.8rem; color: #718096; }
.kol-print-tips { margin-bottom: 16px; padding: 14px 18px; background: #f0f9ff; border-radius: 10px; border-left: 4px solid #3182ce; }
.kol-print-tips h3 { font-size: 0.95rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; color: #2b6cb0; }
.kol-print-tips p { font-size: 0.88rem; color: #4a5568; margin: 0; line-height: 1.6; }
.kol-link-cmyk { font-size: 0.9rem; }
.kol-link-cmyk a { color: #8B5CF6; text-decoration: none; font-weight: 500; }
.kol-link-cmyk a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 767px) {
    .kol-psych-grid { grid-template-columns: 1fr; }
    .kol-print-grid { grid-template-columns: 1fr; }
    .kol-paper-grid { grid-template-columns: 1fr; gap: 10px; }
    .kol-mood-chart-wrap { flex: 0 0 100%; }
    .kol-culture-cards { grid-template-columns: 1fr; }
    .kol-fit-grid { grid-template-columns: 1fr; }
    .kol-industry-grid { grid-template-columns: repeat(2, 1fr); }
    .kol-tab span { display: none; }
    .kol-tab i { font-size: 1.2rem; }
    .kol-mood-result { flex-direction: column; }
}
