 [data-brand-logo] { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
 .field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
 #brandLogoInput { padding: 9px; background: var(--paper); }

@media (max-width: 800px) {
  body { padding-bottom: 76px; overflow-x: hidden; }
  .topbar { height: 64px; padding: 0 16px; position: sticky; top: 0; z-index: 10; }
  .topbar nav { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: var(--paper); border-top: 1px solid var(--line); display: flex; justify-content: space-around; gap: 0; padding: 0 8px; overflow: visible; z-index: 20; }
  .nav-link { flex: 1; min-width: 0; padding: 23px 6px 19px; font-size: 11px; white-space: nowrap; }
  .nav-link.active { border-bottom: 0; border-top: 2px solid var(--gold); }
  .topbar #googleLogin { display: flex !important; max-width: 58%; min-height: 44px; border: 0; background: transparent; padding: 4px 0; text-align: left; cursor: pointer; }
  .profile > span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile small { overflow: hidden; text-overflow: ellipsis; }
  .view { padding: 32px 16px 54px; }
  .hero { gap: 28px; margin-bottom: 34px; }
  .hero h1, .page-heading h1 { font-size: clamp(37px, 11vw, 50px); }
  .membership-card { width: 100%; height: auto; min-height: 224px; padding: 24px; }
  .points { margin: 38px 0 34px; }
  .points strong { font-size: 45px; }
  .progress-card { padding: 18px; gap: 16px; margin-bottom: 42px; }
  .section-title { align-items: center; }
  .section-title h2 { font-size: 29px; }
  .reward { min-height: 195px; padding: 21px; }
  .reward-icon { margin-bottom: 22px; }
  button, .choice, .date-btn, .time-btn, .small-btn, .outline-btn { min-height: 44px; }
  input, select { font-size: 16px !important; }
  .panel { padding: 20px 16px; }
  .customer-result { align-items: flex-start; flex-wrap: wrap; }
  .customer-result .status { margin-left: 58px; }
  .activity-row, .admin-reward { grid-template-columns: 1fr auto; gap: 10px; }
  .activity-row > span:nth-child(2) { display: none; }
  dialog { padding: 30px 22px; width: calc(100vw - 24px); max-height: 85vh; overflow: auto; }
  #toast { width: calc(100% - 28px); text-align: center; bottom: 88px; }
  .booking-heading { margin-bottom: 24px; }
  .next-appointment { min-width: 0; width: 100%; padding: 16px; }
  .booking-grid { gap: 12px; }
  .booking-summary { padding: 22px 18px; position: static; }
  .barber-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .date-btn { min-width: 66px; scroll-snap-align: start; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .appointment-row { grid-template-columns: 54px 1fr auto; gap: 10px; }
  .appointment-row .status { grid-column: 2 / 4; justify-self: start; }
  .points-pending { font-size: 9px; color: var(--muted); text-align: right; }
  .availability-layout { grid-template-columns: 1fr !important; }
  .customize-grid { gap: 20px; }
  .mini-preview { min-height: 245px; }
}

@media (max-width: 520px) {
  .topbar .brand-mark { width: 36px; height: 36px; }
  .topbar #googleLogin { max-width: 72%; }
  .avatar { flex: 0 0 auto; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 14px; }
  .reward-foot { gap: 10px; }
  .reward button { min-width: 88px; }
  .work-grid { gap: 14px; }
  .page-heading { margin-bottom: 26px; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .date-strip { margin-right: -16px; padding-right: 16px; }
  .booking-summary .primary { position: sticky; bottom: 78px; z-index: 2; box-shadow: 0 8px 24px #0005; }
  .appointment-row { grid-template-columns: 48px 1fr; }
  .appointment-row > span:nth-child(3), .appointment-row .status { grid-column: 2; }
  .section-title.compact { align-items: flex-start; gap: 10px; }
  .section-title.compact > span { white-space: nowrap; }
  .week-row { grid-template-columns: 1fr !important; gap: 8px; }
  .hours { width: 100%; }
  .hours input { width: 100%; min-width: 0; }
}
