/* Theme: hub design baseline (hub templates/design.md), Villa Massimo tokens. <html data-theme> is set
   by js/theme.js: follows the system setting unless overridden in Settings. The app's short names
   (--panel, --muted, --border, --chip, --stage) map onto the baseline tokens; muscle, chart and volume
   colors are the app's own (validated per theme). */
:root, [data-theme="light"] {
  --bg: #ffffff; --text: #1b1c1f; --text-mid: #33353a; --text-dim: #5f636a;
  --panel-bg: rgba(247,248,250,.94); --panel-border: #cfd2d8; --sec-border: #dde0e5;
  --btn-bg: #e8eaee; --btn-border: #c2c5cc; --btn-text: #23252a; --btn-hover: #d6d9df;
  --accent: #2f6bf0; --accent-text: #fff; --link: #2f6bf0;
  --popup-bg: rgba(250,250,252,.97); --popup-border: #cfd2d8; --input-bg: #fff; --input-border: #c2c5cc;
  --primary: #e03131; --secondary: #f59f00; --series-1: #2a78d6; --series-2: #eb6834;
  --series-3: #1baf7a; --series-4: #eda100; --grid: #e1e0d9; --trend: #52514e; --vol-1: #5598e7;
  --vol-2: #2a78d6; --vol-3: #1c5cab; --vol-4: #0d366b; --axis-ink: #898781; --good-text: #006300;
  --bad-text: #d03b3b; --shadow: 0 4px 18px rgb(0 0 0 / 0.08);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #1e1f22; --text: #eee; --text-mid: #bbb; --text-dim: #888;
  --panel-bg: rgba(20,20,24,.92); --panel-border: #333; --sec-border: #2a2a30;
  --btn-bg: #26262e; --btn-border: #3a3a44; --btn-text: #ddd; --btn-hover: #33333d;
  --accent: #3a6df0; --accent-text: #fff; --link: #8fb0ff;
  --popup-bg: rgba(20,20,24,.96); --popup-border: #444; --input-bg: #26262e; --input-border: #3a3a44;
  --primary: #e03131; --secondary: #f59f00; --series-1: #3987e5; --series-2: #d95926;
  --series-3: #199e70; --series-4: #c98500; --grid: #2c3038; --trend: #c3c2b7; --vol-1: #256abf;
  --vol-2: #3987e5; --vol-3: #86b6ef; --vol-4: #cde2fb; --axis-ink: #898781; --good-text: #0ca30c;
  --bad-text: #e66767; --shadow: 0 4px 18px rgb(0 0 0 / 0.4);
  color-scheme: dark;
}
:root {
  --panel: var(--panel-bg);
  --muted: var(--text-dim);
  --border: var(--panel-border);
  --chip: var(--btn-bg);
  --stage: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y; /* no pinch or double-tap zoom */
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, sans-serif;
}

button { font: inherit; color: inherit; cursor: pointer; }

.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: 100dvh;
}

/* ---------- 3D stage */

.stage {
  position: relative;
  background: var(--stage);
  overflow: hidden;
  min-height: 0;
}

.viewer, .viewer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 24px);
  overflow-x: auto;
}

.toolbar button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.toolbar button:hover { background: var(--chip); }
.toolbar button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.toolbar .sep { width: 1px; background: var(--border); margin: 4px 2px; }

.legend {
  position: absolute;
  top: 64px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: baseline;
}
.dot.primary { background: var(--primary); }
.dot.secondary { background: var(--secondary); }

.info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 340px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.info .muted, .muted { color: var(--muted); }
.info > div { margin-top: 2px; }

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
}
.loading-bar {
  width: 180px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
#loading-fill { width: 0; height: 100%; background: var(--accent); transition: width 0.2s; }

/* ---------- side panel */

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-left: 1px solid var(--border);
}

