/* Capability-test edge client — mobile-first.
   Layout target: fully usable at ~360px wide, no hover-dependent
   interactions, tap targets >= 44px, 16px input text (prevents iOS
   focus zoom), readable without pinch-zooming. */
* { box-sizing: border-box; }
body { font-family: sans-serif; margin: 0; padding: 1rem; line-height: 1.5;
       font-size: 1rem; color: #111; background: #fff; }
#app { max-width: 44rem; margin: 0 auto; padding-bottom: 5rem; }
#clock { text-align: right; font-variant-numeric: tabular-nums;
         min-height: 1.2em; font-size: 1.1rem; }
footer#honour { margin-top: 2rem; font-size: 0.85rem; color: #444; }
button { font-size: 1rem; min-height: 48px; min-width: 48px;
         padding: 0.6rem 1.1rem; margin: 0.3rem 0.3rem 0.3rem 0;
         border: 1px solid #555; border-radius: 0.4rem; background: #f4f4f4;
         color: #111; cursor: pointer; touch-action: manipulation; }
button:active { background: #e2e2e2; }
fieldset { margin: 0.75rem 0; border: 1px solid #ccc; border-radius: 0.4rem; }
fieldset label { display: flex; align-items: center; gap: 0.6rem;
                 min-height: 44px; padding: 0.4rem 0.5rem; cursor: pointer; }
input[type="radio"] { width: 1.4rem; height: 1.4rem; flex: none; }
input[type="email"], input[type="text"], input[type="tel"], textarea {
  width: 100%; font-size: 16px; padding: 0.6rem; margin: 0.3rem 0 0.8rem;
  border: 1px solid #777; border-radius: 0.4rem; }
textarea { min-height: 3.2rem; }
.error { color: #8b0000; }
.stimulus { white-space: pre-wrap; }
table.calc { border-collapse: collapse; }
table.calc td button { width: 3.6rem; min-height: 48px; }
.conf-row { margin: 0.75rem 0; padding: 0.5rem; border: 1px solid #ddd;
            border-radius: 0.4rem; }
.conf-answer { background: #f4f4f4; padding: 0.4rem; white-space: pre-wrap;
               overflow-wrap: anywhere; }
#pausebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
            background: #fff; border-top: 1px solid #bbb;
            padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom)); }
#pausebar button { width: 100%; margin: 0; min-height: 48px; }
.login label { display: block; font-weight: 600; margin-top: 0.8rem; }
@media (max-width: 480px) {
  body { padding: 0.7rem; }
  button { width: 100%; margin-right: 0; }
  fieldset label { padding: 0.55rem 0.5rem; }
  table.calc td button { width: 4.2rem; }
  .actions button { width: 100%; }
}
