/* Friends: sign-in, feed, post sheet, people, profiles. Same world: slate, chalk caps, one yellow. */

.tabbar { grid-template-columns: repeat(4, 1fr); }
.chalk.small { padding: 10px 18px; font-size: 18px; }
.muted.small-print { font-size: 13px; text-align: center; margin: 4px 0 0; }

/* ---- sign-in gate ---- */
#gate { position: fixed; inset: 0; z-index: 20; overflow: auto; background: var(--slate); display: grid; place-items: center; padding: 24px 16px; }
body.gated .tabbar, body.gated .chalk.fab, body.gated .top { visibility: hidden; }
.gate-inner { width: min(100%, 400px); display: grid; gap: 12px; }
.gate-inner form, #g-move { display: grid; gap: 10px; }
.gate-mark { margin: 0; font: 800 clamp(64px, 18vw, 96px)/.85 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.gate-line { margin: 0 0 18px; color: var(--chalk-2); font-size: 17px; }
.gate-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--w-red) 18%, transparent); color: #ffb3ad; font-size: 14px; }
.field.code { letter-spacing: .3em; text-align: center; font-size: 32px; }
.switch { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--chalk-2); font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--yellow); }

/* ---- who sees it ---- */
.visibility { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.visibility legend { float: left; margin-right: 6px; }
.visibility label { cursor: pointer; }
.visibility input { position: absolute; opacity: 0; }
.visibility span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--chalk-2); font-size: 14px; }
.visibility input:checked + span { background: var(--chalk); border-color: var(--chalk); color: var(--slate); font-weight: 600; }
.visibility input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---- feed ---- */
.feed { display: grid; gap: 32px; }
.feed-msg { text-align: center; padding: 40px 0; }
.nudge { display: grid; gap: 8px; justify-items: start; padding: 20px; border: 1.5px dashed var(--rule); border-radius: var(--r); }
.nudge strong { font: 800 28px/1 var(--display); text-transform: uppercase; }
.nudge p { margin: 0; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--slate-3); color: var(--chalk); font: 800 15px/1 var(--display); letter-spacing: .04em; }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.post-who { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: inherit; text-align: left; font-size: 15px; }
.post-who > span:last-child { display: grid; }
.post-who .muted { font-size: 13px; }
.vis-tag { font-size: 12px; color: var(--chalk-3); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 8px; }
.post .ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--slate-2); }
.post .txt { padding: 12px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: start; }
.post h2 { margin: 0; font: 800 clamp(28px, 7.5vw, 36px)/.98 var(--display); text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance; }
.post .dots { padding-top: 6px; }
.post .sub { grid-column: 1 / -1; margin: 6px 0 0; color: var(--chalk-2); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.post .hue { width: 10px; height: 10px; border-radius: 50%; background: var(--hue, var(--chalk-3)); }
.post .notes { grid-column: 1 / -1; margin: 8px 0 0; max-width: 62ch; }
.post-actions { display: flex; gap: 6px; margin-top: 12px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--chalk-2); font-size: 14px; font-weight: 600; }
.act svg { width: 19px; height: 19px; }
.act span:empty { display: none; }
.act.on { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.act[data-save].on { background: var(--chalk); border-color: var(--chalk); color: var(--slate); }

/* ---- sheets ---- */
.sheet-pad { display: grid; gap: 12px; padding: 8px 16px max(18px, env(safe-area-inset-bottom)); }
.sheet.tall { max-height: 94dvh; }
.ps-who { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.ps-name { margin: 4px 0 0; font: 800 34px/1 var(--display); text-transform: uppercase; }
.thread { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.thread li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.thread p { grid-column: 1 / -1; margin: 0; font-size: 16px; }
.t-who { font-weight: 700; }
.t-when { grid-column: 1 / -1; font-size: 12px; }
.q-tag { font-size: 12px; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.thread li.question p { color: var(--chalk); font-style: italic; }
.empty-thread { display: block !important; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { min-height: 38px; padding: 6px 12px; border: 1px solid var(--yellow); border-radius: 999px; background: none; color: var(--yellow); font-size: 14px; }
.sheet form.post-form { display: flex; gap: 8px; padding: 0; grid-template-columns: none; }
.post-form .field { flex: 1; }

/* ---- people ---- */
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people-list li { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.pl-name { flex: 1; display: grid; border: 0; background: none; padding: 0; color: inherit; text-align: left; font-size: 15px; }
.pl-name .muted { font-size: 13px; }
.pl-h { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--chalk-3); }
.pl-empty { margin: 12px 0; }
.follow-btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 14px; }
.follow-btn.on { background: none; border: 1px solid var(--rule); color: var(--chalk-2); }

/* ---- profiles ---- */
.pf-head { display: flex; align-items: center; gap: 12px; }
.pf-head > div { flex: 1; min-width: 0; }
.pf-head h2 { margin: 0; font: 800 30px/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.pf-head p { margin: 4px 0 0; font-size: 14px; }
.pf-head .avatar { width: 52px; height: 52px; font-size: 20px; }
.match { display: flex; align-items: baseline; gap: 10px; margin: 16px 0; padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--yellow) 12%, transparent); color: var(--chalk-2); }
.match b { font: 800 44px/.9 var(--display); color: var(--yellow); }
.match.none { background: var(--slate-3); }
.boardlist.small .bl-label { font-size: 20px; }
.boardlist.small .bl-value { font-size: 32px; }
.me-sec { display: grid; gap: 14px; }
.me-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.wants { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wants li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.wants .muted { font-size: 13px; grid-column: 1; }
.wants .dots { grid-row: 1; grid-column: 2; }

/* ---- tastings: several bottles in one photo ---- */
.shot-wrap { position: relative; }
.marks { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r); cursor: crosshair; }
.marks.view { cursor: default; }
.mark { position: absolute; display: block; border: 2px solid rgba(236, 232, 223, .75); border-radius: 10px; transition: box-shadow .35s var(--ease), border-color .2s; }
.mark b { position: absolute; top: -2px; left: -2px; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px;
  border-radius: 8px 0 8px 0; background: var(--chalk); color: var(--slate); font: 800 15px/1 var(--display); }
.mark.sel { border-color: var(--yellow); }
.mark.sel b { background: var(--yellow); color: var(--yellow-ink); }
.marks.dim .mark.sel { box-shadow: 0 0 0 9999px rgba(8, 10, 9, .62); }   /* the rest of the photo dims */
.marks.view .mark { cursor: pointer; border-color: rgba(236, 232, 223, .45); }
.marks.view .mark b { opacity: .9; }
body.log-multi #name, body.log-multi .rate-row, body.log-multi #more { display: none; }
body.log-multi .shot img { max-height: none; object-fit: contain; }

.bottle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bottle-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--rule); border-radius: 12px; }
.bottle-list li.sel { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 7%, transparent); }
.bottle-list li.off { opacity: .45; }
.bottle-list li.off .bl-name { text-decoration: line-through; }
.bottle-list .num, .post-wines .num { display: grid; place-items: center; min-width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--chalk); color: var(--slate); font: 800 17px/1 var(--display); }
.bottle-list li.sel .num, .post-wines .sel .num { background: var(--yellow); color: var(--yellow-ink); }
.bl-main { display: grid; gap: 2px; min-width: 0; }
.bl-name { width: 100%; border: 0; background: none; padding: 4px 0; font: 800 20px/1.1 var(--display); text-transform: uppercase; color: var(--chalk); }
.bl-name:focus { outline: none; box-shadow: inset 0 -2px 0 var(--yellow); }
.bl-name::placeholder { text-transform: none; font: 500 15px var(--ui); color: var(--chalk-3); }
.bl-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--chalk-3); }

