/* Cold Takes: a 1950s freezer look. Mint enamel, chrome trim, cherry red buttons, gold stars. */
:root {
  --cream: #F7F5EE;
  --blush: #CBE9DF;
  --pink: #F7D3D9;
  --cherry: #D62839;
  --cherry-dk: #B51F30;
  --aqua: #5FC2BC;
  --aqua-lt: #DCF1EE;
  --ink: #1D3B3F;
  --muted: #4B6669;
  --card: #FFFFFF;
  --track: #E2ECE8;
  --checker: #7CC4B6;
  --frost: #22766F;
  --gold: #F2B705;
  --flake-off: #FFFFFF;
  --scrim: rgba(29, 59, 63, 0.45);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCE2E5 30%, #8E9AA1 50%, #C9D0D4 68%, #F4F6F7 100%);
  --display: 'Righteous', 'Trebuchet MS', system-ui, sans-serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { background: var(--blush); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.app { max-width: 480px; margin: 0 auto; min-height: 100%; background: var(--cream); position: relative; padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 520px) { .app { border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); } }
.g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Awning + floor */
.awning { height: 10px; background: var(--chrome); border-bottom: 1.5px solid var(--ink); }
.scallop { display: none; }
.scallop.blush { display: block; height: 10px; background: var(--chrome); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.checker { height: 12px; background: repeating-conic-gradient(var(--checker) 0 25%, var(--card) 0 50%) 0 0 / 12px 12px; }

/* Type */
.logo { margin: 0; font-family: var(--script); font-weight: 400; font-size: 38px; line-height: 1.1; }
.top .logo { font-size: 48px; padding: 0 8px 4px 0; color: var(--card); background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px var(--ink); filter: drop-shadow(2px 2px 0 var(--ink)); }
.est { margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.sub { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; }

/* Controls */
.btn { min-height: 44px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; font-size: 15px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: var(--card); color: var(--ink); text-decoration: none; }
.btn-cherry { background: var(--cherry); color: #FFFFFF; }
.btn-cherry:hover { background: var(--cherry-dk); }
.btn-ghost:hover { background: var(--aqua-lt); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.icon-btn[aria-pressed="true"] { background: var(--aqua); }
.link { background: none; border: none; padding: 8px 0; font-weight: 800; font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.chip { flex-shrink: 0; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); font-weight: 800; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.tag { padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 800; background: var(--aqua-lt); }

.pop { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 3px 3px 0 var(--ink); }
.plain { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; }
button.plain, button.pop { text-align: left; cursor: pointer; width: 100%; }
button.pop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* Pint carton drawing */
.pint { position: relative; flex-shrink: 0; }
.pint .lid { position: absolute; left: 0; right: 0; top: 0; background: var(--lid); border: 2px solid var(--ink); border-radius: 10px 10px 4px 4px; }
.pint .tub { position: absolute; left: 7%; right: 7%; bottom: 0; background: var(--tub); border: 2px solid var(--ink); border-radius: 4px 4px 12px 12px; display: flex; align-items: center; justify-content: center; }
.pint .lbl { width: 64%; height: 32%; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pint.sm { width: 38px; height: 50px; } .pint.sm .lid { height: 11px; } .pint.sm .tub { top: 8px; } .pint.sm .lbl { font-size: 0; }
.pint.md { width: 56px; height: 72px; } .pint.md .lid { height: 14px; } .pint.md .tub { top: 11px; } .pint.md .lbl { font-size: 9px; }
.pint.lg { width: 118px; height: 150px; } .pint.lg .lid { height: 26px; border-width: 3px; border-radius: 14px 14px 6px 6px; } .pint.lg .tub { top: 20px; border-width: 3px; border-radius: 6px 6px 18px 18px; } .pint.lg .lbl { font-size: 15px; border-width: 3px; }

/* Star ratings */
.scoops { display: inline-flex; gap: 2px; align-items: center; }
.flake { position: relative; width: 16px; height: 16px; display: inline-block; flex-shrink: 0; color: var(--flake-off); }
.flake svg { position: absolute; left: 0; top: 0; width: 16px; height: 16px; display: block; }
.flake .ff { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; color: var(--gold); }
.flake svg path, .pick svg path { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }

/* Home */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 16px; background: var(--blush); border-bottom: 1.5px solid var(--ink); }
.hero { background: var(--pink); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero p { margin: 0; font-weight: 600; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 22px 8px; }
.carousel { display: flex; gap: 14px; overflow-x: auto; padding-block: 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.pcard { width: 128px; flex-shrink: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.pcard .art { height: 92px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.pcard .fl { font-size: 14px; font-weight: 800; line-height: 1.2; }
.brand { font-size: 12px; font-weight: 700; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 12px; }
.fitem { padding: 14px; display: flex; gap: 12px; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ink); }
.avatar.s { width: 32px; height: 32px; font-size: 11px; }
.fbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fbody p { margin: 0; font-size: 14px; }
.when { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 6px; }

/* Explore */
.page-head { padding-block: 18px 6px; display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; min-height: 48px; padding: 0 16px; }
.search input { border: none; outline: none; background: transparent; font: 600 16px var(--body); color: var(--ink); flex: 1; min-width: 0; }
.search:focus-within { outline: 3px solid var(--aqua); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.banner { margin-top: 12px; background: var(--aqua-lt); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14px; }
.results { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.row { padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .fl { font-weight: 800; line-height: 1.2; }
.empty { text-align: center; padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty p { margin: 0; color: var(--muted); font-weight: 600; }

/* Pint page */
.p-top { background: var(--blush); padding-block: 14px 0; display: flex; flex-direction: column; }
.p-top .bar { display: flex; justify-content: space-between; }
.p-top .pint { align-self: center; margin: 4px 0 18px; }
.p-info { padding-block: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.p-info h1 { margin: 0; font-size: 34px; line-height: 1.05; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rcard { margin-top: 16px; display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.rbig { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.rbig .num { font-family: var(--display); font-size: 34px; line-height: 1; }
.rbig .cap { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; text-align: center; }
.dist { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.dist .d { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dist .tr { flex: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.dist .fi { height: 100%; border-radius: 999px; background: var(--gold); }
.actions { display: flex; gap: 10px; padding-top: 16px; }
.actions .btn-cherry { flex: 1; min-height: 48px; }
.mine { margin-top: 12px; background: var(--aqua-lt); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who .scoops { margin-left: auto; }
.review p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.again { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--cherry); }

.nbox { overflow: hidden; }
.nbox summary { list-style: none; cursor: pointer; min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.nbox summary::-webkit-details-marker { display: none; }
.nbox summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 0; flex-shrink: 0; }
.nbox[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.nbox .nsum { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nbox[open] summary { border-bottom: 1.5px solid var(--ink); }
.nutri { padding: 14px 16px; display: flex; flex-direction: column; }
.seg.nutri-seg { margin: 0 0 12px; }
.cal { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 6px solid var(--ink); padding-bottom: 6px; font-weight: 800; font-size: 18px; }
.cal .display { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.nrow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1.5px solid var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.nnote { margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Diary */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.seg button { min-height: 44px; border: none; background: var(--card); font-weight: 800; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.month { margin: 22px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.entry { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.day { width: 40px; flex-shrink: 0; text-align: center; font-family: var(--display); font-size: 24px; line-height: 1; padding-top: 4px; }
.day small { display: block; font-family: var(--body); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.entry .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.entry .mid p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.entry-open { background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--ink); }
.entry-open:hover { text-decoration: underline; }
.list { display: flex; flex-direction: column; gap: 10px; }

/* Profile */
.me { display: flex; align-items: center; gap: 14px; padding-block: 18px 4px; }
.me .avatar { width: 64px; height: 64px; font-size: 18px; background: var(--aqua); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.stat { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-family: var(--display); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .v.word { font-family: var(--body); font-weight: 800; font-size: 20px; line-height: 1.3; padding-top: 4px; }
.stat .k { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.persona { background: var(--blush); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.persona-name { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--cherry); overflow-wrap: anywhere; }
.persona p { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.top4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.top4-names { margin: 10px 0 0; }
button.slot { cursor: pointer; font: inherit; padding: 0; width: 100%; }
button.slot.open { background: transparent; }
button.slot.open:hover { background: var(--aqua-lt); }
.row[disabled] { opacity: 0.5; cursor: not-allowed; }
.slot { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.slot.full { background: var(--blush); border: 2px solid var(--ink); cursor: pointer; }
.slot.open { border: 2px dashed var(--muted); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.note { margin-top: 22px; padding: 14px; font-size: 14px; }
.note p { margin: 0 0 8px; }
.confirm { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.confirm .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--card); border-top: 2px solid var(--ink); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); z-index: 30; }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 12px; background: repeating-conic-gradient(var(--checker) 0 25%, var(--card) 0 50%) 0 0 / 12px 12px; }
@media (min-width: 520px) { .tabbar { border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); } }
.tab { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 52px; padding: 2px 0; font-size: 11px; font-weight: 800; color: var(--ink); }
.tab .ic { width: 50px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.tab[aria-current="page"] .ic { background: var(--aqua); border-color: var(--ink); }
.tab-log { width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; background: var(--cherry); color: #FFFFFF; border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.tab-log:hover { background: var(--cherry-dk); }
.tab-log { position: relative; z-index: 1; }

/* Sheet */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 92%; overflow-y: auto; background: var(--cream); border: 2px solid var(--ink); border-bottom: none; border-radius: 28px 28px 0 0; z-index: 41; padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); animation: up 0.22s ease-out; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0.6; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .mid { flex: 1; min-width: 0; }
.sheet-head .fl { font-weight: 800; font-size: 17px; line-height: 1.2; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field > label, .field > .lab { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.picker { display: flex; gap: 10px; flex-wrap: wrap; }
.pick { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--muted); }
.pick.on { background: var(--card); color: var(--gold); }
.pick svg { width: 24px; height: 24px; }
.pick-say { font-weight: 800; min-height: 22px; }
.err { color: var(--cherry-dk); font-weight: 800; font-size: 14px; margin: 0; }
textarea, input[type="date"] { font: 600 16px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 800; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--cherry); }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn-cherry { flex: 1; min-height: 50px; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); max-width: 440px; background: var(--ink); color: var(--cream); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; z-index: 50; }
.toast button { background: var(--aqua); color: var(--ink); border: none; border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 800; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } button.pop:active { transform: none; } }

/* ---- Additions for the live site ---- */
a { color: inherit; }
.auth-tabs { margin-top: 18px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { font: 600 16px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; width: 100%; min-height: 48px; }
.hint { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.ok { color: var(--frost); font-weight: 800; font-size: 14px; margin: 0; }
.loading { padding: 80px 16px; text-align: center; font-weight: 800; color: var(--muted); }
.handle { font-size: 14px; font-weight: 700; color: var(--muted); margin: 2px 0 0; }
.who-link { background: none; border: none; padding: 0; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.who-link:hover { text-decoration: underline; }
.me-actions { margin-left: auto; }
.request-link { display: flex; justify-content: center; padding: 18px 0 4px; }
.setup { max-width: 420px; margin: 0 auto; padding: 60px 16px; }
.setup code { background: var(--aqua-lt); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
button[disabled] { opacity: 0.6; cursor: wait; }
.carousel .pcard { width: 136px; }
.carousel { scroll-padding-inline: 16px; }

/* ---- Photos ---- */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--card); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { position: relative; flex-shrink: 0; }
.avatar-btn { position: relative; padding: 0; border: none; background: none; cursor: pointer; border-radius: 50%; display: block; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--cherry); color: #FFFFFF; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.small-link { min-height: 32px; padding: 4px 0; font-size: 12px; }
.me-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.pint-photo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.pint-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pint-photo.sm { width: 42px; height: 50px; border-radius: 8px; }
.pint-photo.md { width: 70px; height: 80px; }
.pint-photo.lg { width: 170px; height: 190px; border-width: 3px; border-radius: 18px; }
.p-top .pint-photo { align-self: center; margin: 4px 0 10px; }
.credit { align-self: center; margin: 0 0 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.p-top .bar { align-items: center; }
.photo-now { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .search { flex: 1; min-width: 0; }
.search-row .btn { flex-shrink: 0; min-height: 48px; }
.off-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.off-card { padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.off-card img { width: 100%; height: 120px; object-fit: contain; background: #FFFFFF; border-radius: 10px; }
.off-card .fl { font-weight: 800; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.off-card .brand { overflow-wrap: anywhere; }
.off-card .btn { min-height: 40px; font-size: 13px; padding: 0 10px; margin-top: auto; }
.upload-btn { align-self: flex-start; }
.field > label.upload-btn { text-transform: none; letter-spacing: 0; font-size: 15px; }
.auto-box { padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.auto-box .sheet-actions { margin-top: 10px; flex-wrap: wrap; }
.auto-bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.auto-bar .fi { height: 100%; background: var(--gold); border-radius: 999px; }
.auto-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.auto-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.auto-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--cherry); flex-shrink: 0; }
.auto-row img { width: 48px; height: 56px; object-fit: contain; background: #FFFFFF; border-radius: 8px; flex-shrink: 0; }
.auto-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auto-row .fl { font-weight: 800; }
.auto-box > .fl { font-weight: 800; font-size: 17px; }
.batch-drop { transition: box-shadow .15s, background .15s; }
.batch-drop.drag-on { box-shadow: 0 0 0 3px var(--cherry) inset; }
.batch-drop .upload-btn { align-self: flex-start; }
.batch-drop .sheet-actions .btn, .kr-box .sheet-actions .btn { white-space: nowrap; }
.batch-row { cursor: default; align-items: flex-start; }
.batch-row img { width: 56px; height: 66px; }
.batch-row .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-pick { font: inherit; font-weight: 700; width: 100%; padding: 7px 8px; border-radius: 10px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); min-height: 40px; }
.batch-row .bad { color: var(--cherry); font-weight: 700; }
.batch-row .ok { color: #2E7D4F; font-weight: 800; }
.batch-row.is-saved { opacity: .75; }

/* Admin: add pints from Kroger */
.kr-chips { padding: 4px 0 2px; flex-wrap: wrap; overflow: visible; }
.kr-box .search-row { margin-top: 4px; }
.kr-msg { font-weight: 700; }
.kr-row { cursor: default; align-items: flex-start; }
.kr-row > input[type="checkbox"] { margin-top: 20px; }
.kr-row img, .kr-noimg { width: 56px; height: 66px; }
.kr-noimg { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--track); border-radius: 8px; flex-shrink: 0; }
.kr-row.is-off { opacity: .55; }
.kr-row.is-saved { opacity: .8; }
.kr-check { width: 22px; flex-shrink: 0; margin-top: 20px; color: #2E7D4F; font-weight: 900; text-align: center; }
.kr-name { font: 800 15px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 9px; width: 100%; min-height: 40px; }
.kr-fam { font: 700 13px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 6px; align-self: flex-start; margin-top: 2px; }
.kr-desc { font-size: 12px; opacity: .8; }
.kr-tag { color: var(--frost); font-weight: 800; }
.kr-row .bad { color: var(--cherry); font-weight: 700; }
.kr-row .ok { color: #2E7D4F; font-weight: 800; }
.kr-pickbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.kr-pickbar .btn[disabled] { opacity: .5; cursor: default; }
.kr-brand-head { margin: 10px 0 0; font: 400 20px var(--display); color: var(--ink); }
.kr-brand-head span { font: 800 13px var(--body); color: var(--muted); margin-left: 4px; }
/* Admin: requests + nutrition */
.req-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--cherry); color: #fff; font-size: 12px; font-weight: 800; vertical-align: middle; }
.req-row { cursor: default; }
.req-note { font-style: italic; }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.req-actions .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.req-row .ok, .nut-row .ok { color: #2E7D4F; font-weight: 800; }
.nut-row { align-items: flex-start; }
.nut-row > input[type="checkbox"] { margin-top: 4px; }
.nut-nums { color: var(--ink); font-weight: 800; }
.nut-row .bad, .req-box .bad { color: var(--cherry); font-weight: 700; }
.nut-row.is-saved { opacity: .8; }
.ningr summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--muted); margin-top: 8px; }
.nbox .ningr summary { min-height: 0; padding: 0; display: block; font-weight: 800; }

/* ---- Sharing, social, accounts ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.take-acts { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1.5px solid transparent; background: none; color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer; }
.act:hover { background: var(--aqua-lt); border-color: var(--ink); color: var(--ink); }
.act.on { color: var(--cherry); }
.feed-seg { margin-top: 0; }
.p-desc { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.p-meta { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.entry-btns { display: flex; flex-direction: column; gap: 6px; }
.follow-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.fcount { font-size: 14px; font-weight: 700; color: var(--muted); }
.fcount b { color: var(--ink); }
.follow-btn { min-height: 40px; padding: 0 22px; }
.me-icons { display: flex; gap: 8px; }
.me-icons .icon-btn { width: 40px; height: 40px; }
.prose { padding-top: 6px; padding-bottom: 20px; }
.prose .h2 { margin-top: 20px; font-size: 17px; }
.prose p, .prose li { font-size: 15px; font-weight: 600; line-height: 1.5; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin-bottom: 6px; }
.reset-box { margin-top: 16px; padding: 16px; }
.settings-list { display: flex; flex-direction: column; align-items: flex-start; margin-top: 18px; border-top: 1.5px solid var(--ink); padding-top: 8px; }
.settings-list .link { font-size: 15px; display: inline-flex; align-items: center; }
.link.danger { color: var(--cherry-dk); }
.del-copy { font-weight: 600; margin: 16px 0 0; }
.fine { margin-top: 12px; }
.fine a { font-weight: 800; }
.replies { display: flex; flex-direction: column; gap: 14px; padding: 16px 0 6px; }
.reply { display: flex; gap: 10px; align-items: flex-start; }
.reply-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reply-body p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.reply-form { margin-top: 14px; }
.reply-form textarea { min-height: 72px; }

/* Explore filters */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sel select { font: 800 13px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; min-height: 36px; padding: 0 30px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; max-width: 170px; }
.count { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.row-rate { display: flex; align-items: center; gap: 6px; }

/* Half-star picker */
.pick { position: relative; padding: 0; }
.pick > svg, .pick .pf svg { width: 26px; height: 26px; }
.pick .pf { position: absolute; left: 9px; top: 9px; width: 0; height: 26px; overflow: hidden; color: var(--gold); pointer-events: none; }
.pick .pf svg { display: block; }
.pick > svg { color: var(--flake-off); }
.pick .half { position: absolute; top: 0; bottom: 0; border: none; background: transparent; cursor: pointer; padding: 0; }
.pick .half.l { left: 0; width: 50%; border-radius: 24px 0 0 24px; }
.pick .half.r { right: 0; width: 50%; border-radius: 0 24px 24px 0; }
.pick .half.full { left: 0; right: 0; border-radius: 50%; }
.pick .half:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }

/* Desktop: a roomier layout */
@media (min-width: 900px) {
  .app, .tabbar { max-width: 760px; }
  .sheet { max-width: 560px; }
  .toast { max-width: 520px; }
  .results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results > .count, .results > .request-link, .results > .empty { grid-column: 1 / -1; }
  .carousel .pcard { width: 150px; }
  .p-info h1 { font-size: 40px; }
  .top4 { max-width: 560px; }
}

/* People + friends */
.explore-seg { margin-top: 12px; }
.person { gap: 10px; }
.person-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.person-open .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-open .fl { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-sm { min-height: 36px; padding: 0 16px; font-size: 13px; flex-shrink: 0; }
.count-link { background: none; border: none; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; }
.count-link:hover { text-decoration: underline; }
.follow-bar .link { min-height: 36px; }
.friend-card .art { position: relative; }
.friend-face { position: absolute; right: 6px; bottom: 6px; }
.friend-face .avatar { box-shadow: 0 0 0 2px var(--card); }
.friends-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.friends-bar .btn { min-height: 40px; }
.find-card { padding: 22px 16px; }

/* Activity bell and badges */
.top-btns { display: flex; gap: 10px; }
.bell { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--cherry); color: #FFFFFF; border: 2px solid var(--ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tab .ic { position: relative; }
.tab .ic .dot { position: absolute; top: 2px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--cherry); border: 1.5px solid var(--ink); }
.note { gap: 10px; align-items: flex-start; }
.note.unread { background: var(--aqua-lt); }
.note-face, .note-open { background: none; border: none; padding: 0; cursor: pointer; color: var(--ink); font: inherit; text-align: left; }
.note-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; min-height: 40px; justify-content: center; }
.note-text { font-size: 14px; overflow-wrap: anywhere; }
.note-open .when { margin-left: 0; }
.note-pint { flex-shrink: 0; }

/* Takes */
.like-pair { display: inline-flex; }
.like-pair .act:first-child { padding-right: 4px; }
.like-n { padding-left: 4px; min-width: 28px; }
.act.static { cursor: default; }
.act.static:hover { background: none; border-color: transparent; color: var(--muted); }
.act.more { margin-left: auto; }
.act[disabled] { opacity: 0.35; cursor: default; }
.when-link { background: none; border: none; padding: 0; cursor: pointer; }
.when-link:hover { text-decoration: underline; }
.take-pint { flex-shrink: 0; width: 48px; height: 56px; border-radius: 12px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.take-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px 4px; }
.take-bar .h2 { flex: 1; }
.take-pint-row { width: 100%; text-align: left; cursor: pointer; margin-top: 8px; }
.reply-acts { display: flex; gap: 14px; }
.reply-acts .link { min-height: 32px; padding: 4px 0; }
.friend-rates { display: flex; gap: 10px; overflow-x: auto; padding-block: 2px 6px; scrollbar-width: none; }
.friend-rates::-webkit-scrollbar { display: none; }
.friend-rate { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; cursor: pointer; color: var(--ink); }
.friend-rate .mid { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.friend-rate .fl { font-weight: 800; font-size: 13px; }
.tag-pop { background: var(--pink); }
.top4-cap { padding-top: 8px; }
.top4-cap > span { display: flex; flex-direction: column; font-size: 11px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.top4-cap b { font-weight: 800; }
.top4-cap .brand { font-size: 10px; }

/* Report sheet */
.reasons { border: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; }
.reasons .check input { width: 20px; height: 20px; }
.more-list { margin-top: 10px; }

/* Lists */
.list-cover { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 56px; height: 56px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--blush); }
.list-cover .lc { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.list-cover .lc .pint-photo, .list-cover .lc .pint { transform: scale(0.5); }
.list-cover .empty-lc { grid-column: 1 / -1; grid-row: 1 / -1; color: var(--muted); }
.list-card { width: 100%; text-align: left; cursor: pointer; color: var(--ink); }
.list-head { padding-block: 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.list-title { margin: 0; font-size: 32px; line-height: 1.1; overflow-wrap: anywhere; }
.list-desc { margin: 4px 0 0; font-weight: 600; }
.list-row { gap: 8px; }
.list-row .num { width: 26px; text-align: center; font-size: 20px; color: var(--cherry); flex-shrink: 0; }
.list-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.list-open .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-open .fl { font-weight: 800; line-height: 1.2; }
.list-note { font-size: 13px; font-style: italic; color: var(--muted); }
.list-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 92px; }
.list-btns .act { min-width: 34px; padding: 0 6px; font-size: 16px; }

/* Welcome */
.welcome { padding-block: 18px 8px; }
.wdots { display: flex; gap: 8px; margin: 8px 0 16px; }
.wdot { width: 34px; height: 8px; border-radius: 999px; background: var(--track); border: 1.5px solid var(--ink); }
.wdot.on { background: var(--cherry); }
.wdot.done { background: var(--aqua); }
.w-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.w-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.quick { align-items: center; }
.qstars { display: flex; gap: 2px; margin-top: 4px; }
.qstar { width: 36px; height: 36px; border: none; background: none; padding: 4px; cursor: pointer; color: var(--track); }
.qstar svg { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.5; }
.qstar.on { color: var(--gold); }

/* Pints Wrapped */
.wrap-card { width: 100%; text-align: left; cursor: pointer; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; background: var(--pink); color: var(--ink); }
.wrap-card > :not(svg) { grid-column: 1; }
.wrap-card svg { grid-column: 2; grid-row: 1 / 4; }
.wrap-hero { padding-block: 8px 4px; }
.wrap-logo { font-size: 44px; margin: 4px 0 0; color: var(--cherry); }
.wrap-years { padding: 12px 0 0; }
.wrap-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.wrap-num { padding: 14px; display: flex; flex-direction: column; }
.wrap-num .display { font-size: 40px; line-height: 1; color: var(--cherry); font-variant-numeric: tabular-nums; }
.wrap-num .k { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.wrap-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-top: 16px; }
.wrap-fact { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.wrap-fact .k { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.wrap-fact .fl { font-weight: 800; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.wrap-fams { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.wrap-fams .d { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.wrap-fams .wf-name { width: 100px; flex-shrink: 0; }
.wrap-fams .tr { flex: 1; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; border: 1.5px solid var(--ink); }
.wrap-fams .fi { height: 100%; background: var(--gold); }
.wrap-fams .wf-n { width: 24px; text-align: right; font-variant-numeric: tabular-nums; }

/* Nutrition */
.nrow.sub { padding-left: 16px; font-weight: 600; }
.nut-btns { flex-wrap: wrap; gap: 10px; }
.nut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.nut-in { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.nut-wide { grid-column: 1 / -1; }
.nut-in input, .nut-in select { font: 600 16px var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; min-height: 44px; width: 100%; text-transform: none; letter-spacing: 0; }
.nut-box-in { display: flex; align-items: center; gap: 6px; }
.nut-box-in i { font-style: normal; text-transform: none; color: var(--muted); }

/* Similar pints */
.sim-why { margin-top: auto; align-self: flex-start; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--aqua-lt); line-height: 1.4; }
.sim-card { gap: 5px; }

/* Quick wins */
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.top-join { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.top .logo { white-space: nowrap; }
.again-pct { margin: 10px 0 0; font-weight: 700; font-size: 14px; }
.again-pct b { color: var(--frost); font-size: 16px; }
.again-pct span { color: var(--muted); font-weight: 600; font-size: 13px; }
