/* Interviewer mobile shell: header, offline bar, context chips, bottom tab bar, and the
   home / upload-queue / account screens. Scoped to body.iv-shell (the interviewer app);
   the admin pages share style.css but never get these rules. Colors come from the
   existing light/dark variables in style.css, so the shipped themes keep working. */
body.iv-shell { display: flex; flex-direction: column; min-height: 100dvh; }
body.iv-shell .main { flex: 1; width: 100%; max-width: 640px; padding-bottom: 88px; }
body.iv-shell:not([data-view=interview]) .progress,
body.iv-shell:not([data-view=interview]) .progress-label { visibility: hidden; }
.brand-wrap { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-wrap .brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
.ui-ver { font-size: 11px; opacity: .75; }
.head-badges { display: flex; gap: 6px; }
.offlinebar { background: var(--error-bg); color: var(--error); font-size: 14px; padding: 6px 16px; text-align: center; }
.syncbar { padding: 0 16px; }
.syncbar .sync { display: inline-block; margin-top: 6px; }
.syncbar .sync[hidden] { display: none; }
.ctxbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 0; }
.ctxbar[hidden] { display: none; }
.chip { font-size: 12px; background: var(--row-a); border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px; color: var(--muted); }
.chip.ok { color: var(--ok); }
.chip.err { color: var(--error); }
.chip.pending { color: var(--accent-dark); font-weight: 600; }
.chip-warn { color: var(--error); }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; background: none; border: 0; border-radius: 0;
  color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 4px; position: relative;
}
.tabbar button:hover { background: var(--row-a); color: var(--text); }
.tabbar button[aria-current="true"] { color: var(--accent-dark); }
.tabbar button svg { width: 22px; height: 22px; }
.tab-badge {
  position: absolute; top: 4px; inset-inline-end: calc(50% - 26px);
  background: var(--error); color: var(--on-error);
  border-radius: 10px; font-size: 11px; min-width: 18px; padding: 0 4px; text-align: center;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.card h1, .card h2 { margin: 0 0 8px; font-size: 18px; }
.study-title { font-size: 20px; }
.card .nav { margin-bottom: 0; }
.card select {
  width: 100%; padding: 10px; font: inherit; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text);
}
.card button { min-height: 44px; }
.q-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-id { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.q-done-h { font-size: 15px; margin: 16px 0 8px; }
.empty { text-align: center; padding: 20px 0; }
.retry-btn { width: 100%; }
@media (min-width: 641px) {
  body.iv-shell .tabbar { inset-inline: max(0px, calc(50% - 320px)); border-inline: 1px solid var(--line); }
}
