:root{--bg: #eef3f2;--card: #ffffff;--text: #17302c;--muted: #5c726e;--line: #d3e0de;--accent: #0f766e;--accent-dark: #0b5953;--accent-soft: #ccebe7;--warn: #8a5a00;--warn-soft: #fbedc8;--danger: #b3261e;--tap: 48px;--tabbar-height: 60px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px);color-scheme:light}*{box-sizing:border-box}html{touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5}a{color:var(--accent-dark)}h1{font-size:1.6rem;line-height:1.2}h2{font-size:1.25rem;line-height:1.25}.topbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;max-width:760px;margin:0 auto;padding:calc(.5rem + var(--safe-top)) calc(1rem + var(--safe-right)) .5rem calc(1rem + var(--safe-left));min-height:calc(56px + var(--safe-top))}.topbar .brand{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:700;font-size:1.25rem;letter-spacing:-.02em;text-decoration:none;color:var(--text)}.topbar .brand img{width:28px;height:28px;border-radius:7px}.topbar nav{display:flex;align-items:center;gap:.25rem .75rem}.topbar nav a:not(.button),.topbar nav button.link{display:inline-flex;align-items:center;min-height:44px;padding:0 .25rem}.topbar nav a.active{font-weight:600}.topbar .desktop-only{display:none!important}.topbar .settings-link{gap:.35rem;color:var(--muted);text-decoration:none;max-width:14rem}.topbar .settings-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .settings-link svg{flex:none;width:1.25rem;height:1.25rem;fill:currentColor}.topbar .settings-link.active{color:var(--accent-dark)}.tabbar{position:fixed;inset:auto 0 0;z-index:10;display:grid;grid-template-columns:repeat(3,1fr);padding:0 var(--safe-right) var(--safe-bottom) var(--safe-left);background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line)}.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:var(--tabbar-height);color:var(--muted);font-size:.75rem;font-weight:600;text-decoration:none}.tabbar a svg{width:26px;height:26px;fill:currentColor}.tabbar a.active{color:var(--accent)}.page{max-width:760px;margin:0 auto;padding:.5rem calc(.75rem + var(--safe-right)) calc(2rem + var(--safe-bottom)) calc(.75rem + var(--safe-left));display:grid;gap:1rem}.page.with-tabbar{padding-bottom:calc(var(--tabbar-height) + var(--safe-bottom) + 1.5rem)}.card{background:var(--card);border-radius:14px;padding:1.1rem 1rem 1.25rem;box-shadow:0 1px 2px #0f766e14,0 6px 24px #0f766e0f;min-width:0}.card h1,.card h2{margin-top:0}.card.narrow{max-width:440px;width:100%;justify-self:center}.page-title{margin:.25rem .25rem 0;font-size:1.6rem}.muted{color:var(--muted)}.error{color:var(--danger)}p.small,.muted.small{font-size:.875rem}.optional{font-weight:400;color:var(--muted)}strong,dd,.badge+*{overflow-wrap:anywhere}button{font:inherit}.button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);padding:.6rem 1.25rem;border:none;border-radius:12px;background:var(--accent);color:#fff;font-weight:600;text-align:center;text-decoration:none;cursor:pointer}.button:active{background:var(--accent-dark)}.button:disabled{opacity:.6;cursor:default}.button.small{min-height:44px;padding:.4rem .9rem}.button.secondary{background:var(--accent-soft);color:var(--accent-dark)}.button.secondary:active{background:#b5e0db}button.link{display:inline-flex;align-items:center;min-height:44px;padding:0 .25rem;background:none;border:none;color:var(--accent-dark);text-decoration:underline;text-underline-offset:2px;cursor:pointer}button.link.danger{color:var(--danger)}button.link:disabled{opacity:.6}p button.link{display:inline;min-height:0;padding:0}.card>.button{width:100%}.actions{display:grid;gap:.25rem;justify-items:stretch}.actions .button{width:100%}.actions button.link{justify-content:center}.form{display:grid;gap:1rem}.form label{display:grid;gap:.35rem;font-weight:600}.form .field-error,.form .hint{font-weight:400;font-size:.875rem}.form .field-error{color:var(--danger)}.form .hint{color:var(--muted)}.form>.button{width:100%}.form label.checkbox{display:flex;align-items:center;gap:.75rem;min-height:44px;font-weight:400}.form label.checkbox input{width:1.35rem;height:1.35rem;min-height:0;accent-color:var(--accent)}input,textarea{width:100%;min-height:var(--tap);font:inherit;font-size:16px;padding:.6rem .75rem;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}input:focus,textarea:focus{outline:3px solid var(--accent-soft);border-color:var(--accent)}input.code-input{font-size:1.75rem;letter-spacing:.4em;font-family:ui-monospace,Consolas,monospace;max-width:13ch;text-align:center;padding-left:.6em}.passkey-option{display:grid;gap:.4rem}.passkey-option .button{width:100%}.passkey-option p{margin:0}.divider{display:flex;align-items:center;gap:.75rem;color:var(--muted);font-size:.875rem}.divider:before,.divider:after{content:"";flex:1;border-top:1px solid var(--line)}.badge{display:inline-block;margin-left:.35rem;padding:0 .5rem;border-radius:999px;font-size:.8rem;font-weight:400;background:var(--warn-soft);color:var(--warn)}.badge.ok{background:var(--accent-soft);color:var(--accent-dark)}dl.facts{display:grid;grid-template-columns:max-content 1fr;gap:.25rem 1rem;margin:1rem 0 0;font-size:.9rem}dl.facts dt{color:var(--muted)}dl.facts dd{margin:0}@media(min-width:640px){h1{font-size:2rem}.topbar{padding-top:calc(1rem + var(--safe-top))}.topbar .desktop-only{display:inline-flex!important}.tabbar{display:none}.page,.page.with-tabbar{padding:0 calc(1rem + var(--safe-right)) calc(3rem + var(--safe-bottom)) calc(1rem + var(--safe-left));gap:1.25rem}.card{border-radius:16px;padding:1.5rem 1.75rem}.page-title{font-size:1.9rem}.card>.button,.form>.button,.actions .button,.passkey-option .button{width:auto;justify-self:start}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}}@media(hover:hover){.button:hover{background:var(--accent-dark)}.button.secondary:hover{background:#b5e0db}.topbar .settings-link:hover{color:var(--accent-dark)}}
