/* Phone layout for /profile.html (loaded at (max-width: 760px)). */
/* On a phone: the header link steps out from under the floating bell,
   cards are tighter, key/value rows wrap instead of crushing a long email,
   plan and password buttons go full width, and the cancel survey's select
   and radios become finger-sized. */

/* The bell sits in the header beside "Back to the builder". */
.back { padding: 12px 0; }
.back .shell { min-height: 40px; }
.back .btn-quiet { min-height: 44px; font-size: 15px; }

.wrap { padding: 16px 16px 48px; }
.wrap h1 { font-size: 1.7rem; }
.wrap p.lede { font-size: 15px; margin-bottom: 20px; }

.card { padding: 18px 16px; margin-bottom: 14px; }
.card h2 { font-size: 12px; margin-bottom: 14px; }
label.field { font-size: 12px; }

/* A long email or plan name moves under its label (still right-aligned)
   instead of squeezing the label into a narrow column. */
.kv { gap: 12px; }
.kv .line { flex-wrap: wrap; gap: 2px 16px; font-size: 15px; }
.kv .line span:last-child { margin-left: auto; }

.plan-note { font-size: 14px; }
.pw-hint { font-size: 13px; }
.demo-note { font-size: 12px; }

.actions .btn { flex: 1 1 100%; min-height: 48px; }
.actions .btn-quiet { min-height: 44px; }

/* creator code remove / confirm */
.creator-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.creator-confirm { font-size: 14px; }

/* Drift scores: the Remove button is created with inline margin only. */
#dsList .btn-quiet { min-height: 40px; padding: 8px 6px; }

/* Cancel survey. The select's look is inline on the element, so only its
   height and font size are set here (16px stops iOS zooming on focus). */
#cxForm select { min-height: 48px; font-size: 16px; }
#cxForm input[type=text] { min-height: 48px; }
/* The Yes / No radios sit in bare inline labels: make each label a
   finger-sized target with a bigger dot. */
#cxForm label:has(input[type=radio]) { min-height: 44px; padding-right: 8px; }
#cxForm input[type=radio] { width: 20px !important; height: 20px; }  /* inline style="width:auto" */

.foot-actions .btn { min-height: 44px; padding-left: 0; padding-right: 0; }

/* Username, friends, shared maps: finger-sized buttons; a long road name
   wraps above its buttons. */
.fr-form input { font-size: 16px; min-height: 44px; }   /* 16px: no iOS zoom on focus */
.fr-form .btn { min-height: 44px; }
.fr-list li { flex-wrap: wrap; font-size: 15px; }
.fr-list .who { flex: 1 1 100%; }
.fr-list .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.fr-list .sub { font-size: 13px; }
.fr-h, .fr-sent summary { font-size: 12px; }
