*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a;background:#fff}
[hidden]{display:none!important}
.topbar{background:#0b6fd6;color:#fff;position:sticky;top:0;z-index:5}
.topbar-inner{max-width:720px;margin:0 auto;display:flex;align-items:center;gap:8px;padding:12px 16px}
.topbar h1{flex:1;margin:0;font-size:22px}
.icon-btn{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:22px;cursor:pointer}
.menu{max-width:720px;margin:0 auto;padding:8px 16px;display:flex;flex-direction:column;background:#f1f5f9;position:fixed;top:68px;left:0;right:0;bottom:0;z-index:50;overflow-y:auto;padding-bottom:calc(32px + env(safe-area-inset-bottom))}
.menu[hidden]{display:none!important}
.menu button{min-height:44px;text-align:left;border:0;border-bottom:1px solid #e2e8f0;background:transparent;font-size:16px;cursor:pointer}
.menu button:last-child{margin-bottom:16px}
#action-note{color:#0b6fd6;font-weight:600;min-height:20px;margin:4px 0}
.confirm-backdrop{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.confirm-backdrop[hidden]{display:none!important}
.confirm-box{background:#fff;border-radius:12px;padding:20px;max-width:420px;width:100%}
.confirm-box p{font-size:16px;margin:0 0 16px}
.page{max-width:720px;margin:0 auto;padding:16px}
.note{color:#475569;font-size:14px}.warn{color:#92400e;font-weight:600}.error{color:#b91c1c}
label{display:block;margin:12px 0;font-size:15px}
input,select,textarea{width:100%;min-height:44px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px;margin-top:6px}
.btn{min-height:44px;padding:10px 16px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:16px;cursor:pointer;margin:6px 6px 6px 0}
.btn.primary{background:#0b6fd6;color:#fff;border-color:#0b6fd6}.btn.danger{color:#b91c1c}
.tabs{display:flex;gap:8px;margin:12px 0}.tab{flex:1;min-height:44px;border:0;border-bottom:2px solid #e2e8f0;background:transparent;font-size:16px;cursor:pointer}
.tab.active{border-color:#0b6fd6;color:#0b6fd6;font-weight:700}
.list-head{display:flex;gap:12px;align-items:baseline}.list-head h2{margin:8px 0}
.acc{border-bottom:1px solid #e2e8f0;padding:12px 0;display:flex;gap:12px;align-items:flex-start;min-width:0}
.acc-main{flex:1;min-width:0}.acc-issuer{font-weight:700}.acc-name{color:#475569;word-break:break-word}
.acc-code{font-size:28px;color:#0b6fd6;letter-spacing:1px;word-break:break-all}
.acc-actions{display:flex;flex-direction:column;gap:4px}.acc-actions button{min-width:44px;min-height:36px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer}
.choice-row{display:flex;gap:8px;flex-wrap:wrap}
#scan-video{width:100%;max-height:300px;background:#0f172a;border-radius:8px}
.footer{color:#64748b;font-size:13px;margin-top:24px}
@media(max-width:400px){.acc-code{font-size:24px}.topbar h1{font-size:19px}}
/* Login gate, 2026-10-24: locked screen shows login only. No codes,
   account list, Add, Search, Settings, Verified IDs, QR scan, Transfer,
   Edit, Delete, or Copy before login, and no account count beyond 0. */
body.locked .topbar-inner .icon-btn{display:none}
body.locked .page > .note, body.locked .tabs, body.locked .footer{display:none}
body.locked section:not(#view-login){display:none!important}
body.locked #view-login{display:block}
#view-login{max-width:480px;margin:0 auto}
#view-login h2{font-size:22px}
#view-login .input-row{display:flex;gap:8px;align-items:flex-end}
#view-login .input-row input{flex:1;min-width:0}
#view-login .input-row .btn{margin:6px 0 0}
#login-note{color:#0b6fd6;font-weight:600}
@media(max-width:375px){.page{padding:12px}.topbar-inner{padding:10px 12px}.btn{min-height:44px;width:100%;margin:6px 0}#view-login .input-row{flex-wrap:wrap}#view-login .input-row .btn{width:auto}}
/* App Lock, 2026-10-24: PIN pad at the door only, after personal login,
   before any code. No code, account name, issuer, or count beyond 0 on
   the pad screen. */
.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin:12px 0}
.row-label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.row-label input{width:auto;min-height:44px}
body.applock section:not(#view-applock){display:none!important}
body.applock .page > .note, body.applock .tabs, body.applock .footer{display:none}
.applock-box{max-width:360px;margin:24px auto;text-align:center}
.applock-icon{font-size:48px}
.applock-dots{display:flex;gap:12px;justify-content:center;margin:16px 0}
.applock-dots span{width:16px;height:16px;border-radius:50%;border:2px solid #0b6fd6}
.applock-dots span.filled{background:#0b6fd6}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:320px;margin:0 auto}
.key{min-height:56px;min-width:56px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-size:18px;cursor:pointer}
@media(max-width:375px){.keypad{max-width:300px}.key{min-height:52px}}
