body { font-size: 17px; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { -webkit-user-select: text; user-select: text; font-size: 18px; padding: 12px 14px; }
.statusbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.statusbar .dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; display: inline-block; }
.statusbar .dot.online { background: var(--ok); }
.statusbar .dot.offline { background: var(--warn); }
.statusbar .grow { flex: 1; }
.statusbar .pending { font-weight: 700; color: var(--text); }
.statusbar .pending.zero { color: var(--muted); font-weight: 500; }
.statusbar button { padding: 6px 10px; font-size: 13px; }
.statusbar .preview { background: var(--warn-soft); color: var(--warn); padding: 3px 8px; border-radius: 6px; font-weight: 700; }
main { max-width: 820px; margin: 0 auto; padding: 20px 16px 120px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
.screen-title { font-size: 26px; margin-bottom: 4px; }
.setup .card { margin-bottom: 14px; }
.home { text-align: center; padding-top: 30px; }
.home .survey-name { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.home .ctx { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.home .counts { display: flex; justify-content: center; gap: 28px; margin: 24px 0; }
.home .counts div { text-align: center; }
.home .counts b { display: block; font-size: 30px; line-height: 1.1; }
.home .counts span { color: var(--muted); font-size: 13px; }
.btn-start { font-size: 24px; padding: 22px 48px; border-radius: 16px; width: 100%; max-width: 480px; justify-content: center; }
.lang-switch { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.lang-switch button { padding: 8px 14px; }
.lang-switch button.on { background: var(--text); color: #fff; border-color: var(--text); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.progress div { height: 100%; background: var(--accent); transition: width .25s; }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.qtext { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.qinstr { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.qbody { margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-size: 19px; font-weight: 500; padding: 15px 18px; margin-bottom: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); min-height: 60px; }
.opt .box { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b8bec8; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
.opt.multi .box { border-radius: 7px; }
.opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt.selected .box { background: var(--accent); border-color: var(--accent); }
.opt.disabled { opacity: .45; }
.other-input { margin: -4px 0 14px 44px; width: calc(100% - 44px); }
.scale { display: flex; gap: 8px; margin: 6px 0 10px; }
.scale button { flex: 1; font-size: 22px; padding: 18px 0; border-radius: 12px; border-width: 2px; }
.scale button.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.grid-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.grid-row .rlabel { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.grid-row .cols { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-row .cols button { flex: 1 1 0; min-width: 90px; font-size: 16px; padding: 14px 8px; border-width: 2px; border-radius: 12px; }
.grid-row .cols button.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.grid-row.missing .rlabel { color: var(--bad); }
.grid-row .cols.compact { flex-wrap: nowrap; gap: 5px; }
.grid-row .cols.compact button { min-width: 0; padding: 0; height: 54px; font-size: 18px; border-radius: 9px; white-space: nowrap; overflow: hidden; }
.grid-row .scale-labels { margin-top: 8px; }
.qimgs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.qimgs img { flex: 1 1 280px; max-width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.numwrap { display: flex; gap: 10px; align-items: center; }
.numwrap input { max-width: 240px; font-size: 24px; }
.numwrap .unit { color: var(--muted); }
.na-btn { margin-top: 12px; }
.na-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
textarea { min-height: 120px; }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; font-size: 16px; }
.navbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; justify-content: space-between; z-index: 5; }
.navbar .inner { max-width: 820px; margin: 0 auto; width: 100%; display: flex; gap: 12px; justify-content: space-between; }
.navbar button { font-size: 20px; padding: 16px 28px; border-radius: 14px; min-width: 140px; justify-content: center; }
.end { text-align: center; padding-top: 60px; }
.end h1 { font-size: 32px; }
.end .btn-start { margin-top: 30px; }
.intro { font-size: 20px; line-height: 1.5; }
.ctx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.settings-link { margin-top: 20px; }
.tiny { font-size: 12px; color: var(--muted); }
pre.dump { text-align: left; font-size: 12px; background: #fff; padding: 12px; border-radius: 8px; overflow: auto; max-height: 300px; user-select: text; -webkit-user-select: text; }
@media (max-width: 500px) { .qtext { font-size: 21px; } .opt { font-size: 17px; } }

.home-brand { display: flex; justify-content: center; margin-bottom: 26px; }

.client-setup .card { max-width: 560px; margin: 0 auto; }
.client-choice { margin-bottom: 8px; }

.dump-details { max-width: 560px; margin: 18px auto 0; text-align: left; }
.dump-details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
