:root {
  --cream: #F4EFE4;
  --paper: #FFFFFF;
  --ink: #1C1C1A;
  --forest: #1E3A2B;
  --forest-2: #2F5540;
  --tan: #8A6E4B;
  --muted: #6B675F;
  --soft: #4A4740;
  --rule: #DDD8CE;
  --rule-2: #EEEAE2;
  --sand: #EAE4D6;
  --mint: #E3EBE4;
  --red: #B42318;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--forest); }
button { font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 84px; }
.page { padding: 28px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.page.no-nav { padding-bottom: 40px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 14px; }

h1.title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.05; }
h2.section { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.meta { font-size: 12px; color: var(--muted); line-height: 1.45; }
.small { font-size: 12px; line-height: 1.45; }
.center { text-align: center; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--ink); }
.logo .word { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 5px; line-height: .85; margin-right: -5px; }
.logo .est { display: flex; align-items: center; gap: 5px; font-size: 7px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); }
.logo .est i { width: 10px; height: 1px; background: #BDB6A8; display: block; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.green { background: var(--forest); border-color: var(--forest); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.sm { min-height: 40px; font-size: 11px; letter-spacing: 1px; width: auto; }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-size: 13px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.linkbtn.u { text-decoration: underline; color: var(--forest); }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 38px; padding: 0 12px; border: 1px solid var(--rule); background: var(--paper); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.chip.plain { text-transform: none; letter-spacing: 0; font-size: 13px; }
.chip.grow { flex: 1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 0; }
.input:focus, textarea.input:focus { outline: 2px solid var(--forest); outline-offset: -1px; border-color: var(--forest); }
textarea.input { padding: 12px 14px; min-height: 80px; resize: vertical; line-height: 1.45; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.card { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.card:last-child { border-bottom: 1px solid var(--rule); }
.card .t { font-size: 16px; font-weight: 600; }
.card .count { text-align: right; flex-shrink: 0; }
.card .count b { display: block; font-size: 18px; font-weight: 500; }
.tag { display: inline-block; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--mint); color: var(--forest); vertical-align: 2px; margin-left: 6px; }
.tag.tan { background: var(--sand); color: var(--tan); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--forest); font-weight: 600; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2F8F4E; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.box { padding: 16px; background: var(--paper); border: 1px solid var(--rule); }
.box.sand { background: var(--sand); border-color: var(--sand); }
.box.green { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-2); font-size: 14px; }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; }

.avatars { display: flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tan); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 2px solid var(--cream); margin-left: -8px; }
.avatar:first-child { margin-left: 0; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; margin: 0; }

