* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; background: #f5f7fa; color: #10203a; line-height: 1.5; font-size: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #0b3fa8; color: #fff; }
.top span { font-size: .85rem; opacity: .9; }
.beta { background: #fff4e5; color: #7a4b00; text-align: center; font-size: .8rem; padding: 3px; }
main { max-width: 560px; margin: 0 auto; padding: 12px; }
h1 { font-size: 1.25rem; margin: 6px 0 10px; } h2 { font-size: 1.05rem; margin: 14px 0 8px; }
.card { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 8px 0 4px; }
input, select, button { font: inherit; }
input, select { width: 100%; padding: 9px 10px; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fff; }
input:focus, select:focus { outline: 2px solid #0b3fa8; outline-offset: 1px; }
.ltr { direction: ltr; text-align: left; unicode-bidi: isolate; }
.btn { display: block; width: 100%; padding: 11px; margin-top: 10px; border: 0; border-radius: 10px; background: #0b3fa8; color: #fff; font-weight: 700; cursor: pointer; }
.btn.alt { background: #fff; color: #0b3fa8; border: 1.5px solid #0b3fa8; }
.btn.sm { display: inline-block; width: auto; padding: 6px 12px; margin: 0; font-size: .85rem; }
.btn:disabled { opacity: .5; }
.err { color: #b42318; font-weight: 600; margin-top: 8px; }
.muted { color: #667085; font-size: .85rem; }
.code { color: #d92d20; font-size: 1.6rem; font-weight: 800; letter-spacing: .3em; text-align: center; direction: ltr; }
.chips { display: flex; gap: 8px; } .chips button { flex: 1; padding: 9px; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fff; cursor: pointer; }
.chips button.on { border-color: #0b3fa8; background: #e8efff; font-weight: 700; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 10px; } .tabs button { white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid #cfd8e3; background: #fff; cursor: pointer; }
.tabs button.on { background: #0b3fa8; color: #fff; border-color: #0b3fa8; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.row:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #eef1f5; }
.pill.ok { background: #e7f6ec; color: #067647; } .pill.bad { background: #fdecea; color: #b42318; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; margin-top: 10px; }
.pad button { padding: 16px; font-size: 1.3rem; border-radius: 12px; border: 1px solid #cfd8e3; background: #fff; cursor: pointer; }
.dots { text-align: center; font-size: 1.6rem; letter-spacing: .4em; min-height: 2rem; }