/* ---- drank with ---- */
.with { display: grid; gap: 8px; position: relative; }
.with-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.with-chips:empty { display: none; }
.with-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--chalk); color: var(--slate); font-weight: 600; font-size: 14px; }
.with-chip.guest { background: none; border: 1px dashed var(--chalk-3); color: var(--chalk-2); }
.with-chip button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; }
.with-chip svg { width: 15px; height: 15px; }
.with-suggest { list-style: none; margin: 0; padding: 6px; border: 1px solid var(--rule); border-radius: 12px; background: var(--slate-2); display: grid; gap: 2px; }
.with-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--chalk); text-align: left; font-size: 15px; }
.with-suggest button:hover { background: var(--slate-3); }
.with-suggest .avatar { width: 28px; height: 28px; font-size: 12px; }

/* ---- a tasting in the feed ---- */
.photo-wrap { position: relative; }
.post .ph.natural { aspect-ratio: auto; height: auto; }
.post-wines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.post-wines button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px 6px 6px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--chalk); text-align: left; }
.post-wines button:hover { background: var(--slate-2); }
.post-wines button.sel { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 7%, transparent); }
.pw-name { font: 800 21px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.wine-detail { margin-top: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--slate-2); display: grid; gap: 4px; }
.wine-detail .wd-name { margin: 0; font: 800 28px/1 var(--display); text-transform: uppercase; }
.wine-detail .sub { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--chalk-2); font-size: 15px; }
.wine-detail .hue { width: 10px; height: 10px; border-radius: 50%; background: var(--hue, var(--chalk-3)); }
.wine-detail .post-actions { margin-top: 8px; }
.post-notes { margin: 10px 0 0; }
.table-ratings { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 14px; color: var(--chalk-2); }
.table-ratings span { display: inline-flex; align-items: center; gap: 6px; }
.act .lbl { display: inline; }

