\n/* V177: authority guards */\n#v40ClientDetail [data-pane="etapas"] > #v48Stages,#v40ClientDetail [data-pane="etapas"] > .v48-actions{display:none!important}\n#v174StageMount{display:block!important}\n#v175Gate{position:fixed;inset:0;z-index:2147483000;background:rgba(8,24,44,.72);display:grid;place-items:center;padding:20px}\n#v175Gate section{background:#fff;color:#18324d;border-radius:18px;max-width:640px;width:min(640px,94vw);padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28)}\n#v175Gate h2{margin:0 0 10px}#v175Gate p{line-height:1.5}.v175-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.v175-actions button{padding:12px 16px;border:0;border-radius:12px;font-weight:800;cursor:pointer;background:#164f96;color:white}.v175-actions button+button{background:#c8a72b}\n
/* Consolidated approved controls formerly carried by V172 */
#v172SyncGate{position:fixed;inset:0;z-index:2147483600;background:rgba(8,22,38,.82);display:grid;place-items:center;padding:24px}#v172SyncGate section{max-width:520px;background:#fff;border-radius:22px;padding:28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.3);color:#17324b}#v172SyncGate .spin{width:38px;height:38px;border:4px solid #dbe5ec;border-top-color:#1e63a8;border-radius:50%;margin:0 auto 14px;animation:v172spin .8s linear infinite}#v172SyncGate.error .spin{display:none}#v172SyncGate button{margin-top:12px;padding:10px 18px;border:0;border-radius:10px;background:#1e63a8;color:#fff;font-weight:700}@keyframes v172spin{to{transform:rotate(360deg)}}
.v172-collapsed{display:none!important}.v172-availability-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.v172-availability-actions #v172ToggleAvailability,#v172TogglePublished{border:0;border-radius:10px;padding:9px 13px;font-weight:800;background:#eef3f8;color:#183b5d;cursor:pointer}#v172TogglePublished{margin-left:10px}.v172-native-plan{display:block!important}



/* V177: Registro único sincronizado con la misma fuente central */
#v175RegistrySyncBar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:11px 13px;border:1px solid #d9e4ef;border-radius:14px;background:#f8fbfe;color:#183b5d}
#v175RegistrySyncBar .v175-dot{width:10px;height:10px;border-radius:50%;background:#8b98a5;box-shadow:0 0 0 4px rgba(139,152,165,.12)}
#v175RegistrySyncBar[data-state="ok"] .v175-dot{background:#1d9b67;box-shadow:0 0 0 4px rgba(29,155,103,.12)}
#v175RegistrySyncBar[data-state="syncing"] .v175-dot{background:#c89b22}
#v175RegistrySyncBar[data-state="error"] .v175-dot,#v175RegistrySyncBar[data-state="auth"] .v175-dot{background:#c54848}
#v175RegistrySyncBar .v175-copy{display:grid;gap:2px;min-width:220px;flex:1}
#v175RegistrySyncBar .v175-copy b{font-size:14px}#v175RegistrySyncBar .v175-copy small{font-size:12px;color:#6b7d8e}
#v175RegistrySyncBar button{border:0;border-radius:10px;padding:9px 13px;font-weight:800;background:#eef3f8;color:#183b5d;cursor:pointer}
#v175RegistrySyncBar button.primary{background:#1f5e9f;color:#fff}#v175RegistrySyncBar button:disabled{opacity:.55;cursor:default}
#v175RegistryConflict{position:fixed;inset:0;z-index:2147483700;background:rgba(8,22,38,.82);display:grid;place-items:center;padding:20px}
#v175RegistryConflict section{width:min(760px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:20px;padding:24px;color:#17324b;box-shadow:0 24px 70px rgba(0,0,0,.32)}
#v175RegistryConflict h2{margin:0 0 8px}.v175-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.v175-compare article{border:1px solid #dbe5ee;border-radius:14px;padding:12px}.v175-compare ul{margin:8px 0 0;padding-left:20px}.v175-conf-actions{display:flex;gap:10px;flex-wrap:wrap}.v175-conf-actions button{border:0;border-radius:11px;padding:11px 15px;font-weight:800;cursor:pointer;background:#1f5e9f;color:#fff}.v175-conf-actions button.alt{background:#c7a42c}.v175-conf-actions button.ghost{background:#edf2f6;color:#183b5d}
@media(max-width:700px){.v175-compare{grid-template-columns:1fr}}

/* V178: persistencia autoritativa por expediente; sin cambios visuales adicionales. */
