.w4i-pmccw-wrapper {
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e3e6eb;
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.w4i-pmccw-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.w4i-pmccw-intro {
    font-size: 0.85rem;
    margin-top: 0;
    margin-bottom: 0.85rem;
    color: #555;
}

.w4i-pmccw-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.w4i-pmccw-base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.w4i-pmccw-field {
    display: flex;
    flex-direction: column;
}

.w4i-pmccw-field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.w4i-pmccw-field input {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 0.9rem;
}

.w4i-pmccw-field input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 1px rgba(255,152,0,0.3);
}

.w4i-pmccw-help {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.15rem;
}

.w4i-pmccw-short-wrap {
    margin-bottom: 1rem;
}

.w4i-pmccw-short-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.w4i-pmccw-short-table thead {
    background: #fff3e0;
}

.w4i-pmccw-short-table th,
.w4i-pmccw-short-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #e3e6eb;
    text-align: left;
}

.w4i-pmccw-input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 0.85rem;
}

.w4i-pmccw-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 1px rgba(255,152,0,0.3);
}

.w4i-pmccw-remove {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: none;
    background: #ffebee;
    color: #b71c1c;
    cursor: pointer;
    font-size: 0.75rem;
}

.w4i-pmccw-btn-primary,
.w4i-pmccw-btn-secondary {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.w4i-pmccw-btn-primary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.w4i-pmccw-btn-primary:hover {
    opacity: 0.96;
}

.w4i-pmccw-btn-secondary {
    background: #f1f3f5;
    color: #333;
}

.w4i-pmccw-btn-secondary:hover {
    background: #e0e3e7;
}

.w4i-pmccw-scenarios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.w4i-pmccw-scenario {
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #e3e6eb;
    background: #f9fafb;
}

.w4i-pmccw-results {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.w4i-pmccw-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e3e6eb;
}

.w4i-pmccw-summary {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #444;
}

.w4i-pmccw-table-wrap {
    overflow-x: auto;
}

.w4i-pmccw-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.w4i-pmccw-result-table thead {
    background: #fff3e0;
}

.w4i-pmccw-result-table th,
.w4i-pmccw-result-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e3e6eb;
    text-align: left;
}

.w4i-pmccw-result-table th {
    font-weight: 700;
}

.w4i-pmccw-win td {
    background: #e8f5e9;
}

.w4i-pmccw-loss td {
    background: #ffebee;
}

.w4i-pmccw-disclaimer {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.75rem;
}
