/* Phase 343: remplacement du double visuel de fond par un formulaire compact.
   Priorite volontaire sur les anciens styles de portail (conserves pour les autres pages). */
html body:has(>main.portal){margin:0!important;min-height:100dvh!important;background:#edf2f8!important;display:flex!important;flex-direction:column!important}
html body>main.portal{background:#edf2f8!important;background-image:none!important;aspect-ratio:auto!important;width:min(100% - 24px,1020px)!important;max-width:1020px!important;min-height:0!important;height:auto!important;max-height:none!important;flex:1 1 auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:center!important;align-items:start!important;gap:14px!important;padding:12px 10px!important;margin:0 auto!important;overflow:visible!important;position:relative!important}
html body>main.portal::before,html body>main.portal::after,html body>main.portal .phase257-cover,html body>main.portal .phase256-art-cover,html body>main.portal .logo-actual{display:none!important;background:none!important;content:none!important}
html body>main.portal .phase343-heading{display:flex!important;grid-column:1/-1!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;background:#fff!important;border:1px solid #dce5ef!important;border-top:3px solid #d5193b!important;border-radius:12px!important;padding:12px 16px!important;position:relative!important;z-index:2!important}
.phase343-brand{display:flex;align-items:center;gap:10px;color:#0a3068}.phase343-brand strong{display:block;font-size:18px;line-height:1.3}.phase343-brand small{display:block;color:#52677f;font-size:11px}.phase343-mark{display:grid;place-items:center;background:#092d67;color:#fff;width:36px;height:36px;border-radius:9px;font-size:21px}.phase343-help{font-size:11px;color:#62748a}
html body>main.portal #client.cx-panel,html body>main.portal #admin.cx-panel{display:block!important;position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;max-height:100%!important;min-height:0!important;margin:0!important;padding:14px 17px!important;background:#fff!important;border:1px solid #dce5ef!important;border-radius:12px!important;box-shadow:0 3px 12px #0a2b5710!important;overflow-y:auto!important;z-index:1!important}
html body>main.portal .cx-ph{display:flex!important;align-items:center!important;gap:9px!important;padding:0 0 10px!important;margin:0 0 9px!important;border-bottom:1px solid #e4eaf3!important}
html body>main.portal .cx-ph h2{margin:0!important;font-size:16px!important;line-height:1.3!important;color:#0a3068!important}html body>main.portal .cx-ph small{font-size:11px!important;color:#64748b!important}
html body>main.portal .cx-body{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0!important;padding:0!important}
html body>main.portal .cx-body label{font-size:11px!important;gap:3px!important;margin:0!important}
html body>main.portal .cx-body input:not([type=checkbox]){height:34px!important;min-height:34px!important;padding:6px 10px!important;font-size:12px!important}
html body>main.portal .cx-btn{min-height:35px!important;height:35px!important;font-size:12px!important}
html body>main.portal .cx-register{padding:7px!important;font-size:11px!important}
html body>main.portal .client-auth-actions{display:grid!important;gap:6px!important}
html body>main.portal .cx-links{margin:0!important}.cx-session{z-index:8!important}
html body>.fret-footer{width:100%!important;max-width:none!important;border-radius:0!important;min-height:0!important;max-height:none!important;padding:8px max(14px,calc((100vw - 1020px)/2))!important;flex:0 0 auto!important;font-size:10px!important;gap:6px 14px!important}
html body>.fret-footer .identity strong{font-size:11px!important}
@media (min-width:760px) and (min-height:600px){html body:has(>main.portal){height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}html body>main.portal{overflow:hidden!important}}
@media (max-width:759px),(max-height:599px){html body:has(>main.portal){height:auto!important;max-height:none!important;overflow-y:auto!important}html body>main.portal{grid-template-columns:1fr!important;overflow:visible!important;align-content:start!important}html body>main.portal #client.cx-panel,html body>main.portal #admin.cx-panel{max-height:none!important;overflow:visible!important}.phase343-help{display:none!important}}
@media (max-height:760px) and (min-width:760px){html body>main.portal{padding:6px 10px!important;gap:8px!important}html body>main.portal .phase343-heading{padding:7px 12px!important}html body>main.portal #client.cx-panel,html body>main.portal #admin.cx-panel{padding:9px 13px!important}html body>main.portal .cx-body{gap:5px!important}html body>main.portal .cx-ph{padding-bottom:5px!important;margin-bottom:5px!important}}
