/* CAMYRA Platform 1.2.1 — fail-closed authentication & mobile interaction hotfix */
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] body,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] body{
  overflow:hidden!important;
  min-height:100dvh!important;
}
html[data-camyra-app="platform"] #platformGate,
html[data-camyra-app="platform"] #v10MfaGate{
  display:none!important;
  pointer-events:none!important;
}
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] .sa-side,
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] .sa-main,
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] #saModal,
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] .camyra-legal-footer,
html[data-camyra-app="platform"][data-camyra-platform-security="locked"] .camyra-cookie-info,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] .sa-side,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] .sa-main,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] #saModal,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] .camyra-legal-footer,
html[data-camyra-app="platform"][data-camyra-platform-security="checking"] .camyra-cookie-info{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#camyraPlatformSecurityShield{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  width:100dvw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:100svh!important;
  z-index:2147483646!important;
  display:grid!important;
  place-items:center!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  padding:max(22px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))!important;
  background:
    radial-gradient(circle at 78% 12%,rgba(179,123,87,.28),transparent 31%),
    linear-gradient(180deg,#2d2522,#211c1a)!important;
  color:#f9f0e9!important;
  font-family:Cabin,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  touch-action:manipulation;
}
#camyraPlatformSecurityShield[hidden]{display:none!important}
#camyraPlatformSecurityShield *{box-sizing:border-box}
#camyraPlatformSecurityShield .cps-card{
  width:min(580px,100%);
  margin:auto;
  padding:clamp(26px,6vw,44px);
  border:1px solid rgba(239,208,185,.17);
  border-radius:34px;
  background:rgba(255,248,242,.055);
  box-shadow:0 28px 90px rgba(0,0,0,.24);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  position:relative;
  z-index:2;
  pointer-events:auto!important;
}
#camyraPlatformSecurityShield .cps-brand{display:flex;align-items:center;gap:13px;margin-bottom:28px}
#camyraPlatformSecurityShield .cps-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#f7eee7;flex:0 0 auto}
#camyraPlatformSecurityShield .cps-mark img{width:72%;height:72%;object-fit:contain;display:block}
#camyraPlatformSecurityShield .cps-brand div{display:grid;gap:2px}
#camyraPlatformSecurityShield .cps-brand b{font-family:"Cormorant Garamond",Georgia,serif;font-size:24px;letter-spacing:.12em;font-weight:600}
#camyraPlatformSecurityShield .cps-brand small,
#camyraPlatformSecurityShield .cps-eyebrow{font-size:9px;letter-spacing:.18em;font-weight:700;color:#c79b7e}
#camyraPlatformSecurityShield h1{font:500 clamp(42px,11vw,66px)/.9 "Cormorant Garamond",Georgia,serif;letter-spacing:-.045em;margin:8px 0 16px;color:#fff9f5}
#camyraPlatformSecurityShield p{margin:0 0 20px;font-size:13px;line-height:1.65;color:#c9bbb3}
#camyraPlatformSecurityShield .cps-field{display:grid;gap:7px;margin:12px 0}
#camyraPlatformSecurityShield .cps-field label{font-size:10px;font-weight:700;letter-spacing:.04em;color:#d4c3ba}
#camyraPlatformSecurityShield input{
  width:100%;min-height:54px;border:1px solid rgba(255,255,255,.12);border-radius:17px;
  padding:13px 15px;background:#fffaf7;color:#281f1c;outline:none;font-size:16px!important;
  -webkit-appearance:none;appearance:none;pointer-events:auto!important;touch-action:manipulation;
}
#camyraPlatformSecurityShield input:focus{border-color:#c79576;box-shadow:0 0 0 3px rgba(199,149,118,.14)}
#camyraPlatformSecurityShield .cps-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
#camyraPlatformSecurityShield button{
  min-height:52px;border:0;border-radius:999px;padding:13px 20px;font:700 14px Cabin,Manrope,system-ui,sans-serif;
  cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent;
  position:relative;z-index:4;
}
#camyraPlatformSecurityShield button.cps-primary{background:#f7eee7;color:#302724;flex:1 1 180px}
#camyraPlatformSecurityShield button.cps-secondary{background:rgba(255,255,255,.08);color:#f5e9e2;border:1px solid rgba(255,255,255,.10);flex:1 1 180px}
#camyraPlatformSecurityShield button.cps-link{background:transparent;color:#c8b8af;padding:10px 8px;min-height:42px;border-radius:12px}
#camyraPlatformSecurityShield button:disabled{opacity:.6;cursor:wait!important}
#camyraPlatformSecurityShield .cps-status{margin-top:14px;padding:11px 13px;border-radius:14px;background:rgba(255,255,255,.06);font-size:11px;line-height:1.5;color:#dbcac0}
#camyraPlatformSecurityShield .cps-status.error{background:rgba(161,73,73,.18);color:#ffd7d2}
#camyraPlatformSecurityShield .cps-status.success{background:rgba(81,126,93,.18);color:#d5f1dc}
#camyraPlatformSecurityShield .cps-consent{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:11px;line-height:1.5;color:#cbbcb3}
#camyraPlatformSecurityShield .cps-consent input{width:18px!important;min-height:18px!important;height:18px!important;margin:1px 0 0;padding:0;flex:0 0 auto}
#camyraPlatformSecurityShield .cps-consent a{color:#edc3a7}
#camyraPlatformSecurityShield .cps-qr{display:block;width:min(230px,72vw);margin:16px auto;padding:10px;border-radius:20px;background:#fff}
#camyraPlatformSecurityShield .cps-secret{margin:12px 0;padding:10px;border-radius:13px;background:rgba(0,0,0,.18);font-size:11px;word-break:break-all;color:#e8d9d0}
#camyraPlatformSecurityShield .cps-code{max-width:230px;margin:14px auto;text-align:center;font-size:24px!important;letter-spacing:.2em;font-variant-numeric:tabular-nums}
#camyraPlatformSecurityShield .cps-spinner{width:24px;height:24px;margin:18px auto;border:2px solid rgba(255,255,255,.2);border-right-color:#f3d4bf;border-radius:50%;animation:cpsSpin .8s linear infinite}
@keyframes cpsSpin{to{transform:rotate(360deg)}}
@media(max-width:600px){
  #camyraPlatformSecurityShield{place-items:start center!important;padding-left:12px!important;padding-right:12px!important}
  #camyraPlatformSecurityShield .cps-card{border-radius:28px;padding:28px 20px;margin:auto 0}
  #camyraPlatformSecurityShield .cps-actions{display:grid;grid-template-columns:1fr;width:100%}
  #camyraPlatformSecurityShield button.cps-primary,#camyraPlatformSecurityShield button.cps-secondary{width:100%;flex:none}
}
@media(prefers-reduced-motion:reduce){#camyraPlatformSecurityShield .cps-spinner{animation:none}}