/* ---- "you drank together" invitations ---- */
.tag-invite { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--yellow) 10%, var(--slate-2)); }
.tag-invite p { margin: 0; }
.tag-invite .muted { display: block; margin-top: 4px; font-size: 14px; }
.tag-actions { grid-column: 2; display: flex; gap: 10px; }
.t-about { font-size: 12px; color: var(--chalk-3); }

/* ---- invites ---- */
.g-invited { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--yellow) 12%, transparent); color: var(--chalk); }
.g-invited b { color: var(--yellow); }
.g-ios { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--rule); color: var(--chalk-2); font-size: 14px; }
.g-ios svg { width: 16px; height: 16px; vertical-align: -3px; }
.invite-chip { margin-right: 2px; }
.nudge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.invite-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--yellow); border-radius: 12px; background: color-mix(in srgb, var(--yellow) 8%, transparent); color: var(--chalk); text-align: left; }
.invite-row svg { color: var(--yellow); }
.invite-row > span { display: grid; gap: 2px; }
.invite-row .muted { font-size: 13px; }

/* ---- bell + activity ---- */
.bell { position: relative; }
.bell-count { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font: 800 12px/18px var(--ui); text-align: center; }
.notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.notes-list button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 6px; border: 0; border-radius: 12px; background: none; color: var(--chalk); text-align: left; font-size: 15px; }
.notes-list button:hover { background: var(--slate-3); }
.notes-list button > span:last-child { display: grid; gap: 2px; }
.notes-list .nt { line-height: 1.35; }
.notes-list .muted { font-size: 13px; }
.notes-list li.unread button { background: color-mix(in srgb, var(--yellow) 8%, transparent); }
.notes-list li.unread .avatar { box-shadow: 0 0 0 2px var(--yellow); }
.empty-notes { padding: 24px 6px; }

/* ---- several photos/videos: swipe through ---- */
.media-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); gap: 0; }
.media-strip::-webkit-scrollbar { display: none; }
.media-strip .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.media-strip .ph.media { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; background: var(--slate-2); display: block; }
.media-strip .slide:first-child .ph { border-radius: 0; }
.strip-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.strip-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background .2s, transform .2s; }
.strip-dots i.on { background: var(--yellow); transform: scale(1.3); }

/* ---- the wine card: producer, vintage, grape, appellation, each on its own line ---- */
.wine-card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); }
.wine-card div { min-width: 0; }
.wine-card dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); }
.wine-card dd { margin: 2px 0 0; font-size: 15px; color: var(--chalk); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.wine-card dd .hue { width: 9px; height: 9px; border-radius: 50%; background: var(--hue, var(--chalk-3)); flex: none; }

/* ---- mini-map ---- */
.mini-map { position: relative; display: block; width: 100%; height: 120px; margin-top: 12px; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r); background: #0e1311; cursor: pointer; }
.mm-tiles { position: absolute; left: 50%; top: 50%; filter: invert(1) hue-rotate(180deg) saturate(.35) brightness(.85) contrast(.9); }
.mm-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.mm-pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px color-mix(in srgb, var(--yellow) 30%, transparent); }
.mm-label { position: absolute; left: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(14, 19, 17, .85); color: var(--chalk); font-size: 13px; font-weight: 600; }
.mm-label svg { width: 15px; height: 15px; color: var(--yellow); }

/* ---- Ask ---- */
.quick-h { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--chalk-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---- extra media in the log sheet ---- */
.extra { display: grid; gap: 8px; }
.extra .back-btn { gap: 8px; }
.extra .back-btn svg { width: 18px; height: 18px; }
.extra-hint { margin: 0; font-size: 13px; }
.extra-list { display: flex; flex-wrap: wrap; gap: 8px; }
.extra-list:empty { display: none; }
.extra-item { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--slate-3); }
.extra-item img, .extra-item video { width: 100%; height: 100%; object-fit: cover; }
.extra-item .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.extra-item button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(14, 19, 17, .8); color: #fff; }
.extra-item button svg { width: 14px; height: 14px; }

