/* Only allowed presets can be selected in the owner form. Public templates
   emit the saved selection as a data attribute, never as arbitrary CSS. */
[data-profile-palette="amethyst"]{--ci-accent:#aa83f2;--ci-dark:#201535;--ci-deep:#4b2e7c;--ci-pale:#d7c1ff}
[data-profile-palette="forest"]{--ci-accent:#6fc7a0;--ci-dark:#102b29;--ci-deep:#28635b;--ci-pale:#bcebd4}
[data-profile-palette="ember"]{--ci-accent:#efa97c;--ci-dark:#35201b;--ci-deep:#814635;--ci-pale:#ffdbbb}
[data-profile-palette="ocean"]{--ci-accent:#7cb9f2;--ci-dark:#14243d;--ci-deep:#2e5b90;--ci-pale:#c6e5ff}
[data-profile-palette="rose"]{--ci-accent:#e998bb;--ci-dark:#351c32;--ci-deep:#854463;--ci-pale:#ffd2e6}
[data-profile-palette="gold"]{--ci-accent:#e6bd70;--ci-dark:#332718;--ci-deep:#796039;--ci-pale:#f9e1ab}
.cubiq-native .cr-card[data-profile-palette]{--cp:var(--ci-accent);--cpi:var(--ci-deep);background:linear-gradient(155deg,color-mix(in srgb,var(--ci-accent) 16%,var(--card-bg)) 0%,var(--card-bg) 67%);border-color:color-mix(in srgb,var(--ci-accent) 35%,var(--bg-300))}
.cubiq-native #cc-rail:has([data-profile-palette="forest"]){--cp1:#102b29;--cp2:#28635b;--cpa:#bcebd4}
.cubiq-native #cc-rail:has([data-profile-palette="ember"]){--cp1:#35201b;--cp2:#814635;--cpa:#ffdbbb}
.cubiq-native #cc-rail:has([data-profile-palette="ocean"]){--cp1:#14243d;--cp2:#2e5b90;--cpa:#c6e5ff}
.cubiq-native #cc-rail:has([data-profile-palette="rose"]){--cp1:#351c32;--cp2:#854463;--cpa:#ffd2e6}
.cubiq-native #cc-rail:has([data-profile-palette="gold"]){--cp1:#332718;--cp2:#796039;--cpa:#f9e1ab}
.cm-profile[data-profile-palette]{--cm-accent:var(--ci-accent)}
.cm-profile[data-profile-palette] .cm-cover{background:radial-gradient(at 70% 10%,color-mix(in srgb,var(--ci-accent) 42%,var(--cm-soft)),var(--cm-line))}
.cm-profile[data-profile-palette] .cm-avatar{background:var(--ci-deep)}
.ci-palette-editor{border:1px solid var(--cm-line);border-radius:16px;padding:18px;margin:25px 0;background:var(--cm-soft)}
.ci-palette-editor legend{float:none;width:auto;padding:0 8px;font:650 17px Gabarito,Onest,sans-serif;color:var(--cm-ink)}
.ci-palette-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:15px}
.ci-palette-option{display:flex;gap:9px;align-items:center;border:1px solid var(--cm-line);border-radius:12px;padding:12px;cursor:pointer;background:var(--cm-bg);font:600 12px Onest,sans-serif}
.ci-palette-option:has(input:checked){border-color:var(--ci-swatch);box-shadow:0 0 0 2px color-mix(in srgb,var(--ci-swatch) 22%,transparent)}
.ci-palette-option input{position:absolute;opacity:0;pointer-events:none}.ci-palette-option:focus-within{outline:2px solid var(--ci-swatch);outline-offset:2px}
.ci-swatch{width:22px;height:22px;flex:none;border-radius:7px;background:var(--ci-swatch);box-shadow:inset 0 1px 1px #fff6}
.ci-welcome{max-width:790px}.ci-welcome>p,.ci-private-details>p{color:var(--cm-muted)}.ci-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.ci-welcome .cm-form-footer,.ci-private-details .cm-form-footer{margin-top:24px}
.cubiq-auth .cs-otp,.cubiq-auth input[name="totp_token"]{font:650 26px/1.2 Gabarito,Onest,sans-serif!important;letter-spacing:.28em!important;text-align:center!important;background:var(--bg-200)!important;border:1px solid var(--bg-300)!important;color:var(--text-100)!important;border-radius:12px!important;min-height:58px!important}
.cubiq-auth .cs-otp:focus-visible,.cubiq-auth input[name="totp_token"]:focus-visible{outline:3px solid color-mix(in srgb,var(--primary-100) 35%,transparent);outline-offset:2px}
.cubiq-auth .alert,.cubiq-auth .btn-secondary,.cubiq-auth .btn-link,.cubiq-auth label{font-family:Onest,sans-serif!important}
.cubiq-auth .alert{border-radius:12px}.cubiq-auth .btn-secondary{border:1px solid var(--bg-300)!important;background:var(--bg-200)!important;color:var(--text-100)!important;border-radius:11px!important}
@media(max-width:660px){.ci-fields{grid-template-columns:1fr}.ci-palette-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
