/* ============================================================
   security.css — Phase 9.1C: "Confirm it's you" + Settings → Sign-in & security.
   Self-contained colours so the dialog reads the same in the app (light) and
   the Admin console (dark).
   ============================================================ */
html.sec-open{overflow:hidden}
.sec-overlay{position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; padding:16px;
  background:rgba(15,22,33,.48); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); overflow-y:auto}
.sec-overlay.is-gate{background:linear-gradient(180deg, #F6F4EF 0%, #F1EDE6 100%)}
.sec-card{width:100%; max-width:420px; margin:auto; padding:30px 28px 24px; border-radius:20px; background:#FFFFFF; color:#141E2B;
  border:1px solid rgba(44,36,28,.08); box-shadow:0 1px 2px rgba(31,27,22,.06), 0 30px 60px -30px rgba(15,28,46,.45);
  font-family:'Geist Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; text-align:left}
.sec-brand{display:flex; align-items:center; gap:12px; margin-bottom:22px}
.sec-brand img{width:40px; height:40px; border-radius:11px; background:#1A2B40}
.sec-brand span{font-size:15px; font-weight:700; letter-spacing:.28em; color:#1A2B40}
.sec-card h2{margin:0; font-size:24px; line-height:1.25; font-weight:650; letter-spacing:-.02em; color:#141E2B}
.sec-lead{margin:10px 0 0; font-size:14.5px; line-height:1.55; color:#4A5462; overflow-wrap:anywhere}
.sec-form{margin-top:20px; display:flex; flex-direction:column}
.sec-lbl{font-size:13px; font-weight:600; color:#26313F; margin-bottom:6px}
.sec-code{width:100%; box-sizing:border-box; min-height:52px; padding:10px 14px; border:1px solid #D9D2C6; border-radius:12px; background:#FBFAF7;
  font:600 24px/1.2 'Geist Mono', 'SF Mono', Menlo, Consolas, monospace; letter-spacing:.24em; color:#141E2B; text-align:center}
.sec-code:focus{outline:none; border-color:#4C7DB0; box-shadow:0 0 0 3px rgba(76,125,176,.18)}
.sec-check{display:flex; align-items:center; gap:10px; margin-top:14px; font-size:14px; color:#26313F; cursor:pointer}
.sec-check input{width:18px; height:18px; margin:0; accent-color:#1A2B40}
.sec-msg{min-height:20px; margin:12px 0 0; font-size:13.5px; line-height:1.45; color:#5F6B7A}
.sec-msg.is-risk{color:#B23A30}
.sec-msg.is-safe{color:#1D7A4E}
.sec-msg.is-attention{color:#9A5B12}
.sec-btn{margin-top:10px; min-height:46px; border:0; border-radius:12px; background:#1A2B40; color:#FFFFFF; font:inherit; font-size:15px; font-weight:600; cursor:pointer}
.sec-btn:hover{background:#22374F}
.sec-btn:disabled{opacity:.6; cursor:default}
.sec-btn:focus-visible, .sec-link:focus-visible{outline:none; box-shadow:0 0 0 3px rgba(76,125,176,.35)}
.sec-row{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; flex-wrap:wrap}
.sec-link{border:0; background:none; padding:6px 2px; font:inherit; font-size:13.5px; font-weight:600; color:#2F5F8F; cursor:pointer}
.sec-link:disabled{color:#9AA3AE; cursor:default}
.sec-foot{margin:18px 0 0; padding-top:14px; border-top:1px solid #EFEAE1; font-size:12.5px; line-height:1.5; color:#8A8F98; overflow-wrap:anywhere}
@media (max-width:480px){ .sec-card{padding:24px 20px 20px; border-radius:18px} .sec-card h2{font-size:22px} }

/* ---- Settings → Sign-in & security ---- */
.sec-st{display:flex; flex-direction:column; gap:0}
.sec-block{padding:16px 0; border-top:1px solid var(--line-soft, #EFEAE1)}
.sec-block:first-child{border-top:none; padding-top:6px}
.sec-bh{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.sec-bh b{font-size:14.5px; font-weight:650; color:var(--ink, #141E2B)}
.sec-pill{display:inline-flex; align-items:center; min-height:22px; padding:0 9px; border-radius:999px; font-size:11.5px; font-weight:600; background:rgba(44,36,28,.06); color:var(--ink-muted, #5F6B7A)}
.sec-pill.is-good{background:rgba(29,122,78,.1); color:#1D7A4E}
.sec-acts{display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; margin-top:12px}
.sec-acts .btn{width:auto; margin:0}
.sec-devs{list-style:none; margin:10px 0 0; padding:0}
.sec-devs li{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line-soft, #EFEAE1)}
.sec-devs li:first-child{border-top:none}
.sec-devs li > div{min-width:0}
.sec-devs b{display:block; font-size:14px; font-weight:600; color:var(--ink, #141E2B); overflow-wrap:anywhere}
.sec-devs span{display:block; font-size:12.5px; color:var(--ink-muted, #5F6B7A); margin-top:2px}
.sec-pw, .sec-enrol-f{display:flex; flex-direction:column; gap:6px; max-width:360px; margin-top:12px}
.sec-st [hidden]{display:none !important}   /* the forms above set display, which would otherwise override [hidden] */
.sec-pw label, .sec-enrol-f label{font-size:13px; font-weight:600; color:var(--ink, #141E2B); margin-top:6px}
.sec-pw input{min-height:42px; padding:8px 12px; border:1px solid var(--line, #D9D2C6); border-radius:10px; font:inherit; background:#FFFFFF}
.sec-enrol{margin-top:14px; padding:16px; border-radius:14px; background:rgba(255,255,255,.7); border:1px solid var(--line-soft, #EFEAE1)}
.sec-steps{margin:0 0 12px; padding-left:20px; font-size:13.5px; line-height:1.6; color:var(--ink-muted, #4A5462)}
.sec-qr{display:block; width:176px; height:176px; padding:8px; background:#FFFFFF; border-radius:12px; border:1px solid var(--line-soft, #EFEAE1)}
.sec-secret{margin-top:10px; font-size:13px; color:var(--ink-muted, #4A5462)}
.sec-secret code{display:block; margin-top:6px; padding:8px 10px; border-radius:8px; background:rgba(44,36,28,.05); font-size:13px; letter-spacing:.06em; overflow-wrap:anywhere}
.sec-enrol-f .sec-code{max-width:240px; text-align:left}
.sec-st > .sec-msg{margin-top:4px}
.sec-future{margin-top:10px; color:var(--ink-faint, #8A8F98)}

/* Phase 9.3 — inside the iOS / Android apps "Confirm it's you" is a full-screen step in the same dark
   language as native sign-in (black, centred brand, white text, high-contrast primary button) */
.is-native .sec-overlay{align-items:flex-start; padding:calc(env(safe-area-inset-top) + clamp(24px, 6vh, 56px)) calc(24px + env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 20px) calc(24px + env(safe-area-inset-left));
  background:#000; overflow-y:auto; -webkit-overflow-scrolling:touch; color-scheme:dark}
.is-native .sec-overlay.is-gate{background:#000}
.is-native .sec-card{max-width:420px; margin:0 auto; padding:0; border-radius:0; background:none; box-shadow:none; border:0; color:#F5F7FA}
.is-native .sec-brand{flex-direction:column; gap:10px; margin:0 0 clamp(26px, 5.5vh, 44px)}
.is-native .sec-brand img{width:64px; height:64px; border-radius:16px; background:none}
.is-native .sec-brand span{font-size:clamp(16.5px, 4.8vw, 20px); font-weight:500; letter-spacing:.2em; margin-right:-.2em; color:#E9EDF2}
.is-native .sec-card h2{font-size:22px; color:#FFFFFF}
.is-native .sec-lead{color:#A3ACB9}
.is-native .sec-lbl{color:#C7CED8}
.is-native .sec-code{min-height:56px; border:1px solid #2E333B; border-radius:14px; background:#0D0F12; color:#FFFFFF; caret-color:#FFFFFF}
.is-native .sec-code:focus{border-color:#9DB8DA; box-shadow:0 0 0 3px rgba(157,184,218,.22)}
.is-native .sec-check{color:#C7CED8}
.is-native .sec-check input{accent-color:#FFFFFF}
.is-native .sec-msg{color:#A3ACB9}
.is-native .sec-msg.is-risk{color:#FFB4AB}
.is-native .sec-msg.is-safe{color:#8EE0B3}
.is-native .sec-msg.is-attention{color:#F2C879}
.is-native .sec-btn{min-height:54px; border-radius:14px; background:#FFFFFF; color:#0A0B0D}
.is-native .sec-btn:hover{background:#E3E7EC}
.is-native .sec-link{color:#9DB8DA}
.is-native .sec-link:disabled{color:#5E6672}
.is-native .sec-foot{border-top-color:#1E2228; color:#6F7783}

/* Phase 9.3 — "You're offline" / "Can't connect to RESERVD" (js/connect-screen.js and the generated offline pages).
   The block between the markers is copied verbatim into mobile/www/index.html and sw.js by
   mobile/scripts/build-offline-page.js, so all four startup paths look the same. Dark, like native sign-in. */
/* @offline-css:begin */
.cx{position:fixed; inset:0; z-index:10001; display:flex; flex-direction:column; overflow-y:auto; -webkit-overflow-scrolling:touch;
  background:#000; color:#F5F7FA; color-scheme:dark; font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent}
.cx:focus{outline:none}
.cx-art{position:fixed; inset:0; width:100%; height:100%; display:block; pointer-events:none}
.cx-in{position:relative; flex:1 0 auto; display:flex; flex-direction:column; align-items:center; width:100%; max-width:420px; margin:0 auto; box-sizing:border-box; text-align:center;
  padding:calc(env(safe-area-inset-top) + clamp(44px, 8vh, 88px)) calc(24px + env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 20px) calc(24px + env(safe-area-inset-left))}
.cx-brand{display:flex; flex-direction:column; align-items:center; gap:4px; margin:0}
.cx-brand img{display:block; width:64px; height:64px}
.cx-word{font-size:15px; font-weight:500; letter-spacing:.2em; margin-right:-.2em; color:#E9EDF2}
.cx-msg{margin:auto 0; padding:36px 0 28px; display:flex; flex-direction:column; align-items:center}
.cx-ic{--cx-ic-bg:#0E1013; display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; margin:0 0 20px; border-radius:50%;
  background:var(--cx-ic-bg); border:1px solid #23272E; color:#C7CED8}
.cx-title{margin:0 0 10px; font-size:22px; line-height:1.25; font-weight:600; letter-spacing:-.015em; color:#FFFFFF}
.cx-body{margin:0; max-width:320px; font-size:15.5px; line-height:1.5; color:#A3ACB9}
.cx-note{margin:12px 0 0; max-width:320px; font-size:14px; line-height:1.45; color:#8C95A3}
.cx-note:empty{display:none}
.cx-act{width:100%}
.cx-btn{display:flex; align-items:center; justify-content:center; width:100%; min-height:56px; margin:0; padding:0 20px; border:0; border-radius:16px; box-sizing:border-box;
  background:#FFFFFF; color:#0A0B0D; font:inherit; font-size:16.5px; font-weight:600; cursor:pointer}
.cx-btn:active{background:#E3E7EC}
.cx-btn:disabled{opacity:.72; cursor:default}
.cx-btn:focus-visible, .cx-out:focus-visible{outline:2px solid #9DB8DA; outline-offset:3px}
.cx-status{min-height:20px; margin:12px 0 0; font-size:14px; line-height:1.4; color:#C7CED8}
.cx-out{display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin:4px 0 0; padding:0 14px; border:0; background:none;
  color:#9DB8DA; font:inherit; font-size:15px; font-weight:500; cursor:pointer}
/* @offline-css:end */
/* the website (not the apps): the same screen as a light card, like "Confirm it's you" */
html:not(.is-native) .cx{background:linear-gradient(180deg, #F6F4EF 0%, #F1EDE6 100%); color:#141E2B; color-scheme:light; font-family:inherit}
html:not(.is-native) .cx-art{display:none}
html:not(.is-native) .cx-in{flex:0 0 auto; margin:auto; padding:30px 28px 24px; border-radius:20px; background:#FFFFFF; max-width:420px; width:calc(100% - 32px);
  box-shadow:0 1px 2px rgba(20,30,43,.06), 0 18px 48px -18px rgba(20,30,43,.28)}
html:not(.is-native) .cx-word{color:#141E2B}
html:not(.is-native) .cx-msg{margin:0; padding:24px 0}
html:not(.is-native) .cx-ic{--cx-ic-bg:#F3F1EC; border-color:#E6E1D8; color:#4A5462}
html:not(.is-native) .cx-title{color:#141E2B}
html:not(.is-native) .cx-body, html:not(.is-native) .cx-status{color:#4A5462}
html:not(.is-native) .cx-note{color:#6B7280}
html:not(.is-native) .cx-btn{background:#1A2B40; color:#FFFFFF; min-height:48px; border-radius:12px; font-size:15px}
html:not(.is-native) .cx-btn:active{background:#22374F}
html:not(.is-native) .cx-out{color:#2B5C8F}
