/* ==========================================================================
   RestoAudit Pitch v2.3.0 — CREW ADMIN-INTEG styles.
   Super Admin AI Oversight, own SMTP servers, embed codes, webhook,
   and the Audit-with-AI / Fix-with-AI surfaces.

   Palette is the app standard (see app.css): navy #061725, gold
   #EDBD5A, amber #E79642, cream #FFFAF0 — dark glassmorphic, no light
   chrome. Body text on these surfaces is cream (#FFFAF0) or the soft
   ink (#C9D6DF) on navy/glass, both ≥ 4.5:1 against #061725.
   INT links this file from the layout next to app.css.
   ========================================================================== */

/* AI source badge — gold chip used wherever AI output is labelled. */
.badge-ai {
    background: rgba(237, 189, 90, 0.18);
    color: #EDBD5A;
    border: 1px solid rgba(237, 189, 90, 0.55);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Inline forms used for AI action buttons inside cards. */
.ai-inline-form { display: inline-block; margin: 0; }

/* The explanatory card that sits under the quick-audit page head. */
.ai-audit-card { border-color: rgba(237, 189, 90, 0.48); }

/* Dual-mode fix action row + the proposal review block. */
.fix-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}
.ai-proposal {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(237, 189, 90, 0.48);
    border-radius: 10px;
    background: rgba(13, 42, 64, 0.55);
}
.ai-proposal-applied { border-color: rgba(46, 125, 50, 0.65); }
.ai-fix-text {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(4, 15, 24, 0.55);
    border: 1px solid rgba(237, 189, 90, 0.22);
    border-radius: 8px;
    padding: 10px 12px;
    color: #FFFAF0;
    font-size: 13px;
    max-height: 320px;
    overflow: auto;
}

/* AI Oversight: usage split tables + flag matrix. */
.ai-usage-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .ai-usage-split { grid-template-columns: 1fr; }
}
.flag-matrix td, .flag-matrix th { text-align: left; }
.flag-toggle {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    color: #FFFAF0;
}
.flag-toggle input[type="checkbox"] { accent-color: #EDBD5A; width: 16px; height: 16px; }

/* Integrations: pasted embed code editor. */
.embed-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    width: 100%;
}

/* View-As + client preview banner (v2.7.2, I): persistent, high
   contrast, impossible to miss while a preview is active. */
.view-as-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: #7c2d12;
    color: #fff7ed;
    font-size: 14px;
    border-bottom: 3px solid #431407;
}
.view-as-banner .btn { background: #fff7ed; color: #431407; border-color: #431407; }