.err { padding: 12px 14px; background: #FDECEA; color: var(--red); font-size: 13px; line-height: 1.45; }
.ok { padding: 12px 14px; background: var(--mint); color: var(--forest); font-size: 13px; line-height: 1.45; }
.banner { background: var(--forest); color: var(--cream); font-size: 12px; text-align: center; padding: 8px 12px; line-height: 1.4; }
.banner a { color: #fff; }

nav.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
nav.tabs a[aria-current="page"] { color: var(--ink); }

.tabbar { display: flex; gap: 14px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex-shrink: 0; white-space: nowrap; padding: 12px 0 10px; border: 0; background: none; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; cursor: pointer; color: var(--muted); border-bottom: 1.5px solid transparent; font-weight: 500; }
.tabbar button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.stat span { font-size: 11px; color: var(--muted); }

/* Moment mode */
.mm { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
.mm-head { padding: 22px 20px 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.mm-dark { background: #16261D; color: #fff; }
.mm-dark .label, .mm-dark .meta, .mm-dark .small { color: rgba(255,255,255,.72); }
.mm-dark .safety { background: transparent; border-color: rgba(255,255,255,.2); }
.mm-dark .safety b { color: #fff; }
.mm-dark .ok { background: rgba(255,255,255,.1); color: #fff; }
.mm-signal { margin: 0 12px; min-height: 250px; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: inherit; padding: 20px; }
.mm-holdup { position: fixed; inset: 0; z-index: 60; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; font-family: inherit; }
.mm-nerves { background: var(--sand); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.mm-ring { position: relative; display: flex; align-items: center; justify-content: center; margin: 4px auto 0; }
.mm-stuck { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: #fff; font-family: inherit; cursor: pointer; }
.mm-quote { text-align: center; padding: 4px 8px; }
.mm-quote p { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; opacity: .75; }
.mm-quote span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; opacity: .6; }
.mm-deck { position: fixed; inset: 0; z-index: 55; background: #16261D; color: #fff; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.mm-deck .label { color: #fff; }
.mm-card .meta, .mm-card .small { color: var(--muted) !important; }
.mm-card .label { color: var(--tan) !important; }
.mm-card { background: var(--cream); color: var(--ink); padding: 26px; min-height: 360px; display: flex; flex-direction: column; gap: 20px; box-shadow: 10px 10px 0 #2F5540, -6px 6px 0 #6B4E16; }
.mm-timer { font-family: var(--serif); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.sky { position: relative; height: 380px; overflow: hidden; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .quote { position: absolute; left: 20px; right: 20px; bottom: 22px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.sky .quote p { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.sky .quote span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.sky.day .quote { color: var(--ink); text-shadow: none; }
.bang { position: absolute; left: 50%; top: 42%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 40px 20px rgba(255,255,255,.9); animation: bang 2.2s ease-out forwards; }
@keyframes bang { 0% { transform: scale(.2); opacity: 1; } 60% { transform: scale(30); opacity: .6; } 100% { transform: scale(60); opacity: 0; } }
.spark { position: absolute; left: 50%; top: 42%; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: spark 2.4s ease-out forwards; }
@keyframes spark { from { transform: translate(0,0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bang, .spark, .live::before { animation: none; } .bang { opacity: 0; } }

.safety { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); }
.sos { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 1px; cursor: pointer; flex-shrink: 0; }

.sheet-bg { position: fixed; inset: 0; background: rgba(28,28,26,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--cream); padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }

.skeleton { height: 64px; background: linear-gradient(90deg, var(--rule-2), #fff, var(--rule-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.progress { display: flex; gap: 3px; }
.progress i { flex: 1; height: 4px; background: var(--rule); display: block; }
.progress i.on { background: var(--forest); }
.keepsake { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: linear-gradient(145deg, #8A6E4B, #3B2E22); display: flex; align-items: center; justify-content: center; color: #F4EFE4; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes quoteIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hearts on profile lists */
.heart { background: none; border: 0; cursor: pointer; line-height: 1; padding: 6px; min-width: 40px; min-height: 40px; color: var(--muted); flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
.heart .h { font-size: 22px; display: inline-block; }
.heart .n { font-size: 13px; font-weight: 600; }
.heart.on { color: var(--red); }
.heart.on .h { animation: heartPop .35s ease; }
.heart-count { font-size: 12px; font-weight: 600; color: var(--red); white-space: nowrap; flex-shrink: 0; }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .heart.on .h { animation: none; } }

/* Match Day (Explore) */
.md-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--rule); background: #fff; }
.md-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 2px; border-top: 1px solid var(--rule-2); }
.md-pill { display: inline-block; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.md-why { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--rule-2); }

/* Pay back (Split the cost) */
.pay-card { gap: 12px; padding: 18px; background: var(--forest); color: #fff; }
.pay-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0 18px; border: 0; border-radius: 12px;
  color: #fff; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; }
.pay-btn b { font-size: 17px; letter-spacing: .2px; }
.pay-btn span { font-weight: 600; opacity: .95; }
.pay-btn.venmo { background: #008CFF; }
.pay-btn.cashapp { background: #00C244; }
.pay-btn.zelle { background: #6D1ED4; }
.pay-btn:active { transform: scale(.985); }
.pay-steps { padding: 12px 14px; background: rgba(255,255,255,.1); border-radius: 10px; font-size: 14px; }
.pay-input { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; }
.pay-dot { width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pay-dot.venmo { background: #008CFF; } .pay-dot.cashapp { background: #00C244; } .pay-dot.zelle { background: #6D1ED4; }
.pay-status { font-size: 12px; color: var(--tan); }
.pay-status.ok { color: #2F8F4E; font-weight: 600; }

/* Place search (Host > Where?): full screen while typing, like Apple Maps */
.pp-sheet { position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 480px; z-index: 70; background: var(--cream);
  padding: calc(12px + env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pp-sheet .pp-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; border: 0; background: transparent; }
.pp-list { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pp-sheet .pp-list > * { background: var(--paper); }
.pp-spin { width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--forest); border-radius: 50%; animation: pp-spin .7s linear infinite; flex-shrink: 0; }
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* Edit mode on profile lists (Moments, My Favorites, My Spots) */
.edit-toggle { min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.edit-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.editing { gap: 10px; }
.edit-minus { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 0; background: #D93A2B; color: #fff; font-size: 18px; line-height: 22px; font-weight: 700; cursor: pointer; padding: 0; }
.edit-pencil { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink); }
.edit-ask { align-items: center; background: #FBEDEA; padding: 12px; margin: 0 -12px; }
.btn.danger { background: #D93A2B; color: #fff; border-color: #D93A2B; }
.m-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.m-act { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.m-act.red { color: #C0392B; border-color: #F0C9C2; background: #FDF4F2; }

/* Explore: sections you can open and close */
.folds { display: flex; flex-direction: column; gap: 10px; }
.fold { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.fold-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); min-height: 64px; }
.fold-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.fold-title { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.fold-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-count { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fold-chev { font-size: 22px; color: var(--muted); transition: transform .2s ease; flex-shrink: 0; }
.fold.open .fold-chev { transform: rotate(90deg); }
.fold.open .fold-head { border-bottom: 1px solid var(--rule-2); }
.fold-body { padding: 4px 14px 14px; }
.fold-body .card:first-child { border-top: 0; }

/* "Show all" under long profile lists */
.show-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--sand); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-transform: none; }
.show-more-chev { display: inline-block; transform: rotate(90deg); transition: transform .2s ease; font-size: 16px; line-height: 1; }
.show-more[aria-expanded="true"] .show-more-chev { transform: rotate(-90deg); }

/* KRNS+ and KRNS for business */
.promos { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.promo { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; text-decoration: none; position: relative; overflow: hidden; text-transform: none; }
.promo.plus { background: linear-gradient(135deg, #1E3A2B 0%, #2F5540 60%, #3E6B50 100%); color: #F4EFE3; }
.promo.biz { background: linear-gradient(135deg, #EADBC0 0%, #E0C9A0 100%); color: #3B2E1E; border: 1px solid #D8C29A; }
.promo-badge { flex-shrink: 0; align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.promo.plus .promo-badge { background: #C9A96E; color: #1E3A2B; }
.promo.biz .promo-badge { background: #3B2E1E; color: #F4EFE3; }
.promo-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.promo-sub { font-size: 13px; line-height: 1.4; opacity: .85; }
.promo-go { font-size: 20px; flex-shrink: 0; }
.promo:active { transform: scale(.99); }
.fold-promos { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 4px; padding-top: 14px; border-top: 1px dashed var(--rule); }
/* The huddle (message board before a moment) */
.hud { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; text-transform: none; }
.hud-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); min-height: 64px; }
.hud-head.static { cursor: default; }
.hud-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--mint, #E3EEE6); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.hud-title { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.1; }
.hud-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.hud.open .fold-chev { transform: rotate(90deg); }
.hud.open .hud-head { border-bottom: 1px solid var(--rule-2, var(--rule)); }
.hud-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.hud-note { font-size: 12px; background: #FBF4E6; color: #6B5433; border-radius: 10px; padding: 8px 10px; line-height: 1.35; }
.hud-list { display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; padding: 2px 0; }
.hud-msg { display: flex; gap: 8px; align-items: flex-start; }
.hud-msg.me { justify-content: flex-end; }
.hud-av { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hud-meta { font-size: 11px; color: var(--muted); letter-spacing: .2px; }
.hud-bubble { background: var(--sand); border-radius: 4px 14px 14px 14px; padding: 8px 11px; font-size: 14px; line-height: 1.35; max-width: 100%; overflow-wrap: anywhere; }
.hud-msg.me .hud-bubble { background: var(--forest); color: #F4EFE3; border-radius: 14px 4px 14px 14px; }
.hud-msg.pinned .hud-bubble { background: #F3ECDF; border: 1px solid #E0C9A0; }
.hud-add { flex-shrink: 0; align-self: center; border: 1px solid var(--forest); color: var(--forest); background: none; border-radius: 999px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 5px 9px; cursor: pointer; min-height: 30px; }
.hud-added { flex-shrink: 0; align-self: center; font-size: 11px; font-weight: 700; color: var(--forest); }
.hud-prompt { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px dashed var(--tan); background: none; border-radius: 12px; padding: 9px 11px; cursor: pointer; font: inherit; color: var(--ink); text-transform: none; }
.hud-compose { display: flex; gap: 8px; align-items: center; }
.hud-compose .input { flex: 1; min-width: 0; margin: 0; }
.hud-blur { display: flex; flex-direction: column; gap: 8px; width: 100%; filter: blur(3px); }
.hud-blur span { height: 30px; border-radius: 14px; background: var(--sand); width: 80%; }
.hud-blur span:nth-child(2) { width: 60%; margin-left: auto; background: #DCE5DD; }
.hud.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hud.dark .hud-head, .hud.dark .hud-title { color: inherit; }
/* Open to anyone: the one-line explainer on moments and Explore */
.open-band { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #E3EEE6; color: #1E3A2B; text-transform: none; }
.open-band b { font-size: 14px; }
.open-band .small { color: #2F4A3A; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how > span { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); text-transform: none; font-size: 12px; line-height: 1.3; }
.how b { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.05; }
.how em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--tan); letter-spacing: 1px; }
.tag.open { background: #E3EEE6; color: #1E3A2B; }
.plan-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.plan-opts button { border: 1px solid var(--rule); background: var(--paper); border-radius: 10px; padding: 8px 4px; font: inherit; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); }
.plan-opts button[aria-pressed="true"] { border-color: var(--forest); background: #E3EEE6; }
/* At the moment: stages, analog kit, phones-away ritual, flip-clock lock screen */
.mm-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-transform: none; }
.mm-stages span { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.mm-stages i { height: 3px; border-radius: 2px; background: var(--rule); }
.mm-stages .done i { background: var(--tan); }
.mm-stages .on i { background: var(--forest); }
.mm-stages .on { color: var(--ink); }
.mm-stages.dk span { color: rgba(255,255,255,.5); } .mm-stages.dk .on { color: #fff; } .mm-stages.dk i { background: rgba(255,255,255,.18); } .mm-stages.dk .on i { background: #B8D0BC; }
.mm-kits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-kits button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px; border: 1px solid var(--rule); background: var(--paper); border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; text-transform: none; }
.mm-kits button b { font-size: 14px; } .mm-kits button span:last-child { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mm-kits button[aria-pressed="true"] { border-color: var(--forest); background: #E3EEE6; }
.kit-ic { width: 34px; height: 24px; border: 2px solid var(--ink); border-radius: 4px; position: relative; margin-bottom: 4px; }
.kit-ic.cam::after { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; left: 10px; top: 5px; }
.kit-ic.cam::before { content: ''; position: absolute; width: 6px; height: 3px; background: var(--ink); right: 3px; top: -5px; }
.kit-ic.inst { height: 28px; width: 28px; } .kit-ic.inst::after { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; height: 12px; background: var(--ink); }
.kit-ic.note { width: 24px; height: 30px; } .kit-ic.note::after { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.kit-ic.none { border-radius: 50%; width: 26px; height: 26px; } .kit-ic.none::after { content: ''; position: absolute; left: 10px; top: 4px; width: 2px; height: 14px; background: var(--ink); transform: rotate(45deg); }
.mm-mini { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.mm-mini button { min-height: 44px; border: 1px solid var(--rule); background: var(--paper); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.sos-mini { background: var(--red, #B42318) !important; color: #fff !important; border: 0 !important; border-radius: 999px; padding: 0 16px; font-weight: 700; letter-spacing: 1px; min-height: 40px; font-family: inherit; cursor: pointer; }
.mm-stack { position: relative; height: 150px; margin: 6px auto; width: 200px; }
.mm-stack i { position: absolute; left: 50%; width: 88px; height: 150px; margin-left: -44px; border-radius: 16px; background: #1C1C1A; border: 2px solid #3A3A36; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.mm-stack i:nth-child(1) { transform: rotate(-14deg) translateX(-18px); background: #2A2A27; }
.mm-stack i:nth-child(2) { transform: rotate(9deg) translateX(14px); background: #262624; }
.mm-stack i:nth-child(3) { transform: rotate(-4deg); background: #1F1F1D; }
.mm-stack i:nth-child(4) { transform: rotate(3deg) translateY(-4px); background: #1E3A2B; border-color: #2F5540; }
.mm-slide { position: relative; display: block; height: 60px; border-radius: 999px; background: #1C1C1A; overflow: hidden; }
.mm-slide input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; z-index: 2; cursor: grab; }
.mm-slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 52px; border-radius: 50%; background: #F4EFE3; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mm-slide input::-moz-range-thumb { width: 52px; height: 52px; border-radius: 50%; background: #F4EFE3; border: 0; }
.mm-slide-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(244,239,227,.8); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; pointer-events: none; padding-left: 40px; }
.mm-lock { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: radial-gradient(120% 80% at 50% 20%, #23231F 0%, #121210 70%); color: #F4EFE3; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 34px 20px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.flip { display: flex; gap: 6px; align-items: center; margin-top: 24px; }
.flip b { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 92px; border-radius: 10px; background: linear-gradient(#2C2C28 0 50%, #242421 50% 100%); font-family: var(--serif); font-weight: 500; font-size: 72px; line-height: 1; color: #F4EFE3; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.45); }
.flip b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #0E0E0C; }
.flip em { font-style: normal; font-family: var(--serif); font-size: 56px; color: #C9A96E; padding: 0 2px; }
.lcd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 340px; }
.lcd-row span { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; border: 1px solid rgba(201,169,110,.3); border-radius: 8px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 20px; color: #E7D9B9; letter-spacing: 1px; background: rgba(0,0,0,.25); }
.lcd-row small { font-family: var(--sans, system-ui); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(244,239,227,.5); }
.lcd-kit { font-size: 13px; color: #C9A96E; border-top: 1px dashed rgba(201,169,110,.35); border-bottom: 1px dashed rgba(201,169,110,.35); padding: 8px 14px; }
.mm-hold { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(244,239,227,.35); background: transparent; color: #F4EFE3; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; position: relative; touch-action: none; }
.mm-hold::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #C9A96E; clip-path: inset(100% 0 0 0); }
.mm-hold.on::before { animation: holdfill 1.5s linear forwards; }
@keyframes holdfill { to { clip-path: inset(0 0 0 0); } }
.sos-mini.dark { min-height: 34px; padding: 0 14px; font-size: 12px; }
/* Disposable camera */
.lock-cam { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(201,169,110,.45); background: rgba(201,169,110,.08); color: #F4EFE3; font: inherit; text-align: left; cursor: pointer; }
.lock-cam b { font-size: 16px; } .lock-cam small { font-size: 12px; color: rgba(244,239,227,.6); }
.lock-cam-ic { width: 44px; height: 32px; border-radius: 6px; background: #F4EFE3; position: relative; flex-shrink: 0; }
.lock-cam-ic::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #121210; border: 3px solid #C9A96E; left: 11px; top: 5px; }
.lock-cam-ic::before { content: ''; position: absolute; width: 10px; height: 5px; background: #C9A96E; right: 5px; top: -4px; border-radius: 2px; }
.dispo { position: fixed; inset: 0; z-index: 45; background: #121210; color: #F4EFE3; display: flex; flex-direction: column; gap: 16px; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
.dispo-top { display: flex; justify-content: space-between; align-items: center; }
.dispo-brand { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #C9A96E; font-weight: 700; }
.dispo-body { background: linear-gradient(#2B2B27, #1B1B18); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.5); border: 1px solid #3A3A34; }
.dispo-finder { position: relative; --ar: 1.5; aspect-ratio: var(--ar); width: min(100%, calc(52vh * var(--ar))); margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000; border: 6px solid #0C0C0A; box-shadow: inset 0 0 40px rgba(0,0,0,.9); }
.dispo-finder video, .dispo-finder img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.3) brightness(1.05); }
.dispo-finder::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.dispo-flash { position: absolute; inset: 0; background: #fff; z-index: 2; animation: dflash .16s ease-out forwards; }
@keyframes dflash { from { opacity: 1; } to { opacity: 0; } }
.dispo-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.dispo-count { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dispo-count b { font-family: 'Courier New', ui-monospace, monospace; font-size: 26px; color: #1B1B18; background: #F4EFE3; border-radius: 6px; padding: 2px 10px; min-width: 52px; text-align: center; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.dispo-count small { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(244,239,227,.55); }
.dispo-shutter { width: 86px; height: 86px; border-radius: 50%; border: 6px solid #C9A96E; background: radial-gradient(circle at 35% 30%, #F4EFE3, #CFC6B2); cursor: pointer; box-shadow: 0 6px 0 #6B5433, 0 10px 18px rgba(0,0,0,.5); transition: transform .08s; }
.dispo-shutter:active { transform: translateY(4px); box-shadow: 0 2px 0 #6B5433; }
.dispo-shutter.wind { opacity: .6; }
.dispo-shutter:disabled { opacity: .35; cursor: default; }
.dispo-note { text-align: center; font-size: 13px; color: rgba(244,239,227,.7); padding: 0 10px; }
.roll { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--rule); background: var(--paper); border-radius: 14px; text-transform: none; }
.roll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.roll-shot { position: relative; padding: 0; border: 3px solid #F7F2E6; outline: 1px solid var(--rule); background: #F7F2E6; cursor: pointer; aspect-ratio: 3 / 2; }
.roll-shot img { width: 100%; height: 100%; object-fit: contain; display: block; background: #1B1B18; }   /* whole photo, tall or wide */
.roll-shot.on { outline: 3px solid var(--forest); }
.roll-n { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.roll-to { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roll-to button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 11px 12px; border: 1px solid var(--rule); background: var(--cream); border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; text-transform: none; }
.roll-to button b { font-size: 14px; } .roll-to button span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.roll-to button[aria-checked="true"] { border-color: var(--forest); background: #E3EEE6; }
/* Albums: up to 10 photos and videos in one post */
.album { position: relative; }
.album-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.album-track::-webkit-scrollbar { display: none; }
.album-slide { flex: 0 0 100%; scroll-snap-align: start; }
.album-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.album-dots { position: absolute; left: 0; right: 0; bottom: -14px; display: flex; justify-content: center; gap: 5px; }
.album-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.album-dots i.on { background: var(--forest); }
.album-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #1C1C1A; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.album-arrow.l { left: 8px; } .album-arrow.r { right: 8px; }
.pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pick-item { position: relative; aspect-ratio: 1; background: var(--sand); }
.pick-item img, .pick-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-n { position: absolute; left: 3px; top: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.pick-x, .pick-l { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.pick-x { right: 3px; top: 3px; } .pick-l { left: 3px; bottom: 3px; }
.stack-badge { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.hud-more { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 0 4px; margin-left: 4px; cursor: pointer; line-height: 1; }
.hud-acts { display: flex; gap: 6px; }
.hud-acts button { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; font: inherit; font-size: 11px; font-weight: 600; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.dispo-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 13px; color: rgba(244,239,227,.8); }
/* The roll inside the camera: frames you've shot show as film negatives until the moment ends */
.dispo { overflow-y: auto; }
.dispo-roll { display: flex; flex-direction: column; gap: 10px; }
.neg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; background: #1B1510; border-radius: 10px; border-top: 6px dotted #0C0A08; border-bottom: 6px dotted #0C0A08; }
.neg { position: relative; aspect-ratio: 3 / 2; border-radius: 3px; background: rgba(244,239,227,.05); outline: 1px dashed rgba(244,239,227,.14); overflow: hidden; }
.neg.shot { background: #3A1E0C; outline: 1px solid rgba(255,138,46,.35); }
.neg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) invert(1) blur(2.5px) brightness(.7) contrast(.9); opacity: .9; }
.neg i { position: absolute; left: 3px; bottom: 1px; font-style: normal; font-family: 'Courier New', ui-monospace, monospace; font-size: 9px; color: rgba(255,154,46,.8); }
.neg.fresh { animation: negin .5s ease; }
@keyframes negin { from { transform: scale(.85); opacity: .3; } to { transform: none; opacity: 1; } }
.mm-signal.compact { min-height: 140px; padding: 14px; gap: 4px; }
.mm-checkin { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--forest); background: #E3EEE6; border-radius: 14px; text-transform: none; }
.mm-checkin b { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.1; }
.mm-checked { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--forest); text-transform: none; }

/* At my place: its own soft plum color, used nowhere else */
.home-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #D9CFE6; background: #F4F0F8; border-radius: 14px; font: inherit; color: var(--ink); cursor: pointer; text-transform: none; margin-bottom: 4px; }
.home-toggle b { font-size: 15px; } .home-toggle span span { font-size: 12px; color: #6A5A80; }
.home-toggle.on { border-color: #5B4679; background: #ECE5F4; }
.home-ic { width: 26px; height: 22px; flex-shrink: 0; position: relative; }
.home-ic::before { content: ''; position: absolute; left: 3px; right: 3px; bottom: 0; height: 12px; background: #5B4679; border-radius: 2px; }
.home-ic::after { content: ''; position: absolute; left: 1px; top: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 11px solid #5B4679; }
.home-switch { width: 40px; height: 24px; border-radius: 999px; background: #D9CFE6; position: relative; flex-shrink: 0; transition: background .15s; }
.home-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.home-toggle.on .home-switch { background: #5B4679; } .home-toggle.on .home-switch i { transform: translateX(16px); }
.home-note { display: inline-flex; align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: #ECE5F4; color: #4A3866; font-size: 13px; font-weight: 600; }
.home-tag { align-self: flex-start; display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #ECE5F4; color: #4A3866; font-size: 12px; font-weight: 600; text-transform: none; }
.open-band.home { background: #ECE5F4; color: #3E2F57; }
.open-band.home .small { color: #5B4679; }

.invite-list { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid #D9CFE6; background: #F4F0F8; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.invite-chip[aria-pressed="true"] { border-color: #5B4679; background: #5B4679; color: #fff; }
.invite-av { width: 26px; height: 26px; border-radius: 50%; background: #D9CFE6; color: #4A3866; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.invite-chip[aria-pressed="true"] .invite-av { background: #fff; color: #5B4679; }
/* Every word starts with a capital letter (sign-up and KRNS For Business screens). What people type stays as typed. */
.tc, .how { text-transform: capitalize; }
.tc input, .tc textarea, .tc select, .tc .input, .tc .keep { text-transform: none; }
.tc :is(button, a):not(.chip):not(.btn):not(.label):not(.keep), .how > span { text-transform: capitalize; }

/* Photo booth camera: wide photos */
.dispo-tip { text-align: center; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(244,239,227,.55); margin-top: -8px; }
.dispo-wide { position: absolute; top: 50%; background: #F4EFE3; color: #121210; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; z-index: 1; }
/* turned so it reads upright while the phone is held sideways */
.dispo-wide.r { left: 16px; transform: translate(-50%, -50%) rotate(-90deg); }
.dispo-wide.l { left: calc(100% - 16px); transform: translate(-50%, -50%) rotate(90deg); }
/* Phone turned sideways with the screen following it: viewfinder on the left, controls on the right, nothing to scroll */
.dispo-body.land { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto; gap: 8px 18px; align-items: center; padding: 10px 14px; }
.dispo-body.land .dispo-finder { grid-row: 1 / 4; width: auto; height: 100%; max-width: 100%; max-height: calc(100dvh - 90px); justify-self: center; }
.dispo-body.land .dispo-row { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; justify-items: center; gap: 8px; }
.dispo-body.land .dispo-look { grid-column: 2; width: 210px; }
.dispo-body.land .dispo-tip { grid-column: 2; margin: 0; }
@media (orientation: landscape) and (max-height: 560px) {
  .dispo { overflow: hidden; height: 100dvh; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); gap: 6px; }
  .dispo-roll { display: none; }
}
/* No layout jumps: the viewfinder keeps its box while the camera starts, and taps are instant */
.dispo-finder { contain: layout paint; }
.dispo-finder video { transform: translateZ(0); }
.dispo-shutter, .dispo-look button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.neg.dev { outline-style: solid; outline-color: rgba(201,169,110,.5); animation: negdev 1s ease-in-out infinite alternate; }
@keyframes negdev { from { background: rgba(244,239,227,.04); } to { background: rgba(201,169,110,.18); } }

/* Profile: floating Add More (My Favorites, My Spots) */
.add-more { position: fixed; z-index: 21; right: max(16px, calc(50% - 224px)); bottom: calc(74px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 8px; height: 44px; border: 0; border-radius: 999px;
  background: var(--forest); color: #F4EFE3; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 20px rgba(28,28,26,.22), 0 1px 0 rgba(255,255,255,.12) inset; animation: quoteIn .25s ease-out; }
.add-more span { width: 28px; height: 28px; border-radius: 50%; background: #F4EFE3; color: var(--forest); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; line-height: 1; }
.add-more:active { transform: translateY(1px); }

/* Booth camera: Booth (B&W) or Natural (no filter) */
.dispo-finder.natural video, .dispo-finder.natural img { filter: none; }
.dispo-look { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 auto; width: min(100%, 260px); background: #121210; border-radius: 999px; box-shadow: inset 0 2px 5px rgba(0,0,0,.6); border: 1px solid #3A3A34; }
.dispo-look button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: rgba(244,239,227,.6);
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s; }
.dispo-look button[aria-checked="true"] { background: #F4EFE3; color: #121210; box-shadow: 0 2px 0 #6B5433; }
.dispo-look i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dispo-look i.bw { background: linear-gradient(90deg, #111 50%, #eee 50%); outline: 1px solid rgba(244,239,227,.4); }
.dispo-look i.cl { background: conic-gradient(#E0413A, #D4A017, #2F8F4E, #2D6CDF, #8E44AD, #E0413A); }

/* Smooth on phones: no text resizing when the phone turns, no gray tap flash, instant taps */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, [role="button"], label, .chip { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Bottom of your profile: Privacy · Terms · Delete account */
.prof-foot { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 28px 0 8px; font-size: 12px; color: var(--muted); }
.prof-foot a, .prof-foot button { color: var(--muted); background: none; border: 0; padding: 4px; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