/* ---- first-time celebration ---- */
.celebrate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(8, 10, 9, .82); cursor: pointer; }
.celebrate[hidden] { display: none; }
.cel-card { width: min(100%, 380px); padding: 28px 24px; border-radius: 22px; background: var(--slate); border: 2px solid var(--yellow); text-align: center; animation: stamp .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes stamp { from { transform: scale(1.35) rotate(-4deg); opacity: 0; } }
.cel-title { margin: 0; font: 800 clamp(44px, 12vw, 64px)/.9 var(--display); text-transform: uppercase; color: var(--yellow); overflow-wrap: anywhere; }
.cel-count { margin: 14px 0 0; font-size: 16px; color: var(--chalk); }
.cel-count b { color: var(--yellow); }
.cel-more { margin: 8px 0 0; color: var(--chalk-2); font-size: 14px; }
.cel-tap { margin: 18px 0 0; font-size: 13px; }
.post-actions { flex-wrap: wrap; }

/* ---- feed card: the quick view ---- */
.card-open { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.card-title { margin: 0; font: 800 clamp(28px, 7.5vw, 36px)/.98 var(--display); text-transform: uppercase; overflow-wrap: anywhere; text-wrap: balance; }
.card-sub { margin: 0; color: var(--chalk-2); font-size: 15px; }
.card-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 6px 0 4px; }
.card-stats div { min-width: 0; }
.card-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); }
.card-stats dd { margin: 0; font: 800 26px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.card-stats dd small { font: 600 13px var(--ui); color: var(--chalk-3); text-transform: none; }
.card-stats dd.hot { color: var(--yellow); }
.card-media { position: relative; display: grid; gap: 4px; margin-top: 6px; border-radius: var(--r); overflow: hidden; }
.card-media.with-map { grid-template-columns: 3fr 2fr; }
.card-media .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--slate-2); }
.card-media.with-map .ph { aspect-ratio: 3 / 4; }
.card-media .mini-map { height: 100%; margin: 0; border: 0; border-radius: 0; }
.more-media { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(14, 19, 17, .85); font-size: 13px; font-weight: 700; }

/* ---- full post ---- */
.post-view { max-height: 100dvh; height: 100dvh; border-radius: 0; }
.pv-head { position: sticky; top: 0; z-index: 2; background: var(--slate-2); padding-block: 6px; }
.pv-owner { display: flex; gap: 4px; }
.venue-link { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 10px; padding: 6px 12px 6px 8px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--chalk); font-size: 15px; font-weight: 600; }
.venue-link svg { width: 18px; height: 18px; color: var(--yellow); }
.venue-link .muted { font-weight: 400; font-size: 13px; }
.venue-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.venue-links a { text-decoration: none; }

/* ---- edit ---- */
.edit-body { display: grid; gap: 8px; }
.edit-body .label { margin-top: 6px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }

/* ---- library ---- */
.lib-by { margin-bottom: 4px; }
.lib-count { margin: 6px 0 4px; font-size: 13px; }
.lib-groups { display: grid; }
.lib-group { border-bottom: 1px solid var(--rule); padding: 0; }
.lib-group summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 2px; list-style: none; color: var(--chalk); }
.lib-group summary::after { content: none; }
.lg-name { flex: 1; font: 800 22px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.lg-n { font: 800 22px/1 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.lg-avg { font-size: 13px; color: var(--chalk-3); white-space: nowrap; }
.lib-group ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.lib-group li button { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px; background: none; color: var(--chalk); text-align: left; }
.lib-group li button:hover { background: var(--slate-3); }
.lb-name { font-weight: 600; overflow-wrap: anywhere; }
.lb-meta { grid-column: 1 / -1; font-size: 13px; }

/* ---- passport lines you can open ---- */
.bl.link { cursor: pointer; border-radius: 10px; }
.bl.link:hover .bl-label, .bl.link:focus-visible .bl-label { color: var(--yellow); }
.bl.link .bl-value::after { content: " ›"; color: var(--chalk-3); font-size: .6em; }
.wide-ish { margin: 14px 0 4px; }

/* ---- venue suggestions while logging ---- */
.venue-suggest { display: grid; gap: 4px; margin-top: -4px; }
.vs-h { margin: 0; font-size: 13px; font-weight: 700; color: var(--chalk-3); }
.venue-suggest button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 12px; background: none; color: var(--chalk); text-align: left; }
.venue-suggest button:hover { border-color: var(--yellow); }
.venue-suggest .muted { font-size: 13px; white-space: nowrap; }
.venue-picked { margin: -4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--yellow); }
.venue-picked svg { width: 16px; height: 16px; }

/* ---- the spot you came from, lit up on the map ---- */
.hl-pin { animation: hl 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hl { 50% { stroke-width: 9; stroke-opacity: .5; } }

/* ---- "new version" banner ---- */
.update-bar { position: fixed; left: 12px; right: 12px; top: calc(70px + env(safe-area-inset-top)); z-index: 25; max-width: 520px; margin: 0 auto; padding: 14px 16px; border: 1.5px solid var(--yellow); border-radius: 16px; background: var(--slate-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); display: grid; gap: 8px; animation: rise .4s var(--ease); }
.update-bar p { margin: 0; }
.update-notes { margin: 0; padding-left: 18px; color: var(--chalk-2); font-size: 14px; display: grid; gap: 2px; }
.update-actions { display: flex; align-items: center; gap: 12px; }
.whats-new { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--chalk); font-size: 16px; }
