/* Capture/PC04 consume the resolved CEMI palette; no independent theme state. */
html[data-cemi-theme] body.pc04-front,
html[data-cemi-theme] body.cemi-private-runtime {
  background:var(--cemi-theme-bg,#f3f1f2)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) {
  color:var(--cemi-theme-text,#1a2231);
  color-scheme:inherit;
  min-width:0;
}
html[data-cemi-theme] .cemi-capture-admin>.notice {
  background:var(--cemi-theme-surface,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .cemi-capture-admin>.notice :is(p,strong,a) {
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(h1,h2,h3,h4,h5,label,legend,summary,dt,dd,li,p) {
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) small,
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(.description,.cemi-admin-section-note) {
  color:var(--cemi-theme-muted,#66707c)!important;
}
html[data-cemi-theme] .pc04-front-header,
html[data-cemi-theme] .pc04-footer {
  color:var(--cemi-theme-text,#1a2231);
}
html[data-cemi-theme] .pc04-front-header :is(a,nav),
html[data-cemi-theme] .pc04-front .pc04-front-logo {
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) a:not(.button):not([role=tab]) {
  color:var(--cemi-theme-text,#1a2231)!important;
  text-decoration:underline;
  text-underline-offset:3px;
}
html[data-cemi-theme] .pc04 .pc04-eyebrow {
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] :is(.pc04-panel,.cemi-capture-property-hero,.cemi-capture-v5__card,.cemi-capture-v5__review,.cemi-capture-v5__check,.cemi-admin-workspace-subtabs) {
  background:var(--cemi-theme-surface,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
  border-color:var(--cemi-theme-line,#d9d3d7)!important;
}
html[data-cemi-theme] .cemi-capture-v5 :is(section,fieldset,details,.cemi-admin-inmueble-field,.notice) {
  background:var(--cemi-theme-surface,#fff)!important;
  border-color:var(--cemi-theme-line,#d9d3d7)!important;
}
html[data-cemi-theme] .cemi-capture-v5 span {color:inherit}
html[data-cemi-theme] .cemi-capture-v5 :is(strong,b) {color:inherit!important}
html[data-cemi-theme] .cemi-capture-v5 .cemi-gallery-r6__tabs b {
  background:var(--cemi-theme-surface-soft,#f8f6f7)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .cemi-capture-v5 :is(.cemi-capture-property-hero__eyebrow,.cemi-capture-property-hero__facts) span {
  background:var(--cemi-theme-surface-soft,#f8f6f7)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .cemi-capture-v5 .cemi-capture-v5__review span {
  background:var(--cemi-theme-surface-soft,#f8f6f7)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .cemi-capture-v5 .cemi-review-grid article {
  background:var(--cemi-theme-surface-soft,#f8f6f7)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .cemi-capture-v5 :is(.cemi-capture-property-hero__classification,.cemi-capture-property-hero__relations) span {
  color:var(--cemi-theme-muted,#66707c)!important;
}
html[data-cemi-theme] .cemi-capture-v5 .cemi-admin-workspace-subtabs a {
  background:var(--cemi-theme-control,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
  border-color:var(--cemi-theme-line,#d9d3d7)!important;
}
html[data-cemi-theme] .cemi-capture-v5 .cemi-admin-workspace-subtabs a:is(.is-active,[aria-current=page]) {
  background:var(--cemi-theme-accent-soft,#f7e4ed)!important;
  border-color:var(--cemi-theme-accent,#c81768)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(select,textarea,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=submit]):not([type=button])) {
  background:var(--cemi-theme-control,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
  border-color:var(--cemi-theme-muted,#66707c)!important;
  color-scheme:inherit;
  max-width:100%;
  min-width:0;
  min-height:44px;
  box-sizing:border-box;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(input,textarea)::placeholder {
  color:var(--cemi-theme-muted,#66707c)!important;
  opacity:1;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(.button,button) {
  color:var(--cemi-theme-text,#1a2231)!important;
}
html[data-cemi-theme] .pc04 .button {
  background:var(--cemi-theme-control,#fff);
  color:var(--cemi-theme-text,#1a2231);
  border-color:var(--cemi-theme-muted,#66707c);
  min-height:44px;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) .button-primary,
html[data-cemi-theme] .cemi-capture-v5 .cemi-ux-button:not(.cemi-ux-button--secondary):not(.is-secondary) {
  background:var(--cemi-theme-accent,#c81768)!important;
  color:var(--cemi-theme-inverse,#fff)!important;
}
html[data-cemi-theme] :is(.pc04,.cemi-projects,.cemi-capture-v5) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--cemi-theme-text,#1a2231)!important;
  outline-offset:3px;
}
.pc04-front-header{flex-wrap:wrap;justify-content:space-between}
.pc04-front-header .cemi-theme-switch{margin-left:auto;min-height:44px}
html[data-cemi-theme] .pc04-front-header .cemi-theme-switch {
  color:var(--cemi-theme-text,#1a2231)!important;
  background:var(--cemi-theme-control,#fff)!important;
  border-color:var(--cemi-theme-muted,#66707c)!important;
}
html[data-cemi-theme] .pc04-front-header .cemi-theme-switch:hover {
  color:var(--cemi-theme-text,#1a2231)!important;
  background:var(--cemi-theme-control-hover,#f1edef)!important;
}
.pc04 :is(h1,h2,h3,legend){overflow-wrap:anywhere}
.pc04 fieldset{min-inline-size:0}
html[data-cemi-theme] .pc04 .pc04-tabs a.is-active {
  color:var(--cemi-theme-inverse,#fff)!important;
}
html[data-cemi-theme] .pc04>footer small {color:var(--cemi-theme-text,#1a2231)!important}
html[data-cemi-theme] .cemi-projects header small {color:var(--cemi-theme-text,#1a2231)!important}
@media(max-width:760px){
  .pc04-front-header{padding:16px;gap:12px}
  .pc04-front-header nav{flex:1 1 100%;order:2}
  .pc04 .pc04-actions{align-items:stretch}
  .pc04 .pc04-actions .button{max-width:100%;white-space:normal}
  .cemi-capture-v5 .cemi-admin-workspace-layout{grid-template-columns:minmax(0,1fr)!important}
  .cemi-capture-v5 :is(.cemi-admin-workspace-center,.cemi-admin-workspace-side){min-width:0;max-width:100%}
}

/* R53: native Contactos inherits the resolved CEMI palette in every Capture context. */
html[data-cemi-theme] body.cemi-private-runtime .cemi-capture-contact-native {
  min-width:0;
  max-width:100%;
  color:var(--cemi-theme-text,#1a2231);
}
html[data-cemi-theme] body.cemi-private-runtime .cemi-capture-contact-native :is(.cemi-capture-contact-native__head,.cemi-capture-contact-native__card,.cemi-capture-contact-native__form) {
  background:var(--cemi-theme-surface,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
  border-color:var(--cemi-theme-line,#d9d3d7)!important;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
html[data-cemi-theme] body.cemi-private-runtime .cemi-capture-contact-native :is(h2,h3,p,label,small,strong,span,em) {
  color:var(--cemi-theme-text,#1a2231)!important;
  overflow-wrap:anywhere;
}
html[data-cemi-theme] body.cemi-private-runtime .cemi-capture-contact-native .cemi-capture-contact-native__form :is(input:not([type=checkbox]):not([type=hidden]),select) {
  background:var(--cemi-theme-control,#fff)!important;
  color:var(--cemi-theme-text,#1a2231)!important;
  border-color:var(--cemi-theme-line,#d9d3d7)!important;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.cemi-capture-contact-native__card>div,.cemi-capture-contact-native__head>div {min-width:0}
@media(max-width:720px){
  .cemi-capture-contact-native :is(.cemi-capture-contact-native__head,.cemi-capture-contact-native__card){flex-direction:column;align-items:stretch}
  .cemi-capture-contact-native .cemi-capture-contact-native__form footer{flex-wrap:wrap}
  .cemi-capture-contact-native .cemi-cw01-search{grid-template-columns:minmax(0,1fr)}
  .cemi-capture-contact-native .button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .cemi-capture-contact-native>button{width:100%}
}