.panel-head { padding: 14px 16px 0; }
.panel-head h1 { margin: 0 0 10px; font-size: 18px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs button {
  border: 0;
  background: none;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.tab-body { flex: 1; overflow-y: auto; padding: 12px 16px; min-height: 0; }
.hint { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }

.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.ghost { border: 1px solid var(--border); background: none; border-radius: 8px; padding: 0 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.list li:hover { background: var(--chip); }
.list li small { color: var(--muted); font-size: 12px; }
.list li.active { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.list li.active span { font-weight: 600; }
.li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.results { margin-top: 8px; }
.results li { cursor: default; }
.list li.empty { color: var(--muted); cursor: default; }
.list li.empty:hover { background: none; }

.icon-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.panel-expand { display: none; }
@media (max-width: 760px) { .panel-expand { display: inline-block; } }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn.add { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.icon-btn.add:disabled { background: var(--chip); border-color: var(--border); color: var(--muted); cursor: default; }

#group-list h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
#group-list h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border);
  background: var(--chip);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.title-row h1 { margin: 0; }

.sync-status {
  display: block;
  border: 0;
  background: none;
  padding: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.sync-status::before { content: "●"; margin-right: 5px; color: var(--border); }
.sync-status[data-kind="ok"]::before { color: #2f9e44; }
.sync-status[data-kind="error"] { color: var(--primary); }
.sync-status[data-kind="error"]::before { color: var(--primary); }

dialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
dialog::backdrop { background: rgb(0 0 0 / 0.35); }
dialog h2 { margin: 0 0 6px; font-size: 17px; }
dialog a { color: var(--link); }
dialog code { font-size: 12px; background: var(--chip); padding: 1px 4px; border-radius: 4px; }
.steps { padding-left: 18px; }
.steps li { margin-bottom: 4px; }
dialog label { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--muted); }
dialog input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.sync-error { min-height: 1.2em; font-size: 13px; color: var(--primary); margin: 10px 0 0; }
.dialog-actions { display: flex; gap: 8px; margin-top: 12px; }
.dialog-actions .spacer { flex: 1; }
.dialog-actions button { padding: 8px 14px; }
.primary-btn { border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); }
.primary-btn:disabled { opacity: 0.6; }
.ghost.danger { color: var(--primary); }

.list li small.last-session { color: var(--text); opacity: 0.75; }
.list li .ghost.small { flex: none; }

.log-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.log-dialog h3 { margin: 16px 0 4px; font-size: 14px; }
.log-chart { margin: 4px 0 8px; }
.log-history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log-history li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--border); }
.log-history .icon-btn { width: 26px; height: 26px; font-size: 15px; }
.date-label { max-width: 180px; }
.set-row { display: grid; grid-template-columns: 52px 1fr 1fr 32px; gap: 8px; align-items: end; margin-top: 8px; }
.set-row label { margin-top: 0; }
.set-row input { width: 100%; min-width: 0; }
.set-no { font-size: 13px; color: var(--muted); padding-bottom: 9px; }
#log-add-set { margin-top: 10px; }

.legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.legend .legend-title { color: var(--text); font-weight: 500; }

.checkin-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.checkin-nav strong { font-size: 15px; }
.checkin-nav .icon-btn:disabled { opacity: 0.35; cursor: default; }
.checkin-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.checkin-q > span, .checkin-q > label { display: flex; flex-direction: column; font-size: 14px; }
.checkin-q small { color: var(--muted); font-size: 11px; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: none; }
.seg button { border: 0; background: var(--panel); padding: 6px 11px; min-width: 36px; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
#checkin-weight { width: 90px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; text-align: right; }
.checkin-h { margin: 18px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.checkin-chart h4 { margin: 10px 0 2px; font-size: 13px; font-weight: 500; }

.workout-bar { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.workout-bar.running { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.workout-bar .hint { margin: 8px 0 0; }
.workout-bar .hint .ghost.small { margin-left: 8px; }
.workout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.workout-live::before { content: "●"; color: var(--primary); margin-right: 6px; }
#workout-elapsed { font-size: 20px; font-variant-numeric: tabular-nums; }
.workout-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.primary-btn.small { padding: 6px 12px; font-size: 14px; }
.workout-history h3 { margin: 18px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.workout-history li { cursor: default; }
.workout-history small.tracker-match { color: var(--text); opacity: 0.75; }

.checkin-supp { padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkin-supp-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.checkin-supp .hint { margin: 4px 0 8px; }
.supp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.supp-chip { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); background: var(--chip); border-radius: 10px; padding: 5px 10px; font-size: 13px; text-align: left; }
.supp-chip small { color: var(--muted); font-size: 11px; }
.supp-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.supp-chip[aria-pressed="false"] span { text-decoration: line-through; color: var(--muted); }
.supp-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.supp-dialog h3 { margin: 16px 0 4px; font-size: 14px; }
.supp-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 32px; gap: 8px; align-items: end; margin-top: 8px; }
.supp-row label { margin-top: 0; }
.supp-row input, .supp-row select { width: 100%; min-width: 0; }
dialog select { padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
#supp-add { margin-top: 10px; }
@media (max-width: 520px) {
  .supp-row { grid-template-columns: 1fr 1fr 32px; }
  .supp-row label:first-child { grid-column: 1 / -1; }
}

.workout-plans { margin-bottom: 12px; }
.workout-plans-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.workout-plans-head h3, .workout-history h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.workout-plans-head span { display: flex; gap: 6px; }
.workout-plans .list li { cursor: default; }
.workout-history h3 { margin: 18px 0 4px; }
.plan-checklist { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.plan-exercise { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.plan-exercise-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-exercise-head small { color: var(--muted); font-size: 12px; }
.plan-set { display: grid; grid-template-columns: 48px 1fr 1fr 40px; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; color: var(--muted); }
.plan-set input { width: 58px; padding: 5px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.plan-set.done input { border-color: transparent; background: transparent; color: var(--text); font-weight: 600; }
.tick-btn { width: 36px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: 16px; }
.tick-btn[aria-pressed="true"] { background: #2f9e44; border-color: #2f9e44; color: #fff; }
.plan-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.plan-row { margin-top: 10px; padding: 8px 10px 10px; border: 1px solid var(--border); border-radius: 10px; }
.plan-row-head { display: grid; grid-template-columns: 1fr 32px; gap: 8px; align-items: end; }
.plan-row label { margin-top: 0; }
.plan-row select { width: 100%; min-width: 0; }
.plan-set-row { display: grid; grid-template-columns: 48px 1fr 1fr 28px; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.plan-set-row label { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.plan-set-row input { width: 70px; }
.plan-set-row .icon-btn { width: 26px; height: 26px; font-size: 14px; }
.plan-row [data-add-set] { margin-top: 8px; }
#plan-add { margin-top: 10px; }

.credits { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }
.credits a { color: inherit; }

.title-actions { display: flex; align-items: center; gap: 6px; }
.ghost.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }

/* ---------- health view */

body[data-view="health"] .layout { display: none; }

.health {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px max(16px, calc((100vw - 1180px) / 2)) 32px;
}
.health-head { display: flex; align-items: center; gap: 14px; }
.health-head > button { white-space: nowrap; flex: none; }
.health-head h1 { margin: 0; font-size: 20px; }
.health-head p { margin: 2px 0 0; font-size: 13px; }

.filter-row { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.filter-row button {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
}
.filter-row button[aria-checked="true"] { background: var(--text); color: var(--panel); border-color: var(--text); }
.health-empty { padding: 24px; text-align: center; color: var(--muted); background: var(--panel); border-radius: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-value { font-size: 26px; font-weight: 600; margin: 2px 0; }
.tile-delta { font-size: 12px; color: var(--muted); }
.good { color: var(--good-text); }
.bad { color: var(--bad-text); }
.tile-delta.good, .tile-delta.bad { font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 12px; margin-top: 12px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card h2 { margin: 0; font-size: 15px; }
.card-sub { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.card-body { position: relative; overflow-x: auto; }
.card-body.is-table { max-height: 260px; overflow-y: auto; }
.card.wide { grid-column: 1 / -1; }
.card.wide .card-body.is-table { max-height: 420px; }
.card-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.legend-row i.line-key { width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; }
.trend-verdict { margin-left: auto; font-weight: 600; color: var(--text); }
.trend-verdict.good { color: var(--good-text); }
.trend-verdict.bad { color: var(--bad-text); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .tick { fill: var(--axis-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--panel); stroke-width: 2; }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.chart .line.faint { stroke-width: 1.5; opacity: 0.3; }
.chart .line.overlay { stroke: var(--text); }
.legend-row i.line-key.faint { opacity: 0.3; }
.chart .trend { stroke: var(--trend); stroke-width: 1.5; stroke-linecap: round; }
.chart .gap { fill: var(--chip); }
.chart .gap-label { fill: var(--muted); font-size: 12px; }
.chart .crosshair { stroke: var(--axis-ink); stroke-width: 1; }
.chart .col.hover path { opacity: 0.8; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 9px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 2;
}
.chart-tip-title { color: var(--muted); margin-bottom: 2px; }
.chart-tip-row i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }
.chart-tip-row { color: var(--muted); }
.chart-tip-row strong { color: var(--text); }

.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.hbar-track { min-width: 0; }
.hbar { display: block; height: 14px; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar-value { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); padding: 4px 6px; position: sticky; top: 0; background: var(--panel); }
.data-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- phone layout: model on top, panel as bottom sheet */

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 40fr 60fr; }
  /* expanded: the panel takes the whole screen, the model is hidden */
  body.panel-expanded .layout { grid-template-rows: 0 1fr; }
  body.panel-expanded .stage { visibility: hidden; }
  body.panel-expanded .panel { border-top: 0; }
  .panel { border-left: 0; border-top: 1px solid var(--border); }
  .panel-head h1 { font-size: 15px; }
  .panel-head { padding-top: 6px; }
  .legend { top: 60px; }
  .info { font-size: 13px; padding: 8px 12px; max-width: none; }
  .toolbar button { padding: 6px 8px; font-size: 14px; }
}

/* iOS zooms into any focused field below 16px and stays zoomed */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}
