.pcls-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1400px) {
    .pcls-wrapper {
        max-width: 100%;
        padding: 20px 16px;
    }
}

.pcls-app {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    font-size: 15px;
}

.pcls-app * {
    box-sizing: border-box;
}

.pcls-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #083141;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pcls-lead {
    margin: 0 0 6px;
    line-height: 1.4;
}

.pcls-intro {
    margin-bottom: 8px;
}

.pcls-intro-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.pcls-intro-step {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

.pcls-intro-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #083141;
    margin: 0 0 8px;
}

.pcls-intro-step-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.pcls-tagline {
    font-size: 0.9rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 16px;
}

.pcls-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

.pcls-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #083141;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.pcls-step-help {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #4b5563;
}

.pcls-subsection {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.pcls-subheading {
    font-weight: 600;
    margin: 0 0 4px;
}

.pcls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 16px;
}

.pcls-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .pcls-grid-2 {
        grid-template-columns: 1fr;
    }

    .pcls-wrapper {
        padding: 16px 12px;
    }

    .pcls-step {
        padding: 16px 18px;
    }

    .pcls-title {
        font-size: 1.4rem;
    }

    .pcls-intro-steps {
        grid-template-columns: 1fr;
    }

    .pcls-summary-value {
        font-size: 1.2rem;
    }
}

.pcls-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pcls-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.pcls-input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 9px;
    font-size: 0.95rem;
    width: 100%;
}

.pcls-input:focus {
    outline: 2px solid #59747c;
    outline-offset: 1px;
    border-color: #59747c;
}

/* Radios */

.pcls-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 6px 0 10px;
}

.pcls-radio-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.pcls-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.pcls-radio-label input[type="radio"] {
    margin-top: 2px;
}

.pcls-radio-text {
    display: inline-block;
}

/* Summary cards */

.pcls-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 10px;
}

.pcls-summary-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .pcls-summary-grid,
    .pcls-summary-grid-3 {
        grid-template-columns: 1fr;
    }
}

.pcls-summary-card {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.pcls-summary-card:hover {
    border-color: #59747c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pcls-summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 4px;
}

.pcls-summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #083141;
    line-height: 1.2;
}

.pcls-summary-highlight {
    color: #14532d;
}

.pcls-summary-sub {
    font-size: 0.85rem;
    color: #4b5563;
}

/* LSA block */

.pcls-lsa-card {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #cbd5f5;
    background: #eff6ff;
}

.pcls-lsa-progress {
    margin-top: 12px;
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5f5;
    position: relative;
}

.pcls-lsa-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 0;
}

.pcls-lsa-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #1d4ed8;
}

.pcls-lsa-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.pcls-lsa-label {
    font-weight: 500;
}

.pcls-lsa-value {
    font-weight: 600;
}

.pcls-lsa-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #1f2933;
}

/* Key Insights */

.pcls-key-insights {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
}

.pcls-key-insights-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 12px;
}

.pcls-key-insights-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.pcls-key-insights-list li {
    font-size: 0.95rem;
    color: #1e3a8a;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.pcls-key-insights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.1rem;
}

.pcls-key-insights-list li:last-child {
    margin-bottom: 0;
}

/* Warnings and disclaimer */

.pcls-warnings {
    margin-top: 14px;
    padding: 10px 12px;
    background: #fff7ed;
    border-radius: 10px;
    border: 1px solid #fed7aa;
}

.pcls-warnings-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #9a3412;
}

.pcls-warnings-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #7c2d12;
}

.pcls-disclaimer {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Results step */

.pcls-step-results {
    margin-bottom: 10px;
}

/* Comparison Section */

.pcls-comparison-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.pcls-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .pcls-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.pcls-comparison-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.pcls-comparison-card:hover {
    border-color: #59747c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pcls-comparison-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #083141;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.pcls-comparison-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.pcls-comparison-metric:last-child {
    border-bottom: none;
}

.pcls-comparison-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.pcls-comparison-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #083141;
}

.pcls-comparison-highlight {
    color: #10b981;
}

.pcls-comparison-negative {
    color: #ef4444;
}

.pcls-comparison-note {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 2px;
}

/* Charts Section */

.pcls-charts-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.pcls-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .pcls-charts-grid {
        grid-template-columns: 1fr;
    }
}

.pcls-chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pcls-chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #083141;
    margin: 0 0 16px;
    text-align: center;
}

.pcls-chart-card canvas {
    max-width: 100%;
    height: auto !important;
}

/* Slider Styles */

.pcls-slider-container {
    margin: 16px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.pcls-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.pcls-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pcls-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #59747c;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.pcls-slider::-webkit-slider-thumb:hover {
    background: #083141;
    transform: scale(1.1);
}

.pcls-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #59747c;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.pcls-slider::-moz-range-thumb:hover {
    background: #083141;
    transform: scale(1.1);
}

.pcls-slider-value {
    min-width: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #083141;
    text-align: right;
}

/* Basic print styling */

@media print {
    .pcls-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .pcls-step {
        box-shadow: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
