/* Not Boring Coffee — Figma iPhone 16 frames (384-16320) */
:root {
  --ink: #000;
  --accent: #000;
  --bg: #fff;
  --display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-width: none; -ms-overflow-style: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html::-webkit-scrollbar { display: none; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
html, body, .phone, a, button, input, img, svg { touch-action: manipulation; }
body {
  overflow-anchor: none;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* Landing: wordmark x 78.32, y 73, 237.57 x 151 on 393 */
.phone {
  width: 100%;
  max-width: 393px;
  margin: 0 auto;
  padding: calc(73px + env(safe-area-inset-top, 0px)) 19px 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phone.product { padding-bottom: 12px; }
.phone::-webkit-scrollbar { display: none; }

.brand {
  display: block;
  width: 238px;
  height: auto;
  margin: 0 auto 16px;
}

/* Tagline: SF Pro Medium 16 / 19, -0.5px, #1F1F1F 60%, center */
.tagline {
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: -0.5px;
  color: rgba(31, 31, 31, 0.6);
  text-align: center;
  margin: 0 auto 36px;
  width: 272px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  display: block;
}
/* Grid label: SF Pro Medium 14, -0.8px, #000 70%, center */
.card h2 {
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
}

/* Product page */
.phone.product {
  padding: calc(70px + env(safe-area-inset-top, 0px)) 19px 12px;
  text-align: left;
}
.phone.product > a:not(.ig) {
  display: block;
}
.logo {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 8px;
}
.hero {
  width: 86%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  margin: 4px auto 8px;
}
/* Title: SF Pro Bold 21, -0.8px, #000, center, fill 355 */
.phone.product h1 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 25px;
  margin: 0 0 6px;
  text-align: center;
}
/* Subtitle: SF Pro Regular 15 / 19, -0.5px, #5E5E5E, center */
.sub {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: -0.5px;
  color: #5E5E5E;
  margin: 0 auto 14px;
  text-align: center;
  max-width: 280px;
}
/* Title + subtitle bounded container: centered, constrained so long titles wrap */
.titlebox {
  max-width: 240px;
  margin: 0 auto;
  text-align: center;
}
.titlebox .sub {
  max-width: none;
}

/* IG pill: SF Pro Semibold 12 / 20, -0.24px, #2D2D2D, light stroke, hug */
.ig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  height: 34px;
  margin: 0 auto 28px;
  padding: 0 10px 0 8px;
  border: none;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.24px;
  color: #2D2D2D;
  box-sizing: border-box;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.ig svg { color: #2D2D2D; flex: 0 0 auto; display: block; }
.ig .ig-glyph { width: 14px; height: 14px; }
.ig .ig-chevron { width: 10px; height: 10px; color: #B0B0B0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #1a1a1a;
  color: #fff;
  font-family: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 40;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.block:last-child { margin-bottom: 0; }
.block { margin: 0 0 22px; text-align: left; }
/* Recipe / Ingredients heading: SF Pro Medium 19, -0.8px, left; copy icon gap 7 */
.block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--text);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 23px;
  margin: 0 0 7px;
  text-align: left;
  color: #000;
}
.block h3 .copy {
  display: inline-flex;
  color: #888;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
/* Recipe body: SF Pro Regular 18, -0.5px, #6B6B6B, left */
.block p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #6B6B6B;
  text-align: left;
}

/* Icon placeholder: shimmering gray until the generated icon lands */
.icon-shimmer {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(100deg, #ececec 38%, #f7f7f7 50%, #ececec 62%);
  background-size: 220% 100%;
  animation: icon-shimmer 1.5s ease-in-out infinite;
  display: block;
}
.icon-shimmer.hero {
  width: 86%;
  max-width: 280px;
  margin: 4px auto 8px;
}
@keyframes icon-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* page transition shimmer */
.page-shimmer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.page-shimmer .psh-logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.page-shimmer.on { opacity: 1; }
.page-shimmer .psh-logo svg { width: 96px; height: auto; display: block; }
.page-shimmer .psh-logo, #ptr .ptr-logo { overflow: hidden; }
.page-shimmer .psh-logo::after, #ptr .ptr-logo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 250%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(-110%);
  will-change: transform;
  animation: psh-sheen 1.6s linear infinite;
  animation-delay: -.3s;
}
@keyframes psh-sheen {
  0%, 18.75% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
.psk {
  background: linear-gradient(100deg, #ececec 38%, #f7f7f7 50%, #ececec 62%);
  background-size: 220% 100%;
  animation: icon-shimmer 1.5s ease-in-out infinite;
  border-radius: 18px;
}
.psk-home, .psk-drink { display: none; }
.page-shimmer[data-kind="home"] .psk-home {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%;
}
.page-shimmer[data-kind="drink"] .psk-drink {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 86%; max-width: 340px;
}
.psk-logo { width: 132px; height: 84px; }
.psk-tag { width: 190px; height: 12px; border-radius: 6px; }
.psk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  width: 100%; max-width: 340px; margin-top: 10px;
}
.psk-card { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.psk-sq { width: 100%; aspect-ratio: 1; }
.psk-cardline { width: 70%; height: 12px; border-radius: 6px; }
.psk-hero { width: 86%; max-width: 280px; aspect-ratio: 1; }
.psk-titleline { width: 45%; height: 18px; border-radius: 9px; }
.psk-subline { width: 65%; height: 13px; border-radius: 7px; }
.psk-chip { width: 110px; height: 26px; border-radius: 13px; margin-bottom: 8px; }
.psk-sec { width: 30%; height: 15px; border-radius: 8px; align-self: flex-start; margin-top: 10px; }
.psk-line { width: 100%; height: 13px; border-radius: 7px; align-self: flex-start; }
.psk-line.short { width: 55%; }

/* Account page */
.account-footer { text-align: center; margin: 44px 0 0; }
.account-footer a {
  font-size: 14px; font-weight: 500; letter-spacing: -0.5px;
  color: rgba(31, 31, 31, 0.6);
  border-bottom: 1px solid rgba(31, 31, 31, 0.2); padding-bottom: 1px;
}
.auth { max-width: 320px; margin: 24px auto 0; text-align: center; }
.auth h1 {
  font-family: var(--display); font-size: 21px; font-weight: 700;
  letter-spacing: -0.8px; line-height: 25px; margin: 0 0 6px;
}
.field { margin: 22px auto 0; max-width: 280px; text-align: left; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: -0.24px; color: #2D2D2D; margin-bottom: 6px;
}
.field input {
  width: 100%; height: 46px; border: 1.5px solid #e4e4e4; border-radius: 12px;
  padding: 0 14px; font: inherit; font-size: 16px; letter-spacing: -0.3px;
  outline: none; background: #fff; color: var(--ink);
}
.field input:focus { border-color: #000; }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 280px; height: 46px; margin: 18px auto 0;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--text); font-size: 15px; font-weight: 600;
  letter-spacing: -0.3px; cursor: pointer;
}
.btn[disabled] { opacity: 0.4; }
.btn.ghost { background: #f1f1f1; color: #2D2D2D; }
.auth-msg {
  max-width: 280px; margin: 12px auto 0; font-size: 13px;
  color: #c0392b; text-align: center; min-height: 18px;
}
.auth .block { margin-top: 26px; }
.auth .block p { text-align: center; }
.auth .block h3 { justify-content: center; }
.code-box {
  font-family: var(--display); font-size: 30px; font-weight: 700;
  letter-spacing: 4px; text-align: center; background: #f7f7f7;
  border-radius: 14px; padding: 18px 0; margin: 14px auto; max-width: 280px;
}
.muted { color: #6B6B6B; font-size: 15px; letter-spacing: -0.5px; text-align: center; }

/* Desktop (mobile above stays exactly as-is) */
@media (min-width: 900px) {
  .phone { max-width: 1120px; padding: 96px 48px 80px; }
  .brand { width: 320px; margin-bottom: 20px; }
  .tagline { font-size: 18px; line-height: 22px; width: auto; margin-bottom: 56px; }
  .grid { grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 44px; }
  .card h2 { font-size: 15px; }
  .account-footer { margin-top: 64px; }
  .account-footer a { font-size: 15px; }

  .phone.product { max-width: 760px; padding: 96px 48px 40px; }
  .phone.product .logo { width: 110px; margin-bottom: 18px; }
  .hero { max-width: 360px; margin: 12px auto 16px; }
  .phone.product h1 { font-size: 30px; line-height: 36px; }
  .titlebox { max-width: 420px; }
  .sub { font-size: 16px; line-height: 21px; max-width: 420px; }
  .ig { height: 38px; font-size: 13px; padding: 0 14px 0 10px; }
  .block h3 { font-size: 21px; line-height: 26px; }
  .block p { font-size: 17px; }

  .auth { margin-top: 48px; }
  .auth h1 { font-size: 30px; line-height: 36px; }

  .page-shimmer .psk-home { gap: 20px; }
  .psk-logo { width: 200px; height: 127px; }
  .psk-tag { width: 240px; height: 14px; }
  .psk-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; gap: 28px; }
  .psk-hero { max-width: 340px; }
}

/* Desktop drink page: two-column per mockup */
@media (min-width: 900px) {
  .phone.product { max-width: none; padding: 40px 56px; position: relative; }
  .phone.product .logo { position: absolute; top: 40px; left: 56px; width: 96px; margin: 0; }
  .phone.product .split {
    display: flex; align-items: center; gap: 8px;
    min-height: calc(100svh - 160px);
  }
  .split-left { flex: 0 0 50%; transform: translateY(62px); }
  .split-left .hero { width: 100%; max-width: 600px; margin: 0; }
  .split-right { flex: 1; max-width: 560px; text-align: left; transform: translateY(-8px); }
  .split-right .titlebox { max-width: none; margin: 0; text-align: left; }
  .split-right h1 { font-size: 30px; line-height: 36px; margin: 0 0 10px; text-align: left; }
  .split-right .sub { font-size: 18px; line-height: 24px; max-width: 380px; margin: 0 0 22px; text-align: left; }
  .split-right .ig { margin: 0 0 64px; }
  .split-right .block h3 { font-size: 24px; line-height: 28px; }
  .split-right .block p { font-size: 18px; line-height: 26px; max-width: 480px; }
  .split-right .block { margin: 0 0 34px; }
}

@media (min-width: 900px) {
  .phone.product .split-right .titlebox h1 { text-align: left; }
  .phone.product .split-right .titlebox .sub { text-align: left; }
}

/* Admin playbook flow editor */
.auth.admin { max-width: 640px; text-align: left; }
.auth.admin h1, .auth.admin .sub { text-align: left; }
.flow-node { border: 1px solid #e8e8e8; border-radius: 16px; padding: 16px; background: #fff; }
.flow-node .node-title { width: 100%; box-sizing: border-box; border: none; border-bottom: 1px solid #eee; padding: 2px 2px 10px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.3px; outline: none; }
.flow-node .node-rules { width: 100%; border: 1px solid #eee; border-radius: 10px; margin-top: 10px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; outline: none; box-sizing: border-box; }
.flow-node .node-del { background: none; border: none; color: #b00; font-size: 13px; padding: 8px 0 0; cursor: pointer; }
.flow-arrow { text-align: center; font-size: 20px; color: #999; margin: 6px 0; }
.auth.admin .btn { margin-top: 14px; }
.auth.admin .btn.ghost { margin-right: 8px; }

/* Save pill, sticky save bar, bottom sheet */
.phone.product { padding-bottom: 110px; }
.pillrow { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 0 0 28px; }
.pillrow .ig { margin: 0; }
.savepill { display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; border: none; border-radius: 999px; background: #f1f1f1; font-family: inherit; font-size: 12px; font-weight: 600; color: inherit; cursor: pointer; }
.savepill .save-glyph { width: 13px; height: 13px; color: #2D2D2D; }
.savepill.saved { background: #2D2D2D; color: #fff; }
.savepill.saved .save-glyph { color: #fff; }
.savebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; width: min(343px, calc(100% - 48px)); height: 52px; border: none; border-radius: 999px; background: #f1f1f1; font-family: inherit; font-size: 15px; font-weight: 600; color: inherit; cursor: pointer; z-index: 40; }
.savebar.saved { background: #2D2D2D; color: #fff; }
/* clip layer: off-canvas fixed sheets must not extend iOS scroll overflow */
.sheet-clip { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 60; transform: translateZ(0); }
.sheet-clip .sheet { pointer-events: auto; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 50; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet { display: none; position: fixed; left: 0; right: 0; bottom: 0; max-width: 393px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 20px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .28s ease; z-index: 60; box-shadow: 0 -8px 32px rgba(0,0,0,.12); }
.sheet.on { transform: translateY(0); }
.sheet.kb { top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; border-radius: 20px; max-height: 60vh; max-height: 60svh; overflow-y: auto; transition: top .28s ease, transform .28s ease; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #e3e3e3; margin: 2px auto 18px; }
.sheet h3 { font-size: 19px; letter-spacing: -0.4px; margin: 0 0 6px; }
.sheet .sheet-sub { margin: 0; color: #8a8a8a; font-size: 14px; letter-spacing: -0.2px; }
.sheet .field { margin: 18px 0 0; max-width: none; }
.sheet .field input { height: 50px; border-radius: 14px; }
.sheet .btn { width: 100%; max-width: none; height: 50px; margin-top: 14px; }
.sheet .btn.ghost { margin-top: 10px; }
.sheet .auth-msg { max-width: none; margin-top: 10px; }
/* X-style profile preview sheet */
.ps-banner { margin: -35px -20px 0; height: 36.284vw; max-height: 143px; background: linear-gradient(135deg, #ece7de, #d9d2c6) center / cover no-repeat; border-radius: 20px 20px 0 0; }
.ps-body { padding: 0 2px; }
.ps-avatar { width: 68px; height: 68px; border-radius: 50%; border: 3px solid #fff; background: #f1f1f1; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #b5b5b5; margin-top: -34px; position: relative; }
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-avatar svg { width: 30px; height: 30px; }
.ps-name { display: block; font-size: 18px; letter-spacing: -0.3px; margin-top: 8px; }
.ps-handle { display: block; font-size: 14px; color: #8a8a8a; margin-top: 1px; }
.ps-bio { font-size: 14px; color: #444; line-height: 1.5; margin: 10px 0 0; white-space: pre-line; }
.ps-joined { display: flex; align-items: center; gap: 5px; color: #777; font-size: 13px; margin-top: 10px; }
.ps-joined svg { width: 14px; height: 14px; flex: none; }
.ps-counts { display: flex; gap: 16px; margin-top: 10px; font-size: 13.5px; color: #777; }
.ps-counts b { color: #000; font-weight: 700; margin-right: 3px; }
.ps-goto { display: block; text-align: center; background: #f1f1f1; color: #000; font-weight: 700; font-size: 15px; letter-spacing: -0.2px; border-radius: 999px; padding: 14px 16px; margin-top: 18px; text-decoration: none; }
.ps-goto:active { background: #e6e6e6; }
.ps-skel { padding-bottom: 4px; }
.psk { background: #ececec; border-radius: 8px; position: relative; overflow: hidden; }
.psk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: translateX(-100%); animation: psk-sheen 1.4s ease-in-out infinite; }
@keyframes psk-sheen { to { transform: translateX(100%); } }
.psk-banner { margin: -35px -20px 0; height: 36.284vw; max-height: 143px; border-radius: 20px 20px 0 0; }
.psk-avatar { width: 68px; height: 68px; border-radius: 50%; border: 3px solid #fff; margin-top: -34px; position: relative; }
.psk-btn { height: 47px; border-radius: 999px; margin-top: 18px; }

/* Saved drinks grid + public profile page */
.savedgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.saved-item { display: block; text-align: center; }
.saved-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; border-radius: 12px; }
.saved-item span { display: block; font-size: 11px; line-height: 14px; margin-top: 4px; color: #555; }
.profile-page { max-width: 393px; margin: 0 auto; }
.p-banner-wrap { position: relative; margin: calc(-73px - env(safe-area-inset-top, 0px)) -19px 0; }
.p-banner { position: relative; height: 36.284vw; max-height: 143px; background: linear-gradient(135deg, #ece7de, #d9d2c6) center / cover no-repeat; overflow: hidden; }
.profile-head { text-align: left; margin-top: -42px; padding: 0 2px; position: relative; }
.p-avatar-row { display: flex; align-items: flex-end; justify-content: space-between; }
.profile-head .avatar { width: 84px; height: 84px; border-radius: 50%; background: #f1f1f1; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; overflow: hidden; flex: none; }
.profile-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 3px; }
.p-act { border: 1px solid #d8d8d8; border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: #2D2D2D; background: #fff; cursor: pointer; font-family: inherit; }
.p-act.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-act.ghost { background: #f1f1f1; border-color: #f1f1f1; }
.p-act-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d8d8d8; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #2D2D2D; padding: 0; }
.p-act-icon.ok { border-color: var(--accent); color: var(--accent); }
.profile-head h1 { margin: 10px 0 0; font-size: 21px; }
.profile-head .sub { margin: 2px 0 0; color: #777; text-align: left; max-width: none; }
.profile-head .bio { white-space: pre-line; color: #444; font-size: 14px; line-height: 1.5; margin: 10px 0 0; text-align: left; }
.p-meta { display: flex; gap: 14px; color: #777; font-size: 13px; margin: 10px 0 0; }
.p-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.p-counts { display: flex; gap: 16px; margin: 10px 0 0; font-size: 13.5px; color: #777; }
.p-counts b { color: #000; font-weight: 700; margin-right: 3px; }
.profile-page .block { margin-top: 28px; }

/* edit profile (X-style) */
.ep-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ep-topbar .t { font-weight: 700; font-size: 16px; }
.ep-cancel { background: none; border: 0; font-size: 15px; color: #2D2D2D; cursor: pointer; font-family: inherit; padding: 6px 0; }
.ep-save { width: auto; max-width: none; height: 34px; margin: 0; padding: 0 18px; font-size: 13.5px; }
.ep-banner { position: relative; margin: 0 -19px; height: 36.284vw; max-height: 143px; background: linear-gradient(135deg, #ece7de, #d9d2c6) center / cover no-repeat; overflow: hidden; }
.ep-cam { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ep-avatar-wrap { position: relative; margin: -42px 0 0 4px; width: 90px; height: 90px; }
.ep-avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: #f1f1f1; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-rows { margin-top: 16px; }
.ep-row { display: flex; gap: 16px; padding: 14px 2px; border-bottom: 1px solid #eee; align-items: flex-start; }
.ep-row label { width: 76px; flex: none; font-weight: 700; font-size: 14px; padding-top: 6px; }
.ep-row input, .ep-row textarea { flex: 1; border: 0; outline: 0; font-family: inherit; font-size: 14px; color: var(--accent); background: transparent; resize: none; line-height: 1.45; padding: 6px 0; }
.edit-page .auth-msg { text-align: center; }

@media (min-width: 900px) {
  .phone.product { padding-bottom: 120px; }
  .split-right .pillrow { justify-content: flex-start; margin: 0 0 64px; }
  .split-right .pillrow .ig { margin: 0; }
  .savepill { height: 38px; font-size: 13px; padding: 0 16px 0 12px; }
  .profile-page { max-width: 560px; }
}

/* Admin analytics */
.admin-div { border: none; border-top: 1px solid #eee; margin: 28px 0; }
.stats { display: flex; gap: 12px; margin: 14px 0 24px; }
.stat { flex: 1; border: 1px solid #e8e8e8; border-radius: 14px; padding: 14px 12px; text-align: center; background: #fff; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.5px; }
.stat span { font-size: 11px; color: #777; }
.stat.drill { cursor: pointer; }
.stat.active { border-color: #000; }
.per-row.sess { flex-direction: column; align-items: flex-start; gap: 2px; }
.per-row.sess .sess-sub { color: #999; font-size: 12px; }
.per-item .per-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
.per-item .per-row span { color: #777; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .phone:not(.product) { padding-top: 53px; }
}

#ptr { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 80; }
#ptr .ptr-logo { position: relative; width: 40px; transform: translateY(-56px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
#ptr .ptr-logo svg { width: 40px; height: auto; display: block; }

/* Fixed frosted top bar (drink pages) */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top, 0px)) 24px 14px; background: transparent; }
.topbar .tb-logo img { display: block; width: 50px; height: 50px; border-radius: 12px; }
.tb-profile { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 999px; background: #f1f1f1; color: #2D2D2D; flex: none; }
.tb-profile svg { width: 22px; height: 22px; }
/* Homepage scroll-revealed header */
.topbar.reveal { opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease; }
.topbar.reveal.on { opacity: 1; pointer-events: auto; transform: none; }
/* Loader tile on drink pages matches the rounded header tile */
.page-shimmer .psh-logo img { border-radius: 12px; display: block; }
