/* Simulador CAD interactivo y asistente guiado de medidas SIAMAQ */
.cfg-assistant-section {
    margin: 0 36px 28px;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.cfg-assistant-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.cfg-header-copy {
    min-width: 0;
    flex: 1 1 360px;
}

.cfg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #cd4e00;
    margin-bottom: 6px;
}

.cfg-eyebrow-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cd4e00;
    box-shadow: 0 0 0 0 rgba(205, 78, 0, 0.45);
    animation: cfgOrangePing 2.2s infinite;
}

.cfg-assistant-header h3 {
    margin: 0;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}

.cfg-guide-copy {
    margin: 7px 0 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    max-width: 66ch;
}

.cfg-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cfg-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.cfg-status-pill.is-valid {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.32);
}

.cfg-status-pill.is-warn {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
}

.cfg-status-pill.is-blocked {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #ef4444;
    transition: none;
    animation: cfgPillPulse 1.8s ease-in-out infinite;
}

.cfg-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.cfg-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cfg-step-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.cfg-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #0f172a;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cfg-step-node.is-active {
    background: #fff3eb;
    border-color: #f7c7a7;
    color: #b74400;
}

.cfg-step-node.is-active .cfg-step-num {
    background: #cd4e00;
    color: #ffffff;
}

.cfg-step-node.is-done {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

.cfg-step-node.is-done .cfg-step-num {
    background: #10b981;
    color: #ffffff;
}

.cfg-step-node.is-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.cfg-step-node.is-error .cfg-step-num {
    background: #dc2626;
    color: #ffffff;
}

.cfg-assistant-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.cfg-stage-col {
    min-width: 0;
    position: sticky;
    top: 94px;
}

.cfg-controls-col {
    min-width: 0;
}

.cfg-svg-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    background: #070b14;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.26);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cfg-svg-frame.is-blocked {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.24), 0 20px 44px rgba(127, 29, 29, 0.26);
}

.cfg-svg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.cfg-svg-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfg-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.cfg-svg-frame.is-blocked .cfg-live-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

.cfg-svg-badge {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f8fafc;
}

.cfg-svg-scale-note {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.28);
    color: #fde047;
}

.cfg-svg-viewport-wrap {
    position: relative;
}

.cfg-svg-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 400;
    min-height: 310px;
}

.cfg-danger-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cfg-svg-frame.is-blocked .cfg-danger-overlay {
    opacity: 1;
}

.cfg-anim-shape {
    transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.cfg-dock-hit {
    cursor: pointer;
}

.cfg-dock-hit:hover rect {
    stroke-opacity: 1;
}

.cfg-caliper-primary {
    color: #facc15;
}

.cfg-caliper-accent {
    color: #38bdf8;
}

.cfg-svg-frame.is-blocked .cfg-caliper-primary {
    color: #f87171;
}

.cfg-controls-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cfg-control-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.cfg-step-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cfg-step-chip {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
}

.cfg-step-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: #cd4e00;
}

.cfg-step-heading {
    margin: 0;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.cfg-step-sub {
    margin: 5px 0 14px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

.cfg-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* Paso 1 Multi: Selector "¿Cuántas medidas requieres?" */
.cfg-qty-card {
    background: linear-gradient(135deg, #fffcf9 0%, #fff7f0 100%);
    border-color: #f3d2bc;
}

.cfg-qty-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cfg-qty-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 8px;
    flex: 1 1 290px;
}

.cfg-qty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 9px 6px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cfg-qty-btn:hover {
    border-color: #cd4e00;
    transform: translateY(-2px);
}

.cfg-qty-btn strong {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.cfg-qty-btn span {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
}

.cfg-qty-btn.is-selected {
    border-color: #cd4e00;
    background: linear-gradient(135deg, #cd4e00 0%, #ea580c 100%);
    box-shadow: 0 8px 18px rgba(205, 78, 0, 0.25);
}

.cfg-qty-btn.is-selected strong,
.cfg-qty-btn.is-selected span {
    color: #ffffff;
}

.cfg-qty-custom-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
}

.cfg-qty-step-btn {
    width: 34px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cfg-qty-step-btn:hover:not(:disabled) {
    background: #fff3eb;
    border-color: #cd4e00;
    color: #cd4e00;
}

.cfg-qty-step-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cfg-qty-custom-val {
    min-width: 28px;
    text-align: center;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

/* Paso 2 Multi: Ficha individual por cada medida / troquel */
.cfg-variants-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cfg-variant-card {
    position: relative;
    border-radius: 13px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cfg-variant-card.is-active {
    background: #ffffff;
    border-color: #cd4e00;
    box-shadow: 0 8px 24px rgba(205, 78, 0, 0.1), 0 0 0 3px rgba(205, 78, 0, 0.12);
}

.cfg-variant-card.is-invalid {
    border-color: #ef4444;
    background: #fff8f8;
}

.cfg-variant-card.is-active.is-invalid {
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.12), 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.cfg-variant-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    cursor: pointer;
}

.cfg-variant-id-group {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cfg-variant-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(15, 23, 42, 0.16);
}

.cfg-variant-title-btn {
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
}

.cfg-variant-live-tag {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff3eb;
    color: #b74400;
    border: 1px solid #f7c7a7;
}

.cfg-variant-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cfg-variant-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.cfg-variant-card.is-invalid .cfg-variant-badge {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.cfg-variant-remove {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    border-radius: 7px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.cfg-variant-remove:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.cfg-variant-name-wrap {
    margin-bottom: 10px;
}

.cfg-variant-name-wrap input {
    width: 100%;
    font-size: 12.5px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 7px 10px;
    background: #ffffff;
    color: #0f172a;
}

.cfg-variant-name-wrap input:focus {
    outline: none;
    border-color: #cd4e00;
    box-shadow: 0 0 0 3px rgba(205, 78, 0, 0.12);
}

/* Tallas de placa */
.cfg-price-delta-badge {
    display: none !important;
}

.cfg-talla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.cfg-talla-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 11px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cfg-talla-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.cfg-talla-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cfg-talla-card strong {
    font-size: 13.5px;
    color: #0f172a;
}

.cfg-talla-card span {
    font-size: 11.5px;
    color: #475569;
}

.cfg-talla-card small {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.cfg-talla-card.is-selected {
    border-color: #cd4e00;
    background: #fff7f2;
    box-shadow: 0 0 0 3px rgba(205, 78, 0, 0.14);
}

.cfg-talla-card.is-selected small {
    color: #b74400;
    font-weight: 700;
}

/* Parámetros con indicador visual de zona segura */
.cfg-params-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cfg-param-field {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cfg-param-field.is-out-of-range {
    border-color: #ef4444;
    background: #fef2f2;
}

.cfg-param-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cfg-param-top label {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.cfg-limit-pill {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-weight: 700;
}

.cfg-param-field.is-out-of-range .cfg-limit-pill {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.cfg-param-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 12px;
    align-items: center;
}

.cfg-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
}

.cfg-slider-safezone {
    position: absolute;
    top: 9px;
    height: 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.3);
    pointer-events: none;
}

.cfg-range-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    accent-color: #cd4e00;
    cursor: pointer;
    background: transparent;
}

.cfg-param-field.is-out-of-range .cfg-range-slider {
    accent-color: #dc2626;
}

.cfg-number-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cfg-number-input {
    min-height: 36px;
    padding: 4px 8px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-weight: 700;
    font-size: 13.5px;
    text-align: right;
}

.cfg-number-wrap > span {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    min-width: 24px;
}

/* Compatibilidad de masas */
.cfg-masa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
}

.cfg-masa-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.16s ease;
}

.cfg-masa-card:hover {
    transform: translateY(-1px);
}

.cfg-masa-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cfg-masa-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cfg-masa-card.is-ok .cfg-masa-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.cfg-masa-card.is-warn .cfg-masa-icon {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.cfg-masa-card.is-block .cfg-masa-icon {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.cfg-masa-content {
    flex: 1;
    min-width: 0;
}

.cfg-masa-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.cfg-masa-top strong {
    font-size: 13px;
    color: #0f172a;
}

.cfg-masa-card small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.45;
}

.cfg-compat-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.cfg-compat-pill.is-ok {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.cfg-compat-pill.is-warn {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.cfg-compat-pill.is-block {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.cfg-masa-card.is-selected.is-ok {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
}

.cfg-masa-card.is-selected.is-warn {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.cfg-masa-card.is-selected.is-block {
    border-color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

/* Alertas animadas y tarjeta final */
.cfg-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border-radius: 13px;
    border: 1.5px solid #f59e0b;
    background: #fffbeb;
    color: #78350f;
}

.cfg-alert-banner[hidden] {
    display: none !important;
}

.cfg-alert-banner.is-blocked {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #7f1d1d;
    animation: cfgAlertShake 0.45s ease, cfgAlertPulse 2s ease-in-out infinite 0.5s;
}

.cfg-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: currentColor;
}

.cfg-alert-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.cfg-alert-item strong {
    display: block;
    font-size: 13.5px;
}

.cfg-final-cta-card {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.cfg-live-summary-line {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.cfg-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cfg-quote-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.cfg-special-eval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border: 1px solid #991b1b;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.25);
    animation: cfgPillPulse 2s ease-in-out infinite;
}

.cfg-special-eval-btn:hover {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    color: #ffffff;
}

.cfg-special-eval-btn[hidden],
.cfg-special-eval-drawer[hidden] {
    display: none !important;
}

.cfg-special-eval-drawer {
    margin-top: 24px;
    padding: 24px;
    border-radius: 15px;
    border: 2px solid #dc2626;
    background: #fff5f5;
}

.cfg-eval-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cfg-eval-drawer-head h4 {
    margin: 0 0 6px;
    font-size: 19px;
    color: #7f1d1d;
}

.cfg-eval-drawer-head p {
    margin: 0;
    font-size: 13px;
    color: #991b1b;
}

.cfg-eval-summary-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px dashed #fca5a5;
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 16px;
    white-space: pre-line;
}

.cfg-eval-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.cfg-eval-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

@keyframes cfgOrangePing {
    0% { box-shadow: 0 0 0 0 rgba(205, 78, 0, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(205, 78, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(205, 78, 0, 0); }
}

@keyframes cfgAlertShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes cfgAlertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

@keyframes cfgPillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.26); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

@media (max-width: 1060px) {
    .cfg-assistant-section {
        margin: 0 20px 24px;
        padding: 20px;
    }
    .cfg-assistant-grid {
        grid-template-columns: 1fr;
    }
    .cfg-stage-col {
        position: static;
    }
    .cfg-header-right {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .cfg-assistant-section {
        margin: 0 12px 18px;
        padding: 15px;
    }
    .cfg-assistant-header h3 {
        font-size: 19.5px;
    }
    .cfg-param-inputs {
        grid-template-columns: 1fr;
    }
    .cfg-qty-pills {
        grid-template-columns: repeat(3, 1fr);
    }
    .cfg-eval-form-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cfg-eyebrow-pulse,
    .cfg-status-pill.is-blocked,
    .cfg-alert-banner.is-blocked,
    .cfg-special-eval-btn {
        animation: none !important;
    }
    .cfg-anim-shape,
    .cfg-danger-overlay {
        transition: none !important;
    }
}
