/* style.css — ButlerPass design system.
   Theme: "Spark & Shine" — bright aqua primary, sunshine accents,
   bubbly rounded shapes, Nunito + Bricolage Grotesque type.
   Mobile-first (max-width 960px container, grid at >=720px). */

:root {
  --green: #00a6be;          /* primary aqua */
  --green-dark: #087184;     /* deep aqua */
  --green-soft: #d9f1f6;     /* aqua tint */
  --sun: #ffc53d;            /* sunshine yellow */
  --sun-ink: #4a3200;        /* text on sunshine */
  --bg: #f2fafb;             /* cloud */
  --card: #ffffff;
  --ink: #0e2a35;
  --muted: #5b7a86;
  --line: #dcebee;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --warn-soft: #fef3c7;
  --warn-ink: #92400e;
  --ok-soft: #dcfce7;
  --ok-ink: #166534;
  --star: #ffc53d;
  --radius: 18px;
  --radius-input: 14px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(520px 320px at 8% 4%, rgba(0,166,190,.08), transparent 60%),
    radial-gradient(640px 380px at 96% 30%, rgba(255,197,61,.14), transparent 60%),
    linear-gradient(180deg, #f7feff, var(--bg));
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--green-dark); }

/* --- Top bar ----------------------------------------------------------- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
#topbar .brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
#topbar .brand img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -6px rgba(8,113,132,.4);
}
/* ButlerPass logo on the login/signup card */
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.35rem;
}
/* ButlerPass full logo on the landing hero */
.hero-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 0.75rem;
}
#mainnav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
/* Pushes nav links + lang toggle to the header's right edge while keeping
   left-to-right scroll order (safe for the phone's scrolling nav strip). */
.nav-spacer { flex: 1 0 auto; }
#mainnav > * { flex-shrink: 0; }
/* User chip + dropdown host: pinned at the header's right edge, never
   swallowed by the scrolling nav strip. */
#usermenu {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
#mainnav a, #mainnav .nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}
#mainnav a:hover, #mainnav .nav-link-btn:hover { background: var(--green-soft); color: var(--green-dark); }
#mainnav .nav-cta {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
#mainnav .nav-cta:hover { background: var(--green-dark); color: #fff; }
#mainnav .nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
}
#mainnav .nav-chip:hover { background: var(--green-soft); }

