/* Tapixy medal theme — gold, deep teal, yellow, reserved red. */

:root {
  --bg: #091e17;
  --bg-deep: #0b1a15;
  --card: rgba(14, 40, 32, 0.62);
  --text: #eef6f1;
  --muted: #9bb5ab;
  --accent: #2ee6c6;
  --accent-ink: #091e17;
  --gold: #d4af37;
  --gold-deep: #b8942e;
  --gold-shine: #f0d56a;
  --yellow: #fcd116;
  --red: #ff4d6d;
  --border: rgba(212, 175, 55, 0.32);
  --radius: 20px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  --gold-gradient: linear-gradient(180deg, #f3d56a 0%, #d4af37 48%, #b8942e 100%);
  --teal-gradient: linear-gradient(180deg, #12382c 0%, #0b1a15 60%, #071410 100%);
}

html { color-scheme: dark; }

body {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(46, 230, 198, 0.18) 0%, transparent 55%),
    radial-gradient(780px 360px at 96% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 50%),
    radial-gradient(640px 320px at 50% 88%, rgba(46, 230, 198, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, #0b1a15 0%, #091e17 42%, #071410 100%);
  background-size: 140% 140%, 130% 130%, 120% 120%, 100% 100%;
  animation: tapixy-ambient 20s ease-in-out infinite alternate;
  color: var(--text);
}

a { color: var(--accent); }
a:hover { color: var(--gold-shine); }

/* ── Brand header ───────────────────────────────────────────── */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  background: rgba(7, 20, 16, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(46, 230, 198, 0.08);
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.brand-name,
body h1,
body h2,
body h3 {
  background: linear-gradient(100deg, #fff8dc 0%, #f0d56a 22%, #2ee6c6 50%, #d4af37 78%, #fff8dc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tapixy-name-shimmer 6.5s linear infinite;
}
.brand-name {
  display: block;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.brand-slogan {
  display: block;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #d4af37;
  line-height: 1.3;
}

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #04343a;
  box-shadow: 0 0 0 2px #d4af37, 0 0 16px rgba(212, 175, 55, 0.35), 0 4px 12px rgba(0, 0, 0, 0.28);
  animation: tapixy-logo-pulse 4.8s ease-in-out infinite;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 248, 220, 0.55) 46%, rgba(46, 230, 198, 0.32) 54%, transparent 72%);
  transform: translateX(-130%);
  animation: tapixy-shine 5.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-primary {
  width: clamp(5.6rem, 16vw, 7.5rem);
  height: clamp(5.6rem, 16vw, 7.5rem);
}

.brand-menu-toggle {
  display: none;
  appearance: none;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid rgba(243, 213, 106, 0.45);
  border-radius: 12px;
  background: rgba(4, 52, 58, 0.28);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.brand-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-shine);
  border-radius: 999px;
}

.brand-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 1.55rem;
  margin-left: auto;
}

.brand-nav-mark { display: none; }

.brand-nav a {
  color: #f7efd0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.brand-nav a:hover,
.brand-nav a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

@media (max-width: 1100px) {
  .brand-logo-primary {
    width: 4.75rem;
    height: 4.75rem;
  }
  .brand-lockup { gap: 0.6rem; max-width: calc(100% - 3.4rem); }
  .brand-name { font-size: 1.4rem; }
  .brand-slogan { font-size: 0.88rem; }
  .brand-menu-toggle { display: flex; }
  .brand-nav {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: 1rem 1.1rem 1.15rem;
    background: #04343a;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(4, 20, 22, 0.35);
  }
  .brand-header.is-open .brand-nav { display: flex; }
  .brand-nav-mark {
    display: grid;
    place-items: center;
    padding: 0.25rem 0 0.85rem;
  }
  .brand-nav-mark img {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #d4af37;
  }
  .brand-nav a {
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(228, 214, 179, 0.16);
    font-size: 0.9rem;
  }
  .brand-nav a:last-child { border-bottom: 0; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(7, 20, 16, 0.86);
  backdrop-filter: blur(16px);
  padding: 1.25rem 1.5rem 1.4rem;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.site-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.site-footer-brand img {
  width: 5.25rem;
  height: 5.25rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #d4af37, 0 3px 8px rgba(0, 0, 0, 0.28);
  background: #04343a;
}

.site-footer-copy {
  margin: 0;
  color: #f7efd0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.site-footer-contact {
  max-width: 36rem;
  margin: 0;
  padding-left: 6rem;
  color: rgba(247, 239, 208, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.site-footer-contact a,
a.mailto-link,
a.text-yellow-400,
a[href^="mailto:"],
a.underline.hover\:opacity-80 {
  color: var(--yellow, #fcd116);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer-contact a:hover,
.site-footer-contact a:focus-visible,
a.mailto-link:hover,
a.mailto-link:focus-visible,
a.text-yellow-400:hover,
a.text-yellow-400:focus-visible,
a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible,
a.hover\:opacity-80:hover,
a.hover\:opacity-80:focus-visible {
  color: #fbbf24;
  opacity: 0.8;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.site-footer-nav a {
  /* 32px tall touch target without changing the text size. */
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  border-bottom-color: var(--yellow);
  color: #fff6c4;
}

.site-footer-affiliate {
  max-width: 36rem;
  margin: 0;
  padding-left: 6rem;
  color: rgba(247, 239, 208, 0.48);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Stack the footer below 1000px: side by side, the link row squeezed the contact column
   into a narrow strip on tablets and narrow desktop windows. */
@media (max-width: 999px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}
/* Side by side, cap the link row at its one-line width: extra links wrap onto a second
   row, flush right, instead of squeezing the contact column beside it. */
@media (min-width: 1000px) {
  .site-footer-nav { max-width: 40rem; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .site-footer-affiliate,
  .site-footer-contact { padding-left: 0; max-width: 100%; }
}

.sf-kicker {
  color: #8a6a00;
  letter-spacing: 0.12em;
}

/* ── Buttons, pills, focus ──────────────────────────────────── */
.sf-shop-btn,
button.submit-btn,
.auth-submit {
  position: relative;
  overflow: hidden;
  background: var(--gold-gradient);
  color: var(--accent-ink);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 6px 16px rgba(184, 148, 46, 0.28);
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.sf-shop-btn::after,
button.submit-btn::after,
.auth-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-140%);
  pointer-events: none;
}

.sf-shop-btn:hover,
button.submit-btn:hover:not(:disabled),
.auth-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(184, 148, 46, 0.38), 0 0 18px rgba(46, 230, 198, 0.18);
}

.sf-shop-btn:hover::after,
button.submit-btn:hover:not(:disabled)::after,
.auth-submit:hover::after {
  animation: tapixy-shine 0.85s ease;
}

.sf-shop-btn.secondary,
.sf-upload-link {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.sf-upload-link {
  color: var(--accent);
}

.sf-header .sf-upload-link,
.dashboard-header-actions .sf-upload-link,
.review-header-actions .sf-upload-link,
.creator-actions .sf-upload-link {
  background: rgba(255, 253, 248, 0.08);
  color: var(--accent-ink);
  border-color: var(--gold);
}

.dashboard-page .sf-upload-link,
.review-page .sf-upload-link,
.admin-page .sf-upload-link {
  background: #fffdf8;
  color: var(--accent);
}

.legal-page .sf-header .sf-upload-link,
.legal-page .legal-login-btn {
  position: relative;
  overflow: hidden;
  background: rgba(10, 28, 22, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid #d4af37;
  color: #f0d56a;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.legal-page .sf-header .sf-upload-link::after,
.legal-page .legal-login-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 248, 220, 0.38) 48%, rgba(46, 230, 198, 0.16) 56%, transparent 72%);
  transform: translateX(-140%);
  animation: tapixy-shine 5.8s ease-in-out infinite;
  pointer-events: none;
}

.legal-page .sf-header .sf-upload-link:hover,
.legal-page .legal-login-btn:hover {
  transform: translateY(-4px);
  color: #fff8dc;
  border-color: #f0d56a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 28px rgba(46, 230, 198, 0.22);
}

.sf-upload-link.secondary {
  background: transparent;
}

.sf-shop-btn.danger,
.sf-look-delete:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.sf-pill.is-active,
.creator-view-switch .sf-upload-link.is-active {
  background: var(--accent);
  color: #fff8dc;
  border-color: var(--accent);
}

.sf-pill:hover { border-color: var(--gold); }

.sf-search input:focus,
.url-input:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.empty-look-filter input,
.payout-switch input {
  accent-color: var(--accent);
}

.auth-switch a,
.sf-auth-nav a:hover {
  color: var(--accent);
}

.auth-error,
.warning-badge,
.earnings-status.returned,
.dash-stat-return .dash-stat-value,
.empty-look-badge {
  color: var(--red);
}

.auth-error,
.auth-notice {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.auth-error,
.warning-badge {
  background: rgba(255, 77, 109, 0.12);
}

.sf-header,
.creator-hero,
.sf-video-card,
.settings-form,
.earnings-card,
.legal-doc,
.url-input,
.sf-search input,
.dashboard-look-metrics li {
  background: rgba(14, 40, 32, 0.55);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

.sf-video-card,
.lp-card,
.lp-platform,
.lp-flow-step,
.dash-stat,
.dashboard-look,
.dashboard-page .dashboard-panel {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.sf-video-card:hover,
.lp-card:hover,
.lp-platform:hover,
.dash-stat:hover,
.dashboard-look:hover,
.dashboard-page .dashboard-panel:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(240, 213, 106, 0.55);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 26px rgba(46, 230, 198, 0.16);
}

@keyframes tapixy-shine {
  0% { transform: translateX(-140%) skewX(-16deg); }
  100% { transform: translateX(220%) skewX(-16deg); }
}
@keyframes tapixy-name-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes tapixy-logo-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #d4af37, 0 0 12px rgba(212, 175, 55, 0.32), 0 4px 12px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 2px #f0d56a, 0 0 24px rgba(46, 230, 198, 0.42), 0 4px 16px rgba(0, 0, 0, 0.28); }
}
@keyframes tapixy-ambient {
  0% { background-position: 8% -8%, 96% 0%, 50% 88%, 50% 50%; }
  100% { background-position: 18% 10%, 80% 14%, 42% 78%, 50% 50%; }
}
@keyframes tapixy-border-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .brand-name,
  body h1,
  body h2,
  body h3,
  .brand-logo,
  .brand-logo::after,
  .sf-shop-btn::after,
  button.submit-btn::after,
  .auth-submit::after,
  .legal-page .sf-header .sf-upload-link::after,
  .legal-page .legal-login-btn::after { animation: none; }
  .brand-name,
  body h1,
  body h2,
  body h3 {
    color: #fff8dc;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #fff8dc;
  }
}

/* Upload page (inline theme) */
body.upload-page {
  background: transparent;
  color: var(--text);
}
body.upload-page .brand-header,
body.upload-page .site-footer {
  align-self: stretch;
}

body.upload-page .card {
  border-color: var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

body.upload-page h1 { color: transparent; }
body.upload-page .url-input:focus { border-color: var(--gold); }
body.upload-page .progress-fill { background: var(--gold-gradient); }
body.upload-page .status-badge.error { background: #fdecee; color: var(--red); }
body.upload-page .status-badge.done { background: #e7f3ea; color: var(--accent); }
body.upload-page .status-badge.downloading { background: #e6f4f5; color: var(--accent); }
body.upload-page .status-badge.detecting { background: #fff6d6; color: #8a6a00; }
body.upload-page .status-badge.matching { background: #eef6f4; color: var(--accent-ink); }

/* Bare / legacy pages */
body.legacy-page,
body:not([class]) {
  max-width: none;
}

.legacy-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}
/* main.css has no border-box reset: keep the full-width header and footer inside the
   page instead of 2rem past its right edge. */
body.legacy-page .brand-header,
body.legacy-page .site-footer { box-sizing: border-box; }
/* The product table needs ~1000px; below that it scrolls inside the page, not the page. */
@media (max-width: 1059px) {
  .legacy-shell { overflow-x: auto; }
}
/* Phones: full-width header as on every other page, so "Join for Free" clears the
   wordmark; .legacy-shell keeps its own side padding. */
@media (max-width: 479px) {
  body.legacy-page { padding-left: 0; padding-right: 0; }
}

/* ── "Join for Free" in the header (signed-out) and footer ───────────────── */
.brand-join-cta {
  flex: none;
  margin-left: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d56a, #d4af37);
  color: #1a1405;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(240, 213, 106, 0.35);
}
.brand-join-cta:hover,
.brand-join-cta:focus-visible { background: linear-gradient(135deg, #fff1b0, #e6c24a); color: #1a1405; }
.brand-join-cta + .brand-menu-toggle { margin-left: 0.6rem; }
@media (max-width: 900px) {
  .brand-lockup:has(~ .brand-join-cta) { max-width: none; min-width: 0; }
}
@media (max-width: 440px) {
  .brand-header:has(.brand-join-cta) { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .brand-header:has(.brand-join-cta) .brand-slogan { display: none; }
  .brand-join-cta { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
}
/* Smallest phones (320–360px): logo, wordmark and "Join for Free" all fit on one row. */
@media (max-width: 360px) {
  .brand-header:has(.brand-join-cta) .brand-logo-primary { width: 3.4rem; height: 3.4rem; }
  .brand-header:has(.brand-join-cta) .brand-lockup { gap: 0.4rem; }
  .brand-header:has(.brand-join-cta) .brand-name { font-size: 1.15rem; }
  .brand-join-cta { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
}
.site-footer-join { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.4rem; }
.site-footer-join-btn { white-space: nowrap; }
.site-footer-free {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(240, 213, 106, 0.12);
  border: 1px solid rgba(240, 213, 106, 0.5);
  color: #f0d56a;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Copyright on its own full-width row at the very bottom of the footer. */
.site-footer .site-footer-bottom {
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  max-width: 1100px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  text-align: center;
  color: #9bb5ab;
  font-size: 0.82rem;
}

/* ── Show / hide password (password-toggle.js): every password field on every page ── */
.password-field {
  position: relative;
  width: 100%;
  min-width: 0;
}
.password-field > input { width: 100%; box-sizing: border-box; padding-right: 3.25rem; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.15rem;
  transform: translateY(-50%);
  width: 2.75rem;   /* 44px: comfortable touch target */
  height: 2.75rem;
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #6b7f76);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.password-toggle svg { width: 1.25rem; height: 1.25rem; shape-rendering: geometricPrecision; }
.password-toggle:hover { color: var(--accent, #2ee6c6); }
.password-toggle:focus { outline: none; }
.password-toggle:focus-visible { color: var(--accent, #2ee6c6); outline: 2px solid var(--accent, #2ee6c6); outline-offset: -4px; }
.password-toggle-hide { display: none; }
.password-field.is-visible .password-toggle-show { display: none; }
.password-field.is-visible .password-toggle-hide { display: block; }

/* Browsers draw their own buttons inside password fields at the same right edge as our
   eye (Edge's reveal eye, Safari's key/AutoFill button): two icons overlapped and the
   tap could hit theirs. Ours is the one that works everywhere. */
.password-field > input::-ms-reveal,
.password-field > input::-ms-clear { display: none; }
.password-field > input::-webkit-credentials-auto-fill-button,
.password-field > input::-webkit-strong-password-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}
/* Clearer on the dark fields (the grey eye was easy to miss on a phone). */
.password-toggle { color: #a7bdb4; }

/* ── Phones and tablets (iPhone, iPad, Android) ─────────────────────────────────
   One rule set for every page: 44px touch targets and 16px form text (iOS zooms the
   page into any field under 16px, shifting the layout under the next tap). any-pointer
   also covers an iPad with a trackpad keyboard (its main pointer reports as fine). Heights
   come from padding, never from changing display, so hidden controls stay hidden. */
@media (max-width: 760px), (pointer: coarse), (any-pointer: coarse) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
  html body select,
  html body textarea { font-size: max(16px, 1em); }
  html body input[type="checkbox"],
  html body input[type="radio"] { min-width: 22px; min-height: 22px; }

  html body .sf-shop-btn,
  html body .sf-upload-link,
  html body .brand-join-cta,
  html body .sf-pill,
  html body .dash-tab {
    min-height: 44px;
    line-height: 1.2;
    padding-top: max(0.6rem, calc((44px - 1.2em) / 2));
    padding-bottom: max(0.6rem, calc((44px - 1.2em) / 2));
    box-sizing: border-box;
    touch-action: manipulation;
  }
  html body .brand-menu-toggle { min-width: 44px; min-height: 44px; }
  html body .sf-pill { min-width: 44px; justify-content: center; }
  /* The look editor's "Show on storefront" label is the checkbox's tap area. */
  html body .review-toggle { min-height: 44px; }

  /* Text links that act as buttons get a 44px-tall hit area. */
  html body .auth-help-row a,
  html body .dash-tab-link,
  html body .stores-jump a,
  html body .review-browse-stores,
  html body .partner-store-link,
  html body .sf-auth-nav a,
  html body .sf-look-delete {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    touch-action: manipulation;
  }
}
