/* ============================================================
   Lyapp — phone mockups (recreated in HTML/CSS)
   ============================================================ */

.phone {
  --pw: 268px;
  width: var(--pw);
  flex: none;
  background: var(--navy-700);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone-screen {
  background: var(--off-white);
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  height: 540px;
  display: flex;
  flex-direction: column;
}
.phone.tall .phone-screen { height: 560px; }

/* notch */
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: var(--navy-700); border-radius: 14px; z-index: 6;
}

/* status bar */
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px 4px; font-size: 11px; font-weight: 700; color: var(--ink); }
.statusbar .dots { display: flex; gap: 3px; align-items: center; }
.statusbar .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: .8; display: block; }

/* scroll body */
.app { flex: 1; overflow: hidden; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.app.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--grey-2) transparent; -webkit-overflow-scrolling: touch; min-height: 0; }
.app.scroll::-webkit-scrollbar { display: block; width: 5px; }
.app.scroll::-webkit-scrollbar-thumb { background: var(--grey-2); border-radius: 5px; }
.app.scroll::-webkit-scrollbar-track { background: transparent; }
.app::-webkit-scrollbar { display: none; }

/* app header / profile */
.app-top { display: flex; align-items: center; gap: 10px; padding: 6px 2px 2px; }
.app-top .av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.app-top .nm { font-weight: 700; font-size: 13px; line-height: 1.2; }
.app-top .sub { font-size: 10.5px; color: var(--ink-soft); }
.app-top .bell { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.app-top .bell svg { width: 15px; height: 15px; }

.app-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 2px 0; }
.app-h { font-family: var(--font-head); font-weight: 600; font-size: 18px; padding: 4px 2px; }

/* task / list cards */
.tcard { background: #fff; border-radius: 16px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.tcard .ti { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; background: color-mix(in srgb, var(--navy) 8%, #fff); }
.tcard .tt { font-weight: 600; font-size: 12.5px; line-height: 1.15; }
.tcard .td { font-size: 10px; color: var(--ink-soft); }
.tcard .tr { margin-left: auto; color: var(--ink-soft); display: grid; place-items: center; }
.tcard .tr svg { width: 16px; height: 16px; }
.tcard.done .tt { color: var(--ink-soft); }
.tcard .check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pl-4); display: grid; place-items: center; color: var(--pl-4); }
.tcard .check svg { width: 12px; height: 12px; }

