.csa-wrapper {
    max-width: 850px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.csa-header-banner {
    background: #0f172a;
    color: #fff;
    padding: 2rem;
}

.csa-header-banner h2 { margin: 0 0 0.5rem 0; color: #fff; font-size: 1.6rem; }
.csa-header-banner p { margin: 0; color: #94a3b8; font-size: 0.95rem; }

.csa-progress-bar { height: 6px; background: #334155; margin-top: 1.5rem; border-radius: 3px; overflow: hidden; }
.csa-progress-fill { height: 100%; width: 25%; background: #3b82f6; transition: width 0.4s ease; }

.csa-step { display: none; padding: 2rem; }
.csa-step.active { display: block; }
.csa-step-title { margin-top: 0; color: #0f172a; font-size: 1.3rem; }
.csa-step-sub { color: #64748b; margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Domain Grid */
.csa-grid-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.csa-domain-card {
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; cursor: pointer; text-align: center;
    transition: all 0.2s ease; background: #f8fafc;
}
.csa-domain-card:hover { border-color: #93c5fd; transform: translateY(-2px); }
.csa-domain-card.selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }
.csa-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.csa-card-title { font-weight: 600; color: #1e293b; font-size: 0.95rem; }

/* Subcase & Checkboxes */
.csa-subcase-group { margin-bottom: 1.5rem; }
.csa-subcase-group h4 { margin: 0 0 0.75rem 0; color: #1e293b; }
.csa-subcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.75rem; }
.csa-subcase-card {
    display: flex; align-items: center; gap: 10px; background: #f8fafc; padding: 0.75rem 1rem;
    border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; font-size: 0.9rem;
}
.csa-controls-card { background: #f1f5f9; padding: 1.25rem; border-radius: 12px; margin-top: 1.5rem; }
.csa-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }

/* Buttons & Navigation */
.csa-btn-row { display: flex; gap: 1rem; justify-content: space-between; }
.csa-btn { padding: 0.85rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem; }
.csa-btn-primary { background: #2563eb; color: #fff; width: 100%; }
.csa-btn-primary:hover { background: #1d4ed8; }
.csa-btn-secondary { background: #e2e8f0; color: #334155; }

/* Skip & Lead Gate */
.csa-gate-card { text-align: center; max-width: 480px; margin: 0 auto; padding: 1rem 0; }
.csa-badge-notice { background: #dcfce7; color: #15803d; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.csa-skip-wrapper { margin-top: 1.25rem; border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.csa-skip-btn { background: none; border: none; color: #64748b; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }
.csa-skip-btn:hover { color: #0f172a; }

/* Dashboard & Results */
.csa-dashboard { display: grid; gap: 1.5rem; }
.csa-metric-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; text-align: center; }
.csa-metric-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; font-weight: 700; }
.csa-metric-score { font-size: 3rem; font-weight: 800; color: #0f172a; margin: 0.25rem 0; }
.csa-risk-pill { display: inline-block; padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.risk-high { background: #fee2e2; color: #991b1b; }
.risk-medium { background: #fef3c7; color: #92400e; }
.risk-low { background: #dcfce7; color: #166534; }

.csa-tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.csa-tech-item { background: #ffffff; border: 1px solid #cbd5e1; padding: 1rem; border-radius: 10px; }
.csa-tech-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.csa-tech-dom { font-size: 0.75rem; color: #64748b; text-transform: uppercase; font-weight: 600; }
.csa-tech-title { font-weight: 700; color: #0f172a; font-size: 1rem; }
.csa-tech-desc { font-size: 0.85rem; color: #475569; margin-top: 0.25rem; }

.csa-badge-critical { background: #ef4444; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.csa-badge-high { background: #f97316; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.csa-badge-medium { background: #eab308; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }