.cfac-lead {
    margin: 8px 0 18px;
    color: #5f5a56;
    font-size: 14px;
    line-height: 1.6;
}

.cfac-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.cfac-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cfac-label {
    font-size: 13px;
    font-weight: 700;
    color: #2d2a26;
}

.cfac-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 210px;
    padding: 12px;
    border: 1px solid #ddd7cc;
    border-radius: 10px;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
    color: #2d2a26;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.55;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cfac-textarea:hover {
    border-color: #d4c67a;
}

.cfac-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.cfac-textarea::placeholder {
    color: #c4c0bc;
}

.cfac-runtime-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cfac-runtime-title {
    font-size: 12px;
    color: #5f5a56;
    font-weight: 600;
}

.cfac-runtime-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cfac-runtime-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e8e4dc;
    border-radius: 999px;
    padding: 6px 10px;
    background: #faf9f7;
    color: #4f4a44;
    font-size: 12px;
    cursor: pointer;
}

.cfac-runtime-option input {
    width: 14px;
    height: 14px;
    accent-color: #b8860b;
}

.cfac-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cfac-btn {
    border: 1px solid #ded8ce;
    background: #fff;
    color: #4f4a44;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cfac-btn:hover {
    border-color: #d4af37;
    color: #b8860b;
    background: #fcfbf8;
}

.cfac-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #b8860b;
    color: #fff;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.cfac-btn-primary:hover {
    background: linear-gradient(135deg, #e1be53 0%, #c59616 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.cfac-reset-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
}

.cfac-result-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cfac-hidden {
    display: none !important;
}

.cfac-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
}

.cfac-waiting i {
    font-size: 32px;
    color: #d4af37;
    opacity: 0.4;
    display: block;
    margin-bottom: 12px;
    animation: cfac-spin 1s linear infinite;
}

.cfac-waiting p {
    font-size: 13px;
    margin: 0;
}

@keyframes cfac-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cfac-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cfac-summary-card {
    border: 1px solid #ebe4d7;
    border-radius: 10px;
    padding: 11px 12px;
    background: #faf9f7;
}

.cfac-summary-label {
    font-size: 12px;
    color: #7d756a;
    margin-bottom: 6px;
}

.cfac-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
    word-break: break-word;
}

.cfac-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f5f3f0;
    border: 1px solid #ece5da;
    border-radius: 10px;
    padding: 6px;
}

.cfac-tab {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    color: #5f5a56;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cfac-tab:hover {
    border-color: #d4af37;
    color: #b8860b;
    background: #fff;
}

.cfac-tab.active {
    border-color: #c6971e;
    background: #fff7df;
    color: #8b6914;
}

.cfac-panel {
    display: none;
    border: 1px solid #efe8dc;
    border-radius: 10px;
    padding: 12px;
    background: #fcfbf9;
}

.cfac-panel.active {
    display: block;
}

.cfac-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cfac-panel-title {
    margin: 0;
    font-size: 14px;
    color: #2d2a26;
}

.cfac-panel-actions {
    display: flex;
    gap: 6px;
}

.cfac-action-btn {
    border: 1px solid #ded8ce;
    background: #fff;
    color: #4f4a44;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cfac-action-btn:hover {
    border-color: #d4af37;
    color: #b8860b;
    background: #fcfbf8;
}

.cfac-code-block {
    margin: 0;
    border: 1px solid #e7dfd1;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 12px;
    line-height: 1.55;
    padding: 12px;
    max-height: 420px;
    overflow: auto;
    white-space: pre;
}

.cfac-warning-list {
    margin: 0 0 12px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfac-warning-list li {
    font-size: 13px;
    line-height: 1.5;
    color: #4f4a44;
}

.cfac-table-wrap {
    overflow-x: auto;
}

.cfac-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}

.cfac-table th,
.cfac-table td {
    border: 1px solid #ece5d8;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.5;
}

.cfac-table th {
    background: #f5f0e6;
    color: #4d463f;
    font-weight: 700;
}

.cfac-code-cell {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #2d2a26;
}

.cfac-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
}

.cfac-status-supported {
    background: #e8f6ec;
    color: #1f7a43;
}

.cfac-status-partial {
    background: #fff4dd;
    color: #9a6a00;
}

.cfac-status-unsupported {
    background: #fde9ea;
    color: #b3261e;
}

@media (max-width: 900px) {
    .cfac-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cfac-btn-group {
        gap: 6px;
    }

    .cfac-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }

    .cfac-btn-primary {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .cfac-section {
        padding: 14px;
    }

    .cfac-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfac-panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cfac-tab {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .cfac-code-block {
        max-height: 360px;
    }
}

@media (max-width: 480px) {
    .cfac-summary-grid {
        grid-template-columns: 1fr;
    }

    .cfac-tab {
        flex: 1 1 100%;
    }

    .cfac-btn {
        flex: 1 1 100%;
    }

    .cfac-textarea {
        min-height: 180px;
        font-size: 12px;
    }

    .cfac-table th,
    .cfac-table td {
        font-size: 11px;
        padding: 7px;
    }
}