/* points row */
.duo { display: grid; grid-template-columns: 1fr 0.82fr; gap: 10px; }
.pbox { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); }
.pbox .pavs { display: flex; justify-content: space-around; }
.pbox .pav { text-align: center; }
.pbox .pav .av { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 5px; }
.pbox .pav b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.pbadge { background: color-mix(in srgb, var(--pl-1) 30%, #fff); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: center; box-shadow: var(--shadow-sm); }
.pbadge .star { width: 26px; height: 26px; border-radius: 50%; background: var(--pl-1); margin: 0 auto; display: grid; place-items: center; color: #fff; }
.pbadge .star svg { width: 15px; height: 15px; }
.pbadge small { font-size: 10px; font-weight: 600; line-height: 1.2; }

/* expense */
.exp { background: #fff; border-radius: 16px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.exp .ti { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--pl-3) 30%, #fff); display: grid; place-items: center; font-size: 15px; }
.exp .amt { margin-left: auto; font-weight: 700; font-size: 12.5px; color: var(--primary); }

/* bottom nav */
.bnav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.bnav .ni { width: 22px; height: 22px; color: var(--ink-soft); }
.bnav .ni.active { color: var(--primary); }
.bnav .add { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 8px 18px -6px var(--navy); transform: translateY(-6px); }
.bnav .add svg { width: 20px; height: 20px; }

/* week strip */
.week { display: flex; justify-content: space-between; padding: 4px 2px; }
.week .d { text-align: center; font-size: 10px; color: var(--ink-soft); display: grid; gap: 3px; justify-items: center; }
.week .d b { font-size: 12px; color: var(--ink); font-weight: 600; }
.week .d.on { color: var(--primary); }
.week .d.on .num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.week .d .num { width: 24px; height: 24px; display: grid; place-items: center; }

/* filter tabs */
.tabs { display: flex; gap: 6px; }
.tabs .tab { flex: 1; text-align: center; font-size: 10.5px; font-weight: 600; padding: 7px 4px; border-radius: 999px; background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.tabs .tab.on { background: var(--primary); color: var(--on-primary); }

/* form fields (new task) */
.field { background: #fff; border-radius: 13px; padding: 10px 12px; box-shadow: var(--shadow-sm); font-size: 11.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.field.row { justify-content: space-between; }
.field .big { color: var(--primary); font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.range { height: 5px; border-radius: 3px; background: var(--grey-2); position: relative; flex: 1; }
.range::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: var(--primary); border-radius: 3px; }
.range .knob { position: absolute; left: 55%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); transform: translate(-50%, -50%); }
.toggle { width: 34px; height: 19px; border-radius: 999px; background: var(--primary); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.assignees { display: flex; gap: -6px; padding: 2px; }
.assignees .av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.assignees .av:first-child { margin-left: 0; }
.form-actions { display: flex; gap: 8px; }
.form-actions .fb { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 11px; border-radius: 12px; }
.form-actions .fb.ghost { background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.form-actions .fb.solid { background: var(--primary); color: var(--on-primary); }

/* onboarding card */
.ob { background: #fff; border-radius: 16px; padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.ob .h { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.ob p { font-size: 11px; color: var(--ink-soft); margin: 0; }
.obtn { font-size: 11.5px; font-weight: 700; padding: 11px; border-radius: 12px; text-align: center; }
.obtn.solid { background: var(--primary); color: var(--on-primary); }
.obtn.soft { background: color-mix(in srgb, var(--navy) 8%, #fff); color: var(--primary); }
.sent { background: color-mix(in srgb, var(--pl-4) 32%, #fff); color: #38593a; border-radius: 12px; padding: 11px; text-align: center; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px; }
.sent svg { width: 15px; height: 15px; }

/* economy mini rows (compete phone) */
.erow { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 13px; padding: 9px 11px; box-shadow: var(--shadow-sm); font-size: 11.5px; }
.erow .av { width: 26px; height: 26px; border-radius: 50%; }
.erow .amt { margin-left: auto; font-weight: 700; }
.erow .amt.pos { color: #38593a; }
.erow .amt.neg { color: #9a5a4a; }

/* avatar color helpers */
.av { display: block; }
.av-1 { background: linear-gradient(135deg, #b89a52, #d9b96a); }
.av-2 { background: linear-gradient(135deg, #6f8cb0, #8fa9c9); }
.av-3 { background: linear-gradient(135deg, #b07f6a, #c79a86); }
.av-4 { background: linear-gradient(135deg, #7c9a76, #9fb89a); }
.av-5 { background: linear-gradient(135deg, #2c4f86, #4a6ea3); }
.av.txt { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; }

/* ============================================================
   Camera / receipt scanner screen
   ============================================================ */
.phone-screen.cam { background: #0f1c33; }
.statusbar.light { color: #fff; }
.statusbar.light .dots i { background: #fff; }

.cam-view { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background:
  radial-gradient(120% 90% at 50% 30%, #1c3056 0%, #0f1c33 70%); }
.cam-view .cam-hint { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: .01em; }

/* receipt being scanned */
.receipt { width: 150px; background: #fbfaf6; border-radius: 6px; padding: 14px 14px 18px; transform: rotate(-3deg); box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); position: relative; }
.receipt:before, .receipt:after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: radial-gradient(circle at 4px -1px, transparent 4px, #fbfaf6 4px) repeat-x; background-size: 8px 8px; }
.receipt:before { top: -6px; transform: rotate(180deg); }
.receipt:after { bottom: -6px; }
.receipt .r-logo { font-family: var(--font-head); font-weight: 600; font-size: 14px; text-align: center; color: #16294a; margin-bottom: 2px; }
.receipt .r-sub { text-align: center; font-size: 7px; color: #999; letter-spacing: .05em; margin-bottom: 9px; }
.receipt .r-line { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; font-family: "Space Grotesk", monospace; font-size: 8px; color: #2a2a2a; padding: 2.5px 0; border-bottom: 1px dashed #ddd6c8; }
.receipt .r-line span:first-child { overflow: hidden; text-overflow: ellipsis; }
.receipt .r-tot { display: flex; justify-content: space-between; font-family: "Space Grotesk", monospace; font-size: 10px; font-weight: 700; color: #16294a; margin-top: 7px; }

/* viewfinder corner brackets */
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; z-index: 4; }
.corner.tl { top: 38px; left: 30px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.tr { top: 38px; right: 30px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner.bl { bottom: 38px; left: 30px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corner.br { bottom: 38px; right: 30px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* scanning line */
.scanline { position: absolute; left: 30px; right: 30px; height: 2px; z-index: 5;
  background: linear-gradient(90deg, transparent, var(--pl-1), transparent);
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--pl-1) 70%, transparent);
  animation: scan 2.6s ease-in-out infinite; }
.scanline:after { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--pl-1) 16%, transparent)); }
@keyframes scan { 0%,100% { top: 60px; } 50% { top: calc(100% - 60px); } }

/* result sheet */
.cam-result { background: var(--off-white); border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; z-index: 8; padding: 12px 16px 16px; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.4); }
.cam-result .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--grey-2); margin: 0 auto 12px; }
.cam-result .res-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.cam-result .res-head .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--pl-4); display: grid; place-items: center; color: #fff; flex: none; }
.cam-result .res-head .ok svg { width: 10px; height: 10px; }
.res-rows { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.res-rows .rr { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink); }
.res-rows .rr.more { color: var(--ink-soft); font-size: 10px; }
.res-rows .rr b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-rows .rr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1.5px solid var(--line); }
.res-total span { font-size: 12px; font-weight: 700; white-space: nowrap; }
.res-total b { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-split { font-size: 10px; color: var(--ink-soft); margin: 4px 0 12px; }
.res-btn { background: var(--primary); color: var(--on-primary); text-align: center; font-size: 12px; font-weight: 700; padding: 12px; border-radius: 13px; }

/* ============================================================
   Community wall / oppslagstavle screen
   ============================================================ */
.app-h.with-sub { padding-bottom: 0; }
.app-sub { font-size: 10.5px; color: var(--ink-soft); padding: 0 2px 2px; margin-top: -2px; }

.post { background: #fff; border-radius: 15px; padding: 11px 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 7px; }
.post.mine { background: color-mix(in srgb, var(--navy) 7%, #fff); border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); }
.post .p-top { display: flex; align-items: center; gap: 8px; }
.post .p-top .av { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.post .p-who { line-height: 1.15; min-width: 0; }
.post .p-who .pn { font-size: 11.5px; font-weight: 700; }
.post .p-who .pt { font-size: 9px; color: var(--ink-soft); }
.flat-badge { margin-left: auto; flex: none; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--navy) 10%, transparent); color: var(--primary); }
.flat-badge.you { background: var(--primary); color: var(--on-primary); }
.post .p-body { font-size: 11.5px; line-height: 1.35; color: var(--ink); }
.post .p-foot { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--ink-soft); font-weight: 600; }
.post .p-foot .fi { display: inline-flex; align-items: center; gap: 4px; }
.post .p-foot .fi svg { width: 13px; height: 13px; }
.post .p-foot .fi.liked { color: var(--pl-3); }
.post .p-pile { display: flex; margin-left: auto; }
.post .p-pile .av { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; }
.post .p-pile .av:first-child { margin-left: 0; }

/* compose bar */
.compose { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow-sm); font-size: 11px; color: var(--ink-soft); }
.compose .send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.compose .send svg { width: 15px; height: 15px; }

/* ============================================================
   Photo-proof / points screen
   ============================================================ */
.proof-photo { position: relative; border-radius: 16px; overflow: hidden; height: 184px;
  background:
    repeating-linear-gradient(135deg, #e7eaf0 0 14px, #dfe3ec 14px 28px);
  box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.proof-photo .ph-label { font-family: "Space Grotesk", monospace; font-size: 10px; letter-spacing: .04em; color: #7e879a; background: rgba(255,255,255,.75); padding: 5px 10px; border-radius: 999px; }
.proof-photo .ph-cam { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 8px; background: rgba(15,28,51,.55); display: grid; place-items: center; color: #fff; }
.proof-photo .ph-cam svg { width: 14px; height: 14px; }
.proof-photo .ph-badge { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: #fff; background: var(--pl-4); padding: 5px 9px; border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.proof-photo .ph-badge svg { width: 12px; height: 12px; }

.points-pop { background: color-mix(in srgb, var(--pl-1) 26%, #fff); border-radius: 16px; padding: 13px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
.points-pop .pp-star { width: 40px; height: 40px; border-radius: 12px; background: var(--pl-1); color: #fff; display: grid; place-items: center; flex: none; }
.points-pop .pp-star svg { width: 22px; height: 22px; }
.points-pop .pp-big { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--primary); line-height: 1; white-space: nowrap; }
.points-pop .pp-sub { font-size: 10px; color: var(--ink-soft); margin-top: 3px; white-space: nowrap; }

.approve { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 13px; padding: 10px 12px; box-shadow: var(--shadow-sm); font-size: 10.5px; color: var(--ink-soft); }
.approve .pile { display: flex; }
.approve .pile .av { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; }
.approve .pile .av:first-child { margin-left: 0; }

/* ============================================================
   Shared groceries wall + cart screen
   ============================================================ */
.groc-store { display: flex; gap: 6px; padding: 2px 0 2px; }
.groc-store .gs { font-size: 9.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-sm); white-space: nowrap; }
.groc-store .gs.on { background: var(--primary); color: var(--on-primary); }

.groc-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.groc-card { background: #fff; border-radius: 14px; padding: 8px 10px 8px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1px; position: relative; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, outline-color .14s ease; }
.groc-card:hover { transform: translateY(-2px); box-shadow: 0 9px 20px -9px rgba(22,41,74,.4); }
.groc-card:active { transform: translateY(0) scale(.98); }
.groc-card .gc-emoji { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.groc-card .gc-name { font-size: 11px; font-weight: 700; line-height: 1.15; }
.groc-card .gc-store { font-size: 8.5px; color: var(--ink-soft); }
.groc-card .gc-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.groc-card .gc-price { font-family: "Space Grotesk", monospace; font-size: 11px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.groc-card .gc-add { width: 24px; height: 24px; border-radius: 8px; border: none; background: color-mix(in srgb, var(--navy) 9%, #fff); color: var(--primary); display: grid; place-items: center; pointer-events: none; transition: transform .12s ease, background .12s ease; flex: none; }
.groc-card .gc-add svg { width: 14px; height: 14px; }
.groc-card:hover .gc-add { background: var(--primary); color: var(--on-primary); }
.groc-card:active .gc-add { transform: scale(.86); }
.groc-card.added { outline: 2px solid color-mix(in srgb, var(--pl-4) 70%, transparent); }
.groc-card.added .gc-add { background: var(--pl-4); color: #fff; }
.groc-card .gc-who { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: var(--shadow-sm); display: none; }
.groc-card.added .gc-who { display: block; }

/* scrollable grocery screen: bottom fade + scroll cue */
.groc-screen { position: relative; }
.groc-screen .scroll-fade { position: absolute; left: 10px; right: 10px; bottom: 58px; height: 34px; z-index: 5; pointer-events: none; background: linear-gradient(to top, var(--off-white) 12%, transparent); border-radius: 0 0 20px 20px; }
.groc-screen .scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 66px; z-index: 6; pointer-events: none; display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: var(--on-primary); background: var(--primary); padding: 5px 11px; border-radius: 999px; box-shadow: 0 8px 16px -6px rgba(22,41,74,.5); transition: opacity .25s ease; }
.groc-screen .scroll-cue span { display: inline-block; animation: cue-bounce 1s ease-in-out infinite; }
.groc-screen .scroll-cue.hide { opacity: 0; }
@keyframes cue-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* cart summary */
.cart-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 2px 0; }
.cart-head .cart-count { margin-left: auto; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--navy) 10%, transparent); padding: 2px 8px; border-radius: 999px; }
.cart-item { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 12px; padding: 7px 10px; box-shadow: var(--shadow-sm); }
.cart-item .ci-em { font-size: 16px; flex: none; }
.cart-item .ci-name { font-size: 11px; font-weight: 600; line-height: 1.1; }
.cart-item .ci-by { font-size: 8.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.cart-item .ci-by .av { width: 13px; height: 13px; border-radius: 50%; }
.cart-item .ci-price { margin-left: auto; font-family: "Space Grotesk", monospace; font-size: 10.5px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.cart-empty { font-size: 10.5px; color: var(--ink-soft); text-align: center; padding: 10px 0 4px; }

/* ============================================================
   Interactive neighbourhood map screen
   ============================================================ */
.map-canvas { position: relative; flex: 1; overflow: hidden; background: #e4e9f0; cursor: crosshair; touch-action: manipulation; }
/* street grid */
.map-canvas::before { content: ""; position: absolute; inset: -10px; z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 40px, #f4f6fa 40px 46px),
    repeating-linear-gradient(90deg, transparent 0 52px, #f4f6fa 52px 58px); }
.map-canvas::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(58deg, transparent 0 46%, #f4f6fa 46% 49%, transparent 49%); }
.map-water { position: absolute; z-index: 1; right: -20px; bottom: -20px; width: 130px; height: 130px; border-radius: 50% 40% 45% 50%; background: #cdd9e8; transform: rotate(-12deg); }
.map-park { position: absolute; z-index: 1; left: 18px; top: 30px; width: 78px; height: 64px; border-radius: 16px; background: color-mix(in srgb, var(--pl-4) 42%, #e4e9f0); }
.map-park::after { content: "🌳"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; opacity: .8; }

.map-hint-top { position: absolute; z-index: 6; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; font-weight: 600; color: var(--primary); background: rgba(255,255,255,.9); padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* pin marker */
.pin { position: absolute; z-index: 5; width: 30px; height: 30px; transform: translate(-50%, -100%); cursor: pointer; }
.pin .head { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); box-shadow: 0 6px 12px -3px rgba(22,41,74,.5); display: grid; place-items: center; }
.pin .head span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.pin.draft .head { background: var(--pl-3); animation: pin-bounce .6s ease infinite alternate; }
@keyframes pin-bounce { from { transform: rotate(-45deg) translateY(0); } to { transform: rotate(-45deg) translateY(-5px); } }
.pin.active { z-index: 9; }

/* pin popup */
.pin-pop { position: absolute; z-index: 8; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 132px; background: #fff; border-radius: 12px; padding: 9px 10px; box-shadow: 0 14px 28px -10px rgba(22,41,74,.5); }
.pin-pop:after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.pin-pop .pp-t { font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.pin-pop .pp-m { font-size: 10px; color: var(--ink-soft); margin-top: 2px; line-height: 1.3; }
.pin-pop .pp-by { font-size: 8.5px; color: var(--ink-soft); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.pin-pop .pp-by .av { width: 14px; height: 14px; border-radius: 50%; }

/* add-place sheet */
.map-sheet { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; background: var(--off-white); border-radius: 18px 18px 0 0; padding: 12px 14px 14px; box-shadow: 0 -10px 26px -10px rgba(22,41,74,.35); transform: translateY(110%); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.map-sheet.open { transform: none; }
.map-sheet .ms-grab { width: 34px; height: 4px; border-radius: 2px; background: var(--grey-2); margin: 0 auto 10px; }
.map-sheet .ms-h { font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.cat-row { display: flex; gap: 6px; margin-bottom: 9px; }
.cat-chip { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 16px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; border: 2px solid transparent; transition: border-color .12s; }
.cat-chip.on { border-color: var(--primary); }
.ms-input { width: 100%; border: none; background: #fff; border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 11.5px; color: var(--ink); box-shadow: var(--shadow-sm); margin-bottom: 9px; }
.ms-input::placeholder { color: var(--ink-soft); }
.ms-input:focus { outline: 2px solid color-mix(in srgb, var(--navy) 35%, transparent); }
.ms-actions { display: flex; gap: 8px; }
.ms-actions button { flex: 1; font: inherit; font-weight: 700; font-size: 11.5px; padding: 11px; border-radius: 11px; border: none; cursor: pointer; }
.ms-actions .ms-cancel { background: #fff; color: var(--ink-soft); box-shadow: var(--shadow-sm); flex: 0 0 auto; padding: 11px 16px; }
.ms-actions .ms-add { background: var(--primary); color: var(--on-primary); }
.ms-actions .ms-add:disabled { opacity: .45; }
