
.cm-security-lock-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 11px;border:1px solid rgba(255,255,255,.16);border-radius:9px;background:rgba(255,255,255,.06);color:inherit;cursor:pointer;font:inherit;text-decoration:none}
.cm-security-lock-button:hover{background:rgba(255,255,255,.11)}
.cm-security-page{max-width:1200px;margin:0 auto;padding-bottom:32px}
.cm-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cm-security-card{padding:18px;border:1px solid var(--cm-border,#d0d7de);border-radius:14px;background:var(--cm-card,#fff);box-shadow:0 6px 22px rgba(15,23,42,.06)}
.cm-security-card-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.cm-security-card-head>.dashicons{font-size:25px;width:28px;height:28px;color:#1473e6}.cm-security-card h3{margin:0 0 4px;font-size:17px}.cm-security-card p{margin:0 0 12px}.cm-security-card small,.cm-security-hint{color:#6b7280;font-size:12px;line-height:1.45}
.cm-security-primary,.cm-security-secondary,.cm-security-mini{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 12px;border-radius:9px;border:1px solid #1473e6;background:#1473e6;color:#fff;cursor:pointer;text-decoration:none;font:inherit;font-weight:650}.cm-security-secondary{border-color:#c5ccd6;background:transparent;color:inherit}.cm-security-mini{min-height:30px;padding:4px 8px;border-color:#c5ccd6;background:transparent;color:inherit;font-size:12px}.cm-security-primary:disabled,.cm-security-secondary:disabled,.cm-security-mini:disabled{opacity:.55;cursor:not-allowed}.cm-security-mini.danger,.cm-security-secondary.danger{border-color:#d1242f;color:#d1242f}
.cm-security-input{box-sizing:border-box;width:100%;min-height:40px;padding:8px 10px;border:1px solid #c5ccd6;border-radius:8px;background:transparent;color:inherit;font:inherit}.cm-security-card label{display:grid;gap:5px;margin:10px 0;font-size:12px;font-weight:650}
.cm-security-register-row,.cm-security-secret-row,.cm-security-backup-body{display:flex;gap:8px;align-items:center}.cm-security-register-row .cm-security-key-name{max-width:220px}.cm-security-key-list{display:grid;gap:8px;margin:10px 0 14px}.cm-security-key-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border:1px solid #d8dee7;border-radius:9px}.cm-security-key-row strong,.cm-security-key-row small{display:block}.cm-security-row-actions{display:flex;gap:6px}.cm-security-enabled{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#1a7f37}.cm-security-provider-links{display:grid;gap:9px}.cm-security-recovery-output{margin-top:12px;padding:12px;border-radius:9px;background:#0f172a;color:#e5e7eb}.cm-security-recovery-output pre{white-space:pre-wrap;margin:10px 0 0}.cm-security-message{margin-top:14px;min-height:20px;font-size:13px}.cm-security-message.is-error{color:#d1242f}.cm-security-message.is-ok{color:#1a7f37}
.cm-security-lock-screen{position:fixed!important;inset:0!important;z-index:1000000!important;width:100vw!important;height:100dvh!important;display:grid!important;place-items:center!important;padding:24px!important;box-sizing:border-box!important;overflow:auto!important;color:#f5f7fb!important;background:radial-gradient(circle at 22% 12%,rgba(20,115,230,.28),transparent 35%),radial-gradient(circle at 85% 88%,rgba(95,107,135,.20),transparent 38%),linear-gradient(145deg,#0e1218,#171d27)!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.cm-security-lock-card{width:min(610px,100%);padding:30px;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(20,26,36,.9);box-shadow:0 24px 80px rgba(0,0,0,.42);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.cm-security-lock-brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}.cm-security-lock-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:14px;background:#1473e6;color:#fff;font:800 20px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;box-shadow:0 10px 26px rgba(20,115,230,.32)}.cm-security-lock-brand h1{margin:0;font-size:24px}.cm-security-lock-subtitle{margin:4px 0 0;color:#aeb8c7}
.cm-security-lock-state{display:flex;gap:12px;align-items:center;padding:14px;margin-bottom:16px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.04)}.cm-security-lock-state>.dashicons{font-size:24px;width:28px;height:28px}.cm-security-lock-state strong,.cm-security-lock-state small{display:block}.cm-security-lock-state small{margin-top:3px;color:#aeb8c7}
.cm-security-lock-card .cm-security-primary{width:100%;min-height:48px;font-size:14px}.cm-security-lock-card .cm-security-hint{margin-top:8px;color:#93a0b1}.cm-security-backup{margin-top:10px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(255,255,255,.025)}.cm-security-backup summary{padding:11px 12px;cursor:pointer}.cm-security-backup-body{padding:0 12px 12px}.cm-security-lock-card .cm-security-input{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#fff}.cm-security-lock-card .cm-security-secondary{border-color:rgba(255,255,255,.18);color:#fff}.cm-security-lock-card footer{margin-top:18px;text-align:center;color:#6f7b8d;font-size:11px}
.cm-wlfd-top.cm-wlfd-top-welcome-only{display:flex;align-items:center;justify-content:space-between;gap:12px}.cm-wlfd-top .cm-dashboard-welcome{margin:0}.cm-wlfd-top .cm-security-lock-button{flex:0 0 auto}
@media(max-width:760px){.cm-security-grid{grid-template-columns:1fr}.cm-security-register-row,.cm-security-secret-row,.cm-security-backup-body{align-items:stretch;flex-direction:column}.cm-security-register-row .cm-security-key-name{max-width:none}.cm-security-key-row{align-items:flex-start;flex-direction:column}.cm-security-row-actions{width:100%}.cm-security-row-actions button{flex:1}.cm-security-lock-screen{padding:14px}.cm-security-lock-card{padding:22px;border-radius:18px}}

.cm-security-audit-list{display:grid;gap:7px}.cm-security-audit-row{padding:9px 10px;border:1px solid #d8dee7;border-radius:8px}.cm-security-audit-row strong,.cm-security-audit-row small{display:block}.cm-security-audit-row small{margin-top:3px;color:#6b7280;font-size:11px;line-height:1.4}

/* v1.0.30.474 — live provider/account reminder on the locked CM surface. */
.cm-security-provider-status{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px 15px;border:1px solid rgba(66,156,255,.24);border-radius:14px;background:rgba(20,115,230,.10);color:#dfeaff}
.cm-security-provider-status>.dashicons{width:22px;height:22px;font-size:22px;color:#68afff;flex:0 0 auto}
.cm-security-provider-status small{display:block;margin:0 0 3px;color:#8fa5bd;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.cm-security-provider-status div div{font-size:13px;line-height:1.45;color:#e9f2ff}

/* v1.0.30.474 — Login + Lock accessibility contrast hardening (08/09/2026).
   Explicit text-fill rules prevent inherited gradient/transparent heading styles on iOS Safari. */
.cm-code-auth-fancy .cm-code-auth-shell,
.cm-code-auth-fancy .cm-code-auth-shell *,
.cm-security-lock-screen .cm-security-lock-card,
.cm-security-lock-screen .cm-security-lock-card *{
    -webkit-text-fill-color:currentColor!important;
    opacity:1;
}
.cm-code-auth-fancy .cm-code-auth-brand h1,
.cm-security-lock-screen .cm-security-lock-brand h1{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;text-shadow:none!important}
.cm-code-auth-fancy .cm-code-auth-subtitle,
.cm-security-lock-screen .cm-security-lock-subtitle{color:#d7e0eb!important;-webkit-text-fill-color:#d7e0eb!important}
.cm-code-auth-fancy .cm-code-auth-clock{color:#d7e0eb!important}
.cm-code-auth-fancy .cm-code-auth-clock span{color:#c7d1de!important;-webkit-text-fill-color:#c7d1de!important}
.cm-code-auth-fancy .cm-code-auth-clock strong{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
.cm-code-auth-fancy .cm-destination-toggle,
.cm-code-auth-fancy .cm-destination-toggle strong{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
.cm-code-auth-fancy .cm-destination-toggle small{color:#c7d1de!important;-webkit-text-fill-color:#c7d1de!important}
.cm-code-auth-fancy .cm-code-auth-account-status small{color:#b9c9dc!important;-webkit-text-fill-color:#b9c9dc!important}
.cm-code-auth-fancy .cm-code-auth-account-status div div{color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important}
.cm-code-auth-fancy .cm-code-auth-footer,
.cm-code-auth-fancy .cm-code-auth-footer a{color:#b9c3d0!important;-webkit-text-fill-color:#b9c3d0!important}
.cm-security-lock-screen .cm-security-lock-state strong{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
.cm-security-lock-screen .cm-security-lock-state small,
.cm-security-lock-screen .cm-security-hint{color:#c3cedc!important;-webkit-text-fill-color:#c3cedc!important}
.cm-security-lock-screen .cm-security-backup summary{color:#eef4fb!important;-webkit-text-fill-color:#eef4fb!important}
.cm-security-lock-screen .cm-security-lock-card footer{color:#aeb9c8!important;-webkit-text-fill-color:#aeb9c8!important}

/* CM Security Companion / Rohos-style physical-key presence */
.cm-security-companion-box{margin-top:18px;padding:16px;border:1px solid rgba(148,163,184,.28);border-radius:16px;background:rgba(15,23,42,.18)}
.cm-security-card-head.compact{margin-bottom:10px}.cm-security-card-head.compact h4{margin:0 0 4px;font-size:15px}.cm-security-card-head.compact p{margin:0}
.cm-security-check{display:flex;gap:10px;align-items:flex-start;margin:10px 0;line-height:1.4}.cm-security-check input{margin-top:3px}
.cm-security-companion-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}.cm-security-companion-state{font-size:13px;opacity:.82}.cm-security-companion-state.is-present{color:#22c55e}.cm-security-companion-state.is-missing{color:#f59e0b}.cm-security-companion-state.is-offline{color:#ef4444}


/* v1.0.30.474 — CM Security dashboard contrast + local TOTP QR (08/09/2026). */
.cm-security-page .cm-security-card{background:#fff!important;color:#1f2937!important;-webkit-text-fill-color:currentColor!important}
.cm-security-page .cm-security-card h3,.cm-security-page .cm-security-card h4,.cm-security-page .cm-security-card strong,.cm-security-page .cm-security-card label{color:#111827!important;-webkit-text-fill-color:#111827!important}
.cm-security-page .cm-security-card p,.cm-security-page .cm-security-card small,.cm-security-page .cm-security-card .cm-security-hint,.cm-security-page .cm-security-audit-row small{color:#4b5563!important;-webkit-text-fill-color:#4b5563!important;opacity:1!important}
.cm-security-page .cm-security-input{background:#fff!important;color:#111827!important;-webkit-text-fill-color:#111827!important;border-color:#9ca3af!important}
.cm-security-page .cm-security-secondary,.cm-security-page .cm-security-mini{background:#fff!important;color:#1f2937!important;-webkit-text-fill-color:#1f2937!important;border-color:#9ca3af!important}
.cm-security-page .cm-security-secondary.danger,.cm-security-page .cm-security-mini.danger{color:#b42318!important;-webkit-text-fill-color:#b42318!important;border-color:#d92d20!important}
.cm-security-page .cm-security-primary{color:#fff!important;-webkit-text-fill-color:#fff!important}
.cm-security-page .cm-security-enabled{color:#067647!important;-webkit-text-fill-color:#067647!important}
.cm-security-page .cm-security-message.is-error{color:#b42318!important;-webkit-text-fill-color:#b42318!important;font-weight:650}
.cm-security-page .cm-security-message.is-ok{color:#067647!important;-webkit-text-fill-color:#067647!important;font-weight:650}
.cm-security-page .cm-security-card-head>.dashicons{color:#1473e6!important;-webkit-text-fill-color:#1473e6!important}
.cm-security-page .cm-security-audit-row,.cm-security-page .cm-security-key-row{border-color:#c5ccd6!important;background:#f8fafc!important;color:#1f2937!important}
.cm-security-page .cm-security-companion-state{opacity:1!important}
.cm-security-totp-qr-wrap{display:grid;justify-items:start;gap:8px;margin:14px 0 16px}
.cm-security-totp-qr{display:grid;place-items:center;width:248px;max-width:100%;min-height:248px;padding:8px;box-sizing:border-box;border:1px solid #c5ccd6;border-radius:12px;background:#fff;overflow:hidden}
.cm-security-totp-qr svg{display:block;width:232px;max-width:100%;height:auto;image-rendering:pixelated}
.cm-security-totp-qr.is-error{padding:18px;color:#b42318!important;-webkit-text-fill-color:#b42318!important;font-size:12px;text-align:center}
@media(max-width:520px){.cm-security-totp-qr{width:220px;min-height:220px}.cm-security-totp-qr svg{width:204px}}

/* v1.0.30.491 — all CM lock-screen action buttons use the same width. */
.cm-security-lock-card>.cm-security-primary,.cm-security-lock-card>.cm-security-secondary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;box-sizing:border-box!important;min-height:48px!important;margin:8px 0!important}
.cm-security-lock-card .cm-security-backup-body .cm-security-secondary{width:100%!important;min-height:44px!important;box-sizing:border-box!important}
