/* v10.8.13-H - Contraste de controles y aviso legal; exclusivo del modo claro. */
body.light-mode :is(input:not([type]),input[type="text"],input[type="number"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],input[type="password"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,select,option,optgroup) {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #94a3b8 !important;
  caret-color: #1e3a8a;
}
body.light-mode :is(input,textarea)::placeholder {
  color: #334155 !important;
  opacity: 1 !important;
}
body.light-mode :is(input[type="checkbox"],input[type="radio"]) { accent-color: #1e3a8a; }
body.light-mode :is(input,select,textarea):disabled { color:#334155!important; opacity:.8; }
/* Solo botones de fondo claro o neutro, no controles con fondo azul/rojo/verde oscuro. */
body.light-mode :is(button,[role="button"]):not([class*="bg-blue-6"]):not([class*="bg-blue-7"]):not([class*="bg-blue-8"]):not([class*="bg-slate-7"]):not([class*="bg-slate-8"]):not([class*="bg-slate-9"]):not([class*="bg-cyan-8"]):not([class*="bg-cyan-9"]):not([class*="bg-red-6"]):not([class*="bg-green-6"]):is(.text-cyan-100,.text-cyan-200,.text-cyan-300,.text-cyan-400,.text-blue-200,.text-blue-300,.text-blue-400,.text-sky-300,.text-slate-200,.text-slate-300,.text-slate-400,.text-gray-300,.text-gray-400) { color: #1e3a8a !important; }
body.light-mode :is(button,[role="button"]):not([class*="bg-slate-8"]):not([class*="bg-slate-9"]):not([class*="bg-blue-7"]):not([class*="bg-cyan-9"]) :is(.text-cyan-100,.text-cyan-200,.text-cyan-300,.text-cyan-400,.text-blue-200,.text-blue-300,.text-blue-400,.text-slate-300,.text-slate-400,.text-gray-300,.text-gray-400) { color: #1e3a8a; }
body.light-mode :is(.rec-topic,.rec-stage,.rec-risk-link,.rec-outline-link,.rec-source-link,.rec-check-item,#rec-clear-search) {color:#172554;}
body.light-mode #rec-search {color:#0f172a;background:#ffffff;border-color:#94a3b8;}
body.light-mode :is(input,select,textarea,button):focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
/* Aviso accesible, con scroll en pantallas pequeñas. */
.pillan-legal-overlay { overflow-y:auto; padding:1.2rem 0; }
.pillan-legal-panel { max-height:calc(100dvh - 2.4rem);overflow-y:auto;background:var(--panel); }
.pillan-legal-copy {line-height:1.56;}
.pillan-legal-copy strong {color:var(--text-main);}
.pillan-legal-checkbox {border:1px solid var(--border);padding:.75rem;border-radius:.65rem;background:var(--card-bg);cursor:pointer;}
.pillan-legal-checkbox input {flex:0 0 auto;}
.pillan-legal-readonly-close {border-color:var(--border);}
.pillan-legal-actions[hidden],.pillan-legal-close[hidden],.pillan-legal-readonly-close[hidden] {display:none !important;}
body.light-mode .pillan-legal-checkbox {color:#0f172a;}
body.light-mode .pillan-legal-storage-note {color:#334155;}
body.pillan-legal-locked {overflow:hidden;}
@media (max-width:520px) {.pillan-legal-panel{padding:1rem;margin:0 .5rem;}.pillan-legal-copy{font-size:.78rem;}}