/* --- Layout ------------------------------------------------------------ */
#view {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4.5rem;
}
.row { display: flex; gap: 0.75rem; align-items: center; }
.grow { flex: 1; min-width: 0; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
/* Star picker rows (review form): 5 star buttons spread evenly across the row. */
.star-row { display: flex; justify-content: space-evenly; align-items: center; gap: 0.25rem; margin: 0.25rem 0 0.5rem; }
.star-row .btn { flex: 1 1 0; min-width: 0; padding-left: 0; padding-right: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.grid2 > * { min-width: 0; }
/* Address confirmation overlay. */
.overlay { position: fixed; inset: 0; background: rgba(15, 40, 50, 0.5); display: flex; align-items: center; justify-content: center; padding: 1.25rem; z-index: 200; }
.overlay-card { background: #fff; border-radius: 1rem; padding: 1.25rem; max-width: 26rem; width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); }
.addr-confirm-line { font-weight: 600; font-size: 1.05rem; margin: 0.5rem 0; line-height: 1.4; }
/* iOS date/time inputs refuse to shrink inside two columns and overflow
   their cells; on phones stack the slot form fields one per row instead. */
@media (max-width: 640px) {
  .slot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Cards ------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px -18px rgba(8,113,132,.35);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* --- Buttons ----------------------------------------------------------- */
button, .btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}
/* Hover lift only where a real hover exists — on touch screens a stuck :hover
   after tap would leave buttons (incl. .opt-card) dark. */
@media (hover: hover) {
  button:hover, .btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
}
button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* Sunshine CTA — the Spark & Shine signature button */
.btn-sun {
  background: var(--sun);
  color: var(--sun-ink);
  border-radius: 14px;
  box-shadow: 0 10px 22px -8px rgba(255,197,61,.7);
}
.btn-sun:hover { background: #ffbe22; color: var(--sun-ink); transform: translateY(-2px); }
.btn-ghost, .btn.secondary {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover, .btn.secondary:hover { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.btn-danger, .btn.danger { background: var(--danger); }
.btn-danger:hover, .btn.danger:hover { background: #b42318; }
.btn.block { display: block; width: 100%; margin-top: 0.75rem; }
.btn.small, button.small {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

/* --- Forms ------------------------------------------------------------- */
label { display: block; font-size: 0.88rem; font-weight: 700; margin: 0.85rem 0 0.35rem; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
textarea { min-height: 90px; resize: vertical; }
/* iOS Safari's native date/time boxes ignore vertical padding and render
   much shorter than text inputs (~25px vs ~46px) — force the same box height. */
input[type="date"], input[type="time"] { min-height: 2.9rem; }
/* iOS Safari's native date/time boxes ignore width:100% and overflow their
   container by ~24px (internal value margins). Taking over the appearance
   makes them obey the box model; tapping still opens the native picker. */
input[type="date"], input[type="time"] {
  display: block;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="file"] { padding: 0.5rem; }
input[type="checkbox"] { width: auto; }
.help { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.5rem 0 0.25rem; }
.acct-type label {
  margin: 0; padding: 0.85rem; border: 1.5px solid var(--line); border-radius: var(--radius-input);
  background: #fff; cursor: pointer;
}
.acct-type label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.acct-type input { width: auto; margin-right: 0.45rem; }
.acct-type span { display: block; margin-top: 0.25rem; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
@media (max-width: 520px) { .acct-type { grid-template-columns: 1fr; } }

/* --- Badges / tags ----------------------------------------------------- */
.tag, .badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  white-space: nowrap;
}

/* Sponsored placement (CPC bidding): tag under the profile pic on cards. */
.avatar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.top-pro-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--sun, #ffc53d);
  color: #5b4300;
  white-space: nowrap;
}
/* CPC report: daily click bars + month/day tables. */
.cpc-chart { display: flex; align-items: flex-end; gap: 1px; height: 110px; border-bottom: 1px solid #e3edf2; padding-top: 6px; }
.cpc-chart i { flex: 1; min-width: 1px; background: var(--aqua, #00a6be); border-radius: 2px 2px 0 0; }
.cpc-table .cpc-tr { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid #eef4f7; font-size: 0.92rem; }
.cpc-table .cpc-tr.head { font-weight: 700; color: #567; border-bottom-width: 2px; }
.cpc-table .cpc-tr:last-child { border-bottom: none; }
.tag.warn, .badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.ok, .badge.ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag.bad, .badge.bad { background: var(--danger-soft); color: var(--danger); }
.tag.grey, .badge.grey { background: #e9edf0; color: #6b7683; }

/* --- Stars / avatars --------------------------------------------------- */
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; font-weight: 700; }
.stars .off { color: #d8d8d2; }
.stars.muted { color: var(--muted); }

.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-soft);
}
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 68px; height: 68px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 110px; height: 110px; }
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  font-size: 1.1rem;
}
.avatar-fallback.avatar-sm { font-size: 0.7rem; }
.avatar-fallback.avatar-md { font-size: 1.3rem; }
/* Inline text button that looks like a link (e.g. review-count jump). */
.linklike { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--teal, #0b7285); text-decoration: underline; cursor: pointer; }
.linklike.muted { color: var(--muted); }
/* Badge chips under a pro's name/rating. */
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
/* Checkbox pill rows (badge / language pickers). */
.checkrow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #0b7285; margin: 0; }

/* --- Landing hero — Spark & Shine banner -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.75rem 1.5rem 2.25rem;
  background:
    radial-gradient(420px 260px at 12% 10%, rgba(0,166,190,.12), transparent 60%),
    radial-gradient(520px 300px at 92% 90%, rgba(255,197,61,.25), transparent 60%),
    linear-gradient(180deg, #f7feff, #ffffff);
  border: 2px solid rgba(0,166,190,.14);
  border-radius: 24px;
  margin-bottom: 1.25rem;
  box-shadow: 0 22px 48px -18px rgba(8,113,132,.25);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  background: #fff;
  border: 2px solid rgba(0,166,190,.22);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-dark);
  box-shadow: 0 6px 16px -8px rgba(8,113,132,.4);
}
.hero-pill .sun-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sun);
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
}
.hero h1 { font-size: 2.1rem; margin-bottom: 0.5rem; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--green-dark); }

/* --- Landing hero banner — Angi-style rotating photos -------------------- */
.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0b3b44;
  box-shadow: 0 22px 48px -18px rgba(8,113,132,.35);
  margin-bottom: 1rem;
}
.hero-slides { position: relative; height: 440px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,38,46,.05) 30%, rgba(4,38,46,.78) 92%);
}
.hero-content {
  position: absolute;
  left: 1.15rem; right: 1.15rem; top: 36%;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
}
.hero-content h1 {
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.18;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero-content p { color: rgba(255,255,255,.94); margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-dots { position: absolute; top: 0.9rem; right: 1rem; display: flex; gap: 0.45rem; z-index: 4; }
.hero-dot {
  width: 10px; height: 10px; min-height: 0; flex: 0 0 auto; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5);
}
.hero-dot.active { background: #fff; }
.hero-dot:hover { background: rgba(255,255,255,.8); transform: none; }
.hero-dot.active:hover { background: #fff; }
.hero-searchbar {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 3;
}
.hero-service { width: 100%; margin: 0.6rem 0 0.75rem; text-align: center; font-size: 1.05rem; }
.svc-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.svc-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.4rem;
  background: var(--card, #fff);
  border: 2px solid rgba(0,166,190,.14);
  border-radius: 18px;
  font: inherit;
  font-weight: 700;
  color: var(--ink, #134);
  cursor: pointer;
}
.svc-icon .ic { font-size: 1.9rem; }
.svc-icon:hover { background: #eaf7fa; transform: none; }
.svc-icon:active { transform: scale(.97); }

/* --- Clickable dashboard job cards/rows ----------------------------------- */
a.job-card-link, a.job-row-link { color: inherit; text-decoration: none; }
a.job-card-link { display: block; }
a.job-row-link:active { opacity: .75; }

/* --- Post-a-job banner ---------------------------------------------------- */
.postjob-banner {  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 22px 48px -18px rgba(8,113,132,.35);
  margin-bottom: 1.25rem;
}
.postjob-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,38,46,.08) 30%, rgba(4,38,46,.8) 95%);
}
.postjob-content {
  position: relative;
  padding: 1.25rem;
  color: #fff;
  width: 100%;
  text-align: center;
}
.postjob-content h2 { color: #fff; margin: 0 0 0.3rem; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.postjob-content p { color: rgba(255,255,255,.94); margin: 0 0 0.9rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
@media (min-width: 700px) {
  .hero-slides { height: 430px; }
  .hero-content h1 { font-size: 2.3rem; }
}
.hero-search {
  max-width: 480px;
  margin: 1.25rem auto 0;
  background: #fff;
  border: 2px solid rgba(0,166,190,.14);
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: 0 22px 48px -18px rgba(8,113,132,.35);
}
.hero-search input { text-align: center; font-size: 1.05rem; border-color: transparent; background: var(--bg); }
.hero-search input:focus { border-color: var(--green); }
.chip-row { display: flex; gap: 0.5rem; justify-content: center; margin: 0.75rem 0; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  min-height: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.chip:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.chip.active:hover { background: var(--green-dark); color: #fff; }

/* --- How it works ------------------------------------------------------ */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.how-steps li { display: flex; gap: 0.85rem; align-items: flex-start; }
.how-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.how-steps p { margin: 0.25rem 0 0; }

/* --- Wizard ------------------------------------------------------------ */
.steps { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.step { flex: 1; text-align: center; }
.step-dot {
  width: 100%; height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 0.35rem;
}
.step.done .step-dot { background: var(--green); }
.step.current .step-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.step-label { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.step.current .step-label { color: var(--green-dark); }
.wizard-nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.wizard-nav .btn { flex: 1; }

.opt-grid { display: grid; gap: 0.6rem; }
.opt-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 0;
  color: var(--ink);
}
.opt-card.selected { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
/* Sticky :hover on touch screens leaves a teal border after tap — only apply
   hover styling where a real hover exists (desktop). */
@media (hover: hover) {
  .opt-card:hover { border-color: var(--green); background: var(--card); color: var(--ink); }
}
.opt-card b { display: block; font-size: 1.02rem; }
.opt-card span { font-size: 0.86rem; color: var(--muted); font-weight: 400; }

.stepper { display: flex; align-items: center; gap: 1rem; }
.stepper button {
  width: 46px; height: 46px;
  min-height: 0; padding: 0;
  border-radius: 50%;
  font-size: 1.4rem; line-height: 1;
  background: var(--card);
  color: var(--green-dark);
  border: 1.5px solid var(--line);
}
.stepper button:hover { border-color: var(--green); background: var(--green-soft); }
.stepper .stepper-val { font-size: 1.4rem; font-weight: 800; min-width: 3ch; text-align: center; }
.stepper-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.stepper-row:last-child { border-bottom: 0; }
.stepper-row .lbl b { display: block; }
.stepper-row .lbl span { font-size: 0.85rem; color: var(--muted); }

.pill-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-input);
  padding: 0.7rem 1rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}
.pill:hover { border-color: var(--green); background: var(--card); color: var(--ink); }
.pill.selected { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); box-shadow: 0 0 0 1px var(--green); }
.pill small { display: block; font-weight: 400; color: var(--muted); }
.pill.past, .pill:disabled { background: #edf1f3; border-color: #d3dde1; color: #97a5ab; box-shadow: none; opacity: 1; }
.pill.past small, .pill:disabled small { color: #a7b3b8; }
.pill.past:hover, .pill:disabled:hover { background: #edf1f3; border-color: #d3dde1; color: #97a5ab; }

.check-card {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.6rem;
  background: var(--card);
}
.check-card input { width: 20px; height: 20px; accent-color: var(--green); }
.check-card.checked { border-color: var(--green); background: var(--green-soft); }

/* --- Tasker cards ------------------------------------------------------ */
.sort-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sort-tab {
  border: 0; background: none; color: var(--muted);
  font-weight: 700; font-size: 0.92rem;
  padding: 0.5rem 0.8rem; min-height: 0; border-radius: 999px;
}
.sort-tab:hover { background: var(--green-soft); color: var(--green-dark); }
.sort-tab.active { background: var(--ink); color: #fff; }
.sort-tab.active:hover { background: var(--ink); }

.tasker-card { transition: box-shadow 0.15s ease; }
.tasker-card:hover { box-shadow: 0 4px 14px rgba(35, 38, 43, 0.08); }
.tasker-card h3 { margin: 0 0 0.15rem; }
.tasker-card .rate { text-align: right; }
.tasker-card .rate strong { display: block; font-size: 1.15rem; }
.tagline { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0; }
.est { font-weight: 800; color: var(--green-dark); }
.tasker-grid { display: grid; gap: 1rem; }
.mini-card { display: block; color: inherit; text-decoration: none; }
.mini-card:hover { box-shadow: 0 4px 14px rgba(35, 38, 43, 0.08); }
.mini-card .btn { width: 100%; margin-top: 0.75rem; }

/* --- Reviews / photos / slots ------------------------------------------ */
.review { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.review:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.photo-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0; }
.photo-strip img { height: 96px; width: auto; border-radius: 8px; flex-shrink: 0; object-fit: cover; cursor: zoom-in; }
/* Schedule picker modal (TaskRabbit-style date + start time). */
.sched-card { max-width: 36rem; position: relative; }
.sched-x { position: absolute; top: .6rem; right: .8rem; min-height: 0; padding: .4rem .7rem; border: none; border-radius: 50%; background: none; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sched-body { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 700px) {
  .sched-body { flex-direction: row; }
  .sched-cal { flex: 1.2; }
  .sched-side { flex: 1; border-left: 1px solid var(--line); padding-left: 1.25rem; }
}
.sched-availhead { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: .75rem 0 .5rem; }
.sched-monthnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.sched-monthnav button { min-height: 0; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.sched-monthnav button:disabled { opacity: .35; cursor: default; }
.sched-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.sched-dow { font-size: .72rem; color: var(--muted); padding: .25rem 0; text-transform: uppercase; }
.sched-day { min-height: 0; padding: 0; border: none; border-radius: .55rem; background: none; color: var(--ink); font-size: .92rem; aspect-ratio: 1; cursor: pointer; }
.sched-day.has { color: var(--green-dark); font-weight: 700; }
.sched-day.sel { background: var(--green); color: #fff; font-weight: 700; }
.sched-day:disabled { color: #c3cdd2; cursor: default; background: none; font-weight: 400; }
.sched-time { margin-top: .8rem; width: 100%; }
.sched-req { font-size: 1.02rem; }
/* Upload preview wrapper with a delete button below the image. */
.photo-wrap { position: relative; flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; }
.photo-delbtn { margin-top: 3px; min-height: 0; padding: 6px 10px; border: none; border-radius: 6px; background: none; color: #b42318; font-size: .82rem; font-weight: 600; cursor: pointer; }
.photo-delbtn:active { background: rgba(180,35,24,.08); }

/* Fullscreen photo lightbox: tap a job photo to open, pinch/drag to zoom & pan. */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.93); }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform; }
.lightbox-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); right: 1rem; z-index: 2; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox-prev { left: .7rem; }
.lightbox-next { right: .7rem; }
.lightbox-count { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: .88rem; background: rgba(0,0,0,.45); padding: .28rem .75rem; border-radius: 1rem; }
/* Address book (customer profile + wizard WHERE step). */
.addr-pick { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .8rem; margin-bottom: .5rem; cursor: pointer; }
.addr-pick input { margin-top: .25rem; accent-color: var(--green); flex: none; width: auto; padding: 0; border: none; background: none; }
.addr-pick.sel { border-color: var(--green); background: rgba(0,166,190,.07); }
.addr-row { display: flex; gap: .6rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.addr-row:last-child { border-bottom: none; }
/* Booking request date/time line + Today/Tomorrow urgency pills. */
.req-datetime { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; font-size: 1.06rem; }
.day-pill { font-size: .78rem; font-weight: 700; padding: .22rem .65rem; border-radius: 1rem; white-space: nowrap; }
.day-pill.is-today { background: #fde8e8; color: #c81e1e; }
.day-pill.is-tomorrow { background: #fff3d6; color: #9a6b00; }
/* "Paid Ads" tag for bookings attributed to a sponsored click. */
.badge.ads { background: #ede9fe; color: #6d28d9; }
.slot { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.slot:last-child { border-bottom: 0; }
.avail-day { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.avail-day:last-child { border-bottom: 0; }

/* --- Price breakdown --------------------------------------------------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.price-table td:last-child { text-align: right; font-weight: 700; }
.price-table tr.total td { border-bottom: 0; font-size: 1.1rem; color: var(--green-dark); }

/* --- Sticky mobile CTA ------------------------------------------------- */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  margin: 1.25rem -1rem -4.5rem;
  display: flex; gap: 0.75rem; align-items: center;
  box-shadow: 0 -2px 10px rgba(35, 38, 43, 0.06);
}
.sticky-cta .btn { flex: 1; margin-top: 0; }

/* --- Chat bubbles (used by task views) --------------------------------- */
.msg-row { display: flex; margin: 0.35rem 0; }
.msg-row.msg-me { justify-content: flex-end; }
.msg-row.msg-them { justify-content: flex-start; }
.msg-row > * {
  max-width: 78%;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.msg-row.msg-me > * { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.msg-row.msg-them > * { background: #ececea; color: var(--ink); border-bottom-left-radius: 4px; }
.msg-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

/* --- Tables ------------------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--card); }
.table th, .table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* --- Lists ------------------------------------------------------------- */
.list-item { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-item:last-child { border-bottom: 0; }

/* --- Toast -------------------------------------------------------------- */
#toast {
  position: fixed;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%) translateY(200%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-input);
  transition: transform 0.25s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
  font-weight: 600;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* --- Responsive ---------------------------------------------------------- */
@media (min-width: 720px) {
  #view { padding: 2rem 1.5rem 4.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-steps li { flex-direction: column; }
  .tasker-grid { grid-template-columns: repeat(2, 1fr); }
  .opt-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
}

/* --- Desktop: use the wide screen ------------------------------------------- */
@media (min-width: 1100px) {
  #view { max-width: 1240px; }
  /* Tasker browse results: 3 columns (beats the inline 1fr). */
  .tasker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  /* Card sections (My Tasks, pro dashboard): 2-column card grids. */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }
  .cards-grid > h3 { grid-column: 1 / -1; margin-bottom: 0; }
  .cards-grid > .card { margin-bottom: 0 !important; }
}

#langwrap { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Language picker: compact dropdown in the global header. */
.lang-select {
  flex-shrink: 0;
  vertical-align: middle;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--bg, #f1f5f9);
  color: var(--ink, #0f172a);
  border-radius: 999px;
  padding: 0.28rem 0.3rem;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  max-width: 6.5rem;
}
.lang-toggle {
  display: inline-flex;
  flex-shrink: 0;
  background: var(--bg, #f1f5f9);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted, #64748b);
  line-height: 1.2;
  white-space: nowrap;
}
.lang-toggle button.active {
  background: #fff;
  color: var(--ink, #0f172a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* --- Account area (settings / payments / messages) --------------------- */
.account-menu { padding: 0.35rem 1.1rem; }
.acct-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0; text-decoration: none; color: var(--ink); font-weight: 700;
}
.acct-row + .acct-row { border-top: 1px solid var(--line); }
.msg-badge {
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; padding: 0.05rem 0.45rem;
  margin-left: 0.4rem; vertical-align: middle; line-height: 1.4;
}
.msg-badge.static { margin-left: auto; }
/* Header notification bell with unread badge. */
#bellwrap { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-bell { position: relative; font-size: 1.25rem; padding: 0.3rem; text-decoration: none; }
.nav-bell .msg-badge { position: absolute; top: 0.1rem; right: 0.15rem; margin: 0; }
.pay-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.6rem 0;
}
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.thread-row {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.7rem 0; text-decoration: none; color: inherit;
}
.thread-row + .thread-row { border-top: 1px solid var(--line); }
.thread-main { flex: 1; min-width: 0; }
.thread-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.thread-preview {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted);
}

/* --- User-name dropdown (top bar) --------------------------------------- */
.user-menu { position: relative; }
button.nav-chip { font: inherit; background: var(--card); color: var(--ink); cursor: pointer; }
.um-caret { font-size: 0.7rem; color: var(--muted); }
/* The chip lives in #usermenu (outside #mainnav), so it needs its own flex
   layout — otherwise .um-name stays inline and max-width/ellipsis never apply. */
#userMenuBtn { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; overflow: hidden; }
#userMenuBtn .um-name { min-width: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#userMenuBtn > :not(.um-name) { flex-shrink: 0; }
.user-menu-panel {
  /* Absolute under the chip (which lives in #usermenu, outside the
     horizontally scrolling nav), so it floats over the page content. */
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(8, 113, 132, .35);
  padding: 0.4rem; z-index: 60;
}
.um-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 0.55rem 0.7rem; border-radius: 9px;
  text-decoration: none; color: var(--ink); font-weight: 700;
  background: none; border: 0; cursor: pointer; text-align: left; font-size: 0.95rem;
}
.um-row:hover { background: var(--green-soft); }
.um-logout { border-top: 1px solid var(--line); color: var(--danger); margin-top: 0.25rem; }

/* ---- Site footer (Midnight Butler) ---- */
#site-footer { background: #0e2a38; color: #d7e3e8; margin-top: 48px; }
.ftr-inner { padding: 12px 20px 0; max-width: 1240px; margin: 0 auto; }
.ftr-brand { text-align: center; padding: 26px 0 6px; }
.ftr-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.ftr-logo img { width: 40px; height: 40px; border-radius: 12px; }
.ftr-brand p { color: #8fa9b5; font-size: .9rem; margin-top: 8px; }
.ftr-sec { border-bottom: 1px solid rgba(255,255,255,.12); }
.ftr-head { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; color: #fff; font-weight: 700; font-size: 1rem; padding: 16px 0; cursor: pointer; min-height: 0; }
.ftr-head .chev { transition: transform .2s; color: #8fa9b5; }
.ftr-sec.open .ftr-head .chev { transform: rotate(180deg); }
.ftr-links { display: none; padding: 0 0 16px; }
.ftr-sec.open .ftr-links { display: block; }
.ftr-links a { display: block; color: #a9c0c9; text-decoration: none; padding: 7px 0; font-size: .95rem; }
.ftr-links a:active { color: #fff; }
.ftr-bottom { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 18px 20px 28px; font-size: .85rem; color: #8fa9b5; }
.ftr-legal a { color: #c8d9e0; text-decoration: none; margin: 0 10px; }
@media (min-width: 1100px) {
  .ftr-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 24px; padding: 36px 40px 8px; }
  .ftr-brand { text-align: left; padding: 0; }
  .ftr-sec { border-bottom: 0; }
  .ftr-head { cursor: default; padding: 0 0 12px; font-size: .95rem; min-height: 0; }
  .ftr-head .chev { display: none; }
  .ftr-links { display: block; padding: 0; }
  .ftr-links a { padding: 5px 0; font-size: .9rem; }
  .ftr-links a:hover { color: #fff; }
  .ftr-bottom { flex-direction: row; justify-content: space-between; padding: 20px 40px 30px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; }
}

/* ---- Simple info pages (about / contact / terms / privacy) ---- */
.info-page { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }
.info-page h1 { font-size: 1.5rem; margin-bottom: 16px; }
.info-page h2 { font-size: 1.1rem; margin: 26px 0 10px; color: #0e2a38; }
.info-page p { line-height: 1.7; margin-bottom: 14px; color: #33444d; }

/* Toggle switch (e.g. sponsored placement on/off): on = knob right + green,
   off = knob left + grey. Markup: <input type=checkbox hidden><span class=tgl>… */
.tgl{width:48px;height:28px;border-radius:14px;background:#cbd5e1;position:relative;transition:background .2s;flex:0 0 auto;display:inline-block}
.tgl-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
input:checked + .tgl{background:#22c55e}
input:checked + .tgl .tgl-knob{left:23px}

/* === BPBTN20261118 — Astryx Button unification (ButlerPass) ===
   Spec: Astryx core 0.7.17 Button (see reviews/2026-11-18-astryx-adoption-shortlist.md §1).
   Tiers sm 28 / md 32 / lg 36, padding 8px 12px, 14px/500, radius 10px,
   hover +5% overlay, active +10% overlay + scale(.98) on fine pointers,
   disabled opacity .5, focus ring 2px offset 3px, coarse-pointer hit area 44px.
   Brand colors (aqua / sun / danger) unchanged. Pill-shaped controls
   (nav language select, chips, pills, opt-cards) keep their shape. */

/* --- Base: primary buttons -> lg 36 --- */
button, .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .125s cubic-bezier(.24, 1, .4, 1),
              box-shadow .125s cubic-bezier(.24, 1, .4, 1),
              transform .125s cubic-bezier(.24, 1, .4, 1);
}
/* Keep big selectable cards / tiles out of the button geometry. */
.opt-card { display: block; text-align: left; }
.linklike { min-height: 0; }
.lang-toggle button { min-height: 0; }

/* --- States: one overlay system for every variant --- */
@media (hover: hover) {
  button:hover, .btn:hover {
    background-color: var(--green);
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .05);
    transform: none;
  }
  .btn-ghost:hover, .btn.secondary:hover {
    background-color: var(--card);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .05);
  }
  .btn-danger:hover, .btn.danger:hover {
    background-color: var(--danger);
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .05);
  }
  .btn-sun:hover {
    background-color: var(--sun);
    color: var(--sun-ink);
    box-shadow: 0 10px 22px -8px rgba(255, 197, 61, .7), inset 0 0 0 999px rgba(0, 0, 0, .05);
    transform: none;
  }
}
button:active, .btn:active { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .10); }
.btn-sun:active { box-shadow: 0 10px 22px -8px rgba(255, 197, 61, .7), inset 0 0 0 999px rgba(0, 0, 0, .10); }
@media (hover: hover) and (pointer: fine) {
  button:active, .btn:active { transform: scale(.98); }
}
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  button, .btn { transition: none; }
  button:active, .btn:active { transform: none; }
}

/* Focus ring: keyboard only. */
button:focus-visible, .btn:focus-visible, a:focus-visible, .lang-select:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

/* Loading: spinner fades in only after 310ms (anti-flicker), size unchanged. */
.btn[aria-busy="true"], button[aria-busy="true"], .btn.btn-loading {
  color: transparent !important;
  position: relative;
  pointer-events: none;
}
.btn[aria-busy="true"]::before, button[aria-busy="true"]::before, .btn.btn-loading::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: bpbtn-spin .7s linear infinite, bpbtn-show .01s linear .31s forwards;
}
.btn-ghost[aria-busy="true"]::before, .btn.secondary[aria-busy="true"]::before {
  border-color: rgba(8, 113, 132, .25); border-top-color: var(--green-dark);
}
@keyframes bpbtn-spin { to { transform: rotate(360deg); } }
@keyframes bpbtn-show { to { opacity: 1; } }

/* --- Small tier -> sm 28 --- */
.btn.small, button.small {
  min-height: 28px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
}

/* --- Top bar: Astryx md 32 + fit at 393px (fixes clipped Sign Up) --- */
#topbar { gap: .4rem; padding: .55rem .75rem; }
#topbar .brand { font-size: 1.08rem; gap: .4rem; }
#topbar .brand img { width: 30px; height: 30px; }
#mainnav { gap: .25rem; }
#mainnav a, #mainnav .nav-link-btn {
  font-size: 14px;
  font-weight: 500;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
}
#mainnav .nav-cta { border-radius: 10px; padding: 6px 12px; min-height: 32px; }
#mainnav .nav-chip { min-height: 32px; }
.lang-select {
  min-height: 32px;
  font-size: 14px;
  padding: .3rem .5rem;
  display: inline-flex;
  align-items: center;
}
.nav-bell { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }

/* EN/ES top bars are wider (longer labels): compact the same top bar a
   notch under those languages so Sign Up also fits without the scroll
   strip. ES labels are longest; its strip still scrolls by design. */
:lang(en) #topbar, :lang(es) #topbar { gap: .3rem; }
:lang(en) #topbar .brand, :lang(es) #topbar .brand { font-size: .95rem; }
:lang(en) .lang-select, :lang(es) .lang-select { font-size: 13px; padding: .3rem .35rem; max-width: 5.4rem; }
:lang(en) #mainnav a, :lang(en) #mainnav .nav-link-btn { padding-left: 10px; padding-right: 10px; }
:lang(es) #mainnav a, :lang(es) #mainnav .nav-link-btn { font-size: 13px; padding-left: 9px; padding-right: 9px; }

/* Schedule month-steppers join md 32. */
.sched-monthnav button { min-height: 32px; font-size: 14px; font-weight: 500; border-radius: 10px; padding: 6px 12px; }

/* Coarse pointers: 44px hit area around small / icon-only controls
   (visual size unchanged). */
@media (pointer: coarse) {
  .btn.small, button.small, .nav-bell, .sched-monthnav button, .photo-delbtn {
    position: relative;
  }
  .btn.small::after, button.small::after, .nav-bell::after, .sched-x::after,
  .sched-monthnav button::after, .photo-delbtn::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
  }
  .photo-delbtn { min-height: 28px; display: inline-flex; align-items: center; }
}
