:root { --brand: #1e3d61; --bg: #f4f6f9; --card: #fff; --line: #e3e7ed; --text: #1c2430; --muted: #66707d; --green: #1c7c4a; --green-bg: #e3f4ea; --amber: #8a5a00; --amber-bg: #fdf1d8; --red: #b42318; --red-bg: #fde8e6; --blue-bg: #e6eef8; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }
.center { text-align: center; padding: 40px 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.top { background: var(--brand); color: #fff; padding: 14px 16px calc(10px); position: sticky; top: 0; z-index: 2; }
.top .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.top h1 { font-size: 17px; margin: 0; font-weight: 600; }
.top .who { font-size: 12px; opacity: .85; }
.top button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.tabs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
.tabs button { border-radius: 16px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: 5px 12px; white-space: nowrap; font-size: 13px; }
.tabs button.on { background: #fff; color: var(--brand); border-color: #fff; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.p-ok { background: var(--green-bg); color: var(--green); }
.p-warn { background: var(--amber-bg); color: var(--amber); }
.p-bad { background: var(--red-bg); color: var(--red); }
.p-info { background: var(--blue-bg); color: var(--brand); }
.list { background: var(--card); margin: 12px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.item { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 14px; color: inherit; font: inherit; }
.item:first-child { border-top: 0; }
button.item:active { background: var(--bg); }
.item b { font-weight: 600; }
.card { background: var(--card); margin: 12px; border-radius: 12px; border: 1px solid var(--line); padding: 14px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
label.f { display: block; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[inputmode] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c9d0da; border-radius: 9px; margin-top: 4px; background: #fff; color: var(--text); }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.btn { display: block; width: 100%; font: inherit; font-weight: 600; padding: 12px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; margin-top: 16px; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn:disabled { opacity: .6; }
.line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .grow { flex: 1; min-width: 0; }
.line input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.amt { white-space: nowrap; font-weight: 600; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-top: 8px; }
.choice.on { border: 2px solid var(--brand); padding: 10px 11px; }
.choice input { width: 18px; height: 18px; }
.partin { margin-top: 6px; }
.err { color: var(--red); font-size: 13px; margin-top: 8px; }
.alert { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px; margin: 12px; font-size: 14px; }
.alert.bad { background: var(--red-bg); color: var(--red); }
.alert.ok { background: var(--green-bg); color: var(--green); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.secret { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: var(--bg); padding: 8px; border-radius: 8px; font-size: 13px; }
.logo { display: block; margin: 30px auto 6px; width: 72px; height: 72px; border-radius: 16px; }
.search { margin: 12px 12px 0; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; }
#toast.bad { background: var(--red); }
