@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');
/* Identidade visual aprovada: Poppins + DM Sans / Dourado executivo */
:root {
    --brand: #5a4e62;
    --brand-dark: #251d2b;
    --purple-dark: #251d2b;
    --purple-gray: #5a4e62;
    --purple-soft: #eee9f0;
    --gold: #d6aa4a;
    --gold-dark: #765413;
    --gold-soft: #f7ecd2;
    --ink: #251d2b;
    --executive-lilac: #8e7a98;
    --executive-ivory: #f7f1e7;
    --admin-purple: #5a4e62;
    --admin-dark: #251d2b;
    --admin-muted: #75677d;
    --admin-gold: #d6aa4a;
    --admin-gold-light: #ead080;
    font-family: 'DM Sans', Arial, sans-serif;
}

body, input, select, textarea { font-family: 'DM Sans', Arial, sans-serif; }
h1, h2, h3, h4, h5, h6, button, .primary, .secondary, .option, .badge, .eyebrow,
.site-header, .admin-sidebar, header, nav, label, th, .metrics b, .result-area-name {
    font-family: Poppins, Arial, sans-serif;
}

body { color: var(--ink); background-color: var(--executive-ivory); }
.theme-toggle { font-family: Poppins, Arial, sans-serif; color: var(--brand-dark); border-color: rgba(214,170,74,.64); }
.theme-toggle-icon { background: var(--brand-dark); }
.theme-toggle:hover,.theme-toggle:focus-visible { border-color: var(--gold); outline-color: rgba(214,170,74,.3); }
.hero { border-color: rgba(214,170,74,.42); }
.primary { background: var(--brand-dark); border-bottom-color: var(--gold); }
.primary:hover { background: #3a2e41; }
.option { background: var(--purple-soft); }
.authority { background: var(--brand-dark); border-color: rgba(214,170,74,.58); }
.authority-photo-wrap { background: linear-gradient(145deg, var(--executive-lilac), var(--brand-dark)); }
.authority-role { color: #e6c879; }
.result-cta { border-color: rgba(214,170,74,.5); background: linear-gradient(145deg,var(--gold-soft),var(--executive-ivory)); }
.result-screen .authority { background: linear-gradient(105deg,#8e7a98 0%,#5a4e62 37%,#352a3b 58%,#251d2b 100%); border-color: rgba(214,170,74,.68); }
.option-card { background: linear-gradient(145deg,#fbf9fc,#eee9f0); border-color: #ddd4e1; }
.option-marker { background: var(--gold-soft); color: var(--gold-dark); border-color: rgba(214,170,74,.58); }

.admin-sidebar { background: linear-gradient(180deg,#5a4e62 0,#251d2b 100%); }
.admin-sidebar nav a[aria-current=page] { background: linear-gradient(100deg,rgba(214,170,74,.24),rgba(214,170,74,.08)); border-left-color: var(--gold); }
.admin-brand span { border-color: rgba(214,170,74,.75); color: var(--gold); }
body.has-admin-sidebar > header { background: linear-gradient(100deg,#251d2b,#5a4e62); border-bottom-color: var(--gold); }
button { background: var(--brand-dark); }

body.has-admin-sidebar,
body:has(main:not(.shell):not(.privacy-page)) {
    background-color: #f7f1e7;
}
body.has-admin-sidebar > header,
body.has-admin-sidebar .admin-topbar { color:#fff; background: linear-gradient(100deg,#251d2b,#5a4e62); border-bottom-color:var(--gold); }
body.has-admin-sidebar h1,body.has-admin-sidebar h2,body.has-admin-sidebar h3 { color:var(--brand-dark); }
body.has-admin-sidebar a { color:var(--brand); }
body.has-admin-sidebar button { color:var(--brand-dark); background:linear-gradient(135deg,#efd382,#d6aa4a); border-color:#f3dfa9; border-bottom-color:#765413; }
body.has-admin-sidebar button:hover,body.has-admin-sidebar button:focus-visible { background:linear-gradient(135deg,#f6e3ad,#e0b959); }
body.has-admin-sidebar .metrics article,
body.has-admin-sidebar .box,
body.has-admin-sidebar .table,
body.has-admin-sidebar .details div,
body.has-admin-sidebar .answers article,
body.has-admin-sidebar .result-note,
body.has-admin-sidebar .diagnostic-grid article,
body.has-admin-sidebar .retention-card,
body.has-admin-sidebar .retention-form,
body.has-admin-sidebar .privacy-action { border-color:rgba(214,170,74,.3); box-shadow:0 12px 34px rgba(37,29,43,.08); }
body.has-admin-sidebar .metrics article { border-top-color:var(--gold); }
body.has-admin-sidebar .metrics b { color:var(--brand); }
body.has-admin-sidebar th { color:var(--brand); background:#eee9f0; }
body.has-admin-sidebar th,body.has-admin-sidebar td { border-color:#e4dce7; }
body.has-admin-sidebar input,body.has-admin-sidebar select,body.has-admin-sidebar textarea { color:var(--brand-dark); border-color:#bdb0c3; }
body.has-admin-sidebar input:focus-visible,body.has-admin-sidebar select:focus-visible,body.has-admin-sidebar textarea:focus-visible { outline-color:var(--gold); }
.integration-badge,.back-link,.order-number { color:var(--gold-dark); background:var(--gold-soft); }
.integration-card,.event-list,.content-form section,.media-grid section,.logo-size-panel,.version-card div,.flow-card,.publish-box,.question-list li,.editor-form form { border-color:rgba(214,170,74,.32); }
.editor-notice,.integration-notice { border-left-color:var(--gold); }
.event-list code { background:var(--brand-dark); }

html[data-theme='dark'] body { color: #f7f1e7; background: #1d1722; }
html[data-theme='dark'] .theme-toggle { color:#f7f1e7; background:rgba(53,42,59,.94); border-color:rgba(214,170,74,.72); }
html[data-theme='dark'] .theme-toggle-icon { color:var(--brand-dark); background:linear-gradient(135deg,#efd382,#d6aa4a); }
html[data-theme='dark'] .card { background: #352a3b; }
html[data-theme='dark'] .primary { color: #251d2b; background: linear-gradient(135deg,#edcf7e,#d6aa4a); border-color: #f2dda5; }
html[data-theme='dark'] .option-card { color: #fff; background: linear-gradient(145deg,#5a4e62,#413646); border-color: #74637c; }
html[data-theme='dark'] .option-card:hover,
html[data-theme='dark'] .option-card:focus-visible { border-color: var(--gold); }
html[data-theme='dark'] .result-area { background: #3b3041; border-color: #66566d; }
html[data-theme='dark'] .result-cta { background: linear-gradient(145deg,#5b4824,#40331e); border-color: #d6aa4a; }
html[data-theme='dark'] body.has-admin-sidebar { background-color:#1d1722; }
html[data-theme='dark'] body.has-admin-sidebar h1,
html[data-theme='dark'] body.has-admin-sidebar h2,
html[data-theme='dark'] body.has-admin-sidebar h3 { color:#fff; }
html[data-theme='dark'] body.has-admin-sidebar a { color:#ead080; }
html[data-theme='dark'] body.has-admin-sidebar .metrics article,
html[data-theme='dark'] body.has-admin-sidebar .box,
html[data-theme='dark'] body.has-admin-sidebar .table,
html[data-theme='dark'] body.has-admin-sidebar .details div,
html[data-theme='dark'] body.has-admin-sidebar .answers article,
html[data-theme='dark'] body.has-admin-sidebar .result-note,
html[data-theme='dark'] body.has-admin-sidebar .diagnostic-grid article,
html[data-theme='dark'] body.has-admin-sidebar .retention-card,
html[data-theme='dark'] body.has-admin-sidebar .retention-form,
html[data-theme='dark'] body.has-admin-sidebar .privacy-action { color:#f7f1e7; background:#352a3b; border-color:#66566d; }
html[data-theme='dark'] body.has-admin-sidebar th { color:#f2d996; background:#493c50; }
html[data-theme='dark'] body.has-admin-sidebar td { color:#f2edf3; border-color:#5a4e62; }
html[data-theme='dark'] body.has-admin-sidebar input,
html[data-theme='dark'] body.has-admin-sidebar select,
html[data-theme='dark'] body.has-admin-sidebar textarea { color:#fff; background:#251d2b; border-color:#75677d; }
